From e4c1947348f63d4d6a501552bc4dc3060365b5cc Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 21 Feb 2022 23:18:46 +0000 Subject: [PATCH] chore(clients): set deserialization --- .../src/protocols/Aws_restJson1.ts | 63 +- .../src/protocols/Aws_json1_1.ts | 15 +- .../client-acm/src/protocols/Aws_json1_1.ts | 24 +- .../src/protocols/Aws_json1_1.ts | 90 ++- .../client-amp/src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_restJson1.ts | 42 +- .../src/protocols/Aws_restJson1.ts | 30 +- .../src/protocols/Aws_restJson1.ts | 33 +- .../src/protocols/Aws_restJson1.ts | 75 ++- .../src/protocols/Aws_restJson1.ts | 63 +- .../src/protocols/Aws_restJson1.ts | 87 +-- .../src/protocols/Aws_restJson1.ts | 33 +- .../src/protocols/Aws_restJson1.ts | 87 ++- .../src/protocols/Aws_restJson1.ts | 12 +- .../src/protocols/Aws_json1_1.ts | 21 +- .../src/protocols/Aws_json1_1.ts | 33 +- .../src/protocols/Aws_json1_1.ts | 27 +- .../src/protocols/Aws_restJson1.ts | 3 +- .../src/protocols/Aws_json1_0.ts | 27 +- .../src/protocols/Aws_json1_1.ts | 96 ++-- .../src/protocols/Aws_restJson1.ts | 30 +- .../src/protocols/Aws_json1_1.ts | 51 +- .../src/protocols/Aws_restJson1.ts | 102 ++-- .../src/protocols/Aws_json1_1.ts | 27 +- .../src/protocols/Aws_json1_0.ts | 12 +- .../src/protocols/Aws_restJson1.ts | 84 ++- .../src/protocols/Aws_restJson1.ts | 78 ++- .../src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_json1_1.ts | 39 +- .../src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 42 +- .../src/protocols/Aws_restJson1.ts | 162 ++++-- .../src/protocols/Aws_json1_1.ts | 12 +- .../src/protocols/Aws_json1_0.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 60 +- .../src/protocols/Aws_json1_1.ts | 12 +- .../src/protocols/Aws_json1_1.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_json1_1.ts | 57 +- .../src/protocols/Aws_json1_1.ts | 84 ++- .../src/protocols/Aws_json1_1.ts | 54 +- .../src/protocols/Aws_restJson1.ts | 30 +- .../src/protocols/Aws_json1_1.ts | 126 ++-- .../src/protocols/Aws_json1_1.ts | 117 ++-- .../src/protocols/Aws_json1_1.ts | 105 ++-- .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 69 +-- .../src/protocols/Aws_json1_1.ts | 75 ++- .../src/protocols/Aws_json1_0.ts | 15 +- .../src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_json1_1.ts | 12 +- .../src/protocols/Aws_json1_1.ts | 96 ++-- .../src/protocols/Aws_json1_1.ts | 27 +- .../src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_json1_1.ts | 114 ++-- .../src/protocols/Aws_json1_1.ts | 51 +- .../src/protocols/Aws_json1_0.ts | 90 ++- .../src/protocols/Aws_json1_1.ts | 198 ++++--- .../src/protocols/Aws_restJson1.ts | 12 +- .../src/protocols/Aws_restJson1.ts | 105 ++-- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_json1_1.ts | 9 +- .../src/protocols/Aws_json1_1.ts | 120 ++-- .../src/protocols/Aws_restJson1.ts | 45 +- .../src/protocols/Aws_json1_1.ts | 36 +- .../src/protocols/Aws_json1_1.ts | 96 ++-- .../src/protocols/Aws_restJson1.ts | 75 ++- .../src/protocols/Aws_restJson1.ts | 30 +- .../src/protocols/Aws_json1_1.ts | 39 +- .../client-dax/src/protocols/Aws_json1_1.ts | 33 +- .../src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_json1_1.ts | 114 ++-- .../src/protocols/Aws_restJson1.ts | 117 ++-- .../src/protocols/Aws_json1_1.ts | 63 +- .../src/protocols/Aws_json1_1.ts | 66 ++- .../client-dlm/src/protocols/Aws_restJson1.ts | 51 +- .../client-drs/src/protocols/Aws_restJson1.ts | 63 +- .../src/protocols/Aws_json1_0.ts | 24 +- .../src/protocols/Aws_json1_0.ts | 114 ++-- .../client-ebs/src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_json1_1.ts | 39 +- .../client-ecr/src/protocols/Aws_json1_1.ts | 90 ++- .../client-ecs/src/protocols/Aws_json1_1.ts | 156 +++-- .../client-efs/src/protocols/Aws_restJson1.ts | 30 +- .../client-eks/src/protocols/Aws_restJson1.ts | 45 +- .../src/protocols/Aws_restJson1.ts | 12 +- .../src/protocols/Aws_restJson1.ts | 51 +- .../src/protocols/Aws_restJson1.ts | 75 ++- .../src/protocols/Aws_restJson1.ts | 18 +- .../client-emr/src/protocols/Aws_json1_1.ts | 105 ++-- .../src/protocols/Aws_json1_1.ts | 84 ++- .../src/protocols/Aws_restJson1.ts | 54 +- .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 3 +- .../src/protocols/Aws_json1_1.ts | 33 +- .../client-fis/src/protocols/Aws_restJson1.ts | 39 +- .../client-fms/src/protocols/Aws_json1_1.ts | 84 ++- .../src/protocols/Aws_json1_1.ts | 87 ++- .../src/protocols/Aws_json1_1.ts | 3 +- .../src/protocols/Aws_json1_1.ts | 105 ++-- .../client-fsx/src/protocols/Aws_json1_1.ts | 66 ++- .../src/protocols/Aws_json1_1.ts | 129 +++-- .../src/protocols/Aws_restJson1.ts | 24 +- .../src/protocols/Aws_json1_1.ts | 63 +- .../client-glue/src/protocols/Aws_json1_1.ts | 270 ++++++--- .../src/protocols/Aws_restJson1.ts | 33 +- .../src/protocols/Aws_restJson1.ts | 54 +- .../src/protocols/Aws_restJson1.ts | 45 +- .../src/protocols/Aws_restJson1.ts | 39 +- .../src/protocols/Aws_restJson1.ts | 102 ++-- .../src/protocols/Aws_json1_1.ts | 36 +- .../src/protocols/Aws_json1_0.ts | 12 +- .../src/protocols/Aws_restJson1.ts | 33 +- .../src/protocols/Aws_json1_1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 84 ++- .../src/protocols/Aws_json1_1.ts | 90 ++- .../src/protocols/Aws_restJson1.ts | 105 ++-- .../src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 60 +- .../src/protocols/Aws_restJson1.ts | 3 +- .../src/protocols/Aws_restJson1.ts | 75 ++- .../client-iot/src/protocols/Aws_restJson1.ts | 291 ++++++---- .../src/protocols/Aws_restJson1.ts | 63 +- .../src/protocols/Aws_restJson1.ts | 18 +- .../src/protocols/Aws_restJson1.ts | 3 +- .../src/protocols/Aws_json1_1.ts | 9 +- .../src/protocols/Aws_restJson1.ts | 84 ++- .../src/protocols/Aws_json1_1.ts | 30 +- .../src/protocols/Aws_restJson1.ts | 48 +- .../client-ivs/src/protocols/Aws_restJson1.ts | 30 +- .../src/protocols/Aws_restJson1.ts | 39 +- .../src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_json1_1.ts | 177 ++++-- .../src/protocols/Aws_json1_1.ts | 57 +- .../src/protocols/Aws_json1_1.ts | 36 +- .../src/protocols/Aws_restJson1.ts | 3 +- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_json1_1.ts | 30 +- .../client-kms/src/protocols/Aws_json1_1.ts | 30 +- .../src/protocols/Aws_restJson1.ts | 72 ++- .../src/protocols/Aws_restJson1.ts | 72 ++- .../src/protocols/Aws_restJson1.ts | 87 ++- .../src/protocols/Aws_restJson1.ts | 96 ++-- .../src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_json1_1.ts | 78 ++- .../src/protocols/Aws_json1_1.ts | 198 ++++--- .../src/protocols/Aws_restJson1.ts | 93 ++- .../src/protocols/Aws_json1_0.ts | 18 +- .../src/protocols/Aws_restJson1.ts | 78 ++- .../src/protocols/Aws_restJson1.ts | 18 +- .../src/protocols/Aws_json1_1.ts | 15 +- .../client-macie/src/protocols/Aws_json1_1.ts | 9 +- .../src/protocols/Aws_restJson1.ts | 96 ++-- .../src/protocols/Aws_restJson1.ts | 24 +- .../src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_json1_1.ts | 3 +- .../src/protocols/Aws_json1_1.ts | 12 +- .../src/protocols/Aws_restJson1.ts | 42 +- .../src/protocols/Aws_restJson1.ts | 108 ++-- .../src/protocols/Aws_restJson1.ts | 132 +++-- .../src/protocols/Aws_restJson1.ts | 27 +- .../src/protocols/Aws_restJson1.ts | 24 +- .../src/protocols/Aws_restJson1.ts | 3 +- .../src/protocols/Aws_json1_1.ts | 24 +- .../src/protocols/Aws_restJson1.ts | 42 +- .../src/protocols/Aws_json1_1.ts | 66 ++- .../client-mgn/src/protocols/Aws_restJson1.ts | 45 +- .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_json1_1.ts | 18 +- .../src/protocols/Aws_json1_1.ts | 3 +- .../src/protocols/Aws_restJson1.ts | 63 +- .../src/protocols/Aws_restJson1.ts | 12 +- .../client-mq/src/protocols/Aws_restJson1.ts | 39 +- .../client-mturk/src/protocols/Aws_json1_1.ts | 48 +- .../src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_json1_0.ts | 72 ++- .../src/protocols/Aws_restJson1.ts | 93 ++- .../src/protocols/Aws_restJson1.ts | 75 ++- .../src/protocols/Aws_restJson1.ts | 78 ++- .../src/protocols/Aws_json1_1.ts | 78 ++- .../src/protocols/Aws_json1_1.ts | 21 +- .../src/protocols/Aws_json1_1.ts | 48 +- .../src/protocols/Aws_restJson1.ts | 27 +- .../src/protocols/Aws_restJson1.ts | 54 +- .../src/protocols/Aws_restJson1.ts | 3 +- .../src/protocols/Aws_json1_1.ts | 66 ++- .../client-pi/src/protocols/Aws_json1_1.ts | 30 +- .../src/protocols/Aws_restJson1.ts | 57 +- .../src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_restJson1.ts | 72 ++- .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_json1_1.ts | 12 +- .../src/protocols/Aws_json1_0.ts | 48 +- .../src/protocols/Aws_json1_0.ts | 3 +- .../src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_restJson1.ts | 153 +++-- .../client-ram/src/protocols/Aws_restJson1.ts | 27 +- .../src/protocols/Aws_restJson1.ts | 9 +- .../src/protocols/Aws_restJson1.ts | 39 +- .../src/protocols/Aws_json1_1.ts | 33 +- .../src/protocols/Aws_json1_1.ts | 138 +++-- .../src/protocols/Aws_restJson1.ts | 60 +- .../src/protocols/Aws_json1_1.ts | 15 +- .../src/protocols/Aws_restJson1.ts | 36 +- .../src/protocols/Aws_restJson1.ts | 105 ++-- .../src/protocols/Aws_json1_1.ts | 30 +- .../src/protocols/Aws_json1_0.ts | 3 +- .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 39 +- .../src/protocols/Aws_json1_1.ts | 51 +- .../client-rum/src/protocols/Aws_restJson1.ts | 15 +- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 3 +- .../src/protocols/Aws_restJson1.ts | 18 +- .../src/protocols/Aws_json1_1.ts | 456 ++++++++++----- .../src/protocols/Aws_restJson1.ts | 24 +- .../src/protocols/Aws_restJson1.ts | 18 +- .../src/protocols/Aws_json1_1.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 540 ++++++++++++------ .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 12 +- .../src/protocols/Aws_json1_1.ts | 147 +++-- .../src/protocols/Aws_json1_1.ts | 15 +- .../src/protocols/Aws_json1_1.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 90 ++- .../client-sfn/src/protocols/Aws_json1_0.ts | 18 +- .../src/protocols/Aws_json1_1.ts | 57 +- .../src/protocols/Aws_restJson1.ts | 21 +- .../client-sms/src/protocols/Aws_json1_1.ts | 48 +- .../src/protocols/Aws_restJson1.ts | 30 +- .../src/protocols/Aws_json1_1.ts | 39 +- .../src/protocols/Aws_json1_1.ts | 27 +- .../src/protocols/Aws_restJson1.ts | 78 +-- .../client-ssm/src/protocols/Aws_json1_1.ts | 306 ++++++---- .../src/protocols/Aws_json1_1.ts | 30 +- .../client-sso/src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_json1_1.ts | 99 ++-- .../src/protocols/Aws_json1_1.ts | 36 +- .../client-swf/src/protocols/Aws_json1_0.ts | 21 +- .../src/protocols/Aws_restJson1.ts | 24 +- .../src/protocols/Aws_json1_1.ts | 42 +- .../src/protocols/Aws_json1_0.ts | 39 +- .../src/protocols/Aws_json1_0.ts | 15 +- .../src/protocols/Aws_restJson1.ts | 27 +- .../src/protocols/Aws_json1_1.ts | 48 +- .../src/protocols/Aws_json1_1.ts | 57 +- .../src/protocols/Aws_json1_1.ts | 24 +- .../src/protocols/Aws_json1_0.ts | 18 +- .../src/protocols/Aws_json1_1.ts | 93 ++- .../client-waf/src/protocols/Aws_json1_1.ts | 90 ++- .../client-wafv2/src/protocols/Aws_json1_1.ts | 93 ++- .../src/protocols/Aws_restJson1.ts | 72 ++- .../src/protocols/Aws_restJson1.ts | 33 +- .../src/protocols/Aws_restJson1.ts | 45 +- .../src/protocols/Aws_restJson1.ts | 21 +- .../src/protocols/Aws_json1_1.ts | 78 ++- .../src/protocols/Aws_restJson1.ts | 36 +- .../src/protocols/Aws_json1_1.ts | 81 ++- .../src/protocols/Aws_restJson1.ts | 120 ++-- .../src/protocols/Aws_json1_0.ts | 3 +- .../src/protocols/Aws_json1_1.ts | 36 +- .../src/protocols/Aws_restJson1.ts | 48 +- .../test/functional/restjson1.spec.ts | 4 +- .../test/functional/restxml.spec.ts | 4 +- 270 files changed, 9609 insertions(+), 4895 deletions(-) diff --git a/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts b/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts index d4cb4522bee5..ace41760ac1d 100644 --- a/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts +++ b/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts @@ -3186,7 +3186,7 @@ const deserializeAws_restJson1AccessPreviewFindingsList = ( output: any, context: __SerdeContext ): AccessPreviewFinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3194,10 +3194,11 @@ const deserializeAws_restJson1AccessPreviewFindingsList = ( } return deserializeAws_restJson1AccessPreviewFinding(entry, context); }); + return retVal; }; const deserializeAws_restJson1AccessPreviewsList = (output: any, context: __SerdeContext): AccessPreviewSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3205,6 +3206,7 @@ const deserializeAws_restJson1AccessPreviewsList = (output: any, context: __Serd } return deserializeAws_restJson1AccessPreviewSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AccessPreviewStatusReason = ( @@ -3243,7 +3245,7 @@ const deserializeAws_restJson1AclGrantee = (output: any, context: __SerdeContext }; const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3251,6 +3253,7 @@ const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AnalyzedResource = (output: any, context: __SerdeContext): AnalyzedResource => { @@ -3288,7 +3291,7 @@ const deserializeAws_restJson1AnalyzedResourcesList = ( output: any, context: __SerdeContext ): AnalyzedResourceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3296,6 +3299,7 @@ const deserializeAws_restJson1AnalyzedResourcesList = ( } return deserializeAws_restJson1AnalyzedResourceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AnalyzedResourceSummary = ( @@ -3310,7 +3314,7 @@ const deserializeAws_restJson1AnalyzedResourceSummary = ( }; const deserializeAws_restJson1AnalyzersList = (output: any, context: __SerdeContext): AnalyzerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3318,6 +3322,7 @@ const deserializeAws_restJson1AnalyzersList = (output: any, context: __SerdeCont } return deserializeAws_restJson1AnalyzerSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AnalyzerSummary = (output: any, context: __SerdeContext): AnalyzerSummary => { @@ -3347,7 +3352,7 @@ const deserializeAws_restJson1AnalyzerSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ArchiveRulesList = (output: any, context: __SerdeContext): ArchiveRuleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3355,6 +3360,7 @@ const deserializeAws_restJson1ArchiveRulesList = (output: any, context: __SerdeC } return deserializeAws_restJson1ArchiveRuleSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ArchiveRuleSummary = (output: any, context: __SerdeContext): ArchiveRuleSummary => { @@ -3523,7 +3529,7 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1FindingsList = (output: any, context: __SerdeContext): FindingSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3531,6 +3537,7 @@ const deserializeAws_restJson1FindingsList = (output: any, context: __SerdeConte } return deserializeAws_restJson1FindingSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1FindingSource = (output: any, context: __SerdeContext): FindingSource => { @@ -3550,7 +3557,7 @@ const deserializeAws_restJson1FindingSourceDetail = (output: any, context: __Ser }; const deserializeAws_restJson1FindingSourceList = (output: any, context: __SerdeContext): FindingSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3558,6 +3565,7 @@ const deserializeAws_restJson1FindingSourceList = (output: any, context: __Serde } return deserializeAws_restJson1FindingSource(entry, context); }); + return retVal; }; const deserializeAws_restJson1FindingSummary = (output: any, context: __SerdeContext): FindingSummary => { @@ -3607,7 +3615,7 @@ const deserializeAws_restJson1GeneratedPolicy = (output: any, context: __SerdeCo }; const deserializeAws_restJson1GeneratedPolicyList = (output: any, context: __SerdeContext): GeneratedPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3615,6 +3623,7 @@ const deserializeAws_restJson1GeneratedPolicyList = (output: any, context: __Ser } return deserializeAws_restJson1GeneratedPolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1GeneratedPolicyProperties = ( @@ -3712,7 +3721,7 @@ const deserializeAws_restJson1KmsGrantConfigurationsList = ( output: any, context: __SerdeContext ): KmsGrantConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3720,6 +3729,7 @@ const deserializeAws_restJson1KmsGrantConfigurationsList = ( } return deserializeAws_restJson1KmsGrantConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1KmsGrantConstraints = (output: any, context: __SerdeContext): KmsGrantConstraints => { @@ -3739,7 +3749,7 @@ const deserializeAws_restJson1KmsGrantOperationsList = ( output: any, context: __SerdeContext ): (KmsGrantOperation | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3747,6 +3757,7 @@ const deserializeAws_restJson1KmsGrantOperationsList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1KmsKeyConfiguration = (output: any, context: __SerdeContext): KmsKeyConfiguration => { @@ -3788,7 +3799,7 @@ const deserializeAws_restJson1Location = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1LocationList = (output: any, context: __SerdeContext): Location[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3796,6 +3807,7 @@ const deserializeAws_restJson1LocationList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Location(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkOriginConfiguration = ( @@ -3834,7 +3846,7 @@ const deserializeAws_restJson1PathElement = (output: any, context: __SerdeContex }; const deserializeAws_restJson1PathElementList = (output: any, context: __SerdeContext): PathElement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3842,6 +3854,7 @@ const deserializeAws_restJson1PathElementList = (output: any, context: __SerdeCo } return deserializeAws_restJson1PathElement(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1PolicyGeneration = (output: any, context: __SerdeContext): PolicyGeneration => { @@ -3861,7 +3874,7 @@ const deserializeAws_restJson1PolicyGeneration = (output: any, context: __SerdeC }; const deserializeAws_restJson1PolicyGenerationList = (output: any, context: __SerdeContext): PolicyGeneration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3869,6 +3882,7 @@ const deserializeAws_restJson1PolicyGenerationList = (output: any, context: __Se } return deserializeAws_restJson1PolicyGeneration(entry, context); }); + return retVal; }; const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): Position => { @@ -3892,7 +3906,7 @@ const deserializeAws_restJson1PrincipalMap = (output: any, context: __SerdeConte }; const deserializeAws_restJson1RegionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3900,6 +3914,7 @@ const deserializeAws_restJson1RegionList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3AccessPointConfiguration = ( @@ -3954,7 +3969,7 @@ const deserializeAws_restJson1S3BucketAclGrantConfigurationsList = ( output: any, context: __SerdeContext ): S3BucketAclGrantConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3962,6 +3977,7 @@ const deserializeAws_restJson1S3BucketAclGrantConfigurationsList = ( } return deserializeAws_restJson1S3BucketAclGrantConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3BucketConfiguration = (output: any, context: __SerdeContext): S3BucketConfiguration => { @@ -4003,7 +4019,7 @@ const deserializeAws_restJson1SecretsManagerSecretConfiguration = ( }; const deserializeAws_restJson1SharedViaList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4011,6 +4027,7 @@ const deserializeAws_restJson1SharedViaList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Span = (output: any, context: __SerdeContext): Span => { @@ -4069,7 +4086,7 @@ const deserializeAws_restJson1TrailProperties = (output: any, context: __SerdeCo }; const deserializeAws_restJson1TrailPropertiesList = (output: any, context: __SerdeContext): TrailProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4077,6 +4094,7 @@ const deserializeAws_restJson1TrailPropertiesList = (output: any, context: __Ser } return deserializeAws_restJson1TrailProperties(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValidatePolicyFinding = (output: any, context: __SerdeContext): ValidatePolicyFinding => { @@ -4096,7 +4114,7 @@ const deserializeAws_restJson1ValidatePolicyFindingList = ( output: any, context: __SerdeContext ): ValidatePolicyFinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4104,6 +4122,7 @@ const deserializeAws_restJson1ValidatePolicyFindingList = ( } return deserializeAws_restJson1ValidatePolicyFinding(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValidationExceptionField = ( @@ -4120,7 +4139,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4128,10 +4147,11 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4139,6 +4159,7 @@ const deserializeAws_restJson1ValueList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1VpcConfiguration = (output: any, context: __SerdeContext): VpcConfiguration => { diff --git a/clients/client-acm-pca/src/protocols/Aws_json1_1.ts b/clients/client-acm-pca/src/protocols/Aws_json1_1.ts index 82d31e28b387..aa90baa5b60d 100644 --- a/clients/client-acm-pca/src/protocols/Aws_json1_1.ts +++ b/clients/client-acm-pca/src/protocols/Aws_json1_1.ts @@ -2508,7 +2508,7 @@ const deserializeAws_json1_1AccessDescription = (output: any, context: __SerdeCo }; const deserializeAws_json1_1AccessDescriptionList = (output: any, context: __SerdeContext): AccessDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2516,6 +2516,7 @@ const deserializeAws_json1_1AccessDescriptionList = (output: any, context: __Ser } return deserializeAws_json1_1AccessDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1AccessMethod = (output: any, context: __SerdeContext): AccessMethod => { @@ -2526,7 +2527,7 @@ const deserializeAws_json1_1AccessMethod = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ActionList = (output: any, context: __SerdeContext): (ActionType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2534,6 +2535,7 @@ const deserializeAws_json1_1ActionList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ASN1Subject = (output: any, context: __SerdeContext): ASN1Subject => { @@ -2556,7 +2558,7 @@ const deserializeAws_json1_1ASN1Subject = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1CertificateAuthorities = (output: any, context: __SerdeContext): CertificateAuthority[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2564,6 +2566,7 @@ const deserializeAws_json1_1CertificateAuthorities = (output: any, context: __Se } return deserializeAws_json1_1CertificateAuthority(entry, context); }); + return retVal; }; const deserializeAws_json1_1CertificateAuthority = (output: any, context: __SerdeContext): CertificateAuthority => { @@ -2950,7 +2953,7 @@ const deserializeAws_json1_1PermissionAlreadyExistsException = ( }; const deserializeAws_json1_1PermissionList = (output: any, context: __SerdeContext): Permission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2958,6 +2961,7 @@ const deserializeAws_json1_1PermissionList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Permission(entry, context); }); + return retVal; }; const deserializeAws_json1_1RequestAlreadyProcessedException = ( @@ -3017,7 +3021,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3025,6 +3029,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => { diff --git a/clients/client-acm/src/protocols/Aws_json1_1.ts b/clients/client-acm/src/protocols/Aws_json1_1.ts index b30fc3f60656..1b39c72174aa 100644 --- a/clients/client-acm/src/protocols/Aws_json1_1.ts +++ b/clients/client-acm/src/protocols/Aws_json1_1.ts @@ -1659,7 +1659,7 @@ const deserializeAws_json1_1CertificateSummary = (output: any, context: __SerdeC }; const deserializeAws_json1_1CertificateSummaryList = (output: any, context: __SerdeContext): CertificateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1667,6 +1667,7 @@ const deserializeAws_json1_1CertificateSummaryList = (output: any, context: __Se } return deserializeAws_json1_1CertificateSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => { @@ -1688,7 +1689,7 @@ const deserializeAws_json1_1DescribeCertificateResponse = ( }; const deserializeAws_json1_1DomainList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1696,6 +1697,7 @@ const deserializeAws_json1_1DomainList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DomainValidation = (output: any, context: __SerdeContext): DomainValidation => { @@ -1716,7 +1718,7 @@ const deserializeAws_json1_1DomainValidation = (output: any, context: __SerdeCon }; const deserializeAws_json1_1DomainValidationList = (output: any, context: __SerdeContext): DomainValidation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1724,6 +1726,7 @@ const deserializeAws_json1_1DomainValidationList = (output: any, context: __Serd } return deserializeAws_json1_1DomainValidation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExpiryEventsConfiguration = ( @@ -1754,7 +1757,7 @@ const deserializeAws_json1_1ExtendedKeyUsage = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ExtendedKeyUsageList = (output: any, context: __SerdeContext): ExtendedKeyUsage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1762,6 +1765,7 @@ const deserializeAws_json1_1ExtendedKeyUsageList = (output: any, context: __Serd } return deserializeAws_json1_1ExtendedKeyUsage(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetAccountConfigurationResponse = ( @@ -1793,7 +1797,7 @@ const deserializeAws_json1_1ImportCertificateResponse = ( }; const deserializeAws_json1_1InUseList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1801,6 +1805,7 @@ const deserializeAws_json1_1InUseList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InvalidArgsException = (output: any, context: __SerdeContext): InvalidArgsException => { @@ -1852,7 +1857,7 @@ const deserializeAws_json1_1KeyUsage = (output: any, context: __SerdeContext): K }; const deserializeAws_json1_1KeyUsageList = (output: any, context: __SerdeContext): KeyUsage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1860,6 +1865,7 @@ const deserializeAws_json1_1KeyUsageList = (output: any, context: __SerdeContext } return deserializeAws_json1_1KeyUsage(entry, context); }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -1957,7 +1963,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1965,6 +1971,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagPolicyException = (output: any, context: __SerdeContext): TagPolicyException => { @@ -1986,7 +1993,7 @@ const deserializeAws_json1_1TooManyTagsException = (output: any, context: __Serd }; const deserializeAws_json1_1ValidationEmailList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1994,6 +2001,7 @@ const deserializeAws_json1_1ValidationEmailList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => { diff --git a/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts b/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts index 2ba885f72f04..9355cb2e3f33 100644 --- a/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts +++ b/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts @@ -7484,7 +7484,7 @@ const deserializeAws_json1_1AddressBookData = (output: any, context: __SerdeCont }; const deserializeAws_json1_1AddressBookDataList = (output: any, context: __SerdeContext): AddressBookData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7492,6 +7492,7 @@ const deserializeAws_json1_1AddressBookDataList = (output: any, context: __Serde } return deserializeAws_json1_1AddressBookData(entry, context); }); + return retVal; }; const deserializeAws_json1_1AlreadyExistsException = (output: any, context: __SerdeContext): AlreadyExistsException => { @@ -7547,7 +7548,7 @@ const deserializeAws_json1_1AssociateSkillWithUsersResponse = ( }; const deserializeAws_json1_1BulletPoints = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7555,6 +7556,7 @@ const deserializeAws_json1_1BulletPoints = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BusinessReport = (output: any, context: __SerdeContext): BusinessReport => { @@ -7627,7 +7629,7 @@ const deserializeAws_json1_1BusinessReportScheduleList = ( output: any, context: __SerdeContext ): BusinessReportSchedule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7635,6 +7637,7 @@ const deserializeAws_json1_1BusinessReportScheduleList = ( } return deserializeAws_json1_1BusinessReportSchedule(entry, context); }); + return retVal; }; const deserializeAws_json1_1Category = (output: any, context: __SerdeContext): Category => { @@ -7645,7 +7648,7 @@ const deserializeAws_json1_1Category = (output: any, context: __SerdeContext): C }; const deserializeAws_json1_1CategoryList = (output: any, context: __SerdeContext): Category[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7653,6 +7656,7 @@ const deserializeAws_json1_1CategoryList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Category(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConcurrentModificationException = ( @@ -7691,7 +7695,7 @@ const deserializeAws_json1_1ConferenceProvider = (output: any, context: __SerdeC }; const deserializeAws_json1_1ConferenceProvidersList = (output: any, context: __SerdeContext): ConferenceProvider[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7699,6 +7703,7 @@ const deserializeAws_json1_1ConferenceProvidersList = (output: any, context: __S } return deserializeAws_json1_1ConferenceProvider(entry, context); }); + return retVal; }; const deserializeAws_json1_1Contact = (output: any, context: __SerdeContext): Contact => { @@ -7738,7 +7743,7 @@ const deserializeAws_json1_1ContactData = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ContactDataList = (output: any, context: __SerdeContext): ContactData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7746,6 +7751,7 @@ const deserializeAws_json1_1ContactDataList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ContactData(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateAddressBookResponse = ( @@ -7964,7 +7970,7 @@ const deserializeAws_json1_1DeviceData = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1DeviceDataList = (output: any, context: __SerdeContext): DeviceData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7972,6 +7978,7 @@ const deserializeAws_json1_1DeviceDataList = (output: any, context: __SerdeConte } return deserializeAws_json1_1DeviceData(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceEvent = (output: any, context: __SerdeContext): DeviceEvent => { @@ -7986,7 +7993,7 @@ const deserializeAws_json1_1DeviceEvent = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1DeviceEventList = (output: any, context: __SerdeContext): DeviceEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7994,6 +8001,7 @@ const deserializeAws_json1_1DeviceEventList = (output: any, context: __SerdeCont } return deserializeAws_json1_1DeviceEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceNetworkProfileInfo = ( @@ -8027,7 +8035,7 @@ const deserializeAws_json1_1DeviceStatusDetail = (output: any, context: __SerdeC }; const deserializeAws_json1_1DeviceStatusDetails = (output: any, context: __SerdeContext): DeviceStatusDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8035,6 +8043,7 @@ const deserializeAws_json1_1DeviceStatusDetails = (output: any, context: __Serde } return deserializeAws_json1_1DeviceStatusDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceStatusInfo = (output: any, context: __SerdeContext): DeviceStatusInfo => { @@ -8098,7 +8107,7 @@ const deserializeAws_json1_1EndOfMeetingReminder = (output: any, context: __Serd }; const deserializeAws_json1_1EndOfMeetingReminderMinutesList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8106,6 +8115,7 @@ const deserializeAws_json1_1EndOfMeetingReminderMinutesList = (output: any, cont } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ForgetSmartHomeAppliancesResponse = ( @@ -8134,7 +8144,7 @@ const deserializeAws_json1_1GatewayGroup = (output: any, context: __SerdeContext }; const deserializeAws_json1_1GatewayGroupSummaries = (output: any, context: __SerdeContext): GatewayGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8142,6 +8152,7 @@ const deserializeAws_json1_1GatewayGroupSummaries = (output: any, context: __Ser } return deserializeAws_json1_1GatewayGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1GatewayGroupSummary = (output: any, context: __SerdeContext): GatewayGroupSummary => { @@ -8153,7 +8164,7 @@ const deserializeAws_json1_1GatewayGroupSummary = (output: any, context: __Serde }; const deserializeAws_json1_1GatewaySummaries = (output: any, context: __SerdeContext): GatewaySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8161,6 +8172,7 @@ const deserializeAws_json1_1GatewaySummaries = (output: any, context: __SerdeCon } return deserializeAws_json1_1GatewaySummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1GatewaySummary = (output: any, context: __SerdeContext): GatewaySummary => { @@ -8174,7 +8186,7 @@ const deserializeAws_json1_1GatewaySummary = (output: any, context: __SerdeConte }; const deserializeAws_json1_1GenericKeywords = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8182,6 +8194,7 @@ const deserializeAws_json1_1GenericKeywords = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1GetAddressBookResponse = (output: any, context: __SerdeContext): GetAddressBookResponse => { @@ -8566,7 +8579,7 @@ const deserializeAws_json1_1NetworkProfileData = (output: any, context: __SerdeC }; const deserializeAws_json1_1NetworkProfileDataList = (output: any, context: __SerdeContext): NetworkProfileData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8574,10 +8587,11 @@ const deserializeAws_json1_1NetworkProfileDataList = (output: any, context: __Se } return deserializeAws_json1_1NetworkProfileData(entry, context); }); + return retVal; }; const deserializeAws_json1_1NewInThisVersionBulletPoints = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8585,6 +8599,7 @@ const deserializeAws_json1_1NewInThisVersionBulletPoints = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeContext): NotFoundException => { @@ -8601,7 +8616,7 @@ const deserializeAws_json1_1PhoneNumber = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1PhoneNumberList = (output: any, context: __SerdeContext): PhoneNumber[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8609,6 +8624,7 @@ const deserializeAws_json1_1PhoneNumberList = (output: any, context: __SerdeCont } return deserializeAws_json1_1PhoneNumber(entry, context); }); + return retVal; }; const deserializeAws_json1_1Profile = (output: any, context: __SerdeContext): Profile => { @@ -8649,7 +8665,7 @@ const deserializeAws_json1_1ProfileData = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ProfileDataList = (output: any, context: __SerdeContext): ProfileData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8657,6 +8673,7 @@ const deserializeAws_json1_1ProfileDataList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ProfileData(entry, context); }); + return retVal; }; const deserializeAws_json1_1PSTNDialIn = (output: any, context: __SerdeContext): PSTNDialIn => { @@ -8784,7 +8801,7 @@ const deserializeAws_json1_1RoomData = (output: any, context: __SerdeContext): R }; const deserializeAws_json1_1RoomDataList = (output: any, context: __SerdeContext): RoomData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8792,6 +8809,7 @@ const deserializeAws_json1_1RoomDataList = (output: any, context: __SerdeContext } return deserializeAws_json1_1RoomData(entry, context); }); + return retVal; }; const deserializeAws_json1_1RoomSkillParameter = (output: any, context: __SerdeContext): RoomSkillParameter => { @@ -8802,7 +8820,7 @@ const deserializeAws_json1_1RoomSkillParameter = (output: any, context: __SerdeC }; const deserializeAws_json1_1RoomSkillParameters = (output: any, context: __SerdeContext): RoomSkillParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8810,10 +8828,11 @@ const deserializeAws_json1_1RoomSkillParameters = (output: any, context: __Serde } return deserializeAws_json1_1RoomSkillParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1SampleUtterances = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8821,6 +8840,7 @@ const deserializeAws_json1_1SampleUtterances = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SearchAddressBooksResponse = ( @@ -8934,7 +8954,7 @@ const deserializeAws_json1_1SendInvitationResponse = (output: any, context: __Se }; const deserializeAws_json1_1ShortSkillIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8942,6 +8962,7 @@ const deserializeAws_json1_1ShortSkillIdList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SipAddress = (output: any, context: __SerdeContext): SipAddress => { @@ -8952,7 +8973,7 @@ const deserializeAws_json1_1SipAddress = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1SipAddressList = (output: any, context: __SerdeContext): SipAddress[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8960,6 +8981,7 @@ const deserializeAws_json1_1SipAddressList = (output: any, context: __SerdeConte } return deserializeAws_json1_1SipAddress(entry, context); }); + return retVal; }; const deserializeAws_json1_1SkillDetails = (output: any, context: __SerdeContext): SkillDetails => { @@ -9012,7 +9034,7 @@ const deserializeAws_json1_1SkillGroupData = (output: any, context: __SerdeConte }; const deserializeAws_json1_1SkillGroupDataList = (output: any, context: __SerdeContext): SkillGroupData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9020,6 +9042,7 @@ const deserializeAws_json1_1SkillGroupDataList = (output: any, context: __SerdeC } return deserializeAws_json1_1SkillGroupData(entry, context); }); + return retVal; }; const deserializeAws_json1_1SkillNotLinkedException = ( @@ -9050,7 +9073,7 @@ const deserializeAws_json1_1SkillsStoreSkill = (output: any, context: __SerdeCon }; const deserializeAws_json1_1SkillsStoreSkillList = (output: any, context: __SerdeContext): SkillsStoreSkill[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9058,6 +9081,7 @@ const deserializeAws_json1_1SkillsStoreSkillList = (output: any, context: __Serd } return deserializeAws_json1_1SkillsStoreSkill(entry, context); }); + return retVal; }; const deserializeAws_json1_1SkillSummary = (output: any, context: __SerdeContext): SkillSummary => { @@ -9071,7 +9095,7 @@ const deserializeAws_json1_1SkillSummary = (output: any, context: __SerdeContext }; const deserializeAws_json1_1SkillSummaryList = (output: any, context: __SerdeContext): SkillSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9079,10 +9103,11 @@ const deserializeAws_json1_1SkillSummaryList = (output: any, context: __SerdeCon } return deserializeAws_json1_1SkillSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SkillTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9090,6 +9115,7 @@ const deserializeAws_json1_1SkillTypes = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SmartHomeAppliance = (output: any, context: __SerdeContext): SmartHomeAppliance => { @@ -9101,7 +9127,7 @@ const deserializeAws_json1_1SmartHomeAppliance = (output: any, context: __SerdeC }; const deserializeAws_json1_1SmartHomeApplianceList = (output: any, context: __SerdeContext): SmartHomeAppliance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9109,6 +9135,7 @@ const deserializeAws_json1_1SmartHomeApplianceList = (output: any, context: __Se } return deserializeAws_json1_1SmartHomeAppliance(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartDeviceSyncResponse = ( @@ -9133,7 +9160,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9141,6 +9168,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -9148,7 +9176,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1TrustAnchorList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9156,6 +9184,7 @@ const deserializeAws_json1_1TrustAnchorList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1UnauthorizedException = (output: any, context: __SerdeContext): UnauthorizedException => { @@ -9242,7 +9271,7 @@ const deserializeAws_json1_1UserData = (output: any, context: __SerdeContext): U }; const deserializeAws_json1_1UserDataList = (output: any, context: __SerdeContext): UserData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9250,6 +9279,7 @@ const deserializeAws_json1_1UserDataList = (output: any, context: __SerdeContext } return deserializeAws_json1_1UserData(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-amp/src/protocols/Aws_restJson1.ts b/clients/client-amp/src/protocols/Aws_restJson1.ts index 472b50d630c5..5a94a252b1e1 100644 --- a/clients/client-amp/src/protocols/Aws_restJson1.ts +++ b/clients/client-amp/src/protocols/Aws_restJson1.ts @@ -1948,7 +1948,7 @@ const deserializeAws_restJson1RuleGroupsNamespaceSummaryList = ( output: any, context: __SerdeContext ): RuleGroupsNamespaceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1956,6 +1956,7 @@ const deserializeAws_restJson1RuleGroupsNamespaceSummaryList = ( } return deserializeAws_restJson1RuleGroupsNamespaceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -1984,7 +1985,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1992,6 +1993,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorkspaceDescription = (output: any, context: __SerdeContext): WorkspaceDescription => { @@ -2042,7 +2044,7 @@ const deserializeAws_restJson1WorkspaceSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1WorkspaceSummaryList = (output: any, context: __SerdeContext): WorkspaceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2050,6 +2052,7 @@ const deserializeAws_restJson1WorkspaceSummaryList = (output: any, context: __Se } return deserializeAws_restJson1WorkspaceSummary(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-amplify/src/protocols/Aws_restJson1.ts b/clients/client-amplify/src/protocols/Aws_restJson1.ts index daf546c27433..976cdc6cac6d 100644 --- a/clients/client-amplify/src/protocols/Aws_restJson1.ts +++ b/clients/client-amplify/src/protocols/Aws_restJson1.ts @@ -3951,7 +3951,7 @@ const deserializeAws_restJson1App = (output: any, context: __SerdeContext): App }; const deserializeAws_restJson1Apps = (output: any, context: __SerdeContext): App[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3959,6 +3959,7 @@ const deserializeAws_restJson1Apps = (output: any, context: __SerdeContext): App } return deserializeAws_restJson1App(entry, context); }); + return retVal; }; const deserializeAws_restJson1Artifact = (output: any, context: __SerdeContext): Artifact => { @@ -3969,7 +3970,7 @@ const deserializeAws_restJson1Artifact = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Artifacts = (output: any, context: __SerdeContext): Artifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3977,10 +3978,11 @@ const deserializeAws_restJson1Artifacts = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Artifact(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssociatedResources = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3988,6 +3990,7 @@ const deserializeAws_restJson1AssociatedResources = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AutoBranchCreationConfig = ( @@ -4012,7 +4015,7 @@ const deserializeAws_restJson1AutoBranchCreationConfig = ( }; const deserializeAws_restJson1AutoBranchCreationPatterns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4020,10 +4023,11 @@ const deserializeAws_restJson1AutoBranchCreationPatterns = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AutoSubDomainCreationPatterns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4031,6 +4035,7 @@ const deserializeAws_restJson1AutoSubDomainCreationPatterns = (output: any, cont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BackendEnvironment = (output: any, context: __SerdeContext): BackendEnvironment => { @@ -4051,7 +4056,7 @@ const deserializeAws_restJson1BackendEnvironment = (output: any, context: __Serd }; const deserializeAws_restJson1BackendEnvironments = (output: any, context: __SerdeContext): BackendEnvironment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4059,6 +4064,7 @@ const deserializeAws_restJson1BackendEnvironments = (output: any, context: __Ser } return deserializeAws_restJson1BackendEnvironment(entry, context); }); + return retVal; }; const deserializeAws_restJson1Branch = (output: any, context: __SerdeContext): Branch => { @@ -4112,7 +4118,7 @@ const deserializeAws_restJson1Branch = (output: any, context: __SerdeContext): B }; const deserializeAws_restJson1Branches = (output: any, context: __SerdeContext): Branch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4120,10 +4126,11 @@ const deserializeAws_restJson1Branches = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Branch(entry, context); }); + return retVal; }; const deserializeAws_restJson1CustomDomains = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4131,6 +4138,7 @@ const deserializeAws_restJson1CustomDomains = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CustomRule = (output: any, context: __SerdeContext): CustomRule => { @@ -4143,7 +4151,7 @@ const deserializeAws_restJson1CustomRule = (output: any, context: __SerdeContext }; const deserializeAws_restJson1CustomRules = (output: any, context: __SerdeContext): CustomRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4151,6 +4159,7 @@ const deserializeAws_restJson1CustomRules = (output: any, context: __SerdeContex } return deserializeAws_restJson1CustomRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainAssociation = (output: any, context: __SerdeContext): DomainAssociation => { @@ -4174,7 +4183,7 @@ const deserializeAws_restJson1DomainAssociation = (output: any, context: __Serde }; const deserializeAws_restJson1DomainAssociations = (output: any, context: __SerdeContext): DomainAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4182,6 +4191,7 @@ const deserializeAws_restJson1DomainAssociations = (output: any, context: __Serd } return deserializeAws_restJson1DomainAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1EnvironmentVariables = ( @@ -4225,7 +4235,7 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job }; const deserializeAws_restJson1JobSummaries = (output: any, context: __SerdeContext): JobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4233,6 +4243,7 @@ const deserializeAws_restJson1JobSummaries = (output: any, context: __SerdeConte } return deserializeAws_restJson1JobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext): JobSummary => { @@ -4308,7 +4319,7 @@ const deserializeAws_restJson1Step = (output: any, context: __SerdeContext): Ste }; const deserializeAws_restJson1Steps = (output: any, context: __SerdeContext): Step[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4316,6 +4327,7 @@ const deserializeAws_restJson1Steps = (output: any, context: __SerdeContext): St } return deserializeAws_restJson1Step(entry, context); }); + return retVal; }; const deserializeAws_restJson1SubDomain = (output: any, context: __SerdeContext): SubDomain => { @@ -4330,7 +4342,7 @@ const deserializeAws_restJson1SubDomain = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1SubDomains = (output: any, context: __SerdeContext): SubDomain[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4338,6 +4350,7 @@ const deserializeAws_restJson1SubDomains = (output: any, context: __SerdeContext } return deserializeAws_restJson1SubDomain(entry, context); }); + return retVal; }; const deserializeAws_restJson1SubDomainSetting = (output: any, context: __SerdeContext): SubDomainSetting => { @@ -4378,7 +4391,7 @@ const deserializeAws_restJson1Webhook = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Webhooks = (output: any, context: __SerdeContext): Webhook[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4386,6 +4399,7 @@ const deserializeAws_restJson1Webhooks = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Webhook(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-amplifybackend/src/protocols/Aws_restJson1.ts b/clients/client-amplifybackend/src/protocols/Aws_restJson1.ts index d75fe7748410..c321e6425d6f 100644 --- a/clients/client-amplifybackend/src/protocols/Aws_restJson1.ts +++ b/clients/client-amplifybackend/src/protocols/Aws_restJson1.ts @@ -4389,7 +4389,7 @@ const deserializeAws_restJson1GetBackendStorageResourceConfig = ( }; const deserializeAws_restJson1ListOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4397,13 +4397,14 @@ const deserializeAws_restJson1ListOf__string = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfAdditionalConstraintsElement = ( output: any, context: __SerdeContext ): (AdditionalConstraintsElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4411,13 +4412,14 @@ const deserializeAws_restJson1ListOfAdditionalConstraintsElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfAuthenticatedElement = ( output: any, context: __SerdeContext ): (AuthenticatedElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4425,13 +4427,14 @@ const deserializeAws_restJson1ListOfAuthenticatedElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfBackendAPIAuthType = ( output: any, context: __SerdeContext ): BackendAPIAuthType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4439,10 +4442,11 @@ const deserializeAws_restJson1ListOfBackendAPIAuthType = ( } return deserializeAws_restJson1BackendAPIAuthType(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfBackendJobRespObj = (output: any, context: __SerdeContext): BackendJobRespObj[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4450,13 +4454,14 @@ const deserializeAws_restJson1ListOfBackendJobRespObj = (output: any, context: _ } return deserializeAws_restJson1BackendJobRespObj(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfMfaTypesElement = ( output: any, context: __SerdeContext ): (MfaTypesElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4464,13 +4469,14 @@ const deserializeAws_restJson1ListOfMfaTypesElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfOAuthScopesElement = ( output: any, context: __SerdeContext ): (OAuthScopesElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4478,13 +4484,14 @@ const deserializeAws_restJson1ListOfOAuthScopesElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = ( output: any, context: __SerdeContext ): (RequiredSignUpAttributesElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4492,10 +4499,11 @@ const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfS3BucketInfo = (output: any, context: __SerdeContext): S3BucketInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4503,13 +4511,14 @@ const deserializeAws_restJson1ListOfS3BucketInfo = (output: any, context: __Serd } return deserializeAws_restJson1S3BucketInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfUnAuthenticatedElement = ( output: any, context: __SerdeContext ): (UnAuthenticatedElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4517,6 +4526,7 @@ const deserializeAws_restJson1ListOfUnAuthenticatedElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LoginAuthConfigReqObj = (output: any, context: __SerdeContext): LoginAuthConfigReqObj => { diff --git a/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts b/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts index 353a77f726c0..98827dc6120d 100644 --- a/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts +++ b/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts @@ -2059,7 +2059,7 @@ const deserializeAws_restJson1ComponentChild = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ComponentChildList = (output: any, context: __SerdeContext): ComponentChild[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2067,6 +2067,7 @@ const deserializeAws_restJson1ComponentChildList = (output: any, context: __Serd } return deserializeAws_restJson1ComponentChild(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentCollectionProperties = ( @@ -2129,7 +2130,7 @@ const deserializeAws_restJson1ComponentDataConfiguration = ( }; const deserializeAws_restJson1ComponentList = (output: any, context: __SerdeContext): Component[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2137,6 +2138,7 @@ const deserializeAws_restJson1ComponentList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Component(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentOverrides = ( @@ -2231,7 +2233,7 @@ const deserializeAws_restJson1ComponentPropertyBindingProperties = ( }; const deserializeAws_restJson1ComponentPropertyList = (output: any, context: __SerdeContext): ComponentProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2239,6 +2241,7 @@ const deserializeAws_restJson1ComponentPropertyList = (output: any, context: __S } return deserializeAws_restJson1ComponentProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentSummary = (output: any, context: __SerdeContext): ComponentSummary => { @@ -2252,7 +2255,7 @@ const deserializeAws_restJson1ComponentSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1ComponentSummaryList = (output: any, context: __SerdeContext): ComponentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2260,6 +2263,7 @@ const deserializeAws_restJson1ComponentSummaryList = (output: any, context: __Se } return deserializeAws_restJson1ComponentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentVariant = (output: any, context: __SerdeContext): ComponentVariant => { @@ -2276,7 +2280,7 @@ const deserializeAws_restJson1ComponentVariant = (output: any, context: __SerdeC }; const deserializeAws_restJson1ComponentVariants = (output: any, context: __SerdeContext): ComponentVariant[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2284,6 +2288,7 @@ const deserializeAws_restJson1ComponentVariants = (output: any, context: __Serde } return deserializeAws_restJson1ComponentVariant(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentVariantValues = ( @@ -2324,7 +2329,7 @@ const deserializeAws_restJson1FormBindings = ( }; const deserializeAws_restJson1IdentifierList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2332,6 +2337,7 @@ const deserializeAws_restJson1IdentifierList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Predicate = (output: any, context: __SerdeContext): Predicate => { @@ -2351,7 +2357,7 @@ const deserializeAws_restJson1Predicate = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1PredicateList = (output: any, context: __SerdeContext): Predicate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2359,6 +2365,7 @@ const deserializeAws_restJson1PredicateList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Predicate(entry, context); }); + return retVal; }; const deserializeAws_restJson1SortProperty = (output: any, context: __SerdeContext): SortProperty => { @@ -2369,7 +2376,7 @@ const deserializeAws_restJson1SortProperty = (output: any, context: __SerdeConte }; const deserializeAws_restJson1SortPropertyList = (output: any, context: __SerdeContext): SortProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2377,6 +2384,7 @@ const deserializeAws_restJson1SortPropertyList = (output: any, context: __SerdeC } return deserializeAws_restJson1SortProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -2421,7 +2429,7 @@ const deserializeAws_restJson1Theme = (output: any, context: __SerdeContext): Th }; const deserializeAws_restJson1ThemeList = (output: any, context: __SerdeContext): Theme[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2429,6 +2437,7 @@ const deserializeAws_restJson1ThemeList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Theme(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThemeSummary = (output: any, context: __SerdeContext): ThemeSummary => { @@ -2441,7 +2450,7 @@ const deserializeAws_restJson1ThemeSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ThemeSummaryList = (output: any, context: __SerdeContext): ThemeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2449,6 +2458,7 @@ const deserializeAws_restJson1ThemeSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1ThemeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThemeValue = (output: any, context: __SerdeContext): ThemeValue => { @@ -2472,7 +2482,7 @@ const deserializeAws_restJson1ThemeValues = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ThemeValuesList = (output: any, context: __SerdeContext): ThemeValues[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2480,6 +2490,7 @@ const deserializeAws_restJson1ThemeValuesList = (output: any, context: __SerdeCo } return deserializeAws_restJson1ThemeValues(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts index 46a822756549..2e61546f1a2a 100644 --- a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts +++ b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts @@ -14354,7 +14354,7 @@ const deserializeAws_restJson1IntegrationResponse = (output: any, context: __Ser }; const deserializeAws_restJson1ListOfApiKey = (output: any, context: __SerdeContext): ApiKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14362,10 +14362,11 @@ const deserializeAws_restJson1ListOfApiKey = (output: any, context: __SerdeConte } return deserializeAws_restJson1ApiKey(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfApiStage = (output: any, context: __SerdeContext): ApiStage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14373,10 +14374,11 @@ const deserializeAws_restJson1ListOfApiStage = (output: any, context: __SerdeCon } return deserializeAws_restJson1ApiStage(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfARNs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14384,10 +14386,11 @@ const deserializeAws_restJson1ListOfARNs = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfAuthorizer = (output: any, context: __SerdeContext): Authorizer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14395,10 +14398,11 @@ const deserializeAws_restJson1ListOfAuthorizer = (output: any, context: __SerdeC } return deserializeAws_restJson1Authorizer(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfBasePathMapping = (output: any, context: __SerdeContext): BasePathMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14406,10 +14410,11 @@ const deserializeAws_restJson1ListOfBasePathMapping = (output: any, context: __S } return deserializeAws_restJson1BasePathMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfClientCertificate = (output: any, context: __SerdeContext): ClientCertificate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14417,10 +14422,11 @@ const deserializeAws_restJson1ListOfClientCertificate = (output: any, context: _ } return deserializeAws_restJson1ClientCertificate(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfDeployment = (output: any, context: __SerdeContext): Deployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14428,10 +14434,11 @@ const deserializeAws_restJson1ListOfDeployment = (output: any, context: __SerdeC } return deserializeAws_restJson1Deployment(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfDocumentationPart = (output: any, context: __SerdeContext): DocumentationPart[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14439,13 +14446,14 @@ const deserializeAws_restJson1ListOfDocumentationPart = (output: any, context: _ } return deserializeAws_restJson1DocumentationPart(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfDocumentationVersion = ( output: any, context: __SerdeContext ): DocumentationVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14453,10 +14461,11 @@ const deserializeAws_restJson1ListOfDocumentationVersion = ( } return deserializeAws_restJson1DocumentationVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfDomainName = (output: any, context: __SerdeContext): DomainName[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14464,13 +14473,14 @@ const deserializeAws_restJson1ListOfDomainName = (output: any, context: __SerdeC } return deserializeAws_restJson1DomainName(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfEndpointType = ( output: any, context: __SerdeContext ): (EndpointType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14478,10 +14488,11 @@ const deserializeAws_restJson1ListOfEndpointType = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfGatewayResponse = (output: any, context: __SerdeContext): GatewayResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14489,10 +14500,11 @@ const deserializeAws_restJson1ListOfGatewayResponse = (output: any, context: __S } return deserializeAws_restJson1GatewayResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfLong = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14500,10 +14512,11 @@ const deserializeAws_restJson1ListOfLong = (output: any, context: __SerdeContext } return __expectLong(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfModel = (output: any, context: __SerdeContext): Model[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14511,10 +14524,11 @@ const deserializeAws_restJson1ListOfModel = (output: any, context: __SerdeContex } return deserializeAws_restJson1Model(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfRequestValidator = (output: any, context: __SerdeContext): RequestValidator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14522,10 +14536,11 @@ const deserializeAws_restJson1ListOfRequestValidator = (output: any, context: __ } return deserializeAws_restJson1RequestValidator(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfResource = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14533,10 +14548,11 @@ const deserializeAws_restJson1ListOfResource = (output: any, context: __SerdeCon } return deserializeAws_restJson1Resource(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfRestApi = (output: any, context: __SerdeContext): RestApi[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14544,13 +14560,14 @@ const deserializeAws_restJson1ListOfRestApi = (output: any, context: __SerdeCont } return deserializeAws_restJson1RestApi(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfSdkConfigurationProperty = ( output: any, context: __SerdeContext ): SdkConfigurationProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14558,10 +14575,11 @@ const deserializeAws_restJson1ListOfSdkConfigurationProperty = ( } return deserializeAws_restJson1SdkConfigurationProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfSdkType = (output: any, context: __SerdeContext): SdkType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14569,10 +14587,11 @@ const deserializeAws_restJson1ListOfSdkType = (output: any, context: __SerdeCont } return deserializeAws_restJson1SdkType(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfStage = (output: any, context: __SerdeContext): Stage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14580,10 +14599,11 @@ const deserializeAws_restJson1ListOfStage = (output: any, context: __SerdeContex } return deserializeAws_restJson1Stage(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfString = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14591,10 +14611,11 @@ const deserializeAws_restJson1ListOfString = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfUsage = (output: any, context: __SerdeContext): number[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14602,10 +14623,11 @@ const deserializeAws_restJson1ListOfUsage = (output: any, context: __SerdeContex } return deserializeAws_restJson1ListOfLong(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfUsagePlan = (output: any, context: __SerdeContext): UsagePlan[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14613,10 +14635,11 @@ const deserializeAws_restJson1ListOfUsagePlan = (output: any, context: __SerdeCo } return deserializeAws_restJson1UsagePlan(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfUsagePlanKey = (output: any, context: __SerdeContext): UsagePlanKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14624,10 +14647,11 @@ const deserializeAws_restJson1ListOfUsagePlanKey = (output: any, context: __Serd } return deserializeAws_restJson1UsagePlanKey(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfVpcLink = (output: any, context: __SerdeContext): VpcLink[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14635,6 +14659,7 @@ const deserializeAws_restJson1ListOfVpcLink = (output: any, context: __SerdeCont } return deserializeAws_restJson1VpcLink(entry, context); }); + return retVal; }; const deserializeAws_restJson1MapOfApiStageThrottleSettings = ( diff --git a/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts b/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts index 9a2751049840..3ac7898225c0 100644 --- a/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts @@ -8500,7 +8500,7 @@ const serializeAws_restJson1TlsConfigInput = (input: TlsConfigInput, context: __ }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8508,10 +8508,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfApi = (output: any, context: __SerdeContext): Api[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8519,10 +8520,11 @@ const deserializeAws_restJson1__listOfApi = (output: any, context: __SerdeContex } return deserializeAws_restJson1Api(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfApiMapping = (output: any, context: __SerdeContext): ApiMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8530,10 +8532,11 @@ const deserializeAws_restJson1__listOfApiMapping = (output: any, context: __Serd } return deserializeAws_restJson1ApiMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfAuthorizer = (output: any, context: __SerdeContext): Authorizer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8541,10 +8544,11 @@ const deserializeAws_restJson1__listOfAuthorizer = (output: any, context: __Serd } return deserializeAws_restJson1Authorizer(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDeployment = (output: any, context: __SerdeContext): Deployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8552,10 +8556,11 @@ const deserializeAws_restJson1__listOfDeployment = (output: any, context: __Serd } return deserializeAws_restJson1Deployment(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDomainName = (output: any, context: __SerdeContext): DomainName[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8563,10 +8568,11 @@ const deserializeAws_restJson1__listOfDomainName = (output: any, context: __Serd } return deserializeAws_restJson1DomainName(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfIntegration = (output: any, context: __SerdeContext): Integration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8574,13 +8580,14 @@ const deserializeAws_restJson1__listOfIntegration = (output: any, context: __Ser } return deserializeAws_restJson1Integration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfIntegrationResponse = ( output: any, context: __SerdeContext ): IntegrationResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8588,10 +8595,11 @@ const deserializeAws_restJson1__listOfIntegrationResponse = ( } return deserializeAws_restJson1IntegrationResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfModel = (output: any, context: __SerdeContext): Model[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8599,10 +8607,11 @@ const deserializeAws_restJson1__listOfModel = (output: any, context: __SerdeCont } return deserializeAws_restJson1Model(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRoute = (output: any, context: __SerdeContext): Route[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8610,10 +8619,11 @@ const deserializeAws_restJson1__listOfRoute = (output: any, context: __SerdeCont } return deserializeAws_restJson1Route(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRouteResponse = (output: any, context: __SerdeContext): RouteResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8621,10 +8631,11 @@ const deserializeAws_restJson1__listOfRouteResponse = (output: any, context: __S } return deserializeAws_restJson1RouteResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfStage = (output: any, context: __SerdeContext): Stage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8632,10 +8643,11 @@ const deserializeAws_restJson1__listOfStage = (output: any, context: __SerdeCont } return deserializeAws_restJson1Stage(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfVpcLink = (output: any, context: __SerdeContext): VpcLink[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8643,6 +8655,7 @@ const deserializeAws_restJson1__listOfVpcLink = (output: any, context: __SerdeCo } return deserializeAws_restJson1VpcLink(entry, context); }); + return retVal; }; const deserializeAws_restJson1AccessLogSettings = (output: any, context: __SerdeContext): AccessLogSettings => { @@ -8698,7 +8711,7 @@ const deserializeAws_restJson1ApiMapping = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AuthorizationScopes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8706,6 +8719,7 @@ const deserializeAws_restJson1AuthorizationScopes = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Authorizer = (output: any, context: __SerdeContext): Authorizer => { @@ -8754,7 +8768,7 @@ const deserializeAws_restJson1Cors = (output: any, context: __SerdeContext): Cor }; const deserializeAws_restJson1CorsHeaderList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8762,10 +8776,11 @@ const deserializeAws_restJson1CorsHeaderList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CorsMethodList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8773,10 +8788,11 @@ const deserializeAws_restJson1CorsMethodList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CorsOriginList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8784,6 +8800,7 @@ const deserializeAws_restJson1CorsOriginList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Deployment = (output: any, context: __SerdeContext): Deployment => { @@ -8844,7 +8861,7 @@ const deserializeAws_restJson1DomainNameConfigurations = ( output: any, context: __SerdeContext ): DomainNameConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8852,10 +8869,11 @@ const deserializeAws_restJson1DomainNameConfigurations = ( } return deserializeAws_restJson1DomainNameConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1IdentitySourceList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8863,6 +8881,7 @@ const deserializeAws_restJson1IdentitySourceList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Integration = (output: any, context: __SerdeContext): Integration => { @@ -9088,7 +9107,7 @@ const deserializeAws_restJson1RouteSettingsMap = ( }; const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9096,6 +9115,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Stage = (output: any, context: __SerdeContext): Stage => { @@ -9151,7 +9171,7 @@ const deserializeAws_restJson1StageVariablesMap = (output: any, context: __Serde }; const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9159,6 +9179,7 @@ const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-app-mesh/src/protocols/Aws_restJson1.ts b/clients/client-app-mesh/src/protocols/Aws_restJson1.ts index 4357c4e824db..23e518a1c25d 100644 --- a/clients/client-app-mesh/src/protocols/Aws_restJson1.ts +++ b/clients/client-app-mesh/src/protocols/Aws_restJson1.ts @@ -5890,7 +5890,7 @@ const deserializeAws_restJson1AwsCloudMapInstanceAttributes = ( output: any, context: __SerdeContext ): AwsCloudMapInstanceAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5898,6 +5898,7 @@ const deserializeAws_restJson1AwsCloudMapInstanceAttributes = ( } return deserializeAws_restJson1AwsCloudMapInstanceAttribute(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCloudMapServiceDiscovery = ( @@ -5933,7 +5934,7 @@ const deserializeAws_restJson1BackendDefaults = (output: any, context: __SerdeCo }; const deserializeAws_restJson1Backends = (output: any, context: __SerdeContext): Backend[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5941,10 +5942,11 @@ const deserializeAws_restJson1Backends = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Backend(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1CertificateAuthorityArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5952,6 +5954,7 @@ const deserializeAws_restJson1CertificateAuthorityArns = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ClientPolicy = (output: any, context: __SerdeContext): ClientPolicy => { @@ -6061,7 +6064,7 @@ const deserializeAws_restJson1GatewayRouteHostnameRewrite = ( }; const deserializeAws_restJson1GatewayRouteList = (output: any, context: __SerdeContext): GatewayRouteRef[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6069,6 +6072,7 @@ const deserializeAws_restJson1GatewayRouteList = (output: any, context: __SerdeC } return deserializeAws_restJson1GatewayRouteRef(entry, context); }); + return retVal; }; const deserializeAws_restJson1GatewayRouteRef = (output: any, context: __SerdeContext): GatewayRouteRef => { @@ -6194,7 +6198,7 @@ const deserializeAws_restJson1GrpcGatewayRouteMetadataList = ( output: any, context: __SerdeContext ): GrpcGatewayRouteMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6202,6 +6206,7 @@ const deserializeAws_restJson1GrpcGatewayRouteMetadataList = ( } return deserializeAws_restJson1GrpcGatewayRouteMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1GrpcGatewayRouteRewrite = ( @@ -6266,7 +6271,7 @@ const deserializeAws_restJson1GrpcRetryPolicyEvents = ( output: any, context: __SerdeContext ): (GrpcRetryPolicyEvent | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6274,6 +6279,7 @@ const deserializeAws_restJson1GrpcRetryPolicyEvents = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1GrpcRoute = (output: any, context: __SerdeContext): GrpcRoute => { @@ -6329,7 +6335,7 @@ const deserializeAws_restJson1GrpcRouteMetadata = (output: any, context: __Serde }; const deserializeAws_restJson1GrpcRouteMetadataList = (output: any, context: __SerdeContext): GrpcRouteMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6337,6 +6343,7 @@ const deserializeAws_restJson1GrpcRouteMetadataList = (output: any, context: __S } return deserializeAws_restJson1GrpcRouteMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1GrpcRouteMetadataMatchMethod = ( @@ -6456,7 +6463,7 @@ const deserializeAws_restJson1HttpGatewayRouteHeaders = ( output: any, context: __SerdeContext ): HttpGatewayRouteHeader[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6464,6 +6471,7 @@ const deserializeAws_restJson1HttpGatewayRouteHeaders = ( } return deserializeAws_restJson1HttpGatewayRouteHeader(entry, context); }); + return retVal; }; const deserializeAws_restJson1HttpGatewayRouteMatch = (output: any, context: __SerdeContext): HttpGatewayRouteMatch => { @@ -6546,7 +6554,7 @@ const deserializeAws_restJson1HttpQueryParameter = (output: any, context: __Serd }; const deserializeAws_restJson1HttpQueryParameters = (output: any, context: __SerdeContext): HttpQueryParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6554,6 +6562,7 @@ const deserializeAws_restJson1HttpQueryParameters = (output: any, context: __Ser } return deserializeAws_restJson1HttpQueryParameter(entry, context); }); + return retVal; }; const deserializeAws_restJson1HttpRetryPolicy = (output: any, context: __SerdeContext): HttpRetryPolicy => { @@ -6575,7 +6584,7 @@ const deserializeAws_restJson1HttpRetryPolicy = (output: any, context: __SerdeCo }; const deserializeAws_restJson1HttpRetryPolicyEvents = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6583,6 +6592,7 @@ const deserializeAws_restJson1HttpRetryPolicyEvents = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1HttpRoute = (output: any, context: __SerdeContext): HttpRoute => { @@ -6627,7 +6637,7 @@ const deserializeAws_restJson1HttpRouteHeader = (output: any, context: __SerdeCo }; const deserializeAws_restJson1HttpRouteHeaders = (output: any, context: __SerdeContext): HttpRouteHeader[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6635,6 +6645,7 @@ const deserializeAws_restJson1HttpRouteHeaders = (output: any, context: __SerdeC } return deserializeAws_restJson1HttpRouteHeader(entry, context); }); + return retVal; }; const deserializeAws_restJson1HttpRouteMatch = (output: any, context: __SerdeContext): HttpRouteMatch => { @@ -6700,7 +6711,7 @@ const deserializeAws_restJson1Listener = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Listeners = (output: any, context: __SerdeContext): Listener[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6708,6 +6719,7 @@ const deserializeAws_restJson1Listeners = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Listener(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListenerTimeout = (output: any, context: __SerdeContext): ListenerTimeout => { @@ -6866,7 +6878,7 @@ const deserializeAws_restJson1MeshData = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1MeshList = (output: any, context: __SerdeContext): MeshRef[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6874,6 +6886,7 @@ const deserializeAws_restJson1MeshList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1MeshRef(entry, context); }); + return retVal; }; const deserializeAws_restJson1MeshRef = (output: any, context: __SerdeContext): MeshRef => { @@ -6932,21 +6945,15 @@ const deserializeAws_restJson1PortMapping = (output: any, context: __SerdeContex }; const deserializeAws_restJson1PortSet = (output: any, context: __SerdeContext): number[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = __expectInt32(entry) as any; - if (uniqueValues.has(parsedEntry)) { - throw new TypeError('All elements of the set "com.amazonaws.appmesh#PortSet" must be unique.'); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1QueryParameterMatch = (output: any, context: __SerdeContext): QueryParameterMatch => { @@ -6994,7 +7001,7 @@ const deserializeAws_restJson1RouteData = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1RouteList = (output: any, context: __SerdeContext): RouteRef[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7002,6 +7009,7 @@ const deserializeAws_restJson1RouteList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1RouteRef(entry, context); }); + return retVal; }; const deserializeAws_restJson1RouteRef = (output: any, context: __SerdeContext): RouteRef => { @@ -7067,7 +7075,7 @@ const deserializeAws_restJson1ServiceDiscovery = (output: any, context: __SerdeC }; const deserializeAws_restJson1SubjectAlternativeNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7075,6 +7083,7 @@ const deserializeAws_restJson1SubjectAlternativeNameList = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SubjectAlternativeNameMatchers = ( @@ -7102,7 +7111,7 @@ const deserializeAws_restJson1SubjectAlternativeNames = ( }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): TagRef[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7110,6 +7119,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1TagRef(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagRef = (output: any, context: __SerdeContext): TagRef => { @@ -7123,7 +7133,7 @@ const deserializeAws_restJson1TcpRetryPolicyEvents = ( output: any, context: __SerdeContext ): (TcpRetryPolicyEvent | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7131,6 +7141,7 @@ const deserializeAws_restJson1TcpRetryPolicyEvents = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TcpRoute = (output: any, context: __SerdeContext): TcpRoute => { @@ -7257,7 +7268,7 @@ const deserializeAws_restJson1VirtualGatewayCertificateAuthorityArns = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7265,6 +7276,7 @@ const deserializeAws_restJson1VirtualGatewayCertificateAuthorityArns = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1VirtualGatewayClientPolicy = ( @@ -7411,7 +7423,7 @@ const deserializeAws_restJson1VirtualGatewayHttpConnectionPool = ( }; const deserializeAws_restJson1VirtualGatewayList = (output: any, context: __SerdeContext): VirtualGatewayRef[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7419,6 +7431,7 @@ const deserializeAws_restJson1VirtualGatewayList = (output: any, context: __Serd } return deserializeAws_restJson1VirtualGatewayRef(entry, context); }); + return retVal; }; const deserializeAws_restJson1VirtualGatewayListener = ( @@ -7449,7 +7462,7 @@ const deserializeAws_restJson1VirtualGatewayListeners = ( output: any, context: __SerdeContext ): VirtualGatewayListener[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7457,6 +7470,7 @@ const deserializeAws_restJson1VirtualGatewayListeners = ( } return deserializeAws_restJson1VirtualGatewayListener(entry, context); }); + return retVal; }; const deserializeAws_restJson1VirtualGatewayListenerTls = ( @@ -7763,7 +7777,7 @@ const deserializeAws_restJson1VirtualNodeHttpConnectionPool = ( }; const deserializeAws_restJson1VirtualNodeList = (output: any, context: __SerdeContext): VirtualNodeRef[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7771,6 +7785,7 @@ const deserializeAws_restJson1VirtualNodeList = (output: any, context: __SerdeCo } return deserializeAws_restJson1VirtualNodeRef(entry, context); }); + return retVal; }; const deserializeAws_restJson1VirtualNodeRef = (output: any, context: __SerdeContext): VirtualNodeRef => { @@ -7861,7 +7876,7 @@ const deserializeAws_restJson1VirtualRouterData = (output: any, context: __Serde }; const deserializeAws_restJson1VirtualRouterList = (output: any, context: __SerdeContext): VirtualRouterRef[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7869,6 +7884,7 @@ const deserializeAws_restJson1VirtualRouterList = (output: any, context: __Serde } return deserializeAws_restJson1VirtualRouterRef(entry, context); }); + return retVal; }; const deserializeAws_restJson1VirtualRouterListener = (output: any, context: __SerdeContext): VirtualRouterListener => { @@ -7884,7 +7900,7 @@ const deserializeAws_restJson1VirtualRouterListeners = ( output: any, context: __SerdeContext ): VirtualRouterListener[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7892,6 +7908,7 @@ const deserializeAws_restJson1VirtualRouterListeners = ( } return deserializeAws_restJson1VirtualRouterListener(entry, context); }); + return retVal; }; const deserializeAws_restJson1VirtualRouterRef = (output: any, context: __SerdeContext): VirtualRouterRef => { @@ -7967,7 +7984,7 @@ const deserializeAws_restJson1VirtualServiceData = (output: any, context: __Serd }; const deserializeAws_restJson1VirtualServiceList = (output: any, context: __SerdeContext): VirtualServiceRef[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7975,6 +7992,7 @@ const deserializeAws_restJson1VirtualServiceList = (output: any, context: __Serd } return deserializeAws_restJson1VirtualServiceRef(entry, context); }); + return retVal; }; const deserializeAws_restJson1VirtualServiceProvider = ( @@ -8036,7 +8054,7 @@ const deserializeAws_restJson1WeightedTarget = (output: any, context: __SerdeCon }; const deserializeAws_restJson1WeightedTargets = (output: any, context: __SerdeContext): WeightedTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8044,6 +8062,7 @@ const deserializeAws_restJson1WeightedTargets = (output: any, context: __SerdeCo } return deserializeAws_restJson1WeightedTarget(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-appconfig/src/protocols/Aws_restJson1.ts b/clients/client-appconfig/src/protocols/Aws_restJson1.ts index 02a530c2f250..d5ed031eb22a 100644 --- a/clients/client-appconfig/src/protocols/Aws_restJson1.ts +++ b/clients/client-appconfig/src/protocols/Aws_restJson1.ts @@ -3717,7 +3717,7 @@ const deserializeAws_restJson1Application = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ApplicationList = (output: any, context: __SerdeContext): Application[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3725,6 +3725,7 @@ const deserializeAws_restJson1ApplicationList = (output: any, context: __SerdeCo } return deserializeAws_restJson1Application(entry, context); }); + return retVal; }; const deserializeAws_restJson1BadRequestDetails = (output: any, context: __SerdeContext): BadRequestDetails => { @@ -3760,7 +3761,7 @@ const deserializeAws_restJson1ConfigurationProfileSummaryList = ( output: any, context: __SerdeContext ): ConfigurationProfileSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3768,6 +3769,7 @@ const deserializeAws_restJson1ConfigurationProfileSummaryList = ( } return deserializeAws_restJson1ConfigurationProfileSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeploymentEvent = (output: any, context: __SerdeContext): DeploymentEvent => { @@ -3783,7 +3785,7 @@ const deserializeAws_restJson1DeploymentEvent = (output: any, context: __SerdeCo }; const deserializeAws_restJson1DeploymentEvents = (output: any, context: __SerdeContext): DeploymentEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3791,10 +3793,11 @@ const deserializeAws_restJson1DeploymentEvents = (output: any, context: __SerdeC } return deserializeAws_restJson1DeploymentEvent(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeploymentList = (output: any, context: __SerdeContext): DeploymentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3802,6 +3805,7 @@ const deserializeAws_restJson1DeploymentList = (output: any, context: __SerdeCon } return deserializeAws_restJson1DeploymentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeploymentStrategy = (output: any, context: __SerdeContext): DeploymentStrategy => { @@ -3818,7 +3822,7 @@ const deserializeAws_restJson1DeploymentStrategy = (output: any, context: __Serd }; const deserializeAws_restJson1DeploymentStrategyList = (output: any, context: __SerdeContext): DeploymentStrategy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3826,6 +3830,7 @@ const deserializeAws_restJson1DeploymentStrategyList = (output: any, context: __ } return deserializeAws_restJson1DeploymentStrategy(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeploymentSummary = (output: any, context: __SerdeContext): DeploymentSummary => { @@ -3865,7 +3870,7 @@ const deserializeAws_restJson1Environment = (output: any, context: __SerdeContex }; const deserializeAws_restJson1EnvironmentList = (output: any, context: __SerdeContext): Environment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3873,6 +3878,7 @@ const deserializeAws_restJson1EnvironmentList = (output: any, context: __SerdeCo } return deserializeAws_restJson1Environment(entry, context); }); + return retVal; }; const deserializeAws_restJson1HostedConfigurationVersionSummary = ( @@ -3892,7 +3898,7 @@ const deserializeAws_restJson1HostedConfigurationVersionSummaryList = ( output: any, context: __SerdeContext ): HostedConfigurationVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3900,6 +3906,7 @@ const deserializeAws_restJson1HostedConfigurationVersionSummaryList = ( } return deserializeAws_restJson1HostedConfigurationVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1InvalidConfigurationDetail = ( @@ -3918,7 +3925,7 @@ const deserializeAws_restJson1InvalidConfigurationDetailList = ( output: any, context: __SerdeContext ): InvalidConfigurationDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3926,6 +3933,7 @@ const deserializeAws_restJson1InvalidConfigurationDetailList = ( } return deserializeAws_restJson1InvalidConfigurationDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1Monitor = (output: any, context: __SerdeContext): Monitor => { @@ -3936,7 +3944,7 @@ const deserializeAws_restJson1Monitor = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1MonitorList = (output: any, context: __SerdeContext): Monitor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3944,6 +3952,7 @@ const deserializeAws_restJson1MonitorList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Monitor(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3966,7 +3975,7 @@ const deserializeAws_restJson1Validator = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ValidatorList = (output: any, context: __SerdeContext): Validator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3974,13 +3983,14 @@ const deserializeAws_restJson1ValidatorList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Validator(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValidatorTypeList = ( output: any, context: __SerdeContext ): (ValidatorType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3988,6 +3998,7 @@ const deserializeAws_restJson1ValidatorTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-appflow/src/protocols/Aws_restJson1.ts b/clients/client-appflow/src/protocols/Aws_restJson1.ts index cb43529b78b6..b06faa1914f5 100644 --- a/clients/client-appflow/src/protocols/Aws_restJson1.ts +++ b/clients/client-appflow/src/protocols/Aws_restJson1.ts @@ -3794,7 +3794,7 @@ const deserializeAws_restJson1AmplitudeSourceProperties = ( }; const deserializeAws_restJson1AuthCodeUrlList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3802,6 +3802,7 @@ const deserializeAws_restJson1AuthCodeUrlList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AuthenticationConfig = (output: any, context: __SerdeContext): AuthenticationConfig => { @@ -3836,7 +3837,7 @@ const deserializeAws_restJson1AuthParameter = (output: any, context: __SerdeCont }; const deserializeAws_restJson1AuthParameterList = (output: any, context: __SerdeContext): AuthParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3844,6 +3845,7 @@ const deserializeAws_restJson1AuthParameterList = (output: any, context: __Serde } return deserializeAws_restJson1AuthParameter(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectorConfiguration = ( @@ -3996,7 +3998,7 @@ const deserializeAws_restJson1ConnectorEntityFieldList = ( output: any, context: __SerdeContext ): ConnectorEntityField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4004,10 +4006,11 @@ const deserializeAws_restJson1ConnectorEntityFieldList = ( } return deserializeAws_restJson1ConnectorEntityField(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectorEntityList = (output: any, context: __SerdeContext): ConnectorEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4015,6 +4018,7 @@ const deserializeAws_restJson1ConnectorEntityList = (output: any, context: __Ser } return deserializeAws_restJson1ConnectorEntity(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectorEntityMap = ( @@ -4033,7 +4037,7 @@ const deserializeAws_restJson1ConnectorEntityMap = ( }; const deserializeAws_restJson1ConnectorList = (output: any, context: __SerdeContext): ConnectorDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4041,6 +4045,7 @@ const deserializeAws_restJson1ConnectorList = (output: any, context: __SerdeCont } return deserializeAws_restJson1ConnectorDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectorMetadata = (output: any, context: __SerdeContext): ConnectorMetadata => { @@ -4133,7 +4138,7 @@ const deserializeAws_restJson1ConnectorMetadata = (output: any, context: __Serde }; const deserializeAws_restJson1ConnectorModeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4141,6 +4146,7 @@ const deserializeAws_restJson1ConnectorModeList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ConnectorOperator = (output: any, context: __SerdeContext): ConnectorOperator => { @@ -4195,7 +4201,7 @@ const deserializeAws_restJson1ConnectorProfileDetailList = ( output: any, context: __SerdeContext ): ConnectorProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4203,6 +4209,7 @@ const deserializeAws_restJson1ConnectorProfileDetailList = ( } return deserializeAws_restJson1ConnectorProfile(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectorProfileProperties = ( @@ -4319,7 +4326,7 @@ const deserializeAws_restJson1ConnectorRuntimeSettingList = ( output: any, context: __SerdeContext ): ConnectorRuntimeSetting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4327,10 +4334,11 @@ const deserializeAws_restJson1ConnectorRuntimeSettingList = ( } return deserializeAws_restJson1ConnectorRuntimeSetting(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectorSuppliedValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4338,10 +4346,11 @@ const deserializeAws_restJson1ConnectorSuppliedValueList = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ConnectorSuppliedValueOptionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4349,13 +4358,14 @@ const deserializeAws_restJson1ConnectorSuppliedValueOptionList = (output: any, c } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ConnectorTypeList = ( output: any, context: __SerdeContext ): (ConnectorType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4363,6 +4373,7 @@ const deserializeAws_restJson1ConnectorTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CustomAuthConfig = (output: any, context: __SerdeContext): CustomAuthConfig => { @@ -4376,7 +4387,7 @@ const deserializeAws_restJson1CustomAuthConfig = (output: any, context: __SerdeC }; const deserializeAws_restJson1CustomAuthConfigList = (output: any, context: __SerdeContext): CustomAuthConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4384,6 +4395,7 @@ const deserializeAws_restJson1CustomAuthConfigList = (output: any, context: __Se } return deserializeAws_restJson1CustomAuthConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1CustomConnectorDestinationProperties = ( @@ -4577,7 +4589,7 @@ const deserializeAws_restJson1DestinationFlowConfigList = ( output: any, context: __SerdeContext ): DestinationFlowConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4585,6 +4597,7 @@ const deserializeAws_restJson1DestinationFlowConfigList = ( } return deserializeAws_restJson1DestinationFlowConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1DynatraceConnectorProfileProperties = ( @@ -4716,7 +4729,7 @@ const deserializeAws_restJson1FieldTypeDetails = (output: any, context: __SerdeC }; const deserializeAws_restJson1FilterOperatorList = (output: any, context: __SerdeContext): (Operator | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4724,6 +4737,7 @@ const deserializeAws_restJson1FilterOperatorList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FlowDefinition = (output: any, context: __SerdeContext): FlowDefinition => { @@ -4759,7 +4773,7 @@ const deserializeAws_restJson1FlowDefinition = (output: any, context: __SerdeCon }; const deserializeAws_restJson1FlowExecutionList = (output: any, context: __SerdeContext): ExecutionRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4767,10 +4781,11 @@ const deserializeAws_restJson1FlowExecutionList = (output: any, context: __Serde } return deserializeAws_restJson1ExecutionRecord(entry, context); }); + return retVal; }; const deserializeAws_restJson1FlowList = (output: any, context: __SerdeContext): FlowDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4778,6 +4793,7 @@ const deserializeAws_restJson1FlowList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1FlowDefinition(entry, context); }); + return retVal; }; const deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = ( @@ -4838,7 +4854,7 @@ const deserializeAws_restJson1HoneycodeMetadata = (output: any, context: __Serde }; const deserializeAws_restJson1IdFieldNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4846,6 +4862,7 @@ const deserializeAws_restJson1IdFieldNameList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IncrementalPullConfig = (output: any, context: __SerdeContext): IncrementalPullConfig => { @@ -4939,7 +4956,7 @@ const deserializeAws_restJson1OAuth2GrantTypeSupportedList = ( output: any, context: __SerdeContext ): (OAuth2GrantType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4947,6 +4964,7 @@ const deserializeAws_restJson1OAuth2GrantTypeSupportedList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OAuth2Properties = (output: any, context: __SerdeContext): OAuth2Properties => { @@ -4968,7 +4986,7 @@ const deserializeAws_restJson1OAuthProperties = (output: any, context: __SerdeCo }; const deserializeAws_restJson1OAuthScopeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4976,6 +4994,7 @@ const deserializeAws_restJson1OAuthScopeList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PrefixConfig = (output: any, context: __SerdeContext): PrefixConfig => { @@ -5050,7 +5069,7 @@ const deserializeAws_restJson1RedshiftMetadata = (output: any, context: __SerdeC }; const deserializeAws_restJson1RegionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5058,6 +5077,7 @@ const deserializeAws_restJson1RegionList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3DestinationProperties = ( @@ -5238,7 +5258,7 @@ const deserializeAws_restJson1SchedulingFrequencyTypeList = ( output: any, context: __SerdeContext ): (ScheduleFrequencyType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5246,6 +5266,7 @@ const deserializeAws_restJson1SchedulingFrequencyTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ServiceNowConnectorProfileProperties = ( @@ -5434,7 +5455,7 @@ const deserializeAws_restJson1SourceFieldProperties = (output: any, context: __S }; const deserializeAws_restJson1SourceFields = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5442,6 +5463,7 @@ const deserializeAws_restJson1SourceFields = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SourceFlowConfig = (output: any, context: __SerdeContext): SourceFlowConfig => { @@ -5471,7 +5493,7 @@ const deserializeAws_restJson1SuccessResponseHandlingConfig = ( }; const deserializeAws_restJson1SupportedApiVersionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5479,6 +5501,7 @@ const deserializeAws_restJson1SupportedApiVersionList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SupportedFieldTypeDetails = ( @@ -5497,7 +5520,7 @@ const deserializeAws_restJson1SupportedOperatorList = ( output: any, context: __SerdeContext ): (Operators | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5505,10 +5528,11 @@ const deserializeAws_restJson1SupportedOperatorList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SupportedValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5516,13 +5540,14 @@ const deserializeAws_restJson1SupportedValueList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SupportedWriteOperationList = ( output: any, context: __SerdeContext ): (WriteOperationType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5530,6 +5555,7 @@ const deserializeAws_restJson1SupportedWriteOperationList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -5579,7 +5605,7 @@ const deserializeAws_restJson1TaskPropertiesMap = (output: any, context: __Serde }; const deserializeAws_restJson1Tasks = (output: any, context: __SerdeContext): Task[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5587,10 +5613,11 @@ const deserializeAws_restJson1Tasks = (output: any, context: __SerdeContext): Ta } return deserializeAws_restJson1Task(entry, context); }); + return retVal; }; const deserializeAws_restJson1TokenUrlList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5598,6 +5625,7 @@ const deserializeAws_restJson1TokenUrlList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TrendmicroConnectorProfileProperties = ( @@ -5640,7 +5668,7 @@ const deserializeAws_restJson1TriggerProperties = (output: any, context: __Serde }; const deserializeAws_restJson1TriggerTypeList = (output: any, context: __SerdeContext): (TriggerType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5648,6 +5676,7 @@ const deserializeAws_restJson1TriggerTypeList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1UpsolverDestinationProperties = ( diff --git a/clients/client-appintegrations/src/protocols/Aws_restJson1.ts b/clients/client-appintegrations/src/protocols/Aws_restJson1.ts index c63a98b3ebb7..1ead62af05c4 100644 --- a/clients/client-appintegrations/src/protocols/Aws_restJson1.ts +++ b/clients/client-appintegrations/src/protocols/Aws_restJson1.ts @@ -1610,7 +1610,7 @@ const deserializeAws_restJson1DataIntegrationAssociationsList = ( output: any, context: __SerdeContext ): DataIntegrationAssociationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1618,6 +1618,7 @@ const deserializeAws_restJson1DataIntegrationAssociationsList = ( } return deserializeAws_restJson1DataIntegrationAssociationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataIntegrationAssociationSummary = ( @@ -1635,7 +1636,7 @@ const deserializeAws_restJson1DataIntegrationsList = ( output: any, context: __SerdeContext ): DataIntegrationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1643,6 +1644,7 @@ const deserializeAws_restJson1DataIntegrationsList = ( } return deserializeAws_restJson1DataIntegrationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataIntegrationSummary = ( @@ -1700,7 +1702,7 @@ const deserializeAws_restJson1EventIntegrationAssociationsList = ( output: any, context: __SerdeContext ): EventIntegrationAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1708,10 +1710,11 @@ const deserializeAws_restJson1EventIntegrationAssociationsList = ( } return deserializeAws_restJson1EventIntegrationAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1EventIntegrationsList = (output: any, context: __SerdeContext): EventIntegration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1719,6 +1722,7 @@ const deserializeAws_restJson1EventIntegrationsList = (output: any, context: __S } return deserializeAws_restJson1EventIntegration(entry, context); }); + return retVal; }; const deserializeAws_restJson1ScheduleConfiguration = (output: any, context: __SerdeContext): ScheduleConfiguration => { diff --git a/clients/client-application-auto-scaling/src/protocols/Aws_json1_1.ts b/clients/client-application-auto-scaling/src/protocols/Aws_json1_1.ts index 354601353aab..b154e910db1d 100644 --- a/clients/client-application-auto-scaling/src/protocols/Aws_json1_1.ts +++ b/clients/client-application-auto-scaling/src/protocols/Aws_json1_1.ts @@ -1187,7 +1187,7 @@ const deserializeAws_json1_1Alarm = (output: any, context: __SerdeContext): Alar }; const deserializeAws_json1_1Alarms = (output: any, context: __SerdeContext): Alarm[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1195,6 +1195,7 @@ const deserializeAws_json1_1Alarms = (output: any, context: __SerdeContext): Ala } return deserializeAws_json1_1Alarm(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConcurrentUpdateException = ( @@ -1336,7 +1337,7 @@ const deserializeAws_json1_1MetricDimension = (output: any, context: __SerdeCont }; const deserializeAws_json1_1MetricDimensions = (output: any, context: __SerdeContext): MetricDimension[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1344,6 +1345,7 @@ const deserializeAws_json1_1MetricDimensions = (output: any, context: __SerdeCon } return deserializeAws_json1_1MetricDimension(entry, context); }); + return retVal; }; const deserializeAws_json1_1ObjectNotFoundException = ( @@ -1419,7 +1421,7 @@ const deserializeAws_json1_1ScalableTargetAction = (output: any, context: __Serd }; const deserializeAws_json1_1ScalableTargets = (output: any, context: __SerdeContext): ScalableTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1427,10 +1429,11 @@ const deserializeAws_json1_1ScalableTargets = (output: any, context: __SerdeCont } return deserializeAws_json1_1ScalableTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScalingActivities = (output: any, context: __SerdeContext): ScalingActivity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1438,6 +1441,7 @@ const deserializeAws_json1_1ScalingActivities = (output: any, context: __SerdeCo } return deserializeAws_json1_1ScalingActivity(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScalingActivity = (output: any, context: __SerdeContext): ScalingActivity => { @@ -1463,7 +1467,7 @@ const deserializeAws_json1_1ScalingActivity = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ScalingPolicies = (output: any, context: __SerdeContext): ScalingPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1471,6 +1475,7 @@ const deserializeAws_json1_1ScalingPolicies = (output: any, context: __SerdeCont } return deserializeAws_json1_1ScalingPolicy(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScalingPolicy = (output: any, context: __SerdeContext): ScalingPolicy => { @@ -1533,7 +1538,7 @@ const deserializeAws_json1_1ScheduledAction = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ScheduledActions = (output: any, context: __SerdeContext): ScheduledAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1541,6 +1546,7 @@ const deserializeAws_json1_1ScheduledActions = (output: any, context: __SerdeCon } return deserializeAws_json1_1ScheduledAction(entry, context); }); + return retVal; }; const deserializeAws_json1_1StepAdjustment = (output: any, context: __SerdeContext): StepAdjustment => { @@ -1552,7 +1558,7 @@ const deserializeAws_json1_1StepAdjustment = (output: any, context: __SerdeConte }; const deserializeAws_json1_1StepAdjustments = (output: any, context: __SerdeContext): StepAdjustment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1560,6 +1566,7 @@ const deserializeAws_json1_1StepAdjustments = (output: any, context: __SerdeCont } return deserializeAws_json1_1StepAdjustment(entry, context); }); + return retVal; }; const deserializeAws_json1_1StepScalingPolicyConfiguration = ( diff --git a/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts b/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts index 8e2cb09b0d35..6a791a38d869 100644 --- a/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts @@ -2535,7 +2535,7 @@ const deserializeAws_json1_1AgentConfigurationStatusList = ( output: any, context: __SerdeContext ): AgentConfigurationStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2543,6 +2543,7 @@ const deserializeAws_json1_1AgentConfigurationStatusList = ( } return deserializeAws_json1_1AgentConfigurationStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1AgentInfo = (output: any, context: __SerdeContext): AgentInfo => { @@ -2571,7 +2572,7 @@ const deserializeAws_json1_1AgentNetworkInfo = (output: any, context: __SerdeCon }; const deserializeAws_json1_1AgentNetworkInfoList = (output: any, context: __SerdeContext): AgentNetworkInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2579,10 +2580,11 @@ const deserializeAws_json1_1AgentNetworkInfoList = (output: any, context: __Serd } return deserializeAws_json1_1AgentNetworkInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1AgentsInfo = (output: any, context: __SerdeContext): AgentInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2590,6 +2592,7 @@ const deserializeAws_json1_1AgentsInfo = (output: any, context: __SerdeContext): } return deserializeAws_json1_1AgentInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociateConfigurationItemsToApplicationResponse = ( @@ -2623,7 +2626,7 @@ const deserializeAws_json1_1BatchDeleteImportDataErrorList = ( output: any, context: __SerdeContext ): BatchDeleteImportDataError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2631,6 +2634,7 @@ const deserializeAws_json1_1BatchDeleteImportDataErrorList = ( } return deserializeAws_json1_1BatchDeleteImportDataError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchDeleteImportDataResponse = ( @@ -2658,7 +2662,7 @@ const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContex }; const deserializeAws_json1_1Configurations = (output: any, context: __SerdeContext): { [key: string]: string }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2666,6 +2670,7 @@ const deserializeAws_json1_1Configurations = (output: any, context: __SerdeConte } return deserializeAws_json1_1Configuration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfigurationTag = (output: any, context: __SerdeContext): ConfigurationTag => { @@ -2682,7 +2687,7 @@ const deserializeAws_json1_1ConfigurationTag = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ConfigurationTagSet = (output: any, context: __SerdeContext): ConfigurationTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2690,6 +2695,7 @@ const deserializeAws_json1_1ConfigurationTagSet = (output: any, context: __Serde } return deserializeAws_json1_1ConfigurationTag(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConflictErrorException = (output: any, context: __SerdeContext): ConflictErrorException => { @@ -2727,7 +2733,7 @@ const deserializeAws_json1_1ContinuousExportDescriptions = ( output: any, context: __SerdeContext ): ContinuousExportDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2735,6 +2741,7 @@ const deserializeAws_json1_1ContinuousExportDescriptions = ( } return deserializeAws_json1_1ContinuousExportDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateApplicationResponse = ( @@ -2814,7 +2821,7 @@ const deserializeAws_json1_1DescribeConfigurationsAttributes = ( output: any, context: __SerdeContext ): { [key: string]: string }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2822,6 +2829,7 @@ const deserializeAws_json1_1DescribeConfigurationsAttributes = ( } return deserializeAws_json1_1DescribeConfigurationsAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeConfigurationsResponse = ( @@ -2937,7 +2945,7 @@ const deserializeAws_json1_1ExportInfo = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ExportsInfo = (output: any, context: __SerdeContext): ExportInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2945,6 +2953,7 @@ const deserializeAws_json1_1ExportsInfo = (output: any, context: __SerdeContext) } return deserializeAws_json1_1ExportInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetDiscoverySummaryResponse = ( @@ -3004,7 +3013,7 @@ const deserializeAws_json1_1ImportTask = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ImportTaskList = (output: any, context: __SerdeContext): ImportTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3012,6 +3021,7 @@ const deserializeAws_json1_1ImportTaskList = (output: any, context: __SerdeConte } return deserializeAws_json1_1ImportTask(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidParameterException = ( @@ -3076,7 +3086,7 @@ const deserializeAws_json1_1NeighborDetailsList = ( output: any, context: __SerdeContext ): NeighborConnectionDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3084,6 +3094,7 @@ const deserializeAws_json1_1NeighborDetailsList = ( } return deserializeAws_json1_1NeighborConnectionDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1OperationNotPermittedException = ( diff --git a/clients/client-application-insights/src/protocols/Aws_json1_1.ts b/clients/client-application-insights/src/protocols/Aws_json1_1.ts index bce904c91c3c..9e10cb5f5007 100644 --- a/clients/client-application-insights/src/protocols/Aws_json1_1.ts +++ b/clients/client-application-insights/src/protocols/Aws_json1_1.ts @@ -2312,7 +2312,7 @@ const deserializeAws_json1_1ApplicationComponentList = ( output: any, context: __SerdeContext ): ApplicationComponent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2320,6 +2320,7 @@ const deserializeAws_json1_1ApplicationComponentList = ( } return deserializeAws_json1_1ApplicationComponent(entry, context); }); + return retVal; }; const deserializeAws_json1_1ApplicationInfo = (output: any, context: __SerdeContext): ApplicationInfo => { @@ -2336,7 +2337,7 @@ const deserializeAws_json1_1ApplicationInfo = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ApplicationInfoList = (output: any, context: __SerdeContext): ApplicationInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2344,6 +2345,7 @@ const deserializeAws_json1_1ApplicationInfoList = (output: any, context: __Serde } return deserializeAws_json1_1ApplicationInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1BadRequestException = (output: any, context: __SerdeContext): BadRequestException => { @@ -2367,7 +2369,7 @@ const deserializeAws_json1_1ConfigurationEvent = (output: any, context: __SerdeC }; const deserializeAws_json1_1ConfigurationEventList = (output: any, context: __SerdeContext): ConfigurationEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2375,6 +2377,7 @@ const deserializeAws_json1_1ConfigurationEventList = (output: any, context: __Se } return deserializeAws_json1_1ConfigurationEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateApplicationResponse = ( @@ -2669,7 +2672,7 @@ const deserializeAws_json1_1LogPattern = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1LogPatternList = (output: any, context: __SerdeContext): LogPattern[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2677,10 +2680,11 @@ const deserializeAws_json1_1LogPatternList = (output: any, context: __SerdeConte } return deserializeAws_json1_1LogPattern(entry, context); }); + return retVal; }; const deserializeAws_json1_1LogPatternSetList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2688,6 +2692,7 @@ const deserializeAws_json1_1LogPatternSetList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Observation = (output: any, context: __SerdeContext): Observation => { @@ -2750,7 +2755,7 @@ const deserializeAws_json1_1Observation = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ObservationList = (output: any, context: __SerdeContext): Observation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2758,6 +2763,7 @@ const deserializeAws_json1_1ObservationList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Observation(entry, context); }); + return retVal; }; const deserializeAws_json1_1Problem = (output: any, context: __SerdeContext): Problem => { @@ -2790,7 +2796,7 @@ const deserializeAws_json1_1Problem = (output: any, context: __SerdeContext): Pr }; const deserializeAws_json1_1ProblemList = (output: any, context: __SerdeContext): Problem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2798,6 +2804,7 @@ const deserializeAws_json1_1ProblemList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Problem(entry, context); }); + return retVal; }; const deserializeAws_json1_1RelatedObservations = (output: any, context: __SerdeContext): RelatedObservations => { @@ -2816,7 +2823,7 @@ const deserializeAws_json1_1ResourceInUseException = (output: any, context: __Se }; const deserializeAws_json1_1ResourceList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2824,6 +2831,7 @@ const deserializeAws_json1_1ResourceList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceNotFoundException = ( @@ -2843,7 +2851,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2851,6 +2859,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-applicationcostprofiler/src/protocols/Aws_restJson1.ts b/clients/client-applicationcostprofiler/src/protocols/Aws_restJson1.ts index e6c2d1ddd1fa..212da16d9b5d 100644 --- a/clients/client-applicationcostprofiler/src/protocols/Aws_restJson1.ts +++ b/clients/client-applicationcostprofiler/src/protocols/Aws_restJson1.ts @@ -701,7 +701,7 @@ const deserializeAws_restJson1ReportDefinition = (output: any, context: __SerdeC }; const deserializeAws_restJson1ReportDefinitionList = (output: any, context: __SerdeContext): ReportDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -709,6 +709,7 @@ const deserializeAws_restJson1ReportDefinitionList = (output: any, context: __Se } return deserializeAws_restJson1ReportDefinition(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3Location = (output: any, context: __SerdeContext): S3Location => { diff --git a/clients/client-apprunner/src/protocols/Aws_json1_0.ts b/clients/client-apprunner/src/protocols/Aws_json1_0.ts index 7cf25d5dec57..2ef195c4283d 100644 --- a/clients/client-apprunner/src/protocols/Aws_json1_0.ts +++ b/clients/client-apprunner/src/protocols/Aws_json1_0.ts @@ -2393,7 +2393,7 @@ const deserializeAws_json1_0AutoScalingConfigurationSummaryList = ( output: any, context: __SerdeContext ): AutoScalingConfigurationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2401,6 +2401,7 @@ const deserializeAws_json1_0AutoScalingConfigurationSummaryList = ( } return deserializeAws_json1_0AutoScalingConfigurationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0CertificateValidationRecord = ( @@ -2419,7 +2420,7 @@ const deserializeAws_json1_0CertificateValidationRecordList = ( output: any, context: __SerdeContext ): CertificateValidationRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2427,6 +2428,7 @@ const deserializeAws_json1_0CertificateValidationRecordList = ( } return deserializeAws_json1_0CertificateValidationRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_0CodeConfiguration = (output: any, context: __SerdeContext): CodeConfiguration => { @@ -2496,7 +2498,7 @@ const deserializeAws_json1_0ConnectionSummary = (output: any, context: __SerdeCo }; const deserializeAws_json1_0ConnectionSummaryList = (output: any, context: __SerdeContext): ConnectionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2504,6 +2506,7 @@ const deserializeAws_json1_0ConnectionSummaryList = (output: any, context: __Ser } return deserializeAws_json1_0ConnectionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0CreateAutoScalingConfigurationResponse = ( @@ -2565,7 +2568,7 @@ const deserializeAws_json1_0CustomDomain = (output: any, context: __SerdeContext }; const deserializeAws_json1_0CustomDomainList = (output: any, context: __SerdeContext): CustomDomain[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2573,6 +2576,7 @@ const deserializeAws_json1_0CustomDomainList = (output: any, context: __SerdeCon } return deserializeAws_json1_0CustomDomain(entry, context); }); + return retVal; }; const deserializeAws_json1_0DeleteAutoScalingConfigurationResponse = ( @@ -2872,7 +2876,7 @@ const deserializeAws_json1_0OperationSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_0OperationSummaryList = (output: any, context: __SerdeContext): OperationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2880,6 +2884,7 @@ const deserializeAws_json1_0OperationSummaryList = (output: any, context: __Serd } return deserializeAws_json1_0OperationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0PauseServiceResponse = (output: any, context: __SerdeContext): PauseServiceResponse => { @@ -3000,7 +3005,7 @@ const deserializeAws_json1_0ServiceSummary = (output: any, context: __SerdeConte }; const deserializeAws_json1_0ServiceSummaryList = (output: any, context: __SerdeContext): ServiceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3008,6 +3013,7 @@ const deserializeAws_json1_0ServiceSummaryList = (output: any, context: __SerdeC } return deserializeAws_json1_0ServiceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0SourceCodeVersion = (output: any, context: __SerdeContext): SourceCodeVersion => { @@ -3045,7 +3051,7 @@ const deserializeAws_json1_0StartDeploymentResponse = ( }; const deserializeAws_json1_0StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3053,6 +3059,7 @@ const deserializeAws_json1_0StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => { @@ -3063,7 +3070,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3071,6 +3078,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -3117,7 +3125,7 @@ const deserializeAws_json1_0VpcConnector = (output: any, context: __SerdeContext }; const deserializeAws_json1_0VpcConnectors = (output: any, context: __SerdeContext): VpcConnector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3125,6 +3133,7 @@ const deserializeAws_json1_0VpcConnectors = (output: any, context: __SerdeContex } return deserializeAws_json1_0VpcConnector(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-appstream/src/protocols/Aws_json1_1.ts b/clients/client-appstream/src/protocols/Aws_json1_1.ts index 00f22514f194..a55eb89cca18 100644 --- a/clients/client-appstream/src/protocols/Aws_json1_1.ts +++ b/clients/client-appstream/src/protocols/Aws_json1_1.ts @@ -5876,7 +5876,7 @@ const deserializeAws_json1_1AccessEndpoint = (output: any, context: __SerdeConte }; const deserializeAws_json1_1AccessEndpointList = (output: any, context: __SerdeContext): AccessEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5884,6 +5884,7 @@ const deserializeAws_json1_1AccessEndpointList = (output: any, context: __SerdeC } return deserializeAws_json1_1AccessEndpoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1AppBlock = (output: any, context: __SerdeContext): AppBlock => { @@ -5908,7 +5909,7 @@ const deserializeAws_json1_1AppBlock = (output: any, context: __SerdeContext): A }; const deserializeAws_json1_1AppBlocks = (output: any, context: __SerdeContext): AppBlock[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5916,6 +5917,7 @@ const deserializeAws_json1_1AppBlocks = (output: any, context: __SerdeContext): } return deserializeAws_json1_1AppBlock(entry, context); }); + return retVal; }; const deserializeAws_json1_1Application = (output: any, context: __SerdeContext): Application => { @@ -5967,7 +5969,7 @@ const deserializeAws_json1_1ApplicationFleetAssociationList = ( output: any, context: __SerdeContext ): ApplicationFleetAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5975,10 +5977,11 @@ const deserializeAws_json1_1ApplicationFleetAssociationList = ( } return deserializeAws_json1_1ApplicationFleetAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1Applications = (output: any, context: __SerdeContext): Application[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5986,6 +5989,7 @@ const deserializeAws_json1_1Applications = (output: any, context: __SerdeContext } return deserializeAws_json1_1Application(entry, context); }); + return retVal; }; const deserializeAws_json1_1ApplicationSettingsResponse = ( @@ -6460,7 +6464,7 @@ const deserializeAws_json1_1DirectoryConfig = (output: any, context: __SerdeCont }; const deserializeAws_json1_1DirectoryConfigList = (output: any, context: __SerdeContext): DirectoryConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6468,6 +6472,7 @@ const deserializeAws_json1_1DirectoryConfigList = (output: any, context: __Serde } return deserializeAws_json1_1DirectoryConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1DisableUserResult = (output: any, context: __SerdeContext): DisableUserResult => { @@ -6503,7 +6508,7 @@ const deserializeAws_json1_1DomainJoinInfo = (output: any, context: __SerdeConte }; const deserializeAws_json1_1DomainList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6511,10 +6516,11 @@ const deserializeAws_json1_1DomainList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1EmbedHostDomains = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6522,6 +6528,7 @@ const deserializeAws_json1_1EmbedHostDomains = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1EnableUserResult = (output: any, context: __SerdeContext): EnableUserResult => { @@ -6535,7 +6542,7 @@ const deserializeAws_json1_1EntitledApplication = (output: any, context: __Serde }; const deserializeAws_json1_1EntitledApplicationList = (output: any, context: __SerdeContext): EntitledApplication[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6543,6 +6550,7 @@ const deserializeAws_json1_1EntitledApplicationList = (output: any, context: __S } return deserializeAws_json1_1EntitledApplication(entry, context); }); + return retVal; }; const deserializeAws_json1_1Entitlement = (output: any, context: __SerdeContext): Entitlement => { @@ -6586,7 +6594,7 @@ const deserializeAws_json1_1EntitlementAttributeList = ( output: any, context: __SerdeContext ): EntitlementAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6594,10 +6602,11 @@ const deserializeAws_json1_1EntitlementAttributeList = ( } return deserializeAws_json1_1EntitlementAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntitlementList = (output: any, context: __SerdeContext): Entitlement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6605,6 +6614,7 @@ const deserializeAws_json1_1EntitlementList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Entitlement(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntitlementNotFoundException = ( @@ -6674,7 +6684,7 @@ const deserializeAws_json1_1FleetError = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1FleetErrors = (output: any, context: __SerdeContext): FleetError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6682,10 +6692,11 @@ const deserializeAws_json1_1FleetErrors = (output: any, context: __SerdeContext) } return deserializeAws_json1_1FleetError(entry, context); }); + return retVal; }; const deserializeAws_json1_1FleetList = (output: any, context: __SerdeContext): Fleet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6693,6 +6704,7 @@ const deserializeAws_json1_1FleetList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Fleet(entry, context); }); + return retVal; }; const deserializeAws_json1_1Image = (output: any, context: __SerdeContext): Image => { @@ -6780,7 +6792,7 @@ const deserializeAws_json1_1ImageBuilder = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ImageBuilderList = (output: any, context: __SerdeContext): ImageBuilder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6788,6 +6800,7 @@ const deserializeAws_json1_1ImageBuilderList = (output: any, context: __SerdeCon } return deserializeAws_json1_1ImageBuilder(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageBuilderStateChangeReason = ( @@ -6801,7 +6814,7 @@ const deserializeAws_json1_1ImageBuilderStateChangeReason = ( }; const deserializeAws_json1_1ImageList = (output: any, context: __SerdeContext): Image[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6809,6 +6822,7 @@ const deserializeAws_json1_1ImageList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Image(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImagePermissions = (output: any, context: __SerdeContext): ImagePermissions => { @@ -6872,7 +6886,7 @@ const deserializeAws_json1_1LastReportGenerationExecutionErrors = ( output: any, context: __SerdeContext ): LastReportGenerationExecutionError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6880,6 +6894,7 @@ const deserializeAws_json1_1LastReportGenerationExecutionErrors = ( } return deserializeAws_json1_1LastReportGenerationExecutionError(entry, context); }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -6972,7 +6987,7 @@ const deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6980,10 +6995,11 @@ const deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Platforms = (output: any, context: __SerdeContext): (PlatformType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6991,6 +7007,7 @@ const deserializeAws_json1_1Platforms = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RequestLimitExceededException = ( @@ -7023,7 +7040,7 @@ const deserializeAws_json1_1ResourceError = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ResourceErrors = (output: any, context: __SerdeContext): ResourceError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7031,6 +7048,7 @@ const deserializeAws_json1_1ResourceErrors = (output: any, context: __SerdeConte } return deserializeAws_json1_1ResourceError(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => { @@ -7077,7 +7095,7 @@ const deserializeAws_json1_1ScriptDetails = (output: any, context: __SerdeContex }; const deserializeAws_json1_1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7085,6 +7103,7 @@ const deserializeAws_json1_1SecurityGroupIdList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ServiceAccountCredentials = ( @@ -7122,7 +7141,7 @@ const deserializeAws_json1_1Session = (output: any, context: __SerdeContext): Se }; const deserializeAws_json1_1SessionList = (output: any, context: __SerdeContext): Session[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7130,6 +7149,7 @@ const deserializeAws_json1_1SessionList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Session(entry, context); }); + return retVal; }; const deserializeAws_json1_1SharedImagePermissions = (output: any, context: __SerdeContext): SharedImagePermissions => { @@ -7146,7 +7166,7 @@ const deserializeAws_json1_1SharedImagePermissionsList = ( output: any, context: __SerdeContext ): SharedImagePermissions[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7154,6 +7174,7 @@ const deserializeAws_json1_1SharedImagePermissionsList = ( } return deserializeAws_json1_1SharedImagePermissions(entry, context); }); + return retVal; }; const deserializeAws_json1_1Stack = (output: any, context: __SerdeContext): Stack => { @@ -7203,7 +7224,7 @@ const deserializeAws_json1_1StackError = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1StackErrors = (output: any, context: __SerdeContext): StackError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7211,10 +7232,11 @@ const deserializeAws_json1_1StackErrors = (output: any, context: __SerdeContext) } return deserializeAws_json1_1StackError(entry, context); }); + return retVal; }; const deserializeAws_json1_1StackList = (output: any, context: __SerdeContext): Stack[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7222,6 +7244,7 @@ const deserializeAws_json1_1StackList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Stack(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartFleetResult = (output: any, context: __SerdeContext): StartFleetResult => { @@ -7265,7 +7288,7 @@ const deserializeAws_json1_1StorageConnector = (output: any, context: __SerdeCon }; const deserializeAws_json1_1StorageConnectorList = (output: any, context: __SerdeContext): StorageConnector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7273,10 +7296,11 @@ const deserializeAws_json1_1StorageConnectorList = (output: any, context: __Serd } return deserializeAws_json1_1StorageConnector(entry, context); }); + return retVal; }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7284,10 +7308,11 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7295,6 +7320,7 @@ const deserializeAws_json1_1SubnetIdList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -7400,7 +7426,7 @@ const deserializeAws_json1_1UsageReportSubscriptionList = ( output: any, context: __SerdeContext ): UsageReportSubscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7408,10 +7434,11 @@ const deserializeAws_json1_1UsageReportSubscriptionList = ( } return deserializeAws_json1_1UsageReportSubscription(entry, context); }); + return retVal; }; const deserializeAws_json1_1UsbDeviceFilterStrings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7419,6 +7446,7 @@ const deserializeAws_json1_1UsbDeviceFilterStrings = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1User = (output: any, context: __SerdeContext): User => { @@ -7438,7 +7466,7 @@ const deserializeAws_json1_1User = (output: any, context: __SerdeContext): User }; const deserializeAws_json1_1UserList = (output: any, context: __SerdeContext): User[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7446,6 +7474,7 @@ const deserializeAws_json1_1UserList = (output: any, context: __SerdeContext): U } return deserializeAws_json1_1User(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserSetting = (output: any, context: __SerdeContext): UserSetting => { @@ -7456,7 +7485,7 @@ const deserializeAws_json1_1UserSetting = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1UserSettingList = (output: any, context: __SerdeContext): UserSetting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7464,6 +7493,7 @@ const deserializeAws_json1_1UserSettingList = (output: any, context: __SerdeCont } return deserializeAws_json1_1UserSetting(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserStackAssociation = (output: any, context: __SerdeContext): UserStackAssociation => { @@ -7493,7 +7523,7 @@ const deserializeAws_json1_1UserStackAssociationErrorList = ( output: any, context: __SerdeContext ): UserStackAssociationError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7501,13 +7531,14 @@ const deserializeAws_json1_1UserStackAssociationErrorList = ( } return deserializeAws_json1_1UserStackAssociationError(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserStackAssociationList = ( output: any, context: __SerdeContext ): UserStackAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7515,6 +7546,7 @@ const deserializeAws_json1_1UserStackAssociationList = ( } return deserializeAws_json1_1UserStackAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1VpcConfig = (output: any, context: __SerdeContext): VpcConfig => { diff --git a/clients/client-appsync/src/protocols/Aws_restJson1.ts b/clients/client-appsync/src/protocols/Aws_restJson1.ts index 471c562eea1d..725a95ba70ac 100644 --- a/clients/client-appsync/src/protocols/Aws_restJson1.ts +++ b/clients/client-appsync/src/protocols/Aws_restJson1.ts @@ -5170,7 +5170,7 @@ const deserializeAws_restJson1AdditionalAuthenticationProviders = ( output: any, context: __SerdeContext ): AdditionalAuthenticationProvider[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5178,6 +5178,7 @@ const deserializeAws_restJson1AdditionalAuthenticationProviders = ( } return deserializeAws_restJson1AdditionalAuthenticationProvider(entry, context); }); + return retVal; }; const deserializeAws_restJson1ApiAssociation = (output: any, context: __SerdeContext): ApiAssociation => { @@ -5210,7 +5211,7 @@ const deserializeAws_restJson1ApiKey = (output: any, context: __SerdeContext): A }; const deserializeAws_restJson1ApiKeys = (output: any, context: __SerdeContext): ApiKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5218,6 +5219,7 @@ const deserializeAws_restJson1ApiKeys = (output: any, context: __SerdeContext): } return deserializeAws_restJson1ApiKey(entry, context); }); + return retVal; }; const deserializeAws_restJson1AuthorizationConfig = (output: any, context: __SerdeContext): AuthorizationConfig => { @@ -5248,7 +5250,7 @@ const deserializeAws_restJson1CachingConfig = (output: any, context: __SerdeCont }; const deserializeAws_restJson1CachingKeys = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5256,6 +5258,7 @@ const deserializeAws_restJson1CachingKeys = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CognitoUserPoolConfig = (output: any, context: __SerdeContext): CognitoUserPoolConfig => { @@ -5301,7 +5304,7 @@ const deserializeAws_restJson1DataSource = (output: any, context: __SerdeContext }; const deserializeAws_restJson1DataSources = (output: any, context: __SerdeContext): DataSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5309,6 +5312,7 @@ const deserializeAws_restJson1DataSources = (output: any, context: __SerdeContex } return deserializeAws_restJson1DataSource(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeltaSyncConfig = (output: any, context: __SerdeContext): DeltaSyncConfig => { @@ -5330,7 +5334,7 @@ const deserializeAws_restJson1DomainNameConfig = (output: any, context: __SerdeC }; const deserializeAws_restJson1DomainNameConfigs = (output: any, context: __SerdeContext): DomainNameConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5338,6 +5342,7 @@ const deserializeAws_restJson1DomainNameConfigs = (output: any, context: __Serde } return deserializeAws_restJson1DomainNameConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1DynamodbDataSourceConfig = ( @@ -5385,7 +5390,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __S }; const deserializeAws_restJson1Functions = (output: any, context: __SerdeContext): FunctionConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5393,10 +5398,11 @@ const deserializeAws_restJson1Functions = (output: any, context: __SerdeContext) } return deserializeAws_restJson1FunctionConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1FunctionsIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5404,6 +5410,7 @@ const deserializeAws_restJson1FunctionsIds = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1GraphqlApi = (output: any, context: __SerdeContext): GraphqlApi => { @@ -5446,7 +5453,7 @@ const deserializeAws_restJson1GraphqlApi = (output: any, context: __SerdeContext }; const deserializeAws_restJson1GraphqlApis = (output: any, context: __SerdeContext): GraphqlApi[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5454,6 +5461,7 @@ const deserializeAws_restJson1GraphqlApis = (output: any, context: __SerdeContex } return deserializeAws_restJson1GraphqlApi(entry, context); }); + return retVal; }; const deserializeAws_restJson1HttpDataSourceConfig = (output: any, context: __SerdeContext): HttpDataSourceConfig => { @@ -5595,7 +5603,7 @@ const deserializeAws_restJson1Resolver = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Resolvers = (output: any, context: __SerdeContext): Resolver[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5603,6 +5611,7 @@ const deserializeAws_restJson1Resolvers = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Resolver(entry, context); }); + return retVal; }; const deserializeAws_restJson1SyncConfig = (output: any, context: __SerdeContext): SyncConfig => { @@ -5639,7 +5648,7 @@ const deserializeAws_restJson1Type = (output: any, context: __SerdeContext): Typ }; const deserializeAws_restJson1TypeList = (output: any, context: __SerdeContext): Type[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5647,6 +5656,7 @@ const deserializeAws_restJson1TypeList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Type(entry, context); }); + return retVal; }; const deserializeAws_restJson1UserPoolConfig = (output: any, context: __SerdeContext): UserPoolConfig => { diff --git a/clients/client-athena/src/protocols/Aws_json1_1.ts b/clients/client-athena/src/protocols/Aws_json1_1.ts index 11cb09c062ce..f554fa3013dd 100644 --- a/clients/client-athena/src/protocols/Aws_json1_1.ts +++ b/clients/client-athena/src/protocols/Aws_json1_1.ts @@ -2847,7 +2847,7 @@ const deserializeAws_json1_1ColumnInfo = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ColumnInfoList = (output: any, context: __SerdeContext): ColumnInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2855,10 +2855,11 @@ const deserializeAws_json1_1ColumnInfoList = (output: any, context: __SerdeConte } return deserializeAws_json1_1ColumnInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ColumnList = (output: any, context: __SerdeContext): Column[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2866,6 +2867,7 @@ const deserializeAws_json1_1ColumnList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Column(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateDataCatalogOutput = ( @@ -2904,7 +2906,7 @@ const deserializeAws_json1_1Database = (output: any, context: __SerdeContext): D }; const deserializeAws_json1_1DatabaseList = (output: any, context: __SerdeContext): Database[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2912,6 +2914,7 @@ const deserializeAws_json1_1DatabaseList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Database(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataCatalog = (output: any, context: __SerdeContext): DataCatalog => { @@ -2934,7 +2937,7 @@ const deserializeAws_json1_1DataCatalogSummary = (output: any, context: __SerdeC }; const deserializeAws_json1_1DataCatalogSummaryList = (output: any, context: __SerdeContext): DataCatalogSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2942,6 +2945,7 @@ const deserializeAws_json1_1DataCatalogSummaryList = (output: any, context: __Se } return deserializeAws_json1_1DataCatalogSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1Datum = (output: any, context: __SerdeContext): Datum => { @@ -2951,7 +2955,7 @@ const deserializeAws_json1_1Datum = (output: any, context: __SerdeContext): Datu }; const deserializeAws_json1_1datumList = (output: any, context: __SerdeContext): Datum[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2959,6 +2963,7 @@ const deserializeAws_json1_1datumList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Datum(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeleteDataCatalogOutput = ( @@ -3001,7 +3006,7 @@ const deserializeAws_json1_1EngineVersion = (output: any, context: __SerdeContex }; const deserializeAws_json1_1EngineVersionsList = (output: any, context: __SerdeContext): EngineVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3009,6 +3014,7 @@ const deserializeAws_json1_1EngineVersionsList = (output: any, context: __SerdeC } return deserializeAws_json1_1EngineVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetDatabaseOutput = (output: any, context: __SerdeContext): GetDatabaseOutput => { @@ -3233,7 +3239,7 @@ const deserializeAws_json1_1NamedQuery = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1NamedQueryIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3241,10 +3247,11 @@ const deserializeAws_json1_1NamedQueryIdList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NamedQueryList = (output: any, context: __SerdeContext): NamedQuery[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3252,6 +3259,7 @@ const deserializeAws_json1_1NamedQueryList = (output: any, context: __SerdeConte } return deserializeAws_json1_1NamedQuery(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParametersMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3283,7 +3291,7 @@ const deserializeAws_json1_1PreparedStatementsList = ( output: any, context: __SerdeContext ): PreparedStatementSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3291,6 +3299,7 @@ const deserializeAws_json1_1PreparedStatementsList = ( } return deserializeAws_json1_1PreparedStatementSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PreparedStatementSummary = ( @@ -3343,7 +3352,7 @@ const deserializeAws_json1_1QueryExecutionContext = (output: any, context: __Ser }; const deserializeAws_json1_1QueryExecutionIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3351,10 +3360,11 @@ const deserializeAws_json1_1QueryExecutionIdList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1QueryExecutionList = (output: any, context: __SerdeContext): QueryExecution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3362,6 +3372,7 @@ const deserializeAws_json1_1QueryExecutionList = (output: any, context: __SerdeC } return deserializeAws_json1_1QueryExecution(entry, context); }); + return retVal; }; const deserializeAws_json1_1QueryExecutionStatistics = ( @@ -3451,7 +3462,7 @@ const deserializeAws_json1_1Row = (output: any, context: __SerdeContext): Row => }; const deserializeAws_json1_1RowList = (output: any, context: __SerdeContext): Row[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3459,6 +3470,7 @@ const deserializeAws_json1_1RowList = (output: any, context: __SerdeContext): Ro } return deserializeAws_json1_1Row(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartQueryExecutionOutput = ( @@ -3505,7 +3517,7 @@ const deserializeAws_json1_1TableMetadata = (output: any, context: __SerdeContex }; const deserializeAws_json1_1TableMetadataList = (output: any, context: __SerdeContext): TableMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3513,6 +3525,7 @@ const deserializeAws_json1_1TableMetadataList = (output: any, context: __SerdeCo } return deserializeAws_json1_1TableMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -3523,7 +3536,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3531,6 +3544,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceOutput = (output: any, context: __SerdeContext): TagResourceOutput => { @@ -3562,7 +3576,7 @@ const deserializeAws_json1_1UnprocessedNamedQueryIdList = ( output: any, context: __SerdeContext ): UnprocessedNamedQueryId[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3570,6 +3584,7 @@ const deserializeAws_json1_1UnprocessedNamedQueryIdList = ( } return deserializeAws_json1_1UnprocessedNamedQueryId(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnprocessedQueryExecutionId = ( @@ -3587,7 +3602,7 @@ const deserializeAws_json1_1UnprocessedQueryExecutionIdList = ( output: any, context: __SerdeContext ): UnprocessedQueryExecutionId[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3595,6 +3610,7 @@ const deserializeAws_json1_1UnprocessedQueryExecutionIdList = ( } return deserializeAws_json1_1UnprocessedQueryExecutionId(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagResourceOutput = (output: any, context: __SerdeContext): UntagResourceOutput => { @@ -3653,7 +3669,7 @@ const deserializeAws_json1_1WorkGroupConfiguration = (output: any, context: __Se }; const deserializeAws_json1_1WorkGroupsList = (output: any, context: __SerdeContext): WorkGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3661,6 +3677,7 @@ const deserializeAws_json1_1WorkGroupsList = (output: any, context: __SerdeConte } return deserializeAws_json1_1WorkGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1WorkGroupSummary = (output: any, context: __SerdeContext): WorkGroupSummary => { diff --git a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts index ff47dea1aa84..0f8a6d9a50ae 100644 --- a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts @@ -5962,7 +5962,7 @@ const deserializeAws_restJson1AssessmentControl = (output: any, context: __Serde }; const deserializeAws_restJson1AssessmentControls = (output: any, context: __SerdeContext): AssessmentControl[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5970,6 +5970,7 @@ const deserializeAws_restJson1AssessmentControls = (output: any, context: __Serd } return deserializeAws_restJson1AssessmentControl(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssessmentControlSet = (output: any, context: __SerdeContext): AssessmentControlSet => { @@ -5998,7 +5999,7 @@ const deserializeAws_restJson1AssessmentControlSets = ( output: any, context: __SerdeContext ): AssessmentControlSet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6006,6 +6007,7 @@ const deserializeAws_restJson1AssessmentControlSets = ( } return deserializeAws_restJson1AssessmentControlSet(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssessmentEvidenceFolder = ( @@ -6041,7 +6043,7 @@ const deserializeAws_restJson1AssessmentEvidenceFolders = ( output: any, context: __SerdeContext ): AssessmentEvidenceFolder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6049,6 +6051,7 @@ const deserializeAws_restJson1AssessmentEvidenceFolders = ( } return deserializeAws_restJson1AssessmentEvidenceFolder(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssessmentFramework = (output: any, context: __SerdeContext): AssessmentFramework => { @@ -6127,7 +6130,7 @@ const deserializeAws_restJson1AssessmentFrameworkShareRequestList = ( output: any, context: __SerdeContext ): AssessmentFrameworkShareRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6135,6 +6138,7 @@ const deserializeAws_restJson1AssessmentFrameworkShareRequestList = ( } return deserializeAws_restJson1AssessmentFrameworkShareRequest(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssessmentMetadata = (output: any, context: __SerdeContext): AssessmentMetadata => { @@ -6231,7 +6235,7 @@ const deserializeAws_restJson1AssessmentReportEvidenceErrors = ( output: any, context: __SerdeContext ): AssessmentReportEvidenceError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6239,6 +6243,7 @@ const deserializeAws_restJson1AssessmentReportEvidenceErrors = ( } return deserializeAws_restJson1AssessmentReportEvidenceError(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssessmentReportMetadata = ( @@ -6274,7 +6279,7 @@ const deserializeAws_restJson1AssessmentReportsMetadata = ( output: any, context: __SerdeContext ): AssessmentReportMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6282,6 +6287,7 @@ const deserializeAws_restJson1AssessmentReportsMetadata = ( } return deserializeAws_restJson1AssessmentReportMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1AWSAccount = (output: any, context: __SerdeContext): AWSAccount => { @@ -6293,7 +6299,7 @@ const deserializeAws_restJson1AWSAccount = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AWSAccounts = (output: any, context: __SerdeContext): AWSAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6301,6 +6307,7 @@ const deserializeAws_restJson1AWSAccounts = (output: any, context: __SerdeContex } return deserializeAws_restJson1AWSAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1AWSService = (output: any, context: __SerdeContext): AWSService => { @@ -6310,7 +6317,7 @@ const deserializeAws_restJson1AWSService = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AWSServices = (output: any, context: __SerdeContext): AWSService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6318,6 +6325,7 @@ const deserializeAws_restJson1AWSServices = (output: any, context: __SerdeContex } return deserializeAws_restJson1AWSService(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchCreateDelegationByAssessmentError = ( @@ -6338,7 +6346,7 @@ const deserializeAws_restJson1BatchCreateDelegationByAssessmentErrors = ( output: any, context: __SerdeContext ): BatchCreateDelegationByAssessmentError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6346,6 +6354,7 @@ const deserializeAws_restJson1BatchCreateDelegationByAssessmentErrors = ( } return deserializeAws_restJson1BatchCreateDelegationByAssessmentError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchDeleteDelegationByAssessmentError = ( @@ -6363,7 +6372,7 @@ const deserializeAws_restJson1BatchDeleteDelegationByAssessmentErrors = ( output: any, context: __SerdeContext ): BatchDeleteDelegationByAssessmentError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6371,6 +6380,7 @@ const deserializeAws_restJson1BatchDeleteDelegationByAssessmentErrors = ( } return deserializeAws_restJson1BatchDeleteDelegationByAssessmentError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlError = ( @@ -6391,7 +6401,7 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors = ( output: any, context: __SerdeContext ): BatchImportEvidenceToAssessmentControlError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6399,6 +6409,7 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors = ( } return deserializeAws_restJson1BatchImportEvidenceToAssessmentControlError(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChangeLog = (output: any, context: __SerdeContext): ChangeLog => { @@ -6415,7 +6426,7 @@ const deserializeAws_restJson1ChangeLog = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ChangeLogs = (output: any, context: __SerdeContext): ChangeLog[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6423,6 +6434,7 @@ const deserializeAws_restJson1ChangeLogs = (output: any, context: __SerdeContext } return deserializeAws_restJson1ChangeLog(entry, context); }); + return retVal; }; const deserializeAws_restJson1Control = (output: any, context: __SerdeContext): Control => { @@ -6469,7 +6481,7 @@ const deserializeAws_restJson1ControlComment = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ControlComments = (output: any, context: __SerdeContext): ControlComment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6477,6 +6489,7 @@ const deserializeAws_restJson1ControlComments = (output: any, context: __SerdeCo } return deserializeAws_restJson1ControlComment(entry, context); }); + return retVal; }; const deserializeAws_restJson1ControlDomainInsights = (output: any, context: __SerdeContext): ControlDomainInsights => { @@ -6500,7 +6513,7 @@ const deserializeAws_restJson1ControlDomainInsightsList = ( output: any, context: __SerdeContext ): ControlDomainInsights[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6508,13 +6521,14 @@ const deserializeAws_restJson1ControlDomainInsightsList = ( } return deserializeAws_restJson1ControlDomainInsights(entry, context); }); + return retVal; }; const deserializeAws_restJson1ControlInsightsMetadata = ( output: any, context: __SerdeContext ): ControlInsightsMetadataItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6522,13 +6536,14 @@ const deserializeAws_restJson1ControlInsightsMetadata = ( } return deserializeAws_restJson1ControlInsightsMetadataItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ControlInsightsMetadataByAssessment = ( output: any, context: __SerdeContext ): ControlInsightsMetadataByAssessmentItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6536,6 +6551,7 @@ const deserializeAws_restJson1ControlInsightsMetadataByAssessment = ( } return deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = ( @@ -6595,7 +6611,7 @@ const deserializeAws_restJson1ControlMappingSources = ( output: any, context: __SerdeContext ): ControlMappingSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6603,6 +6619,7 @@ const deserializeAws_restJson1ControlMappingSources = ( } return deserializeAws_restJson1ControlMappingSource(entry, context); }); + return retVal; }; const deserializeAws_restJson1ControlMetadata = (output: any, context: __SerdeContext): ControlMetadata => { @@ -6623,7 +6640,7 @@ const deserializeAws_restJson1ControlMetadata = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ControlMetadataList = (output: any, context: __SerdeContext): ControlMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6631,10 +6648,11 @@ const deserializeAws_restJson1ControlMetadataList = (output: any, context: __Ser } return deserializeAws_restJson1ControlMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1Controls = (output: any, context: __SerdeContext): Control[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6642,6 +6660,7 @@ const deserializeAws_restJson1Controls = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Control(entry, context); }); + return retVal; }; const deserializeAws_restJson1ControlSet = (output: any, context: __SerdeContext): ControlSet => { @@ -6656,7 +6675,7 @@ const deserializeAws_restJson1ControlSet = (output: any, context: __SerdeContext }; const deserializeAws_restJson1ControlSets = (output: any, context: __SerdeContext): ControlSet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6664,6 +6683,7 @@ const deserializeAws_restJson1ControlSets = (output: any, context: __SerdeContex } return deserializeAws_restJson1ControlSet(entry, context); }); + return retVal; }; const deserializeAws_restJson1CreateDelegationRequest = ( @@ -6716,7 +6736,7 @@ const deserializeAws_restJson1DelegationMetadata = (output: any, context: __Serd }; const deserializeAws_restJson1DelegationMetadataList = (output: any, context: __SerdeContext): DelegationMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6724,10 +6744,11 @@ const deserializeAws_restJson1DelegationMetadataList = (output: any, context: __ } return deserializeAws_restJson1DelegationMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1Delegations = (output: any, context: __SerdeContext): Delegation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6735,6 +6756,7 @@ const deserializeAws_restJson1Delegations = (output: any, context: __SerdeContex } return deserializeAws_restJson1Delegation(entry, context); }); + return retVal; }; const deserializeAws_restJson1Evidence = (output: any, context: __SerdeContext): Evidence => { @@ -6782,7 +6804,7 @@ const deserializeAws_restJson1EvidenceAttributes = ( }; const deserializeAws_restJson1EvidenceIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6790,6 +6812,7 @@ const deserializeAws_restJson1EvidenceIds = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EvidenceInsights = (output: any, context: __SerdeContext): EvidenceInsights => { @@ -6801,7 +6824,7 @@ const deserializeAws_restJson1EvidenceInsights = (output: any, context: __SerdeC }; const deserializeAws_restJson1EvidenceList = (output: any, context: __SerdeContext): Evidence[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6809,10 +6832,11 @@ const deserializeAws_restJson1EvidenceList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Evidence(entry, context); }); + return retVal; }; const deserializeAws_restJson1EvidenceSources = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6820,6 +6844,7 @@ const deserializeAws_restJson1EvidenceSources = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Framework = (output: any, context: __SerdeContext): Framework => { @@ -6866,7 +6891,7 @@ const deserializeAws_restJson1FrameworkMetadataList = ( output: any, context: __SerdeContext ): AssessmentFrameworkMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6874,6 +6899,7 @@ const deserializeAws_restJson1FrameworkMetadataList = ( } return deserializeAws_restJson1AssessmentFrameworkMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1Insights = (output: any, context: __SerdeContext): Insights => { @@ -6906,7 +6932,7 @@ const deserializeAws_restJson1InsightsByAssessment = (output: any, context: __Se }; const deserializeAws_restJson1Keywords = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6914,13 +6940,14 @@ const deserializeAws_restJson1Keywords = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListAssessmentMetadata = ( output: any, context: __SerdeContext ): AssessmentMetadataItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6928,6 +6955,7 @@ const deserializeAws_restJson1ListAssessmentMetadata = ( } return deserializeAws_restJson1AssessmentMetadataItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ManualEvidence = (output: any, context: __SerdeContext): ManualEvidence => { @@ -6953,7 +6981,7 @@ const deserializeAws_restJson1Notification = (output: any, context: __SerdeConte }; const deserializeAws_restJson1Notifications = (output: any, context: __SerdeContext): Notification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6961,6 +6989,7 @@ const deserializeAws_restJson1Notifications = (output: any, context: __SerdeCont } return deserializeAws_restJson1Notification(entry, context); }); + return retVal; }; const deserializeAws_restJson1Resource = (output: any, context: __SerdeContext): Resource => { @@ -6971,7 +7000,7 @@ const deserializeAws_restJson1Resource = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6979,6 +7008,7 @@ const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Resource(entry, context); }); + return retVal; }; const deserializeAws_restJson1Role = (output: any, context: __SerdeContext): Role => { @@ -6989,7 +7019,7 @@ const deserializeAws_restJson1Role = (output: any, context: __SerdeContext): Rol }; const deserializeAws_restJson1Roles = (output: any, context: __SerdeContext): Role[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6997,6 +7027,7 @@ const deserializeAws_restJson1Roles = (output: any, context: __SerdeContext): Ro } return deserializeAws_restJson1Role(entry, context); }); + return retVal; }; const deserializeAws_restJson1Scope = (output: any, context: __SerdeContext): Scope => { @@ -7022,7 +7053,7 @@ const deserializeAws_restJson1ServiceMetadata = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ServiceMetadataList = (output: any, context: __SerdeContext): ServiceMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7030,6 +7061,7 @@ const deserializeAws_restJson1ServiceMetadataList = (output: any, context: __Ser } return deserializeAws_restJson1ServiceMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1Settings = (output: any, context: __SerdeContext): Settings => { @@ -7075,7 +7107,7 @@ const deserializeAws_restJson1URL = (output: any, context: __SerdeContext): URL }; const deserializeAws_restJson1ValidationErrors = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7083,6 +7115,7 @@ const deserializeAws_restJson1ValidationErrors = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ValidationExceptionField = ( @@ -7099,7 +7132,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7107,6 +7140,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-auto-scaling-plans/src/protocols/Aws_json1_1.ts b/clients/client-auto-scaling-plans/src/protocols/Aws_json1_1.ts index f5c25e91307c..d0ba90edfc6a 100644 --- a/clients/client-auto-scaling-plans/src/protocols/Aws_json1_1.ts +++ b/clients/client-auto-scaling-plans/src/protocols/Aws_json1_1.ts @@ -943,7 +943,7 @@ const deserializeAws_json1_1Datapoint = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Datapoints = (output: any, context: __SerdeContext): Datapoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -951,6 +951,7 @@ const deserializeAws_json1_1Datapoints = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Datapoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeleteScalingPlanResponse = ( @@ -1030,7 +1031,7 @@ const deserializeAws_json1_1MetricDimension = (output: any, context: __SerdeCont }; const deserializeAws_json1_1MetricDimensions = (output: any, context: __SerdeContext): MetricDimension[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1038,6 +1039,7 @@ const deserializeAws_json1_1MetricDimensions = (output: any, context: __SerdeCon } return deserializeAws_json1_1MetricDimension(entry, context); }); + return retVal; }; const deserializeAws_json1_1ObjectNotFoundException = ( @@ -1098,7 +1100,7 @@ const deserializeAws_json1_1ScalingInstruction = (output: any, context: __SerdeC }; const deserializeAws_json1_1ScalingInstructions = (output: any, context: __SerdeContext): ScalingInstruction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1106,6 +1108,7 @@ const deserializeAws_json1_1ScalingInstructions = (output: any, context: __Serde } return deserializeAws_json1_1ScalingInstruction(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScalingPlan = (output: any, context: __SerdeContext): ScalingPlan => { @@ -1150,7 +1153,7 @@ const deserializeAws_json1_1ScalingPlanResource = (output: any, context: __Serde }; const deserializeAws_json1_1ScalingPlanResources = (output: any, context: __SerdeContext): ScalingPlanResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1158,10 +1161,11 @@ const deserializeAws_json1_1ScalingPlanResources = (output: any, context: __Serd } return deserializeAws_json1_1ScalingPlanResource(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScalingPlans = (output: any, context: __SerdeContext): ScalingPlan[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1169,10 +1173,11 @@ const deserializeAws_json1_1ScalingPlans = (output: any, context: __SerdeContext } return deserializeAws_json1_1ScalingPlan(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScalingPolicies = (output: any, context: __SerdeContext): ScalingPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1180,6 +1185,7 @@ const deserializeAws_json1_1ScalingPolicies = (output: any, context: __SerdeCont } return deserializeAws_json1_1ScalingPolicy(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScalingPolicy = (output: any, context: __SerdeContext): ScalingPolicy => { @@ -1204,7 +1210,7 @@ const deserializeAws_json1_1TagFilter = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1TagFilters = (output: any, context: __SerdeContext): TagFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1212,10 +1218,11 @@ const deserializeAws_json1_1TagFilters = (output: any, context: __SerdeContext): } return deserializeAws_json1_1TagFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1223,6 +1230,7 @@ const deserializeAws_json1_1TagValues = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TargetTrackingConfiguration = ( @@ -1256,7 +1264,7 @@ const deserializeAws_json1_1TargetTrackingConfigurations = ( output: any, context: __SerdeContext ): TargetTrackingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1264,6 +1272,7 @@ const deserializeAws_json1_1TargetTrackingConfigurations = ( } return deserializeAws_json1_1TargetTrackingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1UpdateScalingPlanResponse = ( diff --git a/clients/client-backup-gateway/src/protocols/Aws_json1_0.ts b/clients/client-backup-gateway/src/protocols/Aws_json1_0.ts index 0c2fda724a70..a798ae5d0597 100644 --- a/clients/client-backup-gateway/src/protocols/Aws_json1_0.ts +++ b/clients/client-backup-gateway/src/protocols/Aws_json1_0.ts @@ -1402,7 +1402,7 @@ const deserializeAws_json1_0Gateway = (output: any, context: __SerdeContext): Ga }; const deserializeAws_json1_0Gateways = (output: any, context: __SerdeContext): Gateway[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1410,6 +1410,7 @@ const deserializeAws_json1_0Gateways = (output: any, context: __SerdeContext): G } return deserializeAws_json1_0Gateway(entry, context); }); + return retVal; }; const deserializeAws_json1_0Hypervisor = (output: any, context: __SerdeContext): Hypervisor => { @@ -1423,7 +1424,7 @@ const deserializeAws_json1_0Hypervisor = (output: any, context: __SerdeContext): }; const deserializeAws_json1_0Hypervisors = (output: any, context: __SerdeContext): Hypervisor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1431,6 +1432,7 @@ const deserializeAws_json1_0Hypervisors = (output: any, context: __SerdeContext) } return deserializeAws_json1_0Hypervisor(entry, context); }); + return retVal; }; const deserializeAws_json1_0ImportHypervisorConfigurationOutput = ( @@ -1529,7 +1531,7 @@ const deserializeAws_json1_0TagResourceOutput = (output: any, context: __SerdeCo }; const deserializeAws_json1_0Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1537,6 +1539,7 @@ const deserializeAws_json1_0Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TestHypervisorConfigurationOutput = ( @@ -1589,7 +1592,7 @@ const deserializeAws_json1_0VirtualMachine = (output: any, context: __SerdeConte }; const deserializeAws_json1_0VirtualMachines = (output: any, context: __SerdeContext): VirtualMachine[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1597,6 +1600,7 @@ const deserializeAws_json1_0VirtualMachines = (output: any, context: __SerdeCont } return deserializeAws_json1_0VirtualMachine(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-backup/src/protocols/Aws_restJson1.ts b/clients/client-backup/src/protocols/Aws_restJson1.ts index 3a93e10df8bc..73d66b971fac 100644 --- a/clients/client-backup/src/protocols/Aws_restJson1.ts +++ b/clients/client-backup/src/protocols/Aws_restJson1.ts @@ -7049,7 +7049,7 @@ const deserializeAws_restJson1AdvancedBackupSettings = ( output: any, context: __SerdeContext ): AdvancedBackupSetting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7057,6 +7057,7 @@ const deserializeAws_restJson1AdvancedBackupSettings = ( } return deserializeAws_restJson1AdvancedBackupSetting(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupJob = (output: any, context: __SerdeContext): BackupJob => { @@ -7103,7 +7104,7 @@ const deserializeAws_restJson1BackupJob = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1BackupJobsList = (output: any, context: __SerdeContext): BackupJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7111,6 +7112,7 @@ const deserializeAws_restJson1BackupJobsList = (output: any, context: __SerdeCon } return deserializeAws_restJson1BackupJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -7140,7 +7142,7 @@ const deserializeAws_restJson1BackupPlan = (output: any, context: __SerdeContext }; const deserializeAws_restJson1BackupPlansList = (output: any, context: __SerdeContext): BackupPlansListMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7148,6 +7150,7 @@ const deserializeAws_restJson1BackupPlansList = (output: any, context: __SerdeCo } return deserializeAws_restJson1BackupPlansListMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupPlansListMember = (output: any, context: __SerdeContext): BackupPlansListMember => { @@ -7180,7 +7183,7 @@ const deserializeAws_restJson1BackupPlanTemplatesList = ( output: any, context: __SerdeContext ): BackupPlanTemplatesListMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7188,6 +7191,7 @@ const deserializeAws_restJson1BackupPlanTemplatesList = ( } return deserializeAws_restJson1BackupPlanTemplatesListMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupPlanTemplatesListMember = ( @@ -7204,7 +7208,7 @@ const deserializeAws_restJson1BackupPlanVersionsList = ( output: any, context: __SerdeContext ): BackupPlansListMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7212,6 +7216,7 @@ const deserializeAws_restJson1BackupPlanVersionsList = ( } return deserializeAws_restJson1BackupPlansListMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupRule = (output: any, context: __SerdeContext): BackupRule => { @@ -7239,7 +7244,7 @@ const deserializeAws_restJson1BackupRule = (output: any, context: __SerdeContext }; const deserializeAws_restJson1BackupRules = (output: any, context: __SerdeContext): BackupRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7247,6 +7252,7 @@ const deserializeAws_restJson1BackupRules = (output: any, context: __SerdeContex } return deserializeAws_restJson1BackupRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupSelection = (output: any, context: __SerdeContext): BackupSelection => { @@ -7276,7 +7282,7 @@ const deserializeAws_restJson1BackupSelectionsList = ( output: any, context: __SerdeContext ): BackupSelectionsListMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7284,6 +7290,7 @@ const deserializeAws_restJson1BackupSelectionsList = ( } return deserializeAws_restJson1BackupSelectionsListMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupSelectionsListMember = ( @@ -7307,7 +7314,7 @@ const deserializeAws_restJson1BackupVaultEvents = ( output: any, context: __SerdeContext ): (BackupVaultEvent | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7315,10 +7322,11 @@ const deserializeAws_restJson1BackupVaultEvents = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BackupVaultList = (output: any, context: __SerdeContext): BackupVaultListMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7326,6 +7334,7 @@ const deserializeAws_restJson1BackupVaultList = (output: any, context: __SerdeCo } return deserializeAws_restJson1BackupVaultListMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupVaultListMember = (output: any, context: __SerdeContext): BackupVaultListMember => { @@ -7363,7 +7372,7 @@ const deserializeAws_restJson1CalculatedLifecycle = (output: any, context: __Ser }; const deserializeAws_restJson1ComplianceResourceIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7371,6 +7380,7 @@ const deserializeAws_restJson1ComplianceResourceIdList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Condition = (output: any, context: __SerdeContext): Condition => { @@ -7389,7 +7399,7 @@ const deserializeAws_restJson1ConditionParameter = (output: any, context: __Serd }; const deserializeAws_restJson1ConditionParameters = (output: any, context: __SerdeContext): ConditionParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7397,6 +7407,7 @@ const deserializeAws_restJson1ConditionParameters = (output: any, context: __Ser } return deserializeAws_restJson1ConditionParameter(entry, context); }); + return retVal; }; const deserializeAws_restJson1Conditions = (output: any, context: __SerdeContext): Conditions => { @@ -7431,7 +7442,7 @@ const deserializeAws_restJson1ControlInputParameters = ( output: any, context: __SerdeContext ): ControlInputParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7439,6 +7450,7 @@ const deserializeAws_restJson1ControlInputParameters = ( } return deserializeAws_restJson1ControlInputParameter(entry, context); }); + return retVal; }; const deserializeAws_restJson1ControlScope = (output: any, context: __SerdeContext): ControlScope => { @@ -7469,7 +7481,7 @@ const deserializeAws_restJson1CopyAction = (output: any, context: __SerdeContext }; const deserializeAws_restJson1CopyActions = (output: any, context: __SerdeContext): CopyAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7477,6 +7489,7 @@ const deserializeAws_restJson1CopyActions = (output: any, context: __SerdeContex } return deserializeAws_restJson1CopyAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1CopyJob = (output: any, context: __SerdeContext): CopyJob => { @@ -7509,7 +7522,7 @@ const deserializeAws_restJson1CopyJob = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1CopyJobsList = (output: any, context: __SerdeContext): CopyJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7517,10 +7530,11 @@ const deserializeAws_restJson1CopyJobsList = (output: any, context: __SerdeConte } return deserializeAws_restJson1CopyJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1FormatList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7528,6 +7542,7 @@ const deserializeAws_restJson1FormatList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Framework = (output: any, context: __SerdeContext): Framework => { @@ -7559,7 +7574,7 @@ const deserializeAws_restJson1FrameworkControl = (output: any, context: __SerdeC }; const deserializeAws_restJson1FrameworkControls = (output: any, context: __SerdeContext): FrameworkControl[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7567,10 +7582,11 @@ const deserializeAws_restJson1FrameworkControls = (output: any, context: __Serde } return deserializeAws_restJson1FrameworkControl(entry, context); }); + return retVal; }; const deserializeAws_restJson1FrameworkList = (output: any, context: __SerdeContext): Framework[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7578,6 +7594,7 @@ const deserializeAws_restJson1FrameworkList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Framework(entry, context); }); + return retVal; }; const deserializeAws_restJson1GlobalSettings = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -7600,7 +7617,7 @@ const deserializeAws_restJson1Lifecycle = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ListOfTags = (output: any, context: __SerdeContext): Condition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7608,6 +7625,7 @@ const deserializeAws_restJson1ListOfTags = (output: any, context: __SerdeContext } return deserializeAws_restJson1Condition(entry, context); }); + return retVal; }; const deserializeAws_restJson1Metadata = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -7634,7 +7652,7 @@ const deserializeAws_restJson1ProtectedResource = (output: any, context: __Serde }; const deserializeAws_restJson1ProtectedResourcesList = (output: any, context: __SerdeContext): ProtectedResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7642,6 +7660,7 @@ const deserializeAws_restJson1ProtectedResourcesList = (output: any, context: __ } return deserializeAws_restJson1ProtectedResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecoveryPointByBackupVault = ( @@ -7692,7 +7711,7 @@ const deserializeAws_restJson1RecoveryPointByBackupVaultList = ( output: any, context: __SerdeContext ): RecoveryPointByBackupVault[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7700,6 +7719,7 @@ const deserializeAws_restJson1RecoveryPointByBackupVaultList = ( } return deserializeAws_restJson1RecoveryPointByBackupVault(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecoveryPointByResource = ( @@ -7724,7 +7744,7 @@ const deserializeAws_restJson1RecoveryPointByResourceList = ( output: any, context: __SerdeContext ): RecoveryPointByResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7732,6 +7752,7 @@ const deserializeAws_restJson1RecoveryPointByResourceList = ( } return deserializeAws_restJson1RecoveryPointByResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecoveryPointCreator = (output: any, context: __SerdeContext): RecoveryPointCreator => { @@ -7787,7 +7808,7 @@ const deserializeAws_restJson1ReportJob = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ReportJobList = (output: any, context: __SerdeContext): ReportJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7795,6 +7816,7 @@ const deserializeAws_restJson1ReportJobList = (output: any, context: __SerdeCont } return deserializeAws_restJson1ReportJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReportPlan = (output: any, context: __SerdeContext): ReportPlan => { @@ -7827,7 +7849,7 @@ const deserializeAws_restJson1ReportPlan = (output: any, context: __SerdeContext }; const deserializeAws_restJson1ReportPlanList = (output: any, context: __SerdeContext): ReportPlan[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7835,6 +7857,7 @@ const deserializeAws_restJson1ReportPlanList = (output: any, context: __SerdeCon } return deserializeAws_restJson1ReportPlan(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReportSetting = (output: any, context: __SerdeContext): ReportSetting => { @@ -7849,7 +7872,7 @@ const deserializeAws_restJson1ReportSetting = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ResourceArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7857,10 +7880,11 @@ const deserializeAws_restJson1ResourceArns = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResourceTypeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7868,6 +7892,7 @@ const deserializeAws_restJson1ResourceTypeList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResourceTypeManagementPreference = ( @@ -7901,7 +7926,7 @@ const deserializeAws_restJson1ResourceTypeOptInPreference = ( }; const deserializeAws_restJson1ResourceTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7909,10 +7934,11 @@ const deserializeAws_restJson1ResourceTypes = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RestoreJobsList = (output: any, context: __SerdeContext): RestoreJobsListMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7920,6 +7946,7 @@ const deserializeAws_restJson1RestoreJobsList = (output: any, context: __SerdeCo } return deserializeAws_restJson1RestoreJobsListMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1RestoreJobsListMember = (output: any, context: __SerdeContext): RestoreJobsListMember => { @@ -7947,7 +7974,7 @@ const deserializeAws_restJson1RestoreJobsListMember = (output: any, context: __S }; const deserializeAws_restJson1stringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7955,6 +7982,7 @@ const deserializeAws_restJson1stringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1stringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-batch/src/protocols/Aws_restJson1.ts b/clients/client-batch/src/protocols/Aws_restJson1.ts index 942f5f38de0d..cee97310d306 100644 --- a/clients/client-batch/src/protocols/Aws_restJson1.ts +++ b/clients/client-batch/src/protocols/Aws_restJson1.ts @@ -2811,7 +2811,7 @@ const deserializeAws_restJson1AttemptDetail = (output: any, context: __SerdeCont }; const deserializeAws_restJson1AttemptDetails = (output: any, context: __SerdeContext): AttemptDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2819,6 +2819,7 @@ const deserializeAws_restJson1AttemptDetails = (output: any, context: __SerdeCon } return deserializeAws_restJson1AttemptDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComputeEnvironmentDetail = ( @@ -2850,7 +2851,7 @@ const deserializeAws_restJson1ComputeEnvironmentDetailList = ( output: any, context: __SerdeContext ): ComputeEnvironmentDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2858,6 +2859,7 @@ const deserializeAws_restJson1ComputeEnvironmentDetailList = ( } return deserializeAws_restJson1ComputeEnvironmentDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComputeEnvironmentOrder = ( @@ -2874,7 +2876,7 @@ const deserializeAws_restJson1ComputeEnvironmentOrders = ( output: any, context: __SerdeContext ): ComputeEnvironmentOrder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2882,6 +2884,7 @@ const deserializeAws_restJson1ComputeEnvironmentOrders = ( } return deserializeAws_restJson1ComputeEnvironmentOrder(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComputeResource = (output: any, context: __SerdeContext): ComputeResource => { @@ -3071,7 +3074,7 @@ const deserializeAws_restJson1DeviceCgroupPermissions = ( output: any, context: __SerdeContext ): (DeviceCgroupPermission | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3079,10 +3082,11 @@ const deserializeAws_restJson1DeviceCgroupPermissions = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DevicesList = (output: any, context: __SerdeContext): Device[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3090,6 +3094,7 @@ const deserializeAws_restJson1DevicesList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Device(entry, context); }); + return retVal; }; const deserializeAws_restJson1Ec2Configuration = (output: any, context: __SerdeContext): Ec2Configuration => { @@ -3100,7 +3105,7 @@ const deserializeAws_restJson1Ec2Configuration = (output: any, context: __SerdeC }; const deserializeAws_restJson1Ec2ConfigurationList = (output: any, context: __SerdeContext): Ec2Configuration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3108,6 +3113,7 @@ const deserializeAws_restJson1Ec2ConfigurationList = (output: any, context: __Se } return deserializeAws_restJson1Ec2Configuration(entry, context); }); + return retVal; }; const deserializeAws_restJson1EFSAuthorizationConfig = ( @@ -3137,7 +3143,7 @@ const deserializeAws_restJson1EFSVolumeConfiguration = ( }; const deserializeAws_restJson1EnvironmentVariables = (output: any, context: __SerdeContext): KeyValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3145,6 +3151,7 @@ const deserializeAws_restJson1EnvironmentVariables = (output: any, context: __Se } return deserializeAws_restJson1KeyValuePair(entry, context); }); + return retVal; }; const deserializeAws_restJson1EvaluateOnExit = (output: any, context: __SerdeContext): EvaluateOnExit => { @@ -3157,7 +3164,7 @@ const deserializeAws_restJson1EvaluateOnExit = (output: any, context: __SerdeCon }; const deserializeAws_restJson1EvaluateOnExitList = (output: any, context: __SerdeContext): EvaluateOnExit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3165,6 +3172,7 @@ const deserializeAws_restJson1EvaluateOnExitList = (output: any, context: __Serd } return deserializeAws_restJson1EvaluateOnExit(entry, context); }); + return retVal; }; const deserializeAws_restJson1FairsharePolicy = (output: any, context: __SerdeContext): FairsharePolicy => { @@ -3234,7 +3242,7 @@ const deserializeAws_restJson1JobDefinition = (output: any, context: __SerdeCont }; const deserializeAws_restJson1JobDefinitionList = (output: any, context: __SerdeContext): JobDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3242,6 +3250,7 @@ const deserializeAws_restJson1JobDefinitionList = (output: any, context: __Serde } return deserializeAws_restJson1JobDefinition(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobDependency = (output: any, context: __SerdeContext): JobDependency => { @@ -3252,7 +3261,7 @@ const deserializeAws_restJson1JobDependency = (output: any, context: __SerdeCont }; const deserializeAws_restJson1JobDependencyList = (output: any, context: __SerdeContext): JobDependency[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3260,6 +3269,7 @@ const deserializeAws_restJson1JobDependencyList = (output: any, context: __Serde } return deserializeAws_restJson1JobDependency(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobDetail = (output: any, context: __SerdeContext): JobDetail => { @@ -3325,7 +3335,7 @@ const deserializeAws_restJson1JobDetail = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1JobDetailList = (output: any, context: __SerdeContext): JobDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3333,6 +3343,7 @@ const deserializeAws_restJson1JobDetailList = (output: any, context: __SerdeCont } return deserializeAws_restJson1JobDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobQueueDetail = (output: any, context: __SerdeContext): JobQueueDetail => { @@ -3356,7 +3367,7 @@ const deserializeAws_restJson1JobQueueDetail = (output: any, context: __SerdeCon }; const deserializeAws_restJson1JobQueueDetailList = (output: any, context: __SerdeContext): JobQueueDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3364,6 +3375,7 @@ const deserializeAws_restJson1JobQueueDetailList = (output: any, context: __Serd } return deserializeAws_restJson1JobQueueDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext): JobSummary => { @@ -3393,7 +3405,7 @@ const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext }; const deserializeAws_restJson1JobSummaryList = (output: any, context: __SerdeContext): JobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3401,6 +3413,7 @@ const deserializeAws_restJson1JobSummaryList = (output: any, context: __SerdeCon } return deserializeAws_restJson1JobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobTimeout = (output: any, context: __SerdeContext): JobTimeout => { @@ -3482,7 +3495,7 @@ const deserializeAws_restJson1MountPoint = (output: any, context: __SerdeContext }; const deserializeAws_restJson1MountPoints = (output: any, context: __SerdeContext): MountPoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3490,6 +3503,7 @@ const deserializeAws_restJson1MountPoints = (output: any, context: __SerdeContex } return deserializeAws_restJson1MountPoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkConfiguration = (output: any, context: __SerdeContext): NetworkConfiguration => { @@ -3507,7 +3521,7 @@ const deserializeAws_restJson1NetworkInterface = (output: any, context: __SerdeC }; const deserializeAws_restJson1NetworkInterfaceList = (output: any, context: __SerdeContext): NetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3515,6 +3529,7 @@ const deserializeAws_restJson1NetworkInterfaceList = (output: any, context: __Se } return deserializeAws_restJson1NetworkInterface(entry, context); }); + return retVal; }; const deserializeAws_restJson1NodeDetails = (output: any, context: __SerdeContext): NodeDetails => { @@ -3544,7 +3559,7 @@ const deserializeAws_restJson1NodePropertiesSummary = (output: any, context: __S }; const deserializeAws_restJson1NodeRangeProperties = (output: any, context: __SerdeContext): NodeRangeProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3552,6 +3567,7 @@ const deserializeAws_restJson1NodeRangeProperties = (output: any, context: __Ser } return deserializeAws_restJson1NodeRangeProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1NodeRangeProperty = (output: any, context: __SerdeContext): NodeRangeProperty => { @@ -3580,7 +3596,7 @@ const deserializeAws_restJson1PlatformCapabilityList = ( output: any, context: __SerdeContext ): (PlatformCapability | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3588,6 +3604,7 @@ const deserializeAws_restJson1PlatformCapabilityList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResourceRequirement = (output: any, context: __SerdeContext): ResourceRequirement => { @@ -3598,7 +3615,7 @@ const deserializeAws_restJson1ResourceRequirement = (output: any, context: __Ser }; const deserializeAws_restJson1ResourceRequirements = (output: any, context: __SerdeContext): ResourceRequirement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3606,6 +3623,7 @@ const deserializeAws_restJson1ResourceRequirements = (output: any, context: __Se } return deserializeAws_restJson1ResourceRequirement(entry, context); }); + return retVal; }; const deserializeAws_restJson1RetryStrategy = (output: any, context: __SerdeContext): RetryStrategy => { @@ -3640,7 +3658,7 @@ const deserializeAws_restJson1SchedulingPolicyDetailList = ( output: any, context: __SerdeContext ): SchedulingPolicyDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3648,6 +3666,7 @@ const deserializeAws_restJson1SchedulingPolicyDetailList = ( } return deserializeAws_restJson1SchedulingPolicyDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1SchedulingPolicyListingDetail = ( @@ -3663,7 +3682,7 @@ const deserializeAws_restJson1SchedulingPolicyListingDetailList = ( output: any, context: __SerdeContext ): SchedulingPolicyListingDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3671,6 +3690,7 @@ const deserializeAws_restJson1SchedulingPolicyListingDetailList = ( } return deserializeAws_restJson1SchedulingPolicyListingDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1Secret = (output: any, context: __SerdeContext): Secret => { @@ -3681,7 +3701,7 @@ const deserializeAws_restJson1Secret = (output: any, context: __SerdeContext): S }; const deserializeAws_restJson1SecretList = (output: any, context: __SerdeContext): Secret[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3689,6 +3709,7 @@ const deserializeAws_restJson1SecretList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Secret(entry, context); }); + return retVal; }; const deserializeAws_restJson1ShareAttributes = (output: any, context: __SerdeContext): ShareAttributes => { @@ -3699,7 +3720,7 @@ const deserializeAws_restJson1ShareAttributes = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ShareAttributesList = (output: any, context: __SerdeContext): ShareAttributes[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3707,10 +3728,11 @@ const deserializeAws_restJson1ShareAttributesList = (output: any, context: __Ser } return deserializeAws_restJson1ShareAttributes(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3718,6 +3740,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagrisTagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3756,7 +3779,7 @@ const deserializeAws_restJson1Tmpfs = (output: any, context: __SerdeContext): Tm }; const deserializeAws_restJson1TmpfsList = (output: any, context: __SerdeContext): Tmpfs[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3764,6 +3787,7 @@ const deserializeAws_restJson1TmpfsList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Tmpfs(entry, context); }); + return retVal; }; const deserializeAws_restJson1Ulimit = (output: any, context: __SerdeContext): Ulimit => { @@ -3775,7 +3799,7 @@ const deserializeAws_restJson1Ulimit = (output: any, context: __SerdeContext): U }; const deserializeAws_restJson1Ulimits = (output: any, context: __SerdeContext): Ulimit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3783,6 +3807,7 @@ const deserializeAws_restJson1Ulimits = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Ulimit(entry, context); }); + return retVal; }; const deserializeAws_restJson1Volume = (output: any, context: __SerdeContext): Volume => { @@ -3800,7 +3825,7 @@ const deserializeAws_restJson1Volume = (output: any, context: __SerdeContext): V }; const deserializeAws_restJson1Volumes = (output: any, context: __SerdeContext): Volume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3808,6 +3833,7 @@ const deserializeAws_restJson1Volumes = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Volume(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-braket/src/protocols/Aws_restJson1.ts b/clients/client-braket/src/protocols/Aws_restJson1.ts index 1f062fdf80e0..69efd3add9d2 100644 --- a/clients/client-braket/src/protocols/Aws_restJson1.ts +++ b/clients/client-braket/src/protocols/Aws_restJson1.ts @@ -1740,7 +1740,7 @@ const deserializeAws_restJson1DeviceSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DeviceSummaryList = (output: any, context: __SerdeContext): DeviceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1748,6 +1748,7 @@ const deserializeAws_restJson1DeviceSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1DeviceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1HyperParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -1763,7 +1764,7 @@ const deserializeAws_restJson1HyperParameters = (output: any, context: __SerdeCo }; const deserializeAws_restJson1InputConfigList = (output: any, context: __SerdeContext): InputFileConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1771,6 +1772,7 @@ const deserializeAws_restJson1InputConfigList = (output: any, context: __SerdeCo } return deserializeAws_restJson1InputFileConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1InputFileConfig = (output: any, context: __SerdeContext): InputFileConfig => { @@ -1810,7 +1812,7 @@ const deserializeAws_restJson1JobEventDetails = (output: any, context: __SerdeCo }; const deserializeAws_restJson1JobEvents = (output: any, context: __SerdeContext): JobEventDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1818,6 +1820,7 @@ const deserializeAws_restJson1JobEvents = (output: any, context: __SerdeContext) } return deserializeAws_restJson1JobEventDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobOutputDataConfig = (output: any, context: __SerdeContext): JobOutputDataConfig => { @@ -1859,7 +1862,7 @@ const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext }; const deserializeAws_restJson1JobSummaryList = (output: any, context: __SerdeContext): JobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1867,6 +1870,7 @@ const deserializeAws_restJson1JobSummaryList = (output: any, context: __SerdeCon } return deserializeAws_restJson1JobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1QuantumTaskSummary = (output: any, context: __SerdeContext): QuantumTaskSummary => { @@ -1893,7 +1897,7 @@ const deserializeAws_restJson1QuantumTaskSummary = (output: any, context: __Serd }; const deserializeAws_restJson1QuantumTaskSummaryList = (output: any, context: __SerdeContext): QuantumTaskSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1901,6 +1905,7 @@ const deserializeAws_restJson1QuantumTaskSummaryList = (output: any, context: __ } return deserializeAws_restJson1QuantumTaskSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3DataSource = (output: any, context: __SerdeContext): S3DataSource => { diff --git a/clients/client-budgets/src/protocols/Aws_json1_1.ts b/clients/client-budgets/src/protocols/Aws_json1_1.ts index 40da398891b1..3a89964af062 100644 --- a/clients/client-budgets/src/protocols/Aws_json1_1.ts +++ b/clients/client-budgets/src/protocols/Aws_json1_1.ts @@ -2459,7 +2459,7 @@ const deserializeAws_json1_1Action = (output: any, context: __SerdeContext): Act }; const deserializeAws_json1_1ActionHistories = (output: any, context: __SerdeContext): ActionHistory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2467,6 +2467,7 @@ const deserializeAws_json1_1ActionHistories = (output: any, context: __SerdeCont } return deserializeAws_json1_1ActionHistory(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionHistory = (output: any, context: __SerdeContext): ActionHistory => { @@ -2495,7 +2496,7 @@ const deserializeAws_json1_1ActionHistoryDetails = (output: any, context: __Serd }; const deserializeAws_json1_1Actions = (output: any, context: __SerdeContext): Action[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2503,6 +2504,7 @@ const deserializeAws_json1_1Actions = (output: any, context: __SerdeContext): Ac } return deserializeAws_json1_1Action(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionThreshold = (output: any, context: __SerdeContext): ActionThreshold => { @@ -2590,7 +2592,7 @@ const deserializeAws_json1_1BudgetedAndActualAmountsList = ( output: any, context: __SerdeContext ): BudgetedAndActualAmounts[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2598,6 +2600,7 @@ const deserializeAws_json1_1BudgetedAndActualAmountsList = ( } return deserializeAws_json1_1BudgetedAndActualAmounts(entry, context); }); + return retVal; }; const deserializeAws_json1_1BudgetNotificationsForAccount = ( @@ -2617,7 +2620,7 @@ const deserializeAws_json1_1BudgetNotificationsForAccountList = ( output: any, context: __SerdeContext ): BudgetNotificationsForAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2625,6 +2628,7 @@ const deserializeAws_json1_1BudgetNotificationsForAccountList = ( } return deserializeAws_json1_1BudgetNotificationsForAccount(entry, context); }); + return retVal; }; const deserializeAws_json1_1BudgetPerformanceHistory = ( @@ -2651,7 +2655,7 @@ const deserializeAws_json1_1BudgetPerformanceHistory = ( }; const deserializeAws_json1_1Budgets = (output: any, context: __SerdeContext): Budget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2659,6 +2663,7 @@ const deserializeAws_json1_1Budgets = (output: any, context: __SerdeContext): Bu } return deserializeAws_json1_1Budget(entry, context); }); + return retVal; }; const deserializeAws_json1_1CalculatedSpend = (output: any, context: __SerdeContext): CalculatedSpend => { @@ -2917,7 +2922,7 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationResponse = ( }; const deserializeAws_json1_1DimensionValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2925,6 +2930,7 @@ const deserializeAws_json1_1DimensionValues = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DuplicateRecordException = ( @@ -2958,7 +2964,7 @@ const deserializeAws_json1_1ExpiredNextTokenException = ( }; const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2966,6 +2972,7 @@ const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1HistoricalOptions = (output: any, context: __SerdeContext): HistoricalOptions => { @@ -2994,7 +3001,7 @@ const deserializeAws_json1_1IamActionDefinition = (output: any, context: __Serde }; const deserializeAws_json1_1InstanceIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3002,6 +3009,7 @@ const deserializeAws_json1_1InstanceIds = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InternalErrorException = (output: any, context: __SerdeContext): InternalErrorException => { @@ -3045,7 +3053,7 @@ const deserializeAws_json1_1Notification = (output: any, context: __SerdeContext }; const deserializeAws_json1_1Notifications = (output: any, context: __SerdeContext): Notification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3053,6 +3061,7 @@ const deserializeAws_json1_1Notifications = (output: any, context: __SerdeContex } return deserializeAws_json1_1Notification(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlannedBudgetLimits = (output: any, context: __SerdeContext): { [key: string]: Spend } => { @@ -3077,7 +3086,7 @@ const deserializeAws_json1_1ResourceLockedException = ( }; const deserializeAws_json1_1Roles = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3085,6 +3094,7 @@ const deserializeAws_json1_1Roles = (output: any, context: __SerdeContext): stri } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ScpActionDefinition = (output: any, context: __SerdeContext): ScpActionDefinition => { @@ -3123,7 +3133,7 @@ const deserializeAws_json1_1Subscriber = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Subscribers = (output: any, context: __SerdeContext): Subscriber[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3131,10 +3141,11 @@ const deserializeAws_json1_1Subscribers = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Subscriber(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3142,6 +3153,7 @@ const deserializeAws_json1_1TargetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TimePeriod = (output: any, context: __SerdeContext): TimePeriod => { @@ -3194,7 +3206,7 @@ const deserializeAws_json1_1UpdateSubscriberResponse = ( }; const deserializeAws_json1_1Users = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3202,6 +3214,7 @@ const deserializeAws_json1_1Users = (output: any, context: __SerdeContext): stri } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts index e0676f359c0e..deb40e6ac72f 100644 --- a/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts @@ -2673,7 +2673,7 @@ const deserializeAws_restJson1AppInstanceAdminList = ( output: any, context: __SerdeContext ): AppInstanceAdminSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2681,6 +2681,7 @@ const deserializeAws_restJson1AppInstanceAdminList = ( } return deserializeAws_restJson1AppInstanceAdminSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppInstanceAdminSummary = ( @@ -2696,7 +2697,7 @@ const deserializeAws_restJson1AppInstanceAdminSummary = ( }; const deserializeAws_restJson1AppInstanceList = (output: any, context: __SerdeContext): AppInstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2704,6 +2705,7 @@ const deserializeAws_restJson1AppInstanceList = (output: any, context: __SerdeCo } return deserializeAws_restJson1AppInstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppInstanceRetentionSettings = ( @@ -2793,7 +2795,7 @@ const deserializeAws_restJson1AppInstanceUserEndpointSummaryList = ( output: any, context: __SerdeContext ): AppInstanceUserEndpointSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2801,13 +2803,14 @@ const deserializeAws_restJson1AppInstanceUserEndpointSummaryList = ( } return deserializeAws_restJson1AppInstanceUserEndpointSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppInstanceUserList = ( output: any, context: __SerdeContext ): AppInstanceUserSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2815,6 +2818,7 @@ const deserializeAws_restJson1AppInstanceUserList = ( } return deserializeAws_restJson1AppInstanceUserSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppInstanceUserSummary = ( @@ -2866,7 +2870,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2874,6 +2878,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts index 3d1dfd60352b..3ff68e0081a2 100644 --- a/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts @@ -1357,7 +1357,7 @@ const deserializeAws_restJson1Attendee = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1AttendeeList = (output: any, context: __SerdeContext): Attendee[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1365,6 +1365,7 @@ const deserializeAws_restJson1AttendeeList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Attendee(entry, context); }); + return retVal; }; const deserializeAws_restJson1AudioFeatures = (output: any, context: __SerdeContext): AudioFeatures => { @@ -1377,7 +1378,7 @@ const deserializeAws_restJson1BatchCreateAttendeeErrorList = ( output: any, context: __SerdeContext ): CreateAttendeeError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1385,6 +1386,7 @@ const deserializeAws_restJson1BatchCreateAttendeeErrorList = ( } return deserializeAws_restJson1CreateAttendeeError(entry, context); }); + return retVal; }; const deserializeAws_restJson1CreateAttendeeError = (output: any, context: __SerdeContext): CreateAttendeeError => { diff --git a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts index c76d069b36b2..1fb0e0a1581e 100644 --- a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts @@ -5000,7 +5000,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipErrors = ( output: any, context: __SerdeContext ): BatchCreateChannelMembershipError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5008,6 +5008,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipErrors = ( } return deserializeAws_restJson1BatchCreateChannelMembershipError(entry, context); }); + return retVal; }; const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): Channel => { @@ -5054,7 +5055,7 @@ const deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList = ( output: any, context: __SerdeContext ): ChannelAssociatedWithFlowSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5062,6 +5063,7 @@ const deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList = ( } return deserializeAws_restJson1ChannelAssociatedWithFlowSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelBan = (output: any, context: __SerdeContext): ChannelBan => { @@ -5092,7 +5094,7 @@ const deserializeAws_restJson1ChannelBanSummary = (output: any, context: __Serde }; const deserializeAws_restJson1ChannelBanSummaryList = (output: any, context: __SerdeContext): ChannelBanSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5100,6 +5102,7 @@ const deserializeAws_restJson1ChannelBanSummaryList = (output: any, context: __S } return deserializeAws_restJson1ChannelBanSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelFlow = (output: any, context: __SerdeContext): ChannelFlow => { @@ -5133,7 +5136,7 @@ const deserializeAws_restJson1ChannelFlowSummary = (output: any, context: __Serd }; const deserializeAws_restJson1ChannelFlowSummaryList = (output: any, context: __SerdeContext): ChannelFlowSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5141,6 +5144,7 @@ const deserializeAws_restJson1ChannelFlowSummaryList = (output: any, context: __ } return deserializeAws_restJson1ChannelFlowSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelMembership = (output: any, context: __SerdeContext): ChannelMembership => { @@ -5186,7 +5190,7 @@ const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = ( output: any, context: __SerdeContext ): ChannelMembershipForAppInstanceUserSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5194,6 +5198,7 @@ const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = ( } return deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelMembershipPreferences = ( @@ -5224,7 +5229,7 @@ const deserializeAws_restJson1ChannelMembershipSummaryList = ( output: any, context: __SerdeContext ): ChannelMembershipSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5232,6 +5237,7 @@ const deserializeAws_restJson1ChannelMembershipSummaryList = ( } return deserializeAws_restJson1ChannelMembershipSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelMessage = (output: any, context: __SerdeContext): ChannelMessage => { @@ -5318,7 +5324,7 @@ const deserializeAws_restJson1ChannelMessageSummaryList = ( output: any, context: __SerdeContext ): ChannelMessageSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5326,6 +5332,7 @@ const deserializeAws_restJson1ChannelMessageSummaryList = ( } return deserializeAws_restJson1ChannelMessageSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary = ( @@ -5344,7 +5351,7 @@ const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = ( output: any, context: __SerdeContext ): ChannelModeratedByAppInstanceUserSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5352,6 +5359,7 @@ const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = ( } return deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelModerator = (output: any, context: __SerdeContext): ChannelModerator => { @@ -5388,7 +5396,7 @@ const deserializeAws_restJson1ChannelModeratorSummaryList = ( output: any, context: __SerdeContext ): ChannelModeratorSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5396,6 +5404,7 @@ const deserializeAws_restJson1ChannelModeratorSummaryList = ( } return deserializeAws_restJson1ChannelModeratorSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelSummary = (output: any, context: __SerdeContext): ChannelSummary => { @@ -5413,7 +5422,7 @@ const deserializeAws_restJson1ChannelSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ChannelSummaryList = (output: any, context: __SerdeContext): ChannelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5421,6 +5430,7 @@ const deserializeAws_restJson1ChannelSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1ChannelSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Identity = (output: any, context: __SerdeContext): Identity => { @@ -5438,7 +5448,7 @@ const deserializeAws_restJson1LambdaConfiguration = (output: any, context: __Ser }; const deserializeAws_restJson1Members = (output: any, context: __SerdeContext): Identity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5446,6 +5456,7 @@ const deserializeAws_restJson1Members = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Identity(entry, context); }); + return retVal; }; const deserializeAws_restJson1MessageAttributeMap = ( @@ -5464,7 +5475,7 @@ const deserializeAws_restJson1MessageAttributeMap = ( }; const deserializeAws_restJson1MessageAttributeStringValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5472,6 +5483,7 @@ const deserializeAws_restJson1MessageAttributeStringValues = (output: any, conte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MessageAttributeValue = (output: any, context: __SerdeContext): MessageAttributeValue => { @@ -5517,7 +5529,7 @@ const deserializeAws_restJson1ProcessorConfiguration = ( }; const deserializeAws_restJson1ProcessorList = (output: any, context: __SerdeContext): Processor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5525,6 +5537,7 @@ const deserializeAws_restJson1ProcessorList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Processor(entry, context); }); + return retVal; }; const deserializeAws_restJson1PushNotificationPreferences = ( @@ -5545,7 +5558,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5553,6 +5566,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-chime/src/protocols/Aws_restJson1.ts b/clients/client-chime/src/protocols/Aws_restJson1.ts index e91f01dd5152..c5927638d256 100644 --- a/clients/client-chime/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime/src/protocols/Aws_restJson1.ts @@ -20690,7 +20690,7 @@ const deserializeAws_restJson1Account = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1AccountList = (output: any, context: __SerdeContext): Account[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20698,6 +20698,7 @@ const deserializeAws_restJson1AccountList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Account(entry, context); }); + return retVal; }; const deserializeAws_restJson1AccountSettings = (output: any, context: __SerdeContext): AccountSettings => { @@ -20751,7 +20752,7 @@ const deserializeAws_restJson1AppInstanceAdminList = ( output: any, context: __SerdeContext ): AppInstanceAdminSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20759,6 +20760,7 @@ const deserializeAws_restJson1AppInstanceAdminList = ( } return deserializeAws_restJson1AppInstanceAdminSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppInstanceAdminSummary = ( @@ -20774,7 +20776,7 @@ const deserializeAws_restJson1AppInstanceAdminSummary = ( }; const deserializeAws_restJson1AppInstanceList = (output: any, context: __SerdeContext): AppInstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20782,6 +20784,7 @@ const deserializeAws_restJson1AppInstanceList = (output: any, context: __SerdeCo } return deserializeAws_restJson1AppInstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppInstanceRetentionSettings = ( @@ -20810,7 +20813,7 @@ const deserializeAws_restJson1AppInstanceStreamingConfigurationList = ( output: any, context: __SerdeContext ): AppInstanceStreamingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20818,6 +20821,7 @@ const deserializeAws_restJson1AppInstanceStreamingConfigurationList = ( } return deserializeAws_restJson1AppInstanceStreamingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppInstanceSummary = (output: any, context: __SerdeContext): AppInstanceSummary => { @@ -20848,7 +20852,7 @@ const deserializeAws_restJson1AppInstanceUserList = ( output: any, context: __SerdeContext ): AppInstanceUserSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20856,6 +20860,7 @@ const deserializeAws_restJson1AppInstanceUserList = ( } return deserializeAws_restJson1AppInstanceUserSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppInstanceUserMembershipSummary = ( @@ -20911,7 +20916,7 @@ const deserializeAws_restJson1Attendee = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1AttendeeIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20919,10 +20924,11 @@ const deserializeAws_restJson1AttendeeIdList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AttendeeList = (output: any, context: __SerdeContext): Attendee[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20930,6 +20936,7 @@ const deserializeAws_restJson1AttendeeList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Attendee(entry, context); }); + return retVal; }; const deserializeAws_restJson1AudioArtifactsConfiguration = ( @@ -20963,7 +20970,7 @@ const deserializeAws_restJson1BatchCreateAttendeeErrorList = ( output: any, context: __SerdeContext ): CreateAttendeeError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20971,6 +20978,7 @@ const deserializeAws_restJson1BatchCreateAttendeeErrorList = ( } return deserializeAws_restJson1CreateAttendeeError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchCreateChannelMembershipError = ( @@ -20988,7 +20996,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipErrors = ( output: any, context: __SerdeContext ): BatchCreateChannelMembershipError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20996,6 +21004,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipErrors = ( } return deserializeAws_restJson1BatchCreateChannelMembershipError(entry, context); }); + return retVal; }; const deserializeAws_restJson1Bot = (output: any, context: __SerdeContext): Bot => { @@ -21019,7 +21028,7 @@ const deserializeAws_restJson1Bot = (output: any, context: __SerdeContext): Bot }; const deserializeAws_restJson1BotList = (output: any, context: __SerdeContext): Bot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21027,6 +21036,7 @@ const deserializeAws_restJson1BotList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Bot(entry, context); }); + return retVal; }; const deserializeAws_restJson1BusinessCallingSettings = ( @@ -21039,7 +21049,7 @@ const deserializeAws_restJson1BusinessCallingSettings = ( }; const deserializeAws_restJson1CallingRegionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21047,10 +21057,11 @@ const deserializeAws_restJson1CallingRegionList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CapabilityList = (output: any, context: __SerdeContext): (Capability | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21058,6 +21069,7 @@ const deserializeAws_restJson1CapabilityList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): Channel => { @@ -21114,7 +21126,7 @@ const deserializeAws_restJson1ChannelBanSummary = (output: any, context: __Serde }; const deserializeAws_restJson1ChannelBanSummaryList = (output: any, context: __SerdeContext): ChannelBanSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21122,6 +21134,7 @@ const deserializeAws_restJson1ChannelBanSummaryList = (output: any, context: __S } return deserializeAws_restJson1ChannelBanSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelMembership = (output: any, context: __SerdeContext): ChannelMembership => { @@ -21167,7 +21180,7 @@ const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = ( output: any, context: __SerdeContext ): ChannelMembershipForAppInstanceUserSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21175,6 +21188,7 @@ const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = ( } return deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelMembershipSummary = ( @@ -21193,7 +21207,7 @@ const deserializeAws_restJson1ChannelMembershipSummaryList = ( output: any, context: __SerdeContext ): ChannelMembershipSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21201,6 +21215,7 @@ const deserializeAws_restJson1ChannelMembershipSummaryList = ( } return deserializeAws_restJson1ChannelMembershipSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelMessage = (output: any, context: __SerdeContext): ChannelMessage => { @@ -21261,7 +21276,7 @@ const deserializeAws_restJson1ChannelMessageSummaryList = ( output: any, context: __SerdeContext ): ChannelMessageSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21269,6 +21284,7 @@ const deserializeAws_restJson1ChannelMessageSummaryList = ( } return deserializeAws_restJson1ChannelMessageSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary = ( @@ -21287,7 +21303,7 @@ const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = ( output: any, context: __SerdeContext ): ChannelModeratedByAppInstanceUserSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21295,6 +21311,7 @@ const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = ( } return deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelModerator = (output: any, context: __SerdeContext): ChannelModerator => { @@ -21331,7 +21348,7 @@ const deserializeAws_restJson1ChannelModeratorSummaryList = ( output: any, context: __SerdeContext ): ChannelModeratorSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21339,6 +21356,7 @@ const deserializeAws_restJson1ChannelModeratorSummaryList = ( } return deserializeAws_restJson1ChannelModeratorSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelRetentionSettings = ( @@ -21365,7 +21383,7 @@ const deserializeAws_restJson1ChannelSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ChannelSummaryList = (output: any, context: __SerdeContext): ChannelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21373,6 +21391,7 @@ const deserializeAws_restJson1ChannelSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1ChannelSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChimeSdkMeetingConfiguration = ( @@ -21433,7 +21452,7 @@ const deserializeAws_restJson1DNISEmergencyCallingConfigurationList = ( output: any, context: __SerdeContext ): DNISEmergencyCallingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21441,10 +21460,11 @@ const deserializeAws_restJson1DNISEmergencyCallingConfigurationList = ( } return deserializeAws_restJson1DNISEmergencyCallingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1E164PhoneNumberList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21452,6 +21472,7 @@ const deserializeAws_restJson1E164PhoneNumberList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EmergencyCallingConfiguration = ( @@ -21475,7 +21496,7 @@ const deserializeAws_restJson1EventsConfiguration = (output: any, context: __Ser }; const deserializeAws_restJson1ExternalUserIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21483,6 +21504,7 @@ const deserializeAws_restJson1ExternalUserIdList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1GeoMatchParams = (output: any, context: __SerdeContext): GeoMatchParams => { @@ -21509,7 +21531,7 @@ const deserializeAws_restJson1Invite = (output: any, context: __SerdeContext): I }; const deserializeAws_restJson1InviteList = (output: any, context: __SerdeContext): Invite[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21517,10 +21539,11 @@ const deserializeAws_restJson1InviteList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Invite(entry, context); }); + return retVal; }; const deserializeAws_restJson1LicenseList = (output: any, context: __SerdeContext): (License | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21528,6 +21551,7 @@ const deserializeAws_restJson1LicenseList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LoggingConfiguration = (output: any, context: __SerdeContext): LoggingConfiguration => { @@ -21563,7 +21587,7 @@ const deserializeAws_restJson1MediaCapturePipelineList = ( output: any, context: __SerdeContext ): MediaCapturePipeline[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21571,6 +21595,7 @@ const deserializeAws_restJson1MediaCapturePipelineList = ( } return deserializeAws_restJson1MediaCapturePipeline(entry, context); }); + return retVal; }; const deserializeAws_restJson1MediaPlacement = (output: any, context: __SerdeContext): MediaPlacement => { @@ -21599,7 +21624,7 @@ const deserializeAws_restJson1Meeting = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1MeetingList = (output: any, context: __SerdeContext): Meeting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21607,6 +21632,7 @@ const deserializeAws_restJson1MeetingList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Meeting(entry, context); }); + return retVal; }; const deserializeAws_restJson1Member = (output: any, context: __SerdeContext): Member => { @@ -21628,7 +21654,7 @@ const deserializeAws_restJson1MemberError = (output: any, context: __SerdeContex }; const deserializeAws_restJson1MemberErrorList = (output: any, context: __SerdeContext): MemberError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21636,10 +21662,11 @@ const deserializeAws_restJson1MemberErrorList = (output: any, context: __SerdeCo } return deserializeAws_restJson1MemberError(entry, context); }); + return retVal; }; const deserializeAws_restJson1Members = (output: any, context: __SerdeContext): Identity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21647,6 +21674,7 @@ const deserializeAws_restJson1Members = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Identity(entry, context); }); + return retVal; }; const deserializeAws_restJson1MessagingSessionEndpoint = ( @@ -21666,7 +21694,7 @@ const deserializeAws_restJson1OrderedPhoneNumber = (output: any, context: __Serd }; const deserializeAws_restJson1OrderedPhoneNumberList = (output: any, context: __SerdeContext): OrderedPhoneNumber[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21674,6 +21702,7 @@ const deserializeAws_restJson1OrderedPhoneNumberList = (output: any, context: __ } return deserializeAws_restJson1OrderedPhoneNumber(entry, context); }); + return retVal; }; const deserializeAws_restJson1Origination = (output: any, context: __SerdeContext): Origination => { @@ -21697,7 +21726,7 @@ const deserializeAws_restJson1OriginationRoute = (output: any, context: __SerdeC }; const deserializeAws_restJson1OriginationRouteList = (output: any, context: __SerdeContext): OriginationRoute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21705,6 +21734,7 @@ const deserializeAws_restJson1OriginationRouteList = (output: any, context: __Se } return deserializeAws_restJson1OriginationRoute(entry, context); }); + return retVal; }; const deserializeAws_restJson1Participant = (output: any, context: __SerdeContext): Participant => { @@ -21715,7 +21745,7 @@ const deserializeAws_restJson1Participant = (output: any, context: __SerdeContex }; const deserializeAws_restJson1Participants = (output: any, context: __SerdeContext): Participant[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21723,6 +21753,7 @@ const deserializeAws_restJson1Participants = (output: any, context: __SerdeConte } return deserializeAws_restJson1Participant(entry, context); }); + return retVal; }; const deserializeAws_restJson1PhoneNumber = (output: any, context: __SerdeContext): PhoneNumber => { @@ -21776,7 +21807,7 @@ const deserializeAws_restJson1PhoneNumberAssociationList = ( output: any, context: __SerdeContext ): PhoneNumberAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21784,6 +21815,7 @@ const deserializeAws_restJson1PhoneNumberAssociationList = ( } return deserializeAws_restJson1PhoneNumberAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1PhoneNumberCapabilities = ( @@ -21804,7 +21836,7 @@ const deserializeAws_restJson1PhoneNumberCountriesList = ( output: any, context: __SerdeContext ): PhoneNumberCountry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21812,6 +21844,7 @@ const deserializeAws_restJson1PhoneNumberCountriesList = ( } return deserializeAws_restJson1PhoneNumberCountry(entry, context); }); + return retVal; }; const deserializeAws_restJson1PhoneNumberCountry = (output: any, context: __SerdeContext): PhoneNumberCountry => { @@ -21833,7 +21866,7 @@ const deserializeAws_restJson1PhoneNumberError = (output: any, context: __SerdeC }; const deserializeAws_restJson1PhoneNumberErrorList = (output: any, context: __SerdeContext): PhoneNumberError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21841,10 +21874,11 @@ const deserializeAws_restJson1PhoneNumberErrorList = (output: any, context: __Se } return deserializeAws_restJson1PhoneNumberError(entry, context); }); + return retVal; }; const deserializeAws_restJson1PhoneNumberList = (output: any, context: __SerdeContext): PhoneNumber[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21852,6 +21886,7 @@ const deserializeAws_restJson1PhoneNumberList = (output: any, context: __SerdeCo } return deserializeAws_restJson1PhoneNumber(entry, context); }); + return retVal; }; const deserializeAws_restJson1PhoneNumberOrder = (output: any, context: __SerdeContext): PhoneNumberOrder => { @@ -21875,7 +21910,7 @@ const deserializeAws_restJson1PhoneNumberOrder = (output: any, context: __SerdeC }; const deserializeAws_restJson1PhoneNumberOrderList = (output: any, context: __SerdeContext): PhoneNumberOrder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21883,13 +21918,14 @@ const deserializeAws_restJson1PhoneNumberOrderList = (output: any, context: __Se } return deserializeAws_restJson1PhoneNumberOrder(entry, context); }); + return retVal; }; const deserializeAws_restJson1PhoneNumberTypeList = ( output: any, context: __SerdeContext ): (PhoneNumberType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21897,6 +21933,7 @@ const deserializeAws_restJson1PhoneNumberTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Proxy = (output: any, context: __SerdeContext): Proxy => { @@ -21948,7 +21985,7 @@ const deserializeAws_restJson1ProxySession = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ProxySessions = (output: any, context: __SerdeContext): ProxySession[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21956,6 +21993,7 @@ const deserializeAws_restJson1ProxySessions = (output: any, context: __SerdeCont } return deserializeAws_restJson1ProxySession(entry, context); }); + return retVal; }; const deserializeAws_restJson1RetentionSettings = (output: any, context: __SerdeContext): RetentionSettings => { @@ -21989,7 +22027,7 @@ const deserializeAws_restJson1Room = (output: any, context: __SerdeContext): Roo }; const deserializeAws_restJson1RoomList = (output: any, context: __SerdeContext): Room[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21997,6 +22035,7 @@ const deserializeAws_restJson1RoomList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Room(entry, context); }); + return retVal; }; const deserializeAws_restJson1RoomMembership = (output: any, context: __SerdeContext): RoomMembership => { @@ -22016,7 +22055,7 @@ const deserializeAws_restJson1RoomMembership = (output: any, context: __SerdeCon }; const deserializeAws_restJson1RoomMembershipList = (output: any, context: __SerdeContext): RoomMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22024,6 +22063,7 @@ const deserializeAws_restJson1RoomMembershipList = (output: any, context: __Serd } return deserializeAws_restJson1RoomMembership(entry, context); }); + return retVal; }; const deserializeAws_restJson1RoomRetentionSettings = (output: any, context: __SerdeContext): RoomRetentionSettings => { @@ -22046,7 +22086,7 @@ const deserializeAws_restJson1SelectedVideoStreams = (output: any, context: __Se }; const deserializeAws_restJson1SensitiveStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22054,6 +22094,7 @@ const deserializeAws_restJson1SensitiveStringList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SigninDelegateGroup = (output: any, context: __SerdeContext): SigninDelegateGroup => { @@ -22066,7 +22107,7 @@ const deserializeAws_restJson1SigninDelegateGroupList = ( output: any, context: __SerdeContext ): SigninDelegateGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22074,6 +22115,7 @@ const deserializeAws_restJson1SigninDelegateGroupList = ( } return deserializeAws_restJson1SigninDelegateGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1SipMediaApplication = (output: any, context: __SerdeContext): SipMediaApplication => { @@ -22118,7 +22160,7 @@ const deserializeAws_restJson1SipMediaApplicationEndpointList = ( output: any, context: __SerdeContext ): SipMediaApplicationEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22126,13 +22168,14 @@ const deserializeAws_restJson1SipMediaApplicationEndpointList = ( } return deserializeAws_restJson1SipMediaApplicationEndpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1SipMediaApplicationList = ( output: any, context: __SerdeContext ): SipMediaApplication[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22140,6 +22183,7 @@ const deserializeAws_restJson1SipMediaApplicationList = ( } return deserializeAws_restJson1SipMediaApplication(entry, context); }); + return retVal; }; const deserializeAws_restJson1SipMediaApplicationLoggingConfiguration = ( @@ -22174,7 +22218,7 @@ const deserializeAws_restJson1SipRule = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1SipRuleList = (output: any, context: __SerdeContext): SipRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22182,6 +22226,7 @@ const deserializeAws_restJson1SipRuleList = (output: any, context: __SerdeContex } return deserializeAws_restJson1SipRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1SipRuleTargetApplication = ( @@ -22199,7 +22244,7 @@ const deserializeAws_restJson1SipRuleTargetApplicationList = ( output: any, context: __SerdeContext ): SipRuleTargetApplication[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22207,6 +22252,7 @@ const deserializeAws_restJson1SipRuleTargetApplicationList = ( } return deserializeAws_restJson1SipRuleTargetApplication(entry, context); }); + return retVal; }; const deserializeAws_restJson1SourceConfiguration = (output: any, context: __SerdeContext): SourceConfiguration => { @@ -22245,7 +22291,7 @@ const deserializeAws_restJson1StreamingNotificationTargetList = ( output: any, context: __SerdeContext ): StreamingNotificationTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22253,10 +22299,11 @@ const deserializeAws_restJson1StreamingNotificationTargetList = ( } return deserializeAws_restJson1StreamingNotificationTarget(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22264,6 +22311,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -22274,7 +22322,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22282,6 +22330,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TelephonySettings = (output: any, context: __SerdeContext): TelephonySettings => { @@ -22354,7 +22403,7 @@ const deserializeAws_restJson1UserError = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1UserErrorList = (output: any, context: __SerdeContext): UserError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22362,10 +22411,11 @@ const deserializeAws_restJson1UserErrorList = (output: any, context: __SerdeCont } return deserializeAws_restJson1UserError(entry, context); }); + return retVal; }; const deserializeAws_restJson1UserList = (output: any, context: __SerdeContext): User[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22373,6 +22423,7 @@ const deserializeAws_restJson1UserList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1User(entry, context); }); + return retVal; }; const deserializeAws_restJson1UserSettings = (output: any, context: __SerdeContext): UserSettings => { @@ -22437,7 +22488,7 @@ const deserializeAws_restJson1VoiceConnectorGroupList = ( output: any, context: __SerdeContext ): VoiceConnectorGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22445,6 +22496,7 @@ const deserializeAws_restJson1VoiceConnectorGroupList = ( } return deserializeAws_restJson1VoiceConnectorGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1VoiceConnectorItem = (output: any, context: __SerdeContext): VoiceConnectorItem => { @@ -22455,7 +22507,7 @@ const deserializeAws_restJson1VoiceConnectorItem = (output: any, context: __Serd }; const deserializeAws_restJson1VoiceConnectorItemList = (output: any, context: __SerdeContext): VoiceConnectorItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22463,10 +22515,11 @@ const deserializeAws_restJson1VoiceConnectorItemList = (output: any, context: __ } return deserializeAws_restJson1VoiceConnectorItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1VoiceConnectorList = (output: any, context: __SerdeContext): VoiceConnector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22474,6 +22527,7 @@ const deserializeAws_restJson1VoiceConnectorList = (output: any, context: __Serd } return deserializeAws_restJson1VoiceConnector(entry, context); }); + return retVal; }; const deserializeAws_restJson1VoiceConnectorSettings = ( diff --git a/clients/client-cloud9/src/protocols/Aws_json1_1.ts b/clients/client-cloud9/src/protocols/Aws_json1_1.ts index d7b964f1e838..34676d45ae70 100644 --- a/clients/client-cloud9/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloud9/src/protocols/Aws_json1_1.ts @@ -1438,7 +1438,7 @@ const deserializeAws_json1_1Environment = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1EnvironmentIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1446,6 +1446,7 @@ const deserializeAws_json1_1EnvironmentIdList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1EnvironmentLifecycle = (output: any, context: __SerdeContext): EnvironmentLifecycle => { @@ -1457,7 +1458,7 @@ const deserializeAws_json1_1EnvironmentLifecycle = (output: any, context: __Serd }; const deserializeAws_json1_1EnvironmentList = (output: any, context: __SerdeContext): Environment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1465,6 +1466,7 @@ const deserializeAws_json1_1EnvironmentList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Environment(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnvironmentMember = (output: any, context: __SerdeContext): EnvironmentMember => { @@ -1481,7 +1483,7 @@ const deserializeAws_json1_1EnvironmentMember = (output: any, context: __SerdeCo }; const deserializeAws_json1_1EnvironmentMembersList = (output: any, context: __SerdeContext): EnvironmentMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1489,6 +1491,7 @@ const deserializeAws_json1_1EnvironmentMembersList = (output: any, context: __Se } return deserializeAws_json1_1EnvironmentMember(entry, context); }); + return retVal; }; const deserializeAws_json1_1ForbiddenException = (output: any, context: __SerdeContext): ForbiddenException => { @@ -1556,7 +1559,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1564,6 +1567,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-cloudcontrol/src/protocols/Aws_json1_0.ts b/clients/client-cloudcontrol/src/protocols/Aws_json1_0.ts index 0f2e5f1f6549..0996a8cc148d 100644 --- a/clients/client-cloudcontrol/src/protocols/Aws_json1_0.ts +++ b/clients/client-cloudcontrol/src/protocols/Aws_json1_0.ts @@ -1406,7 +1406,7 @@ const deserializeAws_json1_0ResourceDescription = (output: any, context: __Serde }; const deserializeAws_json1_0ResourceDescriptions = (output: any, context: __SerdeContext): ResourceDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1414,6 +1414,7 @@ const deserializeAws_json1_0ResourceDescriptions = (output: any, context: __Serd } return deserializeAws_json1_0ResourceDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0ResourceNotFoundException = ( @@ -1429,7 +1430,7 @@ const deserializeAws_json1_0ResourceRequestStatusSummaries = ( output: any, context: __SerdeContext ): ProgressEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1437,6 +1438,7 @@ const deserializeAws_json1_0ResourceRequestStatusSummaries = ( } return deserializeAws_json1_0ProgressEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_0ServiceInternalErrorException = ( diff --git a/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts b/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts index 7002601ce7af..b292496f2cc3 100644 --- a/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts +++ b/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts @@ -8469,7 +8469,7 @@ const serializeAws_restJson1TypedLinkSpecifier = (input: TypedLinkSpecifier, con }; const deserializeAws_restJson1Arns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8477,6 +8477,7 @@ const deserializeAws_restJson1Arns = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AttributeKey = (output: any, context: __SerdeContext): AttributeKey => { @@ -8504,7 +8505,7 @@ const deserializeAws_restJson1AttributeKeyAndValueList = ( output: any, context: __SerdeContext ): AttributeKeyAndValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8512,6 +8513,7 @@ const deserializeAws_restJson1AttributeKeyAndValueList = ( } return deserializeAws_restJson1AttributeKeyAndValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1AttributeNameAndValue = (output: any, context: __SerdeContext): AttributeNameAndValue => { @@ -8528,7 +8530,7 @@ const deserializeAws_restJson1AttributeNameAndValueList = ( output: any, context: __SerdeContext ): AttributeNameAndValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8536,10 +8538,11 @@ const deserializeAws_restJson1AttributeNameAndValueList = ( } return deserializeAws_restJson1AttributeNameAndValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1AttributeNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8547,6 +8550,7 @@ const deserializeAws_restJson1AttributeNameList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BatchAddFacetToObjectResponse = ( @@ -8857,7 +8861,7 @@ const deserializeAws_restJson1BatchReadOperationResponseList = ( output: any, context: __SerdeContext ): BatchReadOperationResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8865,6 +8869,7 @@ const deserializeAws_restJson1BatchReadOperationResponseList = ( } return deserializeAws_restJson1BatchReadOperationResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchReadSuccessfulResponse = ( @@ -9026,7 +9031,7 @@ const deserializeAws_restJson1BatchWriteOperationResponseList = ( output: any, context: __SerdeContext ): BatchWriteOperationResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9034,6 +9039,7 @@ const deserializeAws_restJson1BatchWriteOperationResponseList = ( } return deserializeAws_restJson1BatchWriteOperationResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1Directory = (output: any, context: __SerdeContext): Directory => { @@ -9049,7 +9055,7 @@ const deserializeAws_restJson1Directory = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1DirectoryList = (output: any, context: __SerdeContext): Directory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9057,6 +9063,7 @@ const deserializeAws_restJson1DirectoryList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Directory(entry, context); }); + return retVal; }; const deserializeAws_restJson1Facet = (output: any, context: __SerdeContext): Facet => { @@ -9101,7 +9108,7 @@ const deserializeAws_restJson1FacetAttributeDefinition = ( }; const deserializeAws_restJson1FacetAttributeList = (output: any, context: __SerdeContext): FacetAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9109,6 +9116,7 @@ const deserializeAws_restJson1FacetAttributeList = (output: any, context: __Serd } return deserializeAws_restJson1FacetAttribute(entry, context); }); + return retVal; }; const deserializeAws_restJson1FacetAttributeReference = ( @@ -9122,7 +9130,7 @@ const deserializeAws_restJson1FacetAttributeReference = ( }; const deserializeAws_restJson1FacetNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9130,6 +9138,7 @@ const deserializeAws_restJson1FacetNameList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IndexAttachment = (output: any, context: __SerdeContext): IndexAttachment => { @@ -9143,7 +9152,7 @@ const deserializeAws_restJson1IndexAttachment = (output: any, context: __SerdeCo }; const deserializeAws_restJson1IndexAttachmentList = (output: any, context: __SerdeContext): IndexAttachment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9151,6 +9160,7 @@ const deserializeAws_restJson1IndexAttachmentList = (output: any, context: __Ser } return deserializeAws_restJson1IndexAttachment(entry, context); }); + return retVal; }; const deserializeAws_restJson1LinkNameToObjectIdentifierMap = ( @@ -9172,7 +9182,7 @@ const deserializeAws_restJson1ObjectIdentifierAndLinkNameList = ( output: any, context: __SerdeContext ): ObjectIdentifierAndLinkNameTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9180,6 +9190,7 @@ const deserializeAws_restJson1ObjectIdentifierAndLinkNameList = ( } return deserializeAws_restJson1ObjectIdentifierAndLinkNameTuple(entry, context); }); + return retVal; }; const deserializeAws_restJson1ObjectIdentifierAndLinkNameTuple = ( @@ -9193,7 +9204,7 @@ const deserializeAws_restJson1ObjectIdentifierAndLinkNameTuple = ( }; const deserializeAws_restJson1ObjectIdentifierList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9201,6 +9212,7 @@ const deserializeAws_restJson1ObjectIdentifierList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ObjectIdentifierToLinkNameMap = ( @@ -9241,7 +9253,7 @@ const deserializeAws_restJson1PathToObjectIdentifiersList = ( output: any, context: __SerdeContext ): PathToObjectIdentifiers[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9249,6 +9261,7 @@ const deserializeAws_restJson1PathToObjectIdentifiersList = ( } return deserializeAws_restJson1PathToObjectIdentifiers(entry, context); }); + return retVal; }; const deserializeAws_restJson1PolicyAttachment = (output: any, context: __SerdeContext): PolicyAttachment => { @@ -9260,7 +9273,7 @@ const deserializeAws_restJson1PolicyAttachment = (output: any, context: __SerdeC }; const deserializeAws_restJson1PolicyAttachmentList = (output: any, context: __SerdeContext): PolicyAttachment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9268,6 +9281,7 @@ const deserializeAws_restJson1PolicyAttachmentList = (output: any, context: __Se } return deserializeAws_restJson1PolicyAttachment(entry, context); }); + return retVal; }; const deserializeAws_restJson1PolicyToPath = (output: any, context: __SerdeContext): PolicyToPath => { @@ -9281,7 +9295,7 @@ const deserializeAws_restJson1PolicyToPath = (output: any, context: __SerdeConte }; const deserializeAws_restJson1PolicyToPathList = (output: any, context: __SerdeContext): PolicyToPath[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9289,6 +9303,7 @@ const deserializeAws_restJson1PolicyToPathList = (output: any, context: __SerdeC } return deserializeAws_restJson1PolicyToPath(entry, context); }); + return retVal; }; const deserializeAws_restJson1Rule = (output: any, context: __SerdeContext): Rule => { @@ -9333,7 +9348,7 @@ const deserializeAws_restJson1SchemaFacet = (output: any, context: __SerdeContex }; const deserializeAws_restJson1SchemaFacetList = (output: any, context: __SerdeContext): SchemaFacet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9341,6 +9356,7 @@ const deserializeAws_restJson1SchemaFacetList = (output: any, context: __SerdeCo } return deserializeAws_restJson1SchemaFacet(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -9351,7 +9367,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9359,6 +9375,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TypedAttributeValue = (output: any, context: __SerdeContext): TypedAttributeValue => { @@ -9408,7 +9425,7 @@ const deserializeAws_restJson1TypedLinkAttributeDefinitionList = ( output: any, context: __SerdeContext ): TypedLinkAttributeDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9416,10 +9433,11 @@ const deserializeAws_restJson1TypedLinkAttributeDefinitionList = ( } return deserializeAws_restJson1TypedLinkAttributeDefinition(entry, context); }); + return retVal; }; const deserializeAws_restJson1TypedLinkNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9427,6 +9445,7 @@ const deserializeAws_restJson1TypedLinkNameList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TypedLinkSchemaAndFacetName = ( @@ -9461,7 +9480,7 @@ const deserializeAws_restJson1TypedLinkSpecifier = (output: any, context: __Serd }; const deserializeAws_restJson1TypedLinkSpecifierList = (output: any, context: __SerdeContext): TypedLinkSpecifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9469,6 +9488,7 @@ const deserializeAws_restJson1TypedLinkSpecifierList = (output: any, context: __ } return deserializeAws_restJson1TypedLinkSpecifier(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts b/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts index f88089e218ef..b7181436c092 100644 --- a/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts @@ -1443,7 +1443,7 @@ const deserializeAws_json1_1BackupRetentionPolicy = (output: any, context: __Ser }; const deserializeAws_json1_1Backups = (output: any, context: __SerdeContext): Backup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1451,6 +1451,7 @@ const deserializeAws_json1_1Backups = (output: any, context: __SerdeContext): Ba } return deserializeAws_json1_1Backup(entry, context); }); + return retVal; }; const deserializeAws_json1_1Certificates = (output: any, context: __SerdeContext): Certificates => { @@ -1551,7 +1552,7 @@ const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cl }; const deserializeAws_json1_1Clusters = (output: any, context: __SerdeContext): Cluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1559,6 +1560,7 @@ const deserializeAws_json1_1Clusters = (output: any, context: __SerdeContext): C } return deserializeAws_json1_1Cluster(entry, context); }); + return retVal; }; const deserializeAws_json1_1CopyBackupToRegionResponse = ( @@ -1679,7 +1681,7 @@ const deserializeAws_json1_1Hsm = (output: any, context: __SerdeContext): Hsm => }; const deserializeAws_json1_1Hsms = (output: any, context: __SerdeContext): Hsm[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1687,6 +1689,7 @@ const deserializeAws_json1_1Hsms = (output: any, context: __SerdeContext): Hsm[] } return deserializeAws_json1_1Hsm(entry, context); }); + return retVal; }; const deserializeAws_json1_1InitializeClusterResponse = ( @@ -1747,7 +1750,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1755,6 +1758,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-cloudhsm/src/protocols/Aws_json1_1.ts b/clients/client-cloudhsm/src/protocols/Aws_json1_1.ts index cda0935395dc..10ac9c06da54 100644 --- a/clients/client-cloudhsm/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudhsm/src/protocols/Aws_json1_1.ts @@ -1583,7 +1583,7 @@ const deserializeAws_json1_1AddTagsToResourceResponse = ( }; const deserializeAws_json1_1AZList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1591,10 +1591,11 @@ const deserializeAws_json1_1AZList = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ClientList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1602,6 +1603,7 @@ const deserializeAws_json1_1ClientList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CloudHsmInternalException = ( @@ -1743,7 +1745,7 @@ const deserializeAws_json1_1GetConfigResponse = (output: any, context: __SerdeCo }; const deserializeAws_json1_1HapgList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1751,10 +1753,11 @@ const deserializeAws_json1_1HapgList = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1HsmList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1762,6 +1765,7 @@ const deserializeAws_json1_1HsmList = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InvalidRequestException = ( @@ -1853,7 +1857,7 @@ const deserializeAws_json1_1ModifyLunaClientResponse = ( }; const deserializeAws_json1_1PartitionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1861,10 +1865,11 @@ const deserializeAws_json1_1PartitionList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PartitionSerialList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1872,6 +1877,7 @@ const deserializeAws_json1_1PartitionSerialList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RemoveTagsFromResourceResponse = ( @@ -1891,7 +1897,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1899,6 +1905,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts b/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts index 047fbf9b84c2..6a0b5ecdebfe 100644 --- a/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts +++ b/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts @@ -340,7 +340,7 @@ const deserializeAws_restJson1BucketInfo = (output: any, context: __SerdeContext }; const deserializeAws_restJson1BucketList = (output: any, context: __SerdeContext): Bucket[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -348,6 +348,7 @@ const deserializeAws_restJson1BucketList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Bucket(entry, context); }); + return retVal; }; const deserializeAws_restJson1DocumentServiceWarning = ( @@ -363,7 +364,7 @@ const deserializeAws_restJson1DocumentServiceWarnings = ( output: any, context: __SerdeContext ): DocumentServiceWarning[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -371,6 +372,7 @@ const deserializeAws_restJson1DocumentServiceWarnings = ( } return deserializeAws_restJson1DocumentServiceWarning(entry, context); }); + return retVal; }; const deserializeAws_restJson1Exprs = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -423,7 +425,7 @@ const deserializeAws_restJson1FieldStats = (output: any, context: __SerdeContext }; const deserializeAws_restJson1FieldValue = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -431,6 +433,7 @@ const deserializeAws_restJson1FieldValue = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Highlights = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -464,7 +467,7 @@ const deserializeAws_restJson1Hit = (output: any, context: __SerdeContext): Hit }; const deserializeAws_restJson1HitList = (output: any, context: __SerdeContext): Hit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -472,6 +475,7 @@ const deserializeAws_restJson1HitList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Hit(entry, context); }); + return retVal; }; const deserializeAws_restJson1Hits = (output: any, context: __SerdeContext): Hits => { @@ -514,7 +518,7 @@ const deserializeAws_restJson1SuggestionMatch = (output: any, context: __SerdeCo }; const deserializeAws_restJson1Suggestions = (output: any, context: __SerdeContext): SuggestionMatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -522,6 +526,7 @@ const deserializeAws_restJson1Suggestions = (output: any, context: __SerdeContex } return deserializeAws_restJson1SuggestionMatch(entry, context); }); + return retVal; }; const deserializeAws_restJson1SuggestModel = (output: any, context: __SerdeContext): SuggestModel => { diff --git a/clients/client-cloudtrail/src/protocols/Aws_json1_1.ts b/clients/client-cloudtrail/src/protocols/Aws_json1_1.ts index 39bee60f2215..71f0c34381d4 100644 --- a/clients/client-cloudtrail/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudtrail/src/protocols/Aws_json1_1.ts @@ -3852,7 +3852,7 @@ const deserializeAws_json1_1AdvancedEventSelectors = ( output: any, context: __SerdeContext ): AdvancedEventSelector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3860,6 +3860,7 @@ const deserializeAws_json1_1AdvancedEventSelectors = ( } return deserializeAws_json1_1AdvancedEventSelector(entry, context); }); + return retVal; }; const deserializeAws_json1_1AdvancedFieldSelector = (output: any, context: __SerdeContext): AdvancedFieldSelector => { @@ -3896,7 +3897,7 @@ const deserializeAws_json1_1AdvancedFieldSelectors = ( output: any, context: __SerdeContext ): AdvancedFieldSelector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3904,6 +3905,7 @@ const deserializeAws_json1_1AdvancedFieldSelectors = ( } return deserializeAws_json1_1AdvancedFieldSelector(entry, context); }); + return retVal; }; const deserializeAws_json1_1CancelQueryResponse = (output: any, context: __SerdeContext): CancelQueryResponse => { @@ -4015,7 +4017,7 @@ const deserializeAws_json1_1DataResource = (output: any, context: __SerdeContext }; const deserializeAws_json1_1DataResources = (output: any, context: __SerdeContext): DataResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4023,10 +4025,11 @@ const deserializeAws_json1_1DataResources = (output: any, context: __SerdeContex } return deserializeAws_json1_1DataResource(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataResourceValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4034,6 +4037,7 @@ const deserializeAws_json1_1DataResourceValues = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeleteEventDataStoreResponse = ( @@ -4150,7 +4154,7 @@ const deserializeAws_json1_1EventDataStoreNotFoundException = ( }; const deserializeAws_json1_1EventDataStores = (output: any, context: __SerdeContext): EventDataStore[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4158,6 +4162,7 @@ const deserializeAws_json1_1EventDataStores = (output: any, context: __SerdeCont } return deserializeAws_json1_1EventDataStore(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventDataStoreTerminationProtectedException = ( @@ -4185,7 +4190,7 @@ const deserializeAws_json1_1EventSelector = (output: any, context: __SerdeContex }; const deserializeAws_json1_1EventSelectors = (output: any, context: __SerdeContext): EventSelector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4193,10 +4198,11 @@ const deserializeAws_json1_1EventSelectors = (output: any, context: __SerdeConte } return deserializeAws_json1_1EventSelector(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventsList = (output: any, context: __SerdeContext): Event[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4204,10 +4210,11 @@ const deserializeAws_json1_1EventsList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Event(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExcludeManagementEventSources = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4215,6 +4222,7 @@ const deserializeAws_json1_1ExcludeManagementEventSources = (output: any, contex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1GetEventDataStoreResponse = ( @@ -4373,7 +4381,7 @@ const deserializeAws_json1_1InsightSelector = (output: any, context: __SerdeCont }; const deserializeAws_json1_1InsightSelectors = (output: any, context: __SerdeContext): InsightSelector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4381,6 +4389,7 @@ const deserializeAws_json1_1InsightSelectors = (output: any, context: __SerdeCon } return deserializeAws_json1_1InsightSelector(entry, context); }); + return retVal; }; const deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionException = ( @@ -4747,7 +4756,7 @@ const deserializeAws_json1_1OperationNotPermittedException = ( }; const deserializeAws_json1_1Operator = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4755,6 +4764,7 @@ const deserializeAws_json1_1Operator = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OrganizationNotInAllFeaturesModeException = ( @@ -4791,7 +4801,7 @@ const deserializeAws_json1_1PublicKey = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1PublicKeyList = (output: any, context: __SerdeContext): PublicKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4799,6 +4809,7 @@ const deserializeAws_json1_1PublicKeyList = (output: any, context: __SerdeContex } return deserializeAws_json1_1PublicKey(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutEventSelectorsResponse = ( @@ -4832,7 +4843,7 @@ const deserializeAws_json1_1PutInsightSelectorsResponse = ( }; const deserializeAws_json1_1Queries = (output: any, context: __SerdeContext): Query[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4840,6 +4851,7 @@ const deserializeAws_json1_1Queries = (output: any, context: __SerdeContext): Qu } return deserializeAws_json1_1Query(entry, context); }); + return retVal; }; const deserializeAws_json1_1Query = (output: any, context: __SerdeContext): Query => { @@ -4875,7 +4887,7 @@ const deserializeAws_json1_1QueryResultColumn = (output: any, context: __SerdeCo }; const deserializeAws_json1_1QueryResultRow = (output: any, context: __SerdeContext): { [key: string]: string }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4883,10 +4895,11 @@ const deserializeAws_json1_1QueryResultRow = (output: any, context: __SerdeConte } return deserializeAws_json1_1QueryResultColumn(entry, context); }); + return retVal; }; const deserializeAws_json1_1QueryResultRows = (output: any, context: __SerdeContext): { [key: string]: string }[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4894,6 +4907,7 @@ const deserializeAws_json1_1QueryResultRows = (output: any, context: __SerdeCont } return deserializeAws_json1_1QueryResultRow(entry, context); }); + return retVal; }; const deserializeAws_json1_1QueryStatistics = (output: any, context: __SerdeContext): QueryStatistics => { @@ -4930,7 +4944,7 @@ const deserializeAws_json1_1Resource = (output: any, context: __SerdeContext): R }; const deserializeAws_json1_1ResourceList = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4938,6 +4952,7 @@ const deserializeAws_json1_1ResourceList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Resource(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceNotFoundException = ( @@ -4960,7 +4975,7 @@ const deserializeAws_json1_1ResourceTag = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ResourceTagList = (output: any, context: __SerdeContext): ResourceTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4968,6 +4983,7 @@ const deserializeAws_json1_1ResourceTagList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ResourceTag(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceTypeNotSupportedException = ( @@ -5046,7 +5062,7 @@ const deserializeAws_json1_1TagsLimitExceededException = ( }; const deserializeAws_json1_1TagsList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5054,6 +5070,7 @@ const deserializeAws_json1_1TagsList = (output: any, context: __SerdeContext): T } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1Trail = (output: any, context: __SerdeContext): Trail => { @@ -5095,7 +5112,7 @@ const deserializeAws_json1_1TrailInfo = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1TrailList = (output: any, context: __SerdeContext): Trail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5103,6 +5120,7 @@ const deserializeAws_json1_1TrailList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Trail(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrailNotFoundException = (output: any, context: __SerdeContext): TrailNotFoundException => { @@ -5121,7 +5139,7 @@ const deserializeAws_json1_1TrailNotProvidedException = ( }; const deserializeAws_json1_1Trails = (output: any, context: __SerdeContext): TrailInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5129,6 +5147,7 @@ const deserializeAws_json1_1Trails = (output: any, context: __SerdeContext): Tra } return deserializeAws_json1_1TrailInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnsupportedOperationException = ( diff --git a/clients/client-cloudwatch-events/src/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-events/src/protocols/Aws_json1_1.ts index a23034ab6518..a60ca20f56d6 100644 --- a/clients/client-cloudwatch-events/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudwatch-events/src/protocols/Aws_json1_1.ts @@ -4905,7 +4905,7 @@ const deserializeAws_json1_1ApiDestination = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ApiDestinationResponseList = (output: any, context: __SerdeContext): ApiDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4913,6 +4913,7 @@ const deserializeAws_json1_1ApiDestinationResponseList = (output: any, context: } return deserializeAws_json1_1ApiDestination(entry, context); }); + return retVal; }; const deserializeAws_json1_1Archive = (output: any, context: __SerdeContext): Archive => { @@ -4932,7 +4933,7 @@ const deserializeAws_json1_1Archive = (output: any, context: __SerdeContext): Ar }; const deserializeAws_json1_1ArchiveResponseList = (output: any, context: __SerdeContext): Archive[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4940,6 +4941,7 @@ const deserializeAws_json1_1ArchiveResponseList = (output: any, context: __Serde } return deserializeAws_json1_1Archive(entry, context); }); + return retVal; }; const deserializeAws_json1_1AwsVpcConfiguration = (output: any, context: __SerdeContext): AwsVpcConfiguration => { @@ -4995,7 +4997,7 @@ const deserializeAws_json1_1CapacityProviderStrategy = ( output: any, context: __SerdeContext ): CapacityProviderStrategyItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5003,6 +5005,7 @@ const deserializeAws_json1_1CapacityProviderStrategy = ( } return deserializeAws_json1_1CapacityProviderStrategyItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1CapacityProviderStrategyItem = ( @@ -5104,7 +5107,7 @@ const deserializeAws_json1_1ConnectionBodyParametersList = ( output: any, context: __SerdeContext ): ConnectionBodyParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5112,6 +5115,7 @@ const deserializeAws_json1_1ConnectionBodyParametersList = ( } return deserializeAws_json1_1ConnectionBodyParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionHeaderParameter = ( @@ -5129,7 +5133,7 @@ const deserializeAws_json1_1ConnectionHeaderParametersList = ( output: any, context: __SerdeContext ): ConnectionHeaderParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5137,6 +5141,7 @@ const deserializeAws_json1_1ConnectionHeaderParametersList = ( } return deserializeAws_json1_1ConnectionHeaderParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionHttpParameters = ( @@ -5201,7 +5206,7 @@ const deserializeAws_json1_1ConnectionQueryStringParametersList = ( output: any, context: __SerdeContext ): ConnectionQueryStringParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5209,10 +5214,11 @@ const deserializeAws_json1_1ConnectionQueryStringParametersList = ( } return deserializeAws_json1_1ConnectionQueryStringParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionResponseList = (output: any, context: __SerdeContext): Connection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5220,6 +5226,7 @@ const deserializeAws_json1_1ConnectionResponseList = (output: any, context: __Se } return deserializeAws_json1_1Connection(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateApiDestinationResponse = ( @@ -5557,7 +5564,7 @@ const deserializeAws_json1_1EventBus = (output: any, context: __SerdeContext): E }; const deserializeAws_json1_1EventBusList = (output: any, context: __SerdeContext): EventBus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5565,6 +5572,7 @@ const deserializeAws_json1_1EventBusList = (output: any, context: __SerdeContext } return deserializeAws_json1_1EventBus(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventSource = (output: any, context: __SerdeContext): EventSource => { @@ -5585,7 +5593,7 @@ const deserializeAws_json1_1EventSource = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1EventSourceList = (output: any, context: __SerdeContext): EventSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5593,6 +5601,7 @@ const deserializeAws_json1_1EventSourceList = (output: any, context: __SerdeCont } return deserializeAws_json1_1EventSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1HeaderParametersMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -5869,7 +5878,7 @@ const deserializeAws_json1_1PartnerEventSourceAccountList = ( output: any, context: __SerdeContext ): PartnerEventSourceAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5877,10 +5886,11 @@ const deserializeAws_json1_1PartnerEventSourceAccountList = ( } return deserializeAws_json1_1PartnerEventSourceAccount(entry, context); }); + return retVal; }; const deserializeAws_json1_1PartnerEventSourceList = (output: any, context: __SerdeContext): PartnerEventSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5888,10 +5898,11 @@ const deserializeAws_json1_1PartnerEventSourceList = (output: any, context: __Se } return deserializeAws_json1_1PartnerEventSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1PathParameterList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5899,6 +5910,7 @@ const deserializeAws_json1_1PathParameterList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PlacementConstraint = (output: any, context: __SerdeContext): PlacementConstraint => { @@ -5909,7 +5921,7 @@ const deserializeAws_json1_1PlacementConstraint = (output: any, context: __Serde }; const deserializeAws_json1_1PlacementConstraints = (output: any, context: __SerdeContext): PlacementConstraint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5917,10 +5929,11 @@ const deserializeAws_json1_1PlacementConstraints = (output: any, context: __Serd } return deserializeAws_json1_1PlacementConstraint(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlacementStrategies = (output: any, context: __SerdeContext): PlacementStrategy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5928,6 +5941,7 @@ const deserializeAws_json1_1PlacementStrategies = (output: any, context: __Serde } return deserializeAws_json1_1PlacementStrategy(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlacementStrategy = (output: any, context: __SerdeContext): PlacementStrategy => { @@ -5968,7 +5982,7 @@ const deserializeAws_json1_1PutEventsResultEntryList = ( output: any, context: __SerdeContext ): PutEventsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5976,6 +5990,7 @@ const deserializeAws_json1_1PutEventsResultEntryList = ( } return deserializeAws_json1_1PutEventsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutPartnerEventsResponse = ( @@ -6006,7 +6021,7 @@ const deserializeAws_json1_1PutPartnerEventsResultEntryList = ( output: any, context: __SerdeContext ): PutPartnerEventsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6014,6 +6029,7 @@ const deserializeAws_json1_1PutPartnerEventsResultEntryList = ( } return deserializeAws_json1_1PutPartnerEventsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutRuleResponse = (output: any, context: __SerdeContext): PutRuleResponse => { @@ -6044,7 +6060,7 @@ const deserializeAws_json1_1PutTargetsResultEntryList = ( output: any, context: __SerdeContext ): PutTargetsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6052,6 +6068,7 @@ const deserializeAws_json1_1PutTargetsResultEntryList = ( } return deserializeAws_json1_1PutTargetsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1QueryStringParametersMap = ( @@ -6105,7 +6122,7 @@ const deserializeAws_json1_1RemoveTargetsResultEntryList = ( output: any, context: __SerdeContext ): RemoveTargetsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6113,6 +6130,7 @@ const deserializeAws_json1_1RemoveTargetsResultEntryList = ( } return deserializeAws_json1_1RemoveTargetsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1Replay = (output: any, context: __SerdeContext): Replay => { @@ -6155,7 +6173,7 @@ const deserializeAws_json1_1ReplayDestination = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ReplayDestinationFilters = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6163,10 +6181,11 @@ const deserializeAws_json1_1ReplayDestinationFilters = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ReplayList = (output: any, context: __SerdeContext): Replay[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6174,6 +6193,7 @@ const deserializeAws_json1_1ReplayList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Replay(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceAlreadyExistsException = ( @@ -6216,7 +6236,7 @@ const deserializeAws_json1_1Rule = (output: any, context: __SerdeContext): Rule }; const deserializeAws_json1_1RuleNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6224,10 +6244,11 @@ const deserializeAws_json1_1RuleNameList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RuleResponseList = (output: any, context: __SerdeContext): Rule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6235,6 +6256,7 @@ const deserializeAws_json1_1RuleResponseList = (output: any, context: __SerdeCon } return deserializeAws_json1_1Rule(entry, context); }); + return retVal; }; const deserializeAws_json1_1RunCommandParameters = (output: any, context: __SerdeContext): RunCommandParameters => { @@ -6257,7 +6279,7 @@ const deserializeAws_json1_1RunCommandTarget = (output: any, context: __SerdeCon }; const deserializeAws_json1_1RunCommandTargets = (output: any, context: __SerdeContext): RunCommandTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6265,10 +6287,11 @@ const deserializeAws_json1_1RunCommandTargets = (output: any, context: __SerdeCo } return deserializeAws_json1_1RunCommandTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1RunCommandTargetValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6276,6 +6299,7 @@ const deserializeAws_json1_1RunCommandTargetValues = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SageMakerPipelineParameter = ( @@ -6292,7 +6316,7 @@ const deserializeAws_json1_1SageMakerPipelineParameterList = ( output: any, context: __SerdeContext ): SageMakerPipelineParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6300,6 +6324,7 @@ const deserializeAws_json1_1SageMakerPipelineParameterList = ( } return deserializeAws_json1_1SageMakerPipelineParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1SageMakerPipelineParameters = ( @@ -6333,7 +6358,7 @@ const deserializeAws_json1_1StartReplayResponse = (output: any, context: __Serde }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6341,6 +6366,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -6351,7 +6377,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6359,6 +6385,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -6420,7 +6447,7 @@ const deserializeAws_json1_1Target = (output: any, context: __SerdeContext): Tar }; const deserializeAws_json1_1TargetList = (output: any, context: __SerdeContext): Target[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6428,6 +6455,7 @@ const deserializeAws_json1_1TargetList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Target(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestEventPatternResponse = ( diff --git a/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts index c53e91a6cccb..c8931ace5f61 100644 --- a/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts @@ -3644,7 +3644,7 @@ const deserializeAws_json1_1Destination = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1Destinations = (output: any, context: __SerdeContext): Destination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3652,6 +3652,7 @@ const deserializeAws_json1_1Destinations = (output: any, context: __SerdeContext } return deserializeAws_json1_1Destination(entry, context); }); + return retVal; }; const deserializeAws_json1_1Dimensions = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3697,7 +3698,7 @@ const deserializeAws_json1_1ExportTaskExecutionInfo = ( }; const deserializeAws_json1_1ExportTasks = (output: any, context: __SerdeContext): ExportTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3705,6 +3706,7 @@ const deserializeAws_json1_1ExportTasks = (output: any, context: __SerdeContext) } return deserializeAws_json1_1ExportTask(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExportTaskStatus = (output: any, context: __SerdeContext): ExportTaskStatus => { @@ -3737,7 +3739,7 @@ const deserializeAws_json1_1FilteredLogEvent = (output: any, context: __SerdeCon }; const deserializeAws_json1_1FilteredLogEvents = (output: any, context: __SerdeContext): FilteredLogEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3745,6 +3747,7 @@ const deserializeAws_json1_1FilteredLogEvents = (output: any, context: __SerdeCo } return deserializeAws_json1_1FilteredLogEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1FilterLogEventsResponse = ( @@ -3877,7 +3880,7 @@ const deserializeAws_json1_1LogGroupField = (output: any, context: __SerdeContex }; const deserializeAws_json1_1LogGroupFieldList = (output: any, context: __SerdeContext): LogGroupField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3885,10 +3888,11 @@ const deserializeAws_json1_1LogGroupFieldList = (output: any, context: __SerdeCo } return deserializeAws_json1_1LogGroupField(entry, context); }); + return retVal; }; const deserializeAws_json1_1LogGroupNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3896,10 +3900,11 @@ const deserializeAws_json1_1LogGroupNames = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LogGroups = (output: any, context: __SerdeContext): LogGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3907,6 +3912,7 @@ const deserializeAws_json1_1LogGroups = (output: any, context: __SerdeContext): } return deserializeAws_json1_1LogGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1LogRecord = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3935,7 +3941,7 @@ const deserializeAws_json1_1LogStream = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1LogStreams = (output: any, context: __SerdeContext): LogStream[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3943,6 +3949,7 @@ const deserializeAws_json1_1LogStreams = (output: any, context: __SerdeContext): } return deserializeAws_json1_1LogStream(entry, context); }); + return retVal; }; const deserializeAws_json1_1MalformedQueryException = ( @@ -3972,7 +3979,7 @@ const deserializeAws_json1_1MetricFilter = (output: any, context: __SerdeContext }; const deserializeAws_json1_1MetricFilterMatches = (output: any, context: __SerdeContext): MetricFilterMatchRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3980,6 +3987,7 @@ const deserializeAws_json1_1MetricFilterMatches = (output: any, context: __Serde } return deserializeAws_json1_1MetricFilterMatchRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetricFilterMatchRecord = ( @@ -3997,7 +4005,7 @@ const deserializeAws_json1_1MetricFilterMatchRecord = ( }; const deserializeAws_json1_1MetricFilters = (output: any, context: __SerdeContext): MetricFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4005,6 +4013,7 @@ const deserializeAws_json1_1MetricFilters = (output: any, context: __SerdeContex } return deserializeAws_json1_1MetricFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetricTransformation = (output: any, context: __SerdeContext): MetricTransformation => { @@ -4022,7 +4031,7 @@ const deserializeAws_json1_1MetricTransformation = (output: any, context: __Serd }; const deserializeAws_json1_1MetricTransformations = (output: any, context: __SerdeContext): MetricTransformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4030,6 +4039,7 @@ const deserializeAws_json1_1MetricTransformations = (output: any, context: __Ser } return deserializeAws_json1_1MetricTransformation(entry, context); }); + return retVal; }; const deserializeAws_json1_1OperationAbortedException = ( @@ -4050,7 +4060,7 @@ const deserializeAws_json1_1OutputLogEvent = (output: any, context: __SerdeConte }; const deserializeAws_json1_1OutputLogEvents = (output: any, context: __SerdeContext): OutputLogEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4058,6 +4068,7 @@ const deserializeAws_json1_1OutputLogEvents = (output: any, context: __SerdeCont } return deserializeAws_json1_1OutputLogEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutDestinationResponse = (output: any, context: __SerdeContext): PutDestinationResponse => { @@ -4134,7 +4145,7 @@ const deserializeAws_json1_1QueryDefinition = (output: any, context: __SerdeCont }; const deserializeAws_json1_1QueryDefinitionList = (output: any, context: __SerdeContext): QueryDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4142,6 +4153,7 @@ const deserializeAws_json1_1QueryDefinitionList = (output: any, context: __Serde } return deserializeAws_json1_1QueryDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1QueryInfo = (output: any, context: __SerdeContext): QueryInfo => { @@ -4155,7 +4167,7 @@ const deserializeAws_json1_1QueryInfo = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1QueryInfoList = (output: any, context: __SerdeContext): QueryInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4163,10 +4175,11 @@ const deserializeAws_json1_1QueryInfoList = (output: any, context: __SerdeContex } return deserializeAws_json1_1QueryInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1QueryResults = (output: any, context: __SerdeContext): ResultField[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4174,6 +4187,7 @@ const deserializeAws_json1_1QueryResults = (output: any, context: __SerdeContext } return deserializeAws_json1_1ResultRows(entry, context); }); + return retVal; }; const deserializeAws_json1_1QueryStatistics = (output: any, context: __SerdeContext): QueryStatistics => { @@ -4211,7 +4225,7 @@ const deserializeAws_json1_1ResourceNotFoundException = ( }; const deserializeAws_json1_1ResourcePolicies = (output: any, context: __SerdeContext): ResourcePolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4219,6 +4233,7 @@ const deserializeAws_json1_1ResourcePolicies = (output: any, context: __SerdeCon } return deserializeAws_json1_1ResourcePolicy(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourcePolicy = (output: any, context: __SerdeContext): ResourcePolicy => { @@ -4237,7 +4252,7 @@ const deserializeAws_json1_1ResultField = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ResultRows = (output: any, context: __SerdeContext): ResultField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4245,6 +4260,7 @@ const deserializeAws_json1_1ResultRows = (output: any, context: __SerdeContext): } return deserializeAws_json1_1ResultField(entry, context); }); + return retVal; }; const deserializeAws_json1_1SearchedLogStream = (output: any, context: __SerdeContext): SearchedLogStream => { @@ -4255,7 +4271,7 @@ const deserializeAws_json1_1SearchedLogStream = (output: any, context: __SerdeCo }; const deserializeAws_json1_1SearchedLogStreams = (output: any, context: __SerdeContext): SearchedLogStream[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4263,6 +4279,7 @@ const deserializeAws_json1_1SearchedLogStreams = (output: any, context: __SerdeC } return deserializeAws_json1_1SearchedLogStream(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceUnavailableException = ( @@ -4299,7 +4316,7 @@ const deserializeAws_json1_1SubscriptionFilter = (output: any, context: __SerdeC }; const deserializeAws_json1_1SubscriptionFilters = (output: any, context: __SerdeContext): SubscriptionFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4307,6 +4324,7 @@ const deserializeAws_json1_1SubscriptionFilters = (output: any, context: __Serde } return deserializeAws_json1_1SubscriptionFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-codeartifact/src/protocols/Aws_restJson1.ts b/clients/client-codeartifact/src/protocols/Aws_restJson1.ts index 630d2c1d69a9..ff5d8911749c 100644 --- a/clients/client-codeartifact/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeartifact/src/protocols/Aws_restJson1.ts @@ -3497,7 +3497,7 @@ const deserializeAws_restJson1AssetSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1AssetSummaryList = (output: any, context: __SerdeContext): AssetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3505,6 +3505,7 @@ const deserializeAws_restJson1AssetSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1AssetSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainDescription = (output: any, context: __SerdeContext): DomainDescription => { @@ -3539,7 +3540,7 @@ const deserializeAws_restJson1DomainSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DomainSummaryList = (output: any, context: __SerdeContext): DomainSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3547,6 +3548,7 @@ const deserializeAws_restJson1DomainSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1DomainSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1LicenseInfo = (output: any, context: __SerdeContext): LicenseInfo => { @@ -3557,7 +3559,7 @@ const deserializeAws_restJson1LicenseInfo = (output: any, context: __SerdeContex }; const deserializeAws_restJson1LicenseInfoList = (output: any, context: __SerdeContext): LicenseInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3565,6 +3567,7 @@ const deserializeAws_restJson1LicenseInfoList = (output: any, context: __SerdeCo } return deserializeAws_restJson1LicenseInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageDependency = (output: any, context: __SerdeContext): PackageDependency => { @@ -3577,7 +3580,7 @@ const deserializeAws_restJson1PackageDependency = (output: any, context: __Serde }; const deserializeAws_restJson1PackageDependencyList = (output: any, context: __SerdeContext): PackageDependency[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3585,6 +3588,7 @@ const deserializeAws_restJson1PackageDependencyList = (output: any, context: __S } return deserializeAws_restJson1PackageDependency(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageSummary = (output: any, context: __SerdeContext): PackageSummary => { @@ -3596,7 +3600,7 @@ const deserializeAws_restJson1PackageSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1PackageSummaryList = (output: any, context: __SerdeContext): PackageSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3604,6 +3608,7 @@ const deserializeAws_restJson1PackageSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1PackageSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageVersionDescription = ( @@ -3666,7 +3671,7 @@ const deserializeAws_restJson1PackageVersionSummaryList = ( output: any, context: __SerdeContext ): PackageVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3674,6 +3679,7 @@ const deserializeAws_restJson1PackageVersionSummaryList = ( } return deserializeAws_restJson1PackageVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RepositoryDescription = (output: any, context: __SerdeContext): RepositoryDescription => { @@ -3710,7 +3716,7 @@ const deserializeAws_restJson1RepositoryExternalConnectionInfoList = ( output: any, context: __SerdeContext ): RepositoryExternalConnectionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3718,6 +3724,7 @@ const deserializeAws_restJson1RepositoryExternalConnectionInfoList = ( } return deserializeAws_restJson1RepositoryExternalConnectionInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1RepositorySummary = (output: any, context: __SerdeContext): RepositorySummary => { @@ -3732,7 +3739,7 @@ const deserializeAws_restJson1RepositorySummary = (output: any, context: __Serde }; const deserializeAws_restJson1RepositorySummaryList = (output: any, context: __SerdeContext): RepositorySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3740,6 +3747,7 @@ const deserializeAws_restJson1RepositorySummaryList = (output: any, context: __S } return deserializeAws_restJson1RepositorySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourcePolicy = (output: any, context: __SerdeContext): ResourcePolicy => { @@ -3786,7 +3794,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3794,6 +3802,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1UpstreamRepositoryInfo = ( @@ -3809,7 +3818,7 @@ const deserializeAws_restJson1UpstreamRepositoryInfoList = ( output: any, context: __SerdeContext ): UpstreamRepositoryInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3817,6 +3826,7 @@ const deserializeAws_restJson1UpstreamRepositoryInfoList = ( } return deserializeAws_restJson1UpstreamRepositoryInfo(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-codebuild/src/protocols/Aws_json1_1.ts b/clients/client-codebuild/src/protocols/Aws_json1_1.ts index d752c5686373..05232ad58586 100644 --- a/clients/client-codebuild/src/protocols/Aws_json1_1.ts +++ b/clients/client-codebuild/src/protocols/Aws_json1_1.ts @@ -4292,7 +4292,7 @@ const deserializeAws_json1_1BuildArtifacts = (output: any, context: __SerdeConte }; const deserializeAws_json1_1BuildArtifactsList = (output: any, context: __SerdeContext): BuildArtifacts[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4300,6 +4300,7 @@ const deserializeAws_json1_1BuildArtifactsList = (output: any, context: __SerdeC } return deserializeAws_json1_1BuildArtifacts(entry, context); }); + return retVal; }; const deserializeAws_json1_1BuildBatch = (output: any, context: __SerdeContext): BuildBatch => { @@ -4383,7 +4384,7 @@ const deserializeAws_json1_1BuildBatch = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1BuildBatches = (output: any, context: __SerdeContext): BuildBatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4391,10 +4392,11 @@ const deserializeAws_json1_1BuildBatches = (output: any, context: __SerdeContext } return deserializeAws_json1_1BuildBatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1BuildBatchIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4402,6 +4404,7 @@ const deserializeAws_json1_1BuildBatchIds = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BuildBatchPhase = (output: any, context: __SerdeContext): BuildBatchPhase => { @@ -4425,7 +4428,7 @@ const deserializeAws_json1_1BuildBatchPhase = (output: any, context: __SerdeCont }; const deserializeAws_json1_1BuildBatchPhases = (output: any, context: __SerdeContext): BuildBatchPhase[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4433,6 +4436,7 @@ const deserializeAws_json1_1BuildBatchPhases = (output: any, context: __SerdeCon } return deserializeAws_json1_1BuildBatchPhase(entry, context); }); + return retVal; }; const deserializeAws_json1_1BuildGroup = (output: any, context: __SerdeContext): BuildGroup => { @@ -4455,7 +4459,7 @@ const deserializeAws_json1_1BuildGroup = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1BuildGroups = (output: any, context: __SerdeContext): BuildGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4463,10 +4467,11 @@ const deserializeAws_json1_1BuildGroups = (output: any, context: __SerdeContext) } return deserializeAws_json1_1BuildGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1BuildIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4474,6 +4479,7 @@ const deserializeAws_json1_1BuildIds = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BuildNotDeleted = (output: any, context: __SerdeContext): BuildNotDeleted => { @@ -4504,7 +4510,7 @@ const deserializeAws_json1_1BuildPhase = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1BuildPhases = (output: any, context: __SerdeContext): BuildPhase[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4512,10 +4518,11 @@ const deserializeAws_json1_1BuildPhases = (output: any, context: __SerdeContext) } return deserializeAws_json1_1BuildPhase(entry, context); }); + return retVal; }; const deserializeAws_json1_1BuildReportArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4523,10 +4530,11 @@ const deserializeAws_json1_1BuildReportArns = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Builds = (output: any, context: __SerdeContext): Build[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4534,10 +4542,11 @@ const deserializeAws_json1_1Builds = (output: any, context: __SerdeContext): Bui } return deserializeAws_json1_1Build(entry, context); }); + return retVal; }; const deserializeAws_json1_1BuildsNotDeleted = (output: any, context: __SerdeContext): BuildNotDeleted[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4545,6 +4554,7 @@ const deserializeAws_json1_1BuildsNotDeleted = (output: any, context: __SerdeCon } return deserializeAws_json1_1BuildNotDeleted(entry, context); }); + return retVal; }; const deserializeAws_json1_1BuildStatusConfig = (output: any, context: __SerdeContext): BuildStatusConfig => { @@ -4555,7 +4565,7 @@ const deserializeAws_json1_1BuildStatusConfig = (output: any, context: __SerdeCo }; const deserializeAws_json1_1BuildSummaries = (output: any, context: __SerdeContext): BuildSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4563,6 +4573,7 @@ const deserializeAws_json1_1BuildSummaries = (output: any, context: __SerdeConte } return deserializeAws_json1_1BuildSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1BuildSummary = (output: any, context: __SerdeContext): BuildSummary => { @@ -4625,7 +4636,7 @@ const deserializeAws_json1_1CodeCoverageReportSummary = ( }; const deserializeAws_json1_1CodeCoverages = (output: any, context: __SerdeContext): CodeCoverage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4633,10 +4644,11 @@ const deserializeAws_json1_1CodeCoverages = (output: any, context: __SerdeContex } return deserializeAws_json1_1CodeCoverage(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComputeTypesAllowed = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4644,6 +4656,7 @@ const deserializeAws_json1_1ComputeTypesAllowed = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CreateProjectOutput = (output: any, context: __SerdeContext): CreateProjectOutput => { @@ -4770,7 +4783,7 @@ const deserializeAws_json1_1EnvironmentImage = (output: any, context: __SerdeCon }; const deserializeAws_json1_1EnvironmentImages = (output: any, context: __SerdeContext): EnvironmentImage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4778,6 +4791,7 @@ const deserializeAws_json1_1EnvironmentImages = (output: any, context: __SerdeCo } return deserializeAws_json1_1EnvironmentImage(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnvironmentLanguage = (output: any, context: __SerdeContext): EnvironmentLanguage => { @@ -4791,7 +4805,7 @@ const deserializeAws_json1_1EnvironmentLanguage = (output: any, context: __Serde }; const deserializeAws_json1_1EnvironmentLanguages = (output: any, context: __SerdeContext): EnvironmentLanguage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4799,6 +4813,7 @@ const deserializeAws_json1_1EnvironmentLanguages = (output: any, context: __Serd } return deserializeAws_json1_1EnvironmentLanguage(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnvironmentPlatform = (output: any, context: __SerdeContext): EnvironmentPlatform => { @@ -4812,7 +4827,7 @@ const deserializeAws_json1_1EnvironmentPlatform = (output: any, context: __Serde }; const deserializeAws_json1_1EnvironmentPlatforms = (output: any, context: __SerdeContext): EnvironmentPlatform[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4820,6 +4835,7 @@ const deserializeAws_json1_1EnvironmentPlatforms = (output: any, context: __Serd } return deserializeAws_json1_1EnvironmentPlatform(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnvironmentVariable = (output: any, context: __SerdeContext): EnvironmentVariable => { @@ -4831,7 +4847,7 @@ const deserializeAws_json1_1EnvironmentVariable = (output: any, context: __Serde }; const deserializeAws_json1_1EnvironmentVariables = (output: any, context: __SerdeContext): EnvironmentVariable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4839,6 +4855,7 @@ const deserializeAws_json1_1EnvironmentVariables = (output: any, context: __Serd } return deserializeAws_json1_1EnvironmentVariable(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExportedEnvironmentVariable = ( @@ -4855,7 +4872,7 @@ const deserializeAws_json1_1ExportedEnvironmentVariables = ( output: any, context: __SerdeContext ): ExportedEnvironmentVariable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4863,10 +4880,11 @@ const deserializeAws_json1_1ExportedEnvironmentVariables = ( } return deserializeAws_json1_1ExportedEnvironmentVariable(entry, context); }); + return retVal; }; const deserializeAws_json1_1FilterGroup = (output: any, context: __SerdeContext): WebhookFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4874,10 +4892,11 @@ const deserializeAws_json1_1FilterGroup = (output: any, context: __SerdeContext) } return deserializeAws_json1_1WebhookFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1FilterGroups = (output: any, context: __SerdeContext): WebhookFilter[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4885,6 +4904,7 @@ const deserializeAws_json1_1FilterGroups = (output: any, context: __SerdeContext } return deserializeAws_json1_1FilterGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetReportGroupTrendOutput = ( @@ -4919,7 +4939,7 @@ const deserializeAws_json1_1GitSubmodulesConfig = (output: any, context: __Serde }; const deserializeAws_json1_1Identifiers = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4927,10 +4947,11 @@ const deserializeAws_json1_1Identifiers = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ImageVersions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4938,6 +4959,7 @@ const deserializeAws_json1_1ImageVersions = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ImportSourceCredentialsOutput = ( @@ -5150,7 +5172,7 @@ const deserializeAws_json1_1PhaseContext = (output: any, context: __SerdeContext }; const deserializeAws_json1_1PhaseContexts = (output: any, context: __SerdeContext): PhaseContext[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5158,6 +5180,7 @@ const deserializeAws_json1_1PhaseContexts = (output: any, context: __SerdeContex } return deserializeAws_json1_1PhaseContext(entry, context); }); + return retVal; }; const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Project => { @@ -5242,7 +5265,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr }; const deserializeAws_json1_1ProjectArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5250,6 +5273,7 @@ const deserializeAws_json1_1ProjectArns = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProjectArtifacts = (output: any, context: __SerdeContext): ProjectArtifacts => { @@ -5268,7 +5292,7 @@ const deserializeAws_json1_1ProjectArtifacts = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ProjectArtifactsList = (output: any, context: __SerdeContext): ProjectArtifacts[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5276,6 +5300,7 @@ const deserializeAws_json1_1ProjectArtifactsList = (output: any, context: __Serd } return deserializeAws_json1_1ProjectArtifacts(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProjectBadge = (output: any, context: __SerdeContext): ProjectBadge => { @@ -5313,7 +5338,7 @@ const deserializeAws_json1_1ProjectCache = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ProjectCacheModes = (output: any, context: __SerdeContext): (CacheMode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5321,6 +5346,7 @@ const deserializeAws_json1_1ProjectCacheModes = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProjectEnvironment = (output: any, context: __SerdeContext): ProjectEnvironment => { @@ -5359,7 +5385,7 @@ const deserializeAws_json1_1ProjectFileSystemLocations = ( output: any, context: __SerdeContext ): ProjectFileSystemLocation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5367,10 +5393,11 @@ const deserializeAws_json1_1ProjectFileSystemLocations = ( } return deserializeAws_json1_1ProjectFileSystemLocation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProjectNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5378,10 +5405,11 @@ const deserializeAws_json1_1ProjectNames = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Projects = (output: any, context: __SerdeContext): Project[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5389,13 +5417,14 @@ const deserializeAws_json1_1Projects = (output: any, context: __SerdeContext): P } return deserializeAws_json1_1Project(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProjectSecondarySourceVersions = ( output: any, context: __SerdeContext ): ProjectSourceVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5403,6 +5432,7 @@ const deserializeAws_json1_1ProjectSecondarySourceVersions = ( } return deserializeAws_json1_1ProjectSourceVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProjectSource = (output: any, context: __SerdeContext): ProjectSource => { @@ -5430,7 +5460,7 @@ const deserializeAws_json1_1ProjectSource = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ProjectSources = (output: any, context: __SerdeContext): ProjectSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5438,6 +5468,7 @@ const deserializeAws_json1_1ProjectSources = (output: any, context: __SerdeConte } return deserializeAws_json1_1ProjectSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProjectSourceVersion = (output: any, context: __SerdeContext): ProjectSourceVersion => { @@ -5496,7 +5527,7 @@ const deserializeAws_json1_1Report = (output: any, context: __SerdeContext): Rep }; const deserializeAws_json1_1ReportArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5504,6 +5535,7 @@ const deserializeAws_json1_1ReportArns = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ReportExportConfig = (output: any, context: __SerdeContext): ReportExportConfig => { @@ -5542,7 +5574,7 @@ const deserializeAws_json1_1ReportGroup = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ReportGroupArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5550,10 +5582,11 @@ const deserializeAws_json1_1ReportGroupArns = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ReportGroups = (output: any, context: __SerdeContext): ReportGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5561,13 +5594,14 @@ const deserializeAws_json1_1ReportGroups = (output: any, context: __SerdeContext } return deserializeAws_json1_1ReportGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReportGroupTrendRawDataList = ( output: any, context: __SerdeContext ): ReportWithRawData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5575,6 +5609,7 @@ const deserializeAws_json1_1ReportGroupTrendRawDataList = ( } return deserializeAws_json1_1ReportWithRawData(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReportGroupTrendStats = (output: any, context: __SerdeContext): ReportGroupTrendStats => { @@ -5586,7 +5621,7 @@ const deserializeAws_json1_1ReportGroupTrendStats = (output: any, context: __Ser }; const deserializeAws_json1_1Reports = (output: any, context: __SerdeContext): Report[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5594,6 +5629,7 @@ const deserializeAws_json1_1Reports = (output: any, context: __SerdeContext): Re } return deserializeAws_json1_1Report(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReportStatusCounts = (output: any, context: __SerdeContext): { [key: string]: number } => { @@ -5624,7 +5660,7 @@ const deserializeAws_json1_1ResolvedArtifact = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ResolvedSecondaryArtifacts = (output: any, context: __SerdeContext): ResolvedArtifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5632,6 +5668,7 @@ const deserializeAws_json1_1ResolvedSecondaryArtifacts = (output: any, context: } return deserializeAws_json1_1ResolvedArtifact(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceAlreadyExistsException = ( @@ -5691,7 +5728,7 @@ const deserializeAws_json1_1S3ReportExportConfig = (output: any, context: __Serd }; const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5699,6 +5736,7 @@ const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SourceAuth = (output: any, context: __SerdeContext): SourceAuth => { @@ -5720,7 +5758,7 @@ const deserializeAws_json1_1SourceCredentialsInfos = ( output: any, context: __SerdeContext ): SourceCredentialsInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5728,6 +5766,7 @@ const deserializeAws_json1_1SourceCredentialsInfos = ( } return deserializeAws_json1_1SourceCredentialsInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartBuildBatchOutput = (output: any, context: __SerdeContext): StartBuildBatchOutput => { @@ -5767,7 +5806,7 @@ const deserializeAws_json1_1StopBuildOutput = (output: any, context: __SerdeCont }; const deserializeAws_json1_1Subnets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5775,6 +5814,7 @@ const deserializeAws_json1_1Subnets = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -5785,7 +5825,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5793,6 +5833,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestCase = (output: any, context: __SerdeContext): TestCase => { @@ -5812,7 +5853,7 @@ const deserializeAws_json1_1TestCase = (output: any, context: __SerdeContext): T }; const deserializeAws_json1_1TestCases = (output: any, context: __SerdeContext): TestCase[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5820,6 +5861,7 @@ const deserializeAws_json1_1TestCases = (output: any, context: __SerdeContext): } return deserializeAws_json1_1TestCase(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestReportSummary = (output: any, context: __SerdeContext): TestReportSummary => { diff --git a/clients/client-codecommit/src/protocols/Aws_json1_1.ts b/clients/client-codecommit/src/protocols/Aws_json1_1.ts index 974fbeb91f8e..e61eb4d99470 100644 --- a/clients/client-codecommit/src/protocols/Aws_json1_1.ts +++ b/clients/client-codecommit/src/protocols/Aws_json1_1.ts @@ -11553,7 +11553,7 @@ const deserializeAws_json1_1Approval = (output: any, context: __SerdeContext): A }; const deserializeAws_json1_1ApprovalList = (output: any, context: __SerdeContext): Approval[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11561,6 +11561,7 @@ const deserializeAws_json1_1ApprovalList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Approval(entry, context); }); + return retVal; }; const deserializeAws_json1_1ApprovalRule = (output: any, context: __SerdeContext): ApprovalRule => { @@ -11643,7 +11644,7 @@ const deserializeAws_json1_1ApprovalRuleOverriddenEventMetadata = ( }; const deserializeAws_json1_1ApprovalRulesList = (output: any, context: __SerdeContext): ApprovalRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11651,10 +11652,11 @@ const deserializeAws_json1_1ApprovalRulesList = (output: any, context: __SerdeCo } return deserializeAws_json1_1ApprovalRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1ApprovalRulesNotSatisfiedList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11662,10 +11664,11 @@ const deserializeAws_json1_1ApprovalRulesNotSatisfiedList = (output: any, contex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ApprovalRulesSatisfiedList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11673,6 +11676,7 @@ const deserializeAws_json1_1ApprovalRulesSatisfiedList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ApprovalRuleTemplate = (output: any, context: __SerdeContext): ApprovalRuleTemplate => { @@ -11731,7 +11735,7 @@ const deserializeAws_json1_1ApprovalRuleTemplateNameAlreadyExistsException = ( }; const deserializeAws_json1_1ApprovalRuleTemplateNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11739,6 +11743,7 @@ const deserializeAws_json1_1ApprovalRuleTemplateNameList = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ApprovalRuleTemplateNameRequiredException = ( @@ -11793,7 +11798,7 @@ const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesEr output: any, context: __SerdeContext ): BatchAssociateApprovalRuleTemplateWithRepositoriesError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11801,6 +11806,7 @@ const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesEr } return deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesOutput = ( @@ -11834,7 +11840,7 @@ const deserializeAws_json1_1BatchDescribeMergeConflictsErrors = ( output: any, context: __SerdeContext ): BatchDescribeMergeConflictsError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11842,6 +11848,7 @@ const deserializeAws_json1_1BatchDescribeMergeConflictsErrors = ( } return deserializeAws_json1_1BatchDescribeMergeConflictsError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchDescribeMergeConflictsOutput = ( @@ -11879,7 +11886,7 @@ const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositorie output: any, context: __SerdeContext ): BatchDisassociateApprovalRuleTemplateFromRepositoriesError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11887,6 +11894,7 @@ const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositorie } return deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput = ( @@ -11917,7 +11925,7 @@ const deserializeAws_json1_1BatchGetCommitsErrorsList = ( output: any, context: __SerdeContext ): BatchGetCommitsError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11925,6 +11933,7 @@ const deserializeAws_json1_1BatchGetCommitsErrorsList = ( } return deserializeAws_json1_1BatchGetCommitsError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchGetCommitsOutput = (output: any, context: __SerdeContext): BatchGetCommitsOutput => { @@ -12026,7 +12035,7 @@ const deserializeAws_json1_1BranchNameIsTagNameException = ( }; const deserializeAws_json1_1BranchNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12034,6 +12043,7 @@ const deserializeAws_json1_1BranchNameList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BranchNameRequiredException = ( @@ -12046,7 +12056,7 @@ const deserializeAws_json1_1BranchNameRequiredException = ( }; const deserializeAws_json1_1CallerReactions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12054,6 +12064,7 @@ const deserializeAws_json1_1CallerReactions = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CannotDeleteApprovalRuleFromTemplateException = ( @@ -12165,7 +12176,7 @@ const deserializeAws_json1_1CommentNotCreatedByCallerException = ( }; const deserializeAws_json1_1Comments = (output: any, context: __SerdeContext): Comment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12173,6 +12184,7 @@ const deserializeAws_json1_1Comments = (output: any, context: __SerdeContext): C } return deserializeAws_json1_1Comment(entry, context); }); + return retVal; }; const deserializeAws_json1_1CommentsForComparedCommit = ( @@ -12200,7 +12212,7 @@ const deserializeAws_json1_1CommentsForComparedCommitData = ( output: any, context: __SerdeContext ): CommentsForComparedCommit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12208,6 +12220,7 @@ const deserializeAws_json1_1CommentsForComparedCommitData = ( } return deserializeAws_json1_1CommentsForComparedCommit(entry, context); }); + return retVal; }; const deserializeAws_json1_1CommentsForPullRequest = (output: any, context: __SerdeContext): CommentsForPullRequest => { @@ -12233,7 +12246,7 @@ const deserializeAws_json1_1CommentsForPullRequestData = ( output: any, context: __SerdeContext ): CommentsForPullRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12241,6 +12254,7 @@ const deserializeAws_json1_1CommentsForPullRequestData = ( } return deserializeAws_json1_1CommentsForPullRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1Commit = (output: any, context: __SerdeContext): Commit => { @@ -12319,7 +12333,7 @@ const deserializeAws_json1_1CommitMessageLengthExceededException = ( }; const deserializeAws_json1_1CommitObjectsList = (output: any, context: __SerdeContext): Commit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12327,6 +12341,7 @@ const deserializeAws_json1_1CommitObjectsList = (output: any, context: __SerdeCo } return deserializeAws_json1_1Commit(entry, context); }); + return retVal; }; const deserializeAws_json1_1CommitRequiredException = ( @@ -12391,7 +12406,7 @@ const deserializeAws_json1_1ConflictMetadata = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ConflictMetadataList = (output: any, context: __SerdeContext): ConflictMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12399,10 +12414,11 @@ const deserializeAws_json1_1ConflictMetadataList = (output: any, context: __Serd } return deserializeAws_json1_1ConflictMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1Conflicts = (output: any, context: __SerdeContext): Conflict[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12410,6 +12426,7 @@ const deserializeAws_json1_1Conflicts = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Conflict(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateApprovalRuleTemplateOutput = ( @@ -12597,7 +12614,7 @@ const deserializeAws_json1_1Difference = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1DifferenceList = (output: any, context: __SerdeContext): Difference[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12605,6 +12622,7 @@ const deserializeAws_json1_1DifferenceList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Difference(entry, context); }); + return retVal; }; const deserializeAws_json1_1DirectoryNameConflictsWithFileNameException = ( @@ -12743,7 +12761,7 @@ const deserializeAws_json1_1FileEntryRequiredException = ( }; const deserializeAws_json1_1FileList = (output: any, context: __SerdeContext): File[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12751,6 +12769,7 @@ const deserializeAws_json1_1FileList = (output: any, context: __SerdeContext): F } return deserializeAws_json1_1File(entry, context); }); + return retVal; }; const deserializeAws_json1_1FileMetadata = (output: any, context: __SerdeContext): FileMetadata => { @@ -12805,7 +12824,7 @@ const deserializeAws_json1_1FileSizes = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1FilesMetadata = (output: any, context: __SerdeContext): FileMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12813,6 +12832,7 @@ const deserializeAws_json1_1FilesMetadata = (output: any, context: __SerdeContex } return deserializeAws_json1_1FileMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1FileTooLargeException = (output: any, context: __SerdeContext): FileTooLargeException => { @@ -12848,7 +12868,7 @@ const deserializeAws_json1_1FolderDoesNotExistException = ( }; const deserializeAws_json1_1FolderList = (output: any, context: __SerdeContext): Folder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12856,6 +12876,7 @@ const deserializeAws_json1_1FolderList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Folder(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetApprovalRuleTemplateOutput = ( @@ -13888,7 +13909,7 @@ const deserializeAws_json1_1MergeHunkDetail = (output: any, context: __SerdeCont }; const deserializeAws_json1_1MergeHunks = (output: any, context: __SerdeContext): MergeHunk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13896,6 +13917,7 @@ const deserializeAws_json1_1MergeHunks = (output: any, context: __SerdeContext): } return deserializeAws_json1_1MergeHunk(entry, context); }); + return retVal; }; const deserializeAws_json1_1MergeMetadata = (output: any, context: __SerdeContext): MergeMetadata => { @@ -13924,7 +13946,7 @@ const deserializeAws_json1_1MergeOptionRequiredException = ( }; const deserializeAws_json1_1MergeOptions = (output: any, context: __SerdeContext): (MergeOptionTypeEnum | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13932,6 +13954,7 @@ const deserializeAws_json1_1MergeOptions = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1MergePullRequestByFastForwardOutput = ( @@ -14085,7 +14108,7 @@ const deserializeAws_json1_1ParentCommitIdRequiredException = ( }; const deserializeAws_json1_1ParentList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14093,6 +14116,7 @@ const deserializeAws_json1_1ParentList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PathDoesNotExistException = ( @@ -14291,7 +14315,7 @@ const deserializeAws_json1_1PullRequestEvent = (output: any, context: __SerdeCon }; const deserializeAws_json1_1PullRequestEventList = (output: any, context: __SerdeContext): PullRequestEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14299,10 +14323,11 @@ const deserializeAws_json1_1PullRequestEventList = (output: any, context: __Serd } return deserializeAws_json1_1PullRequestEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1PullRequestIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14310,6 +14335,7 @@ const deserializeAws_json1_1PullRequestIdList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PullRequestIdRequiredException = ( @@ -14381,7 +14407,7 @@ const deserializeAws_json1_1PullRequestTarget = (output: any, context: __SerdeCo }; const deserializeAws_json1_1PullRequestTargetList = (output: any, context: __SerdeContext): PullRequestTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14389,6 +14415,7 @@ const deserializeAws_json1_1PullRequestTargetList = (output: any, context: __Ser } return deserializeAws_json1_1PullRequestTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutFileEntryConflictException = ( @@ -14453,7 +14480,7 @@ const deserializeAws_json1_1ReactionLimitExceededException = ( }; const deserializeAws_json1_1ReactionsForCommentList = (output: any, context: __SerdeContext): ReactionForComment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14461,10 +14488,11 @@ const deserializeAws_json1_1ReactionsForCommentList = (output: any, context: __S } return deserializeAws_json1_1ReactionForComment(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReactionUsersList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14472,6 +14500,7 @@ const deserializeAws_json1_1ReactionUsersList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ReactionValueFormats = (output: any, context: __SerdeContext): ReactionValueFormats => { @@ -14576,7 +14605,7 @@ const deserializeAws_json1_1RepositoryMetadata = (output: any, context: __SerdeC }; const deserializeAws_json1_1RepositoryMetadataList = (output: any, context: __SerdeContext): RepositoryMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14584,6 +14613,7 @@ const deserializeAws_json1_1RepositoryMetadataList = (output: any, context: __Se } return deserializeAws_json1_1RepositoryMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1RepositoryNameExistsException = ( @@ -14606,7 +14636,7 @@ const deserializeAws_json1_1RepositoryNameIdPairList = ( output: any, context: __SerdeContext ): RepositoryNameIdPair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14614,10 +14644,11 @@ const deserializeAws_json1_1RepositoryNameIdPairList = ( } return deserializeAws_json1_1RepositoryNameIdPair(entry, context); }); + return retVal; }; const deserializeAws_json1_1RepositoryNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14625,6 +14656,7 @@ const deserializeAws_json1_1RepositoryNameList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RepositoryNameRequiredException = ( @@ -14655,7 +14687,7 @@ const deserializeAws_json1_1RepositoryNotAssociatedWithPullRequestException = ( }; const deserializeAws_json1_1RepositoryNotFoundList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14663,6 +14695,7 @@ const deserializeAws_json1_1RepositoryNotFoundList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RepositoryTrigger = (output: any, context: __SerdeContext): RepositoryTrigger => { @@ -14703,7 +14736,7 @@ const deserializeAws_json1_1RepositoryTriggerEventList = ( output: any, context: __SerdeContext ): (RepositoryTriggerEventEnum | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14711,6 +14744,7 @@ const deserializeAws_json1_1RepositoryTriggerEventList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RepositoryTriggerEventsListRequiredException = ( @@ -14736,7 +14770,7 @@ const deserializeAws_json1_1RepositoryTriggerExecutionFailureList = ( output: any, context: __SerdeContext ): RepositoryTriggerExecutionFailure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14744,10 +14778,11 @@ const deserializeAws_json1_1RepositoryTriggerExecutionFailureList = ( } return deserializeAws_json1_1RepositoryTriggerExecutionFailure(entry, context); }); + return retVal; }; const deserializeAws_json1_1RepositoryTriggerNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14755,6 +14790,7 @@ const deserializeAws_json1_1RepositoryTriggerNameList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RepositoryTriggerNameRequiredException = ( @@ -14767,7 +14803,7 @@ const deserializeAws_json1_1RepositoryTriggerNameRequiredException = ( }; const deserializeAws_json1_1RepositoryTriggersList = (output: any, context: __SerdeContext): RepositoryTrigger[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14775,6 +14811,7 @@ const deserializeAws_json1_1RepositoryTriggersList = (output: any, context: __Se } return deserializeAws_json1_1RepositoryTrigger(entry, context); }); + return retVal; }; const deserializeAws_json1_1RepositoryTriggersListRequiredException = ( @@ -14867,7 +14904,7 @@ const deserializeAws_json1_1SubModule = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1SubModuleList = (output: any, context: __SerdeContext): SubModule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14875,6 +14912,7 @@ const deserializeAws_json1_1SubModuleList = (output: any, context: __SerdeContex } return deserializeAws_json1_1SubModule(entry, context); }); + return retVal; }; const deserializeAws_json1_1SymbolicLink = (output: any, context: __SerdeContext): SymbolicLink => { @@ -14887,7 +14925,7 @@ const deserializeAws_json1_1SymbolicLink = (output: any, context: __SerdeContext }; const deserializeAws_json1_1SymbolicLinkList = (output: any, context: __SerdeContext): SymbolicLink[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14895,6 +14933,7 @@ const deserializeAws_json1_1SymbolicLinkList = (output: any, context: __SerdeCon } return deserializeAws_json1_1SymbolicLink(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagKeysListRequiredException = ( diff --git a/clients/client-codedeploy/src/protocols/Aws_json1_1.ts b/clients/client-codedeploy/src/protocols/Aws_json1_1.ts index 4d95adaae1d5..a162e1b63826 100644 --- a/clients/client-codedeploy/src/protocols/Aws_json1_1.ts +++ b/clients/client-codedeploy/src/protocols/Aws_json1_1.ts @@ -6603,7 +6603,7 @@ const deserializeAws_json1_1AlarmConfiguration = (output: any, context: __SerdeC }; const deserializeAws_json1_1AlarmList = (output: any, context: __SerdeContext): Alarm[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6611,6 +6611,7 @@ const deserializeAws_json1_1AlarmList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Alarm(entry, context); }); + return retVal; }; const deserializeAws_json1_1AlarmsLimitExceededException = ( @@ -6673,7 +6674,7 @@ const deserializeAws_json1_1ApplicationNameRequiredException = ( }; const deserializeAws_json1_1ApplicationsInfoList = (output: any, context: __SerdeContext): ApplicationInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6681,10 +6682,11 @@ const deserializeAws_json1_1ApplicationsInfoList = (output: any, context: __Serd } return deserializeAws_json1_1ApplicationInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ApplicationsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6692,6 +6694,7 @@ const deserializeAws_json1_1ApplicationsList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AppSpecContent = (output: any, context: __SerdeContext): AppSpecContent => { @@ -6727,7 +6730,7 @@ const deserializeAws_json1_1AutoRollbackEventsList = ( output: any, context: __SerdeContext ): (AutoRollbackEvent | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6735,6 +6738,7 @@ const deserializeAws_json1_1AutoRollbackEventsList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingGroup => { @@ -6745,7 +6749,7 @@ const deserializeAws_json1_1AutoScalingGroup = (output: any, context: __SerdeCon }; const deserializeAws_json1_1AutoScalingGroupList = (output: any, context: __SerdeContext): AutoScalingGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6753,10 +6757,11 @@ const deserializeAws_json1_1AutoScalingGroupList = (output: any, context: __Serd } return deserializeAws_json1_1AutoScalingGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoScalingGroupNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6764,6 +6769,7 @@ const deserializeAws_json1_1AutoScalingGroupNameList = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BatchGetApplicationRevisionsOutput = ( @@ -7057,7 +7063,7 @@ const deserializeAws_json1_1DeploymentConfigNameRequiredException = ( }; const deserializeAws_json1_1DeploymentConfigsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7065,6 +7071,7 @@ const deserializeAws_json1_1DeploymentConfigsList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeploymentDoesNotExistException = ( @@ -7167,7 +7174,7 @@ const deserializeAws_json1_1DeploymentGroupInfo = (output: any, context: __Serde }; const deserializeAws_json1_1DeploymentGroupInfoList = (output: any, context: __SerdeContext): DeploymentGroupInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7175,6 +7182,7 @@ const deserializeAws_json1_1DeploymentGroupInfoList = (output: any, context: __S } return deserializeAws_json1_1DeploymentGroupInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeploymentGroupLimitExceededException = ( @@ -7196,7 +7204,7 @@ const deserializeAws_json1_1DeploymentGroupNameRequiredException = ( }; const deserializeAws_json1_1DeploymentGroupsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7204,6 +7212,7 @@ const deserializeAws_json1_1DeploymentGroupsList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeploymentIdRequiredException = ( @@ -7340,7 +7349,7 @@ const deserializeAws_json1_1DeploymentReadyOption = (output: any, context: __Ser }; const deserializeAws_json1_1DeploymentsInfoList = (output: any, context: __SerdeContext): DeploymentInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7348,10 +7357,11 @@ const deserializeAws_json1_1DeploymentsInfoList = (output: any, context: __Serde } return deserializeAws_json1_1DeploymentInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeploymentsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7359,10 +7369,11 @@ const deserializeAws_json1_1DeploymentsList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeploymentStatusMessageList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7370,6 +7381,7 @@ const deserializeAws_json1_1DeploymentStatusMessageList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeploymentStyle = (output: any, context: __SerdeContext): DeploymentStyle => { @@ -7420,7 +7432,7 @@ const deserializeAws_json1_1DeploymentTargetIdRequiredException = ( }; const deserializeAws_json1_1DeploymentTargetList = (output: any, context: __SerdeContext): DeploymentTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7428,6 +7440,7 @@ const deserializeAws_json1_1DeploymentTargetList = (output: any, context: __Serd } return deserializeAws_json1_1DeploymentTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeploymentTargetListSizeExceededException = ( @@ -7466,7 +7479,7 @@ const deserializeAws_json1_1EC2TagFilter = (output: any, context: __SerdeContext }; const deserializeAws_json1_1EC2TagFilterList = (output: any, context: __SerdeContext): EC2TagFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7474,6 +7487,7 @@ const deserializeAws_json1_1EC2TagFilterList = (output: any, context: __SerdeCon } return deserializeAws_json1_1EC2TagFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1EC2TagSet = (output: any, context: __SerdeContext): EC2TagSet => { @@ -7486,7 +7500,7 @@ const deserializeAws_json1_1EC2TagSet = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1EC2TagSetList = (output: any, context: __SerdeContext): EC2TagFilter[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7494,6 +7508,7 @@ const deserializeAws_json1_1EC2TagSetList = (output: any, context: __SerdeContex } return deserializeAws_json1_1EC2TagFilterList(entry, context); }); + return retVal; }; const deserializeAws_json1_1ECSService = (output: any, context: __SerdeContext): ECSService => { @@ -7504,7 +7519,7 @@ const deserializeAws_json1_1ECSService = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ECSServiceList = (output: any, context: __SerdeContext): ECSService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7512,6 +7527,7 @@ const deserializeAws_json1_1ECSServiceList = (output: any, context: __SerdeConte } return deserializeAws_json1_1ECSService(entry, context); }); + return retVal; }; const deserializeAws_json1_1ECSServiceMappingLimitExceededException = ( @@ -7561,7 +7577,7 @@ const deserializeAws_json1_1ECSTaskSet = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ECSTaskSetList = (output: any, context: __SerdeContext): ECSTaskSet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7569,6 +7585,7 @@ const deserializeAws_json1_1ECSTaskSetList = (output: any, context: __SerdeConte } return deserializeAws_json1_1ECSTaskSet(entry, context); }); + return retVal; }; const deserializeAws_json1_1ELBInfo = (output: any, context: __SerdeContext): ELBInfo => { @@ -7578,7 +7595,7 @@ const deserializeAws_json1_1ELBInfo = (output: any, context: __SerdeContext): EL }; const deserializeAws_json1_1ELBInfoList = (output: any, context: __SerdeContext): ELBInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7586,6 +7603,7 @@ const deserializeAws_json1_1ELBInfoList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1ELBInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ErrorInformation = (output: any, context: __SerdeContext): ErrorInformation => { @@ -7722,7 +7740,7 @@ const deserializeAws_json1_1GitHubAccountTokenDoesNotExistException = ( }; const deserializeAws_json1_1GitHubAccountTokenNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7730,6 +7748,7 @@ const deserializeAws_json1_1GitHubAccountTokenNameList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1GitHubAccountTokenNameRequiredException = ( @@ -7833,7 +7852,7 @@ const deserializeAws_json1_1InstanceInfo = (output: any, context: __SerdeContext }; const deserializeAws_json1_1InstanceInfoList = (output: any, context: __SerdeContext): InstanceInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7841,6 +7860,7 @@ const deserializeAws_json1_1InstanceInfoList = (output: any, context: __SerdeCon } return deserializeAws_json1_1InstanceInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceLimitExceededException = ( @@ -7862,7 +7882,7 @@ const deserializeAws_json1_1InstanceNameAlreadyRegisteredException = ( }; const deserializeAws_json1_1InstanceNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7870,6 +7890,7 @@ const deserializeAws_json1_1InstanceNameList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InstanceNameRequiredException = ( @@ -7891,7 +7912,7 @@ const deserializeAws_json1_1InstanceNotRegisteredException = ( }; const deserializeAws_json1_1InstancesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7899,6 +7920,7 @@ const deserializeAws_json1_1InstancesList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InstanceSummary = (output: any, context: __SerdeContext): InstanceSummary => { @@ -7919,7 +7941,7 @@ const deserializeAws_json1_1InstanceSummary = (output: any, context: __SerdeCont }; const deserializeAws_json1_1InstanceSummaryList = (output: any, context: __SerdeContext): InstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7927,6 +7949,7 @@ const deserializeAws_json1_1InstanceSummaryList = (output: any, context: __Serde } return deserializeAws_json1_1InstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceTarget = (output: any, context: __SerdeContext): InstanceTarget => { @@ -8490,7 +8513,7 @@ const deserializeAws_json1_1LifecycleEventAlreadyCompletedException = ( }; const deserializeAws_json1_1LifecycleEventList = (output: any, context: __SerdeContext): LifecycleEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8498,6 +8521,7 @@ const deserializeAws_json1_1LifecycleEventList = (output: any, context: __SerdeC } return deserializeAws_json1_1LifecycleEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1LifecycleHookLimitExceededException = ( @@ -8596,7 +8620,7 @@ const deserializeAws_json1_1ListDeploymentTargetsOutput = ( }; const deserializeAws_json1_1ListenerArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8604,6 +8628,7 @@ const deserializeAws_json1_1ListenerArnList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListGitHubAccountTokenNamesOutput = ( @@ -8688,7 +8713,7 @@ const deserializeAws_json1_1OnPremisesTagSet = (output: any, context: __SerdeCon }; const deserializeAws_json1_1OnPremisesTagSetList = (output: any, context: __SerdeContext): TagFilter[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8696,6 +8721,7 @@ const deserializeAws_json1_1OnPremisesTagSetList = (output: any, context: __Serd } return deserializeAws_json1_1TagFilterList(entry, context); }); + return retVal; }; const deserializeAws_json1_1OperationNotSupportedException = ( @@ -8775,7 +8801,7 @@ const deserializeAws_json1_1RevisionInfo = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RevisionInfoList = (output: any, context: __SerdeContext): RevisionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8783,6 +8809,7 @@ const deserializeAws_json1_1RevisionInfoList = (output: any, context: __SerdeCon } return deserializeAws_json1_1RevisionInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1RevisionLocation = (output: any, context: __SerdeContext): RevisionLocation => { @@ -8808,7 +8835,7 @@ const deserializeAws_json1_1RevisionLocation = (output: any, context: __SerdeCon }; const deserializeAws_json1_1RevisionLocationList = (output: any, context: __SerdeContext): RevisionLocation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8816,6 +8843,7 @@ const deserializeAws_json1_1RevisionLocationList = (output: any, context: __Serd } return deserializeAws_json1_1RevisionLocation(entry, context); }); + return retVal; }; const deserializeAws_json1_1RevisionRequiredException = ( @@ -8874,7 +8902,7 @@ const deserializeAws_json1_1TagFilter = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1TagFilterList = (output: any, context: __SerdeContext): TagFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8882,6 +8910,7 @@ const deserializeAws_json1_1TagFilterList = (output: any, context: __SerdeContex } return deserializeAws_json1_1TagFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagLimitExceededException = ( @@ -8894,7 +8923,7 @@ const deserializeAws_json1_1TagLimitExceededException = ( }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8902,6 +8931,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagRequiredException = (output: any, context: __SerdeContext): TagRequiredException => { @@ -8930,7 +8960,7 @@ const deserializeAws_json1_1TargetGroupInfo = (output: any, context: __SerdeCont }; const deserializeAws_json1_1TargetGroupInfoList = (output: any, context: __SerdeContext): TargetGroupInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8938,6 +8968,7 @@ const deserializeAws_json1_1TargetGroupInfoList = (output: any, context: __Serde } return deserializeAws_json1_1TargetGroupInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetGroupPairInfo = (output: any, context: __SerdeContext): TargetGroupPairInfo => { @@ -8958,7 +8989,7 @@ const deserializeAws_json1_1TargetGroupPairInfo = (output: any, context: __Serde }; const deserializeAws_json1_1TargetGroupPairInfoList = (output: any, context: __SerdeContext): TargetGroupPairInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8966,10 +8997,11 @@ const deserializeAws_json1_1TargetGroupPairInfoList = (output: any, context: __S } return deserializeAws_json1_1TargetGroupPairInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8977,6 +9009,7 @@ const deserializeAws_json1_1TargetIdList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TargetInstances = (output: any, context: __SerdeContext): TargetInstances => { @@ -9051,7 +9084,7 @@ const deserializeAws_json1_1TriggerConfig = (output: any, context: __SerdeContex }; const deserializeAws_json1_1TriggerConfigList = (output: any, context: __SerdeContext): TriggerConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9059,13 +9092,14 @@ const deserializeAws_json1_1TriggerConfigList = (output: any, context: __SerdeCo } return deserializeAws_json1_1TriggerConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1TriggerEventTypeList = ( output: any, context: __SerdeContext ): (TriggerEventType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9073,6 +9107,7 @@ const deserializeAws_json1_1TriggerEventTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TriggerTargetsLimitExceededException = ( diff --git a/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts b/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts index 05885685e06c..cf40968e5392 100644 --- a/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts @@ -1655,7 +1655,7 @@ const serializeAws_restJson1ThirdPartySourceRepository = ( }; const deserializeAws_restJson1AnalysisTypes = (output: any, context: __SerdeContext): (AnalysisType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1663,6 +1663,7 @@ const deserializeAws_restJson1AnalysisTypes = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BranchDiffSourceCodeType = ( @@ -1718,7 +1719,7 @@ const deserializeAws_restJson1CodeReview = (output: any, context: __SerdeContext }; const deserializeAws_restJson1CodeReviewSummaries = (output: any, context: __SerdeContext): CodeReviewSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1726,6 +1727,7 @@ const deserializeAws_restJson1CodeReviewSummaries = (output: any, context: __Ser } return deserializeAws_restJson1CodeReviewSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1CodeReviewSummary = (output: any, context: __SerdeContext): CodeReviewSummary => { @@ -1797,7 +1799,7 @@ const deserializeAws_restJson1MetricsSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1Reactions = (output: any, context: __SerdeContext): (Reaction | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1805,6 +1807,7 @@ const deserializeAws_restJson1Reactions = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RecommendationFeedback = ( @@ -1834,7 +1837,7 @@ const deserializeAws_restJson1RecommendationFeedbackSummaries = ( output: any, context: __SerdeContext ): RecommendationFeedbackSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1842,6 +1845,7 @@ const deserializeAws_restJson1RecommendationFeedbackSummaries = ( } return deserializeAws_restJson1RecommendationFeedbackSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationFeedbackSummary = ( @@ -1862,7 +1866,7 @@ const deserializeAws_restJson1RecommendationSummaries = ( output: any, context: __SerdeContext ): RecommendationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1870,6 +1874,7 @@ const deserializeAws_restJson1RecommendationSummaries = ( } return deserializeAws_restJson1RecommendationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationSummary = (output: any, context: __SerdeContext): RecommendationSummary => { @@ -1921,7 +1926,7 @@ const deserializeAws_restJson1RepositoryAssociationSummaries = ( output: any, context: __SerdeContext ): RepositoryAssociationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1929,6 +1934,7 @@ const deserializeAws_restJson1RepositoryAssociationSummaries = ( } return deserializeAws_restJson1RepositoryAssociationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RepositoryAssociationSummary = ( @@ -1985,7 +1991,7 @@ const deserializeAws_restJson1RuleMetadata = (output: any, context: __SerdeConte }; const deserializeAws_restJson1RuleTags = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1993,6 +1999,7 @@ const deserializeAws_restJson1RuleTags = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3BucketRepository = (output: any, context: __SerdeContext): S3BucketRepository => { diff --git a/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts b/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts index aa5f70e69db0..967b912e3f8c 100644 --- a/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts @@ -2461,7 +2461,7 @@ const deserializeAws_restJson1AggregatedProfileTime = (output: any, context: __S }; const deserializeAws_restJson1Anomalies = (output: any, context: __SerdeContext): Anomaly[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2469,6 +2469,7 @@ const deserializeAws_restJson1Anomalies = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Anomaly(entry, context); }); + return retVal; }; const deserializeAws_restJson1Anomaly = (output: any, context: __SerdeContext): Anomaly => { @@ -2504,7 +2505,7 @@ const deserializeAws_restJson1AnomalyInstance = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AnomalyInstances = (output: any, context: __SerdeContext): AnomalyInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2512,6 +2513,7 @@ const deserializeAws_restJson1AnomalyInstances = (output: any, context: __SerdeC } return deserializeAws_restJson1AnomalyInstance(entry, context); }); + return retVal; }; const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): Channel => { @@ -2526,46 +2528,34 @@ const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Channels = (output: any, context: __SerdeContext): Channel[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = deserializeAws_restJson1Channel(entry, context); - if (uniqueValues.has(parsedEntry)) { - throw new TypeError('All elements of the set "com.amazonaws.codeguruprofiler#Channels" must be unique.'); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return deserializeAws_restJson1Channel(entry, context); }); + return retVal; }; const deserializeAws_restJson1EventPublishers = (output: any, context: __SerdeContext): (EventPublisher | string)[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = __expectString(entry) as any; - if (uniqueValues.has(parsedEntry)) { - throw new TypeError('All elements of the set "com.amazonaws.codeguruprofiler#EventPublishers" must be unique.'); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FindingsReportSummaries = ( output: any, context: __SerdeContext ): FindingsReportSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2573,6 +2563,7 @@ const deserializeAws_restJson1FindingsReportSummaries = ( } return deserializeAws_restJson1FindingsReportSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1FindingsReportSummary = (output: any, context: __SerdeContext): FindingsReportSummary => { @@ -2603,7 +2594,7 @@ const deserializeAws_restJson1FrameMetric = (output: any, context: __SerdeContex }; const deserializeAws_restJson1FrameMetricData = (output: any, context: __SerdeContext): FrameMetricDatum[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2611,6 +2602,7 @@ const deserializeAws_restJson1FrameMetricData = (output: any, context: __SerdeCo } return deserializeAws_restJson1FrameMetricDatum(entry, context); }); + return retVal; }; const deserializeAws_restJson1FrameMetricDatum = (output: any, context: __SerdeContext): FrameMetricDatum => { @@ -2627,7 +2619,7 @@ const deserializeAws_restJson1FrameMetricDatum = (output: any, context: __SerdeC }; const deserializeAws_restJson1FrameMetricValues = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2635,10 +2627,11 @@ const deserializeAws_restJson1FrameMetricValues = (output: any, context: __Serde } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfTimestamps = (output: any, context: __SerdeContext): TimestampStructure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2646,6 +2639,7 @@ const deserializeAws_restJson1ListOfTimestamps = (output: any, context: __SerdeC } return deserializeAws_restJson1TimestampStructure(entry, context); }); + return retVal; }; const deserializeAws_restJson1Match = (output: any, context: __SerdeContext): Match => { @@ -2657,7 +2651,7 @@ const deserializeAws_restJson1Match = (output: any, context: __SerdeContext): Ma }; const deserializeAws_restJson1Matches = (output: any, context: __SerdeContext): Match[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2665,6 +2659,7 @@ const deserializeAws_restJson1Matches = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Match(entry, context); }); + return retVal; }; const deserializeAws_restJson1Metric = (output: any, context: __SerdeContext): Metric => { @@ -2718,7 +2713,7 @@ const deserializeAws_restJson1ProfileTime = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ProfileTimes = (output: any, context: __SerdeContext): ProfileTime[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2726,6 +2721,7 @@ const deserializeAws_restJson1ProfileTimes = (output: any, context: __SerdeConte } return deserializeAws_restJson1ProfileTime(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProfilingGroupDescription = ( @@ -2763,7 +2759,7 @@ const deserializeAws_restJson1ProfilingGroupDescriptions = ( output: any, context: __SerdeContext ): ProfilingGroupDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2771,10 +2767,11 @@ const deserializeAws_restJson1ProfilingGroupDescriptions = ( } return deserializeAws_restJson1ProfilingGroupDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProfilingGroupNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2782,6 +2779,7 @@ const deserializeAws_restJson1ProfilingGroupNames = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ProfilingStatus = (output: any, context: __SerdeContext): ProfilingStatus => { @@ -2825,7 +2823,7 @@ const deserializeAws_restJson1Recommendation = (output: any, context: __SerdeCon }; const deserializeAws_restJson1Recommendations = (output: any, context: __SerdeContext): Recommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2833,10 +2831,11 @@ const deserializeAws_restJson1Recommendations = (output: any, context: __SerdeCo } return deserializeAws_restJson1Recommendation(entry, context); }); + return retVal; }; const deserializeAws_restJson1Strings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2844,6 +2843,7 @@ const deserializeAws_restJson1Strings = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -2859,7 +2859,7 @@ const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1TargetFrame = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2867,10 +2867,11 @@ const deserializeAws_restJson1TargetFrame = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TargetFrames = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2878,10 +2879,11 @@ const deserializeAws_restJson1TargetFrames = (output: any, context: __SerdeConte } return deserializeAws_restJson1TargetFrame(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThreadStates = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2889,6 +2891,7 @@ const deserializeAws_restJson1ThreadStates = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TimestampStructure = (output: any, context: __SerdeContext): TimestampStructure => { diff --git a/clients/client-codepipeline/src/protocols/Aws_json1_1.ts b/clients/client-codepipeline/src/protocols/Aws_json1_1.ts index 5898f973d7d2..8856154bfe32 100644 --- a/clients/client-codepipeline/src/protocols/Aws_json1_1.ts +++ b/clients/client-codepipeline/src/protocols/Aws_json1_1.ts @@ -4272,7 +4272,7 @@ const deserializeAws_json1_1ActionConfigurationPropertyList = ( output: any, context: __SerdeContext ): ActionConfigurationProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4280,6 +4280,7 @@ const deserializeAws_json1_1ActionConfigurationPropertyList = ( } return deserializeAws_json1_1ActionConfigurationProperty(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionContext = (output: any, context: __SerdeContext): ActionContext => { @@ -4367,7 +4368,7 @@ const deserializeAws_json1_1ActionExecutionDetailList = ( output: any, context: __SerdeContext ): ActionExecutionDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4375,6 +4376,7 @@ const deserializeAws_json1_1ActionExecutionDetailList = ( } return deserializeAws_json1_1ActionExecutionDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionExecutionInput = (output: any, context: __SerdeContext): ActionExecutionInput => { @@ -4463,7 +4465,7 @@ const deserializeAws_json1_1ActionState = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ActionStateList = (output: any, context: __SerdeContext): ActionState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4471,6 +4473,7 @@ const deserializeAws_json1_1ActionStateList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ActionState(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionType = (output: any, context: __SerdeContext): ActionType => { @@ -4573,7 +4576,7 @@ const deserializeAws_json1_1ActionTypeIdentifier = (output: any, context: __Serd }; const deserializeAws_json1_1ActionTypeList = (output: any, context: __SerdeContext): ActionType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4581,6 +4584,7 @@ const deserializeAws_json1_1ActionTypeList = (output: any, context: __SerdeConte } return deserializeAws_json1_1ActionType(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionTypeNotFoundException = ( @@ -4602,7 +4606,7 @@ const deserializeAws_json1_1ActionTypePermissions = (output: any, context: __Ser }; const deserializeAws_json1_1ActionTypeProperties = (output: any, context: __SerdeContext): ActionTypeProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4610,6 +4614,7 @@ const deserializeAws_json1_1ActionTypeProperties = (output: any, context: __Serd } return deserializeAws_json1_1ActionTypeProperty(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionTypeProperty = (output: any, context: __SerdeContext): ActionTypeProperty => { @@ -4642,7 +4647,7 @@ const deserializeAws_json1_1ActionTypeUrls = (output: any, context: __SerdeConte }; const deserializeAws_json1_1AllowedAccounts = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4650,6 +4655,7 @@ const deserializeAws_json1_1AllowedAccounts = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ApprovalAlreadyCompletedException = ( @@ -4683,7 +4689,7 @@ const deserializeAws_json1_1ArtifactDetail = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ArtifactDetailList = (output: any, context: __SerdeContext): ArtifactDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4691,6 +4697,7 @@ const deserializeAws_json1_1ArtifactDetailList = (output: any, context: __SerdeC } return deserializeAws_json1_1ArtifactDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ArtifactDetails = (output: any, context: __SerdeContext): ArtifactDetails => { @@ -4701,7 +4708,7 @@ const deserializeAws_json1_1ArtifactDetails = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ArtifactList = (output: any, context: __SerdeContext): Artifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4709,6 +4716,7 @@ const deserializeAws_json1_1ArtifactList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Artifact(entry, context); }); + return retVal; }; const deserializeAws_json1_1ArtifactLocation = (output: any, context: __SerdeContext): ArtifactLocation => { @@ -4736,7 +4744,7 @@ const deserializeAws_json1_1ArtifactRevision = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ArtifactRevisionList = (output: any, context: __SerdeContext): ArtifactRevision[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4744,6 +4752,7 @@ const deserializeAws_json1_1ArtifactRevisionList = (output: any, context: __Serd } return deserializeAws_json1_1ArtifactRevision(entry, context); }); + return retVal; }; const deserializeAws_json1_1ArtifactStore = (output: any, context: __SerdeContext): ArtifactStore => { @@ -4966,7 +4975,7 @@ const deserializeAws_json1_1InputArtifact = (output: any, context: __SerdeContex }; const deserializeAws_json1_1InputArtifactList = (output: any, context: __SerdeContext): InputArtifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4974,6 +4983,7 @@ const deserializeAws_json1_1InputArtifactList = (output: any, context: __SerdeCo } return deserializeAws_json1_1InputArtifact(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidActionDeclarationException = ( @@ -5148,7 +5158,7 @@ const deserializeAws_json1_1JobDetails = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1JobList = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5156,6 +5166,7 @@ const deserializeAws_json1_1JobList = (output: any, context: __SerdeContext): Jo } return deserializeAws_json1_1Job(entry, context); }); + return retVal; }; const deserializeAws_json1_1JobNotFoundException = (output: any, context: __SerdeContext): JobNotFoundException => { @@ -5301,7 +5312,7 @@ const deserializeAws_json1_1OutputArtifact = (output: any, context: __SerdeConte }; const deserializeAws_json1_1OutputArtifactList = (output: any, context: __SerdeContext): OutputArtifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5309,6 +5320,7 @@ const deserializeAws_json1_1OutputArtifactList = (output: any, context: __SerdeC } return deserializeAws_json1_1OutputArtifact(entry, context); }); + return retVal; }; const deserializeAws_json1_1OutputVariablesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -5434,7 +5446,7 @@ const deserializeAws_json1_1PipelineExecutionSummaryList = ( output: any, context: __SerdeContext ): PipelineExecutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5442,10 +5454,11 @@ const deserializeAws_json1_1PipelineExecutionSummaryList = ( } return deserializeAws_json1_1PipelineExecutionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineList = (output: any, context: __SerdeContext): PipelineSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5453,6 +5466,7 @@ const deserializeAws_json1_1PipelineList = (output: any, context: __SerdeContext } return deserializeAws_json1_1PipelineSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineMetadata = (output: any, context: __SerdeContext): PipelineMetadata => { @@ -5491,7 +5505,7 @@ const deserializeAws_json1_1PipelineStageDeclarationList = ( output: any, context: __SerdeContext ): StageDeclaration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5499,6 +5513,7 @@ const deserializeAws_json1_1PipelineStageDeclarationList = ( } return deserializeAws_json1_1StageDeclaration(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineSummary = (output: any, context: __SerdeContext): PipelineSummary => { @@ -5547,7 +5562,7 @@ const deserializeAws_json1_1PollForThirdPartyJobsOutput = ( }; const deserializeAws_json1_1PollingAccountList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5555,10 +5570,11 @@ const deserializeAws_json1_1PollingAccountList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PollingServicePrincipalList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5566,6 +5582,7 @@ const deserializeAws_json1_1PollingServicePrincipalList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PutActionRevisionOutput = ( @@ -5669,7 +5686,7 @@ const deserializeAws_json1_1SourceRevision = (output: any, context: __SerdeConte }; const deserializeAws_json1_1SourceRevisionList = (output: any, context: __SerdeContext): SourceRevision[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5677,13 +5694,14 @@ const deserializeAws_json1_1SourceRevisionList = (output: any, context: __SerdeC } return deserializeAws_json1_1SourceRevision(entry, context); }); + return retVal; }; const deserializeAws_json1_1StageActionDeclarationList = ( output: any, context: __SerdeContext ): ActionDeclaration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5691,13 +5709,14 @@ const deserializeAws_json1_1StageActionDeclarationList = ( } return deserializeAws_json1_1ActionDeclaration(entry, context); }); + return retVal; }; const deserializeAws_json1_1StageBlockerDeclarationList = ( output: any, context: __SerdeContext ): BlockerDeclaration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5705,6 +5724,7 @@ const deserializeAws_json1_1StageBlockerDeclarationList = ( } return deserializeAws_json1_1BlockerDeclaration(entry, context); }); + return retVal; }; const deserializeAws_json1_1StageContext = (output: any, context: __SerdeContext): StageContext => { @@ -5772,7 +5792,7 @@ const deserializeAws_json1_1StageState = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1StageStateList = (output: any, context: __SerdeContext): StageState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5780,6 +5800,7 @@ const deserializeAws_json1_1StageStateList = (output: any, context: __SerdeConte } return deserializeAws_json1_1StageState(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartPipelineExecutionOutput = ( @@ -5814,7 +5835,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5822,6 +5843,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceOutput = (output: any, context: __SerdeContext): TagResourceOutput => { @@ -5881,7 +5903,7 @@ const deserializeAws_json1_1ThirdPartyJobDetails = (output: any, context: __Serd }; const deserializeAws_json1_1ThirdPartyJobList = (output: any, context: __SerdeContext): ThirdPartyJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5889,6 +5911,7 @@ const deserializeAws_json1_1ThirdPartyJobList = (output: any, context: __SerdeCo } return deserializeAws_json1_1ThirdPartyJob(entry, context); }); + return retVal; }; const deserializeAws_json1_1TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => { @@ -5963,7 +5986,7 @@ const deserializeAws_json1_1WebhookFilterRule = (output: any, context: __SerdeCo }; const deserializeAws_json1_1WebhookFilters = (output: any, context: __SerdeContext): WebhookFilterRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5971,10 +5994,11 @@ const deserializeAws_json1_1WebhookFilters = (output: any, context: __SerdeConte } return deserializeAws_json1_1WebhookFilterRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1WebhookList = (output: any, context: __SerdeContext): ListWebhookItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5982,6 +6006,7 @@ const deserializeAws_json1_1WebhookList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1ListWebhookItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1WebhookNotFoundException = ( diff --git a/clients/client-codestar-connections/src/protocols/Aws_json1_0.ts b/clients/client-codestar-connections/src/protocols/Aws_json1_0.ts index 65948ccba1bb..be2be65cf0e7 100644 --- a/clients/client-codestar-connections/src/protocols/Aws_json1_0.ts +++ b/clients/client-codestar-connections/src/protocols/Aws_json1_0.ts @@ -1004,7 +1004,7 @@ const deserializeAws_json1_0Connection = (output: any, context: __SerdeContext): }; const deserializeAws_json1_0ConnectionList = (output: any, context: __SerdeContext): Connection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1012,6 +1012,7 @@ const deserializeAws_json1_0ConnectionList = (output: any, context: __SerdeConte } return deserializeAws_json1_0Connection(entry, context); }); + return retVal; }; const deserializeAws_json1_0CreateConnectionOutput = (output: any, context: __SerdeContext): CreateConnectionOutput => { @@ -1080,7 +1081,7 @@ const deserializeAws_json1_0Host = (output: any, context: __SerdeContext): Host }; const deserializeAws_json1_0HostList = (output: any, context: __SerdeContext): Host[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1088,6 +1089,7 @@ const deserializeAws_json1_0HostList = (output: any, context: __SerdeContext): H } return deserializeAws_json1_0Host(entry, context); }); + return retVal; }; const deserializeAws_json1_0LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -1147,7 +1149,7 @@ const deserializeAws_json1_0ResourceUnavailableException = ( }; const deserializeAws_json1_0SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1155,10 +1157,11 @@ const deserializeAws_json1_0SecurityGroupIds = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1166,6 +1169,7 @@ const deserializeAws_json1_0SubnetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => { @@ -1176,7 +1180,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1184,6 +1188,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceOutput = (output: any, context: __SerdeContext): TagResourceOutput => { diff --git a/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts b/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts index 02780186d52b..5041ded00311 100644 --- a/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts +++ b/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts @@ -1324,7 +1324,7 @@ const serializeAws_restJson1Targets = (input: Target[], context: __SerdeContext) }; const deserializeAws_restJson1EventTypeBatch = (output: any, context: __SerdeContext): EventTypeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1332,6 +1332,7 @@ const deserializeAws_restJson1EventTypeBatch = (output: any, context: __SerdeCon } return deserializeAws_restJson1EventTypeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1EventTypeSummary = (output: any, context: __SerdeContext): EventTypeSummary => { @@ -1347,7 +1348,7 @@ const deserializeAws_restJson1NotificationRuleBatch = ( output: any, context: __SerdeContext ): NotificationRuleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1355,6 +1356,7 @@ const deserializeAws_restJson1NotificationRuleBatch = ( } return deserializeAws_restJson1NotificationRuleSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1NotificationRuleSummary = ( @@ -1380,7 +1382,7 @@ const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [ }; const deserializeAws_restJson1TargetsBatch = (output: any, context: __SerdeContext): TargetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1388,6 +1390,7 @@ const deserializeAws_restJson1TargetsBatch = (output: any, context: __SerdeConte } return deserializeAws_restJson1TargetSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TargetSummary = (output: any, context: __SerdeContext): TargetSummary => { diff --git a/clients/client-codestar/src/protocols/Aws_json1_1.ts b/clients/client-codestar/src/protocols/Aws_json1_1.ts index fc93fa8295a8..7a7347d91c27 100644 --- a/clients/client-codestar/src/protocols/Aws_json1_1.ts +++ b/clients/client-codestar/src/protocols/Aws_json1_1.ts @@ -1930,7 +1930,7 @@ const deserializeAws_json1_1ProjectNotFoundException = ( }; const deserializeAws_json1_1ProjectsList = (output: any, context: __SerdeContext): ProjectSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1938,6 +1938,7 @@ const deserializeAws_json1_1ProjectsList = (output: any, context: __SerdeContext } return deserializeAws_json1_1ProjectSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProjectStatus = (output: any, context: __SerdeContext): ProjectStatus => { @@ -1961,7 +1962,7 @@ const deserializeAws_json1_1Resource = (output: any, context: __SerdeContext): R }; const deserializeAws_json1_1ResourcesResult = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1969,6 +1970,7 @@ const deserializeAws_json1_1ResourcesResult = (output: any, context: __SerdeCont } return deserializeAws_json1_1Resource(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagProjectResult = (output: any, context: __SerdeContext): TagProjectResult => { @@ -2017,7 +2019,7 @@ const deserializeAws_json1_1TeamMemberNotFoundException = ( }; const deserializeAws_json1_1TeamMemberResult = (output: any, context: __SerdeContext): TeamMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2025,6 +2027,7 @@ const deserializeAws_json1_1TeamMemberResult = (output: any, context: __SerdeCon } return deserializeAws_json1_1TeamMember(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagProjectResult = (output: any, context: __SerdeContext): UntagProjectResult => { @@ -2082,7 +2085,7 @@ const deserializeAws_json1_1UserProfileNotFoundException = ( }; const deserializeAws_json1_1UserProfilesList = (output: any, context: __SerdeContext): UserProfileSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2090,6 +2093,7 @@ const deserializeAws_json1_1UserProfilesList = (output: any, context: __SerdeCon } return deserializeAws_json1_1UserProfileSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserProfileSummary = (output: any, context: __SerdeContext): UserProfileSummary => { diff --git a/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts b/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts index 59bde0ff06f8..8a344939e0ac 100644 --- a/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts +++ b/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts @@ -11427,7 +11427,7 @@ const deserializeAws_json1_1AliasAttributesListType = ( output: any, context: __SerdeContext ): (AliasAttributeType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11435,6 +11435,7 @@ const deserializeAws_json1_1AliasAttributesListType = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AliasExistsException = (output: any, context: __SerdeContext): AliasExistsException => { @@ -11467,7 +11468,7 @@ const deserializeAws_json1_1AssociateSoftwareTokenResponse = ( }; const deserializeAws_json1_1AttributeListType = (output: any, context: __SerdeContext): AttributeType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11475,6 +11476,7 @@ const deserializeAws_json1_1AttributeListType = (output: any, context: __SerdeCo } return deserializeAws_json1_1AttributeType(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttributeMappingType = ( @@ -11517,7 +11519,7 @@ const deserializeAws_json1_1AuthenticationResultType = ( }; const deserializeAws_json1_1AuthEventsType = (output: any, context: __SerdeContext): AuthEventType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11525,6 +11527,7 @@ const deserializeAws_json1_1AuthEventsType = (output: any, context: __SerdeConte } return deserializeAws_json1_1AuthEventType(entry, context); }); + return retVal; }; const deserializeAws_json1_1AuthEventType = (output: any, context: __SerdeContext): AuthEventType => { @@ -11556,7 +11559,7 @@ const deserializeAws_json1_1AuthEventType = (output: any, context: __SerdeContex }; const deserializeAws_json1_1BlockedIPRangeListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11564,10 +11567,11 @@ const deserializeAws_json1_1BlockedIPRangeListType = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CallbackURLsListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11575,6 +11579,7 @@ const deserializeAws_json1_1CallbackURLsListType = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ChallengeParametersType = ( @@ -11596,7 +11601,7 @@ const deserializeAws_json1_1ChallengeResponseListType = ( output: any, context: __SerdeContext ): ChallengeResponseType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11604,6 +11609,7 @@ const deserializeAws_json1_1ChallengeResponseListType = ( } return deserializeAws_json1_1ChallengeResponseType(entry, context); }); + return retVal; }; const deserializeAws_json1_1ChallengeResponseType = (output: any, context: __SerdeContext): ChallengeResponseType => { @@ -11618,7 +11624,7 @@ const deserializeAws_json1_1ChangePasswordResponse = (output: any, context: __Se }; const deserializeAws_json1_1ClientPermissionListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11626,13 +11632,14 @@ const deserializeAws_json1_1ClientPermissionListType = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CodeDeliveryDetailsListType = ( output: any, context: __SerdeContext ): CodeDeliveryDetailsType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11640,6 +11647,7 @@ const deserializeAws_json1_1CodeDeliveryDetailsListType = ( } return deserializeAws_json1_1CodeDeliveryDetailsType(entry, context); }); + return retVal; }; const deserializeAws_json1_1CodeDeliveryDetailsType = ( @@ -11929,7 +11937,7 @@ const deserializeAws_json1_1DeviceConfigurationType = ( }; const deserializeAws_json1_1DeviceListType = (output: any, context: __SerdeContext): DeviceType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11937,6 +11945,7 @@ const deserializeAws_json1_1DeviceListType = (output: any, context: __SerdeConte } return deserializeAws_json1_1DeviceType(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceType = (output: any, context: __SerdeContext): DeviceType => { @@ -12027,7 +12036,7 @@ const deserializeAws_json1_1EventFeedbackType = (output: any, context: __SerdeCo }; const deserializeAws_json1_1EventFiltersType = (output: any, context: __SerdeContext): (EventFilterType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12035,6 +12044,7 @@ const deserializeAws_json1_1EventFiltersType = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1EventRiskType = (output: any, context: __SerdeContext): EventRiskType => { @@ -12055,7 +12065,7 @@ const deserializeAws_json1_1ExplicitAuthFlowsListType = ( output: any, context: __SerdeContext ): (ExplicitAuthFlowsType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12063,6 +12073,7 @@ const deserializeAws_json1_1ExplicitAuthFlowsListType = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ForgotPasswordResponse = (output: any, context: __SerdeContext): ForgotPasswordResponse => { @@ -12194,7 +12205,7 @@ const deserializeAws_json1_1GroupExistsException = (output: any, context: __Serd }; const deserializeAws_json1_1GroupListType = (output: any, context: __SerdeContext): GroupType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12202,6 +12213,7 @@ const deserializeAws_json1_1GroupListType = (output: any, context: __SerdeContex } return deserializeAws_json1_1GroupType(entry, context); }); + return retVal; }; const deserializeAws_json1_1GroupType = (output: any, context: __SerdeContext): GroupType => { @@ -12251,7 +12263,7 @@ const deserializeAws_json1_1IdentityProviderType = (output: any, context: __Serd }; const deserializeAws_json1_1IdpIdentifiersListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12259,6 +12271,7 @@ const deserializeAws_json1_1IdpIdentifiersListType = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InitiateAuthResponse = (output: any, context: __SerdeContext): InitiateAuthResponse => { @@ -12418,7 +12431,7 @@ const deserializeAws_json1_1ListIdentityProvidersResponse = ( }; const deserializeAws_json1_1ListOfStringTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12426,6 +12439,7 @@ const deserializeAws_json1_1ListOfStringTypes = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListResourceServersResponse = ( @@ -12513,7 +12527,7 @@ const deserializeAws_json1_1ListUsersResponse = (output: any, context: __SerdeCo }; const deserializeAws_json1_1LogoutURLsListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12521,6 +12535,7 @@ const deserializeAws_json1_1LogoutURLsListType = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1MessageTemplateType = (output: any, context: __SerdeContext): MessageTemplateType => { @@ -12541,7 +12556,7 @@ const deserializeAws_json1_1MFAMethodNotFoundException = ( }; const deserializeAws_json1_1MFAOptionListType = (output: any, context: __SerdeContext): MFAOptionType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12549,6 +12564,7 @@ const deserializeAws_json1_1MFAOptionListType = (output: any, context: __SerdeCo } return deserializeAws_json1_1MFAOptionType(entry, context); }); + return retVal; }; const deserializeAws_json1_1MFAOptionType = (output: any, context: __SerdeContext): MFAOptionType => { @@ -12613,7 +12629,7 @@ const deserializeAws_json1_1NumberAttributeConstraintsType = ( }; const deserializeAws_json1_1OAuthFlowsType = (output: any, context: __SerdeContext): (OAuthFlowType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12621,6 +12637,7 @@ const deserializeAws_json1_1OAuthFlowsType = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PasswordPolicyType = (output: any, context: __SerdeContext): PasswordPolicyType => { @@ -12680,7 +12697,7 @@ const deserializeAws_json1_1ProviderDetailsType = (output: any, context: __Serde }; const deserializeAws_json1_1ProvidersListType = (output: any, context: __SerdeContext): ProviderDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12688,10 +12705,11 @@ const deserializeAws_json1_1ProvidersListType = (output: any, context: __SerdeCo } return deserializeAws_json1_1ProviderDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecoveryMechanismsType = (output: any, context: __SerdeContext): RecoveryOptionType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12699,6 +12717,7 @@ const deserializeAws_json1_1RecoveryMechanismsType = (output: any, context: __Se } return deserializeAws_json1_1RecoveryOptionType(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecoveryOptionType = (output: any, context: __SerdeContext): RecoveryOptionType => { @@ -12733,7 +12752,7 @@ const deserializeAws_json1_1ResourceServerScopeListType = ( output: any, context: __SerdeContext ): ResourceServerScopeType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12741,6 +12760,7 @@ const deserializeAws_json1_1ResourceServerScopeListType = ( } return deserializeAws_json1_1ResourceServerScopeType(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceServerScopeType = ( @@ -12754,7 +12774,7 @@ const deserializeAws_json1_1ResourceServerScopeType = ( }; const deserializeAws_json1_1ResourceServersListType = (output: any, context: __SerdeContext): ResourceServerType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12762,6 +12782,7 @@ const deserializeAws_json1_1ResourceServersListType = (output: any, context: __S } return deserializeAws_json1_1ResourceServerType(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceServerType = (output: any, context: __SerdeContext): ResourceServerType => { @@ -12845,7 +12866,7 @@ const deserializeAws_json1_1SchemaAttributesListType = ( output: any, context: __SerdeContext ): SchemaAttributeType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12853,6 +12874,7 @@ const deserializeAws_json1_1SchemaAttributesListType = ( } return deserializeAws_json1_1SchemaAttributeType(entry, context); }); + return retVal; }; const deserializeAws_json1_1SchemaAttributeType = (output: any, context: __SerdeContext): SchemaAttributeType => { @@ -12883,7 +12905,7 @@ const deserializeAws_json1_1ScopeDoesNotExistException = ( }; const deserializeAws_json1_1ScopeListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12891,6 +12913,7 @@ const deserializeAws_json1_1ScopeListType = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SetRiskConfigurationResponse = ( @@ -12960,7 +12983,7 @@ const deserializeAws_json1_1SignUpResponse = (output: any, context: __SerdeConte }; const deserializeAws_json1_1SkippedIPRangeListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -12968,6 +12991,7 @@ const deserializeAws_json1_1SkippedIPRangeListType = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SmsConfigurationType = (output: any, context: __SerdeContext): SmsConfigurationType => { @@ -13040,7 +13064,7 @@ const deserializeAws_json1_1StringAttributeConstraintsType = ( }; const deserializeAws_json1_1SupportedIdentityProvidersListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13048,6 +13072,7 @@ const deserializeAws_json1_1SupportedIdentityProvidersListType = (output: any, c } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -13247,7 +13272,7 @@ const deserializeAws_json1_1UserImportInProgressException = ( }; const deserializeAws_json1_1UserImportJobsListType = (output: any, context: __SerdeContext): UserImportJobType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13255,6 +13280,7 @@ const deserializeAws_json1_1UserImportJobsListType = (output: any, context: __Se } return deserializeAws_json1_1UserImportJobType(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserImportJobType = (output: any, context: __SerdeContext): UserImportJobType => { @@ -13294,7 +13320,7 @@ const deserializeAws_json1_1UserLambdaValidationException = ( }; const deserializeAws_json1_1UserMFASettingListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13302,13 +13328,14 @@ const deserializeAws_json1_1UserMFASettingListType = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1UsernameAttributesListType = ( output: any, context: __SerdeContext ): (UsernameAttributeType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13316,6 +13343,7 @@ const deserializeAws_json1_1UsernameAttributesListType = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1UsernameConfigurationType = ( @@ -13381,7 +13409,7 @@ const deserializeAws_json1_1UserPoolClientListType = ( output: any, context: __SerdeContext ): UserPoolClientDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13389,6 +13417,7 @@ const deserializeAws_json1_1UserPoolClientListType = ( } return deserializeAws_json1_1UserPoolClientDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserPoolClientType = (output: any, context: __SerdeContext): UserPoolClientType => { @@ -13479,7 +13508,7 @@ const deserializeAws_json1_1UserPoolDescriptionType = ( }; const deserializeAws_json1_1UserPoolListType = (output: any, context: __SerdeContext): UserPoolDescriptionType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13487,6 +13516,7 @@ const deserializeAws_json1_1UserPoolListType = (output: any, context: __SerdeCon } return deserializeAws_json1_1UserPoolDescriptionType(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserPoolPolicyType = (output: any, context: __SerdeContext): UserPoolPolicyType => { @@ -13607,7 +13637,7 @@ const deserializeAws_json1_1UserPoolType = (output: any, context: __SerdeContext }; const deserializeAws_json1_1UsersListType = (output: any, context: __SerdeContext): UserType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13615,6 +13645,7 @@ const deserializeAws_json1_1UsersListType = (output: any, context: __SerdeContex } return deserializeAws_json1_1UserType(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserType = (output: any, context: __SerdeContext): UserType => { @@ -13659,7 +13690,7 @@ const deserializeAws_json1_1VerifiedAttributesListType = ( output: any, context: __SerdeContext ): (VerifiedAttributeType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -13667,6 +13698,7 @@ const deserializeAws_json1_1VerifiedAttributesListType = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1VerifySoftwareTokenResponse = ( diff --git a/clients/client-cognito-identity/src/protocols/Aws_json1_1.ts b/clients/client-cognito-identity/src/protocols/Aws_json1_1.ts index 03ce79c7b821..0b58e3c0004a 100644 --- a/clients/client-cognito-identity/src/protocols/Aws_json1_1.ts +++ b/clients/client-cognito-identity/src/protocols/Aws_json1_1.ts @@ -2401,7 +2401,7 @@ const deserializeAws_json1_1CognitoIdentityProviderList = ( output: any, context: __SerdeContext ): CognitoIdentityProvider[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2409,6 +2409,7 @@ const deserializeAws_json1_1CognitoIdentityProviderList = ( } return deserializeAws_json1_1CognitoIdentityProvider(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConcurrentModificationException = ( @@ -2454,7 +2455,7 @@ const deserializeAws_json1_1DeveloperUserAlreadyRegisteredException = ( }; const deserializeAws_json1_1DeveloperUserIdentifierList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2462,6 +2463,7 @@ const deserializeAws_json1_1DeveloperUserIdentifierList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ExternalServiceException = ( @@ -2542,7 +2544,7 @@ const deserializeAws_json1_1GetPrincipalTagAttributeMapResponse = ( }; const deserializeAws_json1_1IdentitiesList = (output: any, context: __SerdeContext): IdentityDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2550,6 +2552,7 @@ const deserializeAws_json1_1IdentitiesList = (output: any, context: __SerdeConte } return deserializeAws_json1_1IdentityDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1IdentityDescription = (output: any, context: __SerdeContext): IdentityDescription => { @@ -2614,7 +2617,7 @@ const deserializeAws_json1_1IdentityPoolsList = ( output: any, context: __SerdeContext ): IdentityPoolShortDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2622,6 +2625,7 @@ const deserializeAws_json1_1IdentityPoolsList = ( } return deserializeAws_json1_1IdentityPoolShortDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1IdentityPoolTagsType = ( @@ -2718,7 +2722,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( }; const deserializeAws_json1_1LoginsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2726,6 +2730,7 @@ const deserializeAws_json1_1LoginsList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LookupDeveloperIdentityResponse = ( @@ -2752,7 +2757,7 @@ const deserializeAws_json1_1MappingRule = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1MappingRulesList = (output: any, context: __SerdeContext): MappingRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2760,6 +2765,7 @@ const deserializeAws_json1_1MappingRulesList = (output: any, context: __SerdeCon } return deserializeAws_json1_1MappingRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1MergeDeveloperIdentitiesResponse = ( @@ -2778,7 +2784,7 @@ const deserializeAws_json1_1NotAuthorizedException = (output: any, context: __Se }; const deserializeAws_json1_1OIDCProviderList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2786,6 +2792,7 @@ const deserializeAws_json1_1OIDCProviderList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PrincipalTags = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -2863,7 +2870,7 @@ const deserializeAws_json1_1RulesConfigurationType = (output: any, context: __Se }; const deserializeAws_json1_1SAMLProviderList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2871,6 +2878,7 @@ const deserializeAws_json1_1SAMLProviderList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SetPrincipalTagAttributeMapResponse = ( @@ -2912,7 +2920,7 @@ const deserializeAws_json1_1UnprocessedIdentityIdList = ( output: any, context: __SerdeContext ): UnprocessedIdentityId[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2920,6 +2928,7 @@ const deserializeAws_json1_1UnprocessedIdentityIdList = ( } return deserializeAws_json1_1UnprocessedIdentityId(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => { diff --git a/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts b/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts index 20dcba025eb4..4b5d3be94efa 100644 --- a/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts +++ b/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts @@ -2098,7 +2098,7 @@ const serializeAws_restJson1RecordPatchList = (input: RecordPatch[], context: __ }; const deserializeAws_restJson1ApplicationArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2106,6 +2106,7 @@ const deserializeAws_restJson1ApplicationArnList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CognitoStreams = (output: any, context: __SerdeContext): CognitoStreams => { @@ -2135,7 +2136,7 @@ const deserializeAws_restJson1Dataset = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1DatasetList = (output: any, context: __SerdeContext): Dataset[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2143,6 +2144,7 @@ const deserializeAws_restJson1DatasetList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Dataset(entry, context); }); + return retVal; }; const deserializeAws_restJson1Events = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -2170,7 +2172,7 @@ const deserializeAws_restJson1IdentityPoolUsage = (output: any, context: __Serde }; const deserializeAws_restJson1IdentityPoolUsageList = (output: any, context: __SerdeContext): IdentityPoolUsage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2178,6 +2180,7 @@ const deserializeAws_restJson1IdentityPoolUsageList = (output: any, context: __S } return deserializeAws_restJson1IdentityPoolUsage(entry, context); }); + return retVal; }; const deserializeAws_restJson1IdentityUsage = (output: any, context: __SerdeContext): IdentityUsage => { @@ -2194,7 +2197,7 @@ const deserializeAws_restJson1IdentityUsage = (output: any, context: __SerdeCont }; const deserializeAws_restJson1MergedDatasetNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2202,6 +2205,7 @@ const deserializeAws_restJson1MergedDatasetNameList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PushSync = (output: any, context: __SerdeContext): PushSync => { @@ -2232,7 +2236,7 @@ const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1RecordList = (output: any, context: __SerdeContext): _Record[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2240,6 +2244,7 @@ const deserializeAws_restJson1RecordList = (output: any, context: __SerdeContext } return deserializeAws_restJson1_Record(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-comprehend/src/protocols/Aws_json1_1.ts b/clients/client-comprehend/src/protocols/Aws_json1_1.ts index 62f72e07bc05..e3b086ef227d 100644 --- a/clients/client-comprehend/src/protocols/Aws_json1_1.ts +++ b/clients/client-comprehend/src/protocols/Aws_json1_1.ts @@ -6408,7 +6408,7 @@ const serializeAws_json1_1VpcConfig = (input: VpcConfig, context: __SerdeContext }; const deserializeAws_json1_1AttributeNamesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6416,6 +6416,7 @@ const deserializeAws_json1_1AttributeNamesList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AugmentedManifestsListItem = ( @@ -6590,7 +6591,7 @@ const deserializeAws_json1_1BatchItemError = (output: any, context: __SerdeConte }; const deserializeAws_json1_1BatchItemErrorList = (output: any, context: __SerdeContext): BatchItemError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6598,6 +6599,7 @@ const deserializeAws_json1_1BatchItemErrorList = (output: any, context: __SerdeC } return deserializeAws_json1_1BatchItemError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchSizeLimitExceededException = ( @@ -6991,7 +6993,7 @@ const deserializeAws_json1_1DocumentClassificationJobPropertiesList = ( output: any, context: __SerdeContext ): DocumentClassificationJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6999,13 +7001,14 @@ const deserializeAws_json1_1DocumentClassificationJobPropertiesList = ( } return deserializeAws_json1_1DocumentClassificationJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentClassifierAugmentedManifestsList = ( output: any, context: __SerdeContext ): AugmentedManifestsListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7013,6 +7016,7 @@ const deserializeAws_json1_1DocumentClassifierAugmentedManifestsList = ( } return deserializeAws_json1_1AugmentedManifestsListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentClassifierInputDataConfig = ( @@ -7095,7 +7099,7 @@ const deserializeAws_json1_1DocumentClassifierPropertiesList = ( output: any, context: __SerdeContext ): DocumentClassifierProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7103,13 +7107,14 @@ const deserializeAws_json1_1DocumentClassifierPropertiesList = ( } return deserializeAws_json1_1DocumentClassifierProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentClassifierSummariesList = ( output: any, context: __SerdeContext ): DocumentClassifierSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7117,6 +7122,7 @@ const deserializeAws_json1_1DocumentClassifierSummariesList = ( } return deserializeAws_json1_1DocumentClassifierSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentClassifierSummary = ( @@ -7199,7 +7205,7 @@ const deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList = ( output: any, context: __SerdeContext ): DominantLanguageDetectionJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7207,6 +7213,7 @@ const deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList = ( } return deserializeAws_json1_1DominantLanguageDetectionJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1EndpointProperties = (output: any, context: __SerdeContext): EndpointProperties => { @@ -7232,7 +7239,7 @@ const deserializeAws_json1_1EndpointProperties = (output: any, context: __SerdeC }; const deserializeAws_json1_1EndpointPropertiesList = (output: any, context: __SerdeContext): EndpointProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7240,6 +7247,7 @@ const deserializeAws_json1_1EndpointPropertiesList = (output: any, context: __Se } return deserializeAws_json1_1EndpointProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntitiesDetectionJobProperties = ( @@ -7283,7 +7291,7 @@ const deserializeAws_json1_1EntitiesDetectionJobPropertiesList = ( output: any, context: __SerdeContext ): EntitiesDetectionJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7291,6 +7299,7 @@ const deserializeAws_json1_1EntitiesDetectionJobPropertiesList = ( } return deserializeAws_json1_1EntitiesDetectionJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Entity => { @@ -7324,7 +7333,7 @@ const deserializeAws_json1_1EntityRecognizerAugmentedManifestsList = ( output: any, context: __SerdeContext ): AugmentedManifestsListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7332,6 +7341,7 @@ const deserializeAws_json1_1EntityRecognizerAugmentedManifestsList = ( } return deserializeAws_json1_1AugmentedManifestsListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntityRecognizerDocuments = ( @@ -7416,7 +7426,7 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList = ( output: any, context: __SerdeContext ): EntityRecognizerMetadataEntityTypesListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7424,6 +7434,7 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList = ( } return deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = ( @@ -7489,7 +7500,7 @@ const deserializeAws_json1_1EntityRecognizerPropertiesList = ( output: any, context: __SerdeContext ): EntityRecognizerProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7497,13 +7508,14 @@ const deserializeAws_json1_1EntityRecognizerPropertiesList = ( } return deserializeAws_json1_1EntityRecognizerProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntityRecognizerSummariesList = ( output: any, context: __SerdeContext ): EntityRecognizerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7511,6 +7523,7 @@ const deserializeAws_json1_1EntityRecognizerSummariesList = ( } return deserializeAws_json1_1EntityRecognizerSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntityRecognizerSummary = ( @@ -7541,7 +7554,7 @@ const deserializeAws_json1_1EntityTypesEvaluationMetrics = ( }; const deserializeAws_json1_1EntityTypesList = (output: any, context: __SerdeContext): EntityTypesListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7549,6 +7562,7 @@ const deserializeAws_json1_1EntityTypesList = (output: any, context: __SerdeCont } return deserializeAws_json1_1EntityTypesListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntityTypesListItem = (output: any, context: __SerdeContext): EntityTypesListItem => { @@ -7596,7 +7610,7 @@ const deserializeAws_json1_1EventsDetectionJobPropertiesList = ( output: any, context: __SerdeContext ): EventsDetectionJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7604,6 +7618,7 @@ const deserializeAws_json1_1EventsDetectionJobPropertiesList = ( } return deserializeAws_json1_1EventsDetectionJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImportModelResponse = (output: any, context: __SerdeContext): ImportModelResponse => { @@ -7702,7 +7717,7 @@ const deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList = ( output: any, context: __SerdeContext ): KeyPhrasesDetectionJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7710,6 +7725,7 @@ const deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList = ( } return deserializeAws_json1_1KeyPhrasesDetectionJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1KmsKeyValidationException = ( @@ -7860,7 +7876,7 @@ const deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse = ( }; const deserializeAws_json1_1ListOfClasses = (output: any, context: __SerdeContext): DocumentClass[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7868,13 +7884,14 @@ const deserializeAws_json1_1ListOfClasses = (output: any, context: __SerdeContex } return deserializeAws_json1_1DocumentClass(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfDetectDominantLanguageResult = ( output: any, context: __SerdeContext ): BatchDetectDominantLanguageItemResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7882,13 +7899,14 @@ const deserializeAws_json1_1ListOfDetectDominantLanguageResult = ( } return deserializeAws_json1_1BatchDetectDominantLanguageItemResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfDetectEntitiesResult = ( output: any, context: __SerdeContext ): BatchDetectEntitiesItemResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7896,13 +7914,14 @@ const deserializeAws_json1_1ListOfDetectEntitiesResult = ( } return deserializeAws_json1_1BatchDetectEntitiesItemResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfDetectKeyPhrasesResult = ( output: any, context: __SerdeContext ): BatchDetectKeyPhrasesItemResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7910,13 +7929,14 @@ const deserializeAws_json1_1ListOfDetectKeyPhrasesResult = ( } return deserializeAws_json1_1BatchDetectKeyPhrasesItemResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfDetectSentimentResult = ( output: any, context: __SerdeContext ): BatchDetectSentimentItemResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7924,13 +7944,14 @@ const deserializeAws_json1_1ListOfDetectSentimentResult = ( } return deserializeAws_json1_1BatchDetectSentimentItemResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfDetectSyntaxResult = ( output: any, context: __SerdeContext ): BatchDetectSyntaxItemResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7938,13 +7959,14 @@ const deserializeAws_json1_1ListOfDetectSyntaxResult = ( } return deserializeAws_json1_1BatchDetectSyntaxItemResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfDocumentReadFeatureTypes = ( output: any, context: __SerdeContext ): (DocumentReadFeatureTypes | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7952,10 +7974,11 @@ const deserializeAws_json1_1ListOfDocumentReadFeatureTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListOfDominantLanguages = (output: any, context: __SerdeContext): DominantLanguage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7963,10 +7986,11 @@ const deserializeAws_json1_1ListOfDominantLanguages = (output: any, context: __S } return deserializeAws_json1_1DominantLanguage(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfEntities = (output: any, context: __SerdeContext): Entity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7974,10 +7998,11 @@ const deserializeAws_json1_1ListOfEntities = (output: any, context: __SerdeConte } return deserializeAws_json1_1Entity(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfEntityLabels = (output: any, context: __SerdeContext): EntityLabel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7985,10 +8010,11 @@ const deserializeAws_json1_1ListOfEntityLabels = (output: any, context: __SerdeC } return deserializeAws_json1_1EntityLabel(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfKeyPhrases = (output: any, context: __SerdeContext): KeyPhrase[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7996,10 +8022,11 @@ const deserializeAws_json1_1ListOfKeyPhrases = (output: any, context: __SerdeCon } return deserializeAws_json1_1KeyPhrase(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfLabels = (output: any, context: __SerdeContext): DocumentLabel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8007,10 +8034,11 @@ const deserializeAws_json1_1ListOfLabels = (output: any, context: __SerdeContext } return deserializeAws_json1_1DocumentLabel(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfPiiEntities = (output: any, context: __SerdeContext): PiiEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8018,13 +8046,14 @@ const deserializeAws_json1_1ListOfPiiEntities = (output: any, context: __SerdeCo } return deserializeAws_json1_1PiiEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfPiiEntityTypes = ( output: any, context: __SerdeContext ): (PiiEntityType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8032,10 +8061,11 @@ const deserializeAws_json1_1ListOfPiiEntityTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListOfSyntaxTokens = (output: any, context: __SerdeContext): SyntaxToken[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8043,6 +8073,7 @@ const deserializeAws_json1_1ListOfSyntaxTokens = (output: any, context: __SerdeC } return deserializeAws_json1_1SyntaxToken(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = ( @@ -8155,7 +8186,7 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList = ( output: any, context: __SerdeContext ): PiiEntitiesDetectionJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8163,6 +8194,7 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList = ( } return deserializeAws_json1_1PiiEntitiesDetectionJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1PiiEntity = (output: any, context: __SerdeContext): PiiEntity => { @@ -8235,7 +8267,7 @@ const deserializeAws_json1_1ResourceUnavailableException = ( }; const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8243,6 +8275,7 @@ const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SentimentDetectionJobProperties = ( @@ -8285,7 +8318,7 @@ const deserializeAws_json1_1SentimentDetectionJobPropertiesList = ( output: any, context: __SerdeContext ): SentimentDetectionJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8293,6 +8326,7 @@ const deserializeAws_json1_1SentimentDetectionJobPropertiesList = ( } return deserializeAws_json1_1SentimentDetectionJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1SentimentScore = (output: any, context: __SerdeContext): SentimentScore => { @@ -8467,7 +8501,7 @@ const deserializeAws_json1_1StopTrainingEntityRecognizerResponse = ( }; const deserializeAws_json1_1Subnets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8475,6 +8509,7 @@ const deserializeAws_json1_1Subnets = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SyntaxToken = (output: any, context: __SerdeContext): SyntaxToken => { @@ -8498,7 +8533,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8506,6 +8541,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -8513,7 +8549,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1TargetEventTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8521,6 +8557,7 @@ const deserializeAws_json1_1TargetEventTypes = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TextSizeLimitExceededException = ( @@ -8596,7 +8633,7 @@ const deserializeAws_json1_1TopicsDetectionJobPropertiesList = ( output: any, context: __SerdeContext ): TopicsDetectionJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8604,6 +8641,7 @@ const deserializeAws_json1_1TopicsDetectionJobPropertiesList = ( } return deserializeAws_json1_1TopicsDetectionJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnsupportedLanguageException = ( diff --git a/clients/client-comprehendmedical/src/protocols/Aws_json1_1.ts b/clients/client-comprehendmedical/src/protocols/Aws_json1_1.ts index e01d09b7539c..34047deee754 100644 --- a/clients/client-comprehendmedical/src/protocols/Aws_json1_1.ts +++ b/clients/client-comprehendmedical/src/protocols/Aws_json1_1.ts @@ -2349,7 +2349,7 @@ const deserializeAws_json1_1Attribute = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1AttributeList = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2357,6 +2357,7 @@ const deserializeAws_json1_1AttributeList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Attribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1Characters = (output: any, context: __SerdeContext): Characters => { @@ -2406,7 +2407,7 @@ const deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList = ( output: any, context: __SerdeContext ): ComprehendMedicalAsyncJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2414,6 +2415,7 @@ const deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList = ( } return deserializeAws_json1_1ComprehendMedicalAsyncJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeEntitiesDetectionV2JobResponse = ( @@ -2541,7 +2543,7 @@ const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Ent }; const deserializeAws_json1_1EntityList = (output: any, context: __SerdeContext): Entity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2549,6 +2551,7 @@ const deserializeAws_json1_1EntityList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Entity(entry, context); }); + return retVal; }; const deserializeAws_json1_1ICD10CMAttribute = (output: any, context: __SerdeContext): ICD10CMAttribute => { @@ -2570,7 +2573,7 @@ const deserializeAws_json1_1ICD10CMAttribute = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ICD10CMAttributeList = (output: any, context: __SerdeContext): ICD10CMAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2578,6 +2581,7 @@ const deserializeAws_json1_1ICD10CMAttributeList = (output: any, context: __Serd } return deserializeAws_json1_1ICD10CMAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1ICD10CMConcept = (output: any, context: __SerdeContext): ICD10CMConcept => { @@ -2589,7 +2593,7 @@ const deserializeAws_json1_1ICD10CMConcept = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ICD10CMConceptList = (output: any, context: __SerdeContext): ICD10CMConcept[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2597,6 +2601,7 @@ const deserializeAws_json1_1ICD10CMConceptList = (output: any, context: __SerdeC } return deserializeAws_json1_1ICD10CMConcept(entry, context); }); + return retVal; }; const deserializeAws_json1_1ICD10CMEntity = (output: any, context: __SerdeContext): ICD10CMEntity => { @@ -2624,7 +2629,7 @@ const deserializeAws_json1_1ICD10CMEntity = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ICD10CMEntityList = (output: any, context: __SerdeContext): ICD10CMEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2632,6 +2637,7 @@ const deserializeAws_json1_1ICD10CMEntityList = (output: any, context: __SerdeCo } return deserializeAws_json1_1ICD10CMEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1ICD10CMTrait = (output: any, context: __SerdeContext): ICD10CMTrait => { @@ -2642,7 +2648,7 @@ const deserializeAws_json1_1ICD10CMTrait = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ICD10CMTraitList = (output: any, context: __SerdeContext): ICD10CMTrait[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2650,6 +2656,7 @@ const deserializeAws_json1_1ICD10CMTraitList = (output: any, context: __SerdeCon } return deserializeAws_json1_1ICD10CMTrait(entry, context); }); + return retVal; }; const deserializeAws_json1_1InferICD10CMResponse = (output: any, context: __SerdeContext): InferICD10CMResponse => { @@ -2845,7 +2852,7 @@ const deserializeAws_json1_1RxNormAttribute = (output: any, context: __SerdeCont }; const deserializeAws_json1_1RxNormAttributeList = (output: any, context: __SerdeContext): RxNormAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2853,6 +2860,7 @@ const deserializeAws_json1_1RxNormAttributeList = (output: any, context: __Serde } return deserializeAws_json1_1RxNormAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1RxNormConcept = (output: any, context: __SerdeContext): RxNormConcept => { @@ -2864,7 +2872,7 @@ const deserializeAws_json1_1RxNormConcept = (output: any, context: __SerdeContex }; const deserializeAws_json1_1RxNormConceptList = (output: any, context: __SerdeContext): RxNormConcept[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2872,6 +2880,7 @@ const deserializeAws_json1_1RxNormConceptList = (output: any, context: __SerdeCo } return deserializeAws_json1_1RxNormConcept(entry, context); }); + return retVal; }; const deserializeAws_json1_1RxNormEntity = (output: any, context: __SerdeContext): RxNormEntity => { @@ -2899,7 +2908,7 @@ const deserializeAws_json1_1RxNormEntity = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RxNormEntityList = (output: any, context: __SerdeContext): RxNormEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2907,6 +2916,7 @@ const deserializeAws_json1_1RxNormEntityList = (output: any, context: __SerdeCon } return deserializeAws_json1_1RxNormEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1RxNormTrait = (output: any, context: __SerdeContext): RxNormTrait => { @@ -2917,7 +2927,7 @@ const deserializeAws_json1_1RxNormTrait = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1RxNormTraitList = (output: any, context: __SerdeContext): RxNormTrait[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2925,6 +2935,7 @@ const deserializeAws_json1_1RxNormTraitList = (output: any, context: __SerdeCont } return deserializeAws_json1_1RxNormTrait(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceUnavailableException = ( @@ -2959,7 +2970,7 @@ const deserializeAws_json1_1SNOMEDCTAttribute = (output: any, context: __SerdeCo }; const deserializeAws_json1_1SNOMEDCTAttributeList = (output: any, context: __SerdeContext): SNOMEDCTAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2967,6 +2978,7 @@ const deserializeAws_json1_1SNOMEDCTAttributeList = (output: any, context: __Ser } return deserializeAws_json1_1SNOMEDCTAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1SNOMEDCTConcept = (output: any, context: __SerdeContext): SNOMEDCTConcept => { @@ -2978,7 +2990,7 @@ const deserializeAws_json1_1SNOMEDCTConcept = (output: any, context: __SerdeCont }; const deserializeAws_json1_1SNOMEDCTConceptList = (output: any, context: __SerdeContext): SNOMEDCTConcept[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2986,6 +2998,7 @@ const deserializeAws_json1_1SNOMEDCTConceptList = (output: any, context: __Serde } return deserializeAws_json1_1SNOMEDCTConcept(entry, context); }); + return retVal; }; const deserializeAws_json1_1SNOMEDCTDetails = (output: any, context: __SerdeContext): SNOMEDCTDetails => { @@ -3021,7 +3034,7 @@ const deserializeAws_json1_1SNOMEDCTEntity = (output: any, context: __SerdeConte }; const deserializeAws_json1_1SNOMEDCTEntityList = (output: any, context: __SerdeContext): SNOMEDCTEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3029,6 +3042,7 @@ const deserializeAws_json1_1SNOMEDCTEntityList = (output: any, context: __SerdeC } return deserializeAws_json1_1SNOMEDCTEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1SNOMEDCTTrait = (output: any, context: __SerdeContext): SNOMEDCTTrait => { @@ -3039,7 +3053,7 @@ const deserializeAws_json1_1SNOMEDCTTrait = (output: any, context: __SerdeContex }; const deserializeAws_json1_1SNOMEDCTTraitList = (output: any, context: __SerdeContext): SNOMEDCTTrait[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3047,6 +3061,7 @@ const deserializeAws_json1_1SNOMEDCTTraitList = (output: any, context: __SerdeCo } return deserializeAws_json1_1SNOMEDCTTrait(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartEntitiesDetectionV2JobResponse = ( @@ -3165,7 +3180,7 @@ const deserializeAws_json1_1Trait = (output: any, context: __SerdeContext): Trai }; const deserializeAws_json1_1TraitList = (output: any, context: __SerdeContext): Trait[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3173,6 +3188,7 @@ const deserializeAws_json1_1TraitList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Trait(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnmappedAttribute = (output: any, context: __SerdeContext): UnmappedAttribute => { @@ -3186,7 +3202,7 @@ const deserializeAws_json1_1UnmappedAttribute = (output: any, context: __SerdeCo }; const deserializeAws_json1_1UnmappedAttributeList = (output: any, context: __SerdeContext): UnmappedAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3194,6 +3210,7 @@ const deserializeAws_json1_1UnmappedAttributeList = (output: any, context: __Ser } return deserializeAws_json1_1UnmappedAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => { diff --git a/clients/client-compute-optimizer/src/protocols/Aws_json1_0.ts b/clients/client-compute-optimizer/src/protocols/Aws_json1_0.ts index 599063efc3c4..8f3e51fd27b7 100644 --- a/clients/client-compute-optimizer/src/protocols/Aws_json1_0.ts +++ b/clients/client-compute-optimizer/src/protocols/Aws_json1_0.ts @@ -2306,7 +2306,7 @@ const deserializeAws_json1_0AccountEnrollmentStatuses = ( output: any, context: __SerdeContext ): AccountEnrollmentStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2314,6 +2314,7 @@ const deserializeAws_json1_0AccountEnrollmentStatuses = ( } return deserializeAws_json1_0AccountEnrollmentStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_0AutoScalingGroupConfiguration = ( @@ -2393,7 +2394,7 @@ const deserializeAws_json1_0AutoScalingGroupRecommendationOptions = ( output: any, context: __SerdeContext ): AutoScalingGroupRecommendationOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2401,13 +2402,14 @@ const deserializeAws_json1_0AutoScalingGroupRecommendationOptions = ( } return deserializeAws_json1_0AutoScalingGroupRecommendationOption(entry, context); }); + return retVal; }; const deserializeAws_json1_0AutoScalingGroupRecommendations = ( output: any, context: __SerdeContext ): AutoScalingGroupRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2415,13 +2417,14 @@ const deserializeAws_json1_0AutoScalingGroupRecommendations = ( } return deserializeAws_json1_0AutoScalingGroupRecommendation(entry, context); }); + return retVal; }; const deserializeAws_json1_0CpuVendorArchitectures = ( output: any, context: __SerdeContext ): (CpuVendorArchitecture | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2429,6 +2432,7 @@ const deserializeAws_json1_0CpuVendorArchitectures = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0CurrentPerformanceRiskRatings = ( @@ -2472,7 +2476,7 @@ const deserializeAws_json1_0EBSUtilizationMetric = (output: any, context: __Serd }; const deserializeAws_json1_0EBSUtilizationMetrics = (output: any, context: __SerdeContext): EBSUtilizationMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2480,6 +2484,7 @@ const deserializeAws_json1_0EBSUtilizationMetrics = (output: any, context: __Ser } return deserializeAws_json1_0EBSUtilizationMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_0EffectiveRecommendationPreferences = ( @@ -2693,7 +2698,7 @@ const deserializeAws_json1_0GetRecommendationErrors = ( output: any, context: __SerdeContext ): GetRecommendationError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2701,6 +2706,7 @@ const deserializeAws_json1_0GetRecommendationErrors = ( } return deserializeAws_json1_0GetRecommendationError(entry, context); }); + return retVal; }; const deserializeAws_json1_0GetRecommendationPreferencesResponse = ( @@ -2733,7 +2739,7 @@ const deserializeAws_json1_0InferredWorkloadTypes = ( output: any, context: __SerdeContext ): (InferredWorkloadType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2741,6 +2747,7 @@ const deserializeAws_json1_0InferredWorkloadTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0InstanceRecommendation = (output: any, context: __SerdeContext): InstanceRecommendation => { @@ -2787,7 +2794,7 @@ const deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = ( output: any, context: __SerdeContext ): (InstanceRecommendationFindingReasonCode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2795,6 +2802,7 @@ const deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0InstanceRecommendationOption = ( @@ -2825,7 +2833,7 @@ const deserializeAws_json1_0InstanceRecommendations = ( output: any, context: __SerdeContext ): InstanceRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2833,6 +2841,7 @@ const deserializeAws_json1_0InstanceRecommendations = ( } return deserializeAws_json1_0InstanceRecommendation(entry, context); }); + return retVal; }; const deserializeAws_json1_0InternalServerException = ( @@ -2868,7 +2877,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = ( output: any, context: __SerdeContext ): LambdaFunctionMemoryProjectedMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2876,6 +2885,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = ( } return deserializeAws_json1_0LambdaFunctionMemoryProjectedMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = ( @@ -2900,7 +2910,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions = ( output: any, context: __SerdeContext ): LambdaFunctionMemoryRecommendationOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2908,6 +2918,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions = ( } return deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption(entry, context); }); + return retVal; }; const deserializeAws_json1_0LambdaFunctionRecommendation = ( @@ -2949,7 +2960,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes = ( output: any, context: __SerdeContext ): (LambdaFunctionRecommendationFindingReasonCode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2957,13 +2968,14 @@ const deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0LambdaFunctionRecommendations = ( output: any, context: __SerdeContext ): LambdaFunctionRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2971,6 +2983,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendations = ( } return deserializeAws_json1_0LambdaFunctionRecommendation(entry, context); }); + return retVal; }; const deserializeAws_json1_0LambdaFunctionUtilizationMetric = ( @@ -2988,7 +3001,7 @@ const deserializeAws_json1_0LambdaFunctionUtilizationMetrics = ( output: any, context: __SerdeContext ): LambdaFunctionUtilizationMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2996,6 +3009,7 @@ const deserializeAws_json1_0LambdaFunctionUtilizationMetrics = ( } return deserializeAws_json1_0LambdaFunctionUtilizationMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_0LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -3005,7 +3019,7 @@ const deserializeAws_json1_0LimitExceededException = (output: any, context: __Se }; const deserializeAws_json1_0MetricValues = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3013,6 +3027,7 @@ const deserializeAws_json1_0MetricValues = (output: any, context: __SerdeContext } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_json1_0MissingAuthenticationToken = ( @@ -3034,7 +3049,7 @@ const deserializeAws_json1_0PlatformDifferences = ( output: any, context: __SerdeContext ): (PlatformDifference | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3042,6 +3057,7 @@ const deserializeAws_json1_0PlatformDifferences = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0ProjectedMetric = (output: any, context: __SerdeContext): ProjectedMetric => { @@ -3059,7 +3075,7 @@ const deserializeAws_json1_0ProjectedMetric = (output: any, context: __SerdeCont }; const deserializeAws_json1_0ProjectedMetrics = (output: any, context: __SerdeContext): ProjectedMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3067,13 +3083,14 @@ const deserializeAws_json1_0ProjectedMetrics = (output: any, context: __SerdeCon } return deserializeAws_json1_0ProjectedMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_0ProjectedUtilizationMetrics = ( output: any, context: __SerdeContext ): UtilizationMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3081,6 +3098,7 @@ const deserializeAws_json1_0ProjectedUtilizationMetrics = ( } return deserializeAws_json1_0UtilizationMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_0PutRecommendationPreferencesResponse = ( @@ -3091,7 +3109,7 @@ const deserializeAws_json1_0PutRecommendationPreferencesResponse = ( }; const deserializeAws_json1_0ReasonCodeSummaries = (output: any, context: __SerdeContext): ReasonCodeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3099,6 +3117,7 @@ const deserializeAws_json1_0ReasonCodeSummaries = (output: any, context: __Serde } return deserializeAws_json1_0ReasonCodeSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0ReasonCodeSummary = (output: any, context: __SerdeContext): ReasonCodeSummary => { @@ -3136,7 +3155,7 @@ const deserializeAws_json1_0RecommendationExportJobs = ( output: any, context: __SerdeContext ): RecommendationExportJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3144,13 +3163,14 @@ const deserializeAws_json1_0RecommendationExportJobs = ( } return deserializeAws_json1_0RecommendationExportJob(entry, context); }); + return retVal; }; const deserializeAws_json1_0RecommendationOptions = ( output: any, context: __SerdeContext ): InstanceRecommendationOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3158,6 +3178,7 @@ const deserializeAws_json1_0RecommendationOptions = ( } return deserializeAws_json1_0InstanceRecommendationOption(entry, context); }); + return retVal; }; const deserializeAws_json1_0RecommendationPreferencesDetail = ( @@ -3179,7 +3200,7 @@ const deserializeAws_json1_0RecommendationPreferencesDetails = ( output: any, context: __SerdeContext ): RecommendationPreferencesDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3187,6 +3208,7 @@ const deserializeAws_json1_0RecommendationPreferencesDetails = ( } return deserializeAws_json1_0RecommendationPreferencesDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_0RecommendationSource = (output: any, context: __SerdeContext): RecommendationSource => { @@ -3197,7 +3219,7 @@ const deserializeAws_json1_0RecommendationSource = (output: any, context: __Serd }; const deserializeAws_json1_0RecommendationSources = (output: any, context: __SerdeContext): RecommendationSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3205,13 +3227,14 @@ const deserializeAws_json1_0RecommendationSources = (output: any, context: __Ser } return deserializeAws_json1_0RecommendationSource(entry, context); }); + return retVal; }; const deserializeAws_json1_0RecommendationSummaries = ( output: any, context: __SerdeContext ): RecommendationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3219,6 +3242,7 @@ const deserializeAws_json1_0RecommendationSummaries = ( } return deserializeAws_json1_0RecommendationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0RecommendationSummary = (output: any, context: __SerdeContext): RecommendationSummary => { @@ -3258,7 +3282,7 @@ const deserializeAws_json1_0RecommendedOptionProjectedMetrics = ( output: any, context: __SerdeContext ): RecommendedOptionProjectedMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3266,6 +3290,7 @@ const deserializeAws_json1_0RecommendedOptionProjectedMetrics = ( } return deserializeAws_json1_0RecommendedOptionProjectedMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_0ResourceNotFoundException = ( @@ -3312,7 +3337,7 @@ const deserializeAws_json1_0ServiceUnavailableException = ( }; const deserializeAws_json1_0Summaries = (output: any, context: __SerdeContext): Summary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3320,6 +3345,7 @@ const deserializeAws_json1_0Summaries = (output: any, context: __SerdeContext): } return deserializeAws_json1_0Summary(entry, context); }); + return retVal; }; const deserializeAws_json1_0Summary = (output: any, context: __SerdeContext): Summary => { @@ -3340,7 +3366,7 @@ const deserializeAws_json1_0ThrottlingException = (output: any, context: __Serde }; const deserializeAws_json1_0Timestamps = (output: any, context: __SerdeContext): Date[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3348,6 +3374,7 @@ const deserializeAws_json1_0Timestamps = (output: any, context: __SerdeContext): } return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry))); }); + return retVal; }; const deserializeAws_json1_0UpdateEnrollmentStatusResponse = ( @@ -3369,7 +3396,7 @@ const deserializeAws_json1_0UtilizationMetric = (output: any, context: __SerdeCo }; const deserializeAws_json1_0UtilizationMetrics = (output: any, context: __SerdeContext): UtilizationMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3377,6 +3404,7 @@ const deserializeAws_json1_0UtilizationMetrics = (output: any, context: __SerdeC } return deserializeAws_json1_0UtilizationMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_0VolumeConfiguration = (output: any, context: __SerdeContext): VolumeConfiguration => { @@ -3438,7 +3466,7 @@ const deserializeAws_json1_0VolumeRecommendationOptions = ( output: any, context: __SerdeContext ): VolumeRecommendationOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3446,10 +3474,11 @@ const deserializeAws_json1_0VolumeRecommendationOptions = ( } return deserializeAws_json1_0VolumeRecommendationOption(entry, context); }); + return retVal; }; const deserializeAws_json1_0VolumeRecommendations = (output: any, context: __SerdeContext): VolumeRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3457,6 +3486,7 @@ const deserializeAws_json1_0VolumeRecommendations = (output: any, context: __Ser } return deserializeAws_json1_0VolumeRecommendation(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-config-service/src/protocols/Aws_json1_1.ts b/clients/client-config-service/src/protocols/Aws_json1_1.ts index f009f77233d3..e5c02e4d3e88 100644 --- a/clients/client-config-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-config-service/src/protocols/Aws_json1_1.ts @@ -8684,7 +8684,7 @@ const deserializeAws_json1_1AccountAggregationSource = ( }; const deserializeAws_json1_1AccountAggregationSourceAccountList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8692,13 +8692,14 @@ const deserializeAws_json1_1AccountAggregationSourceAccountList = (output: any, } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AccountAggregationSourceList = ( output: any, context: __SerdeContext ): AccountAggregationSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8706,6 +8707,7 @@ const deserializeAws_json1_1AccountAggregationSourceList = ( } return deserializeAws_json1_1AccountAggregationSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1AggregateComplianceByConfigRule = ( @@ -8727,7 +8729,7 @@ const deserializeAws_json1_1AggregateComplianceByConfigRuleList = ( output: any, context: __SerdeContext ): AggregateComplianceByConfigRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8735,6 +8737,7 @@ const deserializeAws_json1_1AggregateComplianceByConfigRuleList = ( } return deserializeAws_json1_1AggregateComplianceByConfigRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1AggregateComplianceByConformancePack = ( @@ -8756,7 +8759,7 @@ const deserializeAws_json1_1AggregateComplianceByConformancePackList = ( output: any, context: __SerdeContext ): AggregateComplianceByConformancePack[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8764,6 +8767,7 @@ const deserializeAws_json1_1AggregateComplianceByConformancePackList = ( } return deserializeAws_json1_1AggregateComplianceByConformancePack(entry, context); }); + return retVal; }; const deserializeAws_json1_1AggregateComplianceCount = ( @@ -8783,7 +8787,7 @@ const deserializeAws_json1_1AggregateComplianceCountList = ( output: any, context: __SerdeContext ): AggregateComplianceCount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8791,6 +8795,7 @@ const deserializeAws_json1_1AggregateComplianceCountList = ( } return deserializeAws_json1_1AggregateComplianceCount(entry, context); }); + return retVal; }; const deserializeAws_json1_1AggregateConformancePackCompliance = ( @@ -8832,7 +8837,7 @@ const deserializeAws_json1_1AggregateConformancePackComplianceSummaryList = ( output: any, context: __SerdeContext ): AggregateConformancePackComplianceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8840,6 +8845,7 @@ const deserializeAws_json1_1AggregateConformancePackComplianceSummaryList = ( } return deserializeAws_json1_1AggregateConformancePackComplianceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1AggregatedSourceStatus = (output: any, context: __SerdeContext): AggregatedSourceStatus => { @@ -8861,7 +8867,7 @@ const deserializeAws_json1_1AggregatedSourceStatusList = ( output: any, context: __SerdeContext ): AggregatedSourceStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8869,6 +8875,7 @@ const deserializeAws_json1_1AggregatedSourceStatusList = ( } return deserializeAws_json1_1AggregatedSourceStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1AggregateEvaluationResult = ( @@ -8899,7 +8906,7 @@ const deserializeAws_json1_1AggregateEvaluationResultList = ( output: any, context: __SerdeContext ): AggregateEvaluationResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8907,6 +8914,7 @@ const deserializeAws_json1_1AggregateEvaluationResultList = ( } return deserializeAws_json1_1AggregateEvaluationResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1AggregateResourceIdentifier = ( @@ -8941,7 +8949,7 @@ const deserializeAws_json1_1AggregationAuthorizationList = ( output: any, context: __SerdeContext ): AggregationAuthorization[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8949,10 +8957,11 @@ const deserializeAws_json1_1AggregationAuthorizationList = ( } return deserializeAws_json1_1AggregationAuthorization(entry, context); }); + return retVal; }; const deserializeAws_json1_1AggregatorRegionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8960,6 +8969,7 @@ const deserializeAws_json1_1AggregatorRegionList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BaseConfigurationItem = (output: any, context: __SerdeContext): BaseConfigurationItem => { @@ -8994,7 +9004,7 @@ const deserializeAws_json1_1BaseConfigurationItems = ( output: any, context: __SerdeContext ): BaseConfigurationItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9002,6 +9012,7 @@ const deserializeAws_json1_1BaseConfigurationItems = ( } return deserializeAws_json1_1BaseConfigurationItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchGetAggregateResourceConfigResponse = ( @@ -9060,7 +9071,7 @@ const deserializeAws_json1_1ComplianceByConfigRules = ( output: any, context: __SerdeContext ): ComplianceByConfigRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9068,6 +9079,7 @@ const deserializeAws_json1_1ComplianceByConfigRules = ( } return deserializeAws_json1_1ComplianceByConfigRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComplianceByResource = (output: any, context: __SerdeContext): ComplianceByResource => { @@ -9082,7 +9094,7 @@ const deserializeAws_json1_1ComplianceByResource = (output: any, context: __Serd }; const deserializeAws_json1_1ComplianceByResources = (output: any, context: __SerdeContext): ComplianceByResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9090,6 +9102,7 @@ const deserializeAws_json1_1ComplianceByResources = (output: any, context: __Ser } return deserializeAws_json1_1ComplianceByResource(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComplianceContributorCount = ( @@ -9103,7 +9116,7 @@ const deserializeAws_json1_1ComplianceContributorCount = ( }; const deserializeAws_json1_1ComplianceResourceTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9111,13 +9124,14 @@ const deserializeAws_json1_1ComplianceResourceTypes = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ComplianceSummariesByResourceType = ( output: any, context: __SerdeContext ): ComplianceSummaryByResourceType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9125,6 +9139,7 @@ const deserializeAws_json1_1ComplianceSummariesByResourceType = ( } return deserializeAws_json1_1ComplianceSummaryByResourceType(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComplianceSummary = (output: any, context: __SerdeContext): ComplianceSummary => { @@ -9243,7 +9258,7 @@ const deserializeAws_json1_1ConfigRuleEvaluationStatusList = ( output: any, context: __SerdeContext ): ConfigRuleEvaluationStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9251,10 +9266,11 @@ const deserializeAws_json1_1ConfigRuleEvaluationStatusList = ( } return deserializeAws_json1_1ConfigRuleEvaluationStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfigRules = (output: any, context: __SerdeContext): ConfigRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9262,6 +9278,7 @@ const deserializeAws_json1_1ConfigRules = (output: any, context: __SerdeContext) } return deserializeAws_json1_1ConfigRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfigSnapshotDeliveryProperties = ( @@ -9319,7 +9336,7 @@ const deserializeAws_json1_1ConfigurationAggregatorList = ( output: any, context: __SerdeContext ): ConfigurationAggregator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9327,6 +9344,7 @@ const deserializeAws_json1_1ConfigurationAggregatorList = ( } return deserializeAws_json1_1ConfigurationAggregator(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfigurationItem = (output: any, context: __SerdeContext): ConfigurationItem => { @@ -9369,7 +9387,7 @@ const deserializeAws_json1_1ConfigurationItem = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ConfigurationItemList = (output: any, context: __SerdeContext): ConfigurationItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9377,6 +9395,7 @@ const deserializeAws_json1_1ConfigurationItemList = (output: any, context: __Ser } return deserializeAws_json1_1ConfigurationItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfigurationRecorder = (output: any, context: __SerdeContext): ConfigurationRecorder => { @@ -9394,7 +9413,7 @@ const deserializeAws_json1_1ConfigurationRecorderList = ( output: any, context: __SerdeContext ): ConfigurationRecorder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9402,6 +9421,7 @@ const deserializeAws_json1_1ConfigurationRecorderList = ( } return deserializeAws_json1_1ConfigurationRecorder(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfigurationRecorderStatus = ( @@ -9433,7 +9453,7 @@ const deserializeAws_json1_1ConfigurationRecorderStatusList = ( output: any, context: __SerdeContext ): ConfigurationRecorderStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9441,6 +9461,7 @@ const deserializeAws_json1_1ConfigurationRecorderStatusList = ( } return deserializeAws_json1_1ConfigurationRecorderStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConformancePackComplianceSummary = ( @@ -9457,7 +9478,7 @@ const deserializeAws_json1_1ConformancePackComplianceSummaryList = ( output: any, context: __SerdeContext ): ConformancePackComplianceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9465,6 +9486,7 @@ const deserializeAws_json1_1ConformancePackComplianceSummaryList = ( } return deserializeAws_json1_1ConformancePackComplianceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConformancePackDetail = (output: any, context: __SerdeContext): ConformancePackDetail => { @@ -9490,7 +9512,7 @@ const deserializeAws_json1_1ConformancePackDetailList = ( output: any, context: __SerdeContext ): ConformancePackDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9498,6 +9520,7 @@ const deserializeAws_json1_1ConformancePackDetailList = ( } return deserializeAws_json1_1ConformancePackDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConformancePackEvaluationResult = ( @@ -9536,7 +9559,7 @@ const deserializeAws_json1_1ConformancePackInputParameters = ( output: any, context: __SerdeContext ): ConformancePackInputParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9544,6 +9567,7 @@ const deserializeAws_json1_1ConformancePackInputParameters = ( } return deserializeAws_json1_1ConformancePackInputParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConformancePackRuleCompliance = ( @@ -9564,7 +9588,7 @@ const deserializeAws_json1_1ConformancePackRuleComplianceList = ( output: any, context: __SerdeContext ): ConformancePackRuleCompliance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9572,13 +9596,14 @@ const deserializeAws_json1_1ConformancePackRuleComplianceList = ( } return deserializeAws_json1_1ConformancePackRuleCompliance(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConformancePackRuleEvaluationResultsList = ( output: any, context: __SerdeContext ): ConformancePackEvaluationResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9586,6 +9611,7 @@ const deserializeAws_json1_1ConformancePackRuleEvaluationResultsList = ( } return deserializeAws_json1_1ConformancePackEvaluationResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConformancePackStatusDetail = ( @@ -9614,7 +9640,7 @@ const deserializeAws_json1_1ConformancePackStatusDetailsList = ( output: any, context: __SerdeContext ): ConformancePackStatusDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9622,6 +9648,7 @@ const deserializeAws_json1_1ConformancePackStatusDetailsList = ( } return deserializeAws_json1_1ConformancePackStatusDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConformancePackTemplateValidationException = ( @@ -9634,7 +9661,7 @@ const deserializeAws_json1_1ConformancePackTemplateValidationException = ( }; const deserializeAws_json1_1ControlsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9642,6 +9669,7 @@ const deserializeAws_json1_1ControlsList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeleteEvaluationResultsResponse = ( @@ -9701,7 +9729,7 @@ const deserializeAws_json1_1DeliveryChannel = (output: any, context: __SerdeCont }; const deserializeAws_json1_1DeliveryChannelList = (output: any, context: __SerdeContext): DeliveryChannel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9709,6 +9737,7 @@ const deserializeAws_json1_1DeliveryChannelList = (output: any, context: __Serde } return deserializeAws_json1_1DeliveryChannel(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeliveryChannelStatus = (output: any, context: __SerdeContext): DeliveryChannelStatus => { @@ -9733,7 +9762,7 @@ const deserializeAws_json1_1DeliveryChannelStatusList = ( output: any, context: __SerdeContext ): DeliveryChannelStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9741,6 +9770,7 @@ const deserializeAws_json1_1DeliveryChannelStatusList = ( } return deserializeAws_json1_1DeliveryChannelStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeAggregateComplianceByConfigRulesResponse = ( @@ -10072,7 +10102,7 @@ const deserializeAws_json1_1DiscoveredResourceIdentifierList = ( output: any, context: __SerdeContext ): AggregateResourceIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10080,6 +10110,7 @@ const deserializeAws_json1_1DiscoveredResourceIdentifierList = ( } return deserializeAws_json1_1AggregateResourceIdentifier(entry, context); }); + return retVal; }; const deserializeAws_json1_1Evaluation = (output: any, context: __SerdeContext): Evaluation => { @@ -10143,7 +10174,7 @@ const deserializeAws_json1_1EvaluationResultQualifier = ( }; const deserializeAws_json1_1EvaluationResults = (output: any, context: __SerdeContext): EvaluationResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10151,10 +10182,11 @@ const deserializeAws_json1_1EvaluationResults = (output: any, context: __SerdeCo } return deserializeAws_json1_1EvaluationResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1Evaluations = (output: any, context: __SerdeContext): Evaluation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10162,10 +10194,11 @@ const deserializeAws_json1_1Evaluations = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Evaluation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExcludedAccounts = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10173,6 +10206,7 @@ const deserializeAws_json1_1ExcludedAccounts = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ExecutionControls = (output: any, context: __SerdeContext): ExecutionControls => { @@ -10201,7 +10235,7 @@ const deserializeAws_json1_1FailedDeleteRemediationExceptionsBatches = ( output: any, context: __SerdeContext ): FailedDeleteRemediationExceptionsBatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10209,6 +10243,7 @@ const deserializeAws_json1_1FailedDeleteRemediationExceptionsBatches = ( } return deserializeAws_json1_1FailedDeleteRemediationExceptionsBatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedRemediationBatch = (output: any, context: __SerdeContext): FailedRemediationBatch => { @@ -10225,7 +10260,7 @@ const deserializeAws_json1_1FailedRemediationBatches = ( output: any, context: __SerdeContext ): FailedRemediationBatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10233,6 +10268,7 @@ const deserializeAws_json1_1FailedRemediationBatches = ( } return deserializeAws_json1_1FailedRemediationBatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedRemediationExceptionBatch = ( @@ -10252,7 +10288,7 @@ const deserializeAws_json1_1FailedRemediationExceptionBatches = ( output: any, context: __SerdeContext ): FailedRemediationExceptionBatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10260,6 +10296,7 @@ const deserializeAws_json1_1FailedRemediationExceptionBatches = ( } return deserializeAws_json1_1FailedRemediationExceptionBatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1FieldInfo = (output: any, context: __SerdeContext): FieldInfo => { @@ -10269,7 +10306,7 @@ const deserializeAws_json1_1FieldInfo = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1FieldInfoList = (output: any, context: __SerdeContext): FieldInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10277,6 +10314,7 @@ const deserializeAws_json1_1FieldInfoList = (output: any, context: __SerdeContex } return deserializeAws_json1_1FieldInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetAggregateComplianceDetailsByConfigRuleResponse = ( @@ -10514,7 +10552,7 @@ const deserializeAws_json1_1GroupedResourceCountList = ( output: any, context: __SerdeContext ): GroupedResourceCount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10522,6 +10560,7 @@ const deserializeAws_json1_1GroupedResourceCountList = ( } return deserializeAws_json1_1GroupedResourceCount(entry, context); }); + return retVal; }; const deserializeAws_json1_1InsufficientDeliveryPolicyException = ( @@ -11006,7 +11045,7 @@ const deserializeAws_json1_1OrganizationConfigRuleDetailedStatus = ( output: any, context: __SerdeContext ): MemberAccountStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11014,13 +11053,14 @@ const deserializeAws_json1_1OrganizationConfigRuleDetailedStatus = ( } return deserializeAws_json1_1MemberAccountStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1OrganizationConfigRules = ( output: any, context: __SerdeContext ): OrganizationConfigRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11028,6 +11068,7 @@ const deserializeAws_json1_1OrganizationConfigRules = ( } return deserializeAws_json1_1OrganizationConfigRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1OrganizationConfigRuleStatus = ( @@ -11050,7 +11091,7 @@ const deserializeAws_json1_1OrganizationConfigRuleStatuses = ( output: any, context: __SerdeContext ): OrganizationConfigRuleStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11058,13 +11099,14 @@ const deserializeAws_json1_1OrganizationConfigRuleStatuses = ( } return deserializeAws_json1_1OrganizationConfigRuleStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1OrganizationConfigRuleTriggerTypes = ( output: any, context: __SerdeContext ): (OrganizationConfigRuleTriggerType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11072,6 +11114,7 @@ const deserializeAws_json1_1OrganizationConfigRuleTriggerTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OrganizationConformancePack = ( @@ -11119,7 +11162,7 @@ const deserializeAws_json1_1OrganizationConformancePackDetailedStatuses = ( output: any, context: __SerdeContext ): OrganizationConformancePackDetailedStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11127,13 +11170,14 @@ const deserializeAws_json1_1OrganizationConformancePackDetailedStatuses = ( } return deserializeAws_json1_1OrganizationConformancePackDetailedStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1OrganizationConformancePacks = ( output: any, context: __SerdeContext ): OrganizationConformancePack[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11141,6 +11185,7 @@ const deserializeAws_json1_1OrganizationConformancePacks = ( } return deserializeAws_json1_1OrganizationConformancePack(entry, context); }); + return retVal; }; const deserializeAws_json1_1OrganizationConformancePackStatus = ( @@ -11163,7 +11208,7 @@ const deserializeAws_json1_1OrganizationConformancePackStatuses = ( output: any, context: __SerdeContext ): OrganizationConformancePackStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11171,6 +11216,7 @@ const deserializeAws_json1_1OrganizationConformancePackStatuses = ( } return deserializeAws_json1_1OrganizationConformancePackStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1OrganizationConformancePackTemplateValidationException = ( @@ -11247,7 +11293,7 @@ const deserializeAws_json1_1PendingAggregationRequestList = ( output: any, context: __SerdeContext ): PendingAggregationRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11255,6 +11301,7 @@ const deserializeAws_json1_1PendingAggregationRequestList = ( } return deserializeAws_json1_1PendingAggregationRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutAggregationAuthorizationResponse = ( @@ -11387,7 +11434,7 @@ const deserializeAws_json1_1RecordingGroup = (output: any, context: __SerdeConte }; const deserializeAws_json1_1RelatedEventList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11395,6 +11442,7 @@ const deserializeAws_json1_1RelatedEventList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Relationship = (output: any, context: __SerdeContext): Relationship => { @@ -11407,7 +11455,7 @@ const deserializeAws_json1_1Relationship = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RelationshipList = (output: any, context: __SerdeContext): Relationship[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11415,6 +11463,7 @@ const deserializeAws_json1_1RelationshipList = (output: any, context: __SerdeCon } return deserializeAws_json1_1Relationship(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemediationConfiguration = ( @@ -11447,7 +11496,7 @@ const deserializeAws_json1_1RemediationConfigurations = ( output: any, context: __SerdeContext ): RemediationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11455,6 +11504,7 @@ const deserializeAws_json1_1RemediationConfigurations = ( } return deserializeAws_json1_1RemediationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemediationException = (output: any, context: __SerdeContext): RemediationException => { @@ -11484,7 +11534,7 @@ const deserializeAws_json1_1RemediationExceptionResourceKeys = ( output: any, context: __SerdeContext ): RemediationExceptionResourceKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11492,10 +11542,11 @@ const deserializeAws_json1_1RemediationExceptionResourceKeys = ( } return deserializeAws_json1_1RemediationExceptionResourceKey(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemediationExceptions = (output: any, context: __SerdeContext): RemediationException[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11503,6 +11554,7 @@ const deserializeAws_json1_1RemediationExceptions = (output: any, context: __Ser } return deserializeAws_json1_1RemediationException(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemediationExecutionStatus = ( @@ -11534,7 +11586,7 @@ const deserializeAws_json1_1RemediationExecutionStatuses = ( output: any, context: __SerdeContext ): RemediationExecutionStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11542,6 +11594,7 @@ const deserializeAws_json1_1RemediationExecutionStatuses = ( } return deserializeAws_json1_1RemediationExecutionStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemediationExecutionStep = ( @@ -11567,7 +11620,7 @@ const deserializeAws_json1_1RemediationExecutionSteps = ( output: any, context: __SerdeContext ): RemediationExecutionStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11575,6 +11628,7 @@ const deserializeAws_json1_1RemediationExecutionSteps = ( } return deserializeAws_json1_1RemediationExecutionStep(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemediationInProgressException = ( @@ -11637,7 +11691,7 @@ const deserializeAws_json1_1ResourceCount = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ResourceCounts = (output: any, context: __SerdeContext): ResourceCount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11645,6 +11699,7 @@ const deserializeAws_json1_1ResourceCounts = (output: any, context: __SerdeConte } return deserializeAws_json1_1ResourceCount(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceIdentifier = (output: any, context: __SerdeContext): ResourceIdentifier => { @@ -11660,7 +11715,7 @@ const deserializeAws_json1_1ResourceIdentifier = (output: any, context: __SerdeC }; const deserializeAws_json1_1ResourceIdentifierList = (output: any, context: __SerdeContext): ResourceIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11668,6 +11723,7 @@ const deserializeAws_json1_1ResourceIdentifierList = (output: any, context: __Se } return deserializeAws_json1_1ResourceIdentifier(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => { @@ -11684,7 +11740,7 @@ const deserializeAws_json1_1ResourceKey = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ResourceKeys = (output: any, context: __SerdeContext): ResourceKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11692,6 +11748,7 @@ const deserializeAws_json1_1ResourceKeys = (output: any, context: __SerdeContext } return deserializeAws_json1_1ResourceKey(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceNotDiscoveredException = ( @@ -11713,7 +11770,7 @@ const deserializeAws_json1_1ResourceNotFoundException = ( }; const deserializeAws_json1_1ResourceTypeList = (output: any, context: __SerdeContext): (ResourceType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11721,10 +11778,11 @@ const deserializeAws_json1_1ResourceTypeList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceTypesScope = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11732,6 +11790,7 @@ const deserializeAws_json1_1ResourceTypesScope = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceValue = (output: any, context: __SerdeContext): ResourceValue => { @@ -11741,7 +11800,7 @@ const deserializeAws_json1_1ResourceValue = (output: any, context: __SerdeContex }; const deserializeAws_json1_1Results = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11749,6 +11808,7 @@ const deserializeAws_json1_1Results = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RetentionConfiguration = (output: any, context: __SerdeContext): RetentionConfiguration => { @@ -11762,7 +11822,7 @@ const deserializeAws_json1_1RetentionConfigurationList = ( output: any, context: __SerdeContext ): RetentionConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11770,6 +11830,7 @@ const deserializeAws_json1_1RetentionConfigurationList = ( } return deserializeAws_json1_1RetentionConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1Scope = (output: any, context: __SerdeContext): Scope => { @@ -11838,7 +11899,7 @@ const deserializeAws_json1_1SourceDetail = (output: any, context: __SerdeContext }; const deserializeAws_json1_1SourceDetails = (output: any, context: __SerdeContext): SourceDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11846,6 +11907,7 @@ const deserializeAws_json1_1SourceDetails = (output: any, context: __SerdeContex } return deserializeAws_json1_1SourceDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1SsmControls = (output: any, context: __SerdeContext): SsmControls => { @@ -11876,7 +11938,7 @@ const deserializeAws_json1_1StartRemediationExecutionResponse = ( }; const deserializeAws_json1_1StaticParameterValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11884,6 +11946,7 @@ const deserializeAws_json1_1StaticParameterValues = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1StaticValue = (output: any, context: __SerdeContext): StaticValue => { @@ -11915,7 +11978,7 @@ const deserializeAws_json1_1StoredQueryMetadata = (output: any, context: __Serde }; const deserializeAws_json1_1StoredQueryMetadataList = (output: any, context: __SerdeContext): StoredQueryMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11923,6 +11986,7 @@ const deserializeAws_json1_1StoredQueryMetadataList = (output: any, context: __S } return deserializeAws_json1_1StoredQueryMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1SupplementaryConfiguration = ( @@ -11948,7 +12012,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11956,6 +12020,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -11980,7 +12045,7 @@ const deserializeAws_json1_1UnprocessedResourceIdentifierList = ( output: any, context: __SerdeContext ): AggregateResourceIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11988,6 +12053,7 @@ const deserializeAws_json1_1UnprocessedResourceIdentifierList = ( } return deserializeAws_json1_1AggregateResourceIdentifier(entry, context); }); + return retVal; }; const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => { diff --git a/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts b/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts index b17c676b4dba..876ce6080eea 100644 --- a/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts +++ b/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts @@ -240,7 +240,7 @@ const deserializeAws_restJson1IssueDetected = (output: any, context: __SerdeCont }; const deserializeAws_restJson1IssuesDetected = (output: any, context: __SerdeContext): IssueDetected[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -248,10 +248,11 @@ const deserializeAws_restJson1IssuesDetected = (output: any, context: __SerdeCon } return deserializeAws_restJson1IssueDetected(entry, context); }); + return retVal; }; const deserializeAws_restJson1MatchedCategories = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -259,6 +260,7 @@ const deserializeAws_restJson1MatchedCategories = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MatchedDetails = ( @@ -284,7 +286,7 @@ const deserializeAws_restJson1PointOfInterest = (output: any, context: __SerdeCo }; const deserializeAws_restJson1PointsOfInterest = (output: any, context: __SerdeContext): PointOfInterest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -292,6 +294,7 @@ const deserializeAws_restJson1PointsOfInterest = (output: any, context: __SerdeC } return deserializeAws_restJson1PointOfInterest(entry, context); }); + return retVal; }; const deserializeAws_restJson1RealtimeContactAnalysisSegment = ( @@ -314,7 +317,7 @@ const deserializeAws_restJson1RealtimeContactAnalysisSegments = ( output: any, context: __SerdeContext ): RealtimeContactAnalysisSegment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -322,6 +325,7 @@ const deserializeAws_restJson1RealtimeContactAnalysisSegments = ( } return deserializeAws_restJson1RealtimeContactAnalysisSegment(entry, context); }); + return retVal; }; const deserializeAws_restJson1Transcript = (output: any, context: __SerdeContext): Transcript => { diff --git a/clients/client-connect/src/protocols/Aws_restJson1.ts b/clients/client-connect/src/protocols/Aws_restJson1.ts index 4a6fbc817461..9b895595ffaf 100644 --- a/clients/client-connect/src/protocols/Aws_restJson1.ts +++ b/clients/client-connect/src/protocols/Aws_restJson1.ts @@ -14205,7 +14205,7 @@ const deserializeAws_restJson1AgentStatusSummary = (output: any, context: __Serd }; const deserializeAws_restJson1AgentStatusSummaryList = (output: any, context: __SerdeContext): AgentStatusSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14213,6 +14213,7 @@ const deserializeAws_restJson1AgentStatusSummaryList = (output: any, context: __ } return deserializeAws_restJson1AgentStatusSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AttachmentReference = (output: any, context: __SerdeContext): AttachmentReference => { @@ -14243,7 +14244,7 @@ const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AttributesList = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14251,6 +14252,7 @@ const deserializeAws_restJson1AttributesList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Attribute(entry, context); }); + return retVal; }; const deserializeAws_restJson1Contact = (output: any, context: __SerdeContext): Contact => { @@ -14326,7 +14328,7 @@ const deserializeAws_restJson1ContactFlowModulesSummaryList = ( output: any, context: __SerdeContext ): ContactFlowModuleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14334,6 +14336,7 @@ const deserializeAws_restJson1ContactFlowModulesSummaryList = ( } return deserializeAws_restJson1ContactFlowModuleSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ContactFlowModuleSummary = ( @@ -14359,7 +14362,7 @@ const deserializeAws_restJson1ContactFlowSummary = (output: any, context: __Serd }; const deserializeAws_restJson1ContactFlowSummaryList = (output: any, context: __SerdeContext): ContactFlowSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14367,6 +14370,7 @@ const deserializeAws_restJson1ContactFlowSummaryList = (output: any, context: __ } return deserializeAws_restJson1ContactFlowSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Credentials = (output: any, context: __SerdeContext): Credentials => { @@ -14405,7 +14409,7 @@ const deserializeAws_restJson1CurrentMetricDataCollections = ( output: any, context: __SerdeContext ): CurrentMetricData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14413,6 +14417,7 @@ const deserializeAws_restJson1CurrentMetricDataCollections = ( } return deserializeAws_restJson1CurrentMetricData(entry, context); }); + return retVal; }; const deserializeAws_restJson1CurrentMetricResult = (output: any, context: __SerdeContext): CurrentMetricResult => { @@ -14429,7 +14434,7 @@ const deserializeAws_restJson1CurrentMetricResult = (output: any, context: __Ser }; const deserializeAws_restJson1CurrentMetricResults = (output: any, context: __SerdeContext): CurrentMetricResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14437,6 +14442,7 @@ const deserializeAws_restJson1CurrentMetricResults = (output: any, context: __Se } return deserializeAws_restJson1CurrentMetricResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1DefaultVocabulary = (output: any, context: __SerdeContext): DefaultVocabulary => { @@ -14449,7 +14455,7 @@ const deserializeAws_restJson1DefaultVocabulary = (output: any, context: __Serde }; const deserializeAws_restJson1DefaultVocabularyList = (output: any, context: __SerdeContext): DefaultVocabulary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14457,6 +14463,7 @@ const deserializeAws_restJson1DefaultVocabularyList = (output: any, context: __S } return deserializeAws_restJson1DefaultVocabulary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Dimensions = (output: any, context: __SerdeContext): Dimensions => { @@ -14477,7 +14484,7 @@ const deserializeAws_restJson1EncryptionConfig = (output: any, context: __SerdeC }; const deserializeAws_restJson1FunctionArnsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14485,6 +14492,7 @@ const deserializeAws_restJson1FunctionArnsList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1HierarchyGroup = (output: any, context: __SerdeContext): HierarchyGroup => { @@ -14516,7 +14524,7 @@ const deserializeAws_restJson1HierarchyGroupSummaryList = ( output: any, context: __SerdeContext ): HierarchyGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14524,6 +14532,7 @@ const deserializeAws_restJson1HierarchyGroupSummaryList = ( } return deserializeAws_restJson1HierarchyGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1HierarchyLevel = (output: any, context: __SerdeContext): HierarchyLevel => { @@ -14610,7 +14619,7 @@ const deserializeAws_restJson1HistoricalMetricDataCollections = ( output: any, context: __SerdeContext ): HistoricalMetricData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14618,6 +14627,7 @@ const deserializeAws_restJson1HistoricalMetricDataCollections = ( } return deserializeAws_restJson1HistoricalMetricData(entry, context); }); + return retVal; }; const deserializeAws_restJson1HistoricalMetricResult = ( @@ -14640,7 +14650,7 @@ const deserializeAws_restJson1HistoricalMetricResults = ( output: any, context: __SerdeContext ): HistoricalMetricResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14648,6 +14658,7 @@ const deserializeAws_restJson1HistoricalMetricResults = ( } return deserializeAws_restJson1HistoricalMetricResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1HoursOfOperation = (output: any, context: __SerdeContext): HoursOfOperation => { @@ -14689,7 +14700,7 @@ const deserializeAws_restJson1HoursOfOperationConfigList = ( output: any, context: __SerdeContext ): HoursOfOperationConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14697,6 +14708,7 @@ const deserializeAws_restJson1HoursOfOperationConfigList = ( } return deserializeAws_restJson1HoursOfOperationConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1HoursOfOperationSummary = ( @@ -14714,7 +14726,7 @@ const deserializeAws_restJson1HoursOfOperationSummaryList = ( output: any, context: __SerdeContext ): HoursOfOperationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14722,6 +14734,7 @@ const deserializeAws_restJson1HoursOfOperationSummaryList = ( } return deserializeAws_restJson1HoursOfOperationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1HoursOfOperationTimeSlice = ( @@ -14788,7 +14801,7 @@ const deserializeAws_restJson1InstanceStorageConfigs = ( output: any, context: __SerdeContext ): InstanceStorageConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14796,6 +14809,7 @@ const deserializeAws_restJson1InstanceStorageConfigs = ( } return deserializeAws_restJson1InstanceStorageConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1InstanceSummary = (output: any, context: __SerdeContext): InstanceSummary => { @@ -14816,7 +14830,7 @@ const deserializeAws_restJson1InstanceSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1InstanceSummaryList = (output: any, context: __SerdeContext): InstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14824,6 +14838,7 @@ const deserializeAws_restJson1InstanceSummaryList = (output: any, context: __Ser } return deserializeAws_restJson1InstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1IntegrationAssociationSummary = ( @@ -14846,7 +14861,7 @@ const deserializeAws_restJson1IntegrationAssociationSummaryList = ( output: any, context: __SerdeContext ): IntegrationAssociationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14854,6 +14869,7 @@ const deserializeAws_restJson1IntegrationAssociationSummaryList = ( } return deserializeAws_restJson1IntegrationAssociationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1KinesisFirehoseConfig = (output: any, context: __SerdeContext): KinesisFirehoseConfig => { @@ -14903,7 +14919,7 @@ const deserializeAws_restJson1LexBotConfig = (output: any, context: __SerdeConte }; const deserializeAws_restJson1LexBotConfigList = (output: any, context: __SerdeContext): LexBotConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14911,10 +14927,11 @@ const deserializeAws_restJson1LexBotConfigList = (output: any, context: __SerdeC } return deserializeAws_restJson1LexBotConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1LexBotsList = (output: any, context: __SerdeContext): LexBot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14922,6 +14939,7 @@ const deserializeAws_restJson1LexBotsList = (output: any, context: __SerdeContex } return deserializeAws_restJson1LexBot(entry, context); }); + return retVal; }; const deserializeAws_restJson1LexV2Bot = (output: any, context: __SerdeContext): LexV2Bot => { @@ -14931,7 +14949,7 @@ const deserializeAws_restJson1LexV2Bot = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1MediaConcurrencies = (output: any, context: __SerdeContext): MediaConcurrency[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14939,6 +14957,7 @@ const deserializeAws_restJson1MediaConcurrencies = (output: any, context: __Serd } return deserializeAws_restJson1MediaConcurrency(entry, context); }); + return retVal; }; const deserializeAws_restJson1MediaConcurrency = (output: any, context: __SerdeContext): MediaConcurrency => { @@ -14949,7 +14968,7 @@ const deserializeAws_restJson1MediaConcurrency = (output: any, context: __SerdeC }; const deserializeAws_restJson1OriginsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14957,6 +14976,7 @@ const deserializeAws_restJson1OriginsList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OutboundCallerConfig = (output: any, context: __SerdeContext): OutboundCallerConfig => { @@ -14968,7 +14988,7 @@ const deserializeAws_restJson1OutboundCallerConfig = (output: any, context: __Se }; const deserializeAws_restJson1PermissionsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14976,6 +14996,7 @@ const deserializeAws_restJson1PermissionsList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PhoneNumberQuickConnectConfig = ( @@ -14998,7 +15019,7 @@ const deserializeAws_restJson1PhoneNumberSummary = (output: any, context: __Serd }; const deserializeAws_restJson1PhoneNumberSummaryList = (output: any, context: __SerdeContext): PhoneNumberSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15006,6 +15027,7 @@ const deserializeAws_restJson1PhoneNumberSummaryList = (output: any, context: __ } return deserializeAws_restJson1PhoneNumberSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProblemDetail = (output: any, context: __SerdeContext): ProblemDetail => { @@ -15015,7 +15037,7 @@ const deserializeAws_restJson1ProblemDetail = (output: any, context: __SerdeCont }; const deserializeAws_restJson1Problems = (output: any, context: __SerdeContext): ProblemDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15023,6 +15045,7 @@ const deserializeAws_restJson1Problems = (output: any, context: __SerdeContext): } return deserializeAws_restJson1ProblemDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1PromptSummary = (output: any, context: __SerdeContext): PromptSummary => { @@ -15034,7 +15057,7 @@ const deserializeAws_restJson1PromptSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1PromptSummaryList = (output: any, context: __SerdeContext): PromptSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15042,6 +15065,7 @@ const deserializeAws_restJson1PromptSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1PromptSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Queue = (output: any, context: __SerdeContext): Queue => { @@ -15101,7 +15125,7 @@ const deserializeAws_restJson1QueueSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1QueueSummaryList = (output: any, context: __SerdeContext): QueueSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15109,6 +15133,7 @@ const deserializeAws_restJson1QueueSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1QueueSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1QuickConnect = (output: any, context: __SerdeContext): QuickConnect => { @@ -15159,7 +15184,7 @@ const deserializeAws_restJson1QuickConnectSummaryList = ( output: any, context: __SerdeContext ): QuickConnectSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15167,6 +15192,7 @@ const deserializeAws_restJson1QuickConnectSummaryList = ( } return deserializeAws_restJson1QuickConnectSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReferenceSummary = (output: any, context: __SerdeContext): ReferenceSummary => { @@ -15184,7 +15210,7 @@ const deserializeAws_restJson1ReferenceSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1ReferenceSummaryList = (output: any, context: __SerdeContext): ReferenceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15192,6 +15218,7 @@ const deserializeAws_restJson1ReferenceSummaryList = (output: any, context: __Se } return deserializeAws_restJson1ReferenceSummary(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1RoutingProfile = (output: any, context: __SerdeContext): RoutingProfile => { @@ -15231,7 +15258,7 @@ const deserializeAws_restJson1RoutingProfileQueueConfigSummaryList = ( output: any, context: __SerdeContext ): RoutingProfileQueueConfigSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15239,6 +15266,7 @@ const deserializeAws_restJson1RoutingProfileQueueConfigSummaryList = ( } return deserializeAws_restJson1RoutingProfileQueueConfigSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RoutingProfileSummary = (output: any, context: __SerdeContext): RoutingProfileSummary => { @@ -15253,7 +15281,7 @@ const deserializeAws_restJson1RoutingProfileSummaryList = ( output: any, context: __SerdeContext ): RoutingProfileSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15261,6 +15289,7 @@ const deserializeAws_restJson1RoutingProfileSummaryList = ( } return deserializeAws_restJson1RoutingProfileSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3Config = (output: any, context: __SerdeContext): S3Config => { @@ -15286,7 +15315,7 @@ const deserializeAws_restJson1SecurityKey = (output: any, context: __SerdeContex }; const deserializeAws_restJson1SecurityKeysList = (output: any, context: __SerdeContext): SecurityKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15294,6 +15323,7 @@ const deserializeAws_restJson1SecurityKeysList = (output: any, context: __SerdeC } return deserializeAws_restJson1SecurityKey(entry, context); }); + return retVal; }; const deserializeAws_restJson1SecurityProfile = (output: any, context: __SerdeContext): SecurityProfile => { @@ -15311,7 +15341,7 @@ const deserializeAws_restJson1SecurityProfile = (output: any, context: __SerdeCo }; const deserializeAws_restJson1SecurityProfileIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15319,6 +15349,7 @@ const deserializeAws_restJson1SecurityProfileIds = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SecurityProfileSummary = ( @@ -15336,7 +15367,7 @@ const deserializeAws_restJson1SecurityProfileSummaryList = ( output: any, context: __SerdeContext ): SecurityProfileSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15344,6 +15375,7 @@ const deserializeAws_restJson1SecurityProfileSummaryList = ( } return deserializeAws_restJson1SecurityProfileSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -15381,7 +15413,7 @@ const deserializeAws_restJson1UseCase = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1UseCaseSummaryList = (output: any, context: __SerdeContext): UseCase[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15389,6 +15421,7 @@ const deserializeAws_restJson1UseCaseSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1UseCase(entry, context); }); + return retVal; }; const deserializeAws_restJson1User = (output: any, context: __SerdeContext): User => { @@ -15454,7 +15487,7 @@ const deserializeAws_restJson1UserSummary = (output: any, context: __SerdeContex }; const deserializeAws_restJson1UserSummaryList = (output: any, context: __SerdeContext): UserSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15462,6 +15495,7 @@ const deserializeAws_restJson1UserSummaryList = (output: any, context: __SerdeCo } return deserializeAws_restJson1UserSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Vocabulary = (output: any, context: __SerdeContext): Vocabulary => { @@ -15500,7 +15534,7 @@ const deserializeAws_restJson1VocabularySummary = (output: any, context: __Serde }; const deserializeAws_restJson1VocabularySummaryList = (output: any, context: __SerdeContext): VocabularySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15508,6 +15542,7 @@ const deserializeAws_restJson1VocabularySummaryList = (output: any, context: __S } return deserializeAws_restJson1VocabularySummary(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts index 94ea95e85406..ec956e21c049 100644 --- a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts @@ -868,7 +868,7 @@ const deserializeAws_restJson1AttachmentItem = (output: any, context: __SerdeCon }; const deserializeAws_restJson1Attachments = (output: any, context: __SerdeContext): AttachmentItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -876,6 +876,7 @@ const deserializeAws_restJson1Attachments = (output: any, context: __SerdeContex } return deserializeAws_restJson1AttachmentItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectionCredentials = (output: any, context: __SerdeContext): ConnectionCredentials => { @@ -903,7 +904,7 @@ const deserializeAws_restJson1Item = (output: any, context: __SerdeContext): Ite }; const deserializeAws_restJson1Transcript = (output: any, context: __SerdeContext): Item[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -911,6 +912,7 @@ const deserializeAws_restJson1Transcript = (output: any, context: __SerdeContext } return deserializeAws_restJson1Item(entry, context); }); + return retVal; }; const deserializeAws_restJson1UploadMetadata = (output: any, context: __SerdeContext): UploadMetadata => { diff --git a/clients/client-cost-and-usage-report-service/src/protocols/Aws_json1_1.ts b/clients/client-cost-and-usage-report-service/src/protocols/Aws_json1_1.ts index c8a40ea9c25a..409a55c407f8 100644 --- a/clients/client-cost-and-usage-report-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-cost-and-usage-report-service/src/protocols/Aws_json1_1.ts @@ -436,7 +436,7 @@ const deserializeAws_json1_1AdditionalArtifactList = ( output: any, context: __SerdeContext ): (AdditionalArtifact | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -444,6 +444,7 @@ const deserializeAws_json1_1AdditionalArtifactList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeleteReportDefinitionResponse = ( @@ -521,7 +522,7 @@ const deserializeAws_json1_1ReportDefinition = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ReportDefinitionList = (output: any, context: __SerdeContext): ReportDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -529,6 +530,7 @@ const deserializeAws_json1_1ReportDefinitionList = (output: any, context: __Serd } return deserializeAws_json1_1ReportDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReportLimitReachedException = ( @@ -541,7 +543,7 @@ const deserializeAws_json1_1ReportLimitReachedException = ( }; const deserializeAws_json1_1SchemaElementList = (output: any, context: __SerdeContext): (SchemaElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -549,6 +551,7 @@ const deserializeAws_json1_1SchemaElementList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => { diff --git a/clients/client-cost-explorer/src/protocols/Aws_json1_1.ts b/clients/client-cost-explorer/src/protocols/Aws_json1_1.ts index 69338f68a7f8..ebafdcb203f7 100644 --- a/clients/client-cost-explorer/src/protocols/Aws_json1_1.ts +++ b/clients/client-cost-explorer/src/protocols/Aws_json1_1.ts @@ -3067,7 +3067,7 @@ const serializeAws_json1_1Values = (input: string[], context: __SerdeContext): a }; const deserializeAws_json1_1Anomalies = (output: any, context: __SerdeContext): Anomaly[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3075,6 +3075,7 @@ const deserializeAws_json1_1Anomalies = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Anomaly(entry, context); }); + return retVal; }; const deserializeAws_json1_1Anomaly = (output: any, context: __SerdeContext): Anomaly => { @@ -3118,7 +3119,7 @@ const deserializeAws_json1_1AnomalyMonitor = (output: any, context: __SerdeConte }; const deserializeAws_json1_1AnomalyMonitors = (output: any, context: __SerdeContext): AnomalyMonitor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3126,6 +3127,7 @@ const deserializeAws_json1_1AnomalyMonitors = (output: any, context: __SerdeCont } return deserializeAws_json1_1AnomalyMonitor(entry, context); }); + return retVal; }; const deserializeAws_json1_1AnomalyScore = (output: any, context: __SerdeContext): AnomalyScore => { @@ -3154,7 +3156,7 @@ const deserializeAws_json1_1AnomalySubscription = (output: any, context: __Serde }; const deserializeAws_json1_1AnomalySubscriptions = (output: any, context: __SerdeContext): AnomalySubscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3162,6 +3164,7 @@ const deserializeAws_json1_1AnomalySubscriptions = (output: any, context: __Serd } return deserializeAws_json1_1AnomalySubscription(entry, context); }); + return retVal; }; const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3219,7 +3222,7 @@ const deserializeAws_json1_1CostCategoryInheritedValueDimension = ( }; const deserializeAws_json1_1CostCategoryNamesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3227,6 +3230,7 @@ const deserializeAws_json1_1CostCategoryNamesList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CostCategoryProcessingStatus = ( @@ -3243,7 +3247,7 @@ const deserializeAws_json1_1CostCategoryProcessingStatusList = ( output: any, context: __SerdeContext ): CostCategoryProcessingStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3251,6 +3255,7 @@ const deserializeAws_json1_1CostCategoryProcessingStatusList = ( } return deserializeAws_json1_1CostCategoryProcessingStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1CostCategoryReference = (output: any, context: __SerdeContext): CostCategoryReference => { @@ -3276,7 +3281,7 @@ const deserializeAws_json1_1CostCategoryReferencesList = ( output: any, context: __SerdeContext ): CostCategoryReference[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3284,6 +3289,7 @@ const deserializeAws_json1_1CostCategoryReferencesList = ( } return deserializeAws_json1_1CostCategoryReference(entry, context); }); + return retVal; }; const deserializeAws_json1_1CostCategoryRule = (output: any, context: __SerdeContext): CostCategoryRule => { @@ -3302,7 +3308,7 @@ const deserializeAws_json1_1CostCategoryRule = (output: any, context: __SerdeCon }; const deserializeAws_json1_1CostCategoryRulesList = (output: any, context: __SerdeContext): CostCategoryRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3310,6 +3316,7 @@ const deserializeAws_json1_1CostCategoryRulesList = (output: any, context: __Ser } return deserializeAws_json1_1CostCategoryRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1CostCategorySplitChargeRule = ( @@ -3347,7 +3354,7 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleParametersList = ( output: any, context: __SerdeContext ): CostCategorySplitChargeRuleParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3355,13 +3362,14 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleParametersList = ( } return deserializeAws_json1_1CostCategorySplitChargeRuleParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3369,13 +3377,14 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CostCategorySplitChargeRulesList = ( output: any, context: __SerdeContext ): CostCategorySplitChargeRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3383,13 +3392,14 @@ const deserializeAws_json1_1CostCategorySplitChargeRulesList = ( } return deserializeAws_json1_1CostCategorySplitChargeRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1CostCategorySplitChargeRuleTargetsList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3397,6 +3407,7 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleTargetsList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CostCategoryValues = (output: any, context: __SerdeContext): CostCategoryValues => { @@ -3414,7 +3425,7 @@ const deserializeAws_json1_1CostCategoryValues = (output: any, context: __SerdeC }; const deserializeAws_json1_1CostCategoryValuesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3422,6 +3433,7 @@ const deserializeAws_json1_1CostCategoryValuesList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Coverage = (output: any, context: __SerdeContext): Coverage => { @@ -3486,7 +3498,7 @@ const deserializeAws_json1_1CoverageNormalizedUnits = ( }; const deserializeAws_json1_1CoveragesByTime = (output: any, context: __SerdeContext): CoverageByTime[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3494,6 +3506,7 @@ const deserializeAws_json1_1CoveragesByTime = (output: any, context: __SerdeCont } return deserializeAws_json1_1CoverageByTime(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateAnomalyMonitorResponse = ( @@ -3632,7 +3645,7 @@ const deserializeAws_json1_1DimensionValuesWithAttributesList = ( output: any, context: __SerdeContext ): DimensionValuesWithAttributes[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3640,6 +3653,7 @@ const deserializeAws_json1_1DimensionValuesWithAttributesList = ( } return deserializeAws_json1_1DimensionValuesWithAttributes(entry, context); }); + return retVal; }; const deserializeAws_json1_1DiskResourceUtilization = ( @@ -3768,7 +3782,7 @@ const deserializeAws_json1_1Expression = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Expressions = (output: any, context: __SerdeContext): Expression[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3776,13 +3790,14 @@ const deserializeAws_json1_1Expressions = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Expression(entry, context); }); + return retVal; }; const deserializeAws_json1_1FindingReasonCodes = ( output: any, context: __SerdeContext ): (FindingReasonCode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3790,6 +3805,7 @@ const deserializeAws_json1_1FindingReasonCodes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ForecastResult = (output: any, context: __SerdeContext): ForecastResult => { @@ -3805,7 +3821,7 @@ const deserializeAws_json1_1ForecastResult = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ForecastResultsByTime = (output: any, context: __SerdeContext): ForecastResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3813,6 +3829,7 @@ const deserializeAws_json1_1ForecastResultsByTime = (output: any, context: __Ser } return deserializeAws_json1_1ForecastResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetAnomaliesResponse = (output: any, context: __SerdeContext): GetAnomaliesResponse => { @@ -4133,7 +4150,7 @@ const deserializeAws_json1_1GroupDefinition = (output: any, context: __SerdeCont }; const deserializeAws_json1_1GroupDefinitions = (output: any, context: __SerdeContext): GroupDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4141,10 +4158,11 @@ const deserializeAws_json1_1GroupDefinitions = (output: any, context: __SerdeCon } return deserializeAws_json1_1GroupDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): Group[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4152,6 +4170,7 @@ const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): Gro } return deserializeAws_json1_1Group(entry, context); }); + return retVal; }; const deserializeAws_json1_1Impact = (output: any, context: __SerdeContext): Impact => { @@ -4196,7 +4215,7 @@ const deserializeAws_json1_1InvalidNextTokenException = ( }; const deserializeAws_json1_1Keys = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4204,6 +4223,7 @@ const deserializeAws_json1_1Keys = (output: any, context: __SerdeContext): strin } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -4226,7 +4246,7 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsResponse = ( }; const deserializeAws_json1_1MatchOptions = (output: any, context: __SerdeContext): (MatchOption | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4234,6 +4254,7 @@ const deserializeAws_json1_1MatchOptions = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Metrics = (output: any, context: __SerdeContext): { [key: string]: MetricValue } => { @@ -4268,7 +4289,7 @@ const deserializeAws_json1_1ModifyRecommendationDetail = ( }; const deserializeAws_json1_1MonitorArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4276,6 +4297,7 @@ const deserializeAws_json1_1MonitorArnList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NetworkResourceUtilization = ( @@ -4294,7 +4316,7 @@ const deserializeAws_json1_1PlatformDifferences = ( output: any, context: __SerdeContext ): (PlatformDifference | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4302,6 +4324,7 @@ const deserializeAws_json1_1PlatformDifferences = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProvideAnomalyFeedbackResponse = ( @@ -4391,7 +4414,7 @@ const deserializeAws_json1_1ReservationCoverageGroups = ( output: any, context: __SerdeContext ): ReservationCoverageGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4399,6 +4422,7 @@ const deserializeAws_json1_1ReservationCoverageGroups = ( } return deserializeAws_json1_1ReservationCoverageGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReservationPurchaseRecommendation = ( @@ -4459,7 +4483,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendationDetails = ( output: any, context: __SerdeContext ): ReservationPurchaseRecommendationDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4467,6 +4491,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendationDetails = ( } return deserializeAws_json1_1ReservationPurchaseRecommendationDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReservationPurchaseRecommendationMetadata = ( @@ -4483,7 +4508,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendations = ( output: any, context: __SerdeContext ): ReservationPurchaseRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4491,6 +4516,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendations = ( } return deserializeAws_json1_1ReservationPurchaseRecommendation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReservationPurchaseRecommendationSummary = ( @@ -4526,7 +4552,7 @@ const deserializeAws_json1_1ReservationUtilizationGroups = ( output: any, context: __SerdeContext ): ReservationUtilizationGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4534,6 +4560,7 @@ const deserializeAws_json1_1ReservationUtilizationGroups = ( } return deserializeAws_json1_1ReservationUtilizationGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceDetails = (output: any, context: __SerdeContext): ResourceDetails => { @@ -4582,7 +4609,7 @@ const deserializeAws_json1_1ResultByTime = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ResultsByTime = (output: any, context: __SerdeContext): ResultByTime[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4590,6 +4617,7 @@ const deserializeAws_json1_1ResultsByTime = (output: any, context: __SerdeContex } return deserializeAws_json1_1ResultByTime(entry, context); }); + return retVal; }; const deserializeAws_json1_1RightsizingRecommendation = ( @@ -4632,7 +4660,7 @@ const deserializeAws_json1_1RightsizingRecommendationList = ( output: any, context: __SerdeContext ): RightsizingRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4640,6 +4668,7 @@ const deserializeAws_json1_1RightsizingRecommendationList = ( } return deserializeAws_json1_1RightsizingRecommendation(entry, context); }); + return retVal; }; const deserializeAws_json1_1RightsizingRecommendationMetadata = ( @@ -4676,7 +4705,7 @@ const deserializeAws_json1_1RootCause = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1RootCauses = (output: any, context: __SerdeContext): RootCause[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4684,6 +4713,7 @@ const deserializeAws_json1_1RootCauses = (output: any, context: __SerdeContext): } return deserializeAws_json1_1RootCause(entry, context); }); + return retVal; }; const deserializeAws_json1_1SavingsPlansAmortizedCommitment = ( @@ -4727,7 +4757,7 @@ const deserializeAws_json1_1SavingsPlansCoverageData = ( }; const deserializeAws_json1_1SavingsPlansCoverages = (output: any, context: __SerdeContext): SavingsPlansCoverage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4735,6 +4765,7 @@ const deserializeAws_json1_1SavingsPlansCoverages = (output: any, context: __Ser } return deserializeAws_json1_1SavingsPlansCoverage(entry, context); }); + return retVal; }; const deserializeAws_json1_1SavingsPlansDetails = (output: any, context: __SerdeContext): SavingsPlansDetails => { @@ -4805,7 +4836,7 @@ const deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetailList = ( output: any, context: __SerdeContext ): SavingsPlansPurchaseRecommendationDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4813,6 +4844,7 @@ const deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetailList = ( } return deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1SavingsPlansPurchaseRecommendationMetadata = ( @@ -4937,7 +4969,7 @@ const deserializeAws_json1_1SavingsPlansUtilizationDetails = ( output: any, context: __SerdeContext ): SavingsPlansUtilizationDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4945,13 +4977,14 @@ const deserializeAws_json1_1SavingsPlansUtilizationDetails = ( } return deserializeAws_json1_1SavingsPlansUtilizationDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1SavingsPlansUtilizationsByTime = ( output: any, context: __SerdeContext ): SavingsPlansUtilizationByTime[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4959,6 +4992,7 @@ const deserializeAws_json1_1SavingsPlansUtilizationsByTime = ( } return deserializeAws_json1_1SavingsPlansUtilizationByTime(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceQuotaExceededException = ( @@ -4988,7 +5022,7 @@ const deserializeAws_json1_1Subscriber = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Subscribers = (output: any, context: __SerdeContext): Subscriber[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4996,10 +5030,11 @@ const deserializeAws_json1_1Subscribers = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Subscriber(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5007,6 +5042,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TagValues = (output: any, context: __SerdeContext): TagValues => { @@ -5024,7 +5060,7 @@ const deserializeAws_json1_1TagValues = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1TagValuesList = (output: any, context: __SerdeContext): TagValues[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5032,6 +5068,7 @@ const deserializeAws_json1_1TagValuesList = (output: any, context: __SerdeContex } return deserializeAws_json1_1TagValues(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetInstance = (output: any, context: __SerdeContext): TargetInstance => { @@ -5056,7 +5093,7 @@ const deserializeAws_json1_1TargetInstance = (output: any, context: __SerdeConte }; const deserializeAws_json1_1TargetInstancesList = (output: any, context: __SerdeContext): TargetInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5064,6 +5101,7 @@ const deserializeAws_json1_1TargetInstancesList = (output: any, context: __Serde } return deserializeAws_json1_1TargetInstance(entry, context); }); + return retVal; }; const deserializeAws_json1_1TerminateRecommendationDetail = ( @@ -5149,7 +5187,7 @@ const deserializeAws_json1_1UtilizationByTime = (output: any, context: __SerdeCo }; const deserializeAws_json1_1UtilizationsByTime = (output: any, context: __SerdeContext): UtilizationByTime[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5157,10 +5195,11 @@ const deserializeAws_json1_1UtilizationsByTime = (output: any, context: __SerdeC } return deserializeAws_json1_1UtilizationByTime(entry, context); }); + return retVal; }; const deserializeAws_json1_1Values = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5168,6 +5207,7 @@ const deserializeAws_json1_1Values = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts b/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts index 1ee8dfd3621f..0c587a6a9980 100644 --- a/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts +++ b/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts @@ -4249,7 +4249,7 @@ const deserializeAws_restJson1Consolidation = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DomainList = (output: any, context: __SerdeContext): ListDomainItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4257,6 +4257,7 @@ const deserializeAws_restJson1DomainList = (output: any, context: __SerdeContext } return deserializeAws_restJson1ListDomainItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainStats = (output: any, context: __SerdeContext): DomainStats => { @@ -4299,7 +4300,7 @@ const deserializeAws_restJson1FieldMap = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1FieldNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4307,6 +4308,7 @@ const deserializeAws_restJson1FieldNameList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IdentityResolutionJob = (output: any, context: __SerdeContext): IdentityResolutionJob => { @@ -4338,7 +4340,7 @@ const deserializeAws_restJson1IdentityResolutionJobsList = ( output: any, context: __SerdeContext ): IdentityResolutionJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4346,10 +4348,11 @@ const deserializeAws_restJson1IdentityResolutionJobsList = ( } return deserializeAws_restJson1IdentityResolutionJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1IntegrationList = (output: any, context: __SerdeContext): ListIntegrationItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4357,6 +4360,7 @@ const deserializeAws_restJson1IntegrationList = (output: any, context: __SerdeCo } return deserializeAws_restJson1ListIntegrationItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobSchedule = (output: any, context: __SerdeContext): JobSchedule => { @@ -4473,7 +4477,7 @@ const deserializeAws_restJson1ListProfileObjectTypeTemplateItem = ( }; const deserializeAws_restJson1MatchesList = (output: any, context: __SerdeContext): MatchItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4481,10 +4485,11 @@ const deserializeAws_restJson1MatchesList = (output: any, context: __SerdeContex } return deserializeAws_restJson1MatchItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1MatchingAttributes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4492,10 +4497,11 @@ const deserializeAws_restJson1MatchingAttributes = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MatchingAttributesList = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4503,6 +4509,7 @@ const deserializeAws_restJson1MatchingAttributesList = (output: any, context: __ } return deserializeAws_restJson1MatchingAttributes(entry, context); }); + return retVal; }; const deserializeAws_restJson1MatchingResponse = (output: any, context: __SerdeContext): MatchingResponse => { @@ -4556,7 +4563,7 @@ const deserializeAws_restJson1ObjectTypeKey = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ObjectTypeKeyList = (output: any, context: __SerdeContext): ObjectTypeKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4564,6 +4571,7 @@ const deserializeAws_restJson1ObjectTypeKeyList = (output: any, context: __Serde } return deserializeAws_restJson1ObjectTypeKey(entry, context); }); + return retVal; }; const deserializeAws_restJson1ObjectTypeNames = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4621,7 +4629,7 @@ const deserializeAws_restJson1Profile = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1ProfileIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4629,10 +4637,11 @@ const deserializeAws_restJson1ProfileIdList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ProfileList = (output: any, context: __SerdeContext): Profile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4640,10 +4649,11 @@ const deserializeAws_restJson1ProfileList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Profile(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProfileObjectList = (output: any, context: __SerdeContext): ListProfileObjectsItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4651,13 +4661,14 @@ const deserializeAws_restJson1ProfileObjectList = (output: any, context: __Serde } return deserializeAws_restJson1ListProfileObjectsItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProfileObjectTypeList = ( output: any, context: __SerdeContext ): ListProfileObjectTypeItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4665,13 +4676,14 @@ const deserializeAws_restJson1ProfileObjectTypeList = ( } return deserializeAws_restJson1ListProfileObjectTypeItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProfileObjectTypeTemplateList = ( output: any, context: __SerdeContext ): ListProfileObjectTypeTemplateItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4679,10 +4691,11 @@ const deserializeAws_restJson1ProfileObjectTypeTemplateList = ( } return deserializeAws_restJson1ListProfileObjectTypeTemplateItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1requestValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4690,6 +4703,7 @@ const deserializeAws_restJson1requestValueList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3ExportingConfig = (output: any, context: __SerdeContext): S3ExportingConfig => { @@ -4710,7 +4724,7 @@ const deserializeAws_restJson1StandardIdentifierList = ( output: any, context: __SerdeContext ): (StandardIdentifier | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4718,6 +4732,7 @@ const deserializeAws_restJson1StandardIdentifierList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-data-pipeline/src/protocols/Aws_json1_1.ts b/clients/client-data-pipeline/src/protocols/Aws_json1_1.ts index 885d7d70ffd3..b880c78e6338 100644 --- a/clients/client-data-pipeline/src/protocols/Aws_json1_1.ts +++ b/clients/client-data-pipeline/src/protocols/Aws_json1_1.ts @@ -1814,7 +1814,7 @@ const deserializeAws_json1_1Field = (output: any, context: __SerdeContext): Fiel }; const deserializeAws_json1_1fieldList = (output: any, context: __SerdeContext): Field[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1822,6 +1822,7 @@ const deserializeAws_json1_1fieldList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Field(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetPipelineDefinitionOutput = ( @@ -1845,7 +1846,7 @@ const deserializeAws_json1_1GetPipelineDefinitionOutput = ( }; const deserializeAws_json1_1idList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1853,6 +1854,7 @@ const deserializeAws_json1_1idList = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InternalServiceError = (output: any, context: __SerdeContext): InternalServiceError => { @@ -1889,7 +1891,7 @@ const deserializeAws_json1_1ParameterAttribute = (output: any, context: __SerdeC }; const deserializeAws_json1_1ParameterAttributeList = (output: any, context: __SerdeContext): ParameterAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1897,6 +1899,7 @@ const deserializeAws_json1_1ParameterAttributeList = (output: any, context: __Se } return deserializeAws_json1_1ParameterAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterObject = (output: any, context: __SerdeContext): ParameterObject => { @@ -1910,7 +1913,7 @@ const deserializeAws_json1_1ParameterObject = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ParameterObjectList = (output: any, context: __SerdeContext): ParameterObject[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1918,6 +1921,7 @@ const deserializeAws_json1_1ParameterObjectList = (output: any, context: __Serde } return deserializeAws_json1_1ParameterObject(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterValue = (output: any, context: __SerdeContext): ParameterValue => { @@ -1928,7 +1932,7 @@ const deserializeAws_json1_1ParameterValue = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ParameterValueList = (output: any, context: __SerdeContext): ParameterValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1936,6 +1940,7 @@ const deserializeAws_json1_1ParameterValueList = (output: any, context: __SerdeC } return deserializeAws_json1_1ParameterValue(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineDeletedException = ( @@ -1964,7 +1969,7 @@ const deserializeAws_json1_1PipelineDescription = (output: any, context: __Serde }; const deserializeAws_json1_1PipelineDescriptionList = (output: any, context: __SerdeContext): PipelineDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1972,6 +1977,7 @@ const deserializeAws_json1_1PipelineDescriptionList = (output: any, context: __S } return deserializeAws_json1_1PipelineDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineIdName = (output: any, context: __SerdeContext): PipelineIdName => { @@ -1982,7 +1988,7 @@ const deserializeAws_json1_1PipelineIdName = (output: any, context: __SerdeConte }; const deserializeAws_json1_1pipelineList = (output: any, context: __SerdeContext): PipelineIdName[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1990,6 +1996,7 @@ const deserializeAws_json1_1pipelineList = (output: any, context: __SerdeContext } return deserializeAws_json1_1PipelineIdName(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineNotFoundException = ( @@ -2013,7 +2020,7 @@ const deserializeAws_json1_1PipelineObject = (output: any, context: __SerdeConte }; const deserializeAws_json1_1PipelineObjectList = (output: any, context: __SerdeContext): PipelineObject[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2021,6 +2028,7 @@ const deserializeAws_json1_1PipelineObjectList = (output: any, context: __SerdeC } return deserializeAws_json1_1PipelineObject(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineObjectMap = ( @@ -2107,7 +2115,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1tagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2115,6 +2123,7 @@ const deserializeAws_json1_1tagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TaskNotFoundException = (output: any, context: __SerdeContext): TaskNotFoundException => { @@ -2163,7 +2172,7 @@ const deserializeAws_json1_1ValidationError = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ValidationErrors = (output: any, context: __SerdeContext): ValidationError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2171,10 +2180,11 @@ const deserializeAws_json1_1ValidationErrors = (output: any, context: __SerdeCon } return deserializeAws_json1_1ValidationError(entry, context); }); + return retVal; }; const deserializeAws_json1_1validationMessages = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2182,6 +2192,7 @@ const deserializeAws_json1_1validationMessages = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ValidationWarning = (output: any, context: __SerdeContext): ValidationWarning => { @@ -2195,7 +2206,7 @@ const deserializeAws_json1_1ValidationWarning = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ValidationWarnings = (output: any, context: __SerdeContext): ValidationWarning[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2203,6 +2214,7 @@ const deserializeAws_json1_1ValidationWarnings = (output: any, context: __SerdeC } return deserializeAws_json1_1ValidationWarning(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-database-migration-service/src/protocols/Aws_json1_1.ts b/clients/client-database-migration-service/src/protocols/Aws_json1_1.ts index f124af7258dd..0769182b7492 100644 --- a/clients/client-database-migration-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-database-migration-service/src/protocols/Aws_json1_1.ts @@ -5699,7 +5699,7 @@ const deserializeAws_json1_1AccountQuota = (output: any, context: __SerdeContext }; const deserializeAws_json1_1AccountQuotaList = (output: any, context: __SerdeContext): AccountQuota[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5707,6 +5707,7 @@ const deserializeAws_json1_1AccountQuotaList = (output: any, context: __SerdeCon } return deserializeAws_json1_1AccountQuota(entry, context); }); + return retVal; }; const deserializeAws_json1_1AddTagsToResourceResponse = ( @@ -5735,7 +5736,7 @@ const deserializeAws_json1_1AvailabilityZone = (output: any, context: __SerdeCon }; const deserializeAws_json1_1AvailabilityZonesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5743,6 +5744,7 @@ const deserializeAws_json1_1AvailabilityZonesList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CancelReplicationTaskAssessmentRunResponse = ( @@ -5785,7 +5787,7 @@ const deserializeAws_json1_1Certificate = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1CertificateList = (output: any, context: __SerdeContext): Certificate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5793,6 +5795,7 @@ const deserializeAws_json1_1CertificateList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Certificate(entry, context); }); + return retVal; }; const deserializeAws_json1_1Connection = (output: any, context: __SerdeContext): Connection => { @@ -5807,7 +5810,7 @@ const deserializeAws_json1_1Connection = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ConnectionList = (output: any, context: __SerdeContext): Connection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5815,6 +5818,7 @@ const deserializeAws_json1_1ConnectionList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Connection(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateEndpointResponse = (output: any, context: __SerdeContext): CreateEndpointResponse => { @@ -6382,7 +6386,7 @@ const deserializeAws_json1_1Endpoint = (output: any, context: __SerdeContext): E }; const deserializeAws_json1_1EndpointList = (output: any, context: __SerdeContext): Endpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6390,6 +6394,7 @@ const deserializeAws_json1_1EndpointList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Endpoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1EndpointSetting = (output: any, context: __SerdeContext): EndpointSetting => { @@ -6410,7 +6415,7 @@ const deserializeAws_json1_1EndpointSetting = (output: any, context: __SerdeCont }; const deserializeAws_json1_1EndpointSettingEnumValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6418,10 +6423,11 @@ const deserializeAws_json1_1EndpointSettingEnumValues = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1EndpointSettingsList = (output: any, context: __SerdeContext): EndpointSetting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6429,6 +6435,7 @@ const deserializeAws_json1_1EndpointSettingsList = (output: any, context: __Serd } return deserializeAws_json1_1EndpointSetting(entry, context); }); + return retVal; }; const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Event => { @@ -6448,7 +6455,7 @@ const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Even }; const deserializeAws_json1_1EventCategoriesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6456,6 +6463,7 @@ const deserializeAws_json1_1EventCategoriesList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1EventCategoryGroup = (output: any, context: __SerdeContext): EventCategoryGroup => { @@ -6469,7 +6477,7 @@ const deserializeAws_json1_1EventCategoryGroup = (output: any, context: __SerdeC }; const deserializeAws_json1_1EventCategoryGroupList = (output: any, context: __SerdeContext): EventCategoryGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6477,10 +6485,11 @@ const deserializeAws_json1_1EventCategoryGroupList = (output: any, context: __Se } return deserializeAws_json1_1EventCategoryGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): Event[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6488,6 +6497,7 @@ const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Event(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventSubscription = (output: any, context: __SerdeContext): EventSubscription => { @@ -6511,7 +6521,7 @@ const deserializeAws_json1_1EventSubscription = (output: any, context: __SerdeCo }; const deserializeAws_json1_1EventSubscriptionsList = (output: any, context: __SerdeContext): EventSubscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6519,6 +6529,7 @@ const deserializeAws_json1_1EventSubscriptionsList = (output: any, context: __Se } return deserializeAws_json1_1EventSubscription(entry, context); }); + return retVal; }; const deserializeAws_json1_1GcpMySQLSettings = (output: any, context: __SerdeContext): GcpMySQLSettings => { @@ -6568,7 +6579,7 @@ const deserializeAws_json1_1ImportCertificateResponse = ( }; const deserializeAws_json1_1IndividualAssessmentNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6576,6 +6587,7 @@ const deserializeAws_json1_1IndividualAssessmentNameList = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InsufficientResourceCapacityFault = ( @@ -6588,7 +6600,7 @@ const deserializeAws_json1_1InsufficientResourceCapacityFault = ( }; const deserializeAws_json1_1IntegerList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6596,6 +6608,7 @@ const deserializeAws_json1_1IntegerList = (output: any, context: __SerdeContext) } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InvalidCertificateFault = ( @@ -6930,7 +6943,7 @@ const deserializeAws_json1_1OrderableReplicationInstanceList = ( output: any, context: __SerdeContext ): OrderableReplicationInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6938,6 +6951,7 @@ const deserializeAws_json1_1OrderableReplicationInstanceList = ( } return deserializeAws_json1_1OrderableReplicationInstance(entry, context); }); + return retVal; }; const deserializeAws_json1_1PendingMaintenanceAction = ( @@ -6967,7 +6981,7 @@ const deserializeAws_json1_1PendingMaintenanceActionDetails = ( output: any, context: __SerdeContext ): PendingMaintenanceAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6975,13 +6989,14 @@ const deserializeAws_json1_1PendingMaintenanceActionDetails = ( } return deserializeAws_json1_1PendingMaintenanceAction(entry, context); }); + return retVal; }; const deserializeAws_json1_1PendingMaintenanceActions = ( output: any, context: __SerdeContext ): ResourcePendingMaintenanceActions[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6989,6 +7004,7 @@ const deserializeAws_json1_1PendingMaintenanceActions = ( } return deserializeAws_json1_1ResourcePendingMaintenanceActions(entry, context); }); + return retVal; }; const deserializeAws_json1_1PostgreSQLSettings = (output: any, context: __SerdeContext): PostgreSQLSettings => { @@ -7165,7 +7181,7 @@ const deserializeAws_json1_1ReplicationInstance = (output: any, context: __Serde }; const deserializeAws_json1_1ReplicationInstanceList = (output: any, context: __SerdeContext): ReplicationInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7173,13 +7189,14 @@ const deserializeAws_json1_1ReplicationInstanceList = (output: any, context: __S } return deserializeAws_json1_1ReplicationInstance(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationInstancePrivateIpAddressList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7187,13 +7204,14 @@ const deserializeAws_json1_1ReplicationInstancePrivateIpAddressList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ReplicationInstancePublicIpAddressList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7201,6 +7219,7 @@ const deserializeAws_json1_1ReplicationInstancePublicIpAddressList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ReplicationInstanceTaskLog = ( @@ -7218,7 +7237,7 @@ const deserializeAws_json1_1ReplicationInstanceTaskLogsList = ( output: any, context: __SerdeContext ): ReplicationInstanceTaskLog[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7226,6 +7245,7 @@ const deserializeAws_json1_1ReplicationInstanceTaskLogsList = ( } return deserializeAws_json1_1ReplicationInstanceTaskLog(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationPendingModifiedValues = ( @@ -7266,7 +7286,7 @@ const deserializeAws_json1_1ReplicationSubnetGroups = ( output: any, context: __SerdeContext ): ReplicationSubnetGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7274,6 +7294,7 @@ const deserializeAws_json1_1ReplicationSubnetGroups = ( } return deserializeAws_json1_1ReplicationSubnetGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationTask = (output: any, context: __SerdeContext): ReplicationTask => { @@ -7331,7 +7352,7 @@ const deserializeAws_json1_1ReplicationTaskAssessmentResultList = ( output: any, context: __SerdeContext ): ReplicationTaskAssessmentResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7339,6 +7360,7 @@ const deserializeAws_json1_1ReplicationTaskAssessmentResultList = ( } return deserializeAws_json1_1ReplicationTaskAssessmentResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationTaskAssessmentRun = ( @@ -7372,7 +7394,7 @@ const deserializeAws_json1_1ReplicationTaskAssessmentRunList = ( output: any, context: __SerdeContext ): ReplicationTaskAssessmentRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7380,6 +7402,7 @@ const deserializeAws_json1_1ReplicationTaskAssessmentRunList = ( } return deserializeAws_json1_1ReplicationTaskAssessmentRun(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationTaskAssessmentRunProgress = ( @@ -7413,7 +7436,7 @@ const deserializeAws_json1_1ReplicationTaskIndividualAssessmentList = ( output: any, context: __SerdeContext ): ReplicationTaskIndividualAssessment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7421,10 +7444,11 @@ const deserializeAws_json1_1ReplicationTaskIndividualAssessmentList = ( } return deserializeAws_json1_1ReplicationTaskIndividualAssessment(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationTaskList = (output: any, context: __SerdeContext): ReplicationTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7432,6 +7456,7 @@ const deserializeAws_json1_1ReplicationTaskList = (output: any, context: __Serde } return deserializeAws_json1_1ReplicationTask(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationTaskStats = (output: any, context: __SerdeContext): ReplicationTaskStats => { @@ -7562,7 +7587,7 @@ const deserializeAws_json1_1S3Settings = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1SchemaList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7570,6 +7595,7 @@ const deserializeAws_json1_1SchemaList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInvalidTopicFault => { @@ -7588,7 +7614,7 @@ const deserializeAws_json1_1SNSNoAuthorizationFault = ( }; const deserializeAws_json1_1SourceIdsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7596,6 +7622,7 @@ const deserializeAws_json1_1SourceIdsList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1StartReplicationTaskAssessmentResponse = ( @@ -7673,7 +7700,7 @@ const deserializeAws_json1_1SubnetAlreadyInUse = (output: any, context: __SerdeC }; const deserializeAws_json1_1SubnetList = (output: any, context: __SerdeContext): Subnet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7681,6 +7708,7 @@ const deserializeAws_json1_1SubnetList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Subnet(entry, context); }); + return retVal; }; const deserializeAws_json1_1SupportedEndpointType = (output: any, context: __SerdeContext): SupportedEndpointType => { @@ -7697,7 +7725,7 @@ const deserializeAws_json1_1SupportedEndpointTypeList = ( output: any, context: __SerdeContext ): SupportedEndpointType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7705,6 +7733,7 @@ const deserializeAws_json1_1SupportedEndpointTypeList = ( } return deserializeAws_json1_1SupportedEndpointType(entry, context); }); + return retVal; }; const deserializeAws_json1_1SybaseSettings = (output: any, context: __SerdeContext): SybaseSettings => { @@ -7753,7 +7782,7 @@ const deserializeAws_json1_1TableStatistics = (output: any, context: __SerdeCont }; const deserializeAws_json1_1TableStatisticsList = (output: any, context: __SerdeContext): TableStatistics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7761,6 +7790,7 @@ const deserializeAws_json1_1TableStatisticsList = (output: any, context: __Serde } return deserializeAws_json1_1TableStatistics(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -7772,7 +7802,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7780,6 +7810,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestConnectionResponse = (output: any, context: __SerdeContext): TestConnectionResponse => { @@ -7814,7 +7845,7 @@ const deserializeAws_json1_1VpcSecurityGroupMembershipList = ( output: any, context: __SerdeContext ): VpcSecurityGroupMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7822,6 +7853,7 @@ const deserializeAws_json1_1VpcSecurityGroupMembershipList = ( } return deserializeAws_json1_1VpcSecurityGroupMembership(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-databrew/src/protocols/Aws_restJson1.ts b/clients/client-databrew/src/protocols/Aws_restJson1.ts index 1cf418e3a790..d272f54ec1c1 100644 --- a/clients/client-databrew/src/protocols/Aws_restJson1.ts +++ b/clients/client-databrew/src/protocols/Aws_restJson1.ts @@ -4951,7 +4951,7 @@ const serializeAws_restJson1ViewFrame = (input: ViewFrame, context: __SerdeConte }; const deserializeAws_restJson1AllowedStatisticList = (output: any, context: __SerdeContext): AllowedStatistics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4959,6 +4959,7 @@ const deserializeAws_restJson1AllowedStatisticList = (output: any, context: __Se } return deserializeAws_restJson1AllowedStatistics(entry, context); }); + return retVal; }; const deserializeAws_restJson1AllowedStatistics = (output: any, context: __SerdeContext): AllowedStatistics => { @@ -4971,7 +4972,7 @@ const deserializeAws_restJson1AllowedStatistics = (output: any, context: __Serde }; const deserializeAws_restJson1ColumnNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4979,6 +4980,7 @@ const deserializeAws_restJson1ColumnNameList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ColumnSelector = (output: any, context: __SerdeContext): ColumnSelector => { @@ -4989,7 +4991,7 @@ const deserializeAws_restJson1ColumnSelector = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ColumnSelectorList = (output: any, context: __SerdeContext): ColumnSelector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4997,6 +4999,7 @@ const deserializeAws_restJson1ColumnSelectorList = (output: any, context: __Serd } return deserializeAws_restJson1ColumnSelector(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnStatisticsConfiguration = ( @@ -5019,7 +5022,7 @@ const deserializeAws_restJson1ColumnStatisticsConfigurationList = ( output: any, context: __SerdeContext ): ColumnStatisticsConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5027,6 +5030,7 @@ const deserializeAws_restJson1ColumnStatisticsConfigurationList = ( } return deserializeAws_restJson1ColumnStatisticsConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConditionExpression = (output: any, context: __SerdeContext): ConditionExpression => { @@ -5041,7 +5045,7 @@ const deserializeAws_restJson1ConditionExpressionList = ( output: any, context: __SerdeContext ): ConditionExpression[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5049,6 +5053,7 @@ const deserializeAws_restJson1ConditionExpressionList = ( } return deserializeAws_restJson1ConditionExpression(entry, context); }); + return retVal; }; const deserializeAws_restJson1CsvOptions = (output: any, context: __SerdeContext): CsvOptions => { @@ -5091,7 +5096,7 @@ const deserializeAws_restJson1DatabaseOutput = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DatabaseOutputList = (output: any, context: __SerdeContext): DatabaseOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5099,6 +5104,7 @@ const deserializeAws_restJson1DatabaseOutputList = (output: any, context: __Serd } return deserializeAws_restJson1DatabaseOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatabaseTableOutputOptions = ( @@ -5147,7 +5153,7 @@ const deserializeAws_restJson1DataCatalogOutput = (output: any, context: __Serde }; const deserializeAws_restJson1DataCatalogOutputList = (output: any, context: __SerdeContext): DataCatalogOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5155,6 +5161,7 @@ const deserializeAws_restJson1DataCatalogOutputList = (output: any, context: __S } return deserializeAws_restJson1DataCatalogOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1Dataset = (output: any, context: __SerdeContext): Dataset => { @@ -5194,7 +5201,7 @@ const deserializeAws_restJson1Dataset = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1DatasetList = (output: any, context: __SerdeContext): Dataset[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5202,6 +5209,7 @@ const deserializeAws_restJson1DatasetList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Dataset(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatasetParameter = (output: any, context: __SerdeContext): DatasetParameter => { @@ -5245,7 +5253,7 @@ const deserializeAws_restJson1EntityDetectorConfiguration = ( }; const deserializeAws_restJson1EntityTypeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5253,6 +5261,7 @@ const deserializeAws_restJson1EntityTypeList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ExcelOptions = (output: any, context: __SerdeContext): ExcelOptions => { @@ -5382,7 +5391,7 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job }; const deserializeAws_restJson1JobList = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5390,10 +5399,11 @@ const deserializeAws_restJson1JobList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Job(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5401,6 +5411,7 @@ const deserializeAws_restJson1JobNameList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1JobRun = (output: any, context: __SerdeContext): JobRun => { @@ -5451,7 +5462,7 @@ const deserializeAws_restJson1JobRun = (output: any, context: __SerdeContext): J }; const deserializeAws_restJson1JobRunList = (output: any, context: __SerdeContext): JobRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5459,6 +5470,7 @@ const deserializeAws_restJson1JobRunList = (output: any, context: __SerdeContext } return deserializeAws_restJson1JobRun(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobSample = (output: any, context: __SerdeContext): JobSample => { @@ -5510,7 +5522,7 @@ const deserializeAws_restJson1OutputFormatOptions = (output: any, context: __Ser }; const deserializeAws_restJson1OutputList = (output: any, context: __SerdeContext): Output[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5518,6 +5530,7 @@ const deserializeAws_restJson1OutputList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Output(entry, context); }); + return retVal; }; const deserializeAws_restJson1ParameterMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -5620,7 +5633,7 @@ const deserializeAws_restJson1Project = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1ProjectList = (output: any, context: __SerdeContext): Project[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5628,6 +5641,7 @@ const deserializeAws_restJson1ProjectList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Project(entry, context); }); + return retVal; }; const deserializeAws_restJson1Recipe = (output: any, context: __SerdeContext): Recipe => { @@ -5674,7 +5688,7 @@ const deserializeAws_restJson1RecipeAction = (output: any, context: __SerdeConte }; const deserializeAws_restJson1RecipeErrorList = (output: any, context: __SerdeContext): RecipeVersionErrorDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5682,10 +5696,11 @@ const deserializeAws_restJson1RecipeErrorList = (output: any, context: __SerdeCo } return deserializeAws_restJson1RecipeVersionErrorDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecipeList = (output: any, context: __SerdeContext): Recipe[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5693,6 +5708,7 @@ const deserializeAws_restJson1RecipeList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Recipe(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecipeReference = (output: any, context: __SerdeContext): RecipeReference => { @@ -5716,7 +5732,7 @@ const deserializeAws_restJson1RecipeStep = (output: any, context: __SerdeContext }; const deserializeAws_restJson1RecipeStepList = (output: any, context: __SerdeContext): RecipeStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5724,6 +5740,7 @@ const deserializeAws_restJson1RecipeStepList = (output: any, context: __SerdeCon } return deserializeAws_restJson1RecipeStep(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecipeVersionErrorDetail = ( @@ -5758,7 +5775,7 @@ const deserializeAws_restJson1Rule = (output: any, context: __SerdeContext): Rul }; const deserializeAws_restJson1RuleList = (output: any, context: __SerdeContext): Rule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5766,6 +5783,7 @@ const deserializeAws_restJson1RuleList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Rule(entry, context); }); + return retVal; }; const deserializeAws_restJson1RulesetItem = (output: any, context: __SerdeContext): RulesetItem => { @@ -5794,7 +5812,7 @@ const deserializeAws_restJson1RulesetItem = (output: any, context: __SerdeContex }; const deserializeAws_restJson1RulesetItemList = (output: any, context: __SerdeContext): RulesetItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5802,6 +5820,7 @@ const deserializeAws_restJson1RulesetItemList = (output: any, context: __SerdeCo } return deserializeAws_restJson1RulesetItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3Location = (output: any, context: __SerdeContext): S3Location => { @@ -5856,7 +5875,7 @@ const deserializeAws_restJson1Schedule = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1ScheduleList = (output: any, context: __SerdeContext): Schedule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5864,10 +5883,11 @@ const deserializeAws_restJson1ScheduleList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Schedule(entry, context); }); + return retVal; }; const deserializeAws_restJson1SheetIndexList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5875,10 +5895,11 @@ const deserializeAws_restJson1SheetIndexList = (output: any, context: __SerdeCon } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SheetNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5886,10 +5907,11 @@ const deserializeAws_restJson1SheetNameList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StatisticList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5897,6 +5919,7 @@ const deserializeAws_restJson1StatisticList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StatisticOverride = (output: any, context: __SerdeContext): StatisticOverride => { @@ -5910,7 +5933,7 @@ const deserializeAws_restJson1StatisticOverride = (output: any, context: __Serde }; const deserializeAws_restJson1StatisticOverrideList = (output: any, context: __SerdeContext): StatisticOverride[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5918,6 +5941,7 @@ const deserializeAws_restJson1StatisticOverrideList = (output: any, context: __S } return deserializeAws_restJson1StatisticOverride(entry, context); }); + return retVal; }; const deserializeAws_restJson1StatisticsConfiguration = ( @@ -5970,7 +5994,7 @@ const deserializeAws_restJson1ValidationConfigurationList = ( output: any, context: __SerdeContext ): ValidationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5978,6 +6002,7 @@ const deserializeAws_restJson1ValidationConfigurationList = ( } return deserializeAws_restJson1ValidationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValuesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-dataexchange/src/protocols/Aws_restJson1.ts b/clients/client-dataexchange/src/protocols/Aws_restJson1.ts index 1c18c84f6ff7..362f9a0be868 100644 --- a/clients/client-dataexchange/src/protocols/Aws_restJson1.ts +++ b/clients/client-dataexchange/src/protocols/Aws_restJson1.ts @@ -3772,7 +3772,7 @@ const deserializeAws_restJson1ListOfAssetDestinationEntry = ( output: any, context: __SerdeContext ): AssetDestinationEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3780,10 +3780,11 @@ const deserializeAws_restJson1ListOfAssetDestinationEntry = ( } return deserializeAws_restJson1AssetDestinationEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfAssetEntry = (output: any, context: __SerdeContext): AssetEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3791,10 +3792,11 @@ const deserializeAws_restJson1ListOfAssetEntry = (output: any, context: __SerdeC } return deserializeAws_restJson1AssetEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfAssetSourceEntry = (output: any, context: __SerdeContext): AssetSourceEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3802,10 +3804,11 @@ const deserializeAws_restJson1ListOfAssetSourceEntry = (output: any, context: __ } return deserializeAws_restJson1AssetSourceEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfDataSetEntry = (output: any, context: __SerdeContext): DataSetEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3813,10 +3816,11 @@ const deserializeAws_restJson1ListOfDataSetEntry = (output: any, context: __Serd } return deserializeAws_restJson1DataSetEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfEventActionEntry = (output: any, context: __SerdeContext): EventActionEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3824,10 +3828,11 @@ const deserializeAws_restJson1ListOfEventActionEntry = (output: any, context: __ } return deserializeAws_restJson1EventActionEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfJobEntry = (output: any, context: __SerdeContext): JobEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3835,10 +3840,11 @@ const deserializeAws_restJson1ListOfJobEntry = (output: any, context: __SerdeCon } return deserializeAws_restJson1JobEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfJobError = (output: any, context: __SerdeContext): JobError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3846,13 +3852,14 @@ const deserializeAws_restJson1ListOfJobError = (output: any, context: __SerdeCon } return deserializeAws_restJson1JobError(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry = ( output: any, context: __SerdeContext ): RedshiftDataShareAssetSourceEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3860,13 +3867,14 @@ const deserializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry = ( } return deserializeAws_restJson1RedshiftDataShareAssetSourceEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfRevisionDestinationEntry = ( output: any, context: __SerdeContext ): RevisionDestinationEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3874,10 +3882,11 @@ const deserializeAws_restJson1ListOfRevisionDestinationEntry = ( } return deserializeAws_restJson1RevisionDestinationEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfRevisionEntry = (output: any, context: __SerdeContext): RevisionEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3885,6 +3894,7 @@ const deserializeAws_restJson1ListOfRevisionEntry = (output: any, context: __Ser } return deserializeAws_restJson1RevisionEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1MapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-datasync/src/protocols/Aws_json1_1.ts b/clients/client-datasync/src/protocols/Aws_json1_1.ts index c5cfbcb63dfa..07375c620799 100644 --- a/clients/client-datasync/src/protocols/Aws_json1_1.ts +++ b/clients/client-datasync/src/protocols/Aws_json1_1.ts @@ -3349,7 +3349,7 @@ const serializeAws_json1_1UpdateTaskRequest = (input: UpdateTaskRequest, context }; const deserializeAws_json1_1AgentArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3357,10 +3357,11 @@ const deserializeAws_json1_1AgentArnList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AgentList = (output: any, context: __SerdeContext): AgentListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3368,6 +3369,7 @@ const deserializeAws_json1_1AgentList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1AgentListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1AgentListEntry = (output: any, context: __SerdeContext): AgentListEntry => { @@ -3758,7 +3760,7 @@ const deserializeAws_json1_1DescribeTaskResponse = (output: any, context: __Serd }; const deserializeAws_json1_1DestinationNetworkInterfaceArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3766,6 +3768,7 @@ const deserializeAws_json1_1DestinationNetworkInterfaceArns = (output: any, cont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Ec2Config = (output: any, context: __SerdeContext): Ec2Config => { @@ -3779,7 +3782,7 @@ const deserializeAws_json1_1Ec2Config = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Ec2SecurityGroupArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3787,10 +3790,11 @@ const deserializeAws_json1_1Ec2SecurityGroupArnList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FilterList = (output: any, context: __SerdeContext): FilterRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3798,6 +3802,7 @@ const deserializeAws_json1_1FilterList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1FilterRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1FilterRule = (output: any, context: __SerdeContext): FilterRule => { @@ -3815,7 +3820,7 @@ const deserializeAws_json1_1HdfsNameNode = (output: any, context: __SerdeContext }; const deserializeAws_json1_1HdfsNameNodeList = (output: any, context: __SerdeContext): HdfsNameNode[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3823,6 +3828,7 @@ const deserializeAws_json1_1HdfsNameNodeList = (output: any, context: __SerdeCon } return deserializeAws_json1_1HdfsNameNode(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalException = (output: any, context: __SerdeContext): InternalException => { @@ -3899,7 +3905,7 @@ const deserializeAws_json1_1ListTasksResponse = (output: any, context: __SerdeCo }; const deserializeAws_json1_1LocationList = (output: any, context: __SerdeContext): LocationListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3907,6 +3913,7 @@ const deserializeAws_json1_1LocationList = (output: any, context: __SerdeContext } return deserializeAws_json1_1LocationListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1LocationListEntry = (output: any, context: __SerdeContext): LocationListEntry => { @@ -3951,7 +3958,7 @@ const deserializeAws_json1_1Options = (output: any, context: __SerdeContext): Op }; const deserializeAws_json1_1OutputTagList = (output: any, context: __SerdeContext): TagListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3959,10 +3966,11 @@ const deserializeAws_json1_1OutputTagList = (output: any, context: __SerdeContex } return deserializeAws_json1_1TagListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1PLSecurityGroupArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3970,10 +3978,11 @@ const deserializeAws_json1_1PLSecurityGroupArnList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PLSubnetArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3981,6 +3990,7 @@ const deserializeAws_json1_1PLSubnetArnList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PrivateLinkConfig = (output: any, context: __SerdeContext): PrivateLinkConfig => { @@ -4018,7 +4028,7 @@ const deserializeAws_json1_1SmbMountOptions = (output: any, context: __SerdeCont }; const deserializeAws_json1_1SourceNetworkInterfaceArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4026,6 +4036,7 @@ const deserializeAws_json1_1SourceNetworkInterfaceArns = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1StartTaskExecutionResponse = ( @@ -4049,7 +4060,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1TaskExecutionList = (output: any, context: __SerdeContext): TaskExecutionListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4057,6 +4068,7 @@ const deserializeAws_json1_1TaskExecutionList = (output: any, context: __SerdeCo } return deserializeAws_json1_1TaskExecutionListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1TaskExecutionListEntry = (output: any, context: __SerdeContext): TaskExecutionListEntry => { @@ -4084,7 +4096,7 @@ const deserializeAws_json1_1TaskExecutionResultDetail = ( }; const deserializeAws_json1_1TaskList = (output: any, context: __SerdeContext): TaskListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4092,6 +4104,7 @@ const deserializeAws_json1_1TaskList = (output: any, context: __SerdeContext): T } return deserializeAws_json1_1TaskListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1TaskListEntry = (output: any, context: __SerdeContext): TaskListEntry => { diff --git a/clients/client-dax/src/protocols/Aws_json1_1.ts b/clients/client-dax/src/protocols/Aws_json1_1.ts index 77f7bea25bcc..0026a88fd850 100644 --- a/clients/client-dax/src/protocols/Aws_json1_1.ts +++ b/clients/client-dax/src/protocols/Aws_json1_1.ts @@ -2419,7 +2419,7 @@ const deserializeAws_json1_1ClusterAlreadyExistsFault = ( }; const deserializeAws_json1_1ClusterList = (output: any, context: __SerdeContext): Cluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2427,6 +2427,7 @@ const deserializeAws_json1_1ClusterList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Cluster(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClusterNotFoundFault = (output: any, context: __SerdeContext): ClusterNotFoundFault => { @@ -2612,7 +2613,7 @@ const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Even }; const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): Event[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2620,6 +2621,7 @@ const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Event(entry, context); }); + return retVal; }; const deserializeAws_json1_1IncreaseReplicationFactorResponse = ( @@ -2728,7 +2730,7 @@ const deserializeAws_json1_1Node = (output: any, context: __SerdeContext): Node }; const deserializeAws_json1_1NodeIdentifierList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2736,10 +2738,11 @@ const deserializeAws_json1_1NodeIdentifierList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NodeList = (output: any, context: __SerdeContext): Node[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2747,6 +2750,7 @@ const deserializeAws_json1_1NodeList = (output: any, context: __SerdeContext): N } return deserializeAws_json1_1Node(entry, context); }); + return retVal; }; const deserializeAws_json1_1NodeNotFoundFault = (output: any, context: __SerdeContext): NodeNotFoundFault => { @@ -2784,7 +2788,7 @@ const deserializeAws_json1_1NodeTypeSpecificValueList = ( output: any, context: __SerdeContext ): NodeTypeSpecificValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2792,6 +2796,7 @@ const deserializeAws_json1_1NodeTypeSpecificValueList = ( } return deserializeAws_json1_1NodeTypeSpecificValue(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotificationConfiguration = ( @@ -2839,7 +2844,7 @@ const deserializeAws_json1_1ParameterGroupAlreadyExistsFault = ( }; const deserializeAws_json1_1ParameterGroupList = (output: any, context: __SerdeContext): ParameterGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2847,6 +2852,7 @@ const deserializeAws_json1_1ParameterGroupList = (output: any, context: __SerdeC } return deserializeAws_json1_1ParameterGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterGroupNotFoundFault = ( @@ -2879,7 +2885,7 @@ const deserializeAws_json1_1ParameterGroupStatus = (output: any, context: __Serd }; const deserializeAws_json1_1ParameterList = (output: any, context: __SerdeContext): Parameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2887,6 +2893,7 @@ const deserializeAws_json1_1ParameterList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Parameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1RebootNodeResponse = (output: any, context: __SerdeContext): RebootNodeResponse => { @@ -2912,7 +2919,7 @@ const deserializeAws_json1_1SecurityGroupMembershipList = ( output: any, context: __SerdeContext ): SecurityGroupMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2920,6 +2927,7 @@ const deserializeAws_json1_1SecurityGroupMembershipList = ( } return deserializeAws_json1_1SecurityGroupMembership(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceLinkedRoleNotFoundFault = ( @@ -2979,7 +2987,7 @@ const deserializeAws_json1_1SubnetGroupInUseFault = (output: any, context: __Ser }; const deserializeAws_json1_1SubnetGroupList = (output: any, context: __SerdeContext): SubnetGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2987,6 +2995,7 @@ const deserializeAws_json1_1SubnetGroupList = (output: any, context: __SerdeCont } return deserializeAws_json1_1SubnetGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubnetGroupNotFoundFault = ( @@ -3014,7 +3023,7 @@ const deserializeAws_json1_1SubnetInUse = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1SubnetList = (output: any, context: __SerdeContext): Subnet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3022,6 +3031,7 @@ const deserializeAws_json1_1SubnetList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Subnet(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubnetQuotaExceededFault = ( @@ -3041,7 +3051,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3049,6 +3059,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagNotFoundFault = (output: any, context: __SerdeContext): TagNotFoundFault => { diff --git a/clients/client-detective/src/protocols/Aws_restJson1.ts b/clients/client-detective/src/protocols/Aws_restJson1.ts index c96e9039d052..57077d614dd5 100644 --- a/clients/client-detective/src/protocols/Aws_restJson1.ts +++ b/clients/client-detective/src/protocols/Aws_restJson1.ts @@ -1737,7 +1737,7 @@ const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: }; const deserializeAws_restJson1AccountIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1745,6 +1745,7 @@ const deserializeAws_restJson1AccountIdList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Administrator = (output: any, context: __SerdeContext): Administrator => { @@ -1759,7 +1760,7 @@ const deserializeAws_restJson1Administrator = (output: any, context: __SerdeCont }; const deserializeAws_restJson1AdministratorList = (output: any, context: __SerdeContext): Administrator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1767,6 +1768,7 @@ const deserializeAws_restJson1AdministratorList = (output: any, context: __Serde } return deserializeAws_restJson1Administrator(entry, context); }); + return retVal; }; const deserializeAws_restJson1Graph = (output: any, context: __SerdeContext): Graph => { @@ -1780,7 +1782,7 @@ const deserializeAws_restJson1Graph = (output: any, context: __SerdeContext): Gr }; const deserializeAws_restJson1GraphList = (output: any, context: __SerdeContext): Graph[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1788,6 +1790,7 @@ const deserializeAws_restJson1GraphList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Graph(entry, context); }); + return retVal; }; const deserializeAws_restJson1MemberDetail = (output: any, context: __SerdeContext): MemberDetail => { @@ -1822,7 +1825,7 @@ const deserializeAws_restJson1MemberDetail = (output: any, context: __SerdeConte }; const deserializeAws_restJson1MemberDetailList = (output: any, context: __SerdeContext): MemberDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1830,6 +1833,7 @@ const deserializeAws_restJson1MemberDetailList = (output: any, context: __SerdeC } return deserializeAws_restJson1MemberDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -1852,7 +1856,7 @@ const deserializeAws_restJson1UnprocessedAccount = (output: any, context: __Serd }; const deserializeAws_restJson1UnprocessedAccountList = (output: any, context: __SerdeContext): UnprocessedAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1860,6 +1864,7 @@ const deserializeAws_restJson1UnprocessedAccountList = (output: any, context: __ } return deserializeAws_restJson1UnprocessedAccount(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-device-farm/src/protocols/Aws_json1_1.ts b/clients/client-device-farm/src/protocols/Aws_json1_1.ts index b80eb3bcabf5..93f5e97f6e83 100644 --- a/clients/client-device-farm/src/protocols/Aws_json1_1.ts +++ b/clients/client-device-farm/src/protocols/Aws_json1_1.ts @@ -6670,7 +6670,7 @@ const deserializeAws_json1_1AccountSettings = (output: any, context: __SerdeCont }; const deserializeAws_json1_1AndroidPaths = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6678,6 +6678,7 @@ const deserializeAws_json1_1AndroidPaths = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ArgumentException = (output: any, context: __SerdeContext): ArgumentException => { @@ -6697,7 +6698,7 @@ const deserializeAws_json1_1Artifact = (output: any, context: __SerdeContext): A }; const deserializeAws_json1_1Artifacts = (output: any, context: __SerdeContext): Artifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6705,6 +6706,7 @@ const deserializeAws_json1_1Artifacts = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Artifact(entry, context); }); + return retVal; }; const deserializeAws_json1_1CannotDeleteException = (output: any, context: __SerdeContext): CannotDeleteException => { @@ -6945,7 +6947,7 @@ const deserializeAws_json1_1DeviceFilter = (output: any, context: __SerdeContext }; const deserializeAws_json1_1DeviceFilters = (output: any, context: __SerdeContext): DeviceFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6953,10 +6955,11 @@ const deserializeAws_json1_1DeviceFilters = (output: any, context: __SerdeContex } return deserializeAws_json1_1DeviceFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceFilterValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6964,10 +6967,11 @@ const deserializeAws_json1_1DeviceFilterValues = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeviceHostPaths = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6975,6 +6979,7 @@ const deserializeAws_json1_1DeviceHostPaths = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeviceInstance = (output: any, context: __SerdeContext): DeviceInstance => { @@ -6995,7 +7000,7 @@ const deserializeAws_json1_1DeviceInstance = (output: any, context: __SerdeConte }; const deserializeAws_json1_1DeviceInstances = (output: any, context: __SerdeContext): DeviceInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7003,6 +7008,7 @@ const deserializeAws_json1_1DeviceInstances = (output: any, context: __SerdeCont } return deserializeAws_json1_1DeviceInstance(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceMinutes = (output: any, context: __SerdeContext): DeviceMinutes => { @@ -7048,7 +7054,7 @@ const deserializeAws_json1_1DevicePoolCompatibilityResults = ( output: any, context: __SerdeContext ): DevicePoolCompatibilityResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7056,10 +7062,11 @@ const deserializeAws_json1_1DevicePoolCompatibilityResults = ( } return deserializeAws_json1_1DevicePoolCompatibilityResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1DevicePools = (output: any, context: __SerdeContext): DevicePool[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7067,10 +7074,11 @@ const deserializeAws_json1_1DevicePools = (output: any, context: __SerdeContext) } return deserializeAws_json1_1DevicePool(entry, context); }); + return retVal; }; const deserializeAws_json1_1Devices = (output: any, context: __SerdeContext): Device[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7078,6 +7086,7 @@ const deserializeAws_json1_1Devices = (output: any, context: __SerdeContext): De } return deserializeAws_json1_1Device(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceSelectionResult = (output: any, context: __SerdeContext): DeviceSelectionResult => { @@ -7301,7 +7310,7 @@ const deserializeAws_json1_1IncompatibilityMessages = ( output: any, context: __SerdeContext ): IncompatibilityMessage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7309,6 +7318,7 @@ const deserializeAws_json1_1IncompatibilityMessages = ( } return deserializeAws_json1_1IncompatibilityMessage(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstallToRemoteAccessSessionResult = ( @@ -7324,7 +7334,7 @@ const deserializeAws_json1_1InstallToRemoteAccessSessionResult = ( }; const deserializeAws_json1_1InstanceLabels = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7332,6 +7342,7 @@ const deserializeAws_json1_1InstanceLabels = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InstanceProfile = (output: any, context: __SerdeContext): InstanceProfile => { @@ -7349,7 +7360,7 @@ const deserializeAws_json1_1InstanceProfile = (output: any, context: __SerdeCont }; const deserializeAws_json1_1InstanceProfiles = (output: any, context: __SerdeContext): InstanceProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7357,6 +7368,7 @@ const deserializeAws_json1_1InstanceProfiles = (output: any, context: __SerdeCon } return deserializeAws_json1_1InstanceProfile(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalServiceException = ( @@ -7378,7 +7390,7 @@ const deserializeAws_json1_1InvalidOperationException = ( }; const deserializeAws_json1_1IosPaths = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7386,6 +7398,7 @@ const deserializeAws_json1_1IosPaths = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Job = (output: any, context: __SerdeContext): Job => { @@ -7427,7 +7440,7 @@ const deserializeAws_json1_1Job = (output: any, context: __SerdeContext): Job => }; const deserializeAws_json1_1Jobs = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7435,6 +7448,7 @@ const deserializeAws_json1_1Jobs = (output: any, context: __SerdeContext): Job[] } return deserializeAws_json1_1Job(entry, context); }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -7761,7 +7775,7 @@ const deserializeAws_json1_1NetworkProfile = (output: any, context: __SerdeConte }; const deserializeAws_json1_1NetworkProfiles = (output: any, context: __SerdeContext): NetworkProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7769,6 +7783,7 @@ const deserializeAws_json1_1NetworkProfiles = (output: any, context: __SerdeCont } return deserializeAws_json1_1NetworkProfile(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotEligibleException = (output: any, context: __SerdeContext): NotEligibleException => { @@ -7804,7 +7819,7 @@ const deserializeAws_json1_1OfferingPromotion = (output: any, context: __SerdeCo }; const deserializeAws_json1_1OfferingPromotions = (output: any, context: __SerdeContext): OfferingPromotion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7812,10 +7827,11 @@ const deserializeAws_json1_1OfferingPromotions = (output: any, context: __SerdeC } return deserializeAws_json1_1OfferingPromotion(entry, context); }); + return retVal; }; const deserializeAws_json1_1Offerings = (output: any, context: __SerdeContext): Offering[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7823,6 +7839,7 @@ const deserializeAws_json1_1Offerings = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Offering(entry, context); }); + return retVal; }; const deserializeAws_json1_1OfferingStatus = (output: any, context: __SerdeContext): OfferingStatus => { @@ -7875,7 +7892,7 @@ const deserializeAws_json1_1OfferingTransaction = (output: any, context: __Serde }; const deserializeAws_json1_1OfferingTransactions = (output: any, context: __SerdeContext): OfferingTransaction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7883,10 +7900,11 @@ const deserializeAws_json1_1OfferingTransactions = (output: any, context: __Serd } return deserializeAws_json1_1OfferingTransaction(entry, context); }); + return retVal; }; const deserializeAws_json1_1PackageIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7894,6 +7912,7 @@ const deserializeAws_json1_1PackageIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Problem = (output: any, context: __SerdeContext): Problem => { @@ -7931,7 +7950,7 @@ const deserializeAws_json1_1ProblemDetail = (output: any, context: __SerdeContex }; const deserializeAws_json1_1Problems = (output: any, context: __SerdeContext): Problem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7939,6 +7958,7 @@ const deserializeAws_json1_1Problems = (output: any, context: __SerdeContext): P } return deserializeAws_json1_1Problem(entry, context); }); + return retVal; }; const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Project => { @@ -7954,7 +7974,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr }; const deserializeAws_json1_1Projects = (output: any, context: __SerdeContext): Project[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7962,6 +7982,7 @@ const deserializeAws_json1_1Projects = (output: any, context: __SerdeContext): P } return deserializeAws_json1_1Project(entry, context); }); + return retVal; }; const deserializeAws_json1_1PurchasedDevicesMap = (output: any, context: __SerdeContext): { [key: string]: number } => { @@ -8008,7 +8029,7 @@ const deserializeAws_json1_1RecurringCharge = (output: any, context: __SerdeCont }; const deserializeAws_json1_1RecurringCharges = (output: any, context: __SerdeContext): RecurringCharge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8016,6 +8037,7 @@ const deserializeAws_json1_1RecurringCharges = (output: any, context: __SerdeCon } return deserializeAws_json1_1RecurringCharge(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemoteAccessSession = (output: any, context: __SerdeContext): RemoteAccessSession => { @@ -8060,7 +8082,7 @@ const deserializeAws_json1_1RemoteAccessSession = (output: any, context: __Serde }; const deserializeAws_json1_1RemoteAccessSessions = (output: any, context: __SerdeContext): RemoteAccessSession[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8068,6 +8090,7 @@ const deserializeAws_json1_1RemoteAccessSessions = (output: any, context: __Serd } return deserializeAws_json1_1RemoteAccessSession(entry, context); }); + return retVal; }; const deserializeAws_json1_1RenewOfferingResult = (output: any, context: __SerdeContext): RenewOfferingResult => { @@ -8095,7 +8118,7 @@ const deserializeAws_json1_1Rule = (output: any, context: __SerdeContext): Rule }; const deserializeAws_json1_1Rules = (output: any, context: __SerdeContext): Rule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8103,6 +8126,7 @@ const deserializeAws_json1_1Rules = (output: any, context: __SerdeContext): Rule } return deserializeAws_json1_1Rule(entry, context); }); + return retVal; }; const deserializeAws_json1_1Run = (output: any, context: __SerdeContext): Run => { @@ -8172,7 +8196,7 @@ const deserializeAws_json1_1Run = (output: any, context: __SerdeContext): Run => }; const deserializeAws_json1_1Runs = (output: any, context: __SerdeContext): Run[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8180,6 +8204,7 @@ const deserializeAws_json1_1Runs = (output: any, context: __SerdeContext): Run[] } return deserializeAws_json1_1Run(entry, context); }); + return retVal; }; const deserializeAws_json1_1Sample = (output: any, context: __SerdeContext): Sample => { @@ -8191,7 +8216,7 @@ const deserializeAws_json1_1Sample = (output: any, context: __SerdeContext): Sam }; const deserializeAws_json1_1Samples = (output: any, context: __SerdeContext): Sample[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8199,6 +8224,7 @@ const deserializeAws_json1_1Samples = (output: any, context: __SerdeContext): Sa } return deserializeAws_json1_1Sample(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScheduleRunResult = (output: any, context: __SerdeContext): ScheduleRunResult => { @@ -8208,7 +8234,7 @@ const deserializeAws_json1_1ScheduleRunResult = (output: any, context: __SerdeCo }; const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8216,6 +8242,7 @@ const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ServiceAccountException = ( @@ -8252,7 +8279,7 @@ const deserializeAws_json1_1StopRunResult = (output: any, context: __SerdeContex }; const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8260,6 +8287,7 @@ const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Suite = (output: any, context: __SerdeContext): Suite => { @@ -8294,7 +8322,7 @@ const deserializeAws_json1_1Suite = (output: any, context: __SerdeContext): Suit }; const deserializeAws_json1_1Suites = (output: any, context: __SerdeContext): Suite[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8302,6 +8330,7 @@ const deserializeAws_json1_1Suites = (output: any, context: __SerdeContext): Sui } return deserializeAws_json1_1Suite(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -8312,7 +8341,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8320,6 +8349,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagOperationException = (output: any, context: __SerdeContext): TagOperationException => { @@ -8388,7 +8418,7 @@ const deserializeAws_json1_1TestGridProject = (output: any, context: __SerdeCont }; const deserializeAws_json1_1TestGridProjects = (output: any, context: __SerdeContext): TestGridProject[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8396,6 +8426,7 @@ const deserializeAws_json1_1TestGridProjects = (output: any, context: __SerdeCon } return deserializeAws_json1_1TestGridProject(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestGridSession = (output: any, context: __SerdeContext): TestGridSession => { @@ -8432,7 +8463,7 @@ const deserializeAws_json1_1TestGridSessionActions = ( output: any, context: __SerdeContext ): TestGridSessionAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8440,6 +8471,7 @@ const deserializeAws_json1_1TestGridSessionActions = ( } return deserializeAws_json1_1TestGridSessionAction(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestGridSessionArtifact = ( @@ -8457,7 +8489,7 @@ const deserializeAws_json1_1TestGridSessionArtifacts = ( output: any, context: __SerdeContext ): TestGridSessionArtifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8465,10 +8497,11 @@ const deserializeAws_json1_1TestGridSessionArtifacts = ( } return deserializeAws_json1_1TestGridSessionArtifact(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestGridSessions = (output: any, context: __SerdeContext): TestGridSession[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8476,6 +8509,7 @@ const deserializeAws_json1_1TestGridSessions = (output: any, context: __SerdeCon } return deserializeAws_json1_1TestGridSession(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestGridVpcConfig = (output: any, context: __SerdeContext): TestGridVpcConfig => { @@ -8493,7 +8527,7 @@ const deserializeAws_json1_1TestGridVpcConfig = (output: any, context: __SerdeCo }; const deserializeAws_json1_1Tests = (output: any, context: __SerdeContext): Test[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8501,6 +8535,7 @@ const deserializeAws_json1_1Tests = (output: any, context: __SerdeContext): Test } return deserializeAws_json1_1Test(entry, context); }); + return retVal; }; const deserializeAws_json1_1TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => { @@ -8528,7 +8563,7 @@ const deserializeAws_json1_1UniqueProblem = (output: any, context: __SerdeContex }; const deserializeAws_json1_1UniqueProblems = (output: any, context: __SerdeContext): UniqueProblem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8536,6 +8571,7 @@ const deserializeAws_json1_1UniqueProblems = (output: any, context: __SerdeConte } return deserializeAws_json1_1UniqueProblem(entry, context); }); + return retVal; }; const deserializeAws_json1_1UniqueProblemsByExecutionResultMap = ( @@ -8666,7 +8702,7 @@ const deserializeAws_json1_1Upload = (output: any, context: __SerdeContext): Upl }; const deserializeAws_json1_1Uploads = (output: any, context: __SerdeContext): Upload[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8674,6 +8710,7 @@ const deserializeAws_json1_1Uploads = (output: any, context: __SerdeContext): Up } return deserializeAws_json1_1Upload(entry, context); }); + return retVal; }; const deserializeAws_json1_1VPCEConfiguration = (output: any, context: __SerdeContext): VPCEConfiguration => { @@ -8687,7 +8724,7 @@ const deserializeAws_json1_1VPCEConfiguration = (output: any, context: __SerdeCo }; const deserializeAws_json1_1VPCEConfigurations = (output: any, context: __SerdeContext): VPCEConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8695,6 +8732,7 @@ const deserializeAws_json1_1VPCEConfigurations = (output: any, context: __SerdeC } return deserializeAws_json1_1VPCEConfiguration(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts index 1301146319a9..18571a6835c5 100644 --- a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts +++ b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts @@ -3163,7 +3163,7 @@ const deserializeAws_restJson1AccountHealth = (output: any, context: __SerdeCont }; const deserializeAws_restJson1AccountHealths = (output: any, context: __SerdeContext): AccountHealth[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3171,6 +3171,7 @@ const deserializeAws_restJson1AccountHealths = (output: any, context: __SerdeCon } return deserializeAws_restJson1AccountHealth(entry, context); }); + return retVal; }; const deserializeAws_restJson1AccountInsightHealth = (output: any, context: __SerdeContext): AccountInsightHealth => { @@ -3204,7 +3205,7 @@ const deserializeAws_restJson1AnomalyResource = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AnomalyResources = (output: any, context: __SerdeContext): AnomalyResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3212,6 +3213,7 @@ const deserializeAws_restJson1AnomalyResources = (output: any, context: __SerdeC } return deserializeAws_restJson1AnomalyResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1AnomalySourceDetails = (output: any, context: __SerdeContext): AnomalySourceDetails => { @@ -3241,7 +3243,7 @@ const deserializeAws_restJson1AnomalyTimeRange = (output: any, context: __SerdeC }; const deserializeAws_restJson1AssociatedResourceArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3249,10 +3251,11 @@ const deserializeAws_restJson1AssociatedResourceArns = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Channels = (output: any, context: __SerdeContext): NotificationChannel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3260,6 +3263,7 @@ const deserializeAws_restJson1Channels = (output: any, context: __SerdeContext): } return deserializeAws_restJson1NotificationChannel(entry, context); }); + return retVal; }; const deserializeAws_restJson1CloudFormationCollection = ( @@ -3312,7 +3316,7 @@ const deserializeAws_restJson1CloudFormationHealths = ( output: any, context: __SerdeContext ): CloudFormationHealth[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3320,6 +3324,7 @@ const deserializeAws_restJson1CloudFormationHealths = ( } return deserializeAws_restJson1CloudFormationHealth(entry, context); }); + return retVal; }; const deserializeAws_restJson1CloudWatchMetricsDataSummary = ( @@ -3360,7 +3365,7 @@ const deserializeAws_restJson1CloudWatchMetricsDetails = ( output: any, context: __SerdeContext ): CloudWatchMetricsDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3368,6 +3373,7 @@ const deserializeAws_restJson1CloudWatchMetricsDetails = ( } return deserializeAws_restJson1CloudWatchMetricsDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1CloudWatchMetricsDimension = ( @@ -3384,7 +3390,7 @@ const deserializeAws_restJson1CloudWatchMetricsDimensions = ( output: any, context: __SerdeContext ): CloudWatchMetricsDimension[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3392,6 +3398,7 @@ const deserializeAws_restJson1CloudWatchMetricsDimensions = ( } return deserializeAws_restJson1CloudWatchMetricsDimension(entry, context); }); + return retVal; }; const deserializeAws_restJson1CostEstimationResourceCollectionFilter = ( @@ -3411,7 +3418,7 @@ const deserializeAws_restJson1CostEstimationResourceCollectionFilter = ( }; const deserializeAws_restJson1CostEstimationStackNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3419,10 +3426,11 @@ const deserializeAws_restJson1CostEstimationStackNames = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CostEstimationTagValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3430,6 +3438,7 @@ const deserializeAws_restJson1CostEstimationTagValues = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CostEstimationTimeRange = ( @@ -3479,7 +3488,7 @@ const deserializeAws_restJson1EventResource = (output: any, context: __SerdeCont }; const deserializeAws_restJson1EventResources = (output: any, context: __SerdeContext): EventResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3487,10 +3496,11 @@ const deserializeAws_restJson1EventResources = (output: any, context: __SerdeCon } return deserializeAws_restJson1EventResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1Events = (output: any, context: __SerdeContext): Event[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3498,6 +3508,7 @@ const deserializeAws_restJson1Events = (output: any, context: __SerdeContext): E } return deserializeAws_restJson1Event(entry, context); }); + return retVal; }; const deserializeAws_restJson1InsightFeedback = (output: any, context: __SerdeContext): InsightFeedback => { @@ -3574,7 +3585,7 @@ const deserializeAws_restJson1PerformanceInsightsMetricDimensions = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3582,6 +3593,7 @@ const deserializeAws_restJson1PerformanceInsightsMetricDimensions = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PerformanceInsightsMetricFilterMap = ( @@ -3646,7 +3658,7 @@ const deserializeAws_restJson1PerformanceInsightsMetricsDetails = ( output: any, context: __SerdeContext ): PerformanceInsightsMetricsDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3654,6 +3666,7 @@ const deserializeAws_restJson1PerformanceInsightsMetricsDetails = ( } return deserializeAws_restJson1PerformanceInsightsMetricsDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = ( @@ -3689,7 +3702,7 @@ const deserializeAws_restJson1PerformanceInsightsReferenceDataList = ( output: any, context: __SerdeContext ): PerformanceInsightsReferenceData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3697,6 +3710,7 @@ const deserializeAws_restJson1PerformanceInsightsReferenceDataList = ( } return deserializeAws_restJson1PerformanceInsightsReferenceData(entry, context); }); + return retVal; }; const deserializeAws_restJson1PerformanceInsightsReferenceMetric = ( @@ -3734,7 +3748,7 @@ const deserializeAws_restJson1PerformanceInsightsStats = ( output: any, context: __SerdeContext ): PerformanceInsightsStat[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3742,6 +3756,7 @@ const deserializeAws_restJson1PerformanceInsightsStats = ( } return deserializeAws_restJson1PerformanceInsightsStat(entry, context); }); + return retVal; }; const deserializeAws_restJson1PredictionTimeRange = (output: any, context: __SerdeContext): PredictionTimeRange => { @@ -3761,7 +3776,7 @@ const deserializeAws_restJson1ProactiveAnomalies = ( output: any, context: __SerdeContext ): ProactiveAnomalySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3769,6 +3784,7 @@ const deserializeAws_restJson1ProactiveAnomalies = ( } return deserializeAws_restJson1ProactiveAnomalySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProactiveAnomaly = (output: any, context: __SerdeContext): ProactiveAnomaly => { @@ -3865,7 +3881,7 @@ const deserializeAws_restJson1ProactiveInsight = (output: any, context: __SerdeC }; const deserializeAws_restJson1ProactiveInsights = (output: any, context: __SerdeContext): ProactiveInsightSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3873,6 +3889,7 @@ const deserializeAws_restJson1ProactiveInsights = (output: any, context: __Serde } return deserializeAws_restJson1ProactiveInsightSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProactiveInsightSummary = ( @@ -3911,7 +3928,7 @@ const deserializeAws_restJson1ProactiveOrganizationInsights = ( output: any, context: __SerdeContext ): ProactiveOrganizationInsightSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3919,6 +3936,7 @@ const deserializeAws_restJson1ProactiveOrganizationInsights = ( } return deserializeAws_restJson1ProactiveOrganizationInsightSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProactiveOrganizationInsightSummary = ( @@ -3952,7 +3970,7 @@ const deserializeAws_restJson1ProactiveOrganizationInsightSummary = ( }; const deserializeAws_restJson1ReactiveAnomalies = (output: any, context: __SerdeContext): ReactiveAnomalySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3960,6 +3978,7 @@ const deserializeAws_restJson1ReactiveAnomalies = (output: any, context: __Serde } return deserializeAws_restJson1ReactiveAnomalySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReactiveAnomaly = (output: any, context: __SerdeContext): ReactiveAnomaly => { @@ -4050,7 +4069,7 @@ const deserializeAws_restJson1ReactiveInsight = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ReactiveInsights = (output: any, context: __SerdeContext): ReactiveInsightSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4058,6 +4077,7 @@ const deserializeAws_restJson1ReactiveInsights = (output: any, context: __SerdeC } return deserializeAws_restJson1ReactiveInsightSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReactiveInsightSummary = ( @@ -4092,7 +4112,7 @@ const deserializeAws_restJson1ReactiveOrganizationInsights = ( output: any, context: __SerdeContext ): ReactiveOrganizationInsightSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4100,6 +4120,7 @@ const deserializeAws_restJson1ReactiveOrganizationInsights = ( } return deserializeAws_restJson1ReactiveOrganizationInsightSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReactiveOrganizationInsightSummary = ( @@ -4149,7 +4170,7 @@ const deserializeAws_restJson1RecommendationRelatedAnomalies = ( output: any, context: __SerdeContext ): RecommendationRelatedAnomaly[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4157,6 +4178,7 @@ const deserializeAws_restJson1RecommendationRelatedAnomalies = ( } return deserializeAws_restJson1RecommendationRelatedAnomaly(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationRelatedAnomaly = ( @@ -4190,7 +4212,7 @@ const deserializeAws_restJson1RecommendationRelatedAnomalyResources = ( output: any, context: __SerdeContext ): RecommendationRelatedAnomalyResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4198,6 +4220,7 @@ const deserializeAws_restJson1RecommendationRelatedAnomalyResources = ( } return deserializeAws_restJson1RecommendationRelatedAnomalyResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationRelatedAnomalySourceDetail = ( @@ -4226,7 +4249,7 @@ const deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetail output: any, context: __SerdeContext ): RecommendationRelatedCloudWatchMetricsSourceDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4234,6 +4257,7 @@ const deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetail } return deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationRelatedEvent = ( @@ -4263,7 +4287,7 @@ const deserializeAws_restJson1RecommendationRelatedEventResources = ( output: any, context: __SerdeContext ): RecommendationRelatedEventResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4271,13 +4295,14 @@ const deserializeAws_restJson1RecommendationRelatedEventResources = ( } return deserializeAws_restJson1RecommendationRelatedEventResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationRelatedEvents = ( output: any, context: __SerdeContext ): RecommendationRelatedEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4285,10 +4310,11 @@ const deserializeAws_restJson1RecommendationRelatedEvents = ( } return deserializeAws_restJson1RecommendationRelatedEvent(entry, context); }); + return retVal; }; const deserializeAws_restJson1Recommendations = (output: any, context: __SerdeContext): Recommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4296,13 +4322,14 @@ const deserializeAws_restJson1Recommendations = (output: any, context: __SerdeCo } return deserializeAws_restJson1Recommendation(entry, context); }); + return retVal; }; const deserializeAws_restJson1RelatedAnomalySourceDetails = ( output: any, context: __SerdeContext ): RecommendationRelatedAnomalySourceDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4310,6 +4337,7 @@ const deserializeAws_restJson1RelatedAnomalySourceDetails = ( } return deserializeAws_restJson1RecommendationRelatedAnomalySourceDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceCollection = (output: any, context: __SerdeContext): ResourceCollection => { @@ -4361,7 +4389,7 @@ const deserializeAws_restJson1ServiceHealth = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ServiceHealths = (output: any, context: __SerdeContext): ServiceHealth[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4369,6 +4397,7 @@ const deserializeAws_restJson1ServiceHealths = (output: any, context: __SerdeCon } return deserializeAws_restJson1ServiceHealth(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServiceInsightHealth = (output: any, context: __SerdeContext): ServiceInsightHealth => { @@ -4391,7 +4420,7 @@ const deserializeAws_restJson1ServiceIntegrationConfig = ( }; const deserializeAws_restJson1ServiceNames = (output: any, context: __SerdeContext): (ServiceName | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4399,6 +4428,7 @@ const deserializeAws_restJson1ServiceNames = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ServiceResourceCost = (output: any, context: __SerdeContext): ServiceResourceCost => { @@ -4412,7 +4442,7 @@ const deserializeAws_restJson1ServiceResourceCost = (output: any, context: __Ser }; const deserializeAws_restJson1ServiceResourceCosts = (output: any, context: __SerdeContext): ServiceResourceCost[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4420,6 +4450,7 @@ const deserializeAws_restJson1ServiceResourceCosts = (output: any, context: __Se } return deserializeAws_restJson1ServiceResourceCost(entry, context); }); + return retVal; }; const deserializeAws_restJson1SnsChannelConfig = (output: any, context: __SerdeContext): SnsChannelConfig => { @@ -4429,7 +4460,7 @@ const deserializeAws_restJson1SnsChannelConfig = (output: any, context: __SerdeC }; const deserializeAws_restJson1StackNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4437,6 +4468,7 @@ const deserializeAws_restJson1StackNames = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagCollection = (output: any, context: __SerdeContext): TagCollection => { @@ -4460,7 +4492,7 @@ const deserializeAws_restJson1TagCollectionFilter = (output: any, context: __Ser }; const deserializeAws_restJson1TagCollectionFilters = (output: any, context: __SerdeContext): TagCollectionFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4468,10 +4500,11 @@ const deserializeAws_restJson1TagCollectionFilters = (output: any, context: __Se } return deserializeAws_restJson1TagCollectionFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagCollections = (output: any, context: __SerdeContext): TagCollection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4479,6 +4512,7 @@ const deserializeAws_restJson1TagCollections = (output: any, context: __SerdeCon } return deserializeAws_restJson1TagCollection(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = ( @@ -4498,7 +4532,7 @@ const deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = ( output: any, context: __SerdeContext ): TagCostEstimationResourceCollectionFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4506,6 +4540,7 @@ const deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = ( } return deserializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagHealth = (output: any, context: __SerdeContext): TagHealth => { @@ -4520,7 +4555,7 @@ const deserializeAws_restJson1TagHealth = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1TagHealths = (output: any, context: __SerdeContext): TagHealth[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4528,10 +4563,11 @@ const deserializeAws_restJson1TagHealths = (output: any, context: __SerdeContext } return deserializeAws_restJson1TagHealth(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4539,6 +4575,7 @@ const deserializeAws_restJson1TagValues = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TimestampMetricValuePair = ( @@ -4558,7 +4595,7 @@ const deserializeAws_restJson1TimestampMetricValuePairList = ( output: any, context: __SerdeContext ): TimestampMetricValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4566,6 +4603,7 @@ const deserializeAws_restJson1TimestampMetricValuePairList = ( } return deserializeAws_restJson1TimestampMetricValuePair(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValidationExceptionField = ( @@ -4582,7 +4620,7 @@ const deserializeAws_restJson1ValidationExceptionFields = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4590,6 +4628,7 @@ const deserializeAws_restJson1ValidationExceptionFields = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-direct-connect/src/protocols/Aws_json1_1.ts b/clients/client-direct-connect/src/protocols/Aws_json1_1.ts index 78ab80994241..502511e6deff 100644 --- a/clients/client-direct-connect/src/protocols/Aws_json1_1.ts +++ b/clients/client-direct-connect/src/protocols/Aws_json1_1.ts @@ -5158,7 +5158,7 @@ const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult }; const deserializeAws_json1_1AgreementList = (output: any, context: __SerdeContext): CustomerAgreement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5166,6 +5166,7 @@ const deserializeAws_json1_1AgreementList = (output: any, context: __SerdeContex } return deserializeAws_json1_1CustomerAgreement(entry, context); }); + return retVal; }; const deserializeAws_json1_1AllocateTransitVirtualInterfaceResult = ( @@ -5203,7 +5204,7 @@ const deserializeAws_json1_1AssociateMacSecKeyResponse = ( }; const deserializeAws_json1_1AvailableMacSecPortSpeeds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5211,10 +5212,11 @@ const deserializeAws_json1_1AvailableMacSecPortSpeeds = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AvailablePortSpeeds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5222,6 +5224,7 @@ const deserializeAws_json1_1AvailablePortSpeeds = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BGPPeer = (output: any, context: __SerdeContext): BGPPeer => { @@ -5240,7 +5243,7 @@ const deserializeAws_json1_1BGPPeer = (output: any, context: __SerdeContext): BG }; const deserializeAws_json1_1BGPPeerIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5248,10 +5251,11 @@ const deserializeAws_json1_1BGPPeerIdList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BGPPeerList = (output: any, context: __SerdeContext): BGPPeer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5259,6 +5263,7 @@ const deserializeAws_json1_1BGPPeerList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1BGPPeer(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfirmConnectionResponse = ( @@ -5343,7 +5348,7 @@ const deserializeAws_json1_1Connection = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ConnectionList = (output: any, context: __SerdeContext): Connection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5351,6 +5356,7 @@ const deserializeAws_json1_1ConnectionList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Connection(entry, context); }); + return retVal; }; const deserializeAws_json1_1Connections = (output: any, context: __SerdeContext): Connections => { @@ -5657,7 +5663,7 @@ const deserializeAws_json1_1DirectConnectGatewayAssociationList = ( output: any, context: __SerdeContext ): DirectConnectGatewayAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5665,6 +5671,7 @@ const deserializeAws_json1_1DirectConnectGatewayAssociationList = ( } return deserializeAws_json1_1DirectConnectGatewayAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1DirectConnectGatewayAssociationProposal = ( @@ -5697,7 +5704,7 @@ const deserializeAws_json1_1DirectConnectGatewayAssociationProposalList = ( output: any, context: __SerdeContext ): DirectConnectGatewayAssociationProposal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5705,6 +5712,7 @@ const deserializeAws_json1_1DirectConnectGatewayAssociationProposalList = ( } return deserializeAws_json1_1DirectConnectGatewayAssociationProposal(entry, context); }); + return retVal; }; const deserializeAws_json1_1DirectConnectGatewayAttachment = ( @@ -5726,7 +5734,7 @@ const deserializeAws_json1_1DirectConnectGatewayAttachmentList = ( output: any, context: __SerdeContext ): DirectConnectGatewayAttachment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5734,13 +5742,14 @@ const deserializeAws_json1_1DirectConnectGatewayAttachmentList = ( } return deserializeAws_json1_1DirectConnectGatewayAttachment(entry, context); }); + return retVal; }; const deserializeAws_json1_1DirectConnectGatewayList = ( output: any, context: __SerdeContext ): DirectConnectGateway[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5748,6 +5757,7 @@ const deserializeAws_json1_1DirectConnectGatewayList = ( } return deserializeAws_json1_1DirectConnectGateway(entry, context); }); + return retVal; }; const deserializeAws_json1_1DirectConnectServerException = ( @@ -5808,7 +5818,7 @@ const deserializeAws_json1_1Interconnect = (output: any, context: __SerdeContext }; const deserializeAws_json1_1InterconnectList = (output: any, context: __SerdeContext): Interconnect[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5816,6 +5826,7 @@ const deserializeAws_json1_1InterconnectList = (output: any, context: __SerdeCon } return deserializeAws_json1_1Interconnect(entry, context); }); + return retVal; }; const deserializeAws_json1_1Interconnects = (output: any, context: __SerdeContext): Interconnects => { @@ -5863,7 +5874,7 @@ const deserializeAws_json1_1Lag = (output: any, context: __SerdeContext): Lag => }; const deserializeAws_json1_1LagList = (output: any, context: __SerdeContext): Lag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5871,6 +5882,7 @@ const deserializeAws_json1_1LagList = (output: any, context: __SerdeContext): La } return deserializeAws_json1_1Lag(entry, context); }); + return retVal; }; const deserializeAws_json1_1Lags = (output: any, context: __SerdeContext): Lags => { @@ -5926,7 +5938,7 @@ const deserializeAws_json1_1Location = (output: any, context: __SerdeContext): L }; const deserializeAws_json1_1LocationList = (output: any, context: __SerdeContext): Location[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5934,6 +5946,7 @@ const deserializeAws_json1_1LocationList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Location(entry, context); }); + return retVal; }; const deserializeAws_json1_1Locations = (output: any, context: __SerdeContext): Locations => { @@ -5955,7 +5968,7 @@ const deserializeAws_json1_1MacSecKey = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1MacSecKeyList = (output: any, context: __SerdeContext): MacSecKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5963,10 +5976,11 @@ const deserializeAws_json1_1MacSecKeyList = (output: any, context: __SerdeContex } return deserializeAws_json1_1MacSecKey(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProviderList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5974,6 +5988,7 @@ const deserializeAws_json1_1ProviderList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceTag = (output: any, context: __SerdeContext): ResourceTag => { @@ -5987,7 +6002,7 @@ const deserializeAws_json1_1ResourceTag = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ResourceTagList = (output: any, context: __SerdeContext): ResourceTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5995,6 +6010,7 @@ const deserializeAws_json1_1ResourceTagList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ResourceTag(entry, context); }); + return retVal; }; const deserializeAws_json1_1RouteFilterPrefix = (output: any, context: __SerdeContext): RouteFilterPrefix => { @@ -6004,7 +6020,7 @@ const deserializeAws_json1_1RouteFilterPrefix = (output: any, context: __SerdeCo }; const deserializeAws_json1_1RouteFilterPrefixList = (output: any, context: __SerdeContext): RouteFilterPrefix[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6012,6 +6028,7 @@ const deserializeAws_json1_1RouteFilterPrefixList = (output: any, context: __Ser } return deserializeAws_json1_1RouteFilterPrefix(entry, context); }); + return retVal; }; const deserializeAws_json1_1RouterType = (output: any, context: __SerdeContext): RouterType => { @@ -6057,7 +6074,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6065,6 +6082,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -6113,7 +6131,7 @@ const deserializeAws_json1_1VirtualGateway = (output: any, context: __SerdeConte }; const deserializeAws_json1_1VirtualGatewayList = (output: any, context: __SerdeContext): VirtualGateway[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6121,6 +6139,7 @@ const deserializeAws_json1_1VirtualGatewayList = (output: any, context: __SerdeC } return deserializeAws_json1_1VirtualGateway(entry, context); }); + return retVal; }; const deserializeAws_json1_1VirtualGateways = (output: any, context: __SerdeContext): VirtualGateways => { @@ -6173,7 +6192,7 @@ const deserializeAws_json1_1VirtualInterface = (output: any, context: __SerdeCon }; const deserializeAws_json1_1VirtualInterfaceList = (output: any, context: __SerdeContext): VirtualInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6181,6 +6200,7 @@ const deserializeAws_json1_1VirtualInterfaceList = (output: any, context: __Serd } return deserializeAws_json1_1VirtualInterface(entry, context); }); + return retVal; }; const deserializeAws_json1_1VirtualInterfaces = (output: any, context: __SerdeContext): VirtualInterfaces => { @@ -6221,7 +6241,7 @@ const deserializeAws_json1_1VirtualInterfaceTestHistoryList = ( output: any, context: __SerdeContext ): VirtualInterfaceTestHistory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6229,6 +6249,7 @@ const deserializeAws_json1_1VirtualInterfaceTestHistoryList = ( } return deserializeAws_json1_1VirtualInterfaceTestHistory(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-directory-service/src/protocols/Aws_json1_1.ts b/clients/client-directory-service/src/protocols/Aws_json1_1.ts index d4d31444bddb..eba03ae39b0b 100644 --- a/clients/client-directory-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-directory-service/src/protocols/Aws_json1_1.ts @@ -6089,7 +6089,7 @@ const deserializeAws_json1_1AddIpRoutesResult = (output: any, context: __SerdeCo }; const deserializeAws_json1_1AdditionalRegions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6097,6 +6097,7 @@ const deserializeAws_json1_1AdditionalRegions = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AddRegionResult = (output: any, context: __SerdeContext): AddRegionResult => { @@ -6118,7 +6119,7 @@ const deserializeAws_json1_1Attribute = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6126,6 +6127,7 @@ const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Attribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1AuthenticationFailedException = ( @@ -6139,7 +6141,7 @@ const deserializeAws_json1_1AuthenticationFailedException = ( }; const deserializeAws_json1_1AvailabilityZones = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6147,6 +6149,7 @@ const deserializeAws_json1_1AvailabilityZones = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CancelSchemaExtensionResult = ( @@ -6232,7 +6235,7 @@ const deserializeAws_json1_1CertificateLimitExceededException = ( }; const deserializeAws_json1_1CertificatesInfo = (output: any, context: __SerdeContext): CertificateInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6240,6 +6243,7 @@ const deserializeAws_json1_1CertificatesInfo = (output: any, context: __SerdeCon } return deserializeAws_json1_1CertificateInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClientAuthenticationSettingInfo = ( @@ -6260,7 +6264,7 @@ const deserializeAws_json1_1ClientAuthenticationSettingsInfo = ( output: any, context: __SerdeContext ): ClientAuthenticationSettingInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6268,6 +6272,7 @@ const deserializeAws_json1_1ClientAuthenticationSettingsInfo = ( } return deserializeAws_json1_1ClientAuthenticationSettingInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClientCertAuthSettings = (output: any, context: __SerdeContext): ClientCertAuthSettings => { @@ -6306,7 +6311,7 @@ const deserializeAws_json1_1ConditionalForwarder = (output: any, context: __Serd }; const deserializeAws_json1_1ConditionalForwarders = (output: any, context: __SerdeContext): ConditionalForwarder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6314,6 +6319,7 @@ const deserializeAws_json1_1ConditionalForwarders = (output: any, context: __Ser } return deserializeAws_json1_1ConditionalForwarder(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectDirectoryResult = (output: any, context: __SerdeContext): ConnectDirectoryResult => { @@ -6657,7 +6663,7 @@ const deserializeAws_json1_1DirectoryDescription = (output: any, context: __Serd }; const deserializeAws_json1_1DirectoryDescriptions = (output: any, context: __SerdeContext): DirectoryDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6665,6 +6671,7 @@ const deserializeAws_json1_1DirectoryDescriptions = (output: any, context: __Ser } return deserializeAws_json1_1DirectoryDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1DirectoryDoesNotExistException = ( @@ -6769,7 +6776,7 @@ const deserializeAws_json1_1DisableSsoResult = (output: any, context: __SerdeCon }; const deserializeAws_json1_1DnsIpAddrs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6777,6 +6784,7 @@ const deserializeAws_json1_1DnsIpAddrs = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DomainController = (output: any, context: __SerdeContext): DomainController => { @@ -6811,7 +6819,7 @@ const deserializeAws_json1_1DomainControllerLimitExceededException = ( }; const deserializeAws_json1_1DomainControllers = (output: any, context: __SerdeContext): DomainController[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6819,6 +6827,7 @@ const deserializeAws_json1_1DomainControllers = (output: any, context: __SerdeCo } return deserializeAws_json1_1DomainController(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnableClientAuthenticationResult = ( @@ -6874,7 +6883,7 @@ const deserializeAws_json1_1EventTopic = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1EventTopics = (output: any, context: __SerdeContext): EventTopic[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6882,6 +6891,7 @@ const deserializeAws_json1_1EventTopics = (output: any, context: __SerdeContext) } return deserializeAws_json1_1EventTopic(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetDirectoryLimitsResult = ( @@ -6986,7 +6996,7 @@ const deserializeAws_json1_1InvalidTargetException = (output: any, context: __Se }; const deserializeAws_json1_1IpAddrs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6994,6 +7004,7 @@ const deserializeAws_json1_1IpAddrs = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1IpRouteInfo = (output: any, context: __SerdeContext): IpRouteInfo => { @@ -7021,7 +7032,7 @@ const deserializeAws_json1_1IpRouteLimitExceededException = ( }; const deserializeAws_json1_1IpRoutesInfo = (output: any, context: __SerdeContext): IpRouteInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7029,6 +7040,7 @@ const deserializeAws_json1_1IpRoutesInfo = (output: any, context: __SerdeContext } return deserializeAws_json1_1IpRouteInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1LDAPSSettingInfo = (output: any, context: __SerdeContext): LDAPSSettingInfo => { @@ -7043,7 +7055,7 @@ const deserializeAws_json1_1LDAPSSettingInfo = (output: any, context: __SerdeCon }; const deserializeAws_json1_1LDAPSSettingsInfo = (output: any, context: __SerdeContext): LDAPSSettingInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7051,6 +7063,7 @@ const deserializeAws_json1_1LDAPSSettingsInfo = (output: any, context: __SerdeCo } return deserializeAws_json1_1LDAPSSettingInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListCertificatesResult = (output: any, context: __SerdeContext): ListCertificatesResult => { @@ -7122,7 +7135,7 @@ const deserializeAws_json1_1LogSubscription = (output: any, context: __SerdeCont }; const deserializeAws_json1_1LogSubscriptions = (output: any, context: __SerdeContext): LogSubscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7130,6 +7143,7 @@ const deserializeAws_json1_1LogSubscriptions = (output: any, context: __SerdeCon } return deserializeAws_json1_1LogSubscription(entry, context); }); + return retVal; }; const deserializeAws_json1_1NoAvailableCertificateException = ( @@ -7225,7 +7239,7 @@ const deserializeAws_json1_1RegionLimitExceededException = ( }; const deserializeAws_json1_1RegionsDescription = (output: any, context: __SerdeContext): RegionDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7233,6 +7247,7 @@ const deserializeAws_json1_1RegionsDescription = (output: any, context: __SerdeC } return deserializeAws_json1_1RegionDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegionsInfo = (output: any, context: __SerdeContext): RegionsInfo => { @@ -7318,7 +7333,7 @@ const deserializeAws_json1_1SchemaExtensionInfo = (output: any, context: __Serde }; const deserializeAws_json1_1SchemaExtensionsInfo = (output: any, context: __SerdeContext): SchemaExtensionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7326,10 +7341,11 @@ const deserializeAws_json1_1SchemaExtensionsInfo = (output: any, context: __Serd } return deserializeAws_json1_1SchemaExtensionInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1Servers = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7337,6 +7353,7 @@ const deserializeAws_json1_1Servers = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ServiceException = (output: any, context: __SerdeContext): ServiceException => { @@ -7347,7 +7364,7 @@ const deserializeAws_json1_1ServiceException = (output: any, context: __SerdeCon }; const deserializeAws_json1_1SharedDirectories = (output: any, context: __SerdeContext): SharedDirectory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7355,6 +7372,7 @@ const deserializeAws_json1_1SharedDirectories = (output: any, context: __SerdeCo } return deserializeAws_json1_1SharedDirectory(entry, context); }); + return retVal; }; const deserializeAws_json1_1SharedDirectory = (output: any, context: __SerdeContext): SharedDirectory => { @@ -7426,7 +7444,7 @@ const deserializeAws_json1_1SnapshotLimits = (output: any, context: __SerdeConte }; const deserializeAws_json1_1Snapshots = (output: any, context: __SerdeContext): Snapshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7434,6 +7452,7 @@ const deserializeAws_json1_1Snapshots = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Snapshot(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartSchemaExtensionResult = ( @@ -7446,7 +7465,7 @@ const deserializeAws_json1_1StartSchemaExtensionResult = ( }; const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7454,6 +7473,7 @@ const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -7474,7 +7494,7 @@ const deserializeAws_json1_1TagLimitExceededException = ( }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7482,6 +7502,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1Trust = (output: any, context: __SerdeContext): Trust => { @@ -7510,7 +7531,7 @@ const deserializeAws_json1_1Trust = (output: any, context: __SerdeContext): Trus }; const deserializeAws_json1_1Trusts = (output: any, context: __SerdeContext): Trust[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7518,6 +7539,7 @@ const deserializeAws_json1_1Trusts = (output: any, context: __SerdeContext): Tru } return deserializeAws_json1_1Trust(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnshareDirectoryResult = (output: any, context: __SerdeContext): UnshareDirectoryResult => { diff --git a/clients/client-dlm/src/protocols/Aws_restJson1.ts b/clients/client-dlm/src/protocols/Aws_restJson1.ts index 61f160285ceb..3ec7cf241c2b 100644 --- a/clients/client-dlm/src/protocols/Aws_restJson1.ts +++ b/clients/client-dlm/src/protocols/Aws_restJson1.ts @@ -1203,7 +1203,7 @@ const deserializeAws_restJson1Action = (output: any, context: __SerdeContext): A }; const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext): Action[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1211,10 +1211,11 @@ const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Action(entry, context); }); + return retVal; }; const deserializeAws_restJson1AvailabilityZoneList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1222,6 +1223,7 @@ const deserializeAws_restJson1AvailabilityZoneList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CreateRule = (output: any, context: __SerdeContext): CreateRule => { @@ -1255,7 +1257,7 @@ const deserializeAws_restJson1CrossRegionCopyActionList = ( output: any, context: __SerdeContext ): CrossRegionCopyAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1263,6 +1265,7 @@ const deserializeAws_restJson1CrossRegionCopyActionList = ( } return deserializeAws_restJson1CrossRegionCopyAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1CrossRegionCopyDeprecateRule = ( @@ -1304,7 +1307,7 @@ const deserializeAws_restJson1CrossRegionCopyRule = (output: any, context: __Ser }; const deserializeAws_restJson1CrossRegionCopyRules = (output: any, context: __SerdeContext): CrossRegionCopyRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1312,6 +1315,7 @@ const deserializeAws_restJson1CrossRegionCopyRules = (output: any, context: __Se } return deserializeAws_restJson1CrossRegionCopyRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeprecateRule = (output: any, context: __SerdeContext): DeprecateRule => { @@ -1412,7 +1416,7 @@ const deserializeAws_restJson1LifecyclePolicySummaryList = ( output: any, context: __SerdeContext ): LifecyclePolicySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1420,10 +1424,11 @@ const deserializeAws_restJson1LifecyclePolicySummaryList = ( } return deserializeAws_restJson1LifecyclePolicySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ParameterList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1431,6 +1436,7 @@ const deserializeAws_restJson1ParameterList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1_Parameters = (output: any, context: __SerdeContext): _Parameters => { @@ -1475,7 +1481,7 @@ const deserializeAws_restJson1PolicyDetails = (output: any, context: __SerdeCont }; const deserializeAws_restJson1PolicyIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1483,13 +1489,14 @@ const deserializeAws_restJson1PolicyIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResourceLocationList = ( output: any, context: __SerdeContext ): (ResourceLocationValues | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1497,13 +1504,14 @@ const deserializeAws_restJson1ResourceLocationList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResourceTypeValuesList = ( output: any, context: __SerdeContext ): (ResourceTypeValues | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1511,6 +1519,7 @@ const deserializeAws_restJson1ResourceTypeValuesList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RetainRule = (output: any, context: __SerdeContext): RetainRule => { @@ -1561,7 +1570,7 @@ const deserializeAws_restJson1Schedule = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1ScheduleList = (output: any, context: __SerdeContext): Schedule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1569,6 +1578,7 @@ const deserializeAws_restJson1ScheduleList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Schedule(entry, context); }); + return retVal; }; const deserializeAws_restJson1ShareRule = (output: any, context: __SerdeContext): ShareRule => { @@ -1583,7 +1593,7 @@ const deserializeAws_restJson1ShareRule = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ShareRules = (output: any, context: __SerdeContext): ShareRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1591,10 +1601,11 @@ const deserializeAws_restJson1ShareRules = (output: any, context: __SerdeContext } return deserializeAws_restJson1ShareRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1ShareTargetAccountList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1602,10 +1613,11 @@ const deserializeAws_restJson1ShareTargetAccountList = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SnapshotOwnerList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1613,6 +1625,7 @@ const deserializeAws_restJson1SnapshotOwnerList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -1635,7 +1648,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1TagsToAddList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1643,10 +1656,11 @@ const deserializeAws_restJson1TagsToAddList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TargetTagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1654,10 +1668,11 @@ const deserializeAws_restJson1TargetTagList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TimesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1665,10 +1680,11 @@ const deserializeAws_restJson1TimesList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1VariableTagsList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1676,6 +1692,7 @@ const deserializeAws_restJson1VariableTagsList = (output: any, context: __SerdeC } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-drs/src/protocols/Aws_restJson1.ts b/clients/client-drs/src/protocols/Aws_restJson1.ts index be5c5fd272a1..6533cb94661f 100644 --- a/clients/client-drs/src/protocols/Aws_restJson1.ts +++ b/clients/client-drs/src/protocols/Aws_restJson1.ts @@ -3521,7 +3521,7 @@ const deserializeAws_restJson1CPU = (output: any, context: __SerdeContext): CPU }; const deserializeAws_restJson1Cpus = (output: any, context: __SerdeContext): CPU[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3529,6 +3529,7 @@ const deserializeAws_restJson1Cpus = (output: any, context: __SerdeContext): CPU } return deserializeAws_restJson1CPU(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataReplicationError = (output: any, context: __SerdeContext): DataReplicationError => { @@ -3575,7 +3576,7 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = ( output: any, context: __SerdeContext ): DataReplicationInfoReplicatedDisk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3583,6 +3584,7 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = ( } return deserializeAws_restJson1DataReplicationInfoReplicatedDisk(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataReplicationInitiation = ( @@ -3613,7 +3615,7 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = ( output: any, context: __SerdeContext ): DataReplicationInitiationStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3621,13 +3623,14 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = ( } return deserializeAws_restJson1DataReplicationInitiationStep(entry, context); }); + return retVal; }; const deserializeAws_restJson1DescribeRecoveryInstancesItems = ( output: any, context: __SerdeContext ): RecoveryInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3635,6 +3638,7 @@ const deserializeAws_restJson1DescribeRecoveryInstancesItems = ( } return deserializeAws_restJson1RecoveryInstance(entry, context); }); + return retVal; }; const deserializeAws_restJson1Disk = (output: any, context: __SerdeContext): Disk => { @@ -3645,7 +3649,7 @@ const deserializeAws_restJson1Disk = (output: any, context: __SerdeContext): Dis }; const deserializeAws_restJson1Disks = (output: any, context: __SerdeContext): Disk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3653,10 +3657,11 @@ const deserializeAws_restJson1Disks = (output: any, context: __SerdeContext): Di } return deserializeAws_restJson1Disk(entry, context); }); + return retVal; }; const deserializeAws_restJson1EbsSnapshotsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3664,6 +3669,7 @@ const deserializeAws_restJson1EbsSnapshotsList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IdentificationHints = (output: any, context: __SerdeContext): IdentificationHints => { @@ -3676,7 +3682,7 @@ const deserializeAws_restJson1IdentificationHints = (output: any, context: __Ser }; const deserializeAws_restJson1IPsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3684,6 +3690,7 @@ const deserializeAws_restJson1IPsList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job => { @@ -3727,7 +3734,7 @@ const deserializeAws_restJson1JobLogEventData = (output: any, context: __SerdeCo }; const deserializeAws_restJson1JobLogs = (output: any, context: __SerdeContext): JobLog[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3735,10 +3742,11 @@ const deserializeAws_restJson1JobLogs = (output: any, context: __SerdeContext): } return deserializeAws_restJson1JobLog(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobsList = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3746,6 +3754,7 @@ const deserializeAws_restJson1JobsList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Job(entry, context); }); + return retVal; }; const deserializeAws_restJson1Licensing = (output: any, context: __SerdeContext): Licensing => { @@ -3799,7 +3808,7 @@ const deserializeAws_restJson1NetworkInterface = (output: any, context: __SerdeC }; const deserializeAws_restJson1NetworkInterfaces = (output: any, context: __SerdeContext): NetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3807,6 +3816,7 @@ const deserializeAws_restJson1NetworkInterfaces = (output: any, context: __Serde } return deserializeAws_restJson1NetworkInterface(entry, context); }); + return retVal; }; const deserializeAws_restJson1OS = (output: any, context: __SerdeContext): OS => { @@ -3824,7 +3834,7 @@ const deserializeAws_restJson1ParticipatingServer = (output: any, context: __Ser }; const deserializeAws_restJson1ParticipatingServers = (output: any, context: __SerdeContext): ParticipatingServer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3832,10 +3842,11 @@ const deserializeAws_restJson1ParticipatingServers = (output: any, context: __Se } return deserializeAws_restJson1ParticipatingServer(entry, context); }); + return retVal; }; const deserializeAws_restJson1PITPolicy = (output: any, context: __SerdeContext): PITPolicyRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3843,6 +3854,7 @@ const deserializeAws_restJson1PITPolicy = (output: any, context: __SerdeContext) } return deserializeAws_restJson1PITPolicyRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1PITPolicyRule = (output: any, context: __SerdeContext): PITPolicyRule => { @@ -3934,7 +3946,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks output: any, context: __SerdeContext ): RecoveryInstanceDataReplicationInfoReplicatedDisk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3942,6 +3954,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks } return deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisk(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = ( @@ -3971,7 +3984,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps = ( output: any, context: __SerdeContext ): RecoveryInstanceDataReplicationInitiationStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3979,6 +3992,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps = ( } return deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationStep(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecoveryInstanceDisk = (output: any, context: __SerdeContext): RecoveryInstanceDisk => { @@ -3993,7 +4007,7 @@ const deserializeAws_restJson1RecoveryInstanceDisks = ( output: any, context: __SerdeContext ): RecoveryInstanceDisk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4001,6 +4015,7 @@ const deserializeAws_restJson1RecoveryInstanceDisks = ( } return deserializeAws_restJson1RecoveryInstanceDisk(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecoveryInstanceFailback = ( @@ -4061,7 +4076,7 @@ const deserializeAws_restJson1RecoverySnapshot = (output: any, context: __SerdeC }; const deserializeAws_restJson1RecoverySnapshotsList = (output: any, context: __SerdeContext): RecoverySnapshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4069,6 +4084,7 @@ const deserializeAws_restJson1RecoverySnapshotsList = (output: any, context: __S } return deserializeAws_restJson1RecoverySnapshot(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = ( @@ -4088,7 +4104,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = ( output: any, context: __SerdeContext ): ReplicationConfigurationReplicatedDisk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4096,6 +4112,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = ( } return deserializeAws_restJson1ReplicationConfigurationReplicatedDisk(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplicationConfigurationTemplate = ( @@ -4141,7 +4158,7 @@ const deserializeAws_restJson1ReplicationConfigurationTemplates = ( output: any, context: __SerdeContext ): ReplicationConfigurationTemplate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4149,13 +4166,14 @@ const deserializeAws_restJson1ReplicationConfigurationTemplates = ( } return deserializeAws_restJson1ReplicationConfigurationTemplate(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4163,6 +4181,7 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SourceProperties = (output: any, context: __SerdeContext): SourceProperties => { @@ -4216,7 +4235,7 @@ const deserializeAws_restJson1SourceServer = (output: any, context: __SerdeConte }; const deserializeAws_restJson1SourceServersList = (output: any, context: __SerdeContext): SourceServer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4224,6 +4243,7 @@ const deserializeAws_restJson1SourceServersList = (output: any, context: __Serde } return deserializeAws_restJson1SourceServer(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4252,7 +4272,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4260,6 +4280,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-dynamodb-streams/src/protocols/Aws_json1_0.ts b/clients/client-dynamodb-streams/src/protocols/Aws_json1_0.ts index e9cbef260b01..851c4a30fee6 100644 --- a/clients/client-dynamodb-streams/src/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb-streams/src/protocols/Aws_json1_0.ts @@ -457,7 +457,7 @@ const deserializeAws_json1_0AttributeValue = (output: any, context: __SerdeConte }; const deserializeAws_json1_0BinarySetAttributeValue = (output: any, context: __SerdeContext): Uint8Array[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -465,6 +465,7 @@ const deserializeAws_json1_0BinarySetAttributeValue = (output: any, context: __S } return context.base64Decoder(entry); }); + return retVal; }; const deserializeAws_json1_0DescribeStreamOutput = (output: any, context: __SerdeContext): DescribeStreamOutput => { @@ -515,7 +516,7 @@ const deserializeAws_json1_0InternalServerError = (output: any, context: __Serde }; const deserializeAws_json1_0KeySchema = (output: any, context: __SerdeContext): KeySchemaElement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -523,6 +524,7 @@ const deserializeAws_json1_0KeySchema = (output: any, context: __SerdeContext): } return deserializeAws_json1_0KeySchemaElement(entry, context); }); + return retVal; }; const deserializeAws_json1_0KeySchemaElement = (output: any, context: __SerdeContext): KeySchemaElement => { @@ -539,7 +541,7 @@ const deserializeAws_json1_0LimitExceededException = (output: any, context: __Se }; const deserializeAws_json1_0ListAttributeValue = (output: any, context: __SerdeContext): AttributeValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -547,6 +549,7 @@ const deserializeAws_json1_0ListAttributeValue = (output: any, context: __SerdeC } return deserializeAws_json1_0AttributeValue(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_json1_0ListStreamsOutput = (output: any, context: __SerdeContext): ListStreamsOutput => { @@ -575,7 +578,7 @@ const deserializeAws_json1_0MapAttributeValue = ( }; const deserializeAws_json1_0NumberSetAttributeValue = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -583,6 +586,7 @@ const deserializeAws_json1_0NumberSetAttributeValue = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0_Record = (output: any, context: __SerdeContext): _Record => { @@ -604,7 +608,7 @@ const deserializeAws_json1_0_Record = (output: any, context: __SerdeContext): _R }; const deserializeAws_json1_0RecordList = (output: any, context: __SerdeContext): _Record[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -612,6 +616,7 @@ const deserializeAws_json1_0RecordList = (output: any, context: __SerdeContext): } return deserializeAws_json1_0_Record(entry, context); }); + return retVal; }; const deserializeAws_json1_0ResourceNotFoundException = ( @@ -642,7 +647,7 @@ const deserializeAws_json1_0Shard = (output: any, context: __SerdeContext): Shar }; const deserializeAws_json1_0ShardDescriptionList = (output: any, context: __SerdeContext): Shard[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -650,6 +655,7 @@ const deserializeAws_json1_0ShardDescriptionList = (output: any, context: __Serd } return deserializeAws_json1_0Shard(entry, context); }); + return retVal; }; const deserializeAws_json1_0_Stream = (output: any, context: __SerdeContext): _Stream => { @@ -684,7 +690,7 @@ const deserializeAws_json1_0StreamDescription = (output: any, context: __SerdeCo }; const deserializeAws_json1_0StreamList = (output: any, context: __SerdeContext): _Stream[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -692,6 +698,7 @@ const deserializeAws_json1_0StreamList = (output: any, context: __SerdeContext): } return deserializeAws_json1_0_Stream(entry, context); }); + return retVal; }; const deserializeAws_json1_0StreamRecord = (output: any, context: __SerdeContext): StreamRecord => { @@ -719,7 +726,7 @@ const deserializeAws_json1_0StreamRecord = (output: any, context: __SerdeContext }; const deserializeAws_json1_0StringSetAttributeValue = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -727,6 +734,7 @@ const deserializeAws_json1_0StringSetAttributeValue = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0TrimmedDataAccessException = ( diff --git a/clients/client-dynamodb/src/protocols/Aws_json1_0.ts b/clients/client-dynamodb/src/protocols/Aws_json1_0.ts index 5c5e4ed3caf2..ae7271b8ebec 100644 --- a/clients/client-dynamodb/src/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb/src/protocols/Aws_json1_0.ts @@ -6118,7 +6118,7 @@ const deserializeAws_json1_0AttributeDefinition = (output: any, context: __Serde }; const deserializeAws_json1_0AttributeDefinitions = (output: any, context: __SerdeContext): AttributeDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6126,6 +6126,7 @@ const deserializeAws_json1_0AttributeDefinitions = (output: any, context: __Serd } return deserializeAws_json1_0AttributeDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_0AttributeMap = ( @@ -6144,7 +6145,7 @@ const deserializeAws_json1_0AttributeMap = ( }; const deserializeAws_json1_0AttributeNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6152,6 +6153,7 @@ const deserializeAws_json1_0AttributeNameList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0AttributeValue = (output: any, context: __SerdeContext): AttributeValue => { @@ -6221,7 +6223,7 @@ const deserializeAws_json1_0AutoScalingPolicyDescriptionList = ( output: any, context: __SerdeContext ): AutoScalingPolicyDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6229,6 +6231,7 @@ const deserializeAws_json1_0AutoScalingPolicyDescriptionList = ( } return deserializeAws_json1_0AutoScalingPolicyDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0AutoScalingSettingsDescription = ( @@ -6310,7 +6313,7 @@ const deserializeAws_json1_0BackupNotFoundException = ( }; const deserializeAws_json1_0BackupSummaries = (output: any, context: __SerdeContext): BackupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6318,6 +6321,7 @@ const deserializeAws_json1_0BackupSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_0BackupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0BackupSummary = (output: any, context: __SerdeContext): BackupSummary => { @@ -6471,7 +6475,7 @@ const deserializeAws_json1_0BillingModeSummary = (output: any, context: __SerdeC }; const deserializeAws_json1_0BinarySetAttributeValue = (output: any, context: __SerdeContext): Uint8Array[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6479,6 +6483,7 @@ const deserializeAws_json1_0BinarySetAttributeValue = (output: any, context: __S } return context.base64Decoder(entry); }); + return retVal; }; const deserializeAws_json1_0CancellationReason = (output: any, context: __SerdeContext): CancellationReason => { @@ -6493,7 +6498,7 @@ const deserializeAws_json1_0CancellationReason = (output: any, context: __SerdeC }; const deserializeAws_json1_0CancellationReasonList = (output: any, context: __SerdeContext): CancellationReason[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6501,6 +6506,7 @@ const deserializeAws_json1_0CancellationReasonList = (output: any, context: __Se } return deserializeAws_json1_0CancellationReason(entry, context); }); + return retVal; }; const deserializeAws_json1_0Capacity = (output: any, context: __SerdeContext): Capacity => { @@ -6542,7 +6548,7 @@ const deserializeAws_json1_0ConsumedCapacity = (output: any, context: __SerdeCon }; const deserializeAws_json1_0ConsumedCapacityMultiple = (output: any, context: __SerdeContext): ConsumedCapacity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6550,6 +6556,7 @@ const deserializeAws_json1_0ConsumedCapacityMultiple = (output: any, context: __ } return deserializeAws_json1_0ConsumedCapacity(entry, context); }); + return retVal; }; const deserializeAws_json1_0ContinuousBackupsDescription = ( @@ -6575,7 +6582,7 @@ const deserializeAws_json1_0ContinuousBackupsUnavailableException = ( }; const deserializeAws_json1_0ContributorInsightsRuleList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6583,13 +6590,14 @@ const deserializeAws_json1_0ContributorInsightsRuleList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0ContributorInsightsSummaries = ( output: any, context: __SerdeContext ): ContributorInsightsSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6597,6 +6605,7 @@ const deserializeAws_json1_0ContributorInsightsSummaries = ( } return deserializeAws_json1_0ContributorInsightsSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0ContributorInsightsSummary = ( @@ -6840,7 +6849,7 @@ const deserializeAws_json1_0Endpoint = (output: any, context: __SerdeContext): E }; const deserializeAws_json1_0Endpoints = (output: any, context: __SerdeContext): Endpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6848,6 +6857,7 @@ const deserializeAws_json1_0Endpoints = (output: any, context: __SerdeContext): } return deserializeAws_json1_0Endpoint(entry, context); }); + return retVal; }; const deserializeAws_json1_0ExecuteStatementOutput = (output: any, context: __SerdeContext): ExecuteStatementOutput => { @@ -6932,7 +6942,7 @@ const deserializeAws_json1_0ExportNotFoundException = ( }; const deserializeAws_json1_0ExportSummaries = (output: any, context: __SerdeContext): ExportSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6940,6 +6950,7 @@ const deserializeAws_json1_0ExportSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_0ExportSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0ExportSummary = (output: any, context: __SerdeContext): ExportSummary => { @@ -7026,7 +7037,7 @@ const deserializeAws_json1_0GlobalSecondaryIndexDescriptionList = ( output: any, context: __SerdeContext ): GlobalSecondaryIndexDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7034,13 +7045,14 @@ const deserializeAws_json1_0GlobalSecondaryIndexDescriptionList = ( } return deserializeAws_json1_0GlobalSecondaryIndexDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0GlobalSecondaryIndexes = ( output: any, context: __SerdeContext ): GlobalSecondaryIndexInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7048,6 +7060,7 @@ const deserializeAws_json1_0GlobalSecondaryIndexes = ( } return deserializeAws_json1_0GlobalSecondaryIndexInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_0GlobalSecondaryIndexInfo = ( @@ -7107,7 +7120,7 @@ const deserializeAws_json1_0GlobalTableDescription = (output: any, context: __Se }; const deserializeAws_json1_0GlobalTableList = (output: any, context: __SerdeContext): GlobalTable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7115,6 +7128,7 @@ const deserializeAws_json1_0GlobalTableList = (output: any, context: __SerdeCont } return deserializeAws_json1_0GlobalTable(entry, context); }); + return retVal; }; const deserializeAws_json1_0GlobalTableNotFoundException = ( @@ -7206,7 +7220,7 @@ const deserializeAws_json1_0ItemCollectionMetricsMultiple = ( output: any, context: __SerdeContext ): ItemCollectionMetrics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7214,6 +7228,7 @@ const deserializeAws_json1_0ItemCollectionMetricsMultiple = ( } return deserializeAws_json1_0ItemCollectionMetrics(entry, context); }); + return retVal; }; const deserializeAws_json1_0ItemCollectionMetricsPerTable = ( @@ -7235,7 +7250,7 @@ const deserializeAws_json1_0ItemCollectionMetricsPerTable = ( }; const deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7243,6 +7258,7 @@ const deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output: any, cont } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_json1_0ItemCollectionSizeLimitExceededException = ( @@ -7255,7 +7271,7 @@ const deserializeAws_json1_0ItemCollectionSizeLimitExceededException = ( }; const deserializeAws_json1_0ItemList = (output: any, context: __SerdeContext): { [key: string]: AttributeValue }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7263,6 +7279,7 @@ const deserializeAws_json1_0ItemList = (output: any, context: __SerdeContext): { } return deserializeAws_json1_0AttributeMap(entry, context); }); + return retVal; }; const deserializeAws_json1_0ItemResponse = (output: any, context: __SerdeContext): ItemResponse => { @@ -7275,7 +7292,7 @@ const deserializeAws_json1_0ItemResponse = (output: any, context: __SerdeContext }; const deserializeAws_json1_0ItemResponseList = (output: any, context: __SerdeContext): ItemResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7283,6 +7300,7 @@ const deserializeAws_json1_0ItemResponseList = (output: any, context: __SerdeCon } return deserializeAws_json1_0ItemResponse(entry, context); }); + return retVal; }; const deserializeAws_json1_0Key = (output: any, context: __SerdeContext): { [key: string]: AttributeValue } => { @@ -7298,7 +7316,7 @@ const deserializeAws_json1_0Key = (output: any, context: __SerdeContext): { [key }; const deserializeAws_json1_0KeyList = (output: any, context: __SerdeContext): { [key: string]: AttributeValue }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7306,6 +7324,7 @@ const deserializeAws_json1_0KeyList = (output: any, context: __SerdeContext): { } return deserializeAws_json1_0Key(entry, context); }); + return retVal; }; const deserializeAws_json1_0KeysAndAttributes = (output: any, context: __SerdeContext): KeysAndAttributes => { @@ -7328,7 +7347,7 @@ const deserializeAws_json1_0KeysAndAttributes = (output: any, context: __SerdeCo }; const deserializeAws_json1_0KeySchema = (output: any, context: __SerdeContext): KeySchemaElement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7336,6 +7355,7 @@ const deserializeAws_json1_0KeySchema = (output: any, context: __SerdeContext): } return deserializeAws_json1_0KeySchemaElement(entry, context); }); + return retVal; }; const deserializeAws_json1_0KeySchemaElement = (output: any, context: __SerdeContext): KeySchemaElement => { @@ -7360,7 +7380,7 @@ const deserializeAws_json1_0KinesisDataStreamDestinations = ( output: any, context: __SerdeContext ): KinesisDataStreamDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7368,6 +7388,7 @@ const deserializeAws_json1_0KinesisDataStreamDestinations = ( } return deserializeAws_json1_0KinesisDataStreamDestination(entry, context); }); + return retVal; }; const deserializeAws_json1_0KinesisStreamingDestinationOutput = ( @@ -7388,7 +7409,7 @@ const deserializeAws_json1_0LimitExceededException = (output: any, context: __Se }; const deserializeAws_json1_0ListAttributeValue = (output: any, context: __SerdeContext): AttributeValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7396,6 +7417,7 @@ const deserializeAws_json1_0ListAttributeValue = (output: any, context: __SerdeC } return deserializeAws_json1_0AttributeValue(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_json1_0ListBackupsOutput = (output: any, context: __SerdeContext): ListBackupsOutput => { @@ -7488,7 +7510,7 @@ const deserializeAws_json1_0LocalSecondaryIndexDescriptionList = ( output: any, context: __SerdeContext ): LocalSecondaryIndexDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7496,13 +7518,14 @@ const deserializeAws_json1_0LocalSecondaryIndexDescriptionList = ( } return deserializeAws_json1_0LocalSecondaryIndexDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0LocalSecondaryIndexes = ( output: any, context: __SerdeContext ): LocalSecondaryIndexInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7510,6 +7533,7 @@ const deserializeAws_json1_0LocalSecondaryIndexes = ( } return deserializeAws_json1_0LocalSecondaryIndexInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_0LocalSecondaryIndexInfo = ( @@ -7545,7 +7569,7 @@ const deserializeAws_json1_0MapAttributeValue = ( }; const deserializeAws_json1_0NonKeyAttributeNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7553,10 +7577,11 @@ const deserializeAws_json1_0NonKeyAttributeNameList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0NumberSetAttributeValue = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7564,10 +7589,11 @@ const deserializeAws_json1_0NumberSetAttributeValue = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0PartiQLBatchResponse = (output: any, context: __SerdeContext): BatchStatementResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7575,6 +7601,7 @@ const deserializeAws_json1_0PartiQLBatchResponse = (output: any, context: __Serd } return deserializeAws_json1_0BatchStatementResponse(entry, context); }); + return retVal; }; const deserializeAws_json1_0PointInTimeRecoveryDescription = ( @@ -7769,7 +7796,7 @@ const deserializeAws_json1_0ReplicaAutoScalingDescriptionList = ( output: any, context: __SerdeContext ): ReplicaAutoScalingDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7777,6 +7804,7 @@ const deserializeAws_json1_0ReplicaAutoScalingDescriptionList = ( } return deserializeAws_json1_0ReplicaAutoScalingDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0ReplicaDescription = (output: any, context: __SerdeContext): ReplicaDescription => { @@ -7806,7 +7834,7 @@ const deserializeAws_json1_0ReplicaDescription = (output: any, context: __SerdeC }; const deserializeAws_json1_0ReplicaDescriptionList = (output: any, context: __SerdeContext): ReplicaDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7814,6 +7842,7 @@ const deserializeAws_json1_0ReplicaDescriptionList = (output: any, context: __Se } return deserializeAws_json1_0ReplicaDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription = ( @@ -7846,7 +7875,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionLis output: any, context: __SerdeContext ): ReplicaGlobalSecondaryIndexAutoScalingDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7854,6 +7883,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionLis } return deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = ( @@ -7873,7 +7903,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList = ( output: any, context: __SerdeContext ): ReplicaGlobalSecondaryIndexDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7881,6 +7911,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList = ( } return deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = ( @@ -7915,7 +7946,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList = output: any, context: __SerdeContext ): ReplicaGlobalSecondaryIndexSettingsDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7923,10 +7954,11 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList = } return deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0ReplicaList = (output: any, context: __SerdeContext): Replica[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7934,6 +7966,7 @@ const deserializeAws_json1_0ReplicaList = (output: any, context: __SerdeContext) } return deserializeAws_json1_0Replica(entry, context); }); + return retVal; }; const deserializeAws_json1_0ReplicaNotFoundException = ( @@ -7992,7 +8025,7 @@ const deserializeAws_json1_0ReplicaSettingsDescriptionList = ( output: any, context: __SerdeContext ): ReplicaSettingsDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8000,6 +8033,7 @@ const deserializeAws_json1_0ReplicaSettingsDescriptionList = ( } return deserializeAws_json1_0ReplicaSettingsDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_0RequestLimitExceeded = (output: any, context: __SerdeContext): RequestLimitExceeded => { @@ -8164,7 +8198,7 @@ const deserializeAws_json1_0StreamSpecification = (output: any, context: __Serde }; const deserializeAws_json1_0StringSetAttributeValue = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8172,6 +8206,7 @@ const deserializeAws_json1_0StringSetAttributeValue = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0TableAlreadyExistsException = ( @@ -8280,7 +8315,7 @@ const deserializeAws_json1_0TableInUseException = (output: any, context: __Serde }; const deserializeAws_json1_0TableNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8288,6 +8323,7 @@ const deserializeAws_json1_0TableNameList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0TableNotFoundException = (output: any, context: __SerdeContext): TableNotFoundException => { @@ -8304,7 +8340,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8312,6 +8348,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TimeToLiveDescription = (output: any, context: __SerdeContext): TimeToLiveDescription => { @@ -8500,7 +8537,7 @@ const deserializeAws_json1_0WriteRequest = (output: any, context: __SerdeContext }; const deserializeAws_json1_0WriteRequests = (output: any, context: __SerdeContext): WriteRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8508,6 +8545,7 @@ const deserializeAws_json1_0WriteRequests = (output: any, context: __SerdeContex } return deserializeAws_json1_0WriteRequest(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-ebs/src/protocols/Aws_restJson1.ts b/clients/client-ebs/src/protocols/Aws_restJson1.ts index 9452d7b6145f..3f91264ad148 100644 --- a/clients/client-ebs/src/protocols/Aws_restJson1.ts +++ b/clients/client-ebs/src/protocols/Aws_restJson1.ts @@ -884,7 +884,7 @@ const deserializeAws_restJson1Block = (output: any, context: __SerdeContext): Bl }; const deserializeAws_restJson1Blocks = (output: any, context: __SerdeContext): Block[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -892,6 +892,7 @@ const deserializeAws_restJson1Blocks = (output: any, context: __SerdeContext): B } return deserializeAws_restJson1Block(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChangedBlock = (output: any, context: __SerdeContext): ChangedBlock => { @@ -903,7 +904,7 @@ const deserializeAws_restJson1ChangedBlock = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ChangedBlocks = (output: any, context: __SerdeContext): ChangedBlock[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -911,6 +912,7 @@ const deserializeAws_restJson1ChangedBlocks = (output: any, context: __SerdeCont } return deserializeAws_restJson1ChangedBlock(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -921,7 +923,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -929,6 +931,7 @@ const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Tag } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-ecr-public/src/protocols/Aws_json1_1.ts b/clients/client-ecr-public/src/protocols/Aws_json1_1.ts index efd1db819118..2189e8cd23ae 100644 --- a/clients/client-ecr-public/src/protocols/Aws_json1_1.ts +++ b/clients/client-ecr-public/src/protocols/Aws_json1_1.ts @@ -2368,7 +2368,7 @@ const serializeAws_json1_1UploadLayerPartRequest = (input: UploadLayerPartReques }; const deserializeAws_json1_1ArchitectureList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2376,6 +2376,7 @@ const deserializeAws_json1_1ArchitectureList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AuthorizationData = (output: any, context: __SerdeContext): AuthorizationData => { @@ -2615,7 +2616,7 @@ const deserializeAws_json1_1ImageDetail = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ImageDetailList = (output: any, context: __SerdeContext): ImageDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2623,6 +2624,7 @@ const deserializeAws_json1_1ImageDetailList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ImageDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageDigestDoesNotMatchException = ( @@ -2646,7 +2648,7 @@ const deserializeAws_json1_1ImageFailure = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ImageFailureList = (output: any, context: __SerdeContext): ImageFailure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2654,6 +2656,7 @@ const deserializeAws_json1_1ImageFailureList = (output: any, context: __SerdeCon } return deserializeAws_json1_1ImageFailure(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageIdentifier = (output: any, context: __SerdeContext): ImageIdentifier => { @@ -2664,7 +2667,7 @@ const deserializeAws_json1_1ImageIdentifier = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ImageIdentifierList = (output: any, context: __SerdeContext): ImageIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2672,6 +2675,7 @@ const deserializeAws_json1_1ImageIdentifierList = (output: any, context: __Serde } return deserializeAws_json1_1ImageIdentifier(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageNotFoundException = (output: any, context: __SerdeContext): ImageNotFoundException => { @@ -2704,7 +2708,7 @@ const deserializeAws_json1_1ImageTagDetail = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ImageTagDetailList = (output: any, context: __SerdeContext): ImageTagDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2712,10 +2716,11 @@ const deserializeAws_json1_1ImageTagDetailList = (output: any, context: __SerdeC } return deserializeAws_json1_1ImageTagDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageTagList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2723,6 +2728,7 @@ const deserializeAws_json1_1ImageTagList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InitiateLayerUploadResponse = ( @@ -2799,7 +2805,7 @@ const deserializeAws_json1_1LayerFailure = (output: any, context: __SerdeContext }; const deserializeAws_json1_1LayerFailureList = (output: any, context: __SerdeContext): LayerFailure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2807,10 +2813,11 @@ const deserializeAws_json1_1LayerFailureList = (output: any, context: __SerdeCon } return deserializeAws_json1_1LayerFailure(entry, context); }); + return retVal; }; const deserializeAws_json1_1LayerList = (output: any, context: __SerdeContext): Layer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2818,6 +2825,7 @@ const deserializeAws_json1_1LayerList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Layer(entry, context); }); + return retVal; }; const deserializeAws_json1_1LayerPartTooSmallException = ( @@ -2857,7 +2865,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( }; const deserializeAws_json1_1OperatingSystemList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2865,6 +2873,7 @@ const deserializeAws_json1_1OperatingSystemList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PutImageResponse = (output: any, context: __SerdeContext): PutImageResponse => { @@ -2945,7 +2954,7 @@ const deserializeAws_json1_1RegistryAlias = (output: any, context: __SerdeContex }; const deserializeAws_json1_1RegistryAliasList = (output: any, context: __SerdeContext): RegistryAlias[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2953,6 +2962,7 @@ const deserializeAws_json1_1RegistryAliasList = (output: any, context: __SerdeCo } return deserializeAws_json1_1RegistryAlias(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegistryCatalogData = (output: any, context: __SerdeContext): RegistryCatalogData => { @@ -2962,7 +2972,7 @@ const deserializeAws_json1_1RegistryCatalogData = (output: any, context: __Serde }; const deserializeAws_json1_1RegistryList = (output: any, context: __SerdeContext): Registry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2970,6 +2980,7 @@ const deserializeAws_json1_1RegistryList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Registry(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegistryNotFoundException = ( @@ -3022,7 +3033,7 @@ const deserializeAws_json1_1RepositoryCatalogData = (output: any, context: __Ser }; const deserializeAws_json1_1RepositoryList = (output: any, context: __SerdeContext): Repository[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3030,6 +3041,7 @@ const deserializeAws_json1_1RepositoryList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Repository(entry, context); }); + return retVal; }; const deserializeAws_json1_1RepositoryNotEmptyException = ( @@ -3084,7 +3096,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3092,6 +3104,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-ecr/src/protocols/Aws_json1_1.ts b/clients/client-ecr/src/protocols/Aws_json1_1.ts index 970727edd615..773ba253e510 100644 --- a/clients/client-ecr/src/protocols/Aws_json1_1.ts +++ b/clients/client-ecr/src/protocols/Aws_json1_1.ts @@ -4217,7 +4217,7 @@ const deserializeAws_json1_1Attribute = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1AttributeList = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4225,6 +4225,7 @@ const deserializeAws_json1_1AttributeList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Attribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1AuthorizationData = (output: any, context: __SerdeContext): AuthorizationData => { @@ -4239,7 +4240,7 @@ const deserializeAws_json1_1AuthorizationData = (output: any, context: __SerdeCo }; const deserializeAws_json1_1AuthorizationDataList = (output: any, context: __SerdeContext): AuthorizationData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4247,6 +4248,7 @@ const deserializeAws_json1_1AuthorizationDataList = (output: any, context: __Ser } return deserializeAws_json1_1AuthorizationData(entry, context); }); + return retVal; }; const deserializeAws_json1_1AwsEcrContainerImageDetails = ( @@ -4388,7 +4390,7 @@ const deserializeAws_json1_1CvssScoreAdjustment = (output: any, context: __Serde }; const deserializeAws_json1_1CvssScoreAdjustmentList = (output: any, context: __SerdeContext): CvssScoreAdjustment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4396,6 +4398,7 @@ const deserializeAws_json1_1CvssScoreAdjustmentList = (output: any, context: __S } return deserializeAws_json1_1CvssScoreAdjustment(entry, context); }); + return retVal; }; const deserializeAws_json1_1CvssScoreDetails = (output: any, context: __SerdeContext): CvssScoreDetails => { @@ -4412,7 +4415,7 @@ const deserializeAws_json1_1CvssScoreDetails = (output: any, context: __SerdeCon }; const deserializeAws_json1_1CvssScoreList = (output: any, context: __SerdeContext): CvssScore[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4420,6 +4423,7 @@ const deserializeAws_json1_1CvssScoreList = (output: any, context: __SerdeContex } return deserializeAws_json1_1CvssScore(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeleteLifecyclePolicyResponse = ( @@ -4638,7 +4642,7 @@ const deserializeAws_json1_1EnhancedImageScanFindingList = ( output: any, context: __SerdeContext ): EnhancedImageScanFinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4646,6 +4650,7 @@ const deserializeAws_json1_1EnhancedImageScanFindingList = ( } return deserializeAws_json1_1EnhancedImageScanFinding(entry, context); }); + return retVal; }; const deserializeAws_json1_1FindingSeverityCounts = ( @@ -4808,7 +4813,7 @@ const deserializeAws_json1_1ImageDetail = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ImageDetailList = (output: any, context: __SerdeContext): ImageDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4816,6 +4821,7 @@ const deserializeAws_json1_1ImageDetailList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ImageDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageDigestDoesNotMatchException = ( @@ -4839,7 +4845,7 @@ const deserializeAws_json1_1ImageFailure = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ImageFailureList = (output: any, context: __SerdeContext): ImageFailure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4847,6 +4853,7 @@ const deserializeAws_json1_1ImageFailureList = (output: any, context: __SerdeCon } return deserializeAws_json1_1ImageFailure(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageIdentifier = (output: any, context: __SerdeContext): ImageIdentifier => { @@ -4857,7 +4864,7 @@ const deserializeAws_json1_1ImageIdentifier = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ImageIdentifierList = (output: any, context: __SerdeContext): ImageIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4865,10 +4872,11 @@ const deserializeAws_json1_1ImageIdentifierList = (output: any, context: __Serde } return deserializeAws_json1_1ImageIdentifier(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageList = (output: any, context: __SerdeContext): Image[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4876,6 +4884,7 @@ const deserializeAws_json1_1ImageList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Image(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageNotFoundException = (output: any, context: __SerdeContext): ImageNotFoundException => { @@ -4897,7 +4906,7 @@ const deserializeAws_json1_1ImageReplicationStatusList = ( output: any, context: __SerdeContext ): ImageReplicationStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4905,6 +4914,7 @@ const deserializeAws_json1_1ImageReplicationStatusList = ( } return deserializeAws_json1_1ImageReplicationStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageScanFinding = (output: any, context: __SerdeContext): ImageScanFinding => { @@ -4921,7 +4931,7 @@ const deserializeAws_json1_1ImageScanFinding = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ImageScanFindingList = (output: any, context: __SerdeContext): ImageScanFinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4929,6 +4939,7 @@ const deserializeAws_json1_1ImageScanFindingList = (output: any, context: __Serd } return deserializeAws_json1_1ImageScanFinding(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageScanFindings = (output: any, context: __SerdeContext): ImageScanFindings => { @@ -5002,7 +5013,7 @@ const deserializeAws_json1_1ImageTagAlreadyExistsException = ( }; const deserializeAws_json1_1ImageTagList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5010,10 +5021,11 @@ const deserializeAws_json1_1ImageTagList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ImageTagsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5021,6 +5033,7 @@ const deserializeAws_json1_1ImageTagsList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InitiateLayerUploadResponse = ( @@ -5104,7 +5117,7 @@ const deserializeAws_json1_1LayerFailure = (output: any, context: __SerdeContext }; const deserializeAws_json1_1LayerFailureList = (output: any, context: __SerdeContext): LayerFailure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5112,6 +5125,7 @@ const deserializeAws_json1_1LayerFailureList = (output: any, context: __SerdeCon } return deserializeAws_json1_1LayerFailure(entry, context); }); + return retVal; }; const deserializeAws_json1_1LayerInaccessibleException = ( @@ -5124,7 +5138,7 @@ const deserializeAws_json1_1LayerInaccessibleException = ( }; const deserializeAws_json1_1LayerList = (output: any, context: __SerdeContext): Layer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5132,6 +5146,7 @@ const deserializeAws_json1_1LayerList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Layer(entry, context); }); + return retVal; }; const deserializeAws_json1_1LayerPartTooSmallException = ( @@ -5205,7 +5220,7 @@ const deserializeAws_json1_1LifecyclePolicyPreviewResultList = ( output: any, context: __SerdeContext ): LifecyclePolicyPreviewResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5213,6 +5228,7 @@ const deserializeAws_json1_1LifecyclePolicyPreviewResultList = ( } return deserializeAws_json1_1LifecyclePolicyPreviewResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1LifecyclePolicyPreviewSummary = ( @@ -5322,7 +5338,7 @@ const deserializeAws_json1_1PullThroughCacheRuleList = ( output: any, context: __SerdeContext ): PullThroughCacheRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5330,6 +5346,7 @@ const deserializeAws_json1_1PullThroughCacheRuleList = ( } return deserializeAws_json1_1PullThroughCacheRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1PullThroughCacheRuleNotFoundException = ( @@ -5437,7 +5454,7 @@ const deserializeAws_json1_1ReferencedImagesNotFoundException = ( }; const deserializeAws_json1_1ReferenceUrlsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5445,6 +5462,7 @@ const deserializeAws_json1_1ReferenceUrlsList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RegistryPolicyNotFoundException = ( @@ -5483,7 +5501,7 @@ const deserializeAws_json1_1RegistryScanningRuleList = ( output: any, context: __SerdeContext ): RegistryScanningRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5491,10 +5509,11 @@ const deserializeAws_json1_1RegistryScanningRuleList = ( } return deserializeAws_json1_1RegistryScanningRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1RelatedVulnerabilitiesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5502,6 +5521,7 @@ const deserializeAws_json1_1RelatedVulnerabilitiesList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Remediation = (output: any, context: __SerdeContext): Remediation => { @@ -5536,7 +5556,7 @@ const deserializeAws_json1_1ReplicationDestinationList = ( output: any, context: __SerdeContext ): ReplicationDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5544,6 +5564,7 @@ const deserializeAws_json1_1ReplicationDestinationList = ( } return deserializeAws_json1_1ReplicationDestination(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationRule = (output: any, context: __SerdeContext): ReplicationRule => { @@ -5560,7 +5581,7 @@ const deserializeAws_json1_1ReplicationRule = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ReplicationRuleList = (output: any, context: __SerdeContext): ReplicationRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5568,6 +5589,7 @@ const deserializeAws_json1_1ReplicationRuleList = (output: any, context: __Serde } return deserializeAws_json1_1ReplicationRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1Repository = (output: any, context: __SerdeContext): Repository => { @@ -5609,7 +5631,7 @@ const deserializeAws_json1_1RepositoryFilter = (output: any, context: __SerdeCon }; const deserializeAws_json1_1RepositoryFilterList = (output: any, context: __SerdeContext): RepositoryFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5617,10 +5639,11 @@ const deserializeAws_json1_1RepositoryFilterList = (output: any, context: __Serd } return deserializeAws_json1_1RepositoryFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1RepositoryList = (output: any, context: __SerdeContext): Repository[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5628,6 +5651,7 @@ const deserializeAws_json1_1RepositoryList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Repository(entry, context); }); + return retVal; }; const deserializeAws_json1_1RepositoryNotEmptyException = ( @@ -5688,7 +5712,7 @@ const deserializeAws_json1_1RepositoryScanningConfigurationFailureList = ( output: any, context: __SerdeContext ): RepositoryScanningConfigurationFailure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5696,13 +5720,14 @@ const deserializeAws_json1_1RepositoryScanningConfigurationFailureList = ( } return deserializeAws_json1_1RepositoryScanningConfigurationFailure(entry, context); }); + return retVal; }; const deserializeAws_json1_1RepositoryScanningConfigurationList = ( output: any, context: __SerdeContext ): RepositoryScanningConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5710,6 +5735,7 @@ const deserializeAws_json1_1RepositoryScanningConfigurationList = ( } return deserializeAws_json1_1RepositoryScanningConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1Resource = (output: any, context: __SerdeContext): Resource => { @@ -5735,7 +5761,7 @@ const deserializeAws_json1_1ResourceDetails = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ResourceList = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5743,6 +5769,7 @@ const deserializeAws_json1_1ResourceList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Resource(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScanningRepositoryFilter = ( @@ -5759,7 +5786,7 @@ const deserializeAws_json1_1ScanningRepositoryFilterList = ( output: any, context: __SerdeContext ): ScanningRepositoryFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5767,6 +5794,7 @@ const deserializeAws_json1_1ScanningRepositoryFilterList = ( } return deserializeAws_json1_1ScanningRepositoryFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScanNotFoundException = (output: any, context: __SerdeContext): ScanNotFoundException => { @@ -5836,7 +5864,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5844,6 +5872,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -5931,7 +5960,7 @@ const deserializeAws_json1_1VulnerablePackage = (output: any, context: __SerdeCo }; const deserializeAws_json1_1VulnerablePackagesList = (output: any, context: __SerdeContext): VulnerablePackage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5939,6 +5968,7 @@ const deserializeAws_json1_1VulnerablePackagesList = (output: any, context: __Se } return deserializeAws_json1_1VulnerablePackage(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-ecs/src/protocols/Aws_json1_1.ts b/clients/client-ecs/src/protocols/Aws_json1_1.ts index f08d21bec7f2..01f55a6fb81a 100644 --- a/clients/client-ecs/src/protocols/Aws_json1_1.ts +++ b/clients/client-ecs/src/protocols/Aws_json1_1.ts @@ -6324,7 +6324,7 @@ const deserializeAws_json1_1Attachment = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1AttachmentDetails = (output: any, context: __SerdeContext): KeyValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6332,10 +6332,11 @@ const deserializeAws_json1_1AttachmentDetails = (output: any, context: __SerdeCo } return deserializeAws_json1_1KeyValuePair(entry, context); }); + return retVal; }; const deserializeAws_json1_1Attachments = (output: any, context: __SerdeContext): Attachment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6343,6 +6344,7 @@ const deserializeAws_json1_1Attachments = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Attachment(entry, context); }); + return retVal; }; const deserializeAws_json1_1Attribute = (output: any, context: __SerdeContext): Attribute => { @@ -6364,7 +6366,7 @@ const deserializeAws_json1_1AttributeLimitExceededException = ( }; const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6372,6 +6374,7 @@ const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Attribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoScalingGroupProvider = ( @@ -6425,7 +6428,7 @@ const deserializeAws_json1_1CapacityProvider = (output: any, context: __SerdeCon }; const deserializeAws_json1_1CapacityProviders = (output: any, context: __SerdeContext): CapacityProvider[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6433,13 +6436,14 @@ const deserializeAws_json1_1CapacityProviders = (output: any, context: __SerdeCo } return deserializeAws_json1_1CapacityProvider(entry, context); }); + return retVal; }; const deserializeAws_json1_1CapacityProviderStrategy = ( output: any, context: __SerdeContext ): CapacityProviderStrategyItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6447,6 +6451,7 @@ const deserializeAws_json1_1CapacityProviderStrategy = ( } return deserializeAws_json1_1CapacityProviderStrategyItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1CapacityProviderStrategyItem = ( @@ -6551,7 +6556,7 @@ const deserializeAws_json1_1ClusterNotFoundException = ( }; const deserializeAws_json1_1Clusters = (output: any, context: __SerdeContext): Cluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6559,6 +6564,7 @@ const deserializeAws_json1_1Clusters = (output: any, context: __SerdeContext): C } return deserializeAws_json1_1Cluster(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClusterSetting = (output: any, context: __SerdeContext): ClusterSetting => { @@ -6569,7 +6575,7 @@ const deserializeAws_json1_1ClusterSetting = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ClusterSettings = (output: any, context: __SerdeContext): ClusterSetting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6577,10 +6583,11 @@ const deserializeAws_json1_1ClusterSettings = (output: any, context: __SerdeCont } return deserializeAws_json1_1ClusterSetting(entry, context); }); + return retVal; }; const deserializeAws_json1_1CompatibilityList = (output: any, context: __SerdeContext): (Compatibility | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6588,6 +6595,7 @@ const deserializeAws_json1_1CompatibilityList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Container = (output: any, context: __SerdeContext): Container => { @@ -6738,7 +6746,7 @@ const deserializeAws_json1_1ContainerDefinition = (output: any, context: __Serde }; const deserializeAws_json1_1ContainerDefinitions = (output: any, context: __SerdeContext): ContainerDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6746,10 +6754,11 @@ const deserializeAws_json1_1ContainerDefinitions = (output: any, context: __Serd } return deserializeAws_json1_1ContainerDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerDependencies = (output: any, context: __SerdeContext): ContainerDependency[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6757,6 +6766,7 @@ const deserializeAws_json1_1ContainerDependencies = (output: any, context: __Ser } return deserializeAws_json1_1ContainerDependency(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerDependency = (output: any, context: __SerdeContext): ContainerDependency => { @@ -6825,7 +6835,7 @@ const deserializeAws_json1_1ContainerInstanceHealthStatus = ( }; const deserializeAws_json1_1ContainerInstances = (output: any, context: __SerdeContext): ContainerInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6833,6 +6843,7 @@ const deserializeAws_json1_1ContainerInstances = (output: any, context: __SerdeC } return deserializeAws_json1_1ContainerInstance(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerOverride = (output: any, context: __SerdeContext): ContainerOverride => { @@ -6861,7 +6872,7 @@ const deserializeAws_json1_1ContainerOverride = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ContainerOverrides = (output: any, context: __SerdeContext): ContainerOverride[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6869,10 +6880,11 @@ const deserializeAws_json1_1ContainerOverrides = (output: any, context: __SerdeC } return deserializeAws_json1_1ContainerOverride(entry, context); }); + return retVal; }; const deserializeAws_json1_1Containers = (output: any, context: __SerdeContext): Container[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6880,6 +6892,7 @@ const deserializeAws_json1_1Containers = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Container(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateCapacityProviderResponse = ( @@ -7048,7 +7061,7 @@ const deserializeAws_json1_1DeploymentController = (output: any, context: __Serd }; const deserializeAws_json1_1Deployments = (output: any, context: __SerdeContext): Deployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7056,6 +7069,7 @@ const deserializeAws_json1_1Deployments = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Deployment(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeregisterContainerInstanceResponse = ( @@ -7205,7 +7219,7 @@ const deserializeAws_json1_1DeviceCgroupPermissions = ( output: any, context: __SerdeContext ): (DeviceCgroupPermission | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7213,10 +7227,11 @@ const deserializeAws_json1_1DeviceCgroupPermissions = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DevicesList = (output: any, context: __SerdeContext): Device[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7224,6 +7239,7 @@ const deserializeAws_json1_1DevicesList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Device(entry, context); }); + return retVal; }; const deserializeAws_json1_1DiscoverPollEndpointResponse = ( @@ -7295,7 +7311,7 @@ const deserializeAws_json1_1EnvironmentFile = (output: any, context: __SerdeCont }; const deserializeAws_json1_1EnvironmentFiles = (output: any, context: __SerdeContext): EnvironmentFile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7303,10 +7319,11 @@ const deserializeAws_json1_1EnvironmentFiles = (output: any, context: __SerdeCon } return deserializeAws_json1_1EnvironmentFile(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnvironmentVariables = (output: any, context: __SerdeContext): KeyValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7314,6 +7331,7 @@ const deserializeAws_json1_1EnvironmentVariables = (output: any, context: __Serd } return deserializeAws_json1_1KeyValuePair(entry, context); }); + return retVal; }; const deserializeAws_json1_1EphemeralStorage = (output: any, context: __SerdeContext): EphemeralStorage => { @@ -7372,7 +7390,7 @@ const deserializeAws_json1_1Failure = (output: any, context: __SerdeContext): Fa }; const deserializeAws_json1_1Failures = (output: any, context: __SerdeContext): Failure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7380,6 +7398,7 @@ const deserializeAws_json1_1Failures = (output: any, context: __SerdeContext): F } return deserializeAws_json1_1Failure(entry, context); }); + return retVal; }; const deserializeAws_json1_1FirelensConfiguration = (output: any, context: __SerdeContext): FirelensConfiguration => { @@ -7432,7 +7451,7 @@ const deserializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = ( }; const deserializeAws_json1_1GpuIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7440,6 +7459,7 @@ const deserializeAws_json1_1GpuIds = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1HealthCheck = (output: any, context: __SerdeContext): HealthCheck => { @@ -7463,7 +7483,7 @@ const deserializeAws_json1_1HostEntry = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1HostEntryList = (output: any, context: __SerdeContext): HostEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7471,6 +7491,7 @@ const deserializeAws_json1_1HostEntryList = (output: any, context: __SerdeContex } return deserializeAws_json1_1HostEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1HostVolumeProperties = (output: any, context: __SerdeContext): HostVolumeProperties => { @@ -7500,7 +7521,7 @@ const deserializeAws_json1_1InferenceAcceleratorOverrides = ( output: any, context: __SerdeContext ): InferenceAcceleratorOverride[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7508,10 +7529,11 @@ const deserializeAws_json1_1InferenceAcceleratorOverrides = ( } return deserializeAws_json1_1InferenceAcceleratorOverride(entry, context); }); + return retVal; }; const deserializeAws_json1_1InferenceAccelerators = (output: any, context: __SerdeContext): InferenceAccelerator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7519,6 +7541,7 @@ const deserializeAws_json1_1InferenceAccelerators = (output: any, context: __Ser } return deserializeAws_json1_1InferenceAccelerator(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceHealthCheckResult = ( @@ -7543,7 +7566,7 @@ const deserializeAws_json1_1InstanceHealthCheckResultList = ( output: any, context: __SerdeContext ): InstanceHealthCheckResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7551,6 +7574,7 @@ const deserializeAws_json1_1InstanceHealthCheckResultList = ( } return deserializeAws_json1_1InstanceHealthCheckResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidParameterException = ( @@ -7721,7 +7745,7 @@ const deserializeAws_json1_1LoadBalancer = (output: any, context: __SerdeContext }; const deserializeAws_json1_1LoadBalancers = (output: any, context: __SerdeContext): LoadBalancer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7729,6 +7753,7 @@ const deserializeAws_json1_1LoadBalancers = (output: any, context: __SerdeContex } return deserializeAws_json1_1LoadBalancer(entry, context); }); + return retVal; }; const deserializeAws_json1_1LogConfiguration = (output: any, context: __SerdeContext): LogConfiguration => { @@ -7773,7 +7798,7 @@ const deserializeAws_json1_1ManagedAgent = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ManagedAgents = (output: any, context: __SerdeContext): ManagedAgent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7781,6 +7806,7 @@ const deserializeAws_json1_1ManagedAgents = (output: any, context: __SerdeContex } return deserializeAws_json1_1ManagedAgent(entry, context); }); + return retVal; }; const deserializeAws_json1_1ManagedScaling = (output: any, context: __SerdeContext): ManagedScaling => { @@ -7811,7 +7837,7 @@ const deserializeAws_json1_1MountPoint = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1MountPointList = (output: any, context: __SerdeContext): MountPoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7819,6 +7845,7 @@ const deserializeAws_json1_1MountPointList = (output: any, context: __SerdeConte } return deserializeAws_json1_1MountPoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1NetworkBinding = (output: any, context: __SerdeContext): NetworkBinding => { @@ -7831,7 +7858,7 @@ const deserializeAws_json1_1NetworkBinding = (output: any, context: __SerdeConte }; const deserializeAws_json1_1NetworkBindings = (output: any, context: __SerdeContext): NetworkBinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7839,6 +7866,7 @@ const deserializeAws_json1_1NetworkBindings = (output: any, context: __SerdeCont } return deserializeAws_json1_1NetworkBinding(entry, context); }); + return retVal; }; const deserializeAws_json1_1NetworkConfiguration = (output: any, context: __SerdeContext): NetworkConfiguration => { @@ -7859,7 +7887,7 @@ const deserializeAws_json1_1NetworkInterface = (output: any, context: __SerdeCon }; const deserializeAws_json1_1NetworkInterfaces = (output: any, context: __SerdeContext): NetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7867,6 +7895,7 @@ const deserializeAws_json1_1NetworkInterfaces = (output: any, context: __SerdeCo } return deserializeAws_json1_1NetworkInterface(entry, context); }); + return retVal; }; const deserializeAws_json1_1NoUpdateAvailableException = ( @@ -7886,7 +7915,7 @@ const deserializeAws_json1_1PlacementConstraint = (output: any, context: __Serde }; const deserializeAws_json1_1PlacementConstraints = (output: any, context: __SerdeContext): PlacementConstraint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7894,10 +7923,11 @@ const deserializeAws_json1_1PlacementConstraints = (output: any, context: __Serd } return deserializeAws_json1_1PlacementConstraint(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlacementStrategies = (output: any, context: __SerdeContext): PlacementStrategy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7905,6 +7935,7 @@ const deserializeAws_json1_1PlacementStrategies = (output: any, context: __Serde } return deserializeAws_json1_1PlacementStrategy(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlacementStrategy = (output: any, context: __SerdeContext): PlacementStrategy => { @@ -7941,7 +7972,7 @@ const deserializeAws_json1_1PortMapping = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1PortMappingList = (output: any, context: __SerdeContext): PortMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7949,6 +7980,7 @@ const deserializeAws_json1_1PortMappingList = (output: any, context: __SerdeCont } return deserializeAws_json1_1PortMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProxyConfiguration = (output: any, context: __SerdeContext): ProxyConfiguration => { @@ -7963,7 +7995,7 @@ const deserializeAws_json1_1ProxyConfiguration = (output: any, context: __SerdeC }; const deserializeAws_json1_1ProxyConfigurationProperties = (output: any, context: __SerdeContext): KeyValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7971,6 +8003,7 @@ const deserializeAws_json1_1ProxyConfigurationProperties = (output: any, context } return deserializeAws_json1_1KeyValuePair(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutAccountSettingDefaultResponse = ( @@ -8051,7 +8084,7 @@ const deserializeAws_json1_1RepositoryCredentials = (output: any, context: __Ser }; const deserializeAws_json1_1RequiresAttributes = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8059,6 +8092,7 @@ const deserializeAws_json1_1RequiresAttributes = (output: any, context: __SerdeC } return deserializeAws_json1_1Attribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1Resource = (output: any, context: __SerdeContext): Resource => { @@ -8098,7 +8132,7 @@ const deserializeAws_json1_1ResourceRequirement = (output: any, context: __Serde }; const deserializeAws_json1_1ResourceRequirements = (output: any, context: __SerdeContext): ResourceRequirement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8106,10 +8140,11 @@ const deserializeAws_json1_1ResourceRequirements = (output: any, context: __Serd } return deserializeAws_json1_1ResourceRequirement(entry, context); }); + return retVal; }; const deserializeAws_json1_1Resources = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8117,6 +8152,7 @@ const deserializeAws_json1_1Resources = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Resource(entry, context); }); + return retVal; }; const deserializeAws_json1_1RunTaskResponse = (output: any, context: __SerdeContext): RunTaskResponse => { @@ -8154,7 +8190,7 @@ const deserializeAws_json1_1Secret = (output: any, context: __SerdeContext): Sec }; const deserializeAws_json1_1SecretList = (output: any, context: __SerdeContext): Secret[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8162,6 +8198,7 @@ const deserializeAws_json1_1SecretList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Secret(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerException = (output: any, context: __SerdeContext): ServerException => { @@ -8255,7 +8292,7 @@ const deserializeAws_json1_1ServiceEvent = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ServiceEvents = (output: any, context: __SerdeContext): ServiceEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8263,6 +8300,7 @@ const deserializeAws_json1_1ServiceEvents = (output: any, context: __SerdeContex } return deserializeAws_json1_1ServiceEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceNotActiveException = ( @@ -8284,7 +8322,7 @@ const deserializeAws_json1_1ServiceNotFoundException = ( }; const deserializeAws_json1_1ServiceRegistries = (output: any, context: __SerdeContext): ServiceRegistry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8292,6 +8330,7 @@ const deserializeAws_json1_1ServiceRegistries = (output: any, context: __SerdeCo } return deserializeAws_json1_1ServiceRegistry(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceRegistry = (output: any, context: __SerdeContext): ServiceRegistry => { @@ -8304,7 +8343,7 @@ const deserializeAws_json1_1ServiceRegistry = (output: any, context: __SerdeCont }; const deserializeAws_json1_1Services = (output: any, context: __SerdeContext): Service[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8312,6 +8351,7 @@ const deserializeAws_json1_1Services = (output: any, context: __SerdeContext): S } return deserializeAws_json1_1Service(entry, context); }); + return retVal; }; const deserializeAws_json1_1Session = (output: any, context: __SerdeContext): Session => { @@ -8331,7 +8371,7 @@ const deserializeAws_json1_1Setting = (output: any, context: __SerdeContext): Se }; const deserializeAws_json1_1Settings = (output: any, context: __SerdeContext): Setting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8339,6 +8379,7 @@ const deserializeAws_json1_1Settings = (output: any, context: __SerdeContext): S } return deserializeAws_json1_1Setting(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartTaskResponse = (output: any, context: __SerdeContext): StartTaskResponse => { @@ -8355,7 +8396,7 @@ const deserializeAws_json1_1StartTaskResponse = (output: any, context: __SerdeCo }; const deserializeAws_json1_1Statistics = (output: any, context: __SerdeContext): KeyValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8363,6 +8404,7 @@ const deserializeAws_json1_1Statistics = (output: any, context: __SerdeContext): } return deserializeAws_json1_1KeyValuePair(entry, context); }); + return retVal; }; const deserializeAws_json1_1StopTaskResponse = (output: any, context: __SerdeContext): StopTaskResponse => { @@ -8373,7 +8415,7 @@ const deserializeAws_json1_1StopTaskResponse = (output: any, context: __SerdeCon }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8381,6 +8423,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -8430,7 +8473,7 @@ const deserializeAws_json1_1SystemControl = (output: any, context: __SerdeContex }; const deserializeAws_json1_1SystemControls = (output: any, context: __SerdeContext): SystemControl[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8438,6 +8481,7 @@ const deserializeAws_json1_1SystemControls = (output: any, context: __SerdeConte } return deserializeAws_json1_1SystemControl(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -8452,7 +8496,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8460,6 +8504,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetNotConnectedException = ( @@ -8643,7 +8688,7 @@ const deserializeAws_json1_1TaskDefinitionPlacementConstraints = ( output: any, context: __SerdeContext ): TaskDefinitionPlacementConstraint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8651,6 +8696,7 @@ const deserializeAws_json1_1TaskDefinitionPlacementConstraints = ( } return deserializeAws_json1_1TaskDefinitionPlacementConstraint(entry, context); }); + return retVal; }; const deserializeAws_json1_1TaskOverride = (output: any, context: __SerdeContext): TaskOverride => { @@ -8675,7 +8721,7 @@ const deserializeAws_json1_1TaskOverride = (output: any, context: __SerdeContext }; const deserializeAws_json1_1Tasks = (output: any, context: __SerdeContext): Task[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8683,6 +8729,7 @@ const deserializeAws_json1_1Tasks = (output: any, context: __SerdeContext): Task } return deserializeAws_json1_1Task(entry, context); }); + return retVal; }; const deserializeAws_json1_1TaskSet = (output: any, context: __SerdeContext): TaskSet => { @@ -8749,7 +8796,7 @@ const deserializeAws_json1_1TaskSetNotFoundException = ( }; const deserializeAws_json1_1TaskSets = (output: any, context: __SerdeContext): TaskSet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8757,6 +8804,7 @@ const deserializeAws_json1_1TaskSets = (output: any, context: __SerdeContext): T } return deserializeAws_json1_1TaskSet(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tmpfs = (output: any, context: __SerdeContext): Tmpfs => { @@ -8771,7 +8819,7 @@ const deserializeAws_json1_1Tmpfs = (output: any, context: __SerdeContext): Tmpf }; const deserializeAws_json1_1TmpfsList = (output: any, context: __SerdeContext): Tmpfs[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8779,6 +8827,7 @@ const deserializeAws_json1_1TmpfsList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Tmpfs(entry, context); }); + return retVal; }; const deserializeAws_json1_1Ulimit = (output: any, context: __SerdeContext): Ulimit => { @@ -8790,7 +8839,7 @@ const deserializeAws_json1_1Ulimit = (output: any, context: __SerdeContext): Uli }; const deserializeAws_json1_1UlimitList = (output: any, context: __SerdeContext): Ulimit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8798,6 +8847,7 @@ const deserializeAws_json1_1UlimitList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Ulimit(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnsupportedFeatureException = ( @@ -8955,7 +9005,7 @@ const deserializeAws_json1_1VolumeFrom = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1VolumeFromList = (output: any, context: __SerdeContext): VolumeFrom[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8963,10 +9013,11 @@ const deserializeAws_json1_1VolumeFromList = (output: any, context: __SerdeConte } return deserializeAws_json1_1VolumeFrom(entry, context); }); + return retVal; }; const deserializeAws_json1_1VolumeList = (output: any, context: __SerdeContext): Volume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8974,6 +9025,7 @@ const deserializeAws_json1_1VolumeList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Volume(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-efs/src/protocols/Aws_restJson1.ts b/clients/client-efs/src/protocols/Aws_restJson1.ts index 329be0f7da5e..ca9755d13de1 100644 --- a/clients/client-efs/src/protocols/Aws_restJson1.ts +++ b/clients/client-efs/src/protocols/Aws_restJson1.ts @@ -3701,7 +3701,7 @@ const deserializeAws_restJson1AccessPointDescriptions = ( output: any, context: __SerdeContext ): AccessPointDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3709,6 +3709,7 @@ const deserializeAws_restJson1AccessPointDescriptions = ( } return deserializeAws_restJson1AccessPointDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1BackupPolicy = (output: any, context: __SerdeContext): BackupPolicy => { @@ -3738,7 +3739,7 @@ const deserializeAws_restJson1Destination = (output: any, context: __SerdeContex }; const deserializeAws_restJson1Destinations = (output: any, context: __SerdeContext): Destination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3746,6 +3747,7 @@ const deserializeAws_restJson1Destinations = (output: any, context: __SerdeConte } return deserializeAws_restJson1Destination(entry, context); }); + return retVal; }; const deserializeAws_restJson1FileSystemDescription = (output: any, context: __SerdeContext): FileSystemDescription => { @@ -3783,7 +3785,7 @@ const deserializeAws_restJson1FileSystemDescriptions = ( output: any, context: __SerdeContext ): FileSystemDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3791,6 +3793,7 @@ const deserializeAws_restJson1FileSystemDescriptions = ( } return deserializeAws_restJson1FileSystemDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1FileSystemSize = (output: any, context: __SerdeContext): FileSystemSize => { @@ -3806,7 +3809,7 @@ const deserializeAws_restJson1FileSystemSize = (output: any, context: __SerdeCon }; const deserializeAws_restJson1LifecyclePolicies = (output: any, context: __SerdeContext): LifecyclePolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3814,6 +3817,7 @@ const deserializeAws_restJson1LifecyclePolicies = (output: any, context: __Serde } return deserializeAws_restJson1LifecyclePolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1LifecyclePolicy = (output: any, context: __SerdeContext): LifecyclePolicy => { @@ -3845,7 +3849,7 @@ const deserializeAws_restJson1MountTargetDescriptions = ( output: any, context: __SerdeContext ): MountTargetDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3853,6 +3857,7 @@ const deserializeAws_restJson1MountTargetDescriptions = ( } return deserializeAws_restJson1MountTargetDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1PosixUser = (output: any, context: __SerdeContext): PosixUser => { @@ -3890,7 +3895,7 @@ const deserializeAws_restJson1ReplicationConfigurationDescriptions = ( output: any, context: __SerdeContext ): ReplicationConfigurationDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3898,6 +3903,7 @@ const deserializeAws_restJson1ReplicationConfigurationDescriptions = ( } return deserializeAws_restJson1ReplicationConfigurationDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceIdPreference = (output: any, context: __SerdeContext): ResourceIdPreference => { @@ -3911,7 +3917,7 @@ const deserializeAws_restJson1ResourceIdPreference = (output: any, context: __Se }; const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext): (Resource | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3919,6 +3925,7 @@ const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RootDirectory = (output: any, context: __SerdeContext): RootDirectory => { @@ -3932,7 +3939,7 @@ const deserializeAws_restJson1RootDirectory = (output: any, context: __SerdeCont }; const deserializeAws_restJson1SecondaryGids = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3940,10 +3947,11 @@ const deserializeAws_restJson1SecondaryGids = (output: any, context: __SerdeCont } return __expectLong(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SecurityGroups = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3951,6 +3959,7 @@ const deserializeAws_restJson1SecurityGroups = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -3961,7 +3970,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3969,6 +3978,7 @@ const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Tag } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-eks/src/protocols/Aws_restJson1.ts b/clients/client-eks/src/protocols/Aws_restJson1.ts index 284b63cd48d6..0a8d78d67e7e 100644 --- a/clients/client-eks/src/protocols/Aws_restJson1.ts +++ b/clients/client-eks/src/protocols/Aws_restJson1.ts @@ -4035,7 +4035,7 @@ const deserializeAws_restJson1AddonIssue = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AddonIssueList = (output: any, context: __SerdeContext): AddonIssue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4043,10 +4043,11 @@ const deserializeAws_restJson1AddonIssueList = (output: any, context: __SerdeCon } return deserializeAws_restJson1AddonIssue(entry, context); }); + return retVal; }; const deserializeAws_restJson1Addons = (output: any, context: __SerdeContext): AddonInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4054,6 +4055,7 @@ const deserializeAws_restJson1Addons = (output: any, context: __SerdeContext): A } return deserializeAws_restJson1AddonInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1AddonVersionInfo = (output: any, context: __SerdeContext): AddonVersionInfo => { @@ -4071,7 +4073,7 @@ const deserializeAws_restJson1AddonVersionInfo = (output: any, context: __SerdeC }; const deserializeAws_restJson1AddonVersionInfoList = (output: any, context: __SerdeContext): AddonVersionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4079,6 +4081,7 @@ const deserializeAws_restJson1AddonVersionInfoList = (output: any, context: __Se } return deserializeAws_restJson1AddonVersionInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingGroup => { @@ -4088,7 +4091,7 @@ const deserializeAws_restJson1AutoScalingGroup = (output: any, context: __SerdeC }; const deserializeAws_restJson1AutoScalingGroupList = (output: any, context: __SerdeContext): AutoScalingGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4096,6 +4099,7 @@ const deserializeAws_restJson1AutoScalingGroupList = (output: any, context: __Se } return deserializeAws_restJson1AutoScalingGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1Certificate = (output: any, context: __SerdeContext): Certificate => { @@ -4154,7 +4158,7 @@ const deserializeAws_restJson1Cluster = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Compatibilities = (output: any, context: __SerdeContext): Compatibility[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4162,6 +4166,7 @@ const deserializeAws_restJson1Compatibilities = (output: any, context: __SerdeCo } return deserializeAws_restJson1Compatibility(entry, context); }); + return retVal; }; const deserializeAws_restJson1Compatibility = (output: any, context: __SerdeContext): Compatibility => { @@ -4205,7 +4210,7 @@ const deserializeAws_restJson1EncryptionConfig = (output: any, context: __SerdeC }; const deserializeAws_restJson1EncryptionConfigList = (output: any, context: __SerdeContext): EncryptionConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4213,6 +4218,7 @@ const deserializeAws_restJson1EncryptionConfigList = (output: any, context: __Se } return deserializeAws_restJson1EncryptionConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1ErrorDetail = (output: any, context: __SerdeContext): ErrorDetail => { @@ -4227,7 +4233,7 @@ const deserializeAws_restJson1ErrorDetail = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ErrorDetails = (output: any, context: __SerdeContext): ErrorDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4235,6 +4241,7 @@ const deserializeAws_restJson1ErrorDetails = (output: any, context: __SerdeConte } return deserializeAws_restJson1ErrorDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1FargateProfile = (output: any, context: __SerdeContext): FargateProfile => { @@ -4295,7 +4302,7 @@ const deserializeAws_restJson1FargateProfileSelectors = ( output: any, context: __SerdeContext ): FargateProfileSelector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4303,6 +4310,7 @@ const deserializeAws_restJson1FargateProfileSelectors = ( } return deserializeAws_restJson1FargateProfileSelector(entry, context); }); + return retVal; }; const deserializeAws_restJson1Identity = (output: any, context: __SerdeContext): Identity => { @@ -4340,7 +4348,7 @@ const deserializeAws_restJson1IdentityProviderConfigs = ( output: any, context: __SerdeContext ): IdentityProviderConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4348,6 +4356,7 @@ const deserializeAws_restJson1IdentityProviderConfigs = ( } return deserializeAws_restJson1IdentityProviderConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1Issue = (output: any, context: __SerdeContext): Issue => { @@ -4362,7 +4371,7 @@ const deserializeAws_restJson1Issue = (output: any, context: __SerdeContext): Is }; const deserializeAws_restJson1IssueList = (output: any, context: __SerdeContext): Issue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4370,6 +4379,7 @@ const deserializeAws_restJson1IssueList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Issue(entry, context); }); + return retVal; }; const deserializeAws_restJson1KubernetesNetworkConfigResponse = ( @@ -4426,7 +4436,7 @@ const deserializeAws_restJson1LogSetup = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1LogSetups = (output: any, context: __SerdeContext): LogSetup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4434,10 +4444,11 @@ const deserializeAws_restJson1LogSetups = (output: any, context: __SerdeContext) } return deserializeAws_restJson1LogSetup(entry, context); }); + return retVal; }; const deserializeAws_restJson1LogTypes = (output: any, context: __SerdeContext): (LogType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4445,6 +4456,7 @@ const deserializeAws_restJson1LogTypes = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Nodegroup = (output: any, context: __SerdeContext): Nodegroup => { @@ -4612,7 +4624,7 @@ const deserializeAws_restJson1requiredClaimsMap = (output: any, context: __Serde }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4620,6 +4632,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4643,7 +4656,7 @@ const deserializeAws_restJson1Taint = (output: any, context: __SerdeContext): Ta }; const deserializeAws_restJson1taintsList = (output: any, context: __SerdeContext): Taint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4651,6 +4664,7 @@ const deserializeAws_restJson1taintsList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Taint(entry, context); }); + return retVal; }; const deserializeAws_restJson1Update = (output: any, context: __SerdeContext): Update => { @@ -4681,7 +4695,7 @@ const deserializeAws_restJson1UpdateParam = (output: any, context: __SerdeContex }; const deserializeAws_restJson1UpdateParams = (output: any, context: __SerdeContext): UpdateParam[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4689,6 +4703,7 @@ const deserializeAws_restJson1UpdateParams = (output: any, context: __SerdeConte } return deserializeAws_restJson1UpdateParam(entry, context); }); + return retVal; }; const deserializeAws_restJson1VpcConfigResponse = (output: any, context: __SerdeContext): VpcConfigResponse => { diff --git a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts index ef0c9eba7bb3..9b5e67cf6098 100644 --- a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts @@ -641,7 +641,7 @@ const deserializeAws_restJson1AcceleratorType = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AcceleratorTypeList = (output: any, context: __SerdeContext): AcceleratorType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -649,6 +649,7 @@ const deserializeAws_restJson1AcceleratorTypeList = (output: any, context: __Ser } return deserializeAws_restJson1AcceleratorType(entry, context); }); + return retVal; }; const deserializeAws_restJson1AcceleratorTypeOffering = ( @@ -666,7 +667,7 @@ const deserializeAws_restJson1AcceleratorTypeOfferingList = ( output: any, context: __SerdeContext ): AcceleratorTypeOffering[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -674,6 +675,7 @@ const deserializeAws_restJson1AcceleratorTypeOfferingList = ( } return deserializeAws_restJson1AcceleratorTypeOffering(entry, context); }); + return retVal; }; const deserializeAws_restJson1ElasticInferenceAccelerator = ( @@ -705,7 +707,7 @@ const deserializeAws_restJson1ElasticInferenceAcceleratorSet = ( output: any, context: __SerdeContext ): ElasticInferenceAccelerator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -713,6 +715,7 @@ const deserializeAws_restJson1ElasticInferenceAcceleratorSet = ( } return deserializeAws_restJson1ElasticInferenceAccelerator(entry, context); }); + return retVal; }; const deserializeAws_restJson1KeyValuePair = (output: any, context: __SerdeContext): KeyValuePair => { @@ -741,7 +744,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1ThroughputInfoList = (output: any, context: __SerdeContext): KeyValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -749,6 +752,7 @@ const deserializeAws_restJson1ThroughputInfoList = (output: any, context: __Serd } return deserializeAws_restJson1KeyValuePair(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts b/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts index 0dee899d5e3a..59edb3119152 100644 --- a/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts @@ -2202,7 +2202,7 @@ const serializeAws_restJson1VideoParameters = (input: VideoParameters, context: }; const deserializeAws_restJson1AccessControls = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2210,6 +2210,7 @@ const deserializeAws_restJson1AccessControls = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Artwork = (output: any, context: __SerdeContext): Artwork => { @@ -2228,7 +2229,7 @@ const deserializeAws_restJson1Artwork = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Artworks = (output: any, context: __SerdeContext): Artwork[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2236,6 +2237,7 @@ const deserializeAws_restJson1Artworks = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Artwork(entry, context); }); + return retVal; }; const deserializeAws_restJson1AudioCodecOptions = (output: any, context: __SerdeContext): AudioCodecOptions => { @@ -2273,7 +2275,7 @@ const deserializeAws_restJson1CaptionFormat = (output: any, context: __SerdeCont }; const deserializeAws_restJson1CaptionFormats = (output: any, context: __SerdeContext): CaptionFormat[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2281,6 +2283,7 @@ const deserializeAws_restJson1CaptionFormats = (output: any, context: __SerdeCon } return deserializeAws_restJson1CaptionFormat(entry, context); }); + return retVal; }; const deserializeAws_restJson1Captions = (output: any, context: __SerdeContext): Captions => { @@ -2311,7 +2314,7 @@ const deserializeAws_restJson1CaptionSource = (output: any, context: __SerdeCont }; const deserializeAws_restJson1CaptionSources = (output: any, context: __SerdeContext): CaptionSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2319,6 +2322,7 @@ const deserializeAws_restJson1CaptionSources = (output: any, context: __SerdeCon } return deserializeAws_restJson1CaptionSource(entry, context); }); + return retVal; }; const deserializeAws_restJson1Clip = (output: any, context: __SerdeContext): Clip => { @@ -2343,7 +2347,7 @@ const deserializeAws_restJson1CodecOptions = (output: any, context: __SerdeConte }; const deserializeAws_restJson1Composition = (output: any, context: __SerdeContext): Clip[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2351,6 +2355,7 @@ const deserializeAws_restJson1Composition = (output: any, context: __SerdeContex } return deserializeAws_restJson1Clip(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectedProperties = (output: any, context: __SerdeContext): DetectedProperties => { @@ -2373,7 +2378,7 @@ const deserializeAws_restJson1Encryption = (output: any, context: __SerdeContext }; const deserializeAws_restJson1ExceptionMessages = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2381,6 +2386,7 @@ const deserializeAws_restJson1ExceptionMessages = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1HlsContentProtection = (output: any, context: __SerdeContext): HlsContentProtection => { @@ -2480,7 +2486,7 @@ const deserializeAws_restJson1JobInput = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1JobInputs = (output: any, context: __SerdeContext): JobInput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2488,6 +2494,7 @@ const deserializeAws_restJson1JobInputs = (output: any, context: __SerdeContext) } return deserializeAws_restJson1JobInput(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobOutput = (output: any, context: __SerdeContext): JobOutput => { @@ -2535,7 +2542,7 @@ const deserializeAws_restJson1JobOutput = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1JobOutputs = (output: any, context: __SerdeContext): JobOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2543,10 +2550,11 @@ const deserializeAws_restJson1JobOutputs = (output: any, context: __SerdeContext } return deserializeAws_restJson1JobOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1Jobs = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2554,6 +2562,7 @@ const deserializeAws_restJson1Jobs = (output: any, context: __SerdeContext): Job } return deserializeAws_restJson1Job(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobWatermark = (output: any, context: __SerdeContext): JobWatermark => { @@ -2568,7 +2577,7 @@ const deserializeAws_restJson1JobWatermark = (output: any, context: __SerdeConte }; const deserializeAws_restJson1JobWatermarks = (output: any, context: __SerdeContext): JobWatermark[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2576,6 +2585,7 @@ const deserializeAws_restJson1JobWatermarks = (output: any, context: __SerdeCont } return deserializeAws_restJson1JobWatermark(entry, context); }); + return retVal; }; const deserializeAws_restJson1Notifications = (output: any, context: __SerdeContext): Notifications => { @@ -2588,7 +2598,7 @@ const deserializeAws_restJson1Notifications = (output: any, context: __SerdeCont }; const deserializeAws_restJson1OutputKeys = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2596,6 +2606,7 @@ const deserializeAws_restJson1OutputKeys = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Permission = (output: any, context: __SerdeContext): Permission => { @@ -2610,7 +2621,7 @@ const deserializeAws_restJson1Permission = (output: any, context: __SerdeContext }; const deserializeAws_restJson1Permissions = (output: any, context: __SerdeContext): Permission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2618,6 +2629,7 @@ const deserializeAws_restJson1Permissions = (output: any, context: __SerdeContex } return deserializeAws_restJson1Permission(entry, context); }); + return retVal; }; const deserializeAws_restJson1Pipeline = (output: any, context: __SerdeContext): Pipeline => { @@ -2657,7 +2669,7 @@ const deserializeAws_restJson1PipelineOutputConfig = (output: any, context: __Se }; const deserializeAws_restJson1Pipelines = (output: any, context: __SerdeContext): Pipeline[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2665,6 +2677,7 @@ const deserializeAws_restJson1Pipelines = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Pipeline(entry, context); }); + return retVal; }; const deserializeAws_restJson1Playlist = (output: any, context: __SerdeContext): Playlist => { @@ -2689,7 +2702,7 @@ const deserializeAws_restJson1Playlist = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Playlists = (output: any, context: __SerdeContext): Playlist[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2697,6 +2710,7 @@ const deserializeAws_restJson1Playlists = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Playlist(entry, context); }); + return retVal; }; const deserializeAws_restJson1PlayReadyDrm = (output: any, context: __SerdeContext): PlayReadyDrm => { @@ -2734,7 +2748,7 @@ const deserializeAws_restJson1Preset = (output: any, context: __SerdeContext): P }; const deserializeAws_restJson1Presets = (output: any, context: __SerdeContext): Preset[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2742,6 +2756,7 @@ const deserializeAws_restJson1Presets = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Preset(entry, context); }); + return retVal; }; const deserializeAws_restJson1PresetWatermark = (output: any, context: __SerdeContext): PresetWatermark => { @@ -2760,7 +2775,7 @@ const deserializeAws_restJson1PresetWatermark = (output: any, context: __SerdeCo }; const deserializeAws_restJson1PresetWatermarks = (output: any, context: __SerdeContext): PresetWatermark[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2768,6 +2783,7 @@ const deserializeAws_restJson1PresetWatermarks = (output: any, context: __SerdeC } return deserializeAws_restJson1PresetWatermark(entry, context); }); + return retVal; }; const deserializeAws_restJson1Thumbnails = (output: any, context: __SerdeContext): Thumbnails => { @@ -2844,7 +2860,7 @@ const deserializeAws_restJson1Warning = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Warnings = (output: any, context: __SerdeContext): Warning[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2852,6 +2868,7 @@ const deserializeAws_restJson1Warnings = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Warning(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts index fb741207198e..04cb73527c88 100644 --- a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts @@ -4521,7 +4521,7 @@ const deserializeAws_restJson1AdditionalLimit = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AdditionalLimitList = (output: any, context: __SerdeContext): AdditionalLimit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4529,6 +4529,7 @@ const deserializeAws_restJson1AdditionalLimitList = (output: any, context: __Ser } return deserializeAws_restJson1AdditionalLimit(entry, context); }); + return retVal; }; const deserializeAws_restJson1AdvancedOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4611,7 +4612,7 @@ const deserializeAws_restJson1AutoTuneDetails = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AutoTuneList = (output: any, context: __SerdeContext): AutoTune[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4619,6 +4620,7 @@ const deserializeAws_restJson1AutoTuneList = (output: any, context: __SerdeConte } return deserializeAws_restJson1AutoTune(entry, context); }); + return retVal; }; const deserializeAws_restJson1AutoTuneMaintenanceSchedule = ( @@ -4642,7 +4644,7 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = ( output: any, context: __SerdeContext ): AutoTuneMaintenanceSchedule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4650,6 +4652,7 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = ( } return deserializeAws_restJson1AutoTuneMaintenanceSchedule(entry, context); }); + return retVal; }; const deserializeAws_restJson1AutoTuneOptions = (output: any, context: __SerdeContext): AutoTuneOptions => { @@ -4723,7 +4726,7 @@ const deserializeAws_restJson1ChangeProgressStageList = ( output: any, context: __SerdeContext ): ChangeProgressStage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4731,6 +4734,7 @@ const deserializeAws_restJson1ChangeProgressStageList = ( } return deserializeAws_restJson1ChangeProgressStage(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChangeProgressStatusDetails = ( @@ -4792,7 +4796,7 @@ const deserializeAws_restJson1CompatibleElasticsearchVersionsList = ( output: any, context: __SerdeContext ): CompatibleVersionsMap[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4800,6 +4804,7 @@ const deserializeAws_restJson1CompatibleElasticsearchVersionsList = ( } return deserializeAws_restJson1CompatibleVersionsMap(entry, context); }); + return retVal; }; const deserializeAws_restJson1CompatibleVersionsMap = (output: any, context: __SerdeContext): CompatibleVersionsMap => { @@ -4846,7 +4851,7 @@ const deserializeAws_restJson1DomainInfo = (output: any, context: __SerdeContext }; const deserializeAws_restJson1DomainInfoList = (output: any, context: __SerdeContext): DomainInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4854,6 +4859,7 @@ const deserializeAws_restJson1DomainInfoList = (output: any, context: __SerdeCon } return deserializeAws_restJson1DomainInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainInformation = (output: any, context: __SerdeContext): DomainInformation => { @@ -4888,7 +4894,7 @@ const deserializeAws_restJson1DomainPackageDetailsList = ( output: any, context: __SerdeContext ): DomainPackageDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4896,6 +4902,7 @@ const deserializeAws_restJson1DomainPackageDetailsList = ( } return deserializeAws_restJson1DomainPackageDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1DryRunResults = (output: any, context: __SerdeContext): DryRunResults => { @@ -5125,7 +5132,7 @@ const deserializeAws_restJson1ElasticsearchDomainStatusList = ( output: any, context: __SerdeContext ): ElasticsearchDomainStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5133,13 +5140,14 @@ const deserializeAws_restJson1ElasticsearchDomainStatusList = ( } return deserializeAws_restJson1ElasticsearchDomainStatus(entry, context); }); + return retVal; }; const deserializeAws_restJson1ElasticsearchInstanceTypeList = ( output: any, context: __SerdeContext ): (ESPartitionInstanceType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5147,10 +5155,11 @@ const deserializeAws_restJson1ElasticsearchInstanceTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ElasticsearchVersionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5158,6 +5167,7 @@ const deserializeAws_restJson1ElasticsearchVersionList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ElasticsearchVersionStatus = ( @@ -5243,7 +5253,7 @@ const deserializeAws_restJson1InboundCrossClusterSearchConnections = ( output: any, context: __SerdeContext ): InboundCrossClusterSearchConnection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5251,6 +5261,7 @@ const deserializeAws_restJson1InboundCrossClusterSearchConnections = ( } return deserializeAws_restJson1InboundCrossClusterSearchConnection(entry, context); }); + return retVal; }; const deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus = ( @@ -5280,7 +5291,7 @@ const deserializeAws_restJson1InstanceLimits = (output: any, context: __SerdeCon }; const deserializeAws_restJson1Issues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5288,6 +5299,7 @@ const deserializeAws_restJson1Issues = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Limits = (output: any, context: __SerdeContext): Limits => { @@ -5320,7 +5332,7 @@ const deserializeAws_restJson1LimitsByRole = (output: any, context: __SerdeConte }; const deserializeAws_restJson1LimitValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5328,6 +5340,7 @@ const deserializeAws_restJson1LimitValueList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LogPublishingOption = (output: any, context: __SerdeContext): LogPublishingOption => { @@ -5438,7 +5451,7 @@ const deserializeAws_restJson1OutboundCrossClusterSearchConnections = ( output: any, context: __SerdeContext ): OutboundCrossClusterSearchConnection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5446,6 +5459,7 @@ const deserializeAws_restJson1OutboundCrossClusterSearchConnections = ( } return deserializeAws_restJson1OutboundCrossClusterSearchConnection(entry, context); }); + return retVal; }; const deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus = ( @@ -5482,7 +5496,7 @@ const deserializeAws_restJson1PackageDetails = (output: any, context: __SerdeCon }; const deserializeAws_restJson1PackageDetailsList = (output: any, context: __SerdeContext): PackageDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5490,6 +5504,7 @@ const deserializeAws_restJson1PackageDetailsList = (output: any, context: __Serd } return deserializeAws_restJson1PackageDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageVersionHistory = (output: any, context: __SerdeContext): PackageVersionHistory => { @@ -5507,7 +5522,7 @@ const deserializeAws_restJson1PackageVersionHistoryList = ( output: any, context: __SerdeContext ): PackageVersionHistory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5515,6 +5530,7 @@ const deserializeAws_restJson1PackageVersionHistoryList = ( } return deserializeAws_restJson1PackageVersionHistory(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecurringCharge = (output: any, context: __SerdeContext): RecurringCharge => { @@ -5525,7 +5541,7 @@ const deserializeAws_restJson1RecurringCharge = (output: any, context: __SerdeCo }; const deserializeAws_restJson1RecurringChargeList = (output: any, context: __SerdeContext): RecurringCharge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5533,6 +5549,7 @@ const deserializeAws_restJson1RecurringChargeList = (output: any, context: __Ser } return deserializeAws_restJson1RecurringCharge(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReservedElasticsearchInstance = ( @@ -5566,7 +5583,7 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceList = ( output: any, context: __SerdeContext ): ReservedElasticsearchInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5574,6 +5591,7 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceList = ( } return deserializeAws_restJson1ReservedElasticsearchInstance(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReservedElasticsearchInstanceOffering = ( @@ -5599,7 +5617,7 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = ( output: any, context: __SerdeContext ): ReservedElasticsearchInstanceOffering[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5607,6 +5625,7 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = ( } return deserializeAws_restJson1ReservedElasticsearchInstanceOffering(entry, context); }); + return retVal; }; const deserializeAws_restJson1SAMLIdp = (output: any, context: __SerdeContext): SAMLIdp => { @@ -5704,7 +5723,7 @@ const deserializeAws_restJson1StorageTypeLimit = (output: any, context: __SerdeC }; const deserializeAws_restJson1StorageTypeLimitList = (output: any, context: __SerdeContext): StorageTypeLimit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5712,10 +5731,11 @@ const deserializeAws_restJson1StorageTypeLimitList = (output: any, context: __Se } return deserializeAws_restJson1StorageTypeLimit(entry, context); }); + return retVal; }; const deserializeAws_restJson1StorageTypeList = (output: any, context: __SerdeContext): StorageType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5723,10 +5743,11 @@ const deserializeAws_restJson1StorageTypeList = (output: any, context: __SerdeCo } return deserializeAws_restJson1StorageType(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5734,6 +5755,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -5744,7 +5766,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5752,6 +5774,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1UpgradeHistory = (output: any, context: __SerdeContext): UpgradeHistory => { @@ -5770,7 +5793,7 @@ const deserializeAws_restJson1UpgradeHistory = (output: any, context: __SerdeCon }; const deserializeAws_restJson1UpgradeHistoryList = (output: any, context: __SerdeContext): UpgradeHistory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5778,6 +5801,7 @@ const deserializeAws_restJson1UpgradeHistoryList = (output: any, context: __Serd } return deserializeAws_restJson1UpgradeHistory(entry, context); }); + return retVal; }; const deserializeAws_restJson1UpgradeStepItem = (output: any, context: __SerdeContext): UpgradeStepItem => { @@ -5793,7 +5817,7 @@ const deserializeAws_restJson1UpgradeStepItem = (output: any, context: __SerdeCo }; const deserializeAws_restJson1UpgradeStepsList = (output: any, context: __SerdeContext): UpgradeStepItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5801,6 +5825,7 @@ const deserializeAws_restJson1UpgradeStepsList = (output: any, context: __SerdeC } return deserializeAws_restJson1UpgradeStepItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1VPCDerivedInfo = (output: any, context: __SerdeContext): VPCDerivedInfo => { diff --git a/clients/client-emr-containers/src/protocols/Aws_restJson1.ts b/clients/client-emr-containers/src/protocols/Aws_restJson1.ts index f808924f62ff..1d17357df08a 100644 --- a/clients/client-emr-containers/src/protocols/Aws_restJson1.ts +++ b/clients/client-emr-containers/src/protocols/Aws_restJson1.ts @@ -1646,7 +1646,7 @@ const deserializeAws_restJson1Configuration = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ConfigurationList = (output: any, context: __SerdeContext): Configuration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1654,6 +1654,7 @@ const deserializeAws_restJson1ConfigurationList = (output: any, context: __Serde } return deserializeAws_restJson1Configuration(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConfigurationOverrides = ( @@ -1737,7 +1738,7 @@ const deserializeAws_restJson1Endpoint = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Endpoints = (output: any, context: __SerdeContext): Endpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1745,10 +1746,11 @@ const deserializeAws_restJson1Endpoints = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Endpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1EntryPointArguments = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1756,6 +1758,7 @@ const deserializeAws_restJson1EntryPointArguments = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1JobDriver = (output: any, context: __SerdeContext): JobDriver => { @@ -1804,7 +1807,7 @@ const deserializeAws_restJson1JobRun = (output: any, context: __SerdeContext): J }; const deserializeAws_restJson1JobRuns = (output: any, context: __SerdeContext): JobRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1812,6 +1815,7 @@ const deserializeAws_restJson1JobRuns = (output: any, context: __SerdeContext): } return deserializeAws_restJson1JobRun(entry, context); }); + return retVal; }; const deserializeAws_restJson1MonitoringConfiguration = ( @@ -1867,7 +1871,7 @@ const deserializeAws_restJson1SparkSubmitJobDriver = (output: any, context: __Se }; const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1875,6 +1879,7 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -1911,7 +1916,7 @@ const deserializeAws_restJson1VirtualCluster = (output: any, context: __SerdeCon }; const deserializeAws_restJson1VirtualClusters = (output: any, context: __SerdeContext): VirtualCluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1919,6 +1924,7 @@ const deserializeAws_restJson1VirtualClusters = (output: any, context: __SerdeCo } return deserializeAws_restJson1VirtualCluster(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-emr/src/protocols/Aws_json1_1.ts b/clients/client-emr/src/protocols/Aws_json1_1.ts index 98caac7ce00c..8870e0478b50 100644 --- a/clients/client-emr/src/protocols/Aws_json1_1.ts +++ b/clients/client-emr/src/protocols/Aws_json1_1.ts @@ -4980,7 +4980,7 @@ const deserializeAws_json1_1Application = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ApplicationList = (output: any, context: __SerdeContext): Application[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4988,6 +4988,7 @@ const deserializeAws_json1_1ApplicationList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Application(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoScalingPolicyDescription = ( @@ -5098,7 +5099,7 @@ const deserializeAws_json1_1BootstrapActionDetailList = ( output: any, context: __SerdeContext ): BootstrapActionDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5106,6 +5107,7 @@ const deserializeAws_json1_1BootstrapActionDetailList = ( } return deserializeAws_json1_1BootstrapActionDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1CancelStepsInfo = (output: any, context: __SerdeContext): CancelStepsInfo => { @@ -5117,7 +5119,7 @@ const deserializeAws_json1_1CancelStepsInfo = (output: any, context: __SerdeCont }; const deserializeAws_json1_1CancelStepsInfoList = (output: any, context: __SerdeContext): CancelStepsInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5125,6 +5127,7 @@ const deserializeAws_json1_1CancelStepsInfoList = (output: any, context: __Serde } return deserializeAws_json1_1CancelStepsInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1CancelStepsOutput = (output: any, context: __SerdeContext): CancelStepsOutput => { @@ -5251,7 +5254,7 @@ const deserializeAws_json1_1ClusterSummary = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ClusterSummaryList = (output: any, context: __SerdeContext): ClusterSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5259,6 +5262,7 @@ const deserializeAws_json1_1ClusterSummaryList = (output: any, context: __SerdeC } return deserializeAws_json1_1ClusterSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClusterTimeline = (output: any, context: __SerdeContext): ClusterTimeline => { @@ -5290,7 +5294,7 @@ const deserializeAws_json1_1Command = (output: any, context: __SerdeContext): Co }; const deserializeAws_json1_1CommandList = (output: any, context: __SerdeContext): Command[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5298,6 +5302,7 @@ const deserializeAws_json1_1CommandList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Command(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComputeLimits = (output: any, context: __SerdeContext): ComputeLimits => { @@ -5325,7 +5330,7 @@ const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ConfigurationList = (output: any, context: __SerdeContext): Configuration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5333,6 +5338,7 @@ const deserializeAws_json1_1ConfigurationList = (output: any, context: __SerdeCo } return deserializeAws_json1_1Configuration(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateSecurityConfigurationOutput = ( @@ -5447,7 +5453,7 @@ const deserializeAws_json1_1EbsBlockDevice = (output: any, context: __SerdeConte }; const deserializeAws_json1_1EbsBlockDeviceList = (output: any, context: __SerdeContext): EbsBlockDevice[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5455,6 +5461,7 @@ const deserializeAws_json1_1EbsBlockDeviceList = (output: any, context: __SerdeC } return deserializeAws_json1_1EbsBlockDevice(entry, context); }); + return retVal; }; const deserializeAws_json1_1EbsVolume = (output: any, context: __SerdeContext): EbsVolume => { @@ -5465,7 +5472,7 @@ const deserializeAws_json1_1EbsVolume = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1EbsVolumeList = (output: any, context: __SerdeContext): EbsVolume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5473,6 +5480,7 @@ const deserializeAws_json1_1EbsVolumeList = (output: any, context: __SerdeContex } return deserializeAws_json1_1EbsVolume(entry, context); }); + return retVal; }; const deserializeAws_json1_1Ec2InstanceAttributes = (output: any, context: __SerdeContext): Ec2InstanceAttributes => { @@ -5504,7 +5512,7 @@ const deserializeAws_json1_1Ec2InstanceAttributes = (output: any, context: __Ser }; const deserializeAws_json1_1EC2InstanceIdsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5512,6 +5520,7 @@ const deserializeAws_json1_1EC2InstanceIdsList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ExecutionEngineConfig = (output: any, context: __SerdeContext): ExecutionEngineConfig => { @@ -5664,7 +5673,7 @@ const deserializeAws_json1_1InstanceFleet = (output: any, context: __SerdeContex }; const deserializeAws_json1_1InstanceFleetList = (output: any, context: __SerdeContext): InstanceFleet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5672,6 +5681,7 @@ const deserializeAws_json1_1InstanceFleetList = (output: any, context: __SerdeCo } return deserializeAws_json1_1InstanceFleet(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceFleetProvisioningSpecifications = ( @@ -5806,7 +5816,7 @@ const deserializeAws_json1_1InstanceGroupDetail = (output: any, context: __Serde }; const deserializeAws_json1_1InstanceGroupDetailList = (output: any, context: __SerdeContext): InstanceGroupDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5814,10 +5824,11 @@ const deserializeAws_json1_1InstanceGroupDetailList = (output: any, context: __S } return deserializeAws_json1_1InstanceGroupDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceGroupIdsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5825,10 +5836,11 @@ const deserializeAws_json1_1InstanceGroupIdsList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InstanceGroupList = (output: any, context: __SerdeContext): InstanceGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5836,6 +5848,7 @@ const deserializeAws_json1_1InstanceGroupList = (output: any, context: __SerdeCo } return deserializeAws_json1_1InstanceGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceGroupStateChangeReason = ( @@ -5880,7 +5893,7 @@ const deserializeAws_json1_1InstanceGroupTimeline = (output: any, context: __Ser }; const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext): Instance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5888,6 +5901,7 @@ const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Instance(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceResizePolicy = (output: any, context: __SerdeContext): InstanceResizePolicy => { @@ -5971,7 +5985,7 @@ const deserializeAws_json1_1InstanceTypeSpecificationList = ( output: any, context: __SerdeContext ): InstanceTypeSpecification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5979,6 +5993,7 @@ const deserializeAws_json1_1InstanceTypeSpecificationList = ( } return deserializeAws_json1_1InstanceTypeSpecification(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalServerError = (output: any, context: __SerdeContext): InternalServerError => { @@ -6040,7 +6055,7 @@ const deserializeAws_json1_1JobFlowDetail = (output: any, context: __SerdeContex }; const deserializeAws_json1_1JobFlowDetailList = (output: any, context: __SerdeContext): JobFlowDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6048,6 +6063,7 @@ const deserializeAws_json1_1JobFlowDetailList = (output: any, context: __SerdeCo } return deserializeAws_json1_1JobFlowDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1JobFlowExecutionStatusDetail = ( @@ -6118,7 +6134,7 @@ const deserializeAws_json1_1KeyValue = (output: any, context: __SerdeContext): K }; const deserializeAws_json1_1KeyValueList = (output: any, context: __SerdeContext): KeyValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6126,6 +6142,7 @@ const deserializeAws_json1_1KeyValueList = (output: any, context: __SerdeContext } return deserializeAws_json1_1KeyValue(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListBootstrapActionsOutput = ( @@ -6276,7 +6293,7 @@ const deserializeAws_json1_1MetricDimension = (output: any, context: __SerdeCont }; const deserializeAws_json1_1MetricDimensionList = (output: any, context: __SerdeContext): MetricDimension[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6284,6 +6301,7 @@ const deserializeAws_json1_1MetricDimensionList = (output: any, context: __Serde } return deserializeAws_json1_1MetricDimension(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModifyClusterOutput = (output: any, context: __SerdeContext): ModifyClusterOutput => { @@ -6346,7 +6364,7 @@ const deserializeAws_json1_1NotebookExecutionSummaryList = ( output: any, context: __SerdeContext ): NotebookExecutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6354,6 +6372,7 @@ const deserializeAws_json1_1NotebookExecutionSummaryList = ( } return deserializeAws_json1_1NotebookExecutionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1OnDemandCapacityReservationOptions = ( @@ -6391,7 +6410,7 @@ const deserializeAws_json1_1PlacementGroupConfigList = ( output: any, context: __SerdeContext ): PlacementGroupConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6399,6 +6418,7 @@ const deserializeAws_json1_1PlacementGroupConfigList = ( } return deserializeAws_json1_1PlacementGroupConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlacementType = (output: any, context: __SerdeContext): PlacementType => { @@ -6419,7 +6439,7 @@ const deserializeAws_json1_1PortRange = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1PortRanges = (output: any, context: __SerdeContext): PortRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6427,6 +6447,7 @@ const deserializeAws_json1_1PortRanges = (output: any, context: __SerdeContext): } return deserializeAws_json1_1PortRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutAutoScalingPolicyOutput = ( @@ -6530,7 +6551,7 @@ const deserializeAws_json1_1ScalingRule = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ScalingRuleList = (output: any, context: __SerdeContext): ScalingRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6538,6 +6559,7 @@ const deserializeAws_json1_1ScalingRuleList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ScalingRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScalingTrigger = (output: any, context: __SerdeContext): ScalingTrigger => { @@ -6566,7 +6588,7 @@ const deserializeAws_json1_1SecurityConfigurationList = ( output: any, context: __SerdeContext ): SecurityConfigurationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6574,6 +6596,7 @@ const deserializeAws_json1_1SecurityConfigurationList = ( } return deserializeAws_json1_1SecurityConfigurationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecurityConfigurationSummary = ( @@ -6625,7 +6648,7 @@ const deserializeAws_json1_1SessionMappingSummaryList = ( output: any, context: __SerdeContext ): SessionMappingSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6633,6 +6656,7 @@ const deserializeAws_json1_1SessionMappingSummaryList = ( } return deserializeAws_json1_1SessionMappingSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ShrinkPolicy = (output: any, context: __SerdeContext): ShrinkPolicy => { @@ -6667,7 +6691,7 @@ const deserializeAws_json1_1SimplifiedApplicationList = ( output: any, context: __SerdeContext ): SimplifiedApplication[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6675,6 +6699,7 @@ const deserializeAws_json1_1SimplifiedApplicationList = ( } return deserializeAws_json1_1SimplifiedApplication(entry, context); }); + return retVal; }; const deserializeAws_json1_1SpotProvisioningSpecification = ( @@ -6739,7 +6764,7 @@ const deserializeAws_json1_1StepDetail = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1StepDetailList = (output: any, context: __SerdeContext): StepDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6747,6 +6772,7 @@ const deserializeAws_json1_1StepDetailList = (output: any, context: __SerdeConte } return deserializeAws_json1_1StepDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1StepExecutionStatusDetail = ( @@ -6772,7 +6798,7 @@ const deserializeAws_json1_1StepExecutionStatusDetail = ( }; const deserializeAws_json1_1StepIdsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6780,6 +6806,7 @@ const deserializeAws_json1_1StepIdsList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1StepStateChangeReason = (output: any, context: __SerdeContext): StepStateChangeReason => { @@ -6824,7 +6851,7 @@ const deserializeAws_json1_1StepSummary = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1StepSummaryList = (output: any, context: __SerdeContext): StepSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6832,6 +6859,7 @@ const deserializeAws_json1_1StepSummaryList = (output: any, context: __SerdeCont } return deserializeAws_json1_1StepSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1StepTimeline = (output: any, context: __SerdeContext): StepTimeline => { @@ -6852,7 +6880,7 @@ const deserializeAws_json1_1StepTimeline = (output: any, context: __SerdeContext }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6860,6 +6888,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -6921,7 +6950,7 @@ const deserializeAws_json1_1StudioSummary = (output: any, context: __SerdeContex }; const deserializeAws_json1_1StudioSummaryList = (output: any, context: __SerdeContext): StudioSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6929,10 +6958,11 @@ const deserializeAws_json1_1StudioSummaryList = (output: any, context: __SerdeCo } return deserializeAws_json1_1StudioSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6940,10 +6970,11 @@ const deserializeAws_json1_1SubnetIdList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SupportedProductsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6951,6 +6982,7 @@ const deserializeAws_json1_1SupportedProductsList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -6961,7 +6993,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6969,6 +7001,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1VolumeSpecification = (output: any, context: __SerdeContext): VolumeSpecification => { @@ -6980,7 +7013,7 @@ const deserializeAws_json1_1VolumeSpecification = (output: any, context: __Serde }; const deserializeAws_json1_1XmlStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6988,10 +7021,11 @@ const deserializeAws_json1_1XmlStringList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1XmlStringMaxLen256List = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6999,6 +7033,7 @@ const deserializeAws_json1_1XmlStringMaxLen256List = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-eventbridge/src/protocols/Aws_json1_1.ts b/clients/client-eventbridge/src/protocols/Aws_json1_1.ts index 98e6d2c61c68..65b6a1ad4eff 100644 --- a/clients/client-eventbridge/src/protocols/Aws_json1_1.ts +++ b/clients/client-eventbridge/src/protocols/Aws_json1_1.ts @@ -4905,7 +4905,7 @@ const deserializeAws_json1_1ApiDestination = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ApiDestinationResponseList = (output: any, context: __SerdeContext): ApiDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4913,6 +4913,7 @@ const deserializeAws_json1_1ApiDestinationResponseList = (output: any, context: } return deserializeAws_json1_1ApiDestination(entry, context); }); + return retVal; }; const deserializeAws_json1_1Archive = (output: any, context: __SerdeContext): Archive => { @@ -4932,7 +4933,7 @@ const deserializeAws_json1_1Archive = (output: any, context: __SerdeContext): Ar }; const deserializeAws_json1_1ArchiveResponseList = (output: any, context: __SerdeContext): Archive[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4940,6 +4941,7 @@ const deserializeAws_json1_1ArchiveResponseList = (output: any, context: __Serde } return deserializeAws_json1_1Archive(entry, context); }); + return retVal; }; const deserializeAws_json1_1AwsVpcConfiguration = (output: any, context: __SerdeContext): AwsVpcConfiguration => { @@ -4995,7 +4997,7 @@ const deserializeAws_json1_1CapacityProviderStrategy = ( output: any, context: __SerdeContext ): CapacityProviderStrategyItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5003,6 +5005,7 @@ const deserializeAws_json1_1CapacityProviderStrategy = ( } return deserializeAws_json1_1CapacityProviderStrategyItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1CapacityProviderStrategyItem = ( @@ -5104,7 +5107,7 @@ const deserializeAws_json1_1ConnectionBodyParametersList = ( output: any, context: __SerdeContext ): ConnectionBodyParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5112,6 +5115,7 @@ const deserializeAws_json1_1ConnectionBodyParametersList = ( } return deserializeAws_json1_1ConnectionBodyParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionHeaderParameter = ( @@ -5129,7 +5133,7 @@ const deserializeAws_json1_1ConnectionHeaderParametersList = ( output: any, context: __SerdeContext ): ConnectionHeaderParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5137,6 +5141,7 @@ const deserializeAws_json1_1ConnectionHeaderParametersList = ( } return deserializeAws_json1_1ConnectionHeaderParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionHttpParameters = ( @@ -5201,7 +5206,7 @@ const deserializeAws_json1_1ConnectionQueryStringParametersList = ( output: any, context: __SerdeContext ): ConnectionQueryStringParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5209,10 +5214,11 @@ const deserializeAws_json1_1ConnectionQueryStringParametersList = ( } return deserializeAws_json1_1ConnectionQueryStringParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionResponseList = (output: any, context: __SerdeContext): Connection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5220,6 +5226,7 @@ const deserializeAws_json1_1ConnectionResponseList = (output: any, context: __Se } return deserializeAws_json1_1Connection(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateApiDestinationResponse = ( @@ -5557,7 +5564,7 @@ const deserializeAws_json1_1EventBus = (output: any, context: __SerdeContext): E }; const deserializeAws_json1_1EventBusList = (output: any, context: __SerdeContext): EventBus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5565,6 +5572,7 @@ const deserializeAws_json1_1EventBusList = (output: any, context: __SerdeContext } return deserializeAws_json1_1EventBus(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventSource = (output: any, context: __SerdeContext): EventSource => { @@ -5585,7 +5593,7 @@ const deserializeAws_json1_1EventSource = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1EventSourceList = (output: any, context: __SerdeContext): EventSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5593,6 +5601,7 @@ const deserializeAws_json1_1EventSourceList = (output: any, context: __SerdeCont } return deserializeAws_json1_1EventSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1HeaderParametersMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -5869,7 +5878,7 @@ const deserializeAws_json1_1PartnerEventSourceAccountList = ( output: any, context: __SerdeContext ): PartnerEventSourceAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5877,10 +5886,11 @@ const deserializeAws_json1_1PartnerEventSourceAccountList = ( } return deserializeAws_json1_1PartnerEventSourceAccount(entry, context); }); + return retVal; }; const deserializeAws_json1_1PartnerEventSourceList = (output: any, context: __SerdeContext): PartnerEventSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5888,10 +5898,11 @@ const deserializeAws_json1_1PartnerEventSourceList = (output: any, context: __Se } return deserializeAws_json1_1PartnerEventSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1PathParameterList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5899,6 +5910,7 @@ const deserializeAws_json1_1PathParameterList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PlacementConstraint = (output: any, context: __SerdeContext): PlacementConstraint => { @@ -5909,7 +5921,7 @@ const deserializeAws_json1_1PlacementConstraint = (output: any, context: __Serde }; const deserializeAws_json1_1PlacementConstraints = (output: any, context: __SerdeContext): PlacementConstraint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5917,10 +5929,11 @@ const deserializeAws_json1_1PlacementConstraints = (output: any, context: __Serd } return deserializeAws_json1_1PlacementConstraint(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlacementStrategies = (output: any, context: __SerdeContext): PlacementStrategy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5928,6 +5941,7 @@ const deserializeAws_json1_1PlacementStrategies = (output: any, context: __Serde } return deserializeAws_json1_1PlacementStrategy(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlacementStrategy = (output: any, context: __SerdeContext): PlacementStrategy => { @@ -5968,7 +5982,7 @@ const deserializeAws_json1_1PutEventsResultEntryList = ( output: any, context: __SerdeContext ): PutEventsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5976,6 +5990,7 @@ const deserializeAws_json1_1PutEventsResultEntryList = ( } return deserializeAws_json1_1PutEventsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutPartnerEventsResponse = ( @@ -6006,7 +6021,7 @@ const deserializeAws_json1_1PutPartnerEventsResultEntryList = ( output: any, context: __SerdeContext ): PutPartnerEventsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6014,6 +6029,7 @@ const deserializeAws_json1_1PutPartnerEventsResultEntryList = ( } return deserializeAws_json1_1PutPartnerEventsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutRuleResponse = (output: any, context: __SerdeContext): PutRuleResponse => { @@ -6044,7 +6060,7 @@ const deserializeAws_json1_1PutTargetsResultEntryList = ( output: any, context: __SerdeContext ): PutTargetsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6052,6 +6068,7 @@ const deserializeAws_json1_1PutTargetsResultEntryList = ( } return deserializeAws_json1_1PutTargetsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1QueryStringParametersMap = ( @@ -6105,7 +6122,7 @@ const deserializeAws_json1_1RemoveTargetsResultEntryList = ( output: any, context: __SerdeContext ): RemoveTargetsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6113,6 +6130,7 @@ const deserializeAws_json1_1RemoveTargetsResultEntryList = ( } return deserializeAws_json1_1RemoveTargetsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1Replay = (output: any, context: __SerdeContext): Replay => { @@ -6155,7 +6173,7 @@ const deserializeAws_json1_1ReplayDestination = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ReplayDestinationFilters = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6163,10 +6181,11 @@ const deserializeAws_json1_1ReplayDestinationFilters = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ReplayList = (output: any, context: __SerdeContext): Replay[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6174,6 +6193,7 @@ const deserializeAws_json1_1ReplayList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Replay(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceAlreadyExistsException = ( @@ -6216,7 +6236,7 @@ const deserializeAws_json1_1Rule = (output: any, context: __SerdeContext): Rule }; const deserializeAws_json1_1RuleNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6224,10 +6244,11 @@ const deserializeAws_json1_1RuleNameList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RuleResponseList = (output: any, context: __SerdeContext): Rule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6235,6 +6256,7 @@ const deserializeAws_json1_1RuleResponseList = (output: any, context: __SerdeCon } return deserializeAws_json1_1Rule(entry, context); }); + return retVal; }; const deserializeAws_json1_1RunCommandParameters = (output: any, context: __SerdeContext): RunCommandParameters => { @@ -6257,7 +6279,7 @@ const deserializeAws_json1_1RunCommandTarget = (output: any, context: __SerdeCon }; const deserializeAws_json1_1RunCommandTargets = (output: any, context: __SerdeContext): RunCommandTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6265,10 +6287,11 @@ const deserializeAws_json1_1RunCommandTargets = (output: any, context: __SerdeCo } return deserializeAws_json1_1RunCommandTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1RunCommandTargetValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6276,6 +6299,7 @@ const deserializeAws_json1_1RunCommandTargetValues = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SageMakerPipelineParameter = ( @@ -6292,7 +6316,7 @@ const deserializeAws_json1_1SageMakerPipelineParameterList = ( output: any, context: __SerdeContext ): SageMakerPipelineParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6300,6 +6324,7 @@ const deserializeAws_json1_1SageMakerPipelineParameterList = ( } return deserializeAws_json1_1SageMakerPipelineParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1SageMakerPipelineParameters = ( @@ -6333,7 +6358,7 @@ const deserializeAws_json1_1StartReplayResponse = (output: any, context: __Serde }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6341,6 +6366,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -6351,7 +6377,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6359,6 +6385,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -6420,7 +6447,7 @@ const deserializeAws_json1_1Target = (output: any, context: __SerdeContext): Tar }; const deserializeAws_json1_1TargetList = (output: any, context: __SerdeContext): Target[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6428,6 +6455,7 @@ const deserializeAws_json1_1TargetList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Target(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestEventPatternResponse = ( diff --git a/clients/client-evidently/src/protocols/Aws_restJson1.ts b/clients/client-evidently/src/protocols/Aws_restJson1.ts index c1f6a4d23ca1..6ff5b2923274 100644 --- a/clients/client-evidently/src/protocols/Aws_restJson1.ts +++ b/clients/client-evidently/src/protocols/Aws_restJson1.ts @@ -3698,7 +3698,7 @@ const deserializeAws_restJson1CloudWatchLogsDestination = ( }; const deserializeAws_restJson1DoubleValueList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3706,6 +3706,7 @@ const deserializeAws_restJson1DoubleValueList = (output: any, context: __SerdeCo } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EntityOverrideMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3736,7 +3737,7 @@ const deserializeAws_restJson1EvaluationResult = (output: any, context: __SerdeC }; const deserializeAws_restJson1EvaluationResultsList = (output: any, context: __SerdeContext): EvaluationResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3744,6 +3745,7 @@ const deserializeAws_restJson1EvaluationResultsList = (output: any, context: __S } return deserializeAws_restJson1EvaluationResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1EvaluationRule = (output: any, context: __SerdeContext): EvaluationRule => { @@ -3754,7 +3756,7 @@ const deserializeAws_restJson1EvaluationRule = (output: any, context: __SerdeCon }; const deserializeAws_restJson1EvaluationRulesList = (output: any, context: __SerdeContext): EvaluationRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3762,6 +3764,7 @@ const deserializeAws_restJson1EvaluationRulesList = (output: any, context: __Ser } return deserializeAws_restJson1EvaluationRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1Experiment = (output: any, context: __SerdeContext): Experiment => { @@ -3824,7 +3827,7 @@ const deserializeAws_restJson1ExperimentExecution = (output: any, context: __Ser }; const deserializeAws_restJson1ExperimentList = (output: any, context: __SerdeContext): Experiment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3832,6 +3835,7 @@ const deserializeAws_restJson1ExperimentList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Experiment(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentReport = (output: any, context: __SerdeContext): ExperimentReport => { @@ -3844,7 +3848,7 @@ const deserializeAws_restJson1ExperimentReport = (output: any, context: __SerdeC }; const deserializeAws_restJson1ExperimentReportList = (output: any, context: __SerdeContext): ExperimentReport[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3852,6 +3856,7 @@ const deserializeAws_restJson1ExperimentReportList = (output: any, context: __Se } return deserializeAws_restJson1ExperimentReport(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentResultsData = (output: any, context: __SerdeContext): ExperimentResultsData => { @@ -3870,7 +3875,7 @@ const deserializeAws_restJson1ExperimentResultsDataList = ( output: any, context: __SerdeContext ): ExperimentResultsData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3878,6 +3883,7 @@ const deserializeAws_restJson1ExperimentResultsDataList = ( } return deserializeAws_restJson1ExperimentResultsData(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentSchedule = (output: any, context: __SerdeContext): ExperimentSchedule => { @@ -3927,7 +3933,7 @@ const deserializeAws_restJson1Feature = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1FeatureSummariesList = (output: any, context: __SerdeContext): FeatureSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3935,6 +3941,7 @@ const deserializeAws_restJson1FeatureSummariesList = (output: any, context: __Se } return deserializeAws_restJson1FeatureSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1FeatureSummary = (output: any, context: __SerdeContext): FeatureSummary => { @@ -4033,7 +4040,7 @@ const deserializeAws_restJson1Launch = (output: any, context: __SerdeContext): L }; const deserializeAws_restJson1LaunchesList = (output: any, context: __SerdeContext): Launch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4041,6 +4048,7 @@ const deserializeAws_restJson1LaunchesList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Launch(entry, context); }); + return retVal; }; const deserializeAws_restJson1LaunchExecution = (output: any, context: __SerdeContext): LaunchExecution => { @@ -4068,7 +4076,7 @@ const deserializeAws_restJson1LaunchGroup = (output: any, context: __SerdeContex }; const deserializeAws_restJson1LaunchGroupList = (output: any, context: __SerdeContext): LaunchGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4076,6 +4084,7 @@ const deserializeAws_restJson1LaunchGroupList = (output: any, context: __SerdeCo } return deserializeAws_restJson1LaunchGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1MetricDefinition = (output: any, context: __SerdeContext): MetricDefinition => { @@ -4102,7 +4111,7 @@ const deserializeAws_restJson1MetricGoal = (output: any, context: __SerdeContext }; const deserializeAws_restJson1MetricGoalsList = (output: any, context: __SerdeContext): MetricGoal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4110,6 +4119,7 @@ const deserializeAws_restJson1MetricGoalsList = (output: any, context: __SerdeCo } return deserializeAws_restJson1MetricGoal(entry, context); }); + return retVal; }; const deserializeAws_restJson1MetricMonitor = (output: any, context: __SerdeContext): MetricMonitor => { @@ -4122,7 +4132,7 @@ const deserializeAws_restJson1MetricMonitor = (output: any, context: __SerdeCont }; const deserializeAws_restJson1MetricMonitorList = (output: any, context: __SerdeContext): MetricMonitor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4130,6 +4140,7 @@ const deserializeAws_restJson1MetricMonitorList = (output: any, context: __Serde } return deserializeAws_restJson1MetricMonitor(entry, context); }); + return retVal; }; const deserializeAws_restJson1OnlineAbDefinition = (output: any, context: __SerdeContext): OnlineAbDefinition => { @@ -4186,7 +4197,7 @@ const deserializeAws_restJson1ProjectDataDelivery = (output: any, context: __Ser }; const deserializeAws_restJson1ProjectSummariesList = (output: any, context: __SerdeContext): ProjectSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4194,6 +4205,7 @@ const deserializeAws_restJson1ProjectSummariesList = (output: any, context: __Se } return deserializeAws_restJson1ProjectSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProjectSummary = (output: any, context: __SerdeContext): ProjectSummary => { @@ -4237,7 +4249,7 @@ const deserializeAws_restJson1PutProjectEventsResultEntryList = ( output: any, context: __SerdeContext ): PutProjectEventsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4245,6 +4257,7 @@ const deserializeAws_restJson1PutProjectEventsResultEntryList = ( } return deserializeAws_restJson1PutProjectEventsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3Destination = (output: any, context: __SerdeContext): S3Destination => { @@ -4280,7 +4293,7 @@ const deserializeAws_restJson1ScheduledSplitsLaunchDefinition = ( }; const deserializeAws_restJson1ScheduledStepList = (output: any, context: __SerdeContext): ScheduledSplit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4288,6 +4301,7 @@ const deserializeAws_restJson1ScheduledStepList = (output: any, context: __Serde } return deserializeAws_restJson1ScheduledSplit(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4303,7 +4317,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1TimestampList = (output: any, context: __SerdeContext): Date[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4311,6 +4325,7 @@ const deserializeAws_restJson1TimestampList = (output: any, context: __SerdeCont } return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry))); }); + return retVal; }; const deserializeAws_restJson1Treatment = (output: any, context: __SerdeContext): Treatment => { @@ -4325,7 +4340,7 @@ const deserializeAws_restJson1Treatment = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1TreatmentList = (output: any, context: __SerdeContext): Treatment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4333,6 +4348,7 @@ const deserializeAws_restJson1TreatmentList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Treatment(entry, context); }); + return retVal; }; const deserializeAws_restJson1TreatmentToWeightMap = ( @@ -4364,7 +4380,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4372,6 +4388,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1VariableValue = (output: any, context: __SerdeContext): VariableValue => { @@ -4401,7 +4418,7 @@ const deserializeAws_restJson1Variation = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1VariationsList = (output: any, context: __SerdeContext): Variation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4409,6 +4426,7 @@ const deserializeAws_restJson1VariationsList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Variation(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-finspace-data/src/protocols/Aws_restJson1.ts b/clients/client-finspace-data/src/protocols/Aws_restJson1.ts index aefd1073124c..0a42ff6c236b 100644 --- a/clients/client-finspace-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-finspace-data/src/protocols/Aws_restJson1.ts @@ -1819,7 +1819,7 @@ const deserializeAws_restJson1ChangesetErrorInfo = (output: any, context: __Serd }; const deserializeAws_restJson1ChangesetList = (output: any, context: __SerdeContext): ChangesetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1827,6 +1827,7 @@ const deserializeAws_restJson1ChangesetList = (output: any, context: __SerdeCont } return deserializeAws_restJson1ChangesetSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChangesetSummary = (output: any, context: __SerdeContext): ChangesetSummary => { @@ -1865,7 +1866,7 @@ const deserializeAws_restJson1ColumnDefinition = (output: any, context: __SerdeC }; const deserializeAws_restJson1ColumnList = (output: any, context: __SerdeContext): ColumnDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1873,10 +1874,11 @@ const deserializeAws_restJson1ColumnList = (output: any, context: __SerdeContext } return deserializeAws_restJson1ColumnDefinition(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1884,6 +1886,7 @@ const deserializeAws_restJson1ColumnNameList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Credentials = (output: any, context: __SerdeContext): Credentials => { @@ -1916,7 +1919,7 @@ const deserializeAws_restJson1Dataset = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1DatasetList = (output: any, context: __SerdeContext): Dataset[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1924,6 +1927,7 @@ const deserializeAws_restJson1DatasetList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Dataset(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatasetOwnerInfo = (output: any, context: __SerdeContext): DatasetOwnerInfo => { @@ -1956,7 +1960,7 @@ const deserializeAws_restJson1DataViewErrorInfo = (output: any, context: __Serde }; const deserializeAws_restJson1DataViewList = (output: any, context: __SerdeContext): DataViewSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1964,6 +1968,7 @@ const deserializeAws_restJson1DataViewList = (output: any, context: __SerdeConte } return deserializeAws_restJson1DataViewSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataViewSummary = (output: any, context: __SerdeContext): DataViewSummary => { @@ -2008,7 +2013,7 @@ const deserializeAws_restJson1FormatParams = (output: any, context: __SerdeConte }; const deserializeAws_restJson1PartitionColumnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2016,6 +2021,7 @@ const deserializeAws_restJson1PartitionColumnList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3DestinationFormatOptions = ( @@ -2056,7 +2062,7 @@ const deserializeAws_restJson1SchemaUnion = (output: any, context: __SerdeContex }; const deserializeAws_restJson1SortColumnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2064,6 +2070,7 @@ const deserializeAws_restJson1SortColumnList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SourceParams = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-finspace/src/protocols/Aws_restJson1.ts b/clients/client-finspace/src/protocols/Aws_restJson1.ts index f1bfec300d85..8e50854daa4f 100644 --- a/clients/client-finspace/src/protocols/Aws_restJson1.ts +++ b/clients/client-finspace/src/protocols/Aws_restJson1.ts @@ -928,7 +928,7 @@ const deserializeAws_restJson1Environment = (output: any, context: __SerdeContex }; const deserializeAws_restJson1EnvironmentList = (output: any, context: __SerdeContext): Environment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -936,6 +936,7 @@ const deserializeAws_restJson1EnvironmentList = (output: any, context: __SerdeCo } return deserializeAws_restJson1Environment(entry, context); }); + return retVal; }; const deserializeAws_restJson1FederationParameters = (output: any, context: __SerdeContext): FederationParameters => { diff --git a/clients/client-firehose/src/protocols/Aws_json1_1.ts b/clients/client-firehose/src/protocols/Aws_json1_1.ts index a6ac92c3d5d6..ad4cc94bdb08 100644 --- a/clients/client-firehose/src/protocols/Aws_json1_1.ts +++ b/clients/client-firehose/src/protocols/Aws_json1_1.ts @@ -2483,7 +2483,7 @@ const deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = ( }; const deserializeAws_json1_1DeliveryStreamNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2491,6 +2491,7 @@ const deserializeAws_json1_1DeliveryStreamNameList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DescribeDeliveryStreamOutput = ( @@ -2560,7 +2561,7 @@ const deserializeAws_json1_1DestinationDescriptionList = ( output: any, context: __SerdeContext ): DestinationDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2568,6 +2569,7 @@ const deserializeAws_json1_1DestinationDescriptionList = ( } return deserializeAws_json1_1DestinationDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1DynamicPartitioningConfiguration = ( @@ -2736,7 +2738,7 @@ const deserializeAws_json1_1HttpEndpointCommonAttributesList = ( output: any, context: __SerdeContext ): HttpEndpointCommonAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2744,6 +2746,7 @@ const deserializeAws_json1_1HttpEndpointCommonAttributesList = ( } return deserializeAws_json1_1HttpEndpointCommonAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1HttpEndpointDescription = ( @@ -2887,7 +2890,7 @@ const deserializeAws_json1_1ListDeliveryStreamsOutput = ( }; const deserializeAws_json1_1ListOfNonEmptyStrings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2895,13 +2898,14 @@ const deserializeAws_json1_1ListOfNonEmptyStrings = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2909,6 +2913,7 @@ const deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListTagsForDeliveryStreamOutput = ( @@ -2925,7 +2930,7 @@ const deserializeAws_json1_1ListTagsForDeliveryStreamOutput = ( }; const deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2933,6 +2938,7 @@ const deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = (output: an } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpenXJsonSerDe = (output: any, context: __SerdeContext): OpenXJsonSerDe => { @@ -3011,7 +3017,7 @@ const deserializeAws_json1_1Processor = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ProcessorList = (output: any, context: __SerdeContext): Processor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3019,6 +3025,7 @@ const deserializeAws_json1_1ProcessorList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Processor(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProcessorParameter = (output: any, context: __SerdeContext): ProcessorParameter => { @@ -3029,7 +3036,7 @@ const deserializeAws_json1_1ProcessorParameter = (output: any, context: __SerdeC }; const deserializeAws_json1_1ProcessorParameterList = (output: any, context: __SerdeContext): ProcessorParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3037,6 +3044,7 @@ const deserializeAws_json1_1ProcessorParameterList = (output: any, context: __Se } return deserializeAws_json1_1ProcessorParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutRecordBatchOutput = (output: any, context: __SerdeContext): PutRecordBatchOutput => { @@ -3065,7 +3073,7 @@ const deserializeAws_json1_1PutRecordBatchResponseEntryList = ( output: any, context: __SerdeContext ): PutRecordBatchResponseEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3073,6 +3081,7 @@ const deserializeAws_json1_1PutRecordBatchResponseEntryList = ( } return deserializeAws_json1_1PutRecordBatchResponseEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutRecordOutput = (output: any, context: __SerdeContext): PutRecordOutput => { @@ -3182,7 +3191,7 @@ const deserializeAws_json1_1SchemaConfiguration = (output: any, context: __Serde }; const deserializeAws_json1_1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3190,6 +3199,7 @@ const deserializeAws_json1_1SecurityGroupIdList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Serializer = (output: any, context: __SerdeContext): Serializer => { @@ -3273,7 +3283,7 @@ const deserializeAws_json1_1StopDeliveryStreamEncryptionOutput = ( }; const deserializeAws_json1_1SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3281,6 +3291,7 @@ const deserializeAws_json1_1SubnetIdList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { diff --git a/clients/client-fis/src/protocols/Aws_restJson1.ts b/clients/client-fis/src/protocols/Aws_restJson1.ts index 3ad0e5dd5bde..487645ff9fb7 100644 --- a/clients/client-fis/src/protocols/Aws_restJson1.ts +++ b/clients/client-fis/src/protocols/Aws_restJson1.ts @@ -1763,7 +1763,7 @@ const deserializeAws_restJson1ActionSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ActionSummaryList = (output: any, context: __SerdeContext): ActionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1771,6 +1771,7 @@ const deserializeAws_restJson1ActionSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1ActionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ActionTarget = (output: any, context: __SerdeContext): ActionTarget => { @@ -1896,7 +1897,7 @@ const deserializeAws_restJson1ExperimentActionParameterMap = ( }; const deserializeAws_restJson1ExperimentActionStartAfterList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1904,6 +1905,7 @@ const deserializeAws_restJson1ExperimentActionStartAfterList = (output: any, con } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ExperimentActionState = (output: any, context: __SerdeContext): ExperimentActionState => { @@ -1949,7 +1951,7 @@ const deserializeAws_restJson1ExperimentStopConditionList = ( output: any, context: __SerdeContext ): ExperimentStopCondition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1957,6 +1959,7 @@ const deserializeAws_restJson1ExperimentStopConditionList = ( } return deserializeAws_restJson1ExperimentStopCondition(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentSummary = (output: any, context: __SerdeContext): ExperimentSummary => { @@ -1979,7 +1982,7 @@ const deserializeAws_restJson1ExperimentSummary = (output: any, context: __Serde }; const deserializeAws_restJson1ExperimentSummaryList = (output: any, context: __SerdeContext): ExperimentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1987,6 +1990,7 @@ const deserializeAws_restJson1ExperimentSummaryList = (output: any, context: __S } return deserializeAws_restJson1ExperimentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentTarget = (output: any, context: __SerdeContext): ExperimentTarget => { @@ -2029,7 +2033,7 @@ const deserializeAws_restJson1ExperimentTargetFilterList = ( output: any, context: __SerdeContext ): ExperimentTargetFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2037,10 +2041,11 @@ const deserializeAws_restJson1ExperimentTargetFilterList = ( } return deserializeAws_restJson1ExperimentTargetFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentTargetFilterValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2048,6 +2053,7 @@ const deserializeAws_restJson1ExperimentTargetFilterValues = (output: any, conte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ExperimentTargetMap = ( @@ -2171,7 +2177,7 @@ const deserializeAws_restJson1ExperimentTemplateActionStartAfterList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2179,6 +2185,7 @@ const deserializeAws_restJson1ExperimentTemplateActionStartAfterList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ExperimentTemplateActionTargetMap = ( @@ -2210,7 +2217,7 @@ const deserializeAws_restJson1ExperimentTemplateStopConditionList = ( output: any, context: __SerdeContext ): ExperimentTemplateStopCondition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2218,6 +2225,7 @@ const deserializeAws_restJson1ExperimentTemplateStopConditionList = ( } return deserializeAws_restJson1ExperimentTemplateStopCondition(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentTemplateSummary = ( @@ -2246,7 +2254,7 @@ const deserializeAws_restJson1ExperimentTemplateSummaryList = ( output: any, context: __SerdeContext ): ExperimentTemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2254,6 +2262,7 @@ const deserializeAws_restJson1ExperimentTemplateSummaryList = ( } return deserializeAws_restJson1ExperimentTemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentTemplateTarget = ( @@ -2299,7 +2308,7 @@ const deserializeAws_restJson1ExperimentTemplateTargetFilterList = ( output: any, context: __SerdeContext ): ExperimentTemplateTargetFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2307,13 +2316,14 @@ const deserializeAws_restJson1ExperimentTemplateTargetFilterList = ( } return deserializeAws_restJson1ExperimentTemplateTargetFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExperimentTemplateTargetFilterValues = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2321,6 +2331,7 @@ const deserializeAws_restJson1ExperimentTemplateTargetFilterValues = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ExperimentTemplateTargetMap = ( @@ -2357,7 +2368,7 @@ const deserializeAws_restJson1ExperimentTemplateTargetParameterMap = ( }; const deserializeAws_restJson1ResourceArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2365,6 +2376,7 @@ const deserializeAws_restJson1ResourceArnList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -2432,7 +2444,7 @@ const deserializeAws_restJson1TargetResourceTypeSummaryList = ( output: any, context: __SerdeContext ): TargetResourceTypeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2440,6 +2452,7 @@ const deserializeAws_restJson1TargetResourceTypeSummaryList = ( } return deserializeAws_restJson1TargetResourceTypeSummary(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-fms/src/protocols/Aws_json1_1.ts b/clients/client-fms/src/protocols/Aws_json1_1.ts index 865acad4ec2b..406f7d43a3d2 100644 --- a/clients/client-fms/src/protocols/Aws_json1_1.ts +++ b/clients/client-fms/src/protocols/Aws_json1_1.ts @@ -2381,7 +2381,7 @@ const deserializeAws_json1_1App = (output: any, context: __SerdeContext): App => }; const deserializeAws_json1_1AppsList = (output: any, context: __SerdeContext): App[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2389,6 +2389,7 @@ const deserializeAws_json1_1AppsList = (output: any, context: __SerdeContext): A } return deserializeAws_json1_1App(entry, context); }); + return retVal; }; const deserializeAws_json1_1AppsListData = (output: any, context: __SerdeContext): AppsListData => { @@ -2428,7 +2429,7 @@ const deserializeAws_json1_1AppsListDataSummary = (output: any, context: __Serde }; const deserializeAws_json1_1AppsListsData = (output: any, context: __SerdeContext): AppsListDataSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2436,6 +2437,7 @@ const deserializeAws_json1_1AppsListsData = (output: any, context: __SerdeContex } return deserializeAws_json1_1AppsListDataSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1AwsEc2InstanceViolation = ( @@ -2468,7 +2470,7 @@ const deserializeAws_json1_1AwsEc2NetworkInterfaceViolations = ( output: any, context: __SerdeContext ): AwsEc2NetworkInterfaceViolation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2476,6 +2478,7 @@ const deserializeAws_json1_1AwsEc2NetworkInterfaceViolations = ( } return deserializeAws_json1_1AwsEc2NetworkInterfaceViolation(entry, context); }); + return retVal; }; const deserializeAws_json1_1AwsVPCSecurityGroupViolation = ( @@ -2506,7 +2509,7 @@ const deserializeAws_json1_1ComplianceViolator = (output: any, context: __SerdeC }; const deserializeAws_json1_1ComplianceViolators = (output: any, context: __SerdeContext): ComplianceViolator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2514,10 +2517,11 @@ const deserializeAws_json1_1ComplianceViolators = (output: any, context: __Serde } return deserializeAws_json1_1ComplianceViolator(entry, context); }); + return retVal; }; const deserializeAws_json1_1CustomerPolicyScopeIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2525,6 +2529,7 @@ const deserializeAws_json1_1CustomerPolicyScopeIdList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CustomerPolicyScopeMap = ( @@ -2567,7 +2572,7 @@ const deserializeAws_json1_1DnsRuleGroupLimitExceededViolation = ( }; const deserializeAws_json1_1DnsRuleGroupPriorities = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2575,6 +2580,7 @@ const deserializeAws_json1_1DnsRuleGroupPriorities = (output: any, context: __Se } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DnsRuleGroupPriorityConflictViolation = ( @@ -2721,7 +2727,7 @@ const deserializeAws_json1_1EvaluationResult = (output: any, context: __SerdeCon }; const deserializeAws_json1_1EvaluationResults = (output: any, context: __SerdeContext): EvaluationResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2729,6 +2735,7 @@ const deserializeAws_json1_1EvaluationResults = (output: any, context: __SerdeCo } return deserializeAws_json1_1EvaluationResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExpectedRoute = (output: any, context: __SerdeContext): ExpectedRoute => { @@ -2749,7 +2756,7 @@ const deserializeAws_json1_1ExpectedRoute = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ExpectedRoutes = (output: any, context: __SerdeContext): ExpectedRoute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2757,6 +2764,7 @@ const deserializeAws_json1_1ExpectedRoutes = (output: any, context: __SerdeConte } return deserializeAws_json1_1ExpectedRoute(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetAdminAccountResponse = ( @@ -2891,7 +2899,7 @@ const deserializeAws_json1_1IssueInfoMap = (output: any, context: __SerdeContext }; const deserializeAws_json1_1LengthBoundedStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2899,6 +2907,7 @@ const deserializeAws_json1_1LengthBoundedStringList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -2979,7 +2988,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( }; const deserializeAws_json1_1MemberAccounts = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2987,10 +2996,11 @@ const deserializeAws_json1_1MemberAccounts = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NetworkFirewallActionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2998,6 +3008,7 @@ const deserializeAws_json1_1NetworkFirewallActionList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NetworkFirewallBlackHoleRouteDetectedViolation = ( @@ -3226,7 +3237,7 @@ const deserializeAws_json1_1OrderedRemediationActions = ( output: any, context: __SerdeContext ): RemediationActionWithOrder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3234,6 +3245,7 @@ const deserializeAws_json1_1OrderedRemediationActions = ( } return deserializeAws_json1_1RemediationActionWithOrder(entry, context); }); + return retVal; }; const deserializeAws_json1_1PartialMatch = (output: any, context: __SerdeContext): PartialMatch => { @@ -3247,7 +3259,7 @@ const deserializeAws_json1_1PartialMatch = (output: any, context: __SerdeContext }; const deserializeAws_json1_1PartialMatches = (output: any, context: __SerdeContext): PartialMatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3255,6 +3267,7 @@ const deserializeAws_json1_1PartialMatches = (output: any, context: __SerdeConte } return deserializeAws_json1_1PartialMatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1Policy = (output: any, context: __SerdeContext): Policy => { @@ -3335,7 +3348,7 @@ const deserializeAws_json1_1PolicyComplianceStatusList = ( output: any, context: __SerdeContext ): PolicyComplianceStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3343,6 +3356,7 @@ const deserializeAws_json1_1PolicyComplianceStatusList = ( } return deserializeAws_json1_1PolicyComplianceStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1PolicySummary = (output: any, context: __SerdeContext): PolicySummary => { @@ -3358,7 +3372,7 @@ const deserializeAws_json1_1PolicySummary = (output: any, context: __SerdeContex }; const deserializeAws_json1_1PolicySummaryList = (output: any, context: __SerdeContext): PolicySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3366,6 +3380,7 @@ const deserializeAws_json1_1PolicySummaryList = (output: any, context: __SerdeCo } return deserializeAws_json1_1PolicySummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PossibleRemediationAction = ( @@ -3386,7 +3401,7 @@ const deserializeAws_json1_1PossibleRemediationActionList = ( output: any, context: __SerdeContext ): PossibleRemediationAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3394,6 +3409,7 @@ const deserializeAws_json1_1PossibleRemediationActionList = ( } return deserializeAws_json1_1PossibleRemediationAction(entry, context); }); + return retVal; }; const deserializeAws_json1_1PossibleRemediationActions = ( @@ -3437,7 +3453,7 @@ const deserializeAws_json1_1PreviousProtocolsList = ( }; const deserializeAws_json1_1ProtocolsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3445,6 +3461,7 @@ const deserializeAws_json1_1ProtocolsList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProtocolsListData = (output: any, context: __SerdeContext): ProtocolsListData => { @@ -3487,7 +3504,7 @@ const deserializeAws_json1_1ProtocolsListDataSummary = ( }; const deserializeAws_json1_1ProtocolsListsData = (output: any, context: __SerdeContext): ProtocolsListDataSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3495,6 +3512,7 @@ const deserializeAws_json1_1ProtocolsListsData = (output: any, context: __SerdeC } return deserializeAws_json1_1ProtocolsListDataSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutAppsListResponse = (output: any, context: __SerdeContext): PutAppsListResponse => { @@ -3582,7 +3600,7 @@ const deserializeAws_json1_1RemediationActionWithOrder = ( }; const deserializeAws_json1_1ResourceIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3590,6 +3608,7 @@ const deserializeAws_json1_1ResourceIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceNotFoundException = ( @@ -3609,7 +3628,7 @@ const deserializeAws_json1_1ResourceTag = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ResourceTags = (output: any, context: __SerdeContext): ResourceTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3617,10 +3636,11 @@ const deserializeAws_json1_1ResourceTags = (output: any, context: __SerdeContext } return deserializeAws_json1_1ResourceTag(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceTypeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3628,6 +3648,7 @@ const deserializeAws_json1_1ResourceTypeList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceViolation = (output: any, context: __SerdeContext): ResourceViolation => { @@ -3748,7 +3769,7 @@ const deserializeAws_json1_1ResourceViolation = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ResourceViolations = (output: any, context: __SerdeContext): ResourceViolation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3756,6 +3777,7 @@ const deserializeAws_json1_1ResourceViolations = (output: any, context: __SerdeC } return deserializeAws_json1_1ResourceViolation(entry, context); }); + return retVal; }; const deserializeAws_json1_1Route = (output: any, context: __SerdeContext): Route => { @@ -3768,7 +3790,7 @@ const deserializeAws_json1_1Route = (output: any, context: __SerdeContext): Rout }; const deserializeAws_json1_1Routes = (output: any, context: __SerdeContext): Route[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3776,6 +3798,7 @@ const deserializeAws_json1_1Routes = (output: any, context: __SerdeContext): Rou } return deserializeAws_json1_1Route(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecurityGroupRemediationAction = ( @@ -3797,7 +3820,7 @@ const deserializeAws_json1_1SecurityGroupRemediationActions = ( output: any, context: __SerdeContext ): SecurityGroupRemediationAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3805,6 +3828,7 @@ const deserializeAws_json1_1SecurityGroupRemediationActions = ( } return deserializeAws_json1_1SecurityGroupRemediationAction(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecurityGroupRuleDescription = ( @@ -3839,7 +3863,7 @@ const deserializeAws_json1_1StatefulRuleGroup = (output: any, context: __SerdeCo }; const deserializeAws_json1_1StatefulRuleGroupList = (output: any, context: __SerdeContext): StatefulRuleGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3847,6 +3871,7 @@ const deserializeAws_json1_1StatefulRuleGroupList = (output: any, context: __Ser } return deserializeAws_json1_1StatefulRuleGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1StatelessRuleGroup = (output: any, context: __SerdeContext): StatelessRuleGroup => { @@ -3858,7 +3883,7 @@ const deserializeAws_json1_1StatelessRuleGroup = (output: any, context: __SerdeC }; const deserializeAws_json1_1StatelessRuleGroupList = (output: any, context: __SerdeContext): StatelessRuleGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3866,6 +3891,7 @@ const deserializeAws_json1_1StatelessRuleGroupList = (output: any, context: __Se } return deserializeAws_json1_1StatelessRuleGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -3876,7 +3902,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3884,6 +3910,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -3891,7 +3918,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1TargetViolationReasons = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3899,6 +3926,7 @@ const deserializeAws_json1_1TargetViolationReasons = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => { diff --git a/clients/client-forecast/src/protocols/Aws_json1_1.ts b/clients/client-forecast/src/protocols/Aws_json1_1.ts index c6416b6e12ae..f0cd8202cfab 100644 --- a/clients/client-forecast/src/protocols/Aws_json1_1.ts +++ b/clients/client-forecast/src/protocols/Aws_json1_1.ts @@ -4103,7 +4103,7 @@ const deserializeAws_json1_1AdditionalDataset = (output: any, context: __SerdeCo }; const deserializeAws_json1_1AdditionalDatasets = (output: any, context: __SerdeContext): AdditionalDataset[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4111,10 +4111,11 @@ const deserializeAws_json1_1AdditionalDatasets = (output: any, context: __SerdeC } return deserializeAws_json1_1AdditionalDataset(entry, context); }); + return retVal; }; const deserializeAws_json1_1ArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4122,6 +4123,7 @@ const deserializeAws_json1_1ArnList = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AttributeConfig = (output: any, context: __SerdeContext): AttributeConfig => { @@ -4135,7 +4137,7 @@ const deserializeAws_json1_1AttributeConfig = (output: any, context: __SerdeCont }; const deserializeAws_json1_1AttributeConfigs = (output: any, context: __SerdeContext): AttributeConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4143,6 +4145,7 @@ const deserializeAws_json1_1AttributeConfigs = (output: any, context: __SerdeCon } return deserializeAws_json1_1AttributeConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1CategoricalParameterRange = ( @@ -4162,7 +4165,7 @@ const deserializeAws_json1_1CategoricalParameterRanges = ( output: any, context: __SerdeContext ): CategoricalParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4170,6 +4173,7 @@ const deserializeAws_json1_1CategoricalParameterRanges = ( } return deserializeAws_json1_1CategoricalParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContext): { [key: string]: string[] } => { @@ -4200,7 +4204,7 @@ const deserializeAws_json1_1ContinuousParameterRanges = ( output: any, context: __SerdeContext ): ContinuousParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4208,6 +4212,7 @@ const deserializeAws_json1_1ContinuousParameterRanges = ( } return deserializeAws_json1_1ContinuousParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateAutoPredictorResponse = ( @@ -4318,7 +4323,7 @@ const deserializeAws_json1_1DataDestination = (output: any, context: __SerdeCont }; const deserializeAws_json1_1DatasetGroups = (output: any, context: __SerdeContext): DatasetGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4326,6 +4331,7 @@ const deserializeAws_json1_1DatasetGroups = (output: any, context: __SerdeContex } return deserializeAws_json1_1DatasetGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetGroupSummary = (output: any, context: __SerdeContext): DatasetGroupSummary => { @@ -4344,7 +4350,7 @@ const deserializeAws_json1_1DatasetGroupSummary = (output: any, context: __Serde }; const deserializeAws_json1_1DatasetImportJobs = (output: any, context: __SerdeContext): DatasetImportJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4352,6 +4358,7 @@ const deserializeAws_json1_1DatasetImportJobs = (output: any, context: __SerdeCo } return deserializeAws_json1_1DatasetImportJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetImportJobSummary = ( @@ -4379,7 +4386,7 @@ const deserializeAws_json1_1DatasetImportJobSummary = ( }; const deserializeAws_json1_1Datasets = (output: any, context: __SerdeContext): DatasetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4387,6 +4394,7 @@ const deserializeAws_json1_1Datasets = (output: any, context: __SerdeContext): D } return deserializeAws_json1_1DatasetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetSummary = (output: any, context: __SerdeContext): DatasetSummary => { @@ -4781,7 +4789,7 @@ const deserializeAws_json1_1ErrorMetric = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ErrorMetrics = (output: any, context: __SerdeContext): ErrorMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4789,6 +4797,7 @@ const deserializeAws_json1_1ErrorMetrics = (output: any, context: __SerdeContext } return deserializeAws_json1_1ErrorMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_1EvaluationParameters = (output: any, context: __SerdeContext): EvaluationParameters => { @@ -4809,7 +4818,7 @@ const deserializeAws_json1_1EvaluationResult = (output: any, context: __SerdeCon }; const deserializeAws_json1_1Explainabilities = (output: any, context: __SerdeContext): ExplainabilitySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4817,6 +4826,7 @@ const deserializeAws_json1_1Explainabilities = (output: any, context: __SerdeCon } return deserializeAws_json1_1ExplainabilitySummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExplainabilityConfig = (output: any, context: __SerdeContext): ExplainabilityConfig => { @@ -4830,7 +4840,7 @@ const deserializeAws_json1_1ExplainabilityExports = ( output: any, context: __SerdeContext ): ExplainabilityExportSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4838,6 +4848,7 @@ const deserializeAws_json1_1ExplainabilityExports = ( } return deserializeAws_json1_1ExplainabilityExportSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExplainabilityExportSummary = ( @@ -4943,7 +4954,7 @@ const deserializeAws_json1_1FeaturizationMethodParameters = ( }; const deserializeAws_json1_1FeaturizationPipeline = (output: any, context: __SerdeContext): FeaturizationMethod[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4951,10 +4962,11 @@ const deserializeAws_json1_1FeaturizationPipeline = (output: any, context: __Ser } return deserializeAws_json1_1FeaturizationMethod(entry, context); }); + return retVal; }; const deserializeAws_json1_1Featurizations = (output: any, context: __SerdeContext): Featurization[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4962,6 +4974,7 @@ const deserializeAws_json1_1Featurizations = (output: any, context: __SerdeConte } return deserializeAws_json1_1Featurization(entry, context); }); + return retVal; }; const deserializeAws_json1_1FieldStatistics = (output: any, context: __SerdeContext): { [key: string]: Statistics } => { @@ -4977,7 +4990,7 @@ const deserializeAws_json1_1FieldStatistics = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ForecastDimensions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4985,10 +4998,11 @@ const deserializeAws_json1_1ForecastDimensions = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ForecastExportJobs = (output: any, context: __SerdeContext): ForecastExportJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4996,6 +5010,7 @@ const deserializeAws_json1_1ForecastExportJobs = (output: any, context: __SerdeC } return deserializeAws_json1_1ForecastExportJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ForecastExportJobSummary = ( @@ -5023,7 +5038,7 @@ const deserializeAws_json1_1ForecastExportJobSummary = ( }; const deserializeAws_json1_1Forecasts = (output: any, context: __SerdeContext): ForecastSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5031,6 +5046,7 @@ const deserializeAws_json1_1Forecasts = (output: any, context: __SerdeContext): } return deserializeAws_json1_1ForecastSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ForecastSummary = (output: any, context: __SerdeContext): ForecastSummary => { @@ -5054,7 +5070,7 @@ const deserializeAws_json1_1ForecastSummary = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ForecastTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5062,6 +5078,7 @@ const deserializeAws_json1_1ForecastTypes = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1GetAccuracyMetricsResponse = ( @@ -5114,7 +5131,7 @@ const deserializeAws_json1_1IntegerParameterRanges = ( output: any, context: __SerdeContext ): IntegerParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5122,6 +5139,7 @@ const deserializeAws_json1_1IntegerParameterRanges = ( } return deserializeAws_json1_1IntegerParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidInputException = (output: any, context: __SerdeContext): InvalidInputException => { @@ -5299,7 +5317,7 @@ const deserializeAws_json1_1PredictorBacktestExportJobs = ( output: any, context: __SerdeContext ): PredictorBacktestExportJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5307,6 +5325,7 @@ const deserializeAws_json1_1PredictorBacktestExportJobs = ( } return deserializeAws_json1_1PredictorBacktestExportJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PredictorBacktestExportJobSummary = ( @@ -5334,7 +5353,7 @@ const deserializeAws_json1_1PredictorBacktestExportJobSummary = ( }; const deserializeAws_json1_1PredictorEvaluationResults = (output: any, context: __SerdeContext): EvaluationResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5342,6 +5361,7 @@ const deserializeAws_json1_1PredictorEvaluationResults = (output: any, context: } return deserializeAws_json1_1EvaluationResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1PredictorExecution = (output: any, context: __SerdeContext): PredictorExecution => { @@ -5367,7 +5387,7 @@ const deserializeAws_json1_1PredictorExecutionDetails = ( }; const deserializeAws_json1_1PredictorExecutions = (output: any, context: __SerdeContext): PredictorExecution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5375,10 +5395,11 @@ const deserializeAws_json1_1PredictorExecutions = (output: any, context: __Serde } return deserializeAws_json1_1PredictorExecution(entry, context); }); + return retVal; }; const deserializeAws_json1_1Predictors = (output: any, context: __SerdeContext): PredictorSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5386,6 +5407,7 @@ const deserializeAws_json1_1Predictors = (output: any, context: __SerdeContext): } return deserializeAws_json1_1PredictorSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PredictorSummary = (output: any, context: __SerdeContext): PredictorSummary => { @@ -5470,7 +5492,7 @@ const deserializeAws_json1_1SchemaAttribute = (output: any, context: __SerdeCont }; const deserializeAws_json1_1SchemaAttributes = (output: any, context: __SerdeContext): SchemaAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5478,6 +5500,7 @@ const deserializeAws_json1_1SchemaAttributes = (output: any, context: __SerdeCon } return deserializeAws_json1_1SchemaAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1Statistics = (output: any, context: __SerdeContext): Statistics => { @@ -5505,7 +5528,7 @@ const deserializeAws_json1_1SupplementaryFeature = (output: any, context: __Serd }; const deserializeAws_json1_1SupplementaryFeatures = (output: any, context: __SerdeContext): SupplementaryFeature[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5513,6 +5536,7 @@ const deserializeAws_json1_1SupplementaryFeatures = (output: any, context: __Ser } return deserializeAws_json1_1SupplementaryFeature(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -5527,7 +5551,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5535,10 +5559,11 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestWindowDetails = (output: any, context: __SerdeContext): TestWindowSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5546,10 +5571,11 @@ const deserializeAws_json1_1TestWindowDetails = (output: any, context: __SerdeCo } return deserializeAws_json1_1TestWindowSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestWindows = (output: any, context: __SerdeContext): WindowSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5557,6 +5583,7 @@ const deserializeAws_json1_1TestWindows = (output: any, context: __SerdeContext) } return deserializeAws_json1_1WindowSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TestWindowSummary = (output: any, context: __SerdeContext): TestWindowSummary => { @@ -5610,7 +5637,7 @@ const deserializeAws_json1_1UpdateDatasetGroupResponse = ( }; const deserializeAws_json1_1Values = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5618,6 +5645,7 @@ const deserializeAws_json1_1Values = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1WeightedQuantileLoss = (output: any, context: __SerdeContext): WeightedQuantileLoss => { @@ -5628,7 +5656,7 @@ const deserializeAws_json1_1WeightedQuantileLoss = (output: any, context: __Serd }; const deserializeAws_json1_1WeightedQuantileLosses = (output: any, context: __SerdeContext): WeightedQuantileLoss[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5636,6 +5664,7 @@ const deserializeAws_json1_1WeightedQuantileLosses = (output: any, context: __Se } return deserializeAws_json1_1WeightedQuantileLoss(entry, context); }); + return retVal; }; const deserializeAws_json1_1WindowSummary = (output: any, context: __SerdeContext): WindowSummary => { diff --git a/clients/client-forecastquery/src/protocols/Aws_json1_1.ts b/clients/client-forecastquery/src/protocols/Aws_json1_1.ts index 44190e8fc7d6..7e2da7f8686b 100644 --- a/clients/client-forecastquery/src/protocols/Aws_json1_1.ts +++ b/clients/client-forecastquery/src/protocols/Aws_json1_1.ts @@ -255,7 +255,7 @@ const deserializeAws_json1_1ResourceNotFoundException = ( }; const deserializeAws_json1_1TimeSeries = (output: any, context: __SerdeContext): DataPoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -263,6 +263,7 @@ const deserializeAws_json1_1TimeSeries = (output: any, context: __SerdeContext): } return deserializeAws_json1_1DataPoint(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-frauddetector/src/protocols/Aws_json1_1.ts b/clients/client-frauddetector/src/protocols/Aws_json1_1.ts index dde0585cbae3..eba1fba7f0dc 100644 --- a/clients/client-frauddetector/src/protocols/Aws_json1_1.ts +++ b/clients/client-frauddetector/src/protocols/Aws_json1_1.ts @@ -6146,7 +6146,7 @@ const deserializeAws_json1_1BatchCreateVariableErrorList = ( output: any, context: __SerdeContext ): BatchCreateVariableError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6154,6 +6154,7 @@ const deserializeAws_json1_1BatchCreateVariableErrorList = ( } return deserializeAws_json1_1BatchCreateVariableError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchCreateVariableResult = ( @@ -6180,7 +6181,7 @@ const deserializeAws_json1_1BatchGetVariableErrorList = ( output: any, context: __SerdeContext ): BatchGetVariableError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6188,6 +6189,7 @@ const deserializeAws_json1_1BatchGetVariableErrorList = ( } return deserializeAws_json1_1BatchGetVariableError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchGetVariableResult = (output: any, context: __SerdeContext): BatchGetVariableResult => { @@ -6222,7 +6224,7 @@ const deserializeAws_json1_1BatchImport = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1BatchImportList = (output: any, context: __SerdeContext): BatchImport[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6230,6 +6232,7 @@ const deserializeAws_json1_1BatchImportList = (output: any, context: __SerdeCont } return deserializeAws_json1_1BatchImport(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeContext): BatchPrediction => { @@ -6253,7 +6256,7 @@ const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeCont }; const deserializeAws_json1_1BatchPredictionList = (output: any, context: __SerdeContext): BatchPrediction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6261,6 +6264,7 @@ const deserializeAws_json1_1BatchPredictionList = (output: any, context: __Serde } return deserializeAws_json1_1BatchPrediction(entry, context); }); + return retVal; }; const deserializeAws_json1_1CancelBatchImportJobResult = ( @@ -6481,7 +6485,7 @@ const deserializeAws_json1_1Detector = (output: any, context: __SerdeContext): D }; const deserializeAws_json1_1DetectorList = (output: any, context: __SerdeContext): Detector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6489,6 +6493,7 @@ const deserializeAws_json1_1DetectorList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Detector(entry, context); }); + return retVal; }; const deserializeAws_json1_1DetectorVersionSummary = (output: any, context: __SerdeContext): DetectorVersionSummary => { @@ -6504,7 +6509,7 @@ const deserializeAws_json1_1DetectorVersionSummaryList = ( output: any, context: __SerdeContext ): DetectorVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6512,6 +6517,7 @@ const deserializeAws_json1_1DetectorVersionSummaryList = ( } return deserializeAws_json1_1DetectorVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Entity => { @@ -6532,7 +6538,7 @@ const deserializeAws_json1_1EntityType = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1entityTypeList = (output: any, context: __SerdeContext): EntityType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6540,6 +6546,7 @@ const deserializeAws_json1_1entityTypeList = (output: any, context: __SerdeConte } return deserializeAws_json1_1EntityType(entry, context); }); + return retVal; }; const deserializeAws_json1_1EvaluatedExternalModel = (output: any, context: __SerdeContext): EvaluatedExternalModel => { @@ -6585,7 +6592,7 @@ const deserializeAws_json1_1EvaluatedRule = (output: any, context: __SerdeContex }; const deserializeAws_json1_1EvaluatedRuleList = (output: any, context: __SerdeContext): EvaluatedRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6593,6 +6600,7 @@ const deserializeAws_json1_1EvaluatedRuleList = (output: any, context: __SerdeCo } return deserializeAws_json1_1EvaluatedRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Event => { @@ -6664,7 +6672,7 @@ const deserializeAws_json1_1EventType = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1eventTypeList = (output: any, context: __SerdeContext): EventType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6672,6 +6680,7 @@ const deserializeAws_json1_1eventTypeList = (output: any, context: __SerdeContex } return deserializeAws_json1_1EventType(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventVariableSummary = (output: any, context: __SerdeContext): EventVariableSummary => { @@ -6710,7 +6719,7 @@ const deserializeAws_json1_1ExternalModel = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ExternalModelList = (output: any, context: __SerdeContext): ExternalModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6718,6 +6727,7 @@ const deserializeAws_json1_1ExternalModelList = (output: any, context: __SerdeCo } return deserializeAws_json1_1ExternalModel(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExternalModelOutputs = (output: any, context: __SerdeContext): ExternalModelOutputs => { @@ -6769,7 +6779,7 @@ const deserializeAws_json1_1fieldValidationMessageList = ( output: any, context: __SerdeContext ): FieldValidationMessage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6777,6 +6787,7 @@ const deserializeAws_json1_1fieldValidationMessageList = ( } return deserializeAws_json1_1FieldValidationMessage(entry, context); }); + return retVal; }; const deserializeAws_json1_1FileValidationMessage = (output: any, context: __SerdeContext): FileValidationMessage => { @@ -6791,7 +6802,7 @@ const deserializeAws_json1_1fileValidationMessageList = ( output: any, context: __SerdeContext ): FileValidationMessage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6799,6 +6810,7 @@ const deserializeAws_json1_1fileValidationMessageList = ( } return deserializeAws_json1_1FileValidationMessage(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetBatchImportJobsResult = ( @@ -7133,7 +7145,7 @@ const deserializeAws_json1_1Label = (output: any, context: __SerdeContext): Labe }; const deserializeAws_json1_1labelList = (output: any, context: __SerdeContext): Label[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7141,6 +7153,7 @@ const deserializeAws_json1_1labelList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Label(entry, context); }); + return retVal; }; const deserializeAws_json1_1labelMapper = (output: any, context: __SerdeContext): { [key: string]: string[] } => { @@ -7179,7 +7192,7 @@ const deserializeAws_json1_1ListEventPredictionsResult = ( }; const deserializeAws_json1_1listOfEntities = (output: any, context: __SerdeContext): Entity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7187,13 +7200,14 @@ const deserializeAws_json1_1listOfEntities = (output: any, context: __SerdeConte } return deserializeAws_json1_1Entity(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfEvaluatedExternalModels = ( output: any, context: __SerdeContext ): EvaluatedExternalModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7201,13 +7215,14 @@ const deserializeAws_json1_1ListOfEvaluatedExternalModels = ( } return deserializeAws_json1_1EvaluatedExternalModel(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfEvaluatedModelVersions = ( output: any, context: __SerdeContext ): EvaluatedModelVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7215,13 +7230,14 @@ const deserializeAws_json1_1ListOfEvaluatedModelVersions = ( } return deserializeAws_json1_1EvaluatedModelVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfEventPredictionSummaries = ( output: any, context: __SerdeContext ): EventPredictionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7229,13 +7245,14 @@ const deserializeAws_json1_1ListOfEventPredictionSummaries = ( } return deserializeAws_json1_1EventPredictionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfEventVariableSummaries = ( output: any, context: __SerdeContext ): EventVariableSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7243,13 +7260,14 @@ const deserializeAws_json1_1ListOfEventVariableSummaries = ( } return deserializeAws_json1_1EventVariableSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfExternalModelOutputs = ( output: any, context: __SerdeContext ): ExternalModelOutputs[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7257,10 +7275,11 @@ const deserializeAws_json1_1ListOfExternalModelOutputs = ( } return deserializeAws_json1_1ExternalModelOutputs(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfLogOddsMetrics = (output: any, context: __SerdeContext): LogOddsMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7268,10 +7287,11 @@ const deserializeAws_json1_1ListOfLogOddsMetrics = (output: any, context: __Serd } return deserializeAws_json1_1LogOddsMetric(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfModelScores = (output: any, context: __SerdeContext): ModelScores[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7279,13 +7299,14 @@ const deserializeAws_json1_1ListOfModelScores = (output: any, context: __SerdeCo } return deserializeAws_json1_1ModelScores(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfModelVersionEvaluations = ( output: any, context: __SerdeContext ): ModelVersionEvaluation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7293,10 +7314,11 @@ const deserializeAws_json1_1ListOfModelVersionEvaluations = ( } return deserializeAws_json1_1ModelVersionEvaluation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfModelVersions = (output: any, context: __SerdeContext): ModelVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7304,10 +7326,11 @@ const deserializeAws_json1_1ListOfModelVersions = (output: any, context: __Serde } return deserializeAws_json1_1ModelVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfRuleResults = (output: any, context: __SerdeContext): RuleResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7315,10 +7338,11 @@ const deserializeAws_json1_1ListOfRuleResults = (output: any, context: __SerdeCo } return deserializeAws_json1_1RuleResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfStrings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7326,13 +7350,14 @@ const deserializeAws_json1_1ListOfStrings = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1listOfVariableImpactExplanations = ( output: any, context: __SerdeContext ): VariableImpactExplanation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7340,6 +7365,7 @@ const deserializeAws_json1_1listOfVariableImpactExplanations = ( } return deserializeAws_json1_1VariableImpactExplanation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListTagsForResourceResult = ( @@ -7385,7 +7411,7 @@ const deserializeAws_json1_1MetricDataPoint = (output: any, context: __SerdeCont }; const deserializeAws_json1_1metricDataPointsList = (output: any, context: __SerdeContext): MetricDataPoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7393,6 +7419,7 @@ const deserializeAws_json1_1metricDataPointsList = (output: any, context: __Serd } return deserializeAws_json1_1MetricDataPoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1Model = (output: any, context: __SerdeContext): Model => { @@ -7421,7 +7448,7 @@ const deserializeAws_json1_1ModelInputConfiguration = ( }; const deserializeAws_json1_1modelList = (output: any, context: __SerdeContext): Model[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7429,6 +7456,7 @@ const deserializeAws_json1_1modelList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Model(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelOutputConfiguration = ( @@ -7512,7 +7540,7 @@ const deserializeAws_json1_1ModelVersionDetail = (output: any, context: __SerdeC }; const deserializeAws_json1_1modelVersionDetailList = (output: any, context: __SerdeContext): ModelVersionDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7520,6 +7548,7 @@ const deserializeAws_json1_1modelVersionDetailList = (output: any, context: __Se } return deserializeAws_json1_1ModelVersionDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelVersionEvaluation = (output: any, context: __SerdeContext): ModelVersionEvaluation => { @@ -7534,7 +7563,7 @@ const deserializeAws_json1_1ModelVersionEvaluation = (output: any, context: __Se }; const deserializeAws_json1_1NonEmptyListOfStrings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7542,6 +7571,7 @@ const deserializeAws_json1_1NonEmptyListOfStrings = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Outcome = (output: any, context: __SerdeContext): Outcome => { @@ -7555,7 +7585,7 @@ const deserializeAws_json1_1Outcome = (output: any, context: __SerdeContext): Ou }; const deserializeAws_json1_1OutcomeList = (output: any, context: __SerdeContext): Outcome[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7563,6 +7593,7 @@ const deserializeAws_json1_1OutcomeList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Outcome(entry, context); }); + return retVal; }; const deserializeAws_json1_1PredictionExplanations = (output: any, context: __SerdeContext): PredictionExplanations => { @@ -7650,7 +7681,7 @@ const deserializeAws_json1_1RuleDetail = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1RuleDetailList = (output: any, context: __SerdeContext): RuleDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7658,10 +7689,11 @@ const deserializeAws_json1_1RuleDetailList = (output: any, context: __SerdeConte } return deserializeAws_json1_1RuleDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleList = (output: any, context: __SerdeContext): Rule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7669,6 +7701,7 @@ const deserializeAws_json1_1RuleList = (output: any, context: __SerdeContext): R } return deserializeAws_json1_1Rule(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleResult = (output: any, context: __SerdeContext): RuleResult => { @@ -7693,7 +7726,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1tagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7701,6 +7734,7 @@ const deserializeAws_json1_1tagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResult = (output: any, context: __SerdeContext): TagResourceResult => { @@ -7870,7 +7904,7 @@ const deserializeAws_json1_1VariableImportanceMetrics = ( }; const deserializeAws_json1_1VariableList = (output: any, context: __SerdeContext): Variable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7878,6 +7912,7 @@ const deserializeAws_json1_1VariableList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Variable(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-fsx/src/protocols/Aws_json1_1.ts b/clients/client-fsx/src/protocols/Aws_json1_1.ts index 4187604c7c22..53471cb4406f 100644 --- a/clients/client-fsx/src/protocols/Aws_json1_1.ts +++ b/clients/client-fsx/src/protocols/Aws_json1_1.ts @@ -4951,7 +4951,7 @@ const deserializeAws_json1_1AdministrativeActionFailureDetails = ( }; const deserializeAws_json1_1AdministrativeActions = (output: any, context: __SerdeContext): AdministrativeAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4959,6 +4959,7 @@ const deserializeAws_json1_1AdministrativeActions = (output: any, context: __Ser } return deserializeAws_json1_1AdministrativeAction(entry, context); }); + return retVal; }; const deserializeAws_json1_1Alias = (output: any, context: __SerdeContext): Alias => { @@ -4969,7 +4970,7 @@ const deserializeAws_json1_1Alias = (output: any, context: __SerdeContext): Alia }; const deserializeAws_json1_1Aliases = (output: any, context: __SerdeContext): Alias[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4977,6 +4978,7 @@ const deserializeAws_json1_1Aliases = (output: any, context: __SerdeContext): Al } return deserializeAws_json1_1Alias(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociateFileSystemAliasesResponse = ( @@ -5079,7 +5081,7 @@ const deserializeAws_json1_1BackupRestoring = (output: any, context: __SerdeCont }; const deserializeAws_json1_1Backups = (output: any, context: __SerdeContext): Backup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5087,6 +5089,7 @@ const deserializeAws_json1_1Backups = (output: any, context: __SerdeContext): Ba } return deserializeAws_json1_1Backup(entry, context); }); + return retVal; }; const deserializeAws_json1_1BadRequest = (output: any, context: __SerdeContext): BadRequest => { @@ -5265,7 +5268,7 @@ const deserializeAws_json1_1DataRepositoryAssociations = ( output: any, context: __SerdeContext ): DataRepositoryAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5273,6 +5276,7 @@ const deserializeAws_json1_1DataRepositoryAssociations = ( } return deserializeAws_json1_1DataRepositoryAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataRepositoryConfiguration = ( @@ -5378,7 +5382,7 @@ const deserializeAws_json1_1DataRepositoryTaskNotFound = ( }; const deserializeAws_json1_1DataRepositoryTaskPaths = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5386,10 +5390,11 @@ const deserializeAws_json1_1DataRepositoryTaskPaths = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DataRepositoryTasks = (output: any, context: __SerdeContext): DataRepositoryTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5397,6 +5402,7 @@ const deserializeAws_json1_1DataRepositoryTasks = (output: any, context: __Serde } return deserializeAws_json1_1DataRepositoryTask(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataRepositoryTaskStatus = ( @@ -5658,7 +5664,7 @@ const deserializeAws_json1_1DiskIopsConfiguration = (output: any, context: __Ser }; const deserializeAws_json1_1DnsIps = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5666,10 +5672,11 @@ const deserializeAws_json1_1DnsIps = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1EventTypes = (output: any, context: __SerdeContext): (EventType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5677,6 +5684,7 @@ const deserializeAws_json1_1EventTypes = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FileSystem = (output: any, context: __SerdeContext): FileSystem => { @@ -5769,7 +5777,7 @@ const deserializeAws_json1_1FileSystemMaintenanceOperations = ( output: any, context: __SerdeContext ): (FileSystemMaintenanceOperation | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5777,6 +5785,7 @@ const deserializeAws_json1_1FileSystemMaintenanceOperations = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FileSystemNotFound = (output: any, context: __SerdeContext): FileSystemNotFound => { @@ -5786,7 +5795,7 @@ const deserializeAws_json1_1FileSystemNotFound = (output: any, context: __SerdeC }; const deserializeAws_json1_1FileSystems = (output: any, context: __SerdeContext): FileSystem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5794,6 +5803,7 @@ const deserializeAws_json1_1FileSystems = (output: any, context: __SerdeContext) } return deserializeAws_json1_1FileSystem(entry, context); }); + return retVal; }; const deserializeAws_json1_1IncompatibleParameterError = ( @@ -5952,7 +5962,7 @@ const deserializeAws_json1_1MissingVolumeConfiguration = ( }; const deserializeAws_json1_1NetworkInterfaceIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5960,6 +5970,7 @@ const deserializeAws_json1_1NetworkInterfaceIds = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NotServiceResourceError = ( @@ -5973,7 +5984,7 @@ const deserializeAws_json1_1NotServiceResourceError = ( }; const deserializeAws_json1_1OntapEndpointIpAddresses = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5981,6 +5992,7 @@ const deserializeAws_json1_1OntapEndpointIpAddresses = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OntapFileSystemConfiguration = ( @@ -6048,7 +6060,7 @@ const deserializeAws_json1_1OpenZFSClientConfigurations = ( output: any, context: __SerdeContext ): OpenZFSClientConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6056,6 +6068,7 @@ const deserializeAws_json1_1OpenZFSClientConfigurations = ( } return deserializeAws_json1_1OpenZFSClientConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpenZFSFileSystemConfiguration = ( @@ -6088,7 +6101,7 @@ const deserializeAws_json1_1OpenZFSNfsExport = (output: any, context: __SerdeCon }; const deserializeAws_json1_1OpenZFSNfsExportOptions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6096,10 +6109,11 @@ const deserializeAws_json1_1OpenZFSNfsExportOptions = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OpenZFSNfsExports = (output: any, context: __SerdeContext): OpenZFSNfsExport[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6107,6 +6121,7 @@ const deserializeAws_json1_1OpenZFSNfsExports = (output: any, context: __SerdeCo } return deserializeAws_json1_1OpenZFSNfsExport(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpenZFSOriginSnapshotConfiguration = ( @@ -6123,7 +6138,7 @@ const deserializeAws_json1_1OpenZFSUserAndGroupQuotas = ( output: any, context: __SerdeContext ): OpenZFSUserOrGroupQuota[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6131,6 +6146,7 @@ const deserializeAws_json1_1OpenZFSUserAndGroupQuotas = ( } return deserializeAws_json1_1OpenZFSUserOrGroupQuota(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpenZFSUserOrGroupQuota = ( @@ -6211,7 +6227,7 @@ const deserializeAws_json1_1RestoreVolumeFromSnapshotResponse = ( }; const deserializeAws_json1_1RouteTableIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6219,6 +6235,7 @@ const deserializeAws_json1_1RouteTableIds = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1S3DataRepositoryConfiguration = ( @@ -6287,7 +6304,7 @@ const deserializeAws_json1_1SnapshotNotFound = (output: any, context: __SerdeCon }; const deserializeAws_json1_1Snapshots = (output: any, context: __SerdeContext): Snapshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6295,6 +6312,7 @@ const deserializeAws_json1_1Snapshots = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Snapshot(entry, context); }); + return retVal; }; const deserializeAws_json1_1SourceBackupUnavailable = ( @@ -6351,7 +6369,7 @@ const deserializeAws_json1_1StorageVirtualMachines = ( output: any, context: __SerdeContext ): StorageVirtualMachine[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6359,10 +6377,11 @@ const deserializeAws_json1_1StorageVirtualMachines = ( } return deserializeAws_json1_1StorageVirtualMachine(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6370,6 +6389,7 @@ const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SvmActiveDirectoryConfiguration = ( @@ -6432,7 +6452,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6440,6 +6460,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TieringPolicy = (output: any, context: __SerdeContext): TieringPolicy => { @@ -6553,7 +6574,7 @@ const deserializeAws_json1_1VolumeNotFound = (output: any, context: __SerdeConte }; const deserializeAws_json1_1Volumes = (output: any, context: __SerdeContext): Volume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6561,6 +6582,7 @@ const deserializeAws_json1_1Volumes = (output: any, context: __SerdeContext): Vo } return deserializeAws_json1_1Volume(entry, context); }); + return retVal; }; const deserializeAws_json1_1WindowsAuditLogConfiguration = ( diff --git a/clients/client-gamelift/src/protocols/Aws_json1_1.ts b/clients/client-gamelift/src/protocols/Aws_json1_1.ts index 6094d94e597f..0b586733cb2b 100644 --- a/clients/client-gamelift/src/protocols/Aws_json1_1.ts +++ b/clients/client-gamelift/src/protocols/Aws_json1_1.ts @@ -8918,7 +8918,7 @@ const deserializeAws_json1_1Alias = (output: any, context: __SerdeContext): Alia }; const deserializeAws_json1_1AliasList = (output: any, context: __SerdeContext): Alias[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8926,6 +8926,7 @@ const deserializeAws_json1_1AliasList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Alias(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttributeValue = (output: any, context: __SerdeContext): AttributeValue => { @@ -8966,7 +8967,7 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil }; const deserializeAws_json1_1BuildList = (output: any, context: __SerdeContext): Build[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8974,6 +8975,7 @@ const deserializeAws_json1_1BuildList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Build(entry, context); }); + return retVal; }; const deserializeAws_json1_1CertificateConfiguration = ( @@ -9595,7 +9597,7 @@ const deserializeAws_json1_1EC2InstanceLimit = (output: any, context: __SerdeCon }; const deserializeAws_json1_1EC2InstanceLimitList = (output: any, context: __SerdeContext): EC2InstanceLimit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9603,6 +9605,7 @@ const deserializeAws_json1_1EC2InstanceLimitList = (output: any, context: __Serd } return deserializeAws_json1_1EC2InstanceLimit(entry, context); }); + return retVal; }; const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Event => { @@ -9620,7 +9623,7 @@ const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Even }; const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): Event[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9628,6 +9631,7 @@ const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Event(entry, context); }); + return retVal; }; const deserializeAws_json1_1FilterConfiguration = (output: any, context: __SerdeContext): FilterConfiguration => { @@ -9640,7 +9644,7 @@ const deserializeAws_json1_1FilterConfiguration = (output: any, context: __Serde }; const deserializeAws_json1_1FleetActionList = (output: any, context: __SerdeContext): (FleetAction | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9648,6 +9652,7 @@ const deserializeAws_json1_1FleetActionList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FleetAttributes = (output: any, context: __SerdeContext): FleetAttributes => { @@ -9700,7 +9705,7 @@ const deserializeAws_json1_1FleetAttributes = (output: any, context: __SerdeCont }; const deserializeAws_json1_1FleetAttributesList = (output: any, context: __SerdeContext): FleetAttributes[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9708,6 +9713,7 @@ const deserializeAws_json1_1FleetAttributesList = (output: any, context: __Serde } return deserializeAws_json1_1FleetAttributes(entry, context); }); + return retVal; }; const deserializeAws_json1_1FleetCapacity = (output: any, context: __SerdeContext): FleetCapacity => { @@ -9733,7 +9739,7 @@ const deserializeAws_json1_1FleetCapacityExceededException = ( }; const deserializeAws_json1_1FleetCapacityList = (output: any, context: __SerdeContext): FleetCapacity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9741,10 +9747,11 @@ const deserializeAws_json1_1FleetCapacityList = (output: any, context: __SerdeCo } return deserializeAws_json1_1FleetCapacity(entry, context); }); + return retVal; }; const deserializeAws_json1_1FleetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9752,6 +9759,7 @@ const deserializeAws_json1_1FleetIdList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FleetUtilization = (output: any, context: __SerdeContext): FleetUtilization => { @@ -9767,7 +9775,7 @@ const deserializeAws_json1_1FleetUtilization = (output: any, context: __SerdeCon }; const deserializeAws_json1_1FleetUtilizationList = (output: any, context: __SerdeContext): FleetUtilization[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9775,6 +9783,7 @@ const deserializeAws_json1_1FleetUtilizationList = (output: any, context: __Serd } return deserializeAws_json1_1FleetUtilization(entry, context); }); + return retVal; }; const deserializeAws_json1_1GameProperty = (output: any, context: __SerdeContext): GameProperty => { @@ -9785,7 +9794,7 @@ const deserializeAws_json1_1GameProperty = (output: any, context: __SerdeContext }; const deserializeAws_json1_1GamePropertyList = (output: any, context: __SerdeContext): GameProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9793,6 +9802,7 @@ const deserializeAws_json1_1GamePropertyList = (output: any, context: __SerdeCon } return deserializeAws_json1_1GameProperty(entry, context); }); + return retVal; }; const deserializeAws_json1_1GameServer = (output: any, context: __SerdeContext): GameServer => { @@ -9853,7 +9863,7 @@ const deserializeAws_json1_1GameServerGroupActions = ( output: any, context: __SerdeContext ): (GameServerGroupAction | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9861,10 +9871,11 @@ const deserializeAws_json1_1GameServerGroupActions = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1GameServerGroups = (output: any, context: __SerdeContext): GameServerGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9872,6 +9883,7 @@ const deserializeAws_json1_1GameServerGroups = (output: any, context: __SerdeCon } return deserializeAws_json1_1GameServerGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1GameServerInstance = (output: any, context: __SerdeContext): GameServerInstance => { @@ -9884,7 +9896,7 @@ const deserializeAws_json1_1GameServerInstance = (output: any, context: __SerdeC }; const deserializeAws_json1_1GameServerInstances = (output: any, context: __SerdeContext): GameServerInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9892,10 +9904,11 @@ const deserializeAws_json1_1GameServerInstances = (output: any, context: __Serde } return deserializeAws_json1_1GameServerInstance(entry, context); }); + return retVal; }; const deserializeAws_json1_1GameServers = (output: any, context: __SerdeContext): GameServer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9903,6 +9916,7 @@ const deserializeAws_json1_1GameServers = (output: any, context: __SerdeContext) } return deserializeAws_json1_1GameServer(entry, context); }); + return retVal; }; const deserializeAws_json1_1GameSession = (output: any, context: __SerdeContext): GameSession => { @@ -9965,7 +9979,7 @@ const deserializeAws_json1_1GameSessionDetail = (output: any, context: __SerdeCo }; const deserializeAws_json1_1GameSessionDetailList = (output: any, context: __SerdeContext): GameSessionDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9973,6 +9987,7 @@ const deserializeAws_json1_1GameSessionDetailList = (output: any, context: __Ser } return deserializeAws_json1_1GameSessionDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1GameSessionFullException = ( @@ -9985,7 +10000,7 @@ const deserializeAws_json1_1GameSessionFullException = ( }; const deserializeAws_json1_1GameSessionList = (output: any, context: __SerdeContext): GameSession[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9993,6 +10008,7 @@ const deserializeAws_json1_1GameSessionList = (output: any, context: __SerdeCont } return deserializeAws_json1_1GameSession(entry, context); }); + return retVal; }; const deserializeAws_json1_1GameSessionPlacement = (output: any, context: __SerdeContext): GameSessionPlacement => { @@ -10072,7 +10088,7 @@ const deserializeAws_json1_1GameSessionQueueDestinationList = ( output: any, context: __SerdeContext ): GameSessionQueueDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10080,10 +10096,11 @@ const deserializeAws_json1_1GameSessionQueueDestinationList = ( } return deserializeAws_json1_1GameSessionQueueDestination(entry, context); }); + return retVal; }; const deserializeAws_json1_1GameSessionQueueList = (output: any, context: __SerdeContext): GameSessionQueue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10091,6 +10108,7 @@ const deserializeAws_json1_1GameSessionQueueList = (output: any, context: __Serd } return deserializeAws_json1_1GameSessionQueue(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetGameSessionLogUrlOutput = ( @@ -10169,7 +10187,7 @@ const deserializeAws_json1_1InstanceDefinition = (output: any, context: __SerdeC }; const deserializeAws_json1_1InstanceDefinitions = (output: any, context: __SerdeContext): InstanceDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10177,10 +10195,11 @@ const deserializeAws_json1_1InstanceDefinitions = (output: any, context: __Serde } return deserializeAws_json1_1InstanceDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext): Instance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10188,6 +10207,7 @@ const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Instance(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalServiceException = ( @@ -10236,7 +10256,7 @@ const deserializeAws_json1_1IpPermission = (output: any, context: __SerdeContext }; const deserializeAws_json1_1IpPermissionsList = (output: any, context: __SerdeContext): IpPermission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10244,6 +10264,7 @@ const deserializeAws_json1_1IpPermissionsList = (output: any, context: __SerdeCo } return deserializeAws_json1_1IpPermission(entry, context); }); + return retVal; }; const deserializeAws_json1_1LatencyMap = (output: any, context: __SerdeContext): { [key: string]: number } => { @@ -10354,7 +10375,7 @@ const deserializeAws_json1_1LocationAttributes = (output: any, context: __SerdeC }; const deserializeAws_json1_1LocationAttributesList = (output: any, context: __SerdeContext): LocationAttributes[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10362,10 +10383,11 @@ const deserializeAws_json1_1LocationAttributesList = (output: any, context: __Se } return deserializeAws_json1_1LocationAttributes(entry, context); }); + return retVal; }; const deserializeAws_json1_1LocationList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10373,6 +10395,7 @@ const deserializeAws_json1_1LocationList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LocationState = (output: any, context: __SerdeContext): LocationState => { @@ -10383,7 +10406,7 @@ const deserializeAws_json1_1LocationState = (output: any, context: __SerdeContex }; const deserializeAws_json1_1LocationStateList = (output: any, context: __SerdeContext): LocationState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10391,6 +10414,7 @@ const deserializeAws_json1_1LocationStateList = (output: any, context: __SerdeCo } return deserializeAws_json1_1LocationState(entry, context); }); + return retVal; }; const deserializeAws_json1_1MatchedPlayerSession = (output: any, context: __SerdeContext): MatchedPlayerSession => { @@ -10404,7 +10428,7 @@ const deserializeAws_json1_1MatchedPlayerSessionList = ( output: any, context: __SerdeContext ): MatchedPlayerSession[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10412,6 +10436,7 @@ const deserializeAws_json1_1MatchedPlayerSessionList = ( } return deserializeAws_json1_1MatchedPlayerSession(entry, context); }); + return retVal; }; const deserializeAws_json1_1MatchmakingConfiguration = ( @@ -10452,7 +10477,7 @@ const deserializeAws_json1_1MatchmakingConfigurationList = ( output: any, context: __SerdeContext ): MatchmakingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10460,6 +10485,7 @@ const deserializeAws_json1_1MatchmakingConfigurationList = ( } return deserializeAws_json1_1MatchmakingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1MatchmakingRuleSet = (output: any, context: __SerdeContext): MatchmakingRuleSet => { @@ -10475,7 +10501,7 @@ const deserializeAws_json1_1MatchmakingRuleSet = (output: any, context: __SerdeC }; const deserializeAws_json1_1MatchmakingRuleSetList = (output: any, context: __SerdeContext): MatchmakingRuleSet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10483,6 +10509,7 @@ const deserializeAws_json1_1MatchmakingRuleSetList = (output: any, context: __Se } return deserializeAws_json1_1MatchmakingRuleSet(entry, context); }); + return retVal; }; const deserializeAws_json1_1MatchmakingTicket = (output: any, context: __SerdeContext): MatchmakingTicket => { @@ -10514,7 +10541,7 @@ const deserializeAws_json1_1MatchmakingTicket = (output: any, context: __SerdeCo }; const deserializeAws_json1_1MatchmakingTicketList = (output: any, context: __SerdeContext): MatchmakingTicket[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10522,10 +10549,11 @@ const deserializeAws_json1_1MatchmakingTicketList = (output: any, context: __Ser } return deserializeAws_json1_1MatchmakingTicket(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetricGroupList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10533,6 +10561,7 @@ const deserializeAws_json1_1MetricGroupList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeContext): NotFoundException => { @@ -10555,7 +10584,7 @@ const deserializeAws_json1_1PlacedPlayerSession = (output: any, context: __Serde }; const deserializeAws_json1_1PlacedPlayerSessionList = (output: any, context: __SerdeContext): PlacedPlayerSession[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10563,6 +10592,7 @@ const deserializeAws_json1_1PlacedPlayerSessionList = (output: any, context: __S } return deserializeAws_json1_1PlacedPlayerSession(entry, context); }); + return retVal; }; const deserializeAws_json1_1Player = (output: any, context: __SerdeContext): Player => { @@ -10604,7 +10634,7 @@ const deserializeAws_json1_1PlayerLatency = (output: any, context: __SerdeContex }; const deserializeAws_json1_1PlayerLatencyList = (output: any, context: __SerdeContext): PlayerLatency[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10612,6 +10642,7 @@ const deserializeAws_json1_1PlayerLatencyList = (output: any, context: __SerdeCo } return deserializeAws_json1_1PlayerLatency(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlayerLatencyPolicy = (output: any, context: __SerdeContext): PlayerLatencyPolicy => { @@ -10622,7 +10653,7 @@ const deserializeAws_json1_1PlayerLatencyPolicy = (output: any, context: __Serde }; const deserializeAws_json1_1PlayerLatencyPolicyList = (output: any, context: __SerdeContext): PlayerLatencyPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10630,10 +10661,11 @@ const deserializeAws_json1_1PlayerLatencyPolicyList = (output: any, context: __S } return deserializeAws_json1_1PlayerLatencyPolicy(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlayerList = (output: any, context: __SerdeContext): Player[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10641,6 +10673,7 @@ const deserializeAws_json1_1PlayerList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Player(entry, context); }); + return retVal; }; const deserializeAws_json1_1PlayerSession = (output: any, context: __SerdeContext): PlayerSession => { @@ -10667,7 +10700,7 @@ const deserializeAws_json1_1PlayerSession = (output: any, context: __SerdeContex }; const deserializeAws_json1_1PlayerSessionList = (output: any, context: __SerdeContext): PlayerSession[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10675,6 +10708,7 @@ const deserializeAws_json1_1PlayerSessionList = (output: any, context: __SerdeCo } return deserializeAws_json1_1PlayerSession(entry, context); }); + return retVal; }; const deserializeAws_json1_1PriorityConfiguration = (output: any, context: __SerdeContext): PriorityConfiguration => { @@ -10691,7 +10725,7 @@ const deserializeAws_json1_1PriorityConfiguration = (output: any, context: __Ser }; const deserializeAws_json1_1PriorityTypeList = (output: any, context: __SerdeContext): (PriorityType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10699,6 +10733,7 @@ const deserializeAws_json1_1PriorityTypeList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PutScalingPolicyOutput = (output: any, context: __SerdeContext): PutScalingPolicyOutput => { @@ -10708,7 +10743,7 @@ const deserializeAws_json1_1PutScalingPolicyOutput = (output: any, context: __Se }; const deserializeAws_json1_1QueueArnsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10716,6 +10751,7 @@ const deserializeAws_json1_1QueueArnsList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RegisterGameServerOutput = ( @@ -10826,7 +10862,7 @@ const deserializeAws_json1_1ScalingPolicy = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ScalingPolicyList = (output: any, context: __SerdeContext): ScalingPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10834,6 +10870,7 @@ const deserializeAws_json1_1ScalingPolicyList = (output: any, context: __SerdeCo } return deserializeAws_json1_1ScalingPolicy(entry, context); }); + return retVal; }; const deserializeAws_json1_1Script = (output: any, context: __SerdeContext): Script => { @@ -10855,7 +10892,7 @@ const deserializeAws_json1_1Script = (output: any, context: __SerdeContext): Scr }; const deserializeAws_json1_1ScriptList = (output: any, context: __SerdeContext): Script[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10863,6 +10900,7 @@ const deserializeAws_json1_1ScriptList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Script(entry, context); }); + return retVal; }; const deserializeAws_json1_1SearchGameSessionsOutput = ( @@ -10887,7 +10925,7 @@ const deserializeAws_json1_1ServerProcess = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ServerProcessList = (output: any, context: __SerdeContext): ServerProcess[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10895,6 +10933,7 @@ const deserializeAws_json1_1ServerProcessList = (output: any, context: __SerdeCo } return deserializeAws_json1_1ServerProcess(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartFleetActionsOutput = ( @@ -10976,7 +11015,7 @@ const deserializeAws_json1_1StringDoubleMap = (output: any, context: __SerdeCont }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10984,6 +11023,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SuspendGameServerGroupOutput = ( @@ -11012,7 +11052,7 @@ const deserializeAws_json1_1TaggingFailedException = (output: any, context: __Se }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11020,6 +11060,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -11217,7 +11258,7 @@ const deserializeAws_json1_1VpcPeeringAuthorizationList = ( output: any, context: __SerdeContext ): VpcPeeringAuthorization[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11225,6 +11266,7 @@ const deserializeAws_json1_1VpcPeeringAuthorizationList = ( } return deserializeAws_json1_1VpcPeeringAuthorization(entry, context); }); + return retVal; }; const deserializeAws_json1_1VpcPeeringConnection = (output: any, context: __SerdeContext): VpcPeeringConnection => { @@ -11246,7 +11288,7 @@ const deserializeAws_json1_1VpcPeeringConnectionList = ( output: any, context: __SerdeContext ): VpcPeeringConnection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11254,6 +11296,7 @@ const deserializeAws_json1_1VpcPeeringConnectionList = ( } return deserializeAws_json1_1VpcPeeringConnection(entry, context); }); + return retVal; }; const deserializeAws_json1_1VpcPeeringConnectionStatus = ( diff --git a/clients/client-glacier/src/protocols/Aws_restJson1.ts b/clients/client-glacier/src/protocols/Aws_restJson1.ts index a7988e1f9631..00f7e62d231d 100644 --- a/clients/client-glacier/src/protocols/Aws_restJson1.ts +++ b/clients/client-glacier/src/protocols/Aws_restJson1.ts @@ -3877,7 +3877,7 @@ const serializeAws_restJson1VaultNotificationConfig = ( }; const deserializeAws_restJson1AccessControlPolicyList = (output: any, context: __SerdeContext): Grant[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3885,6 +3885,7 @@ const deserializeAws_restJson1AccessControlPolicyList = (output: any, context: _ } return deserializeAws_restJson1Grant(entry, context); }); + return retVal; }; const deserializeAws_restJson1CSVInput = (output: any, context: __SerdeContext): CSVInput => { @@ -3925,7 +3926,7 @@ const deserializeAws_restJson1DataRetrievalRule = (output: any, context: __Serde }; const deserializeAws_restJson1DataRetrievalRulesList = (output: any, context: __SerdeContext): DataRetrievalRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3933,6 +3934,7 @@ const deserializeAws_restJson1DataRetrievalRulesList = (output: any, context: __ } return deserializeAws_restJson1DataRetrievalRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1DescribeVaultOutput = (output: any, context: __SerdeContext): DescribeVaultOutput => { @@ -4044,7 +4046,7 @@ const deserializeAws_restJson1InventoryRetrievalJobDescription = ( }; const deserializeAws_restJson1JobList = (output: any, context: __SerdeContext): GlacierJobDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4052,10 +4054,11 @@ const deserializeAws_restJson1JobList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1GlacierJobDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1NotificationEventList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4063,6 +4066,7 @@ const deserializeAws_restJson1NotificationEventList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OutputLocation = (output: any, context: __SerdeContext): OutputLocation => { @@ -4084,7 +4088,7 @@ const deserializeAws_restJson1OutputSerialization = (output: any, context: __Ser }; const deserializeAws_restJson1PartList = (output: any, context: __SerdeContext): PartListElement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4092,6 +4096,7 @@ const deserializeAws_restJson1PartList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1PartListElement(entry, context); }); + return retVal; }; const deserializeAws_restJson1PartListElement = (output: any, context: __SerdeContext): PartListElement => { @@ -4116,7 +4121,7 @@ const deserializeAws_restJson1ProvisionedCapacityList = ( output: any, context: __SerdeContext ): ProvisionedCapacityDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4124,6 +4129,7 @@ const deserializeAws_restJson1ProvisionedCapacityList = ( } return deserializeAws_restJson1ProvisionedCapacityDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3Location = (output: any, context: __SerdeContext): S3Location => { @@ -4189,7 +4195,7 @@ const deserializeAws_restJson1UploadListElement = (output: any, context: __Serde }; const deserializeAws_restJson1UploadsList = (output: any, context: __SerdeContext): UploadListElement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4197,6 +4203,7 @@ const deserializeAws_restJson1UploadsList = (output: any, context: __SerdeContex } return deserializeAws_restJson1UploadListElement(entry, context); }); + return retVal; }; const deserializeAws_restJson1VaultAccessPolicy = (output: any, context: __SerdeContext): VaultAccessPolicy => { @@ -4206,7 +4213,7 @@ const deserializeAws_restJson1VaultAccessPolicy = (output: any, context: __Serde }; const deserializeAws_restJson1VaultList = (output: any, context: __SerdeContext): DescribeVaultOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4214,6 +4221,7 @@ const deserializeAws_restJson1VaultList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1DescribeVaultOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1VaultNotificationConfig = ( diff --git a/clients/client-global-accelerator/src/protocols/Aws_json1_1.ts b/clients/client-global-accelerator/src/protocols/Aws_json1_1.ts index e32287fdb029..7ab211f063f3 100644 --- a/clients/client-global-accelerator/src/protocols/Aws_json1_1.ts +++ b/clients/client-global-accelerator/src/protocols/Aws_json1_1.ts @@ -4387,7 +4387,7 @@ const deserializeAws_json1_1AcceleratorNotFoundException = ( }; const deserializeAws_json1_1Accelerators = (output: any, context: __SerdeContext): Accelerator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4395,6 +4395,7 @@ const deserializeAws_json1_1Accelerators = (output: any, context: __SerdeContext } return deserializeAws_json1_1Accelerator(entry, context); }); + return retVal; }; const deserializeAws_json1_1AccessDeniedException = (output: any, context: __SerdeContext): AccessDeniedException => { @@ -4468,7 +4469,7 @@ const deserializeAws_json1_1ByoipCidrEvent = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ByoipCidrEvents = (output: any, context: __SerdeContext): ByoipCidrEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4476,6 +4477,7 @@ const deserializeAws_json1_1ByoipCidrEvents = (output: any, context: __SerdeCont } return deserializeAws_json1_1ByoipCidrEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1ByoipCidrNotFoundException = ( @@ -4488,7 +4490,7 @@ const deserializeAws_json1_1ByoipCidrNotFoundException = ( }; const deserializeAws_json1_1ByoipCidrs = (output: any, context: __SerdeContext): ByoipCidr[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4496,6 +4498,7 @@ const deserializeAws_json1_1ByoipCidrs = (output: any, context: __SerdeContext): } return deserializeAws_json1_1ByoipCidr(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => { @@ -4614,7 +4617,7 @@ const deserializeAws_json1_1CustomRoutingAccelerators = ( output: any, context: __SerdeContext ): CustomRoutingAccelerator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4622,6 +4625,7 @@ const deserializeAws_json1_1CustomRoutingAccelerators = ( } return deserializeAws_json1_1CustomRoutingAccelerator(entry, context); }); + return retVal; }; const deserializeAws_json1_1CustomRoutingDestinationDescription = ( @@ -4642,7 +4646,7 @@ const deserializeAws_json1_1CustomRoutingDestinationDescriptions = ( output: any, context: __SerdeContext ): CustomRoutingDestinationDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4650,6 +4654,7 @@ const deserializeAws_json1_1CustomRoutingDestinationDescriptions = ( } return deserializeAws_json1_1CustomRoutingDestinationDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1CustomRoutingEndpointDescription = ( @@ -4665,7 +4670,7 @@ const deserializeAws_json1_1CustomRoutingEndpointDescriptions = ( output: any, context: __SerdeContext ): CustomRoutingEndpointDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4673,6 +4678,7 @@ const deserializeAws_json1_1CustomRoutingEndpointDescriptions = ( } return deserializeAws_json1_1CustomRoutingEndpointDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1CustomRoutingEndpointGroup = ( @@ -4697,7 +4703,7 @@ const deserializeAws_json1_1CustomRoutingEndpointGroups = ( output: any, context: __SerdeContext ): CustomRoutingEndpointGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4705,6 +4711,7 @@ const deserializeAws_json1_1CustomRoutingEndpointGroups = ( } return deserializeAws_json1_1CustomRoutingEndpointGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1CustomRoutingListener = (output: any, context: __SerdeContext): CustomRoutingListener => { @@ -4721,7 +4728,7 @@ const deserializeAws_json1_1CustomRoutingListeners = ( output: any, context: __SerdeContext ): CustomRoutingListener[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4729,13 +4736,14 @@ const deserializeAws_json1_1CustomRoutingListeners = ( } return deserializeAws_json1_1CustomRoutingListener(entry, context); }); + return retVal; }; const deserializeAws_json1_1CustomRoutingProtocols = ( output: any, context: __SerdeContext ): (CustomRoutingProtocol | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4743,6 +4751,7 @@ const deserializeAws_json1_1CustomRoutingProtocols = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeprovisionByoipCidrResponse = ( @@ -4876,7 +4885,7 @@ const deserializeAws_json1_1DestinationPortMappings = ( output: any, context: __SerdeContext ): DestinationPortMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4884,6 +4893,7 @@ const deserializeAws_json1_1DestinationPortMappings = ( } return deserializeAws_json1_1DestinationPortMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1EndpointAlreadyExistsException = ( @@ -4906,7 +4916,7 @@ const deserializeAws_json1_1EndpointDescription = (output: any, context: __Serde }; const deserializeAws_json1_1EndpointDescriptions = (output: any, context: __SerdeContext): EndpointDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4914,6 +4924,7 @@ const deserializeAws_json1_1EndpointDescriptions = (output: any, context: __Serd } return deserializeAws_json1_1EndpointDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1EndpointGroup = (output: any, context: __SerdeContext): EndpointGroup => { @@ -4956,7 +4967,7 @@ const deserializeAws_json1_1EndpointGroupNotFoundException = ( }; const deserializeAws_json1_1EndpointGroups = (output: any, context: __SerdeContext): EndpointGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4964,6 +4975,7 @@ const deserializeAws_json1_1EndpointGroups = (output: any, context: __SerdeConte } return deserializeAws_json1_1EndpointGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1EndpointNotFoundException = ( @@ -5021,7 +5033,7 @@ const deserializeAws_json1_1InvalidPortRangeException = ( }; const deserializeAws_json1_1IpAddresses = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5029,6 +5041,7 @@ const deserializeAws_json1_1IpAddresses = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1IpSet = (output: any, context: __SerdeContext): IpSet => { @@ -5042,7 +5055,7 @@ const deserializeAws_json1_1IpSet = (output: any, context: __SerdeContext): IpSe }; const deserializeAws_json1_1IpSets = (output: any, context: __SerdeContext): IpSet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5050,6 +5063,7 @@ const deserializeAws_json1_1IpSets = (output: any, context: __SerdeContext): IpS } return deserializeAws_json1_1IpSet(entry, context); }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -5181,7 +5195,7 @@ const deserializeAws_json1_1ListenerNotFoundException = ( }; const deserializeAws_json1_1Listeners = (output: any, context: __SerdeContext): Listener[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5189,6 +5203,7 @@ const deserializeAws_json1_1Listeners = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Listener(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListListenersResponse = (output: any, context: __SerdeContext): ListListenersResponse => { @@ -5229,7 +5244,7 @@ const deserializeAws_json1_1PortMapping = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1PortMappings = (output: any, context: __SerdeContext): PortMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5237,6 +5252,7 @@ const deserializeAws_json1_1PortMappings = (output: any, context: __SerdeContext } return deserializeAws_json1_1PortMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1PortOverride = (output: any, context: __SerdeContext): PortOverride => { @@ -5247,7 +5263,7 @@ const deserializeAws_json1_1PortOverride = (output: any, context: __SerdeContext }; const deserializeAws_json1_1PortOverrides = (output: any, context: __SerdeContext): PortOverride[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5255,6 +5271,7 @@ const deserializeAws_json1_1PortOverrides = (output: any, context: __SerdeContex } return deserializeAws_json1_1PortOverride(entry, context); }); + return retVal; }; const deserializeAws_json1_1PortRange = (output: any, context: __SerdeContext): PortRange => { @@ -5265,7 +5282,7 @@ const deserializeAws_json1_1PortRange = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1PortRanges = (output: any, context: __SerdeContext): PortRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5273,10 +5290,11 @@ const deserializeAws_json1_1PortRanges = (output: any, context: __SerdeContext): } return deserializeAws_json1_1PortRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1Protocols = (output: any, context: __SerdeContext): (Protocol | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5284,6 +5302,7 @@ const deserializeAws_json1_1Protocols = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProvisionByoipCidrResponse = ( @@ -5306,7 +5325,7 @@ const deserializeAws_json1_1SocketAddress = (output: any, context: __SerdeContex }; const deserializeAws_json1_1SocketAddresses = (output: any, context: __SerdeContext): SocketAddress[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5314,6 +5333,7 @@ const deserializeAws_json1_1SocketAddresses = (output: any, context: __SerdeCont } return deserializeAws_json1_1SocketAddress(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -5328,7 +5348,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5336,6 +5356,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => { diff --git a/clients/client-glue/src/protocols/Aws_json1_1.ts b/clients/client-glue/src/protocols/Aws_json1_1.ts index 0527bea4cd64..70ead461a080 100644 --- a/clients/client-glue/src/protocols/Aws_json1_1.ts +++ b/clients/client-glue/src/protocols/Aws_json1_1.ts @@ -16355,7 +16355,7 @@ const deserializeAws_json1_1Action = (output: any, context: __SerdeContext): Act }; const deserializeAws_json1_1ActionList = (output: any, context: __SerdeContext): Action[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16363,6 +16363,7 @@ const deserializeAws_json1_1ActionList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Action(entry, context); }); + return retVal; }; const deserializeAws_json1_1AlreadyExistsException = (output: any, context: __SerdeContext): AlreadyExistsException => { @@ -16385,7 +16386,7 @@ const deserializeAws_json1_1BackfillErroredPartitionsList = ( output: any, context: __SerdeContext ): PartitionValueList[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16393,10 +16394,11 @@ const deserializeAws_json1_1BackfillErroredPartitionsList = ( } return deserializeAws_json1_1PartitionValueList(entry, context); }); + return retVal; }; const deserializeAws_json1_1BackfillErrors = (output: any, context: __SerdeContext): BackfillError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16404,6 +16406,7 @@ const deserializeAws_json1_1BackfillErrors = (output: any, context: __SerdeConte } return deserializeAws_json1_1BackfillError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchCreatePartitionResponse = ( @@ -16551,7 +16554,7 @@ const deserializeAws_json1_1BatchGetPartitionValueList = ( output: any, context: __SerdeContext ): PartitionValueList[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16559,6 +16562,7 @@ const deserializeAws_json1_1BatchGetPartitionValueList = ( } return deserializeAws_json1_1PartitionValueList(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchGetTriggersResponse = ( @@ -16608,7 +16612,7 @@ const deserializeAws_json1_1BatchStopJobRunErrorList = ( output: any, context: __SerdeContext ): BatchStopJobRunError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16616,6 +16620,7 @@ const deserializeAws_json1_1BatchStopJobRunErrorList = ( } return deserializeAws_json1_1BatchStopJobRunError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchStopJobRunResponse = ( @@ -16648,7 +16653,7 @@ const deserializeAws_json1_1BatchStopJobRunSuccessfulSubmissionList = ( output: any, context: __SerdeContext ): BatchStopJobRunSuccessfulSubmission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16656,6 +16661,7 @@ const deserializeAws_json1_1BatchStopJobRunSuccessfulSubmissionList = ( } return deserializeAws_json1_1BatchStopJobRunSuccessfulSubmission(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchUpdatePartitionFailureEntry = ( @@ -16678,7 +16684,7 @@ const deserializeAws_json1_1BatchUpdatePartitionFailureList = ( output: any, context: __SerdeContext ): BatchUpdatePartitionFailureEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16686,6 +16692,7 @@ const deserializeAws_json1_1BatchUpdatePartitionFailureList = ( } return deserializeAws_json1_1BatchUpdatePartitionFailureEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchUpdatePartitionResponse = ( @@ -16743,7 +16750,7 @@ const deserializeAws_json1_1BlueprintDetails = (output: any, context: __SerdeCon }; const deserializeAws_json1_1BlueprintNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16751,6 +16758,7 @@ const deserializeAws_json1_1BlueprintNames = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1BlueprintRun = (output: any, context: __SerdeContext): BlueprintRun => { @@ -16775,7 +16783,7 @@ const deserializeAws_json1_1BlueprintRun = (output: any, context: __SerdeContext }; const deserializeAws_json1_1BlueprintRuns = (output: any, context: __SerdeContext): BlueprintRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16783,10 +16791,11 @@ const deserializeAws_json1_1BlueprintRuns = (output: any, context: __SerdeContex } return deserializeAws_json1_1BlueprintRun(entry, context); }); + return retVal; }; const deserializeAws_json1_1Blueprints = (output: any, context: __SerdeContext): Blueprint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16794,6 +16803,7 @@ const deserializeAws_json1_1Blueprints = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Blueprint(entry, context); }); + return retVal; }; const deserializeAws_json1_1BooleanColumnStatisticsData = ( @@ -16808,7 +16818,7 @@ const deserializeAws_json1_1BooleanColumnStatisticsData = ( }; const deserializeAws_json1_1BoundedPartitionValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16816,6 +16826,7 @@ const deserializeAws_json1_1BoundedPartitionValueList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CancelMLTaskRunResponse = ( @@ -16841,7 +16852,7 @@ const deserializeAws_json1_1CatalogImportStatus = (output: any, context: __Serde }; const deserializeAws_json1_1CatalogTablesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16849,6 +16860,7 @@ const deserializeAws_json1_1CatalogTablesList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CatalogTarget = (output: any, context: __SerdeContext): CatalogTarget => { @@ -16863,7 +16875,7 @@ const deserializeAws_json1_1CatalogTarget = (output: any, context: __SerdeContex }; const deserializeAws_json1_1CatalogTargetList = (output: any, context: __SerdeContext): CatalogTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16871,6 +16883,7 @@ const deserializeAws_json1_1CatalogTargetList = (output: any, context: __SerdeCo } return deserializeAws_json1_1CatalogTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1CheckSchemaVersionValidityResponse = ( @@ -16905,7 +16918,7 @@ const deserializeAws_json1_1Classifier = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ClassifierList = (output: any, context: __SerdeContext): Classifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16913,10 +16926,11 @@ const deserializeAws_json1_1ClassifierList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Classifier(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClassifierNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16924,6 +16938,7 @@ const deserializeAws_json1_1ClassifierNameList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CloudWatchEncryption = (output: any, context: __SerdeContext): CloudWatchEncryption => { @@ -16962,7 +16977,7 @@ const deserializeAws_json1_1CodeGenNodeArg = (output: any, context: __SerdeConte }; const deserializeAws_json1_1CodeGenNodeArgs = (output: any, context: __SerdeContext): CodeGenNodeArg[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16970,6 +16985,7 @@ const deserializeAws_json1_1CodeGenNodeArgs = (output: any, context: __SerdeCont } return deserializeAws_json1_1CodeGenNodeArg(entry, context); }); + return retVal; }; const deserializeAws_json1_1Column = (output: any, context: __SerdeContext): Column => { @@ -16995,7 +17011,7 @@ const deserializeAws_json1_1ColumnError = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ColumnErrors = (output: any, context: __SerdeContext): ColumnError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17003,6 +17019,7 @@ const deserializeAws_json1_1ColumnErrors = (output: any, context: __SerdeContext } return deserializeAws_json1_1ColumnError(entry, context); }); + return retVal; }; const deserializeAws_json1_1ColumnImportance = (output: any, context: __SerdeContext): ColumnImportance => { @@ -17013,7 +17030,7 @@ const deserializeAws_json1_1ColumnImportance = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ColumnImportanceList = (output: any, context: __SerdeContext): ColumnImportance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17021,10 +17038,11 @@ const deserializeAws_json1_1ColumnImportanceList = (output: any, context: __Serd } return deserializeAws_json1_1ColumnImportance(entry, context); }); + return retVal; }; const deserializeAws_json1_1ColumnList = (output: any, context: __SerdeContext): Column[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17032,6 +17050,7 @@ const deserializeAws_json1_1ColumnList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Column(entry, context); }); + return retVal; }; const deserializeAws_json1_1ColumnRowFilter = (output: any, context: __SerdeContext): ColumnRowFilter => { @@ -17042,7 +17061,7 @@ const deserializeAws_json1_1ColumnRowFilter = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ColumnRowFilterList = (output: any, context: __SerdeContext): ColumnRowFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17050,6 +17069,7 @@ const deserializeAws_json1_1ColumnRowFilterList = (output: any, context: __Serde } return deserializeAws_json1_1ColumnRowFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ColumnStatistics = (output: any, context: __SerdeContext): ColumnStatistics => { @@ -17118,7 +17138,7 @@ const deserializeAws_json1_1ColumnStatisticsErrors = ( output: any, context: __SerdeContext ): ColumnStatisticsError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17126,10 +17146,11 @@ const deserializeAws_json1_1ColumnStatisticsErrors = ( } return deserializeAws_json1_1ColumnStatisticsError(entry, context); }); + return retVal; }; const deserializeAws_json1_1ColumnStatisticsList = (output: any, context: __SerdeContext): ColumnStatistics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17137,10 +17158,11 @@ const deserializeAws_json1_1ColumnStatisticsList = (output: any, context: __Serd } return deserializeAws_json1_1ColumnStatistics(entry, context); }); + return retVal; }; const deserializeAws_json1_1ColumnValueStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17148,6 +17170,7 @@ const deserializeAws_json1_1ColumnValueStringList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ConcurrentModificationException = ( @@ -17188,7 +17211,7 @@ const deserializeAws_json1_1ConditionCheckFailureException = ( }; const deserializeAws_json1_1ConditionList = (output: any, context: __SerdeContext): Condition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17196,6 +17219,7 @@ const deserializeAws_json1_1ConditionList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Condition(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => { @@ -17243,7 +17267,7 @@ const deserializeAws_json1_1Connection = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ConnectionList = (output: any, context: __SerdeContext): Connection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17251,6 +17275,7 @@ const deserializeAws_json1_1ConnectionList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Connection(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionPasswordEncryption = ( @@ -17363,7 +17388,7 @@ const deserializeAws_json1_1Crawler = (output: any, context: __SerdeContext): Cr }; const deserializeAws_json1_1CrawlerList = (output: any, context: __SerdeContext): Crawler[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17371,6 +17396,7 @@ const deserializeAws_json1_1CrawlerList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Crawler(entry, context); }); + return retVal; }; const deserializeAws_json1_1CrawlerMetrics = (output: any, context: __SerdeContext): CrawlerMetrics => { @@ -17387,7 +17413,7 @@ const deserializeAws_json1_1CrawlerMetrics = (output: any, context: __SerdeConte }; const deserializeAws_json1_1CrawlerMetricsList = (output: any, context: __SerdeContext): CrawlerMetrics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17395,10 +17421,11 @@ const deserializeAws_json1_1CrawlerMetricsList = (output: any, context: __SerdeC } return deserializeAws_json1_1CrawlerMetrics(entry, context); }); + return retVal; }; const deserializeAws_json1_1CrawlerNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17406,6 +17433,7 @@ const deserializeAws_json1_1CrawlerNameList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CrawlerNodeDetails = (output: any, context: __SerdeContext): CrawlerNodeDetails => { @@ -17474,7 +17502,7 @@ const deserializeAws_json1_1CrawlerTargets = (output: any, context: __SerdeConte }; const deserializeAws_json1_1CrawlList = (output: any, context: __SerdeContext): Crawl[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17482,6 +17510,7 @@ const deserializeAws_json1_1CrawlList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Crawl(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateBlueprintResponse = ( @@ -17682,7 +17711,7 @@ const deserializeAws_json1_1CsvClassifier = (output: any, context: __SerdeContex }; const deserializeAws_json1_1CsvHeader = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17690,10 +17719,11 @@ const deserializeAws_json1_1CsvHeader = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DagEdges = (output: any, context: __SerdeContext): CodeGenEdge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17701,10 +17731,11 @@ const deserializeAws_json1_1DagEdges = (output: any, context: __SerdeContext): C } return deserializeAws_json1_1CodeGenEdge(entry, context); }); + return retVal; }; const deserializeAws_json1_1DagNodes = (output: any, context: __SerdeContext): CodeGenNode[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17712,6 +17743,7 @@ const deserializeAws_json1_1DagNodes = (output: any, context: __SerdeContext): C } return deserializeAws_json1_1CodeGenNode(entry, context); }); + return retVal; }; const deserializeAws_json1_1Database = (output: any, context: __SerdeContext): Database => { @@ -17747,7 +17779,7 @@ const deserializeAws_json1_1DatabaseIdentifier = (output: any, context: __SerdeC }; const deserializeAws_json1_1DatabaseList = (output: any, context: __SerdeContext): Database[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17755,6 +17787,7 @@ const deserializeAws_json1_1DatabaseList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Database(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataCatalogEncryptionSettings = ( @@ -17990,7 +18023,7 @@ const deserializeAws_json1_1DeltaTarget = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1DeltaTargetList = (output: any, context: __SerdeContext): DeltaTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17998,6 +18031,7 @@ const deserializeAws_json1_1DeltaTargetList = (output: any, context: __SerdeCont } return deserializeAws_json1_1DeltaTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1DevEndpoint = (output: any, context: __SerdeContext): DevEndpoint => { @@ -18046,7 +18080,7 @@ const deserializeAws_json1_1DevEndpoint = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1DevEndpointList = (output: any, context: __SerdeContext): DevEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18054,10 +18088,11 @@ const deserializeAws_json1_1DevEndpointList = (output: any, context: __SerdeCont } return deserializeAws_json1_1DevEndpoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1DevEndpointNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18065,10 +18100,11 @@ const deserializeAws_json1_1DevEndpointNameList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DevEndpointNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18076,6 +18112,7 @@ const deserializeAws_json1_1DevEndpointNames = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DoubleColumnStatisticsData = ( @@ -18099,7 +18136,7 @@ const deserializeAws_json1_1DynamoDBTarget = (output: any, context: __SerdeConte }; const deserializeAws_json1_1DynamoDBTargetList = (output: any, context: __SerdeContext): DynamoDBTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18107,6 +18144,7 @@ const deserializeAws_json1_1DynamoDBTargetList = (output: any, context: __SerdeC } return deserializeAws_json1_1DynamoDBTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1Edge = (output: any, context: __SerdeContext): Edge => { @@ -18117,7 +18155,7 @@ const deserializeAws_json1_1Edge = (output: any, context: __SerdeContext): Edge }; const deserializeAws_json1_1EdgeList = (output: any, context: __SerdeContext): Edge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18125,6 +18163,7 @@ const deserializeAws_json1_1EdgeList = (output: any, context: __SerdeContext): E } return deserializeAws_json1_1Edge(entry, context); }); + return retVal; }; const deserializeAws_json1_1EncryptionAtRest = (output: any, context: __SerdeContext): EncryptionAtRest => { @@ -18699,7 +18738,7 @@ const deserializeAws_json1_1GetResourcePoliciesResponse = ( }; const deserializeAws_json1_1GetResourcePoliciesResponseList = (output: any, context: __SerdeContext): GluePolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18707,6 +18746,7 @@ const deserializeAws_json1_1GetResourcePoliciesResponseList = (output: any, cont } return deserializeAws_json1_1GluePolicy(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetResourcePolicyResponse = ( @@ -18839,7 +18879,7 @@ const deserializeAws_json1_1GetTableVersionResponse = ( }; const deserializeAws_json1_1GetTableVersionsList = (output: any, context: __SerdeContext): TableVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18847,6 +18887,7 @@ const deserializeAws_json1_1GetTableVersionsList = (output: any, context: __Serd } return deserializeAws_json1_1TableVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetTableVersionsResponse = ( @@ -19043,7 +19084,7 @@ const deserializeAws_json1_1GlueTable = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1GlueTables = (output: any, context: __SerdeContext): GlueTable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19051,6 +19092,7 @@ const deserializeAws_json1_1GlueTables = (output: any, context: __SerdeContext): } return deserializeAws_json1_1GlueTable(entry, context); }); + return retVal; }; const deserializeAws_json1_1GrokClassifier = (output: any, context: __SerdeContext): GrokClassifier => { @@ -19148,7 +19190,7 @@ const deserializeAws_json1_1JdbcTarget = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1JdbcTargetList = (output: any, context: __SerdeContext): JdbcTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19156,6 +19198,7 @@ const deserializeAws_json1_1JdbcTargetList = (output: any, context: __SerdeConte } return deserializeAws_json1_1JdbcTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1Job = (output: any, context: __SerdeContext): Job => { @@ -19235,7 +19278,7 @@ const deserializeAws_json1_1JobCommand = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1JobList = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19243,10 +19286,11 @@ const deserializeAws_json1_1JobList = (output: any, context: __SerdeContext): Jo } return deserializeAws_json1_1Job(entry, context); }); + return retVal; }; const deserializeAws_json1_1JobNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19254,6 +19298,7 @@ const deserializeAws_json1_1JobNameList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1JobNodeDetails = (output: any, context: __SerdeContext): JobNodeDetails => { @@ -19311,7 +19356,7 @@ const deserializeAws_json1_1JobRun = (output: any, context: __SerdeContext): Job }; const deserializeAws_json1_1JobRunList = (output: any, context: __SerdeContext): JobRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19319,6 +19364,7 @@ const deserializeAws_json1_1JobRunList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1JobRun(entry, context); }); + return retVal; }; const deserializeAws_json1_1JsonClassifier = (output: any, context: __SerdeContext): JsonClassifier => { @@ -19345,7 +19391,7 @@ const deserializeAws_json1_1KeySchemaElement = (output: any, context: __SerdeCon }; const deserializeAws_json1_1KeySchemaElementList = (output: any, context: __SerdeContext): KeySchemaElement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19353,6 +19399,7 @@ const deserializeAws_json1_1KeySchemaElementList = (output: any, context: __Serd } return deserializeAws_json1_1KeySchemaElement(entry, context); }); + return retVal; }; const deserializeAws_json1_1LabelingSetGenerationTaskRunProperties = ( @@ -19529,7 +19576,7 @@ const deserializeAws_json1_1LocationMap = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1LocationStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19537,6 +19584,7 @@ const deserializeAws_json1_1LocationStringList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LongColumnStatisticsData = ( @@ -19563,7 +19611,7 @@ const deserializeAws_json1_1MappingEntry = (output: any, context: __SerdeContext }; const deserializeAws_json1_1MappingList = (output: any, context: __SerdeContext): MappingEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19571,6 +19619,7 @@ const deserializeAws_json1_1MappingList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1MappingEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1MapValue = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -19586,7 +19635,7 @@ const deserializeAws_json1_1MapValue = (output: any, context: __SerdeContext): { }; const deserializeAws_json1_1MatchCriteria = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19594,6 +19643,7 @@ const deserializeAws_json1_1MatchCriteria = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1MetadataInfo = (output: any, context: __SerdeContext): MetadataInfo => { @@ -19692,7 +19742,7 @@ const deserializeAws_json1_1MongoDBTarget = (output: any, context: __SerdeContex }; const deserializeAws_json1_1MongoDBTargetList = (output: any, context: __SerdeContext): MongoDBTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19700,10 +19750,11 @@ const deserializeAws_json1_1MongoDBTargetList = (output: any, context: __SerdeCo } return deserializeAws_json1_1MongoDBTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1NameStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19711,6 +19762,7 @@ const deserializeAws_json1_1NameStringList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Node = (output: any, context: __SerdeContext): Node => { @@ -19734,7 +19786,7 @@ const deserializeAws_json1_1Node = (output: any, context: __SerdeContext): Node }; const deserializeAws_json1_1NodeIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19742,10 +19794,11 @@ const deserializeAws_json1_1NodeIdList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NodeList = (output: any, context: __SerdeContext): Node[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19753,6 +19806,7 @@ const deserializeAws_json1_1NodeList = (output: any, context: __SerdeContext): N } return deserializeAws_json1_1Node(entry, context); }); + return retVal; }; const deserializeAws_json1_1NoScheduleException = (output: any, context: __SerdeContext): NoScheduleException => { @@ -19777,7 +19831,7 @@ const deserializeAws_json1_1OperationTimeoutException = ( }; const deserializeAws_json1_1OrchestrationStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19785,6 +19839,7 @@ const deserializeAws_json1_1OrchestrationStringList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Order = (output: any, context: __SerdeContext): Order => { @@ -19795,7 +19850,7 @@ const deserializeAws_json1_1Order = (output: any, context: __SerdeContext): Orde }; const deserializeAws_json1_1OrderList = (output: any, context: __SerdeContext): Order[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19803,13 +19858,14 @@ const deserializeAws_json1_1OrderList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Order(entry, context); }); + return retVal; }; const deserializeAws_json1_1OtherMetadataValueList = ( output: any, context: __SerdeContext ): OtherMetadataValueListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19817,6 +19873,7 @@ const deserializeAws_json1_1OtherMetadataValueList = ( } return deserializeAws_json1_1OtherMetadataValueListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1OtherMetadataValueListItem = ( @@ -19887,7 +19944,7 @@ const deserializeAws_json1_1PartitionError = (output: any, context: __SerdeConte }; const deserializeAws_json1_1PartitionErrors = (output: any, context: __SerdeContext): PartitionError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19895,6 +19952,7 @@ const deserializeAws_json1_1PartitionErrors = (output: any, context: __SerdeCont } return deserializeAws_json1_1PartitionError(entry, context); }); + return retVal; }; const deserializeAws_json1_1PartitionIndexDescriptor = ( @@ -19919,7 +19977,7 @@ const deserializeAws_json1_1PartitionIndexDescriptorList = ( output: any, context: __SerdeContext ): PartitionIndexDescriptor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19927,10 +19985,11 @@ const deserializeAws_json1_1PartitionIndexDescriptorList = ( } return deserializeAws_json1_1PartitionIndexDescriptor(entry, context); }); + return retVal; }; const deserializeAws_json1_1PartitionList = (output: any, context: __SerdeContext): Partition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19938,6 +19997,7 @@ const deserializeAws_json1_1PartitionList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Partition(entry, context); }); + return retVal; }; const deserializeAws_json1_1PartitionValueList = (output: any, context: __SerdeContext): PartitionValueList => { @@ -19950,7 +20010,7 @@ const deserializeAws_json1_1PartitionValueList = (output: any, context: __SerdeC }; const deserializeAws_json1_1PathList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19958,10 +20018,11 @@ const deserializeAws_json1_1PathList = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PermissionList = (output: any, context: __SerdeContext): (Permission | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19969,6 +20030,7 @@ const deserializeAws_json1_1PermissionList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PermissionTypeMismatchException = ( @@ -20002,7 +20064,7 @@ const deserializeAws_json1_1Predecessor = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1PredecessorList = (output: any, context: __SerdeContext): Predecessor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20010,6 +20072,7 @@ const deserializeAws_json1_1PredecessorList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Predecessor(entry, context); }); + return retVal; }; const deserializeAws_json1_1Predicate = (output: any, context: __SerdeContext): Predicate => { @@ -20039,7 +20102,7 @@ const deserializeAws_json1_1PrincipalPermissionsList = ( output: any, context: __SerdeContext ): PrincipalPermissions[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20047,10 +20110,11 @@ const deserializeAws_json1_1PrincipalPermissionsList = ( } return deserializeAws_json1_1PrincipalPermissions(entry, context); }); + return retVal; }; const deserializeAws_json1_1PublicKeysList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20058,6 +20122,7 @@ const deserializeAws_json1_1PublicKeysList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PutDataCatalogEncryptionSettingsResponse = ( @@ -20131,7 +20196,7 @@ const deserializeAws_json1_1RegisterSchemaVersionResponse = ( }; const deserializeAws_json1_1RegistryListDefinition = (output: any, context: __SerdeContext): RegistryListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20139,6 +20204,7 @@ const deserializeAws_json1_1RegistryListDefinition = (output: any, context: __Se } return deserializeAws_json1_1RegistryListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegistryListItem = (output: any, context: __SerdeContext): RegistryListItem => { @@ -20206,7 +20272,7 @@ const deserializeAws_json1_1ResourceUri = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ResourceUriList = (output: any, context: __SerdeContext): ResourceUri[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20214,6 +20280,7 @@ const deserializeAws_json1_1ResourceUriList = (output: any, context: __SerdeCont } return deserializeAws_json1_1ResourceUri(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResumeWorkflowRunResponse = ( @@ -20237,7 +20304,7 @@ const deserializeAws_json1_1S3Encryption = (output: any, context: __SerdeContext }; const deserializeAws_json1_1S3EncryptionList = (output: any, context: __SerdeContext): S3Encryption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20245,6 +20312,7 @@ const deserializeAws_json1_1S3EncryptionList = (output: any, context: __SerdeCon } return deserializeAws_json1_1S3Encryption(entry, context); }); + return retVal; }; const deserializeAws_json1_1S3Target = (output: any, context: __SerdeContext): S3Target => { @@ -20262,7 +20330,7 @@ const deserializeAws_json1_1S3Target = (output: any, context: __SerdeContext): S }; const deserializeAws_json1_1S3TargetList = (output: any, context: __SerdeContext): S3Target[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20270,6 +20338,7 @@ const deserializeAws_json1_1S3TargetList = (output: any, context: __SerdeContext } return deserializeAws_json1_1S3Target(entry, context); }); + return retVal; }; const deserializeAws_json1_1Schedule = (output: any, context: __SerdeContext): Schedule => { @@ -20329,7 +20398,7 @@ const deserializeAws_json1_1SchemaId = (output: any, context: __SerdeContext): S }; const deserializeAws_json1_1SchemaListDefinition = (output: any, context: __SerdeContext): SchemaListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20337,6 +20406,7 @@ const deserializeAws_json1_1SchemaListDefinition = (output: any, context: __Serd } return deserializeAws_json1_1SchemaListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1SchemaListItem = (output: any, context: __SerdeContext): SchemaListItem => { @@ -20376,7 +20446,7 @@ const deserializeAws_json1_1SchemaVersionErrorList = ( output: any, context: __SerdeContext ): SchemaVersionErrorItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20384,10 +20454,11 @@ const deserializeAws_json1_1SchemaVersionErrorList = ( } return deserializeAws_json1_1SchemaVersionErrorItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1SchemaVersionList = (output: any, context: __SerdeContext): SchemaVersionListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20395,6 +20466,7 @@ const deserializeAws_json1_1SchemaVersionList = (output: any, context: __SerdeCo } return deserializeAws_json1_1SchemaVersionListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1SchemaVersionListItem = (output: any, context: __SerdeContext): SchemaVersionListItem => { @@ -20435,7 +20507,7 @@ const deserializeAws_json1_1SecurityConfigurationList = ( output: any, context: __SerdeContext ): SecurityConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20443,10 +20515,11 @@ const deserializeAws_json1_1SecurityConfigurationList = ( } return deserializeAws_json1_1SecurityConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20454,6 +20527,7 @@ const deserializeAws_json1_1SecurityGroupIdList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SerDeInfo = (output: any, context: __SerdeContext): SerDeInfo => { @@ -20651,7 +20725,7 @@ const deserializeAws_json1_1StringColumnStatisticsData = ( }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20659,6 +20733,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Table = (output: any, context: __SerdeContext): Table => { @@ -20721,7 +20796,7 @@ const deserializeAws_json1_1TableError = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1TableErrors = (output: any, context: __SerdeContext): TableError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20729,6 +20804,7 @@ const deserializeAws_json1_1TableErrors = (output: any, context: __SerdeContext) } return deserializeAws_json1_1TableError(entry, context); }); + return retVal; }; const deserializeAws_json1_1TableIdentifier = (output: any, context: __SerdeContext): TableIdentifier => { @@ -20740,7 +20816,7 @@ const deserializeAws_json1_1TableIdentifier = (output: any, context: __SerdeCont }; const deserializeAws_json1_1TableList = (output: any, context: __SerdeContext): Table[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20748,6 +20824,7 @@ const deserializeAws_json1_1TableList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Table(entry, context); }); + return retVal; }; const deserializeAws_json1_1TableVersion = (output: any, context: __SerdeContext): TableVersion => { @@ -20772,7 +20849,7 @@ const deserializeAws_json1_1TableVersionError = (output: any, context: __SerdeCo }; const deserializeAws_json1_1TableVersionErrors = (output: any, context: __SerdeContext): TableVersionError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20780,6 +20857,7 @@ const deserializeAws_json1_1TableVersionErrors = (output: any, context: __SerdeC } return deserializeAws_json1_1TableVersionError(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -20826,7 +20904,7 @@ const deserializeAws_json1_1TaskRun = (output: any, context: __SerdeContext): Ta }; const deserializeAws_json1_1TaskRunList = (output: any, context: __SerdeContext): TaskRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20834,6 +20912,7 @@ const deserializeAws_json1_1TaskRunList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1TaskRun(entry, context); }); + return retVal; }; const deserializeAws_json1_1TaskRunProperties = (output: any, context: __SerdeContext): TaskRunProperties => { @@ -20873,7 +20952,7 @@ const deserializeAws_json1_1TransformEncryption = (output: any, context: __Serde }; const deserializeAws_json1_1TransformIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20881,10 +20960,11 @@ const deserializeAws_json1_1TransformIdList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TransformList = (output: any, context: __SerdeContext): MLTransform[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20892,6 +20972,7 @@ const deserializeAws_json1_1TransformList = (output: any, context: __SerdeContex } return deserializeAws_json1_1MLTransform(entry, context); }); + return retVal; }; const deserializeAws_json1_1TransformParameters = (output: any, context: __SerdeContext): TransformParameters => { @@ -20905,7 +20986,7 @@ const deserializeAws_json1_1TransformParameters = (output: any, context: __Serde }; const deserializeAws_json1_1TransformSchema = (output: any, context: __SerdeContext): SchemaColumn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20913,6 +20994,7 @@ const deserializeAws_json1_1TransformSchema = (output: any, context: __SerdeCont } return deserializeAws_json1_1SchemaColumn(entry, context); }); + return retVal; }; const deserializeAws_json1_1Trigger = (output: any, context: __SerdeContext): Trigger => { @@ -20940,7 +21022,7 @@ const deserializeAws_json1_1Trigger = (output: any, context: __SerdeContext): Tr }; const deserializeAws_json1_1TriggerList = (output: any, context: __SerdeContext): Trigger[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20948,10 +21030,11 @@ const deserializeAws_json1_1TriggerList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Trigger(entry, context); }); + return retVal; }; const deserializeAws_json1_1TriggerNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20959,6 +21042,7 @@ const deserializeAws_json1_1TriggerNameList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TriggerNodeDetails = (output: any, context: __SerdeContext): TriggerNodeDetails => { @@ -20985,7 +21069,7 @@ const deserializeAws_json1_1UnfilteredPartition = (output: any, context: __Serde }; const deserializeAws_json1_1UnfilteredPartitionList = (output: any, context: __SerdeContext): UnfilteredPartition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20993,6 +21077,7 @@ const deserializeAws_json1_1UnfilteredPartitionList = (output: any, context: __S } return deserializeAws_json1_1UnfilteredPartition(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => { @@ -21151,7 +21236,7 @@ const deserializeAws_json1_1UserDefinedFunction = (output: any, context: __Serde }; const deserializeAws_json1_1UserDefinedFunctionList = (output: any, context: __SerdeContext): UserDefinedFunction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21159,6 +21244,7 @@ const deserializeAws_json1_1UserDefinedFunctionList = (output: any, context: __S } return deserializeAws_json1_1UserDefinedFunction(entry, context); }); + return retVal; }; const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => { @@ -21168,7 +21254,7 @@ const deserializeAws_json1_1ValidationException = (output: any, context: __Serde }; const deserializeAws_json1_1ValueStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21176,6 +21262,7 @@ const deserializeAws_json1_1ValueStringList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1VersionMismatchException = ( @@ -21233,7 +21320,7 @@ const deserializeAws_json1_1WorkflowGraph = (output: any, context: __SerdeContex }; const deserializeAws_json1_1WorkflowNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21241,6 +21328,7 @@ const deserializeAws_json1_1WorkflowNames = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1WorkflowRun = (output: any, context: __SerdeContext): WorkflowRun => { @@ -21293,7 +21381,7 @@ const deserializeAws_json1_1WorkflowRunProperties = ( }; const deserializeAws_json1_1WorkflowRuns = (output: any, context: __SerdeContext): WorkflowRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21301,6 +21389,7 @@ const deserializeAws_json1_1WorkflowRuns = (output: any, context: __SerdeContext } return deserializeAws_json1_1WorkflowRun(entry, context); }); + return retVal; }; const deserializeAws_json1_1WorkflowRunStatistics = (output: any, context: __SerdeContext): WorkflowRunStatistics => { @@ -21315,7 +21404,7 @@ const deserializeAws_json1_1WorkflowRunStatistics = (output: any, context: __Ser }; const deserializeAws_json1_1Workflows = (output: any, context: __SerdeContext): Workflow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21323,6 +21412,7 @@ const deserializeAws_json1_1Workflows = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Workflow(entry, context); }); + return retVal; }; const deserializeAws_json1_1XMLClassifier = (output: any, context: __SerdeContext): XMLClassifier => { diff --git a/clients/client-grafana/src/protocols/Aws_restJson1.ts b/clients/client-grafana/src/protocols/Aws_restJson1.ts index b720f95f708f..0092cfac633b 100644 --- a/clients/client-grafana/src/protocols/Aws_restJson1.ts +++ b/clients/client-grafana/src/protocols/Aws_restJson1.ts @@ -1438,7 +1438,7 @@ const serializeAws_restJson1UserList = (input: User[], context: __SerdeContext): }; const deserializeAws_restJson1AllowedOrganizations = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1446,6 +1446,7 @@ const deserializeAws_restJson1AllowedOrganizations = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AssertionAttributes = (output: any, context: __SerdeContext): AssertionAttributes => { @@ -1483,7 +1484,7 @@ const deserializeAws_restJson1AuthenticationProviders = ( output: any, context: __SerdeContext ): (AuthenticationProviderTypes | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1491,6 +1492,7 @@ const deserializeAws_restJson1AuthenticationProviders = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AuthenticationSummary = (output: any, context: __SerdeContext): AuthenticationSummary => { @@ -1513,7 +1515,7 @@ const deserializeAws_restJson1DataSourceTypesList = ( output: any, context: __SerdeContext ): (DataSourceType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1521,6 +1523,7 @@ const deserializeAws_restJson1DataSourceTypesList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IdpMetadata = (output: any, context: __SerdeContext): IdpMetadata => { @@ -1537,7 +1540,7 @@ const deserializeAws_restJson1NotificationDestinationsList = ( output: any, context: __SerdeContext ): (NotificationDestinationType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1545,10 +1548,11 @@ const deserializeAws_restJson1NotificationDestinationsList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OrganizationalUnitList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1556,6 +1560,7 @@ const deserializeAws_restJson1OrganizationalUnitList = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PermissionEntry = (output: any, context: __SerdeContext): PermissionEntry => { @@ -1569,7 +1574,7 @@ const deserializeAws_restJson1PermissionEntry = (output: any, context: __SerdeCo }; const deserializeAws_restJson1PermissionEntryList = (output: any, context: __SerdeContext): PermissionEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1577,10 +1582,11 @@ const deserializeAws_restJson1PermissionEntryList = (output: any, context: __Ser } return deserializeAws_restJson1PermissionEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1RoleValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1588,6 +1594,7 @@ const deserializeAws_restJson1RoleValueList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RoleValues = (output: any, context: __SerdeContext): RoleValues => { @@ -1647,7 +1654,7 @@ const deserializeAws_restJson1UpdateError = (output: any, context: __SerdeContex }; const deserializeAws_restJson1UpdateErrorList = (output: any, context: __SerdeContext): UpdateError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1655,6 +1662,7 @@ const deserializeAws_restJson1UpdateErrorList = (output: any, context: __SerdeCo } return deserializeAws_restJson1UpdateError(entry, context); }); + return retVal; }; const deserializeAws_restJson1UpdateInstruction = (output: any, context: __SerdeContext): UpdateInstruction => { @@ -1676,7 +1684,7 @@ const deserializeAws_restJson1User = (output: any, context: __SerdeContext): Use }; const deserializeAws_restJson1UserList = (output: any, context: __SerdeContext): User[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1684,6 +1692,7 @@ const deserializeAws_restJson1UserList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1User(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValidationExceptionField = ( @@ -1700,7 +1709,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1708,6 +1717,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorkspaceDescription = (output: any, context: __SerdeContext): WorkspaceDescription => { @@ -1761,7 +1771,7 @@ const deserializeAws_restJson1WorkspaceDescription = (output: any, context: __Se }; const deserializeAws_restJson1WorkspaceList = (output: any, context: __SerdeContext): WorkspaceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1769,6 +1779,7 @@ const deserializeAws_restJson1WorkspaceList = (output: any, context: __SerdeCont } return deserializeAws_restJson1WorkspaceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorkspaceSummary = (output: any, context: __SerdeContext): WorkspaceSummary => { diff --git a/clients/client-greengrass/src/protocols/Aws_restJson1.ts b/clients/client-greengrass/src/protocols/Aws_restJson1.ts index 47a4a6c1933a..d3744e9a8a11 100644 --- a/clients/client-greengrass/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrass/src/protocols/Aws_restJson1.ts @@ -8831,7 +8831,7 @@ const serializeAws_restJson1UpdateTargets = (input: string[], context: __SerdeCo }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8839,10 +8839,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfConnectivityInfo = (output: any, context: __SerdeContext): ConnectivityInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8850,10 +8851,11 @@ const deserializeAws_restJson1__listOfConnectivityInfo = (output: any, context: } return deserializeAws_restJson1ConnectivityInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfConnector = (output: any, context: __SerdeContext): Connector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8861,10 +8863,11 @@ const deserializeAws_restJson1__listOfConnector = (output: any, context: __Serde } return deserializeAws_restJson1Connector(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCore = (output: any, context: __SerdeContext): Core[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8872,13 +8875,14 @@ const deserializeAws_restJson1__listOfCore = (output: any, context: __SerdeConte } return deserializeAws_restJson1Core(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDefinitionInformation = ( output: any, context: __SerdeContext ): DefinitionInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8886,10 +8890,11 @@ const deserializeAws_restJson1__listOfDefinitionInformation = ( } return deserializeAws_restJson1DefinitionInformation(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDevice = (output: any, context: __SerdeContext): Device[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8897,10 +8902,11 @@ const deserializeAws_restJson1__listOfDevice = (output: any, context: __SerdeCon } return deserializeAws_restJson1Device(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfFunction = (output: any, context: __SerdeContext): Function[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8908,13 +8914,14 @@ const deserializeAws_restJson1__listOfFunction = (output: any, context: __SerdeC } return deserializeAws_restJson1Function(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfGroupCertificateAuthorityProperties = ( output: any, context: __SerdeContext ): GroupCertificateAuthorityProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8922,10 +8929,11 @@ const deserializeAws_restJson1__listOfGroupCertificateAuthorityProperties = ( } return deserializeAws_restJson1GroupCertificateAuthorityProperties(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfGroupInformation = (output: any, context: __SerdeContext): GroupInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8933,10 +8941,11 @@ const deserializeAws_restJson1__listOfGroupInformation = (output: any, context: } return deserializeAws_restJson1GroupInformation(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfLogger = (output: any, context: __SerdeContext): Logger[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8944,10 +8953,11 @@ const deserializeAws_restJson1__listOfLogger = (output: any, context: __SerdeCon } return deserializeAws_restJson1Logger(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfResource = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8955,13 +8965,14 @@ const deserializeAws_restJson1__listOfResource = (output: any, context: __SerdeC } return deserializeAws_restJson1Resource(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfResourceAccessPolicy = ( output: any, context: __SerdeContext ): ResourceAccessPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8969,10 +8980,11 @@ const deserializeAws_restJson1__listOfResourceAccessPolicy = ( } return deserializeAws_restJson1ResourceAccessPolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSubscription = (output: any, context: __SerdeContext): Subscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8980,13 +8992,14 @@ const deserializeAws_restJson1__listOfSubscription = (output: any, context: __Se } return deserializeAws_restJson1Subscription(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfVersionInformation = ( output: any, context: __SerdeContext ): VersionInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8994,6 +9007,7 @@ const deserializeAws_restJson1__listOfVersionInformation = ( } return deserializeAws_restJson1VersionInformation(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -9044,7 +9058,7 @@ const deserializeAws_restJson1BulkDeploymentResults = ( output: any, context: __SerdeContext ): BulkDeploymentResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9052,10 +9066,11 @@ const deserializeAws_restJson1BulkDeploymentResults = ( } return deserializeAws_restJson1BulkDeploymentResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1BulkDeployments = (output: any, context: __SerdeContext): BulkDeployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9063,6 +9078,7 @@ const deserializeAws_restJson1BulkDeployments = (output: any, context: __SerdeCo } return deserializeAws_restJson1BulkDeployment(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectivityInfo = (output: any, context: __SerdeContext): ConnectivityInfo => { @@ -9142,7 +9158,7 @@ const deserializeAws_restJson1Deployment = (output: any, context: __SerdeContext }; const deserializeAws_restJson1Deployments = (output: any, context: __SerdeContext): Deployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9150,6 +9166,7 @@ const deserializeAws_restJson1Deployments = (output: any, context: __SerdeContex } return deserializeAws_restJson1Deployment(entry, context); }); + return retVal; }; const deserializeAws_restJson1Device = (output: any, context: __SerdeContext): Device => { @@ -9181,7 +9198,7 @@ const deserializeAws_restJson1ErrorDetail = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ErrorDetails = (output: any, context: __SerdeContext): ErrorDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9189,6 +9206,7 @@ const deserializeAws_restJson1ErrorDetails = (output: any, context: __SerdeConte } return deserializeAws_restJson1ErrorDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1Function = (output: any, context: __SerdeContext): Function => { diff --git a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts index b7c6adf41caf..278361d52e0d 100644 --- a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts @@ -3472,7 +3472,7 @@ const deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList = ( output: any, context: __SerdeContext ): AssociateClientDeviceWithCoreDeviceErrorEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3480,6 +3480,7 @@ const deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList = ( } return deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssociatedClientDevice = ( @@ -3499,7 +3500,7 @@ const deserializeAws_restJson1AssociatedClientDeviceList = ( output: any, context: __SerdeContext ): AssociatedClientDevice[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3507,6 +3508,7 @@ const deserializeAws_restJson1AssociatedClientDeviceList = ( } return deserializeAws_restJson1AssociatedClientDevice(entry, context); }); + return retVal; }; const deserializeAws_restJson1CloudComponentStatus = (output: any, context: __SerdeContext): CloudComponentStatus => { @@ -3532,7 +3534,7 @@ const deserializeAws_restJson1Component = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ComponentConfigurationPathList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3540,6 +3542,7 @@ const deserializeAws_restJson1ComponentConfigurationPathList = (output: any, con } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ComponentConfigurationUpdate = ( @@ -3611,7 +3614,7 @@ const deserializeAws_restJson1ComponentLatestVersion = ( }; const deserializeAws_restJson1ComponentList = (output: any, context: __SerdeContext): Component[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3619,6 +3622,7 @@ const deserializeAws_restJson1ComponentList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Component(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentPlatform = (output: any, context: __SerdeContext): ComponentPlatform => { @@ -3632,7 +3636,7 @@ const deserializeAws_restJson1ComponentPlatform = (output: any, context: __Serde }; const deserializeAws_restJson1ComponentPlatformList = (output: any, context: __SerdeContext): ComponentPlatform[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3640,6 +3644,7 @@ const deserializeAws_restJson1ComponentPlatformList = (output: any, context: __S } return deserializeAws_restJson1ComponentPlatform(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentRunWith = (output: any, context: __SerdeContext): ComponentRunWith => { @@ -3657,7 +3662,7 @@ const deserializeAws_restJson1ComponentVersionList = ( output: any, context: __SerdeContext ): ComponentVersionListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3665,6 +3670,7 @@ const deserializeAws_restJson1ComponentVersionList = ( } return deserializeAws_restJson1ComponentVersionListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentVersionListItem = ( @@ -3688,7 +3694,7 @@ const deserializeAws_restJson1ConnectivityInfo = (output: any, context: __SerdeC }; const deserializeAws_restJson1connectivityInfoList = (output: any, context: __SerdeContext): ConnectivityInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3696,6 +3702,7 @@ const deserializeAws_restJson1connectivityInfoList = (output: any, context: __Se } return deserializeAws_restJson1ConnectivityInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1CoreDevice = (output: any, context: __SerdeContext): CoreDevice => { @@ -3710,7 +3717,7 @@ const deserializeAws_restJson1CoreDevice = (output: any, context: __SerdeContext }; const deserializeAws_restJson1CoreDevicesList = (output: any, context: __SerdeContext): CoreDevice[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3718,6 +3725,7 @@ const deserializeAws_restJson1CoreDevicesList = (output: any, context: __SerdeCo } return deserializeAws_restJson1CoreDevice(entry, context); }); + return retVal; }; const deserializeAws_restJson1Deployment = (output: any, context: __SerdeContext): Deployment => { @@ -3775,7 +3783,7 @@ const deserializeAws_restJson1DeploymentIoTJobConfiguration = ( }; const deserializeAws_restJson1DeploymentList = (output: any, context: __SerdeContext): Deployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3783,6 +3791,7 @@ const deserializeAws_restJson1DeploymentList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Deployment(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeploymentPolicies = (output: any, context: __SerdeContext): DeploymentPolicies => { @@ -3814,7 +3823,7 @@ const deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorList = output: any, context: __SerdeContext ): DisassociateClientDeviceFromCoreDeviceErrorEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3822,6 +3831,7 @@ const deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorList = } return deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1EffectiveDeployment = (output: any, context: __SerdeContext): EffectiveDeployment => { @@ -3849,7 +3859,7 @@ const deserializeAws_restJson1EffectiveDeploymentsList = ( output: any, context: __SerdeContext ): EffectiveDeployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3857,6 +3867,7 @@ const deserializeAws_restJson1EffectiveDeploymentsList = ( } return deserializeAws_restJson1EffectiveDeployment(entry, context); }); + return retVal; }; const deserializeAws_restJson1InstalledComponent = (output: any, context: __SerdeContext): InstalledComponent => { @@ -3870,7 +3881,7 @@ const deserializeAws_restJson1InstalledComponent = (output: any, context: __Serd }; const deserializeAws_restJson1InstalledComponentList = (output: any, context: __SerdeContext): InstalledComponent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3878,6 +3889,7 @@ const deserializeAws_restJson1InstalledComponentList = (output: any, context: __ } return deserializeAws_restJson1InstalledComponent(entry, context); }); + return retVal; }; const deserializeAws_restJson1IoTJobAbortConfig = (output: any, context: __SerdeContext): IoTJobAbortConfig => { @@ -3902,7 +3914,7 @@ const deserializeAws_restJson1IoTJobAbortCriteriaList = ( output: any, context: __SerdeContext ): IoTJobAbortCriteria[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3910,6 +3922,7 @@ const deserializeAws_restJson1IoTJobAbortCriteriaList = ( } return deserializeAws_restJson1IoTJobAbortCriteria(entry, context); }); + return retVal; }; const deserializeAws_restJson1IoTJobExecutionsRolloutConfig = ( @@ -3986,7 +3999,7 @@ const deserializeAws_restJson1ResolvedComponentVersionsList = ( output: any, context: __SerdeContext ): ResolvedComponentVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3994,6 +4007,7 @@ const deserializeAws_restJson1ResolvedComponentVersionsList = ( } return deserializeAws_restJson1ResolvedComponentVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4041,7 +4055,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4049,6 +4063,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-groundstation/src/protocols/Aws_restJson1.ts b/clients/client-groundstation/src/protocols/Aws_restJson1.ts index b1c9d2ca28cd..c3e90be66902 100644 --- a/clients/client-groundstation/src/protocols/Aws_restJson1.ts +++ b/clients/client-groundstation/src/protocols/Aws_restJson1.ts @@ -2755,7 +2755,7 @@ const deserializeAws_restJson1ConfigDetails = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ConfigList = (output: any, context: __SerdeContext): ConfigListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2763,6 +2763,7 @@ const deserializeAws_restJson1ConfigList = (output: any, context: __SerdeContext } return deserializeAws_restJson1ConfigListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConfigListItem = (output: any, context: __SerdeContext): ConfigListItem => { @@ -2853,7 +2854,7 @@ const deserializeAws_restJson1ContactData = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ContactList = (output: any, context: __SerdeContext): ContactData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2861,6 +2862,7 @@ const deserializeAws_restJson1ContactList = (output: any, context: __SerdeContex } return deserializeAws_restJson1ContactData(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataflowDetail = (output: any, context: __SerdeContext): DataflowDetail => { @@ -2878,7 +2880,7 @@ const deserializeAws_restJson1DataflowDetail = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DataflowEdge = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2886,10 +2888,11 @@ const deserializeAws_restJson1DataflowEdge = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DataflowEdgeList = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2897,6 +2900,7 @@ const deserializeAws_restJson1DataflowEdgeList = (output: any, context: __SerdeC } return deserializeAws_restJson1DataflowEdge(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataflowEndpoint = (output: any, context: __SerdeContext): DataflowEndpoint => { @@ -2925,7 +2929,7 @@ const deserializeAws_restJson1DataflowEndpointGroupList = ( output: any, context: __SerdeContext ): DataflowEndpointListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2933,6 +2937,7 @@ const deserializeAws_restJson1DataflowEndpointGroupList = ( } return deserializeAws_restJson1DataflowEndpointListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataflowEndpointListItem = ( @@ -2946,7 +2951,7 @@ const deserializeAws_restJson1DataflowEndpointListItem = ( }; const deserializeAws_restJson1DataflowList = (output: any, context: __SerdeContext): DataflowDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2954,6 +2959,7 @@ const deserializeAws_restJson1DataflowList = (output: any, context: __SerdeConte } return deserializeAws_restJson1DataflowDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1DecodeConfig = (output: any, context: __SerdeContext): DecodeConfig => { @@ -3008,7 +3014,7 @@ const deserializeAws_restJson1EndpointDetails = (output: any, context: __SerdeCo }; const deserializeAws_restJson1EndpointDetailsList = (output: any, context: __SerdeContext): EndpointDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3016,6 +3022,7 @@ const deserializeAws_restJson1EndpointDetailsList = (output: any, context: __Ser } return deserializeAws_restJson1EndpointDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1Frequency = (output: any, context: __SerdeContext): Frequency => { @@ -3041,7 +3048,7 @@ const deserializeAws_restJson1GroundStationData = (output: any, context: __Serde }; const deserializeAws_restJson1GroundStationIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3049,10 +3056,11 @@ const deserializeAws_restJson1GroundStationIdList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1GroundStationList = (output: any, context: __SerdeContext): GroundStationData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3060,10 +3068,11 @@ const deserializeAws_restJson1GroundStationList = (output: any, context: __Serde } return deserializeAws_restJson1GroundStationData(entry, context); }); + return retVal; }; const deserializeAws_restJson1MissionProfileList = (output: any, context: __SerdeContext): MissionProfileListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3071,6 +3080,7 @@ const deserializeAws_restJson1MissionProfileList = (output: any, context: __Serd } return deserializeAws_restJson1MissionProfileListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1MissionProfileListItem = ( @@ -3101,7 +3111,7 @@ const deserializeAws_restJson1S3RecordingDetails = (output: any, context: __Serd }; const deserializeAws_restJson1SatelliteList = (output: any, context: __SerdeContext): SatelliteListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3109,6 +3119,7 @@ const deserializeAws_restJson1SatelliteList = (output: any, context: __SerdeCont } return deserializeAws_restJson1SatelliteListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1SatelliteListItem = (output: any, context: __SerdeContext): SatelliteListItem => { @@ -3138,7 +3149,7 @@ const deserializeAws_restJson1SecurityDetails = (output: any, context: __SerdeCo }; const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3146,6 +3157,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SocketAddress = (output: any, context: __SerdeContext): SocketAddress => { @@ -3182,7 +3194,7 @@ const deserializeAws_restJson1SpectrumConfig = (output: any, context: __SerdeCon }; const deserializeAws_restJson1SubnetList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3190,6 +3202,7 @@ const deserializeAws_restJson1SubnetList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-guardduty/src/protocols/Aws_restJson1.ts b/clients/client-guardduty/src/protocols/Aws_restJson1.ts index f6725e2eb401..d770164534d8 100644 --- a/clients/client-guardduty/src/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/src/protocols/Aws_restJson1.ts @@ -5478,7 +5478,7 @@ const deserializeAws_restJson1AdminAccount = (output: any, context: __SerdeConte }; const deserializeAws_restJson1AdminAccounts = (output: any, context: __SerdeContext): AdminAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5486,6 +5486,7 @@ const deserializeAws_restJson1AdminAccounts = (output: any, context: __SerdeCont } return deserializeAws_restJson1AdminAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsApiCallAction = (output: any, context: __SerdeContext): AwsApiCallAction => { @@ -5603,7 +5604,7 @@ const deserializeAws_restJson1Container = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1Containers = (output: any, context: __SerdeContext): Container[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5611,6 +5612,7 @@ const deserializeAws_restJson1Containers = (output: any, context: __SerdeContext } return deserializeAws_restJson1Container(entry, context); }); + return retVal; }; const deserializeAws_restJson1CountBySeverity = (output: any, context: __SerdeContext): { [key: string]: number } => { @@ -5698,7 +5700,7 @@ const deserializeAws_restJson1DestinationProperties = (output: any, context: __S }; const deserializeAws_restJson1Destinations = (output: any, context: __SerdeContext): Destination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5706,10 +5708,11 @@ const deserializeAws_restJson1Destinations = (output: any, context: __SerdeConte } return deserializeAws_restJson1Destination(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectorIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5717,6 +5720,7 @@ const deserializeAws_restJson1DetectorIds = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DNSLogsConfigurationResult = ( @@ -5758,7 +5762,7 @@ const deserializeAws_restJson1EksClusterDetails = (output: any, context: __Serde }; const deserializeAws_restJson1Eq = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5766,10 +5770,11 @@ const deserializeAws_restJson1Eq = (output: any, context: __SerdeContext): strin } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Equals = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5777,6 +5782,7 @@ const deserializeAws_restJson1Equals = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Evidence = (output: any, context: __SerdeContext): Evidence => { @@ -5789,7 +5795,7 @@ const deserializeAws_restJson1Evidence = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1FilterNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5797,6 +5803,7 @@ const deserializeAws_restJson1FilterNames = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): Finding => { @@ -5835,7 +5842,7 @@ const deserializeAws_restJson1FindingCriteria = (output: any, context: __SerdeCo }; const deserializeAws_restJson1FindingIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5843,10 +5850,11 @@ const deserializeAws_restJson1FindingIds = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Findings = (output: any, context: __SerdeContext): Finding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5854,6 +5862,7 @@ const deserializeAws_restJson1Findings = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Finding(entry, context); }); + return retVal; }; const deserializeAws_restJson1FindingStatistics = (output: any, context: __SerdeContext): FindingStatistics => { @@ -5882,7 +5891,7 @@ const deserializeAws_restJson1GeoLocation = (output: any, context: __SerdeContex }; const deserializeAws_restJson1Groups = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5890,6 +5899,7 @@ const deserializeAws_restJson1Groups = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1HostPath = (output: any, context: __SerdeContext): HostPath => { @@ -5945,7 +5955,7 @@ const deserializeAws_restJson1Invitation = (output: any, context: __SerdeContext }; const deserializeAws_restJson1Invitations = (output: any, context: __SerdeContext): Invitation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5953,10 +5963,11 @@ const deserializeAws_restJson1Invitations = (output: any, context: __SerdeContex } return deserializeAws_restJson1Invitation(entry, context); }); + return retVal; }; const deserializeAws_restJson1IpSetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5964,10 +5975,11 @@ const deserializeAws_restJson1IpSetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Ipv6Addresses = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5975,6 +5987,7 @@ const deserializeAws_restJson1Ipv6Addresses = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1KubernetesApiCallAction = ( @@ -6115,7 +6128,7 @@ const deserializeAws_restJson1MemberDataSourceConfigurations = ( output: any, context: __SerdeContext ): MemberDataSourceConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6123,10 +6136,11 @@ const deserializeAws_restJson1MemberDataSourceConfigurations = ( } return deserializeAws_restJson1MemberDataSourceConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1Members = (output: any, context: __SerdeContext): Member[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6134,10 +6148,11 @@ const deserializeAws_restJson1Members = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Member(entry, context); }); + return retVal; }; const deserializeAws_restJson1Neq = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6145,6 +6160,7 @@ const deserializeAws_restJson1Neq = (output: any, context: __SerdeContext): stri } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1NetworkConnectionAction = ( @@ -6199,7 +6215,7 @@ const deserializeAws_restJson1NetworkInterface = (output: any, context: __SerdeC }; const deserializeAws_restJson1NetworkInterfaces = (output: any, context: __SerdeContext): NetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6207,10 +6223,11 @@ const deserializeAws_restJson1NetworkInterfaces = (output: any, context: __Serde } return deserializeAws_restJson1NetworkInterface(entry, context); }); + return retVal; }; const deserializeAws_restJson1NotEquals = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6218,6 +6235,7 @@ const deserializeAws_restJson1NotEquals = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Organization = (output: any, context: __SerdeContext): Organization => { @@ -6325,7 +6343,7 @@ const deserializeAws_restJson1PortProbeDetail = (output: any, context: __SerdeCo }; const deserializeAws_restJson1PortProbeDetails = (output: any, context: __SerdeContext): PortProbeDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6333,6 +6351,7 @@ const deserializeAws_restJson1PortProbeDetails = (output: any, context: __SerdeC } return deserializeAws_restJson1PortProbeDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1PrivateIpAddressDetails = ( @@ -6349,7 +6368,7 @@ const deserializeAws_restJson1PrivateIpAddresses = ( output: any, context: __SerdeContext ): PrivateIpAddressDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6357,6 +6376,7 @@ const deserializeAws_restJson1PrivateIpAddresses = ( } return deserializeAws_restJson1PrivateIpAddressDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProductCode = (output: any, context: __SerdeContext): ProductCode => { @@ -6367,7 +6387,7 @@ const deserializeAws_restJson1ProductCode = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ProductCodes = (output: any, context: __SerdeContext): ProductCode[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6375,6 +6395,7 @@ const deserializeAws_restJson1ProductCodes = (output: any, context: __SerdeConte } return deserializeAws_restJson1ProductCode(entry, context); }); + return retVal; }; const deserializeAws_restJson1PublicAccess = (output: any, context: __SerdeContext): PublicAccess => { @@ -6478,7 +6499,7 @@ const deserializeAws_restJson1S3BucketDetail = (output: any, context: __SerdeCon }; const deserializeAws_restJson1S3BucketDetails = (output: any, context: __SerdeContext): S3BucketDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6486,6 +6507,7 @@ const deserializeAws_restJson1S3BucketDetails = (output: any, context: __SerdeCo } return deserializeAws_restJson1S3BucketDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3LogsConfigurationResult = ( @@ -6511,7 +6533,7 @@ const deserializeAws_restJson1SecurityGroup = (output: any, context: __SerdeCont }; const deserializeAws_restJson1SecurityGroups = (output: any, context: __SerdeContext): SecurityGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6519,6 +6541,7 @@ const deserializeAws_restJson1SecurityGroups = (output: any, context: __SerdeCon } return deserializeAws_restJson1SecurityGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1Service = (output: any, context: __SerdeContext): Service => { @@ -6543,7 +6566,7 @@ const deserializeAws_restJson1Service = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1SourceIps = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6551,6 +6574,7 @@ const deserializeAws_restJson1SourceIps = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -6573,7 +6597,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6581,6 +6605,7 @@ const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Tag } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThreatIntelligenceDetail = ( @@ -6600,7 +6625,7 @@ const deserializeAws_restJson1ThreatIntelligenceDetails = ( output: any, context: __SerdeContext ): ThreatIntelligenceDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6608,10 +6633,11 @@ const deserializeAws_restJson1ThreatIntelligenceDetails = ( } return deserializeAws_restJson1ThreatIntelligenceDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThreatIntelSetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6619,10 +6645,11 @@ const deserializeAws_restJson1ThreatIntelSetIds = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ThreatNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6630,6 +6657,7 @@ const deserializeAws_restJson1ThreatNames = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Total = (output: any, context: __SerdeContext): Total => { @@ -6647,7 +6675,7 @@ const deserializeAws_restJson1UnprocessedAccount = (output: any, context: __Serd }; const deserializeAws_restJson1UnprocessedAccounts = (output: any, context: __SerdeContext): UnprocessedAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6655,6 +6683,7 @@ const deserializeAws_restJson1UnprocessedAccounts = (output: any, context: __Ser } return deserializeAws_restJson1UnprocessedAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1UsageAccountResult = (output: any, context: __SerdeContext): UsageAccountResult => { @@ -6668,7 +6697,7 @@ const deserializeAws_restJson1UsageAccountResult = (output: any, context: __Serd }; const deserializeAws_restJson1UsageAccountResultList = (output: any, context: __SerdeContext): UsageAccountResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6676,6 +6705,7 @@ const deserializeAws_restJson1UsageAccountResultList = (output: any, context: __ } return deserializeAws_restJson1UsageAccountResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1UsageDataSourceResult = (output: any, context: __SerdeContext): UsageDataSourceResult => { @@ -6692,7 +6722,7 @@ const deserializeAws_restJson1UsageDataSourceResultList = ( output: any, context: __SerdeContext ): UsageDataSourceResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6700,6 +6730,7 @@ const deserializeAws_restJson1UsageDataSourceResultList = ( } return deserializeAws_restJson1UsageDataSourceResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1UsageResourceResult = (output: any, context: __SerdeContext): UsageResourceResult => { @@ -6716,7 +6747,7 @@ const deserializeAws_restJson1UsageResourceResultList = ( output: any, context: __SerdeContext ): UsageResourceResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6724,6 +6755,7 @@ const deserializeAws_restJson1UsageResourceResultList = ( } return deserializeAws_restJson1UsageResourceResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1UsageStatistics = (output: any, context: __SerdeContext): UsageStatistics => { @@ -6765,7 +6797,7 @@ const deserializeAws_restJson1VolumeMount = (output: any, context: __SerdeContex }; const deserializeAws_restJson1VolumeMounts = (output: any, context: __SerdeContext): VolumeMount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6773,10 +6805,11 @@ const deserializeAws_restJson1VolumeMounts = (output: any, context: __SerdeConte } return deserializeAws_restJson1VolumeMount(entry, context); }); + return retVal; }; const deserializeAws_restJson1Volumes = (output: any, context: __SerdeContext): Volume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6784,6 +6817,7 @@ const deserializeAws_restJson1Volumes = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Volume(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-health/src/protocols/Aws_json1_1.ts b/clients/client-health/src/protocols/Aws_json1_1.ts index c3facb8e39b9..51c5956cd2a8 100644 --- a/clients/client-health/src/protocols/Aws_json1_1.ts +++ b/clients/client-health/src/protocols/Aws_json1_1.ts @@ -1365,7 +1365,7 @@ const serializeAws_json1_1tagSet = (input: { [key: string]: string }, context: _ }; const deserializeAws_json1_1affectedAccountsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1373,6 +1373,7 @@ const deserializeAws_json1_1affectedAccountsList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AffectedEntity = (output: any, context: __SerdeContext): AffectedEntity => { @@ -1421,7 +1422,7 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationFailedSet = ( output: any, context: __SerdeContext ): OrganizationAffectedEntitiesErrorItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1429,6 +1430,7 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationFailedSet = ( } return deserializeAws_json1_1OrganizationAffectedEntitiesErrorItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationResponse = ( @@ -1490,7 +1492,7 @@ const deserializeAws_json1_1DescribeEventDetailsFailedSet = ( output: any, context: __SerdeContext ): EventDetailsErrorItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1498,13 +1500,14 @@ const deserializeAws_json1_1DescribeEventDetailsFailedSet = ( } return deserializeAws_json1_1EventDetailsErrorItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeEventDetailsForOrganizationFailedSet = ( output: any, context: __SerdeContext ): OrganizationEventDetailsErrorItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1512,6 +1515,7 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationFailedSet = ( } return deserializeAws_json1_1OrganizationEventDetailsErrorItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeEventDetailsForOrganizationResponse = ( @@ -1534,7 +1538,7 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationSuccessfulSet = ( output: any, context: __SerdeContext ): OrganizationEventDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1542,6 +1546,7 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationSuccessfulSet = ( } return deserializeAws_json1_1OrganizationEventDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeEventDetailsResponse = ( @@ -1564,7 +1569,7 @@ const deserializeAws_json1_1DescribeEventDetailsSuccessfulSet = ( output: any, context: __SerdeContext ): EventDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1572,6 +1577,7 @@ const deserializeAws_json1_1DescribeEventDetailsSuccessfulSet = ( } return deserializeAws_json1_1EventDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeEventsForOrganizationResponse = ( @@ -1627,7 +1633,7 @@ const deserializeAws_json1_1EntityAggregate = (output: any, context: __SerdeCont }; const deserializeAws_json1_1EntityAggregateList = (output: any, context: __SerdeContext): EntityAggregate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1635,10 +1641,11 @@ const deserializeAws_json1_1EntityAggregateList = (output: any, context: __Serde } return deserializeAws_json1_1EntityAggregate(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntityList = (output: any, context: __SerdeContext): AffectedEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1646,6 +1653,7 @@ const deserializeAws_json1_1EntityList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1AffectedEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Event => { @@ -1681,7 +1689,7 @@ const deserializeAws_json1_1EventAggregate = (output: any, context: __SerdeConte }; const deserializeAws_json1_1EventAggregateList = (output: any, context: __SerdeContext): EventAggregate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1689,6 +1697,7 @@ const deserializeAws_json1_1EventAggregateList = (output: any, context: __SerdeC } return deserializeAws_json1_1EventAggregate(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventDescription = (output: any, context: __SerdeContext): EventDescription => { @@ -1723,7 +1732,7 @@ const deserializeAws_json1_1EventDetailsErrorItem = (output: any, context: __Ser }; const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): Event[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1731,6 +1740,7 @@ const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Event(entry, context); }); + return retVal; }; const deserializeAws_json1_1eventMetadata = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -1754,7 +1764,7 @@ const deserializeAws_json1_1EventType = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1EventTypeList = (output: any, context: __SerdeContext): EventType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1762,6 +1772,7 @@ const deserializeAws_json1_1EventTypeList = (output: any, context: __SerdeContex } return deserializeAws_json1_1EventType(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidPaginationToken = (output: any, context: __SerdeContext): InvalidPaginationToken => { @@ -1840,7 +1851,7 @@ const deserializeAws_json1_1OrganizationEventDetailsErrorItem = ( }; const deserializeAws_json1_1OrganizationEventList = (output: any, context: __SerdeContext): OrganizationEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1848,6 +1859,7 @@ const deserializeAws_json1_1OrganizationEventList = (output: any, context: __Ser } return deserializeAws_json1_1OrganizationEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1tagSet = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-healthlake/src/protocols/Aws_json1_0.ts b/clients/client-healthlake/src/protocols/Aws_json1_0.ts index da944ea1490d..26e637d63c3b 100644 --- a/clients/client-healthlake/src/protocols/Aws_json1_0.ts +++ b/clients/client-healthlake/src/protocols/Aws_json1_0.ts @@ -1313,7 +1313,7 @@ const deserializeAws_json1_0DatastoreProperties = (output: any, context: __Serde }; const deserializeAws_json1_0DatastorePropertiesList = (output: any, context: __SerdeContext): DatastoreProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1321,6 +1321,7 @@ const deserializeAws_json1_0DatastorePropertiesList = (output: any, context: __S } return deserializeAws_json1_0DatastoreProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_0DeleteFHIRDatastoreResponse = ( @@ -1395,7 +1396,7 @@ const deserializeAws_json1_0ExportJobProperties = (output: any, context: __Serde }; const deserializeAws_json1_0ExportJobPropertiesList = (output: any, context: __SerdeContext): ExportJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1403,6 +1404,7 @@ const deserializeAws_json1_0ExportJobPropertiesList = (output: any, context: __S } return deserializeAws_json1_0ExportJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_0ImportJobProperties = (output: any, context: __SerdeContext): ImportJobProperties => { @@ -1433,7 +1435,7 @@ const deserializeAws_json1_0ImportJobProperties = (output: any, context: __Serde }; const deserializeAws_json1_0ImportJobPropertiesList = (output: any, context: __SerdeContext): ImportJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1441,6 +1443,7 @@ const deserializeAws_json1_0ImportJobPropertiesList = (output: any, context: __S } return deserializeAws_json1_0ImportJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_0InputDataConfig = (output: any, context: __SerdeContext): InputDataConfig => { @@ -1587,7 +1590,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1595,6 +1598,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-honeycode/src/protocols/Aws_restJson1.ts b/clients/client-honeycode/src/protocols/Aws_restJson1.ts index f3815ac0fe13..4c4c05d26b08 100644 --- a/clients/client-honeycode/src/protocols/Aws_restJson1.ts +++ b/clients/client-honeycode/src/protocols/Aws_restJson1.ts @@ -2175,7 +2175,7 @@ const deserializeAws_restJson1Cell = (output: any, context: __SerdeContext): Cel }; const deserializeAws_restJson1Cells = (output: any, context: __SerdeContext): Cell[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2183,6 +2183,7 @@ const deserializeAws_restJson1Cells = (output: any, context: __SerdeContext): Ce } return deserializeAws_restJson1Cell(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnMetadata = (output: any, context: __SerdeContext): ColumnMetadata => { @@ -2213,7 +2214,7 @@ const deserializeAws_restJson1DataItem = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1DataItems = (output: any, context: __SerdeContext): DataItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2221,6 +2222,7 @@ const deserializeAws_restJson1DataItems = (output: any, context: __SerdeContext) } return deserializeAws_restJson1DataItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1DelimitedTextImportOptions = ( @@ -2252,7 +2254,7 @@ const deserializeAws_restJson1FailedBatchItem = (output: any, context: __SerdeCo }; const deserializeAws_restJson1FailedBatchItems = (output: any, context: __SerdeContext): FailedBatchItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2260,10 +2262,11 @@ const deserializeAws_restJson1FailedBatchItems = (output: any, context: __SerdeC } return deserializeAws_restJson1FailedBatchItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1FormattedValuesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2271,6 +2274,7 @@ const deserializeAws_restJson1FormattedValuesList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ImportColumnMap = ( @@ -2330,7 +2334,7 @@ const deserializeAws_restJson1ImportOptions = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ResourceIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2338,10 +2342,11 @@ const deserializeAws_restJson1ResourceIds = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResultHeader = (output: any, context: __SerdeContext): ColumnMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2349,6 +2354,7 @@ const deserializeAws_restJson1ResultHeader = (output: any, context: __SerdeConte } return deserializeAws_restJson1ColumnMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResultRow = (output: any, context: __SerdeContext): ResultRow => { @@ -2362,7 +2368,7 @@ const deserializeAws_restJson1ResultRow = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ResultRows = (output: any, context: __SerdeContext): ResultRow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2370,6 +2376,7 @@ const deserializeAws_restJson1ResultRows = (output: any, context: __SerdeContext } return deserializeAws_restJson1ResultRow(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResultSet = (output: any, context: __SerdeContext): ResultSet => { @@ -2398,7 +2405,7 @@ const deserializeAws_restJson1ResultSetMap = (output: any, context: __SerdeConte }; const deserializeAws_restJson1RowIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2406,6 +2413,7 @@ const deserializeAws_restJson1RowIdList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SourceDataColumnProperties = ( @@ -2433,7 +2441,7 @@ const deserializeAws_restJson1TableColumn = (output: any, context: __SerdeContex }; const deserializeAws_restJson1TableColumns = (output: any, context: __SerdeContext): TableColumn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2441,6 +2449,7 @@ const deserializeAws_restJson1TableColumns = (output: any, context: __SerdeConte } return deserializeAws_restJson1TableColumn(entry, context); }); + return retVal; }; const deserializeAws_restJson1TableDataImportJobMetadata = ( @@ -2478,7 +2487,7 @@ const deserializeAws_restJson1TableRow = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1TableRows = (output: any, context: __SerdeContext): TableRow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2486,10 +2495,11 @@ const deserializeAws_restJson1TableRows = (output: any, context: __SerdeContext) } return deserializeAws_restJson1TableRow(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tables = (output: any, context: __SerdeContext): Table[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2497,6 +2507,7 @@ const deserializeAws_restJson1Tables = (output: any, context: __SerdeContext): T } return deserializeAws_restJson1Table(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-identitystore/src/protocols/Aws_json1_1.ts b/clients/client-identitystore/src/protocols/Aws_json1_1.ts index 134d1715175a..40477107328a 100644 --- a/clients/client-identitystore/src/protocols/Aws_json1_1.ts +++ b/clients/client-identitystore/src/protocols/Aws_json1_1.ts @@ -457,7 +457,7 @@ const deserializeAws_json1_1Group = (output: any, context: __SerdeContext): Grou }; const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): Group[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -465,6 +465,7 @@ const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): Gro } return deserializeAws_json1_1Group(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalServerException = ( @@ -524,7 +525,7 @@ const deserializeAws_json1_1User = (output: any, context: __SerdeContext): User }; const deserializeAws_json1_1Users = (output: any, context: __SerdeContext): User[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -532,6 +533,7 @@ const deserializeAws_json1_1Users = (output: any, context: __SerdeContext): User } return deserializeAws_json1_1User(entry, context); }); + return retVal; }; const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => { diff --git a/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts b/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts index 9e5d7544c9e0..32d5eb76617c 100644 --- a/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts +++ b/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts @@ -5913,7 +5913,7 @@ const serializeAws_restJson1TargetContainerRepository = ( }; const deserializeAws_restJson1AccountList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5921,6 +5921,7 @@ const deserializeAws_restJson1AccountList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AdditionalInstanceConfiguration = ( @@ -5974,7 +5975,7 @@ const deserializeAws_restJson1AmiDistributionConfiguration = ( }; const deserializeAws_restJson1AmiList = (output: any, context: __SerdeContext): Ami[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5982,6 +5983,7 @@ const deserializeAws_restJson1AmiList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Ami(entry, context); }); + return retVal; }; const deserializeAws_restJson1Component = (output: any, context: __SerdeContext): Component => { @@ -6034,7 +6036,7 @@ const deserializeAws_restJson1ComponentConfigurationList = ( output: any, context: __SerdeContext ): ComponentConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6042,6 +6044,7 @@ const deserializeAws_restJson1ComponentConfigurationList = ( } return deserializeAws_restJson1ComponentConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentParameter = (output: any, context: __SerdeContext): ComponentParameter => { @@ -6073,7 +6076,7 @@ const deserializeAws_restJson1ComponentParameterDetailList = ( output: any, context: __SerdeContext ): ComponentParameterDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6081,10 +6084,11 @@ const deserializeAws_restJson1ComponentParameterDetailList = ( } return deserializeAws_restJson1ComponentParameterDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentParameterList = (output: any, context: __SerdeContext): ComponentParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6092,10 +6096,11 @@ const deserializeAws_restJson1ComponentParameterList = (output: any, context: __ } return deserializeAws_restJson1ComponentParameter(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentParameterValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6103,6 +6108,7 @@ const deserializeAws_restJson1ComponentParameterValueList = (output: any, contex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ComponentState = (output: any, context: __SerdeContext): ComponentState => { @@ -6139,7 +6145,7 @@ const deserializeAws_restJson1ComponentSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1ComponentSummaryList = (output: any, context: __SerdeContext): ComponentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6147,6 +6153,7 @@ const deserializeAws_restJson1ComponentSummaryList = (output: any, context: __Se } return deserializeAws_restJson1ComponentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentVersion = (output: any, context: __SerdeContext): ComponentVersion => { @@ -6167,7 +6174,7 @@ const deserializeAws_restJson1ComponentVersion = (output: any, context: __SerdeC }; const deserializeAws_restJson1ComponentVersionList = (output: any, context: __SerdeContext): ComponentVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6175,6 +6182,7 @@ const deserializeAws_restJson1ComponentVersionList = (output: any, context: __Se } return deserializeAws_restJson1ComponentVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1Container = (output: any, context: __SerdeContext): Container => { @@ -6205,7 +6213,7 @@ const deserializeAws_restJson1ContainerDistributionConfiguration = ( }; const deserializeAws_restJson1ContainerList = (output: any, context: __SerdeContext): Container[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6213,6 +6221,7 @@ const deserializeAws_restJson1ContainerList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Container(entry, context); }); + return retVal; }; const deserializeAws_restJson1ContainerRecipe = (output: any, context: __SerdeContext): ContainerRecipe => { @@ -6272,7 +6281,7 @@ const deserializeAws_restJson1ContainerRecipeSummaryList = ( output: any, context: __SerdeContext ): ContainerRecipeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6280,6 +6289,7 @@ const deserializeAws_restJson1ContainerRecipeSummaryList = ( } return deserializeAws_restJson1ContainerRecipeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Distribution = (output: any, context: __SerdeContext): Distribution => { @@ -6355,7 +6365,7 @@ const deserializeAws_restJson1DistributionConfigurationSummaryList = ( output: any, context: __SerdeContext ): DistributionConfigurationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6363,10 +6373,11 @@ const deserializeAws_restJson1DistributionConfigurationSummaryList = ( } return deserializeAws_restJson1DistributionConfigurationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DistributionList = (output: any, context: __SerdeContext): Distribution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6374,6 +6385,7 @@ const deserializeAws_restJson1DistributionList = (output: any, context: __SerdeC } return deserializeAws_restJson1Distribution(entry, context); }); + return retVal; }; const deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = ( @@ -6448,7 +6460,7 @@ const deserializeAws_restJson1ImagePackage = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ImagePackageList = (output: any, context: __SerdeContext): ImagePackage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6456,6 +6468,7 @@ const deserializeAws_restJson1ImagePackageList = (output: any, context: __SerdeC } return deserializeAws_restJson1ImagePackage(entry, context); }); + return retVal; }; const deserializeAws_restJson1ImagePipeline = (output: any, context: __SerdeContext): ImagePipeline => { @@ -6490,7 +6503,7 @@ const deserializeAws_restJson1ImagePipeline = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ImagePipelineList = (output: any, context: __SerdeContext): ImagePipeline[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6498,6 +6511,7 @@ const deserializeAws_restJson1ImagePipelineList = (output: any, context: __Serde } return deserializeAws_restJson1ImagePipeline(entry, context); }); + return retVal; }; const deserializeAws_restJson1ImageRecipe = (output: any, context: __SerdeContext): ImageRecipe => { @@ -6547,7 +6561,7 @@ const deserializeAws_restJson1ImageRecipeSummary = (output: any, context: __Serd }; const deserializeAws_restJson1ImageRecipeSummaryList = (output: any, context: __SerdeContext): ImageRecipeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6555,6 +6569,7 @@ const deserializeAws_restJson1ImageRecipeSummaryList = (output: any, context: __ } return deserializeAws_restJson1ImageRecipeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ImageState = (output: any, context: __SerdeContext): ImageState => { @@ -6591,7 +6606,7 @@ const deserializeAws_restJson1ImageSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ImageSummaryList = (output: any, context: __SerdeContext): ImageSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6599,6 +6614,7 @@ const deserializeAws_restJson1ImageSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1ImageSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ImageTestsConfiguration = ( @@ -6626,7 +6642,7 @@ const deserializeAws_restJson1ImageVersion = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ImageVersionList = (output: any, context: __SerdeContext): ImageVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6634,6 +6650,7 @@ const deserializeAws_restJson1ImageVersionList = (output: any, context: __SerdeC } return deserializeAws_restJson1ImageVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1InfrastructureConfiguration = ( @@ -6708,7 +6725,7 @@ const deserializeAws_restJson1InfrastructureConfigurationSummaryList = ( output: any, context: __SerdeContext ): InfrastructureConfigurationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6716,6 +6733,7 @@ const deserializeAws_restJson1InfrastructureConfigurationSummaryList = ( } return deserializeAws_restJson1InfrastructureConfigurationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1InstanceBlockDeviceMapping = ( @@ -6737,7 +6755,7 @@ const deserializeAws_restJson1InstanceBlockDeviceMappings = ( output: any, context: __SerdeContext ): InstanceBlockDeviceMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6745,6 +6763,7 @@ const deserializeAws_restJson1InstanceBlockDeviceMappings = ( } return deserializeAws_restJson1InstanceBlockDeviceMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1InstanceConfiguration = (output: any, context: __SerdeContext): InstanceConfiguration => { @@ -6768,7 +6787,7 @@ const deserializeAws_restJson1InstanceMetadataOptions = ( }; const deserializeAws_restJson1InstanceTypeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6776,6 +6795,7 @@ const deserializeAws_restJson1InstanceTypeList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LaunchPermissionConfiguration = ( @@ -6817,7 +6837,7 @@ const deserializeAws_restJson1LaunchTemplateConfigurationList = ( output: any, context: __SerdeContext ): LaunchTemplateConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6825,10 +6845,11 @@ const deserializeAws_restJson1LaunchTemplateConfigurationList = ( } return deserializeAws_restJson1LaunchTemplateConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1LicenseConfigurationArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6836,6 +6857,7 @@ const deserializeAws_restJson1LicenseConfigurationArnList = (output: any, contex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Logging = (output: any, context: __SerdeContext): Logging => { @@ -6848,7 +6870,7 @@ const deserializeAws_restJson1Logging = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1OrganizationalUnitArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6856,10 +6878,11 @@ const deserializeAws_restJson1OrganizationalUnitArnList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OrganizationArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6867,10 +6890,11 @@ const deserializeAws_restJson1OrganizationArnList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OsVersionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6878,6 +6902,7 @@ const deserializeAws_restJson1OsVersionList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OutputResources = (output: any, context: __SerdeContext): OutputResources => { @@ -6894,7 +6919,7 @@ const deserializeAws_restJson1OutputResources = (output: any, context: __SerdeCo }; const deserializeAws_restJson1RegionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6902,6 +6927,7 @@ const deserializeAws_restJson1RegionList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResourceTagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -6941,7 +6967,7 @@ const deserializeAws_restJson1Schedule = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6949,10 +6975,11 @@ const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6960,6 +6987,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SystemsManagerAgent = (output: any, context: __SerdeContext): SystemsManagerAgent => { diff --git a/clients/client-inspector/src/protocols/Aws_json1_1.ts b/clients/client-inspector/src/protocols/Aws_json1_1.ts index c73834d4c348..227caa916e55 100644 --- a/clients/client-inspector/src/protocols/Aws_json1_1.ts +++ b/clients/client-inspector/src/protocols/Aws_json1_1.ts @@ -3601,7 +3601,7 @@ const deserializeAws_json1_1AgentAlreadyRunningAssessmentList = ( output: any, context: __SerdeContext ): AgentAlreadyRunningAssessment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3609,6 +3609,7 @@ const deserializeAws_json1_1AgentAlreadyRunningAssessmentList = ( } return deserializeAws_json1_1AgentAlreadyRunningAssessment(entry, context); }); + return retVal; }; const deserializeAws_json1_1AgentPreview = (output: any, context: __SerdeContext): AgentPreview => { @@ -3625,7 +3626,7 @@ const deserializeAws_json1_1AgentPreview = (output: any, context: __SerdeContext }; const deserializeAws_json1_1AgentPreviewList = (output: any, context: __SerdeContext): AgentPreview[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3633,6 +3634,7 @@ const deserializeAws_json1_1AgentPreviewList = (output: any, context: __SerdeCon } return deserializeAws_json1_1AgentPreview(entry, context); }); + return retVal; }; const deserializeAws_json1_1AgentsAlreadyRunningAssessmentException = ( @@ -3651,7 +3653,7 @@ const deserializeAws_json1_1AgentsAlreadyRunningAssessmentException = ( }; const deserializeAws_json1_1AssessmentRulesPackageArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3659,6 +3661,7 @@ const deserializeAws_json1_1AssessmentRulesPackageArnList = (output: any, contex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AssessmentRun = (output: any, context: __SerdeContext): AssessmentRun => { @@ -3724,7 +3727,7 @@ const deserializeAws_json1_1AssessmentRunAgent = (output: any, context: __SerdeC }; const deserializeAws_json1_1AssessmentRunAgentList = (output: any, context: __SerdeContext): AssessmentRunAgent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3732,6 +3735,7 @@ const deserializeAws_json1_1AssessmentRunAgentList = (output: any, context: __Se } return deserializeAws_json1_1AssessmentRunAgent(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssessmentRunFindingCounts = ( @@ -3750,7 +3754,7 @@ const deserializeAws_json1_1AssessmentRunFindingCounts = ( }; const deserializeAws_json1_1AssessmentRunInProgressArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3758,6 +3762,7 @@ const deserializeAws_json1_1AssessmentRunInProgressArnList = (output: any, conte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AssessmentRunInProgressException = ( @@ -3776,7 +3781,7 @@ const deserializeAws_json1_1AssessmentRunInProgressException = ( }; const deserializeAws_json1_1AssessmentRunList = (output: any, context: __SerdeContext): AssessmentRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3784,6 +3789,7 @@ const deserializeAws_json1_1AssessmentRunList = (output: any, context: __SerdeCo } return deserializeAws_json1_1AssessmentRun(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssessmentRunNotification = ( @@ -3807,7 +3813,7 @@ const deserializeAws_json1_1AssessmentRunNotificationList = ( output: any, context: __SerdeContext ): AssessmentRunNotification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3815,6 +3821,7 @@ const deserializeAws_json1_1AssessmentRunNotificationList = ( } return deserializeAws_json1_1AssessmentRunNotification(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssessmentRunStateChange = ( @@ -3834,7 +3841,7 @@ const deserializeAws_json1_1AssessmentRunStateChangeList = ( output: any, context: __SerdeContext ): AssessmentRunStateChange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3842,6 +3849,7 @@ const deserializeAws_json1_1AssessmentRunStateChangeList = ( } return deserializeAws_json1_1AssessmentRunStateChange(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssessmentTarget = (output: any, context: __SerdeContext): AssessmentTarget => { @@ -3861,7 +3869,7 @@ const deserializeAws_json1_1AssessmentTarget = (output: any, context: __SerdeCon }; const deserializeAws_json1_1AssessmentTargetList = (output: any, context: __SerdeContext): AssessmentTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3869,6 +3877,7 @@ const deserializeAws_json1_1AssessmentTargetList = (output: any, context: __Serd } return deserializeAws_json1_1AssessmentTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssessmentTemplate = (output: any, context: __SerdeContext): AssessmentTemplate => { @@ -3895,7 +3904,7 @@ const deserializeAws_json1_1AssessmentTemplate = (output: any, context: __SerdeC }; const deserializeAws_json1_1AssessmentTemplateList = (output: any, context: __SerdeContext): AssessmentTemplate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3903,13 +3912,14 @@ const deserializeAws_json1_1AssessmentTemplateList = (output: any, context: __Se } return deserializeAws_json1_1AssessmentTemplate(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssessmentTemplateRulesPackageArnList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3917,6 +3927,7 @@ const deserializeAws_json1_1AssessmentTemplateRulesPackageArnList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AssetAttributes = (output: any, context: __SerdeContext): AssetAttributes => { @@ -3947,7 +3958,7 @@ const deserializeAws_json1_1Attribute = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1AttributeList = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3955,6 +3966,7 @@ const deserializeAws_json1_1AttributeList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Attribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateAssessmentTargetResponse = ( @@ -4130,7 +4142,7 @@ const deserializeAws_json1_1EventSubscription = (output: any, context: __SerdeCo }; const deserializeAws_json1_1EventSubscriptionList = (output: any, context: __SerdeContext): EventSubscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4138,6 +4150,7 @@ const deserializeAws_json1_1EventSubscriptionList = (output: any, context: __Ser } return deserializeAws_json1_1EventSubscription(entry, context); }); + return retVal; }; const deserializeAws_json1_1Exclusion = (output: any, context: __SerdeContext): Exclusion => { @@ -4186,7 +4199,7 @@ const deserializeAws_json1_1ExclusionPreview = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ExclusionPreviewList = (output: any, context: __SerdeContext): ExclusionPreview[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4194,6 +4207,7 @@ const deserializeAws_json1_1ExclusionPreviewList = (output: any, context: __Serd } return deserializeAws_json1_1ExclusionPreview(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedItemDetails = (output: any, context: __SerdeContext): FailedItemDetails => { @@ -4260,7 +4274,7 @@ const deserializeAws_json1_1Finding = (output: any, context: __SerdeContext): Fi }; const deserializeAws_json1_1FindingList = (output: any, context: __SerdeContext): Finding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4268,6 +4282,7 @@ const deserializeAws_json1_1FindingList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Finding(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetAssessmentReportResponse = ( @@ -4344,7 +4359,7 @@ const deserializeAws_json1_1InvalidInputException = (output: any, context: __Ser }; const deserializeAws_json1_1Ipv4AddressList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4352,10 +4367,11 @@ const deserializeAws_json1_1Ipv4AddressList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Ipv6Addresses = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4363,6 +4379,7 @@ const deserializeAws_json1_1Ipv6Addresses = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -4459,7 +4476,7 @@ const deserializeAws_json1_1ListFindingsResponse = (output: any, context: __Serd }; const deserializeAws_json1_1ListReturnedArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4467,6 +4484,7 @@ const deserializeAws_json1_1ListReturnedArnList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListRulesPackagesResponse = ( @@ -4519,7 +4537,7 @@ const deserializeAws_json1_1NetworkInterface = (output: any, context: __SerdeCon }; const deserializeAws_json1_1NetworkInterfaces = (output: any, context: __SerdeContext): NetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4527,6 +4545,7 @@ const deserializeAws_json1_1NetworkInterfaces = (output: any, context: __SerdeCo } return deserializeAws_json1_1NetworkInterface(entry, context); }); + return retVal; }; const deserializeAws_json1_1NoSuchEntityException = (output: any, context: __SerdeContext): NoSuchEntityException => { @@ -4564,7 +4583,7 @@ const deserializeAws_json1_1PrivateIp = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1PrivateIpAddresses = (output: any, context: __SerdeContext): PrivateIp[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4572,6 +4591,7 @@ const deserializeAws_json1_1PrivateIpAddresses = (output: any, context: __SerdeC } return deserializeAws_json1_1PrivateIp(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemoveAttributesFromFindingsResponse = ( @@ -4601,7 +4621,7 @@ const deserializeAws_json1_1ResourceGroup = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ResourceGroupList = (output: any, context: __SerdeContext): ResourceGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4609,6 +4629,7 @@ const deserializeAws_json1_1ResourceGroupList = (output: any, context: __SerdeCo } return deserializeAws_json1_1ResourceGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceGroupTag = (output: any, context: __SerdeContext): ResourceGroupTag => { @@ -4619,7 +4640,7 @@ const deserializeAws_json1_1ResourceGroupTag = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ResourceGroupTags = (output: any, context: __SerdeContext): ResourceGroupTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4627,6 +4648,7 @@ const deserializeAws_json1_1ResourceGroupTags = (output: any, context: __SerdeCo } return deserializeAws_json1_1ResourceGroupTag(entry, context); }); + return retVal; }; const deserializeAws_json1_1RulesPackage = (output: any, context: __SerdeContext): RulesPackage => { @@ -4640,7 +4662,7 @@ const deserializeAws_json1_1RulesPackage = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RulesPackageList = (output: any, context: __SerdeContext): RulesPackage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4648,6 +4670,7 @@ const deserializeAws_json1_1RulesPackageList = (output: any, context: __SerdeCon } return deserializeAws_json1_1RulesPackage(entry, context); }); + return retVal; }; const deserializeAws_json1_1Scope = (output: any, context: __SerdeContext): Scope => { @@ -4658,7 +4681,7 @@ const deserializeAws_json1_1Scope = (output: any, context: __SerdeContext): Scop }; const deserializeAws_json1_1ScopeList = (output: any, context: __SerdeContext): Scope[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4666,6 +4689,7 @@ const deserializeAws_json1_1ScopeList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Scope(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecurityGroup = (output: any, context: __SerdeContext): SecurityGroup => { @@ -4676,7 +4700,7 @@ const deserializeAws_json1_1SecurityGroup = (output: any, context: __SerdeContex }; const deserializeAws_json1_1SecurityGroups = (output: any, context: __SerdeContext): SecurityGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4684,6 +4708,7 @@ const deserializeAws_json1_1SecurityGroups = (output: any, context: __SerdeConte } return deserializeAws_json1_1SecurityGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceTemporarilyUnavailableException = ( @@ -4717,7 +4742,7 @@ const deserializeAws_json1_1Subscription = (output: any, context: __SerdeContext }; const deserializeAws_json1_1SubscriptionList = (output: any, context: __SerdeContext): Subscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4725,6 +4750,7 @@ const deserializeAws_json1_1SubscriptionList = (output: any, context: __SerdeCon } return deserializeAws_json1_1Subscription(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -4735,7 +4761,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4743,10 +4769,11 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4754,6 +4781,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TelemetryMetadata = (output: any, context: __SerdeContext): TelemetryMetadata => { @@ -4765,7 +4793,7 @@ const deserializeAws_json1_1TelemetryMetadata = (output: any, context: __SerdeCo }; const deserializeAws_json1_1TelemetryMetadataList = (output: any, context: __SerdeContext): TelemetryMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4773,6 +4801,7 @@ const deserializeAws_json1_1TelemetryMetadataList = (output: any, context: __Ser } return deserializeAws_json1_1TelemetryMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnsupportedFeatureException = ( @@ -4786,7 +4815,7 @@ const deserializeAws_json1_1UnsupportedFeatureException = ( }; const deserializeAws_json1_1UserAttributeList = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4794,6 +4823,7 @@ const deserializeAws_json1_1UserAttributeList = (output: any, context: __SerdeCo } return deserializeAws_json1_1Attribute(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-inspector2/src/protocols/Aws_restJson1.ts b/clients/client-inspector2/src/protocols/Aws_restJson1.ts index 5771a77d5164..48a0ce777d16 100644 --- a/clients/client-inspector2/src/protocols/Aws_restJson1.ts +++ b/clients/client-inspector2/src/protocols/Aws_restJson1.ts @@ -3473,7 +3473,7 @@ const deserializeAws_restJson1AccountAggregationResponse = ( }; const deserializeAws_restJson1AccountList = (output: any, context: __SerdeContext): Account[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3481,6 +3481,7 @@ const deserializeAws_restJson1AccountList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Account(entry, context); }); + return retVal; }; const deserializeAws_restJson1AccountState = (output: any, context: __SerdeContext): AccountState => { @@ -3498,7 +3499,7 @@ const deserializeAws_restJson1AccountState = (output: any, context: __SerdeConte }; const deserializeAws_restJson1AccountStateList = (output: any, context: __SerdeContext): AccountState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3506,6 +3507,7 @@ const deserializeAws_restJson1AccountStateList = (output: any, context: __SerdeC } return deserializeAws_restJson1AccountState(entry, context); }); + return retVal; }; const deserializeAws_restJson1AggregationResponse = (output: any, context: __SerdeContext): AggregationResponse => { @@ -3576,7 +3578,7 @@ const deserializeAws_restJson1AggregationResponseList = ( output: any, context: __SerdeContext ): AggregationResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3584,6 +3586,7 @@ const deserializeAws_restJson1AggregationResponseList = ( } return deserializeAws_restJson1AggregationResponse(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1AmiAggregationResponse = ( @@ -3683,7 +3686,7 @@ const deserializeAws_restJson1Counts = (output: any, context: __SerdeContext): C }; const deserializeAws_restJson1CountsList = (output: any, context: __SerdeContext): Counts[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3691,6 +3694,7 @@ const deserializeAws_restJson1CountsList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Counts(entry, context); }); + return retVal; }; const deserializeAws_restJson1CoveredResource = (output: any, context: __SerdeContext): CoveredResource => { @@ -3711,7 +3715,7 @@ const deserializeAws_restJson1CoveredResource = (output: any, context: __SerdeCo }; const deserializeAws_restJson1CoveredResources = (output: any, context: __SerdeContext): CoveredResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3719,6 +3723,7 @@ const deserializeAws_restJson1CoveredResources = (output: any, context: __SerdeC } return deserializeAws_restJson1CoveredResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1CvssScore = (output: any, context: __SerdeContext): CvssScore => { @@ -3741,7 +3746,7 @@ const deserializeAws_restJson1CvssScoreAdjustmentList = ( output: any, context: __SerdeContext ): CvssScoreAdjustment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3749,6 +3754,7 @@ const deserializeAws_restJson1CvssScoreAdjustmentList = ( } return deserializeAws_restJson1CvssScoreAdjustment(entry, context); }); + return retVal; }; const deserializeAws_restJson1CvssScoreDetails = (output: any, context: __SerdeContext): CvssScoreDetails => { @@ -3766,7 +3772,7 @@ const deserializeAws_restJson1CvssScoreDetails = (output: any, context: __SerdeC }; const deserializeAws_restJson1CvssScoreList = (output: any, context: __SerdeContext): CvssScore[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3774,6 +3780,7 @@ const deserializeAws_restJson1CvssScoreList = (output: any, context: __SerdeCont } return deserializeAws_restJson1CvssScore(entry, context); }); + return retVal; }; const deserializeAws_restJson1DateFilter = (output: any, context: __SerdeContext): DateFilter => { @@ -3790,7 +3797,7 @@ const deserializeAws_restJson1DateFilter = (output: any, context: __SerdeContext }; const deserializeAws_restJson1DateFilterList = (output: any, context: __SerdeContext): DateFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3798,6 +3805,7 @@ const deserializeAws_restJson1DateFilterList = (output: any, context: __SerdeCon } return deserializeAws_restJson1DateFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1DelegatedAdmin = (output: any, context: __SerdeContext): DelegatedAdmin => { @@ -3818,7 +3826,7 @@ const deserializeAws_restJson1DelegatedAdminAccountList = ( output: any, context: __SerdeContext ): DelegatedAdminAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3826,6 +3834,7 @@ const deserializeAws_restJson1DelegatedAdminAccountList = ( } return deserializeAws_restJson1DelegatedAdminAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1Destination = (output: any, context: __SerdeContext): Destination => { @@ -3901,7 +3910,7 @@ const deserializeAws_restJson1FailedAccount = (output: any, context: __SerdeCont }; const deserializeAws_restJson1FailedAccountList = (output: any, context: __SerdeContext): FailedAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3909,6 +3918,7 @@ const deserializeAws_restJson1FailedAccountList = (output: any, context: __Serde } return deserializeAws_restJson1FailedAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1Filter = (output: any, context: __SerdeContext): Filter => { @@ -4068,7 +4078,7 @@ const deserializeAws_restJson1FilterCriteria = (output: any, context: __SerdeCon }; const deserializeAws_restJson1FilterList = (output: any, context: __SerdeContext): Filter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4076,6 +4086,7 @@ const deserializeAws_restJson1FilterList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Filter(entry, context); }); + return retVal; }; const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): Finding => { @@ -4124,7 +4135,7 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1FindingList = (output: any, context: __SerdeContext): Finding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4132,6 +4143,7 @@ const deserializeAws_restJson1FindingList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Finding(entry, context); }); + return retVal; }; const deserializeAws_restJson1FindingTypeAggregationResponse = ( @@ -4161,7 +4173,7 @@ const deserializeAws_restJson1FreeTrialAccountInfoList = ( output: any, context: __SerdeContext ): FreeTrialAccountInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4169,6 +4181,7 @@ const deserializeAws_restJson1FreeTrialAccountInfoList = ( } return deserializeAws_restJson1FreeTrialAccountInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1FreeTrialInfo = (output: any, context: __SerdeContext): FreeTrialInfo => { @@ -4195,7 +4208,7 @@ const deserializeAws_restJson1FreeTrialInfoError = (output: any, context: __Serd }; const deserializeAws_restJson1FreeTrialInfoErrorList = (output: any, context: __SerdeContext): FreeTrialInfoError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4203,10 +4216,11 @@ const deserializeAws_restJson1FreeTrialInfoErrorList = (output: any, context: __ } return deserializeAws_restJson1FreeTrialInfoError(entry, context); }); + return retVal; }; const deserializeAws_restJson1FreeTrialInfoList = (output: any, context: __SerdeContext): FreeTrialInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4214,6 +4228,7 @@ const deserializeAws_restJson1FreeTrialInfoList = (output: any, context: __Serde } return deserializeAws_restJson1FreeTrialInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1ImageLayerAggregationResponse = ( @@ -4233,7 +4248,7 @@ const deserializeAws_restJson1ImageLayerAggregationResponse = ( }; const deserializeAws_restJson1ImageTagList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4241,6 +4256,7 @@ const deserializeAws_restJson1ImageTagList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1InspectorScoreDetails = (output: any, context: __SerdeContext): InspectorScoreDetails => { @@ -4253,7 +4269,7 @@ const deserializeAws_restJson1InspectorScoreDetails = (output: any, context: __S }; const deserializeAws_restJson1IpV4AddressList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4261,10 +4277,11 @@ const deserializeAws_restJson1IpV4AddressList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IpV6AddressList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4272,6 +4289,7 @@ const deserializeAws_restJson1IpV6AddressList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MapFilter = (output: any, context: __SerdeContext): MapFilter => { @@ -4283,7 +4301,7 @@ const deserializeAws_restJson1MapFilter = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1MapFilterList = (output: any, context: __SerdeContext): MapFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4291,6 +4309,7 @@ const deserializeAws_restJson1MapFilterList = (output: any, context: __SerdeCont } return deserializeAws_restJson1MapFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1Member = (output: any, context: __SerdeContext): Member => { @@ -4306,7 +4325,7 @@ const deserializeAws_restJson1Member = (output: any, context: __SerdeContext): M }; const deserializeAws_restJson1MemberList = (output: any, context: __SerdeContext): Member[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4314,6 +4333,7 @@ const deserializeAws_restJson1MemberList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Member(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkPath = (output: any, context: __SerdeContext): NetworkPath => { @@ -4343,7 +4363,7 @@ const deserializeAws_restJson1NetworkReachabilityDetails = ( }; const deserializeAws_restJson1NonEmptyStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4351,6 +4371,7 @@ const deserializeAws_restJson1NonEmptyStringList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1NumberFilter = (output: any, context: __SerdeContext): NumberFilter => { @@ -4361,7 +4382,7 @@ const deserializeAws_restJson1NumberFilter = (output: any, context: __SerdeConte }; const deserializeAws_restJson1NumberFilterList = (output: any, context: __SerdeContext): NumberFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4369,6 +4390,7 @@ const deserializeAws_restJson1NumberFilterList = (output: any, context: __SerdeC } return deserializeAws_restJson1NumberFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageAggregationResponse = ( @@ -4415,7 +4437,7 @@ const deserializeAws_restJson1PackageFilter = (output: any, context: __SerdeCont }; const deserializeAws_restJson1PackageFilterList = (output: any, context: __SerdeContext): PackageFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4423,6 +4445,7 @@ const deserializeAws_restJson1PackageFilterList = (output: any, context: __Serde } return deserializeAws_restJson1PackageFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageVulnerabilityDetails = ( @@ -4469,7 +4492,7 @@ const deserializeAws_restJson1Permission = (output: any, context: __SerdeContext }; const deserializeAws_restJson1Permissions = (output: any, context: __SerdeContext): Permission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4477,6 +4500,7 @@ const deserializeAws_restJson1Permissions = (output: any, context: __SerdeContex } return deserializeAws_restJson1Permission(entry, context); }); + return retVal; }; const deserializeAws_restJson1PortRange = (output: any, context: __SerdeContext): PortRange => { @@ -4494,7 +4518,7 @@ const deserializeAws_restJson1PortRangeFilter = (output: any, context: __SerdeCo }; const deserializeAws_restJson1PortRangeFilterList = (output: any, context: __SerdeContext): PortRangeFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4502,6 +4526,7 @@ const deserializeAws_restJson1PortRangeFilterList = (output: any, context: __Ser } return deserializeAws_restJson1PortRangeFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1Recommendation = (output: any, context: __SerdeContext): Recommendation => { @@ -4566,7 +4591,7 @@ const deserializeAws_restJson1ResourceDetails = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ResourceList = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4574,6 +4599,7 @@ const deserializeAws_restJson1ResourceList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Resource(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceScanMetadata = (output: any, context: __SerdeContext): ResourceScanMetadata => { @@ -4641,7 +4667,7 @@ const deserializeAws_restJson1Step = (output: any, context: __SerdeContext): Ste }; const deserializeAws_restJson1StepList = (output: any, context: __SerdeContext): Step[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4649,6 +4675,7 @@ const deserializeAws_restJson1StepList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Step(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringFilter = (output: any, context: __SerdeContext): StringFilter => { @@ -4659,7 +4686,7 @@ const deserializeAws_restJson1StringFilter = (output: any, context: __SerdeConte }; const deserializeAws_restJson1StringFilterList = (output: any, context: __SerdeContext): StringFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4667,10 +4694,11 @@ const deserializeAws_restJson1StringFilterList = (output: any, context: __SerdeC } return deserializeAws_restJson1StringFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4678,10 +4706,11 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4689,6 +4718,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4728,7 +4758,7 @@ const deserializeAws_restJson1Usage = (output: any, context: __SerdeContext): Us }; const deserializeAws_restJson1UsageList = (output: any, context: __SerdeContext): Usage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4736,6 +4766,7 @@ const deserializeAws_restJson1UsageList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Usage(entry, context); }); + return retVal; }; const deserializeAws_restJson1UsageTotal = (output: any, context: __SerdeContext): UsageTotal => { @@ -4749,7 +4780,7 @@ const deserializeAws_restJson1UsageTotal = (output: any, context: __SerdeContext }; const deserializeAws_restJson1UsageTotalList = (output: any, context: __SerdeContext): UsageTotal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4757,6 +4788,7 @@ const deserializeAws_restJson1UsageTotalList = (output: any, context: __SerdeCon } return deserializeAws_restJson1UsageTotal(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValidationExceptionField = ( @@ -4773,7 +4805,7 @@ const deserializeAws_restJson1ValidationExceptionFields = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4781,10 +4813,11 @@ const deserializeAws_restJson1ValidationExceptionFields = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1VulnerabilityIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4792,6 +4825,7 @@ const deserializeAws_restJson1VulnerabilityIdList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1VulnerablePackage = (output: any, context: __SerdeContext): VulnerablePackage => { @@ -4809,7 +4843,7 @@ const deserializeAws_restJson1VulnerablePackage = (output: any, context: __Serde }; const deserializeAws_restJson1VulnerablePackageList = (output: any, context: __SerdeContext): VulnerablePackage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4817,6 +4851,7 @@ const deserializeAws_restJson1VulnerablePackageList = (output: any, context: __S } return deserializeAws_restJson1VulnerablePackage(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts b/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts index d0a334b24a7a..d98b6b4ea1cd 100644 --- a/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts @@ -1288,7 +1288,7 @@ const deserializeAws_restJson1__listOfDeviceDescription = ( output: any, context: __SerdeContext ): DeviceDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1296,10 +1296,11 @@ const deserializeAws_restJson1__listOfDeviceDescription = ( } return deserializeAws_restJson1DeviceDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDeviceEvent = (output: any, context: __SerdeContext): DeviceEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1307,10 +1308,11 @@ const deserializeAws_restJson1__listOfDeviceEvent = (output: any, context: __Ser } return deserializeAws_restJson1DeviceEvent(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDeviceMethod = (output: any, context: __SerdeContext): DeviceMethod[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1318,6 +1320,7 @@ const deserializeAws_restJson1__listOfDeviceMethod = (output: any, context: __Se } return deserializeAws_restJson1DeviceMethod(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts b/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts index 8893e1224f14..d725ba9d66f4 100644 --- a/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts @@ -1727,7 +1727,7 @@ const deserializeAws_restJson1PlacementSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1PlacementSummaryList = (output: any, context: __SerdeContext): PlacementSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1735,6 +1735,7 @@ const deserializeAws_restJson1PlacementSummaryList = (output: any, context: __Se } return deserializeAws_restJson1PlacementSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1PlacementTemplate = (output: any, context: __SerdeContext): PlacementTemplate => { @@ -1794,7 +1795,7 @@ const deserializeAws_restJson1ProjectSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ProjectSummaryList = (output: any, context: __SerdeContext): ProjectSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1802,6 +1803,7 @@ const deserializeAws_restJson1ProjectSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1ProjectSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-iot-data-plane/src/protocols/Aws_restJson1.ts b/clients/client-iot-data-plane/src/protocols/Aws_restJson1.ts index 291bdc26d6fe..425e192768de 100644 --- a/clients/client-iot-data-plane/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-data-plane/src/protocols/Aws_restJson1.ts @@ -880,7 +880,7 @@ const deserializeAws_restJson1UnsupportedDocumentEncodingExceptionResponse = asy }; const deserializeAws_restJson1NamedShadowList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -888,13 +888,14 @@ const deserializeAws_restJson1NamedShadowList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RetainedMessageList = ( output: any, context: __SerdeContext ): RetainedMessageSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -902,6 +903,7 @@ const deserializeAws_restJson1RetainedMessageList = ( } return deserializeAws_restJson1RetainedMessageSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RetainedMessageSummary = ( diff --git a/clients/client-iot-events-data/src/protocols/Aws_restJson1.ts b/clients/client-iot-events-data/src/protocols/Aws_restJson1.ts index 535d762a7a41..276b7b04ffb7 100644 --- a/clients/client-iot-events-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-events-data/src/protocols/Aws_restJson1.ts @@ -1371,7 +1371,7 @@ const deserializeAws_restJson1AlarmState = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AlarmSummaries = (output: any, context: __SerdeContext): AlarmSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1379,6 +1379,7 @@ const deserializeAws_restJson1AlarmSummaries = (output: any, context: __SerdeCon } return deserializeAws_restJson1AlarmSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AlarmSummary = (output: any, context: __SerdeContext): AlarmSummary => { @@ -1402,7 +1403,7 @@ const deserializeAws_restJson1BatchAlarmActionErrorEntries = ( output: any, context: __SerdeContext ): BatchAlarmActionErrorEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1410,6 +1411,7 @@ const deserializeAws_restJson1BatchAlarmActionErrorEntries = ( } return deserializeAws_restJson1BatchAlarmActionErrorEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchAlarmActionErrorEntry = ( @@ -1427,7 +1429,7 @@ const deserializeAws_restJson1BatchPutMessageErrorEntries = ( output: any, context: __SerdeContext ): BatchPutMessageErrorEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1435,6 +1437,7 @@ const deserializeAws_restJson1BatchPutMessageErrorEntries = ( } return deserializeAws_restJson1BatchPutMessageErrorEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchPutMessageErrorEntry = ( @@ -1452,7 +1455,7 @@ const deserializeAws_restJson1BatchUpdateDetectorErrorEntries = ( output: any, context: __SerdeContext ): BatchUpdateDetectorErrorEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1460,6 +1463,7 @@ const deserializeAws_restJson1BatchUpdateDetectorErrorEntries = ( } return deserializeAws_restJson1BatchUpdateDetectorErrorEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchUpdateDetectorErrorEntry = ( @@ -1540,7 +1544,7 @@ const deserializeAws_restJson1DetectorStateSummary = (output: any, context: __Se }; const deserializeAws_restJson1DetectorSummaries = (output: any, context: __SerdeContext): DetectorSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1548,6 +1552,7 @@ const deserializeAws_restJson1DetectorSummaries = (output: any, context: __Serde } return deserializeAws_restJson1DetectorSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectorSummary = (output: any, context: __SerdeContext): DetectorSummary => { @@ -1654,7 +1659,7 @@ const deserializeAws_restJson1Timer = (output: any, context: __SerdeContext): Ti }; const deserializeAws_restJson1Timers = (output: any, context: __SerdeContext): Timer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1662,6 +1667,7 @@ const deserializeAws_restJson1Timers = (output: any, context: __SerdeContext): T } return deserializeAws_restJson1Timer(entry, context); }); + return retVal; }; const deserializeAws_restJson1Variable = (output: any, context: __SerdeContext): Variable => { @@ -1672,7 +1678,7 @@ const deserializeAws_restJson1Variable = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Variables = (output: any, context: __SerdeContext): Variable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1680,6 +1686,7 @@ const deserializeAws_restJson1Variables = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Variable(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-iot-events/src/protocols/Aws_restJson1.ts b/clients/client-iot-events/src/protocols/Aws_restJson1.ts index f809ba90928d..ceb859cf78bc 100644 --- a/clients/client-iot-events/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-events/src/protocols/Aws_restJson1.ts @@ -3412,7 +3412,7 @@ const deserializeAws_restJson1Action = (output: any, context: __SerdeContext): A }; const deserializeAws_restJson1Actions = (output: any, context: __SerdeContext): Action[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3420,6 +3420,7 @@ const deserializeAws_restJson1Actions = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Action(entry, context); }); + return retVal; }; const deserializeAws_restJson1AlarmAction = (output: any, context: __SerdeContext): AlarmAction => { @@ -3464,7 +3465,7 @@ const deserializeAws_restJson1AlarmAction = (output: any, context: __SerdeContex }; const deserializeAws_restJson1AlarmActions = (output: any, context: __SerdeContext): AlarmAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3472,6 +3473,7 @@ const deserializeAws_restJson1AlarmActions = (output: any, context: __SerdeConte } return deserializeAws_restJson1AlarmAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1AlarmCapabilities = (output: any, context: __SerdeContext): AlarmCapabilities => { @@ -3497,7 +3499,7 @@ const deserializeAws_restJson1AlarmEventActions = (output: any, context: __Serde }; const deserializeAws_restJson1AlarmModelSummaries = (output: any, context: __SerdeContext): AlarmModelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3505,6 +3507,7 @@ const deserializeAws_restJson1AlarmModelSummaries = (output: any, context: __Ser } return deserializeAws_restJson1AlarmModelSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AlarmModelSummary = (output: any, context: __SerdeContext): AlarmModelSummary => { @@ -3522,7 +3525,7 @@ const deserializeAws_restJson1AlarmModelVersionSummaries = ( output: any, context: __SerdeContext ): AlarmModelVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3530,6 +3533,7 @@ const deserializeAws_restJson1AlarmModelVersionSummaries = ( } return deserializeAws_restJson1AlarmModelVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AlarmModelVersionSummary = ( @@ -3597,7 +3601,7 @@ const deserializeAws_restJson1AnalysisResultLocations = ( output: any, context: __SerdeContext ): AnalysisResultLocation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3605,10 +3609,11 @@ const deserializeAws_restJson1AnalysisResultLocations = ( } return deserializeAws_restJson1AnalysisResultLocation(entry, context); }); + return retVal; }; const deserializeAws_restJson1AnalysisResults = (output: any, context: __SerdeContext): AnalysisResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3616,6 +3621,7 @@ const deserializeAws_restJson1AnalysisResults = (output: any, context: __SerdeCo } return deserializeAws_restJson1AnalysisResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetPropertyTimestamp = ( @@ -3658,7 +3664,7 @@ const deserializeAws_restJson1Attribute = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): Attribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3666,6 +3672,7 @@ const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext } return deserializeAws_restJson1Attribute(entry, context); }); + return retVal; }; const deserializeAws_restJson1ClearTimerAction = (output: any, context: __SerdeContext): ClearTimerAction => { @@ -3682,7 +3689,7 @@ const deserializeAws_restJson1DetectorDebugOption = (output: any, context: __Ser }; const deserializeAws_restJson1DetectorDebugOptions = (output: any, context: __SerdeContext): DetectorDebugOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3690,6 +3697,7 @@ const deserializeAws_restJson1DetectorDebugOptions = (output: any, context: __Se } return deserializeAws_restJson1DetectorDebugOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectorModel = (output: any, context: __SerdeContext): DetectorModel => { @@ -3746,7 +3754,7 @@ const deserializeAws_restJson1DetectorModelSummaries = ( output: any, context: __SerdeContext ): DetectorModelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3754,6 +3762,7 @@ const deserializeAws_restJson1DetectorModelSummaries = ( } return deserializeAws_restJson1DetectorModelSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectorModelSummary = (output: any, context: __SerdeContext): DetectorModelSummary => { @@ -3771,7 +3780,7 @@ const deserializeAws_restJson1DetectorModelVersionSummaries = ( output: any, context: __SerdeContext ): DetectorModelVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3779,6 +3788,7 @@ const deserializeAws_restJson1DetectorModelVersionSummaries = ( } return deserializeAws_restJson1DetectorModelVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectorModelVersionSummary = ( @@ -3846,7 +3856,7 @@ const deserializeAws_restJson1EmailConfiguration = (output: any, context: __Serd }; const deserializeAws_restJson1EmailConfigurations = (output: any, context: __SerdeContext): EmailConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3854,6 +3864,7 @@ const deserializeAws_restJson1EmailConfigurations = (output: any, context: __Ser } return deserializeAws_restJson1EmailConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1EmailContent = (output: any, context: __SerdeContext): EmailContent => { @@ -3884,7 +3895,7 @@ const deserializeAws_restJson1Event = (output: any, context: __SerdeContext): Ev }; const deserializeAws_restJson1Events = (output: any, context: __SerdeContext): Event[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3892,6 +3903,7 @@ const deserializeAws_restJson1Events = (output: any, context: __SerdeContext): E } return deserializeAws_restJson1Event(entry, context); }); + return retVal; }; const deserializeAws_restJson1FirehoseAction = (output: any, context: __SerdeContext): FirehoseAction => { @@ -3954,7 +3966,7 @@ const deserializeAws_restJson1InputDefinition = (output: any, context: __SerdeCo }; const deserializeAws_restJson1InputSummaries = (output: any, context: __SerdeContext): InputSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3962,6 +3974,7 @@ const deserializeAws_restJson1InputSummaries = (output: any, context: __SerdeCon } return deserializeAws_restJson1InputSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1InputSummary = (output: any, context: __SerdeContext): InputSummary => { @@ -4054,7 +4067,7 @@ const deserializeAws_restJson1NotificationAction = (output: any, context: __Serd }; const deserializeAws_restJson1NotificationActions = (output: any, context: __SerdeContext): NotificationAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4062,6 +4075,7 @@ const deserializeAws_restJson1NotificationActions = (output: any, context: __Ser } return deserializeAws_restJson1NotificationAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1NotificationTargetActions = ( @@ -4124,7 +4138,7 @@ const deserializeAws_restJson1RecipientDetail = (output: any, context: __SerdeCo }; const deserializeAws_restJson1RecipientDetails = (output: any, context: __SerdeContext): RecipientDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4132,6 +4146,7 @@ const deserializeAws_restJson1RecipientDetails = (output: any, context: __SerdeC } return deserializeAws_restJson1RecipientDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResetTimerAction = (output: any, context: __SerdeContext): ResetTimerAction => { @@ -4148,7 +4163,7 @@ const deserializeAws_restJson1RoutedResource = (output: any, context: __SerdeCon }; const deserializeAws_restJson1RoutedResources = (output: any, context: __SerdeContext): RoutedResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4156,6 +4171,7 @@ const deserializeAws_restJson1RoutedResources = (output: any, context: __SerdeCo } return deserializeAws_restJson1RoutedResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1SetTimerAction = (output: any, context: __SerdeContext): SetTimerAction => { @@ -4193,7 +4209,7 @@ const deserializeAws_restJson1SMSConfiguration = (output: any, context: __SerdeC }; const deserializeAws_restJson1SMSConfigurations = (output: any, context: __SerdeContext): SMSConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4201,6 +4217,7 @@ const deserializeAws_restJson1SMSConfigurations = (output: any, context: __Serde } return deserializeAws_restJson1SMSConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1SNSTopicPublishAction = (output: any, context: __SerdeContext): SNSTopicPublishAction => { @@ -4250,7 +4267,7 @@ const deserializeAws_restJson1State = (output: any, context: __SerdeContext): St }; const deserializeAws_restJson1States = (output: any, context: __SerdeContext): State[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4258,6 +4275,7 @@ const deserializeAws_restJson1States = (output: any, context: __SerdeContext): S } return deserializeAws_restJson1State(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -4268,7 +4286,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4276,6 +4294,7 @@ const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Tag } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TransitionEvent = (output: any, context: __SerdeContext): TransitionEvent => { @@ -4291,7 +4310,7 @@ const deserializeAws_restJson1TransitionEvent = (output: any, context: __SerdeCo }; const deserializeAws_restJson1TransitionEvents = (output: any, context: __SerdeContext): TransitionEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4299,6 +4318,7 @@ const deserializeAws_restJson1TransitionEvents = (output: any, context: __SerdeC } return deserializeAws_restJson1TransitionEvent(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts b/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts index da37719b40da..223a379310c4 100644 --- a/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts @@ -629,7 +629,7 @@ const deserializeAws_restJson1JobExecutionSummaryList = ( output: any, context: __SerdeContext ): JobExecutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -637,6 +637,7 @@ const deserializeAws_restJson1JobExecutionSummaryList = ( } return deserializeAws_restJson1JobExecutionSummary(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts index fc9682c9f74b..a9ce7a897550 100644 --- a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts @@ -8891,7 +8891,7 @@ const deserializeAws_restJson1CertificateList = (output: any, context: __SerdeCo }; const deserializeAws_restJson1DestinationList = (output: any, context: __SerdeContext): Destinations[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8899,6 +8899,7 @@ const deserializeAws_restJson1DestinationList = (output: any, context: __SerdeCo } return deserializeAws_restJson1Destinations(entry, context); }); + return retVal; }; const deserializeAws_restJson1Destinations = (output: any, context: __SerdeContext): Destinations => { @@ -8913,7 +8914,7 @@ const deserializeAws_restJson1Destinations = (output: any, context: __SerdeConte }; const deserializeAws_restJson1DeviceCertificateList = (output: any, context: __SerdeContext): CertificateList[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8921,6 +8922,7 @@ const deserializeAws_restJson1DeviceCertificateList = (output: any, context: __S } return deserializeAws_restJson1CertificateList(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeviceProfile = (output: any, context: __SerdeContext): DeviceProfile => { @@ -8932,7 +8934,7 @@ const deserializeAws_restJson1DeviceProfile = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DeviceProfileList = (output: any, context: __SerdeContext): DeviceProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8940,6 +8942,7 @@ const deserializeAws_restJson1DeviceProfileList = (output: any, context: __Serde } return deserializeAws_restJson1DeviceProfile(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = ( @@ -8970,7 +8973,7 @@ const deserializeAws_restJson1DownlinkQueueMessagesList = ( output: any, context: __SerdeContext ): DownlinkQueueMessage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8978,10 +8981,11 @@ const deserializeAws_restJson1DownlinkQueueMessagesList = ( } return deserializeAws_restJson1DownlinkQueueMessage(entry, context); }); + return retVal; }; const deserializeAws_restJson1FactoryPresetFreqsList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8989,6 +8993,7 @@ const deserializeAws_restJson1FactoryPresetFreqsList = (output: any, context: __ } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FPorts = (output: any, context: __SerdeContext): FPorts => { @@ -9008,7 +9013,7 @@ const deserializeAws_restJson1FuotaTask = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1FuotaTaskList = (output: any, context: __SerdeContext): FuotaTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9016,10 +9021,11 @@ const deserializeAws_restJson1FuotaTaskList = (output: any, context: __SerdeCont } return deserializeAws_restJson1FuotaTask(entry, context); }); + return retVal; }; const deserializeAws_restJson1JoinEuiFilters = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9027,10 +9033,11 @@ const deserializeAws_restJson1JoinEuiFilters = (output: any, context: __SerdeCon } return deserializeAws_restJson1JoinEuiRange(entry, context); }); + return retVal; }; const deserializeAws_restJson1JoinEuiRange = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9038,6 +9045,7 @@ const deserializeAws_restJson1JoinEuiRange = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LoRaWANDevice = (output: any, context: __SerdeContext): LoRaWANDevice => { @@ -9168,7 +9176,7 @@ const deserializeAws_restJson1LoRaWANGatewayMetadataList = ( output: any, context: __SerdeContext ): LoRaWANGatewayMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9176,6 +9184,7 @@ const deserializeAws_restJson1LoRaWANGatewayMetadataList = ( } return deserializeAws_restJson1LoRaWANGatewayMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1LoRaWANGatewayVersion = (output: any, context: __SerdeContext): LoRaWANGatewayVersion => { @@ -9304,7 +9313,7 @@ const deserializeAws_restJson1MulticastGroupByFuotaTask = ( }; const deserializeAws_restJson1MulticastGroupList = (output: any, context: __SerdeContext): MulticastGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9312,13 +9321,14 @@ const deserializeAws_restJson1MulticastGroupList = (output: any, context: __Serd } return deserializeAws_restJson1MulticastGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1MulticastGroupListByFuotaTask = ( output: any, context: __SerdeContext ): MulticastGroupByFuotaTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9326,10 +9336,11 @@ const deserializeAws_restJson1MulticastGroupListByFuotaTask = ( } return deserializeAws_restJson1MulticastGroupByFuotaTask(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetIdFilters = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9337,6 +9348,7 @@ const deserializeAws_restJson1NetIdFilters = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OtaaV1_0_x = (output: any, context: __SerdeContext): OtaaV1_0_x => { @@ -9376,7 +9388,7 @@ const deserializeAws_restJson1ServiceProfile = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ServiceProfileList = (output: any, context: __SerdeContext): ServiceProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9384,6 +9396,7 @@ const deserializeAws_restJson1ServiceProfileList = (output: any, context: __Serd } return deserializeAws_restJson1ServiceProfile(entry, context); }); + return retVal; }; const deserializeAws_restJson1SessionKeysAbpV1_0_x = (output: any, context: __SerdeContext): SessionKeysAbpV1_0_x => { @@ -9424,7 +9437,7 @@ const deserializeAws_restJson1SidewalkAccountList = ( output: any, context: __SerdeContext ): SidewalkAccountInfoWithFingerprint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9432,6 +9445,7 @@ const deserializeAws_restJson1SidewalkAccountList = ( } return deserializeAws_restJson1SidewalkAccountInfoWithFingerprint(entry, context); }); + return retVal; }; const deserializeAws_restJson1SidewalkDevice = (output: any, context: __SerdeContext): SidewalkDevice => { @@ -9480,7 +9494,7 @@ const deserializeAws_restJson1SidewalkListDevice = (output: any, context: __Serd }; const deserializeAws_restJson1SubBands = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9488,6 +9502,7 @@ const deserializeAws_restJson1SubBands = (output: any, context: __SerdeContext): } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -9498,7 +9513,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9506,6 +9521,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TraceContent = (output: any, context: __SerdeContext): TraceContent => { @@ -9557,7 +9573,7 @@ const deserializeAws_restJson1WirelessDeviceEventLogOptionList = ( output: any, context: __SerdeContext ): WirelessDeviceEventLogOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9565,10 +9581,11 @@ const deserializeAws_restJson1WirelessDeviceEventLogOptionList = ( } return deserializeAws_restJson1WirelessDeviceEventLogOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1WirelessDeviceList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9576,6 +9593,7 @@ const deserializeAws_restJson1WirelessDeviceList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1WirelessDeviceLogOption = ( @@ -9596,7 +9614,7 @@ const deserializeAws_restJson1WirelessDeviceLogOptionList = ( output: any, context: __SerdeContext ): WirelessDeviceLogOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9604,6 +9622,7 @@ const deserializeAws_restJson1WirelessDeviceLogOptionList = ( } return deserializeAws_restJson1WirelessDeviceLogOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1WirelessDeviceStatistics = ( @@ -9635,7 +9654,7 @@ const deserializeAws_restJson1WirelessDeviceStatisticsList = ( output: any, context: __SerdeContext ): WirelessDeviceStatistics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9643,6 +9662,7 @@ const deserializeAws_restJson1WirelessDeviceStatisticsList = ( } return deserializeAws_restJson1WirelessDeviceStatistics(entry, context); }); + return retVal; }; const deserializeAws_restJson1WirelessGatewayEventLogOption = ( @@ -9659,7 +9679,7 @@ const deserializeAws_restJson1WirelessGatewayEventLogOptionList = ( output: any, context: __SerdeContext ): WirelessGatewayEventLogOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9667,10 +9687,11 @@ const deserializeAws_restJson1WirelessGatewayEventLogOptionList = ( } return deserializeAws_restJson1WirelessGatewayEventLogOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1WirelessGatewayList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9678,6 +9699,7 @@ const deserializeAws_restJson1WirelessGatewayList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1WirelessGatewayLogOption = ( @@ -9698,7 +9720,7 @@ const deserializeAws_restJson1WirelessGatewayLogOptionList = ( output: any, context: __SerdeContext ): WirelessGatewayLogOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9706,6 +9728,7 @@ const deserializeAws_restJson1WirelessGatewayLogOptionList = ( } return deserializeAws_restJson1WirelessGatewayLogOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1WirelessGatewayStatistics = ( @@ -9729,7 +9752,7 @@ const deserializeAws_restJson1WirelessGatewayStatisticsList = ( output: any, context: __SerdeContext ): WirelessGatewayStatistics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9737,13 +9760,14 @@ const deserializeAws_restJson1WirelessGatewayStatisticsList = ( } return deserializeAws_restJson1WirelessGatewayStatistics(entry, context); }); + return retVal; }; const deserializeAws_restJson1WirelessGatewayTaskDefinitionList = ( output: any, context: __SerdeContext ): UpdateWirelessGatewayTaskEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9751,6 +9775,7 @@ const deserializeAws_restJson1WirelessGatewayTaskDefinitionList = ( } return deserializeAws_restJson1UpdateWirelessGatewayTaskEntry(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-iot/src/protocols/Aws_restJson1.ts b/clients/client-iot/src/protocols/Aws_restJson1.ts index 1b9857dfcfff..78ef164694f6 100644 --- a/clients/client-iot/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot/src/protocols/Aws_restJson1.ts @@ -25273,7 +25273,7 @@ const deserializeAws_restJson1AbortCriteria = (output: any, context: __SerdeCont }; const deserializeAws_restJson1AbortCriteriaList = (output: any, context: __SerdeContext): AbortCriteria[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25281,6 +25281,7 @@ const deserializeAws_restJson1AbortCriteriaList = (output: any, context: __Serde } return deserializeAws_restJson1AbortCriteria(entry, context); }); + return retVal; }; const deserializeAws_restJson1Action = (output: any, context: __SerdeContext): Action => { @@ -25375,7 +25376,7 @@ const deserializeAws_restJson1Action = (output: any, context: __SerdeContext): A }; const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext): Action[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25383,6 +25384,7 @@ const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Action(entry, context); }); + return retVal; }; const deserializeAws_restJson1ActiveViolation = (output: any, context: __SerdeContext): ActiveViolation => { @@ -25416,7 +25418,7 @@ const deserializeAws_restJson1ActiveViolation = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ActiveViolations = (output: any, context: __SerdeContext): ActiveViolation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25424,10 +25426,11 @@ const deserializeAws_restJson1ActiveViolations = (output: any, context: __SerdeC } return deserializeAws_restJson1ActiveViolation(entry, context); }); + return retVal; }; const deserializeAws_restJson1AdditionalMetricsToRetainList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25435,13 +25438,14 @@ const deserializeAws_restJson1AdditionalMetricsToRetainList = (output: any, cont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AdditionalMetricsToRetainV2List = ( output: any, context: __SerdeContext ): MetricToRetain[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25449,6 +25453,7 @@ const deserializeAws_restJson1AdditionalMetricsToRetainV2List = ( } return deserializeAws_restJson1MetricToRetain(entry, context); }); + return retVal; }; const deserializeAws_restJson1AdditionalParameterMap = ( @@ -25490,7 +25495,7 @@ const deserializeAws_restJson1AggregationType = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AggregationTypeValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25498,6 +25503,7 @@ const deserializeAws_restJson1AggregationTypeValues = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AlertTarget = (output: any, context: __SerdeContext): AlertTarget => { @@ -25556,7 +25562,7 @@ const deserializeAws_restJson1AssetPropertyValue = (output: any, context: __Serd }; const deserializeAws_restJson1AssetPropertyValueList = (output: any, context: __SerdeContext): AssetPropertyValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25564,6 +25570,7 @@ const deserializeAws_restJson1AssetPropertyValueList = (output: any, context: __ } return deserializeAws_restJson1AssetPropertyValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetPropertyVariant = (output: any, context: __SerdeContext): AssetPropertyVariant => { @@ -25729,7 +25736,7 @@ const deserializeAws_restJson1AuditFinding = (output: any, context: __SerdeConte }; const deserializeAws_restJson1AuditFindings = (output: any, context: __SerdeContext): AuditFinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25737,6 +25744,7 @@ const deserializeAws_restJson1AuditFindings = (output: any, context: __SerdeCont } return deserializeAws_restJson1AuditFinding(entry, context); }); + return retVal; }; const deserializeAws_restJson1AuditMitigationActionExecutionMetadata = ( @@ -25766,7 +25774,7 @@ const deserializeAws_restJson1AuditMitigationActionExecutionMetadataList = ( output: any, context: __SerdeContext ): AuditMitigationActionExecutionMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25774,6 +25782,7 @@ const deserializeAws_restJson1AuditMitigationActionExecutionMetadataList = ( } return deserializeAws_restJson1AuditMitigationActionExecutionMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1AuditMitigationActionsTaskMetadata = ( @@ -25794,7 +25803,7 @@ const deserializeAws_restJson1AuditMitigationActionsTaskMetadataList = ( output: any, context: __SerdeContext ): AuditMitigationActionsTaskMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25802,6 +25811,7 @@ const deserializeAws_restJson1AuditMitigationActionsTaskMetadataList = ( } return deserializeAws_restJson1AuditMitigationActionsTaskMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1AuditMitigationActionsTaskStatistics = ( @@ -25885,7 +25895,7 @@ const deserializeAws_restJson1AuditSuppression = (output: any, context: __SerdeC }; const deserializeAws_restJson1AuditSuppressionList = (output: any, context: __SerdeContext): AuditSuppression[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25893,6 +25903,7 @@ const deserializeAws_restJson1AuditSuppressionList = (output: any, context: __Se } return deserializeAws_restJson1AuditSuppression(entry, context); }); + return retVal; }; const deserializeAws_restJson1AuditTaskMetadata = (output: any, context: __SerdeContext): AuditTaskMetadata => { @@ -25904,7 +25915,7 @@ const deserializeAws_restJson1AuditTaskMetadata = (output: any, context: __Serde }; const deserializeAws_restJson1AuditTaskMetadataList = (output: any, context: __SerdeContext): AuditTaskMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25912,6 +25923,7 @@ const deserializeAws_restJson1AuditTaskMetadataList = (output: any, context: __S } return deserializeAws_restJson1AuditTaskMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1AuthInfo = (output: any, context: __SerdeContext): AuthInfo => { @@ -25956,7 +25968,7 @@ const deserializeAws_restJson1AuthorizerDescription = (output: any, context: __S }; const deserializeAws_restJson1Authorizers = (output: any, context: __SerdeContext): AuthorizerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25964,6 +25976,7 @@ const deserializeAws_restJson1Authorizers = (output: any, context: __SerdeContex } return deserializeAws_restJson1AuthorizerSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AuthorizerSummary = (output: any, context: __SerdeContext): AuthorizerSummary => { @@ -25996,7 +26009,7 @@ const deserializeAws_restJson1AuthResult = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AuthResults = (output: any, context: __SerdeContext): AuthResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26004,6 +26017,7 @@ const deserializeAws_restJson1AuthResults = (output: any, context: __SerdeContex } return deserializeAws_restJson1AuthResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsJobExecutionsRolloutConfig = ( @@ -26093,7 +26107,7 @@ const deserializeAws_restJson1BehaviorModelTrainingSummaries = ( output: any, context: __SerdeContext ): BehaviorModelTrainingSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26101,6 +26115,7 @@ const deserializeAws_restJson1BehaviorModelTrainingSummaries = ( } return deserializeAws_restJson1BehaviorModelTrainingSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1BehaviorModelTrainingSummary = ( @@ -26124,7 +26139,7 @@ const deserializeAws_restJson1BehaviorModelTrainingSummary = ( }; const deserializeAws_restJson1Behaviors = (output: any, context: __SerdeContext): Behavior[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26132,6 +26147,7 @@ const deserializeAws_restJson1Behaviors = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Behavior(entry, context); }); + return retVal; }; const deserializeAws_restJson1BillingGroupMetadata = (output: any, context: __SerdeContext): BillingGroupMetadata => { @@ -26147,7 +26163,7 @@ const deserializeAws_restJson1BillingGroupNameAndArnList = ( output: any, context: __SerdeContext ): GroupNameAndArn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26155,6 +26171,7 @@ const deserializeAws_restJson1BillingGroupNameAndArnList = ( } return deserializeAws_restJson1GroupNameAndArn(entry, context); }); + return retVal; }; const deserializeAws_restJson1BillingGroupProperties = ( @@ -26174,7 +26191,7 @@ const deserializeAws_restJson1Bucket = (output: any, context: __SerdeContext): B }; const deserializeAws_restJson1Buckets = (output: any, context: __SerdeContext): Bucket[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26182,6 +26199,7 @@ const deserializeAws_restJson1Buckets = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Bucket(entry, context); }); + return retVal; }; const deserializeAws_restJson1CACertificate = (output: any, context: __SerdeContext): CACertificate => { @@ -26225,7 +26243,7 @@ const deserializeAws_restJson1CACertificateDescription = ( }; const deserializeAws_restJson1CACertificates = (output: any, context: __SerdeContext): CACertificate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26233,6 +26251,7 @@ const deserializeAws_restJson1CACertificates = (output: any, context: __SerdeCon } return deserializeAws_restJson1CACertificate(entry, context); }); + return retVal; }; const deserializeAws_restJson1Certificate = (output: any, context: __SerdeContext): Certificate => { @@ -26283,7 +26302,7 @@ const deserializeAws_restJson1CertificateDescription = ( }; const deserializeAws_restJson1Certificates = (output: any, context: __SerdeContext): Certificate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26291,6 +26310,7 @@ const deserializeAws_restJson1Certificates = (output: any, context: __SerdeConte } return deserializeAws_restJson1Certificate(entry, context); }); + return retVal; }; const deserializeAws_restJson1CertificateValidity = (output: any, context: __SerdeContext): CertificateValidity => { @@ -26307,7 +26327,7 @@ const deserializeAws_restJson1CertificateValidity = (output: any, context: __Ser }; const deserializeAws_restJson1Cidrs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26315,6 +26335,7 @@ const deserializeAws_restJson1Cidrs = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ClientProperties = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -26474,7 +26495,7 @@ const deserializeAws_restJson1DetectMitigationActionExecutionList = ( output: any, context: __SerdeContext ): DetectMitigationActionExecution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26482,6 +26503,7 @@ const deserializeAws_restJson1DetectMitigationActionExecutionList = ( } return deserializeAws_restJson1DetectMitigationActionExecution(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectMitigationActionsTaskStatistics = ( @@ -26535,7 +26557,7 @@ const deserializeAws_restJson1DetectMitigationActionsTaskSummaryList = ( output: any, context: __SerdeContext ): DetectMitigationActionsTaskSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26543,6 +26565,7 @@ const deserializeAws_restJson1DetectMitigationActionsTaskSummaryList = ( } return deserializeAws_restJson1DetectMitigationActionsTaskSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectMitigationActionsTaskTarget = ( @@ -26560,7 +26583,7 @@ const deserializeAws_restJson1DetectMitigationActionsTaskTarget = ( }; const deserializeAws_restJson1DimensionNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26568,10 +26591,11 @@ const deserializeAws_restJson1DimensionNames = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DimensionStringValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26579,6 +26603,7 @@ const deserializeAws_restJson1DimensionStringValues = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DocumentParameter = (output: any, context: __SerdeContext): DocumentParameter => { @@ -26592,7 +26617,7 @@ const deserializeAws_restJson1DocumentParameter = (output: any, context: __Serde }; const deserializeAws_restJson1DocumentParameters = (output: any, context: __SerdeContext): DocumentParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26600,13 +26625,14 @@ const deserializeAws_restJson1DocumentParameters = (output: any, context: __Serd } return deserializeAws_restJson1DocumentParameter(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainConfigurations = ( output: any, context: __SerdeContext ): DomainConfigurationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26614,6 +26640,7 @@ const deserializeAws_restJson1DomainConfigurations = ( } return deserializeAws_restJson1DomainConfigurationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainConfigurationSummary = ( @@ -26653,7 +26680,7 @@ const deserializeAws_restJson1DynamoDBv2Action = (output: any, context: __SerdeC }; const deserializeAws_restJson1EffectivePolicies = (output: any, context: __SerdeContext): EffectivePolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26661,6 +26688,7 @@ const deserializeAws_restJson1EffectivePolicies = (output: any, context: __Serde } return deserializeAws_restJson1EffectivePolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1EffectivePolicy = (output: any, context: __SerdeContext): EffectivePolicy => { @@ -26692,7 +26720,7 @@ const deserializeAws_restJson1EnableIoTLoggingParams = ( }; const deserializeAws_restJson1Environments = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26700,6 +26728,7 @@ const deserializeAws_restJson1Environments = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ErrorInfo = (output: any, context: __SerdeContext): ErrorInfo => { @@ -26758,7 +26787,7 @@ const deserializeAws_restJson1Field = (output: any, context: __SerdeContext): Fi }; const deserializeAws_restJson1Fields = (output: any, context: __SerdeContext): Field[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26766,6 +26795,7 @@ const deserializeAws_restJson1Fields = (output: any, context: __SerdeContext): F } return deserializeAws_restJson1Field(entry, context); }); + return retVal; }; const deserializeAws_restJson1FileLocation = (output: any, context: __SerdeContext): FileLocation => { @@ -26782,7 +26812,7 @@ const deserializeAws_restJson1FileLocation = (output: any, context: __SerdeConte }; const deserializeAws_restJson1FindingIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26790,6 +26820,7 @@ const deserializeAws_restJson1FindingIds = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FirehoseAction = (output: any, context: __SerdeContext): FirehoseAction => { @@ -26812,7 +26843,7 @@ const deserializeAws_restJson1FleetMetricNameAndArnList = ( output: any, context: __SerdeContext ): FleetMetricNameAndArn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26820,6 +26851,7 @@ const deserializeAws_restJson1FleetMetricNameAndArnList = ( } return deserializeAws_restJson1FleetMetricNameAndArn(entry, context); }); + return retVal; }; const deserializeAws_restJson1GroupNameAndArn = (output: any, context: __SerdeContext): GroupNameAndArn => { @@ -26830,7 +26862,7 @@ const deserializeAws_restJson1GroupNameAndArn = (output: any, context: __SerdeCo }; const deserializeAws_restJson1HeaderList = (output: any, context: __SerdeContext): HttpActionHeader[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26838,6 +26870,7 @@ const deserializeAws_restJson1HeaderList = (output: any, context: __SerdeContext } return deserializeAws_restJson1HttpActionHeader(entry, context); }); + return retVal; }; const deserializeAws_restJson1HttpAction = (output: any, context: __SerdeContext): HttpAction => { @@ -26899,7 +26932,7 @@ const deserializeAws_restJson1ImplicitDeny = (output: any, context: __SerdeConte }; const deserializeAws_restJson1IndexNamesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -26907,6 +26940,7 @@ const deserializeAws_restJson1IndexNamesList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IotAnalyticsAction = (output: any, context: __SerdeContext): IotAnalyticsAction => { @@ -27098,7 +27132,7 @@ const deserializeAws_restJson1JobExecutionSummaryForJobList = ( output: any, context: __SerdeContext ): JobExecutionSummaryForJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27106,6 +27140,7 @@ const deserializeAws_restJson1JobExecutionSummaryForJobList = ( } return deserializeAws_restJson1JobExecutionSummaryForJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobExecutionSummaryForThing = ( @@ -27125,7 +27160,7 @@ const deserializeAws_restJson1JobExecutionSummaryForThingList = ( output: any, context: __SerdeContext ): JobExecutionSummaryForThing[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27133,6 +27168,7 @@ const deserializeAws_restJson1JobExecutionSummaryForThingList = ( } return deserializeAws_restJson1JobExecutionSummaryForThing(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobProcessDetails = (output: any, context: __SerdeContext): JobProcessDetails => { @@ -27175,7 +27211,7 @@ const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext }; const deserializeAws_restJson1JobSummaryList = (output: any, context: __SerdeContext): JobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27183,10 +27219,11 @@ const deserializeAws_restJson1JobSummaryList = (output: any, context: __SerdeCon } return deserializeAws_restJson1JobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobTargets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27194,6 +27231,7 @@ const deserializeAws_restJson1JobTargets = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1JobTemplateSummary = (output: any, context: __SerdeContext): JobTemplateSummary => { @@ -27209,7 +27247,7 @@ const deserializeAws_restJson1JobTemplateSummary = (output: any, context: __Serd }; const deserializeAws_restJson1JobTemplateSummaryList = (output: any, context: __SerdeContext): JobTemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27217,6 +27255,7 @@ const deserializeAws_restJson1JobTemplateSummaryList = (output: any, context: __ } return deserializeAws_restJson1JobTemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1KafkaAction = (output: any, context: __SerdeContext): KafkaAction => { @@ -27277,7 +27316,7 @@ const deserializeAws_restJson1LogTargetConfigurations = ( output: any, context: __SerdeContext ): LogTargetConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27285,6 +27324,7 @@ const deserializeAws_restJson1LogTargetConfigurations = ( } return deserializeAws_restJson1LogTargetConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1MachineLearningDetectionConfig = ( @@ -27300,7 +27340,7 @@ const deserializeAws_restJson1ManagedJobTemplatesSummaryList = ( output: any, context: __SerdeContext ): ManagedJobTemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27308,6 +27348,7 @@ const deserializeAws_restJson1ManagedJobTemplatesSummaryList = ( } return deserializeAws_restJson1ManagedJobTemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ManagedJobTemplateSummary = ( @@ -27334,7 +27375,7 @@ const deserializeAws_restJson1MetricDimension = (output: any, context: __SerdeCo }; const deserializeAws_restJson1MetricNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27342,6 +27383,7 @@ const deserializeAws_restJson1MetricNames = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MetricToRetain = (output: any, context: __SerdeContext): MetricToRetain => { @@ -27378,7 +27420,7 @@ const deserializeAws_restJson1MetricValue = (output: any, context: __SerdeContex }; const deserializeAws_restJson1MissingContextValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27386,6 +27428,7 @@ const deserializeAws_restJson1MissingContextValues = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MitigationAction = (output: any, context: __SerdeContext): MitigationAction => { @@ -27418,7 +27461,7 @@ const deserializeAws_restJson1MitigationActionIdentifierList = ( output: any, context: __SerdeContext ): MitigationActionIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27426,10 +27469,11 @@ const deserializeAws_restJson1MitigationActionIdentifierList = ( } return deserializeAws_restJson1MitigationActionIdentifier(entry, context); }); + return retVal; }; const deserializeAws_restJson1MitigationActionList = (output: any, context: __SerdeContext): MitigationAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27437,10 +27481,11 @@ const deserializeAws_restJson1MitigationActionList = (output: any, context: __Se } return deserializeAws_restJson1MitigationAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1MitigationActionNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27448,6 +27493,7 @@ const deserializeAws_restJson1MitigationActionNameList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MitigationActionParams = ( @@ -27497,7 +27543,7 @@ const deserializeAws_restJson1NonCompliantResource = (output: any, context: __Se }; const deserializeAws_restJson1NumberList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27505,6 +27551,7 @@ const deserializeAws_restJson1NumberList = (output: any, context: __SerdeContext } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OpenSearchAction = (output: any, context: __SerdeContext): OpenSearchAction => { @@ -27538,7 +27585,7 @@ const deserializeAws_restJson1OTAUpdateFile = (output: any, context: __SerdeCont }; const deserializeAws_restJson1OTAUpdateFiles = (output: any, context: __SerdeContext): OTAUpdateFile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27546,6 +27593,7 @@ const deserializeAws_restJson1OTAUpdateFiles = (output: any, context: __SerdeCon } return deserializeAws_restJson1OTAUpdateFile(entry, context); }); + return retVal; }; const deserializeAws_restJson1OTAUpdateInfo = (output: any, context: __SerdeContext): OTAUpdateInfo => { @@ -27597,7 +27645,7 @@ const deserializeAws_restJson1OTAUpdateInfo = (output: any, context: __SerdeCont }; const deserializeAws_restJson1OTAUpdatesSummary = (output: any, context: __SerdeContext): OTAUpdateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27605,6 +27653,7 @@ const deserializeAws_restJson1OTAUpdatesSummary = (output: any, context: __Serde } return deserializeAws_restJson1OTAUpdateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1OTAUpdateSummary = (output: any, context: __SerdeContext): OTAUpdateSummary => { @@ -27636,7 +27685,7 @@ const deserializeAws_restJson1OutgoingCertificate = (output: any, context: __Ser }; const deserializeAws_restJson1OutgoingCertificates = (output: any, context: __SerdeContext): OutgoingCertificate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27644,6 +27693,7 @@ const deserializeAws_restJson1OutgoingCertificates = (output: any, context: __Se } return deserializeAws_restJson1OutgoingCertificate(entry, context); }); + return retVal; }; const deserializeAws_restJson1ParameterMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -27659,7 +27709,7 @@ const deserializeAws_restJson1ParameterMap = (output: any, context: __SerdeConte }; const deserializeAws_restJson1Percentiles = (output: any, context: __SerdeContext): PercentPair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27667,6 +27717,7 @@ const deserializeAws_restJson1Percentiles = (output: any, context: __SerdeContex } return deserializeAws_restJson1PercentPair(entry, context); }); + return retVal; }; const deserializeAws_restJson1PercentPair = (output: any, context: __SerdeContext): PercentPair => { @@ -27677,7 +27728,7 @@ const deserializeAws_restJson1PercentPair = (output: any, context: __SerdeContex }; const deserializeAws_restJson1Policies = (output: any, context: __SerdeContext): Policy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27685,6 +27736,7 @@ const deserializeAws_restJson1Policies = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Policy(entry, context); }); + return retVal; }; const deserializeAws_restJson1Policy = (output: any, context: __SerdeContext): Policy => { @@ -27695,7 +27747,7 @@ const deserializeAws_restJson1Policy = (output: any, context: __SerdeContext): P }; const deserializeAws_restJson1PolicyDocuments = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27703,10 +27755,11 @@ const deserializeAws_restJson1PolicyDocuments = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PolicyTargets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27714,6 +27767,7 @@ const deserializeAws_restJson1PolicyTargets = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PolicyVersion = (output: any, context: __SerdeContext): PolicyVersion => { @@ -27738,7 +27792,7 @@ const deserializeAws_restJson1PolicyVersionIdentifier = ( }; const deserializeAws_restJson1PolicyVersions = (output: any, context: __SerdeContext): PolicyVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27746,10 +27800,11 @@ const deserializeAws_restJson1PolicyVersions = (output: any, context: __SerdeCon } return deserializeAws_restJson1PolicyVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1Ports = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27757,6 +27812,7 @@ const deserializeAws_restJson1Ports = (output: any, context: __SerdeContext): nu } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PresignedUrlConfig = (output: any, context: __SerdeContext): PresignedUrlConfig => { @@ -27767,7 +27823,7 @@ const deserializeAws_restJson1PresignedUrlConfig = (output: any, context: __Serd }; const deserializeAws_restJson1Principals = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27775,10 +27831,11 @@ const deserializeAws_restJson1Principals = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ProcessingTargetNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27786,10 +27843,11 @@ const deserializeAws_restJson1ProcessingTargetNameList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Protocols = (output: any, context: __SerdeContext): (Protocol | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27797,6 +27855,7 @@ const deserializeAws_restJson1Protocols = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ProvisioningHook = (output: any, context: __SerdeContext): ProvisioningHook => { @@ -27810,7 +27869,7 @@ const deserializeAws_restJson1ProvisioningTemplateListing = ( output: any, context: __SerdeContext ): ProvisioningTemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27818,6 +27877,7 @@ const deserializeAws_restJson1ProvisioningTemplateListing = ( } return deserializeAws_restJson1ProvisioningTemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProvisioningTemplateSummary = ( @@ -27844,7 +27904,7 @@ const deserializeAws_restJson1ProvisioningTemplateVersionListing = ( output: any, context: __SerdeContext ): ProvisioningTemplateVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27852,6 +27912,7 @@ const deserializeAws_restJson1ProvisioningTemplateVersionListing = ( } return deserializeAws_restJson1ProvisioningTemplateVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProvisioningTemplateVersionSummary = ( @@ -27909,7 +27970,7 @@ const deserializeAws_restJson1PutAssetPropertyValueEntryList = ( output: any, context: __SerdeContext ): PutAssetPropertyValueEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27917,6 +27978,7 @@ const deserializeAws_restJson1PutAssetPropertyValueEntryList = ( } return deserializeAws_restJson1PutAssetPropertyValueEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1PutItemInput = (output: any, context: __SerdeContext): PutItemInput => { @@ -27933,7 +27995,7 @@ const deserializeAws_restJson1RateIncreaseCriteria = (output: any, context: __Se }; const deserializeAws_restJson1ReasonForNonComplianceCodes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27941,6 +28003,7 @@ const deserializeAws_restJson1ReasonForNonComplianceCodes = (output: any, contex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RegistrationConfig = (output: any, context: __SerdeContext): RegistrationConfig => { @@ -27965,7 +28028,7 @@ const deserializeAws_restJson1RelatedResource = (output: any, context: __SerdeCo }; const deserializeAws_restJson1RelatedResources = (output: any, context: __SerdeContext): RelatedResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27973,6 +28036,7 @@ const deserializeAws_restJson1RelatedResources = (output: any, context: __SerdeC } return deserializeAws_restJson1RelatedResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplaceDefaultPolicyVersionParams = ( @@ -28021,7 +28085,7 @@ const deserializeAws_restJson1ResourceIdentifier = (output: any, context: __Serd }; const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28029,6 +28093,7 @@ const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RetryCriteria = (output: any, context: __SerdeContext): RetryCriteria => { @@ -28039,7 +28104,7 @@ const deserializeAws_restJson1RetryCriteria = (output: any, context: __SerdeCont }; const deserializeAws_restJson1RetryCriteriaList = (output: any, context: __SerdeContext): RetryCriteria[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28047,6 +28112,7 @@ const deserializeAws_restJson1RetryCriteriaList = (output: any, context: __Serde } return deserializeAws_restJson1RetryCriteria(entry, context); }); + return retVal; }; const deserializeAws_restJson1RoleAliasDescription = (output: any, context: __SerdeContext): RoleAliasDescription => { @@ -28068,7 +28134,7 @@ const deserializeAws_restJson1RoleAliasDescription = (output: any, context: __Se }; const deserializeAws_restJson1RoleAliases = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28076,6 +28142,7 @@ const deserializeAws_restJson1RoleAliases = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3Action = (output: any, context: __SerdeContext): S3Action => { @@ -28095,7 +28162,7 @@ const deserializeAws_restJson1S3Destination = (output: any, context: __SerdeCont }; const deserializeAws_restJson1S3FileUrlList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28103,6 +28170,7 @@ const deserializeAws_restJson1S3FileUrlList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3Location = (output: any, context: __SerdeContext): S3Location => { @@ -28137,7 +28205,7 @@ const deserializeAws_restJson1ScheduledAuditMetadataList = ( output: any, context: __SerdeContext ): ScheduledAuditMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28145,10 +28213,11 @@ const deserializeAws_restJson1ScheduledAuditMetadataList = ( } return deserializeAws_restJson1ScheduledAuditMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1SearchableAttributes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28156,10 +28225,11 @@ const deserializeAws_restJson1SearchableAttributes = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SecurityGroupList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28167,6 +28237,7 @@ const deserializeAws_restJson1SecurityGroupList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SecurityProfileIdentifier = ( @@ -28183,7 +28254,7 @@ const deserializeAws_restJson1SecurityProfileIdentifiers = ( output: any, context: __SerdeContext ): SecurityProfileIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28191,6 +28262,7 @@ const deserializeAws_restJson1SecurityProfileIdentifiers = ( } return deserializeAws_restJson1SecurityProfileIdentifier(entry, context); }); + return retVal; }; const deserializeAws_restJson1SecurityProfileTarget = (output: any, context: __SerdeContext): SecurityProfileTarget => { @@ -28219,7 +28291,7 @@ const deserializeAws_restJson1SecurityProfileTargetMappings = ( output: any, context: __SerdeContext ): SecurityProfileTargetMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28227,13 +28299,14 @@ const deserializeAws_restJson1SecurityProfileTargetMappings = ( } return deserializeAws_restJson1SecurityProfileTargetMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1SecurityProfileTargets = ( output: any, context: __SerdeContext ): SecurityProfileTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28241,13 +28314,14 @@ const deserializeAws_restJson1SecurityProfileTargets = ( } return deserializeAws_restJson1SecurityProfileTarget(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServerCertificates = ( output: any, context: __SerdeContext ): ServerCertificateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28255,6 +28329,7 @@ const deserializeAws_restJson1ServerCertificates = ( } return deserializeAws_restJson1ServerCertificateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServerCertificateSummary = ( @@ -28365,7 +28440,7 @@ const deserializeAws_restJson1StreamFile = (output: any, context: __SerdeContext }; const deserializeAws_restJson1StreamFiles = (output: any, context: __SerdeContext): StreamFile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28373,6 +28448,7 @@ const deserializeAws_restJson1StreamFiles = (output: any, context: __SerdeContex } return deserializeAws_restJson1StreamFile(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamInfo = (output: any, context: __SerdeContext): StreamInfo => { @@ -28398,7 +28474,7 @@ const deserializeAws_restJson1StreamInfo = (output: any, context: __SerdeContext }; const deserializeAws_restJson1StreamsSummary = (output: any, context: __SerdeContext): StreamSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28406,6 +28482,7 @@ const deserializeAws_restJson1StreamsSummary = (output: any, context: __SerdeCon } return deserializeAws_restJson1StreamSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamSummary = (output: any, context: __SerdeContext): StreamSummary => { @@ -28418,7 +28495,7 @@ const deserializeAws_restJson1StreamSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28426,6 +28503,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -28441,7 +28519,7 @@ const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28449,6 +28527,7 @@ const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -28459,7 +28538,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28467,10 +28546,11 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TargetAuditCheckNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28478,10 +28558,11 @@ const deserializeAws_restJson1TargetAuditCheckNames = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Targets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28489,13 +28570,14 @@ const deserializeAws_restJson1Targets = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TargetViolationIdsForDetectMitigationActions = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28503,10 +28585,11 @@ const deserializeAws_restJson1TargetViolationIdsForDetectMitigationActions = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TaskIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28514,6 +28597,7 @@ const deserializeAws_restJson1TaskIdList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TaskStatistics = (output: any, context: __SerdeContext): TaskStatistics => { @@ -28555,7 +28639,7 @@ const deserializeAws_restJson1ThingAttribute = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ThingAttributeList = (output: any, context: __SerdeContext): ThingAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28563,6 +28647,7 @@ const deserializeAws_restJson1ThingAttributeList = (output: any, context: __Serd } return deserializeAws_restJson1ThingAttribute(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThingConnectivity = (output: any, context: __SerdeContext): ThingConnectivity => { @@ -28596,7 +28681,7 @@ const deserializeAws_restJson1ThingDocument = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ThingDocumentList = (output: any, context: __SerdeContext): ThingDocument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28604,6 +28689,7 @@ const deserializeAws_restJson1ThingDocumentList = (output: any, context: __Serde } return deserializeAws_restJson1ThingDocument(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThingGroupDocument = (output: any, context: __SerdeContext): ThingGroupDocument => { @@ -28623,7 +28709,7 @@ const deserializeAws_restJson1ThingGroupDocument = (output: any, context: __Serd }; const deserializeAws_restJson1ThingGroupDocumentList = (output: any, context: __SerdeContext): ThingGroupDocument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28631,6 +28717,7 @@ const deserializeAws_restJson1ThingGroupDocumentList = (output: any, context: __ } return deserializeAws_restJson1ThingGroupDocument(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThingGroupIndexingConfiguration = ( @@ -28665,7 +28752,7 @@ const deserializeAws_restJson1ThingGroupMetadata = (output: any, context: __Serd }; const deserializeAws_restJson1ThingGroupNameAndArnList = (output: any, context: __SerdeContext): GroupNameAndArn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28673,10 +28760,11 @@ const deserializeAws_restJson1ThingGroupNameAndArnList = (output: any, context: } return deserializeAws_restJson1GroupNameAndArn(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThingGroupNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28684,10 +28772,11 @@ const deserializeAws_restJson1ThingGroupNameList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ThingGroupNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28695,6 +28784,7 @@ const deserializeAws_restJson1ThingGroupNames = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ThingGroupProperties = (output: any, context: __SerdeContext): ThingGroupProperties => { @@ -28728,7 +28818,7 @@ const deserializeAws_restJson1ThingIndexingConfiguration = ( }; const deserializeAws_restJson1ThingNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28736,6 +28826,7 @@ const deserializeAws_restJson1ThingNameList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ThingTypeDefinition = (output: any, context: __SerdeContext): ThingTypeDefinition => { @@ -28754,7 +28845,7 @@ const deserializeAws_restJson1ThingTypeDefinition = (output: any, context: __Ser }; const deserializeAws_restJson1ThingTypeList = (output: any, context: __SerdeContext): ThingTypeDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28762,6 +28853,7 @@ const deserializeAws_restJson1ThingTypeList = (output: any, context: __SerdeCont } return deserializeAws_restJson1ThingTypeDefinition(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThingTypeMetadata = (output: any, context: __SerdeContext): ThingTypeMetadata => { @@ -28821,7 +28913,7 @@ const deserializeAws_restJson1TimestreamDimensionList = ( output: any, context: __SerdeContext ): TimestreamDimension[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28829,6 +28921,7 @@ const deserializeAws_restJson1TimestreamDimensionList = ( } return deserializeAws_restJson1TimestreamDimension(entry, context); }); + return retVal; }; const deserializeAws_restJson1TimestreamTimestamp = (output: any, context: __SerdeContext): TimestreamTimestamp => { @@ -28888,7 +28981,7 @@ const deserializeAws_restJson1TopicRuleDestinationSummaries = ( output: any, context: __SerdeContext ): TopicRuleDestinationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28896,6 +28989,7 @@ const deserializeAws_restJson1TopicRuleDestinationSummaries = ( } return deserializeAws_restJson1TopicRuleDestinationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TopicRuleDestinationSummary = ( @@ -28926,7 +29020,7 @@ const deserializeAws_restJson1TopicRuleDestinationSummary = ( }; const deserializeAws_restJson1TopicRuleList = (output: any, context: __SerdeContext): TopicRuleListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28934,6 +29028,7 @@ const deserializeAws_restJson1TopicRuleList = (output: any, context: __SerdeCont } return deserializeAws_restJson1TopicRuleListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1TopicRuleListItem = (output: any, context: __SerdeContext): TopicRuleListItem => { @@ -28993,7 +29088,7 @@ const deserializeAws_restJson1ValidationError = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ValidationErrors = (output: any, context: __SerdeContext): ValidationError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29001,6 +29096,7 @@ const deserializeAws_restJson1ValidationErrors = (output: any, context: __SerdeC } return deserializeAws_restJson1ValidationError(entry, context); }); + return retVal; }; const deserializeAws_restJson1ViolationEvent = (output: any, context: __SerdeContext): ViolationEvent => { @@ -29056,7 +29152,7 @@ const deserializeAws_restJson1ViolationEventOccurrenceRange = ( }; const deserializeAws_restJson1ViolationEvents = (output: any, context: __SerdeContext): ViolationEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29064,6 +29160,7 @@ const deserializeAws_restJson1ViolationEvents = (output: any, context: __SerdeCo } return deserializeAws_restJson1ViolationEvent(entry, context); }); + return retVal; }; const deserializeAws_restJson1VpcDestinationProperties = ( diff --git a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts index c12d7cc95d9c..c7c569a44740 100644 --- a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts @@ -4076,7 +4076,7 @@ const deserializeAws_restJson1AttributeNameMapping = ( }; const deserializeAws_restJson1AttributeNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4084,13 +4084,14 @@ const deserializeAws_restJson1AttributeNames = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BatchPutMessageErrorEntries = ( output: any, context: __SerdeContext ): BatchPutMessageErrorEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4098,6 +4099,7 @@ const deserializeAws_restJson1BatchPutMessageErrorEntries = ( } return deserializeAws_restJson1BatchPutMessageErrorEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchPutMessageErrorEntry = ( @@ -4183,7 +4185,7 @@ const deserializeAws_restJson1ChannelStorageSummary = (output: any, context: __S }; const deserializeAws_restJson1ChannelSummaries = (output: any, context: __SerdeContext): ChannelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4191,6 +4193,7 @@ const deserializeAws_restJson1ChannelSummaries = (output: any, context: __SerdeC } return deserializeAws_restJson1ChannelSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelSummary = (output: any, context: __SerdeContext): ChannelSummary => { @@ -4224,7 +4227,7 @@ const deserializeAws_restJson1Column = (output: any, context: __SerdeContext): C }; const deserializeAws_restJson1Columns = (output: any, context: __SerdeContext): Column[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4232,6 +4235,7 @@ const deserializeAws_restJson1Columns = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Column(entry, context); }); + return retVal; }; const deserializeAws_restJson1ContainerDatasetAction = ( @@ -4351,7 +4355,7 @@ const deserializeAws_restJson1DatasetAction = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DatasetActions = (output: any, context: __SerdeContext): DatasetAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4359,13 +4363,14 @@ const deserializeAws_restJson1DatasetActions = (output: any, context: __SerdeCon } return deserializeAws_restJson1DatasetAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatasetActionSummaries = ( output: any, context: __SerdeContext ): DatasetActionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4373,6 +4378,7 @@ const deserializeAws_restJson1DatasetActionSummaries = ( } return deserializeAws_restJson1DatasetActionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatasetActionSummary = (output: any, context: __SerdeContext): DatasetActionSummary => { @@ -4415,7 +4421,7 @@ const deserializeAws_restJson1DatasetContentDeliveryRules = ( output: any, context: __SerdeContext ): DatasetContentDeliveryRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4423,6 +4429,7 @@ const deserializeAws_restJson1DatasetContentDeliveryRules = ( } return deserializeAws_restJson1DatasetContentDeliveryRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatasetContentStatus = (output: any, context: __SerdeContext): DatasetContentStatus => { @@ -4436,7 +4443,7 @@ const deserializeAws_restJson1DatasetContentSummaries = ( output: any, context: __SerdeContext ): DatasetContentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4444,6 +4451,7 @@ const deserializeAws_restJson1DatasetContentSummaries = ( } return deserializeAws_restJson1DatasetContentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatasetContentSummary = (output: any, context: __SerdeContext): DatasetContentSummary => { @@ -4478,7 +4486,7 @@ const deserializeAws_restJson1DatasetContentVersionValue = ( }; const deserializeAws_restJson1DatasetEntries = (output: any, context: __SerdeContext): DatasetEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4486,6 +4494,7 @@ const deserializeAws_restJson1DatasetEntries = (output: any, context: __SerdeCon } return deserializeAws_restJson1DatasetEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatasetEntry = (output: any, context: __SerdeContext): DatasetEntry => { @@ -4496,7 +4505,7 @@ const deserializeAws_restJson1DatasetEntry = (output: any, context: __SerdeConte }; const deserializeAws_restJson1DatasetSummaries = (output: any, context: __SerdeContext): DatasetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4504,6 +4513,7 @@ const deserializeAws_restJson1DatasetSummaries = (output: any, context: __SerdeC } return deserializeAws_restJson1DatasetSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatasetSummary = (output: any, context: __SerdeContext): DatasetSummary => { @@ -4543,7 +4553,7 @@ const deserializeAws_restJson1DatasetTrigger = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DatasetTriggers = (output: any, context: __SerdeContext): DatasetTrigger[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4551,6 +4561,7 @@ const deserializeAws_restJson1DatasetTriggers = (output: any, context: __SerdeCo } return deserializeAws_restJson1DatasetTrigger(entry, context); }); + return retVal; }; const deserializeAws_restJson1Datastore = (output: any, context: __SerdeContext): Datastore => { @@ -4700,7 +4711,7 @@ const deserializeAws_restJson1DatastoreStorageSummary = ( }; const deserializeAws_restJson1DatastoreSummaries = (output: any, context: __SerdeContext): DatastoreSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4708,6 +4719,7 @@ const deserializeAws_restJson1DatastoreSummaries = (output: any, context: __Serd } return deserializeAws_restJson1DatastoreSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatastoreSummary = (output: any, context: __SerdeContext): DatastoreSummary => { @@ -4890,7 +4902,7 @@ const deserializeAws_restJson1LateDataRuleConfiguration = ( }; const deserializeAws_restJson1LateDataRules = (output: any, context: __SerdeContext): LateDataRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4898,6 +4910,7 @@ const deserializeAws_restJson1LateDataRules = (output: any, context: __SerdeCont } return deserializeAws_restJson1LateDataRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1LoggingOptions = (output: any, context: __SerdeContext): LoggingOptions => { @@ -4918,7 +4931,7 @@ const deserializeAws_restJson1MathActivity = (output: any, context: __SerdeConte }; const deserializeAws_restJson1MessagePayloads = (output: any, context: __SerdeContext): Uint8Array[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4926,6 +4939,7 @@ const deserializeAws_restJson1MessagePayloads = (output: any, context: __SerdeCo } return context.base64Decoder(entry); }); + return retVal; }; const deserializeAws_restJson1OutputFileUriValue = (output: any, context: __SerdeContext): OutputFileUriValue => { @@ -4950,7 +4964,7 @@ const deserializeAws_restJson1Partition = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1Partitions = (output: any, context: __SerdeContext): DatastorePartition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4958,6 +4972,7 @@ const deserializeAws_restJson1Partitions = (output: any, context: __SerdeContext } return deserializeAws_restJson1DatastorePartition(entry, context); }); + return retVal; }; const deserializeAws_restJson1Pipeline = (output: any, context: __SerdeContext): Pipeline => { @@ -4984,7 +4999,7 @@ const deserializeAws_restJson1Pipeline = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1PipelineActivities = (output: any, context: __SerdeContext): PipelineActivity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4992,6 +5007,7 @@ const deserializeAws_restJson1PipelineActivities = (output: any, context: __Serd } return deserializeAws_restJson1PipelineActivity(entry, context); }); + return retVal; }; const deserializeAws_restJson1PipelineActivity = (output: any, context: __SerdeContext): PipelineActivity => { @@ -5040,7 +5056,7 @@ const deserializeAws_restJson1PipelineActivity = (output: any, context: __SerdeC }; const deserializeAws_restJson1PipelineSummaries = (output: any, context: __SerdeContext): PipelineSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5048,6 +5064,7 @@ const deserializeAws_restJson1PipelineSummaries = (output: any, context: __Serde } return deserializeAws_restJson1PipelineSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1PipelineSummary = (output: any, context: __SerdeContext): PipelineSummary => { @@ -5078,7 +5095,7 @@ const deserializeAws_restJson1QueryFilter = (output: any, context: __SerdeContex }; const deserializeAws_restJson1QueryFilters = (output: any, context: __SerdeContext): QueryFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5086,6 +5103,7 @@ const deserializeAws_restJson1QueryFilters = (output: any, context: __SerdeConte } return deserializeAws_restJson1QueryFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1RemoveAttributesActivity = ( @@ -5103,7 +5121,7 @@ const deserializeAws_restJson1RemoveAttributesActivity = ( }; const deserializeAws_restJson1ReprocessingSummaries = (output: any, context: __SerdeContext): ReprocessingSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5111,6 +5129,7 @@ const deserializeAws_restJson1ReprocessingSummaries = (output: any, context: __S } return deserializeAws_restJson1ReprocessingSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReprocessingSummary = (output: any, context: __SerdeContext): ReprocessingSummary => { @@ -5228,7 +5247,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5236,6 +5255,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TimestampPartition = (output: any, context: __SerdeContext): TimestampPartition => { @@ -5268,7 +5288,7 @@ const deserializeAws_restJson1Variable = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Variables = (output: any, context: __SerdeContext): Variable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5276,6 +5296,7 @@ const deserializeAws_restJson1Variables = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Variable(entry, context); }); + return retVal; }; const deserializeAws_restJson1VersioningConfiguration = ( diff --git a/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts b/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts index 99087642a27d..f788dd14add7 100644 --- a/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts @@ -1455,7 +1455,7 @@ const deserializeAws_restJson1DeviceUnderTest = (output: any, context: __SerdeCo }; const deserializeAws_restJson1DeviceUnderTestList = (output: any, context: __SerdeContext): DeviceUnderTest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1463,6 +1463,7 @@ const deserializeAws_restJson1DeviceUnderTestList = (output: any, context: __Ser } return deserializeAws_restJson1DeviceUnderTest(entry, context); }); + return retVal; }; const deserializeAws_restJson1GroupResult = (output: any, context: __SerdeContext): GroupResult => { @@ -1477,7 +1478,7 @@ const deserializeAws_restJson1GroupResult = (output: any, context: __SerdeContex }; const deserializeAws_restJson1GroupResultList = (output: any, context: __SerdeContext): GroupResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1485,10 +1486,11 @@ const deserializeAws_restJson1GroupResultList = (output: any, context: __SerdeCo } return deserializeAws_restJson1GroupResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1SelectedTestList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1496,6 +1498,7 @@ const deserializeAws_restJson1SelectedTestList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SuiteDefinitionConfiguration = ( @@ -1537,7 +1540,7 @@ const deserializeAws_restJson1SuiteDefinitionInformationList = ( output: any, context: __SerdeContext ): SuiteDefinitionInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1545,6 +1548,7 @@ const deserializeAws_restJson1SuiteDefinitionInformationList = ( } return deserializeAws_restJson1SuiteDefinitionInformation(entry, context); }); + return retVal; }; const deserializeAws_restJson1SuiteRunConfiguration = (output: any, context: __SerdeContext): SuiteRunConfiguration => { @@ -1586,7 +1590,7 @@ const deserializeAws_restJson1SuiteRunInformation = (output: any, context: __Ser }; const deserializeAws_restJson1SuiteRunsList = (output: any, context: __SerdeContext): SuiteRunInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1594,6 +1598,7 @@ const deserializeAws_restJson1SuiteRunsList = (output: any, context: __SerdeCont } return deserializeAws_restJson1SuiteRunInformation(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -1629,7 +1634,7 @@ const deserializeAws_restJson1TestCaseRun = (output: any, context: __SerdeContex }; const deserializeAws_restJson1TestCaseRuns = (output: any, context: __SerdeContext): TestCaseRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1637,6 +1642,7 @@ const deserializeAws_restJson1TestCaseRuns = (output: any, context: __SerdeConte } return deserializeAws_restJson1TestCaseRun(entry, context); }); + return retVal; }; const deserializeAws_restJson1TestResult = (output: any, context: __SerdeContext): TestResult => { diff --git a/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts b/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts index 1eaecc0cb233..f26c29eefc03 100644 --- a/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts @@ -845,7 +845,7 @@ const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: }; const deserializeAws_restJson1ApplicationSummaries = (output: any, context: __SerdeContext): ApplicationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -853,6 +853,7 @@ const deserializeAws_restJson1ApplicationSummaries = (output: any, context: __Se } return deserializeAws_restJson1ApplicationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ApplicationSummary = (output: any, context: __SerdeContext): ApplicationSummary => { diff --git a/clients/client-iotsecuretunneling/src/protocols/Aws_json1_1.ts b/clients/client-iotsecuretunneling/src/protocols/Aws_json1_1.ts index 64b852907d05..60c34ae77cac 100644 --- a/clients/client-iotsecuretunneling/src/protocols/Aws_json1_1.ts +++ b/clients/client-iotsecuretunneling/src/protocols/Aws_json1_1.ts @@ -660,7 +660,7 @@ const deserializeAws_json1_1ResourceNotFoundException = ( }; const deserializeAws_json1_1ServiceList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -668,6 +668,7 @@ const deserializeAws_json1_1ServiceList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -678,7 +679,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -686,6 +687,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -753,7 +755,7 @@ const deserializeAws_json1_1TunnelSummary = (output: any, context: __SerdeContex }; const deserializeAws_json1_1TunnelSummaryList = (output: any, context: __SerdeContext): TunnelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -761,6 +763,7 @@ const deserializeAws_json1_1TunnelSummaryList = (output: any, context: __SerdeCo } return deserializeAws_json1_1TunnelSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => { diff --git a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts index 690bb14050a5..31f185160acc 100644 --- a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts @@ -7450,7 +7450,7 @@ const serializeAws_restJson1Variant = (input: Variant, context: __SerdeContext): }; const deserializeAws_restJson1AccessPolicySummaries = (output: any, context: __SerdeContext): AccessPolicySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7458,6 +7458,7 @@ const deserializeAws_restJson1AccessPolicySummaries = (output: any, context: __S } return deserializeAws_restJson1AccessPolicySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AccessPolicySummary = (output: any, context: __SerdeContext): AccessPolicySummary => { @@ -7498,7 +7499,7 @@ const deserializeAws_restJson1AggregatedValue = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AggregatedValues = (output: any, context: __SerdeContext): AggregatedValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7506,6 +7507,7 @@ const deserializeAws_restJson1AggregatedValues = (output: any, context: __SerdeC } return deserializeAws_restJson1AggregatedValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1Aggregates = (output: any, context: __SerdeContext): Aggregates => { @@ -7539,7 +7541,7 @@ const deserializeAws_restJson1AssetCompositeModel = (output: any, context: __Ser }; const deserializeAws_restJson1AssetCompositeModels = (output: any, context: __SerdeContext): AssetCompositeModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7547,6 +7549,7 @@ const deserializeAws_restJson1AssetCompositeModels = (output: any, context: __Se } return deserializeAws_restJson1AssetCompositeModel(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetErrorDetails = (output: any, context: __SerdeContext): AssetErrorDetails => { @@ -7558,7 +7561,7 @@ const deserializeAws_restJson1AssetErrorDetails = (output: any, context: __Serde }; const deserializeAws_restJson1AssetHierarchies = (output: any, context: __SerdeContext): AssetHierarchy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7566,6 +7569,7 @@ const deserializeAws_restJson1AssetHierarchies = (output: any, context: __SerdeC } return deserializeAws_restJson1AssetHierarchy(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetHierarchy = (output: any, context: __SerdeContext): AssetHierarchy => { @@ -7583,7 +7587,7 @@ const deserializeAws_restJson1AssetHierarchyInfo = (output: any, context: __Serd }; const deserializeAws_restJson1AssetIDs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7591,6 +7595,7 @@ const deserializeAws_restJson1AssetIDs = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AssetModelCompositeModel = ( @@ -7612,7 +7617,7 @@ const deserializeAws_restJson1AssetModelCompositeModels = ( output: any, context: __SerdeContext ): AssetModelCompositeModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7620,10 +7625,11 @@ const deserializeAws_restJson1AssetModelCompositeModels = ( } return deserializeAws_restJson1AssetModelCompositeModel(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetModelHierarchies = (output: any, context: __SerdeContext): AssetModelHierarchy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7631,6 +7637,7 @@ const deserializeAws_restJson1AssetModelHierarchies = (output: any, context: __S } return deserializeAws_restJson1AssetModelHierarchy(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetModelHierarchy = (output: any, context: __SerdeContext): AssetModelHierarchy => { @@ -7642,7 +7649,7 @@ const deserializeAws_restJson1AssetModelHierarchy = (output: any, context: __Ser }; const deserializeAws_restJson1AssetModelProperties = (output: any, context: __SerdeContext): AssetModelProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7650,6 +7657,7 @@ const deserializeAws_restJson1AssetModelProperties = (output: any, context: __Se } return deserializeAws_restJson1AssetModelProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetModelProperty = (output: any, context: __SerdeContext): AssetModelProperty => { @@ -7677,7 +7685,7 @@ const deserializeAws_restJson1AssetModelStatus = (output: any, context: __SerdeC }; const deserializeAws_restJson1AssetModelSummaries = (output: any, context: __SerdeContext): AssetModelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7685,6 +7693,7 @@ const deserializeAws_restJson1AssetModelSummaries = (output: any, context: __Ser } return deserializeAws_restJson1AssetModelSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetModelSummary = (output: any, context: __SerdeContext): AssetModelSummary => { @@ -7709,7 +7718,7 @@ const deserializeAws_restJson1AssetModelSummary = (output: any, context: __Serde }; const deserializeAws_restJson1AssetProperties = (output: any, context: __SerdeContext): AssetProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7717,6 +7726,7 @@ const deserializeAws_restJson1AssetProperties = (output: any, context: __SerdeCo } return deserializeAws_restJson1AssetProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetProperty = (output: any, context: __SerdeContext): AssetProperty => { @@ -7752,7 +7762,7 @@ const deserializeAws_restJson1AssetPropertyValueHistory = ( output: any, context: __SerdeContext ): AssetPropertyValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7760,13 +7770,14 @@ const deserializeAws_restJson1AssetPropertyValueHistory = ( } return deserializeAws_restJson1AssetPropertyValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetRelationshipSummaries = ( output: any, context: __SerdeContext ): AssetRelationshipSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7774,6 +7785,7 @@ const deserializeAws_restJson1AssetRelationshipSummaries = ( } return deserializeAws_restJson1AssetRelationshipSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetRelationshipSummary = ( @@ -7800,7 +7812,7 @@ const deserializeAws_restJson1AssetStatus = (output: any, context: __SerdeContex }; const deserializeAws_restJson1AssetSummaries = (output: any, context: __SerdeContext): AssetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7808,6 +7820,7 @@ const deserializeAws_restJson1AssetSummaries = (output: any, context: __SerdeCon } return deserializeAws_restJson1AssetSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssetSummary = (output: any, context: __SerdeContext): AssetSummary => { @@ -7839,7 +7852,7 @@ const deserializeAws_restJson1AssociatedAssetsSummaries = ( output: any, context: __SerdeContext ): AssociatedAssetsSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7847,6 +7860,7 @@ const deserializeAws_restJson1AssociatedAssetsSummaries = ( } return deserializeAws_restJson1AssociatedAssetsSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssociatedAssetsSummary = ( @@ -7887,7 +7901,7 @@ const deserializeAws_restJson1BatchAssociateProjectAssetsErrors = ( output: any, context: __SerdeContext ): AssetErrorDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7895,13 +7909,14 @@ const deserializeAws_restJson1BatchAssociateProjectAssetsErrors = ( } return deserializeAws_restJson1AssetErrorDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchDisassociateProjectAssetsErrors = ( output: any, context: __SerdeContext ): AssetErrorDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7909,6 +7924,7 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsErrors = ( } return deserializeAws_restJson1AssetErrorDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchPutAssetPropertyError = ( @@ -7929,7 +7945,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrorEntries = ( output: any, context: __SerdeContext ): BatchPutAssetPropertyErrorEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7937,6 +7953,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrorEntries = ( } return deserializeAws_restJson1BatchPutAssetPropertyErrorEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchPutAssetPropertyErrorEntry = ( @@ -7956,7 +7973,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrors = ( output: any, context: __SerdeContext ): BatchPutAssetPropertyError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7964,6 +7981,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrors = ( } return deserializeAws_restJson1BatchPutAssetPropertyError(entry, context); }); + return retVal; }; const deserializeAws_restJson1CompositeModelProperty = ( @@ -8011,7 +8029,7 @@ const deserializeAws_restJson1CustomerManagedS3Storage = ( }; const deserializeAws_restJson1DashboardSummaries = (output: any, context: __SerdeContext): DashboardSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8019,6 +8037,7 @@ const deserializeAws_restJson1DashboardSummaries = (output: any, context: __Serd } return deserializeAws_restJson1DashboardSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DashboardSummary = (output: any, context: __SerdeContext): DashboardSummary => { @@ -8045,7 +8064,7 @@ const deserializeAws_restJson1DetailedError = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DetailedErrors = (output: any, context: __SerdeContext): DetailedError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8053,6 +8072,7 @@ const deserializeAws_restJson1DetailedErrors = (output: any, context: __SerdeCon } return deserializeAws_restJson1DetailedError(entry, context); }); + return retVal; }; const deserializeAws_restJson1ErrorDetails = (output: any, context: __SerdeContext): ErrorDetails => { @@ -8077,7 +8097,7 @@ const deserializeAws_restJson1ExpressionVariable = (output: any, context: __Serd }; const deserializeAws_restJson1ExpressionVariables = (output: any, context: __SerdeContext): ExpressionVariable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8085,6 +8105,7 @@ const deserializeAws_restJson1ExpressionVariables = (output: any, context: __Ser } return deserializeAws_restJson1ExpressionVariable(entry, context); }); + return retVal; }; const deserializeAws_restJson1ForwardingConfig = (output: any, context: __SerdeContext): ForwardingConfig => { @@ -8097,7 +8118,7 @@ const deserializeAws_restJson1GatewayCapabilitySummaries = ( output: any, context: __SerdeContext ): GatewayCapabilitySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8105,6 +8126,7 @@ const deserializeAws_restJson1GatewayCapabilitySummaries = ( } return deserializeAws_restJson1GatewayCapabilitySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1GatewayCapabilitySummary = ( @@ -8131,7 +8153,7 @@ const deserializeAws_restJson1GatewayPlatform = (output: any, context: __SerdeCo }; const deserializeAws_restJson1GatewaySummaries = (output: any, context: __SerdeContext): GatewaySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8139,6 +8161,7 @@ const deserializeAws_restJson1GatewaySummaries = (output: any, context: __SerdeC } return deserializeAws_restJson1GatewaySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1GatewaySummary = (output: any, context: __SerdeContext): GatewaySummary => { @@ -8242,7 +8265,7 @@ const deserializeAws_restJson1InterpolatedAssetPropertyValues = ( output: any, context: __SerdeContext ): InterpolatedAssetPropertyValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8250,6 +8273,7 @@ const deserializeAws_restJson1InterpolatedAssetPropertyValues = ( } return deserializeAws_restJson1InterpolatedAssetPropertyValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1LoggingOptions = (output: any, context: __SerdeContext): LoggingOptions => { @@ -8348,7 +8372,7 @@ const deserializeAws_restJson1PortalStatus = (output: any, context: __SerdeConte }; const deserializeAws_restJson1PortalSummaries = (output: any, context: __SerdeContext): PortalSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8356,6 +8380,7 @@ const deserializeAws_restJson1PortalSummaries = (output: any, context: __SerdeCo } return deserializeAws_restJson1PortalSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1PortalSummary = (output: any, context: __SerdeContext): PortalSummary => { @@ -8387,7 +8412,7 @@ const deserializeAws_restJson1ProjectResource = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ProjectSummaries = (output: any, context: __SerdeContext): ProjectSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8395,6 +8420,7 @@ const deserializeAws_restJson1ProjectSummaries = (output: any, context: __SerdeC } return deserializeAws_restJson1ProjectSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProjectSummary = (output: any, context: __SerdeContext): ProjectSummary => { @@ -8499,7 +8525,7 @@ const deserializeAws_restJson1TimeInNanos = (output: any, context: __SerdeContex }; const deserializeAws_restJson1TimeSeriesSummaries = (output: any, context: __SerdeContext): TimeSeriesSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8507,6 +8533,7 @@ const deserializeAws_restJson1TimeSeriesSummaries = (output: any, context: __Ser } return deserializeAws_restJson1TimeSeriesSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TimeSeriesSummary = (output: any, context: __SerdeContext): TimeSeriesSummary => { @@ -8529,7 +8556,7 @@ const deserializeAws_restJson1TimeSeriesSummary = (output: any, context: __Serde }; const deserializeAws_restJson1Timestamps = (output: any, context: __SerdeContext): TimeInNanos[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8537,6 +8564,7 @@ const deserializeAws_restJson1Timestamps = (output: any, context: __SerdeContext } return deserializeAws_restJson1TimeInNanos(entry, context); }); + return retVal; }; const deserializeAws_restJson1Transform = (output: any, context: __SerdeContext): Transform => { diff --git a/clients/client-iotthingsgraph/src/protocols/Aws_json1_1.ts b/clients/client-iotthingsgraph/src/protocols/Aws_json1_1.ts index 8581e9acf5de..d8ce2379d9a1 100644 --- a/clients/client-iotthingsgraph/src/protocols/Aws_json1_1.ts +++ b/clients/client-iotthingsgraph/src/protocols/Aws_json1_1.ts @@ -3212,7 +3212,7 @@ const deserializeAws_json1_1DependencyRevision = (output: any, context: __SerdeC }; const deserializeAws_json1_1DependencyRevisions = (output: any, context: __SerdeContext): DependencyRevision[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3220,6 +3220,7 @@ const deserializeAws_json1_1DependencyRevisions = (output: any, context: __Serde } return deserializeAws_json1_1DependencyRevision(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeploySystemInstanceResponse = ( @@ -3286,7 +3287,7 @@ const deserializeAws_json1_1EntityDescription = (output: any, context: __SerdeCo }; const deserializeAws_json1_1EntityDescriptions = (output: any, context: __SerdeContext): EntityDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3294,6 +3295,7 @@ const deserializeAws_json1_1EntityDescriptions = (output: any, context: __SerdeC } return deserializeAws_json1_1EntityDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1FlowExecutionMessage = (output: any, context: __SerdeContext): FlowExecutionMessage => { @@ -3309,7 +3311,7 @@ const deserializeAws_json1_1FlowExecutionMessage = (output: any, context: __Serd }; const deserializeAws_json1_1FlowExecutionMessages = (output: any, context: __SerdeContext): FlowExecutionMessage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3317,10 +3319,11 @@ const deserializeAws_json1_1FlowExecutionMessages = (output: any, context: __Ser } return deserializeAws_json1_1FlowExecutionMessage(entry, context); }); + return retVal; }; const deserializeAws_json1_1FlowExecutionSummaries = (output: any, context: __SerdeContext): FlowExecutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3328,6 +3331,7 @@ const deserializeAws_json1_1FlowExecutionSummaries = (output: any, context: __Se } return deserializeAws_json1_1FlowExecutionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1FlowExecutionSummary = (output: any, context: __SerdeContext): FlowExecutionSummary => { @@ -3365,7 +3369,7 @@ const deserializeAws_json1_1FlowTemplateDescription = ( }; const deserializeAws_json1_1FlowTemplateSummaries = (output: any, context: __SerdeContext): FlowTemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3373,6 +3377,7 @@ const deserializeAws_json1_1FlowTemplateSummaries = (output: any, context: __Ser } return deserializeAws_json1_1FlowTemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1FlowTemplateSummary = (output: any, context: __SerdeContext): FlowTemplateSummary => { @@ -3646,7 +3651,7 @@ const deserializeAws_json1_1SearchThingsResponse = (output: any, context: __Serd }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3654,6 +3659,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SystemInstanceDescription = ( @@ -3687,7 +3693,7 @@ const deserializeAws_json1_1SystemInstanceSummaries = ( output: any, context: __SerdeContext ): SystemInstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3695,6 +3701,7 @@ const deserializeAws_json1_1SystemInstanceSummaries = ( } return deserializeAws_json1_1SystemInstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SystemInstanceSummary = (output: any, context: __SerdeContext): SystemInstanceSummary => { @@ -3738,7 +3745,7 @@ const deserializeAws_json1_1SystemTemplateSummaries = ( output: any, context: __SerdeContext ): SystemTemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3746,6 +3753,7 @@ const deserializeAws_json1_1SystemTemplateSummaries = ( } return deserializeAws_json1_1SystemTemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SystemTemplateSummary = (output: any, context: __SerdeContext): SystemTemplateSummary => { @@ -3768,7 +3776,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3776,6 +3784,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -3790,7 +3799,7 @@ const deserializeAws_json1_1Thing = (output: any, context: __SerdeContext): Thin }; const deserializeAws_json1_1Things = (output: any, context: __SerdeContext): Thing[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3798,6 +3807,7 @@ const deserializeAws_json1_1Things = (output: any, context: __SerdeContext): Thi } return deserializeAws_json1_1Thing(entry, context); }); + return retVal; }; const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { diff --git a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts index 2460cc6f1695..b68c3eda8e20 100644 --- a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts @@ -3642,7 +3642,7 @@ const deserializeAws_restJson1ComponentTypeSummaries = ( output: any, context: __SerdeContext ): ComponentTypeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3650,6 +3650,7 @@ const deserializeAws_restJson1ComponentTypeSummaries = ( } return deserializeAws_restJson1ComponentTypeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentTypeSummary = (output: any, context: __SerdeContext): ComponentTypeSummary => { @@ -3737,7 +3738,7 @@ const deserializeAws_restJson1DataValue = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1DataValueList = (output: any, context: __SerdeContext): DataValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3745,6 +3746,7 @@ const deserializeAws_restJson1DataValueList = (output: any, context: __SerdeCont } return deserializeAws_restJson1DataValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataValueMap = (output: any, context: __SerdeContext): { [key: string]: DataValue } => { @@ -3775,7 +3777,7 @@ const deserializeAws_restJson1EntityPropertyReference = ( }; const deserializeAws_restJson1EntitySummaries = (output: any, context: __SerdeContext): EntitySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3783,6 +3785,7 @@ const deserializeAws_restJson1EntitySummaries = (output: any, context: __SerdeCo } return deserializeAws_restJson1EntitySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1EntitySummary = (output: any, context: __SerdeContext): EntitySummary => { @@ -3816,7 +3819,7 @@ const deserializeAws_restJson1ErrorDetails = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ErrorEntries = (output: any, context: __SerdeContext): BatchPutPropertyErrorEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3824,10 +3827,11 @@ const deserializeAws_restJson1ErrorEntries = (output: any, context: __SerdeConte } return deserializeAws_restJson1BatchPutPropertyErrorEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1Errors = (output: any, context: __SerdeContext): BatchPutPropertyError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3835,10 +3839,11 @@ const deserializeAws_restJson1Errors = (output: any, context: __SerdeContext): B } return deserializeAws_restJson1BatchPutPropertyError(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExtendsFrom = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3846,6 +3851,7 @@ const deserializeAws_restJson1ExtendsFrom = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ExternalIdProperty = ( @@ -4040,7 +4046,7 @@ const deserializeAws_restJson1PropertyValueHistory = (output: any, context: __Se }; const deserializeAws_restJson1PropertyValueList = (output: any, context: __SerdeContext): PropertyValueHistory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4048,10 +4054,11 @@ const deserializeAws_restJson1PropertyValueList = (output: any, context: __Serde } return deserializeAws_restJson1PropertyValueHistory(entry, context); }); + return retVal; }; const deserializeAws_restJson1PropertyValues = (output: any, context: __SerdeContext): PropertyValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4059,6 +4066,7 @@ const deserializeAws_restJson1PropertyValues = (output: any, context: __SerdeCon } return deserializeAws_restJson1PropertyValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1Relationship = (output: any, context: __SerdeContext): Relationship => { @@ -4076,25 +4084,19 @@ const deserializeAws_restJson1RelationshipValue = (output: any, context: __Serde }; const deserializeAws_restJson1RequiredProperties = (output: any, context: __SerdeContext): string[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = __expectString(entry) as any; - if (uniqueValues.has(parsedEntry)) { - throw new TypeError('All elements of the set "com.amazonaws.iottwinmaker#RequiredProperties" must be unique.'); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SceneCapabilities = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4102,10 +4104,11 @@ const deserializeAws_restJson1SceneCapabilities = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SceneSummaries = (output: any, context: __SerdeContext): SceneSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4113,6 +4116,7 @@ const deserializeAws_restJson1SceneSummaries = (output: any, context: __SerdeCon } return deserializeAws_restJson1SceneSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SceneSummary = (output: any, context: __SerdeContext): SceneSummary => { @@ -4155,7 +4159,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1Values = (output: any, context: __SerdeContext): PropertyValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4163,10 +4167,11 @@ const deserializeAws_restJson1Values = (output: any, context: __SerdeContext): P } return deserializeAws_restJson1PropertyValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorkspaceSummaries = (output: any, context: __SerdeContext): WorkspaceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4174,6 +4179,7 @@ const deserializeAws_restJson1WorkspaceSummaries = (output: any, context: __Serd } return deserializeAws_restJson1WorkspaceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorkspaceSummary = (output: any, context: __SerdeContext): WorkspaceSummary => { diff --git a/clients/client-ivs/src/protocols/Aws_restJson1.ts b/clients/client-ivs/src/protocols/Aws_restJson1.ts index c1fc0ce2c4c2..8f9b4a35ac69 100644 --- a/clients/client-ivs/src/protocols/Aws_restJson1.ts +++ b/clients/client-ivs/src/protocols/Aws_restJson1.ts @@ -2549,7 +2549,7 @@ const deserializeAws_restJson1BatchError = (output: any, context: __SerdeContext }; const deserializeAws_restJson1BatchErrors = (output: any, context: __SerdeContext): BatchError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2557,6 +2557,7 @@ const deserializeAws_restJson1BatchErrors = (output: any, context: __SerdeContex } return deserializeAws_restJson1BatchError(entry, context); }); + return retVal; }; const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): Channel => { @@ -2577,7 +2578,7 @@ const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1ChannelList = (output: any, context: __SerdeContext): ChannelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2585,10 +2586,11 @@ const deserializeAws_restJson1ChannelList = (output: any, context: __SerdeContex } return deserializeAws_restJson1ChannelSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Channels = (output: any, context: __SerdeContext): Channel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2596,6 +2598,7 @@ const deserializeAws_restJson1Channels = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Channel(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelSummary = (output: any, context: __SerdeContext): ChannelSummary => { @@ -2653,7 +2656,7 @@ const deserializeAws_restJson1PlaybackKeyPairList = ( output: any, context: __SerdeContext ): PlaybackKeyPairSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2661,6 +2664,7 @@ const deserializeAws_restJson1PlaybackKeyPairList = ( } return deserializeAws_restJson1PlaybackKeyPairSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1PlaybackKeyPairSummary = ( @@ -2704,7 +2708,7 @@ const deserializeAws_restJson1RecordingConfigurationList = ( output: any, context: __SerdeContext ): RecordingConfigurationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2712,6 +2716,7 @@ const deserializeAws_restJson1RecordingConfigurationList = ( } return deserializeAws_restJson1RecordingConfigurationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecordingConfigurationSummary = ( @@ -2769,7 +2774,7 @@ const deserializeAws_restJson1StreamEvent = (output: any, context: __SerdeContex }; const deserializeAws_restJson1StreamEvents = (output: any, context: __SerdeContext): StreamEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2777,6 +2782,7 @@ const deserializeAws_restJson1StreamEvents = (output: any, context: __SerdeConte } return deserializeAws_restJson1StreamEvent(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamKey = (output: any, context: __SerdeContext): StreamKey => { @@ -2792,7 +2798,7 @@ const deserializeAws_restJson1StreamKey = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1StreamKeyList = (output: any, context: __SerdeContext): StreamKeySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2800,10 +2806,11 @@ const deserializeAws_restJson1StreamKeyList = (output: any, context: __SerdeCont } return deserializeAws_restJson1StreamKeySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamKeys = (output: any, context: __SerdeContext): StreamKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2811,6 +2818,7 @@ const deserializeAws_restJson1StreamKeys = (output: any, context: __SerdeContext } return deserializeAws_restJson1StreamKey(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamKeySummary = (output: any, context: __SerdeContext): StreamKeySummary => { @@ -2825,7 +2833,7 @@ const deserializeAws_restJson1StreamKeySummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1StreamList = (output: any, context: __SerdeContext): StreamSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2833,6 +2841,7 @@ const deserializeAws_restJson1StreamList = (output: any, context: __SerdeContext } return deserializeAws_restJson1StreamSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamSession = (output: any, context: __SerdeContext): StreamSession => { @@ -2866,7 +2875,7 @@ const deserializeAws_restJson1StreamSession = (output: any, context: __SerdeCont }; const deserializeAws_restJson1StreamSessionList = (output: any, context: __SerdeContext): StreamSessionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2874,6 +2883,7 @@ const deserializeAws_restJson1StreamSessionList = (output: any, context: __Serde } return deserializeAws_restJson1StreamSessionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamSessionSummary = (output: any, context: __SerdeContext): StreamSessionSummary => { diff --git a/clients/client-kafka/src/protocols/Aws_restJson1.ts b/clients/client-kafka/src/protocols/Aws_restJson1.ts index 594ef09f9930..3a2d94bafd53 100644 --- a/clients/client-kafka/src/protocols/Aws_restJson1.ts +++ b/clients/client-kafka/src/protocols/Aws_restJson1.ts @@ -4042,7 +4042,7 @@ const serializeAws_restJson1VpcConfig = (input: VpcConfig, context: __SerdeConte }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4050,13 +4050,14 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfBrokerEBSVolumeInfo = ( output: any, context: __SerdeContext ): BrokerEBSVolumeInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4064,10 +4065,11 @@ const deserializeAws_restJson1__listOfBrokerEBSVolumeInfo = ( } return deserializeAws_restJson1BrokerEBSVolumeInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCluster = (output: any, context: __SerdeContext): Cluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4075,10 +4077,11 @@ const deserializeAws_restJson1__listOfCluster = (output: any, context: __SerdeCo } return deserializeAws_restJson1Cluster(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfClusterInfo = (output: any, context: __SerdeContext): ClusterInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4086,13 +4089,14 @@ const deserializeAws_restJson1__listOfClusterInfo = (output: any, context: __Ser } return deserializeAws_restJson1ClusterInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfClusterOperationInfo = ( output: any, context: __SerdeContext ): ClusterOperationInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4100,13 +4104,14 @@ const deserializeAws_restJson1__listOfClusterOperationInfo = ( } return deserializeAws_restJson1ClusterOperationInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfClusterOperationStep = ( output: any, context: __SerdeContext ): ClusterOperationStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4114,13 +4119,14 @@ const deserializeAws_restJson1__listOfClusterOperationStep = ( } return deserializeAws_restJson1ClusterOperationStep(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCompatibleKafkaVersion = ( output: any, context: __SerdeContext ): CompatibleKafkaVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4128,10 +4134,11 @@ const deserializeAws_restJson1__listOfCompatibleKafkaVersion = ( } return deserializeAws_restJson1CompatibleKafkaVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfConfiguration = (output: any, context: __SerdeContext): Configuration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4139,13 +4146,14 @@ const deserializeAws_restJson1__listOfConfiguration = (output: any, context: __S } return deserializeAws_restJson1Configuration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfConfigurationRevision = ( output: any, context: __SerdeContext ): ConfigurationRevision[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4153,10 +4161,11 @@ const deserializeAws_restJson1__listOfConfigurationRevision = ( } return deserializeAws_restJson1ConfigurationRevision(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfKafkaVersion = (output: any, context: __SerdeContext): KafkaVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4164,10 +4173,11 @@ const deserializeAws_restJson1__listOfKafkaVersion = (output: any, context: __Se } return deserializeAws_restJson1KafkaVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfNodeInfo = (output: any, context: __SerdeContext): NodeInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4175,13 +4185,14 @@ const deserializeAws_restJson1__listOfNodeInfo = (output: any, context: __SerdeC } return deserializeAws_restJson1NodeInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfUnprocessedScramSecret = ( output: any, context: __SerdeContext ): UnprocessedScramSecret[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4189,10 +4200,11 @@ const deserializeAws_restJson1__listOfUnprocessedScramSecret = ( } return deserializeAws_restJson1UnprocessedScramSecret(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfVpcConfig = (output: any, context: __SerdeContext): VpcConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4200,6 +4212,7 @@ const deserializeAws_restJson1__listOfVpcConfig = (output: any, context: __Serde } return deserializeAws_restJson1VpcConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts b/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts index 3ccc948b8a39..94319d782cae 100644 --- a/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts +++ b/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts @@ -1708,7 +1708,7 @@ const serializeAws_restJson1WorkerLogDelivery = (input: WorkerLogDelivery, conte }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1716,10 +1716,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfConnectorSummary = (output: any, context: __SerdeContext): ConnectorSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1727,13 +1728,14 @@ const deserializeAws_restJson1__listOfConnectorSummary = (output: any, context: } return deserializeAws_restJson1ConnectorSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCustomPluginSummary = ( output: any, context: __SerdeContext ): CustomPluginSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1741,13 +1743,14 @@ const deserializeAws_restJson1__listOfCustomPluginSummary = ( } return deserializeAws_restJson1CustomPluginSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfPluginDescription = ( output: any, context: __SerdeContext ): PluginDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1755,13 +1758,14 @@ const deserializeAws_restJson1__listOfPluginDescription = ( } return deserializeAws_restJson1PluginDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfWorkerConfigurationSummary = ( output: any, context: __SerdeContext ): WorkerConfigurationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1769,6 +1773,7 @@ const deserializeAws_restJson1__listOfWorkerConfigurationSummary = ( } return deserializeAws_restJson1WorkerConfigurationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-kendra/src/protocols/Aws_json1_1.ts b/clients/client-kendra/src/protocols/Aws_json1_1.ts index a62d932c6540..462c0d1c13e3 100644 --- a/clients/client-kendra/src/protocols/Aws_json1_1.ts +++ b/clients/client-kendra/src/protocols/Aws_json1_1.ts @@ -7074,7 +7074,7 @@ const deserializeAws_json1_1AdditionalResultAttributeList = ( output: any, context: __SerdeContext ): AdditionalResultAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7082,6 +7082,7 @@ const deserializeAws_json1_1AdditionalResultAttributeList = ( } return deserializeAws_json1_1AdditionalResultAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1AdditionalResultAttributeValue = ( @@ -7100,7 +7101,7 @@ const deserializeAws_json1_1AssociateEntitiesToExperienceFailedEntityList = ( output: any, context: __SerdeContext ): FailedEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7108,6 +7109,7 @@ const deserializeAws_json1_1AssociateEntitiesToExperienceFailedEntityList = ( } return deserializeAws_json1_1FailedEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociateEntitiesToExperienceResponse = ( @@ -7161,7 +7163,7 @@ const deserializeAws_json1_1BasicAuthenticationConfigurationList = ( output: any, context: __SerdeContext ): BasicAuthenticationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7169,6 +7171,7 @@ const deserializeAws_json1_1BasicAuthenticationConfigurationList = ( } return deserializeAws_json1_1BasicAuthenticationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchDeleteDocumentResponse = ( @@ -7198,7 +7201,7 @@ const deserializeAws_json1_1BatchDeleteDocumentResponseFailedDocuments = ( output: any, context: __SerdeContext ): BatchDeleteDocumentResponseFailedDocument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7206,6 +7209,7 @@ const deserializeAws_json1_1BatchDeleteDocumentResponseFailedDocuments = ( } return deserializeAws_json1_1BatchDeleteDocumentResponseFailedDocument(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchGetDocumentStatusResponse = ( @@ -7239,7 +7243,7 @@ const deserializeAws_json1_1BatchGetDocumentStatusResponseErrors = ( output: any, context: __SerdeContext ): BatchGetDocumentStatusResponseError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7247,6 +7251,7 @@ const deserializeAws_json1_1BatchGetDocumentStatusResponseErrors = ( } return deserializeAws_json1_1BatchGetDocumentStatusResponseError(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchPutDocumentResponse = ( @@ -7276,7 +7281,7 @@ const deserializeAws_json1_1BatchPutDocumentResponseFailedDocuments = ( output: any, context: __SerdeContext ): BatchPutDocumentResponseFailedDocument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7284,6 +7289,7 @@ const deserializeAws_json1_1BatchPutDocumentResponseFailedDocuments = ( } return deserializeAws_json1_1BatchPutDocumentResponseFailedDocument(entry, context); }); + return retVal; }; const deserializeAws_json1_1CapacityUnitsConfiguration = ( @@ -7297,7 +7303,7 @@ const deserializeAws_json1_1CapacityUnitsConfiguration = ( }; const deserializeAws_json1_1ChangeDetectingColumns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7305,6 +7311,7 @@ const deserializeAws_json1_1ChangeDetectingColumns = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ColumnConfiguration = (output: any, context: __SerdeContext): ColumnConfiguration => { @@ -7346,7 +7353,7 @@ const deserializeAws_json1_1ConfluenceAttachmentFieldMappingsList = ( output: any, context: __SerdeContext ): ConfluenceAttachmentToIndexFieldMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7354,6 +7361,7 @@ const deserializeAws_json1_1ConfluenceAttachmentFieldMappingsList = ( } return deserializeAws_json1_1ConfluenceAttachmentToIndexFieldMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfluenceAttachmentToIndexFieldMapping = ( @@ -7383,7 +7391,7 @@ const deserializeAws_json1_1ConfluenceBlogFieldMappingsList = ( output: any, context: __SerdeContext ): ConfluenceBlogToIndexFieldMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7391,6 +7399,7 @@ const deserializeAws_json1_1ConfluenceBlogFieldMappingsList = ( } return deserializeAws_json1_1ConfluenceBlogToIndexFieldMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfluenceBlogToIndexFieldMapping = ( @@ -7459,7 +7468,7 @@ const deserializeAws_json1_1ConfluencePageFieldMappingsList = ( output: any, context: __SerdeContext ): ConfluencePageToIndexFieldMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7467,6 +7476,7 @@ const deserializeAws_json1_1ConfluencePageFieldMappingsList = ( } return deserializeAws_json1_1ConfluencePageToIndexFieldMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfluencePageToIndexFieldMapping = ( @@ -7506,7 +7516,7 @@ const deserializeAws_json1_1ConfluenceSpaceFieldMappingsList = ( output: any, context: __SerdeContext ): ConfluenceSpaceToIndexFieldMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7514,10 +7524,11 @@ const deserializeAws_json1_1ConfluenceSpaceFieldMappingsList = ( } return deserializeAws_json1_1ConfluenceSpaceToIndexFieldMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConfluenceSpaceList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7525,6 +7536,7 @@ const deserializeAws_json1_1ConfluenceSpaceList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ConfluenceSpaceToIndexFieldMapping = ( @@ -7716,7 +7728,7 @@ const deserializeAws_json1_1DataSourceConfiguration = ( }; const deserializeAws_json1_1DataSourceIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7724,13 +7736,14 @@ const deserializeAws_json1_1DataSourceIdList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DataSourceInclusionsExclusionsStrings = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7738,6 +7751,7 @@ const deserializeAws_json1_1DataSourceInclusionsExclusionsStrings = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DataSourceSummary = (output: any, context: __SerdeContext): DataSourceSummary => { @@ -7759,7 +7773,7 @@ const deserializeAws_json1_1DataSourceSummary = (output: any, context: __SerdeCo }; const deserializeAws_json1_1DataSourceSummaryList = (output: any, context: __SerdeContext): DataSourceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7767,6 +7781,7 @@ const deserializeAws_json1_1DataSourceSummaryList = (output: any, context: __Ser } return deserializeAws_json1_1DataSourceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataSourceSyncJob = (output: any, context: __SerdeContext): DataSourceSyncJob => { @@ -7795,7 +7810,7 @@ const deserializeAws_json1_1DataSourceSyncJobHistoryList = ( output: any, context: __SerdeContext ): DataSourceSyncJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7803,6 +7818,7 @@ const deserializeAws_json1_1DataSourceSyncJobHistoryList = ( } return deserializeAws_json1_1DataSourceSyncJob(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataSourceSyncJobMetrics = ( @@ -7833,7 +7849,7 @@ const deserializeAws_json1_1DataSourceToIndexFieldMappingList = ( output: any, context: __SerdeContext ): DataSourceToIndexFieldMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7841,6 +7857,7 @@ const deserializeAws_json1_1DataSourceToIndexFieldMappingList = ( } return deserializeAws_json1_1DataSourceToIndexFieldMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataSourceVpcConfiguration = ( @@ -8152,7 +8169,7 @@ const deserializeAws_json1_1DocumentAttributeCondition = ( }; const deserializeAws_json1_1DocumentAttributeList = (output: any, context: __SerdeContext): DocumentAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8160,10 +8177,11 @@ const deserializeAws_json1_1DocumentAttributeList = (output: any, context: __Ser } return deserializeAws_json1_1DocumentAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentAttributeStringListValue = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8171,6 +8189,7 @@ const deserializeAws_json1_1DocumentAttributeStringListValue = (output: any, con } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DocumentAttributeTarget = ( @@ -8219,7 +8238,7 @@ const deserializeAws_json1_1DocumentAttributeValueCountPairList = ( output: any, context: __SerdeContext ): DocumentAttributeValueCountPair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8227,6 +8246,7 @@ const deserializeAws_json1_1DocumentAttributeValueCountPairList = ( } return deserializeAws_json1_1DocumentAttributeValueCountPair(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentMetadataConfiguration = ( @@ -8251,7 +8271,7 @@ const deserializeAws_json1_1DocumentMetadataConfigurationList = ( output: any, context: __SerdeContext ): DocumentMetadataConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8259,6 +8279,7 @@ const deserializeAws_json1_1DocumentMetadataConfigurationList = ( } return deserializeAws_json1_1DocumentMetadataConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentsMetadataConfiguration = ( @@ -8271,7 +8292,7 @@ const deserializeAws_json1_1DocumentsMetadataConfiguration = ( }; const deserializeAws_json1_1DocumentStatusList = (output: any, context: __SerdeContext): Status[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8279,6 +8300,7 @@ const deserializeAws_json1_1DocumentStatusList = (output: any, context: __SerdeC } return deserializeAws_json1_1Status(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntityDisplayData = (output: any, context: __SerdeContext): EntityDisplayData => { @@ -8292,7 +8314,7 @@ const deserializeAws_json1_1EntityDisplayData = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ExcludeMimeTypesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8300,10 +8322,11 @@ const deserializeAws_json1_1ExcludeMimeTypesList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ExcludeSharedDrivesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8311,10 +8334,11 @@ const deserializeAws_json1_1ExcludeSharedDrivesList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ExcludeUserAccountsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8322,6 +8346,7 @@ const deserializeAws_json1_1ExcludeUserAccountsList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ExperienceConfiguration = ( @@ -8348,7 +8373,7 @@ const deserializeAws_json1_1ExperienceEndpoint = (output: any, context: __SerdeC }; const deserializeAws_json1_1ExperienceEndpoints = (output: any, context: __SerdeContext): ExperienceEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8356,6 +8381,7 @@ const deserializeAws_json1_1ExperienceEndpoints = (output: any, context: __Serde } return deserializeAws_json1_1ExperienceEndpoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExperienceEntitiesSummary = ( @@ -8376,7 +8402,7 @@ const deserializeAws_json1_1ExperienceEntitiesSummaryList = ( output: any, context: __SerdeContext ): ExperienceEntitiesSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8384,6 +8410,7 @@ const deserializeAws_json1_1ExperienceEntitiesSummaryList = ( } return deserializeAws_json1_1ExperienceEntitiesSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExperiencesSummary = (output: any, context: __SerdeContext): ExperiencesSummary => { @@ -8403,7 +8430,7 @@ const deserializeAws_json1_1ExperiencesSummary = (output: any, context: __SerdeC }; const deserializeAws_json1_1ExperiencesSummaryList = (output: any, context: __SerdeContext): ExperiencesSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8411,6 +8438,7 @@ const deserializeAws_json1_1ExperiencesSummaryList = (output: any, context: __Se } return deserializeAws_json1_1ExperiencesSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1FacetResult = (output: any, context: __SerdeContext): FacetResult => { @@ -8425,7 +8453,7 @@ const deserializeAws_json1_1FacetResult = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1FacetResultList = (output: any, context: __SerdeContext): FacetResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8433,6 +8461,7 @@ const deserializeAws_json1_1FacetResultList = (output: any, context: __SerdeCont } return deserializeAws_json1_1FacetResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedEntity = (output: any, context: __SerdeContext): FailedEntity => { @@ -8443,7 +8472,7 @@ const deserializeAws_json1_1FailedEntity = (output: any, context: __SerdeContext }; const deserializeAws_json1_1FailedEntityList = (output: any, context: __SerdeContext): FailedEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8451,10 +8480,11 @@ const deserializeAws_json1_1FailedEntityList = (output: any, context: __SerdeCon } return deserializeAws_json1_1FailedEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1FaqIdsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8462,6 +8492,7 @@ const deserializeAws_json1_1FaqIdsList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FaqStatistics = (output: any, context: __SerdeContext): FaqStatistics => { @@ -8489,7 +8520,7 @@ const deserializeAws_json1_1FaqSummary = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1FaqSummaryItems = (output: any, context: __SerdeContext): FaqSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8497,6 +8528,7 @@ const deserializeAws_json1_1FaqSummaryItems = (output: any, context: __SerdeCont } return deserializeAws_json1_1FaqSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1FsxConfiguration = (output: any, context: __SerdeContext): FsxConfiguration => { @@ -8591,7 +8623,7 @@ const deserializeAws_json1_1GroupOrderingIdSummaries = ( output: any, context: __SerdeContext ): GroupOrderingIdSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8599,6 +8631,7 @@ const deserializeAws_json1_1GroupOrderingIdSummaries = ( } return deserializeAws_json1_1GroupOrderingIdSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1GroupOrderingIdSummary = (output: any, context: __SerdeContext): GroupOrderingIdSummary => { @@ -8634,7 +8667,7 @@ const deserializeAws_json1_1Highlight = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1HighlightList = (output: any, context: __SerdeContext): Highlight[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8642,6 +8675,7 @@ const deserializeAws_json1_1HighlightList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Highlight(entry, context); }); + return retVal; }; const deserializeAws_json1_1HookConfiguration = (output: any, context: __SerdeContext): HookConfiguration => { @@ -8679,7 +8713,7 @@ const deserializeAws_json1_1IndexConfigurationSummaryList = ( output: any, context: __SerdeContext ): IndexConfigurationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8687,6 +8721,7 @@ const deserializeAws_json1_1IndexConfigurationSummaryList = ( } return deserializeAws_json1_1IndexConfigurationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1IndexStatistics = (output: any, context: __SerdeContext): IndexStatistics => { @@ -8723,7 +8758,7 @@ const deserializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList = ( output: any, context: __SerdeContext ): InlineCustomDocumentEnrichmentConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8731,6 +8766,7 @@ const deserializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList = ( } return deserializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalServerException = ( @@ -8875,7 +8911,7 @@ const deserializeAws_json1_1ListIndicesResponse = (output: any, context: __Serde }; const deserializeAws_json1_1ListOfGroupSummaries = (output: any, context: __SerdeContext): GroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8883,6 +8919,7 @@ const deserializeAws_json1_1ListOfGroupSummaries = (output: any, context: __Serd } return deserializeAws_json1_1GroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListQuerySuggestionsBlockListsResponse = ( @@ -8945,7 +8982,7 @@ const deserializeAws_json1_1OneDriveConfiguration = (output: any, context: __Ser }; const deserializeAws_json1_1OneDriveUserList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8953,6 +8990,7 @@ const deserializeAws_json1_1OneDriveUserList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OneDriveUsers = (output: any, context: __SerdeContext): OneDriveUsers => { @@ -8984,7 +9022,7 @@ const deserializeAws_json1_1PersonasSummary = (output: any, context: __SerdeCont }; const deserializeAws_json1_1PersonasSummaryList = (output: any, context: __SerdeContext): PersonasSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8992,6 +9030,7 @@ const deserializeAws_json1_1PersonasSummaryList = (output: any, context: __Serde } return deserializeAws_json1_1PersonasSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProxyConfiguration = (output: any, context: __SerdeContext): ProxyConfiguration => { @@ -9052,7 +9091,7 @@ const deserializeAws_json1_1QueryResultItem = (output: any, context: __SerdeCont }; const deserializeAws_json1_1QueryResultItemList = (output: any, context: __SerdeContext): QueryResultItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9060,6 +9099,7 @@ const deserializeAws_json1_1QueryResultItemList = (output: any, context: __Serde } return deserializeAws_json1_1QueryResultItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1QuerySuggestionsBlockListSummary = ( @@ -9086,7 +9126,7 @@ const deserializeAws_json1_1QuerySuggestionsBlockListSummaryItems = ( output: any, context: __SerdeContext ): QuerySuggestionsBlockListSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9094,6 +9134,7 @@ const deserializeAws_json1_1QuerySuggestionsBlockListSummaryItems = ( } return deserializeAws_json1_1QuerySuggestionsBlockListSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1Relevance = (output: any, context: __SerdeContext): Relevance => { @@ -9200,7 +9241,7 @@ const deserializeAws_json1_1SalesforceChatterFeedIncludeFilterTypes = ( output: any, context: __SerdeContext ): (SalesforceChatterFeedIncludeFilterType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9208,6 +9249,7 @@ const deserializeAws_json1_1SalesforceChatterFeedIncludeFilterTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SalesforceConfiguration = ( @@ -9268,7 +9310,7 @@ const deserializeAws_json1_1SalesforceCustomKnowledgeArticleTypeConfigurationLis output: any, context: __SerdeContext ): SalesforceCustomKnowledgeArticleTypeConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9276,6 +9318,7 @@ const deserializeAws_json1_1SalesforceCustomKnowledgeArticleTypeConfigurationLis } return deserializeAws_json1_1SalesforceCustomKnowledgeArticleTypeConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1SalesforceKnowledgeArticleConfiguration = ( @@ -9310,7 +9353,7 @@ const deserializeAws_json1_1SalesforceKnowledgeArticleStateList = ( output: any, context: __SerdeContext ): (SalesforceKnowledgeArticleState | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9318,6 +9361,7 @@ const deserializeAws_json1_1SalesforceKnowledgeArticleStateList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SalesforceStandardKnowledgeArticleTypeConfiguration = ( @@ -9366,7 +9410,7 @@ const deserializeAws_json1_1SalesforceStandardObjectConfigurationList = ( output: any, context: __SerdeContext ): SalesforceStandardObjectConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9374,6 +9418,7 @@ const deserializeAws_json1_1SalesforceStandardObjectConfigurationList = ( } return deserializeAws_json1_1SalesforceStandardObjectConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ScoreAttributes = (output: any, context: __SerdeContext): ScoreAttributes => { @@ -9392,7 +9437,7 @@ const deserializeAws_json1_1Search = (output: any, context: __SerdeContext): Sea }; const deserializeAws_json1_1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9400,6 +9445,7 @@ const deserializeAws_json1_1SecurityGroupIdList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SeedUrlConfiguration = (output: any, context: __SerdeContext): SeedUrlConfiguration => { @@ -9413,7 +9459,7 @@ const deserializeAws_json1_1SeedUrlConfiguration = (output: any, context: __Serd }; const deserializeAws_json1_1SeedUrlList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9421,6 +9467,7 @@ const deserializeAws_json1_1SeedUrlList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ServerSideEncryptionConfiguration = ( @@ -9547,7 +9594,7 @@ const deserializeAws_json1_1SharePointConfiguration = ( }; const deserializeAws_json1_1SharePointUrlList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9555,6 +9602,7 @@ const deserializeAws_json1_1SharePointUrlList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SiteMapsConfiguration = (output: any, context: __SerdeContext): SiteMapsConfiguration => { @@ -9567,7 +9615,7 @@ const deserializeAws_json1_1SiteMapsConfiguration = (output: any, context: __Ser }; const deserializeAws_json1_1SiteMapsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9575,10 +9623,11 @@ const deserializeAws_json1_1SiteMapsList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SnapshotsDataHeaderFields = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9586,10 +9635,11 @@ const deserializeAws_json1_1SnapshotsDataHeaderFields = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SnapshotsDataRecord = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9597,10 +9647,11 @@ const deserializeAws_json1_1SnapshotsDataRecord = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SnapshotsDataRecords = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9608,6 +9659,7 @@ const deserializeAws_json1_1SnapshotsDataRecords = (output: any, context: __Serd } return deserializeAws_json1_1SnapshotsDataRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1SqlConfiguration = (output: any, context: __SerdeContext): SqlConfiguration => { @@ -9635,7 +9687,7 @@ const deserializeAws_json1_1Status = (output: any, context: __SerdeContext): Sta }; const deserializeAws_json1_1SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9643,6 +9695,7 @@ const deserializeAws_json1_1SubnetIdList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Suggestion = (output: any, context: __SerdeContext): Suggestion => { @@ -9663,7 +9716,7 @@ const deserializeAws_json1_1SuggestionHighlight = (output: any, context: __Serde }; const deserializeAws_json1_1SuggestionHighlightList = (output: any, context: __SerdeContext): SuggestionHighlight[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9671,10 +9724,11 @@ const deserializeAws_json1_1SuggestionHighlightList = (output: any, context: __S } return deserializeAws_json1_1SuggestionHighlight(entry, context); }); + return retVal; }; const deserializeAws_json1_1SuggestionList = (output: any, context: __SerdeContext): Suggestion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9682,6 +9736,7 @@ const deserializeAws_json1_1SuggestionList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Suggestion(entry, context); }); + return retVal; }; const deserializeAws_json1_1SuggestionTextWithHighlights = ( @@ -9714,7 +9769,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9722,6 +9777,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -9762,7 +9818,7 @@ const deserializeAws_json1_1ThesaurusSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ThesaurusSummaryItems = (output: any, context: __SerdeContext): ThesaurusSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9770,6 +9826,7 @@ const deserializeAws_json1_1ThesaurusSummaryItems = (output: any, context: __Ser } return deserializeAws_json1_1ThesaurusSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { @@ -9843,7 +9900,7 @@ const deserializeAws_json1_1UserTokenConfigurationList = ( output: any, context: __SerdeContext ): UserTokenConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9851,6 +9908,7 @@ const deserializeAws_json1_1UserTokenConfigurationList = ( } return deserializeAws_json1_1UserTokenConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => { @@ -9879,7 +9937,7 @@ const deserializeAws_json1_1Warning = (output: any, context: __SerdeContext): Wa }; const deserializeAws_json1_1WarningList = (output: any, context: __SerdeContext): Warning[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9887,6 +9945,7 @@ const deserializeAws_json1_1WarningList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Warning(entry, context); }); + return retVal; }; const deserializeAws_json1_1WebCrawlerConfiguration = ( diff --git a/clients/client-kinesis-analytics-v2/src/protocols/Aws_json1_1.ts b/clients/client-kinesis-analytics-v2/src/protocols/Aws_json1_1.ts index 89e21fe86255..7ac08fd305fd 100644 --- a/clients/client-kinesis-analytics-v2/src/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis-analytics-v2/src/protocols/Aws_json1_1.ts @@ -4616,7 +4616,7 @@ const deserializeAws_json1_1ApplicationSnapshotConfigurationDescription = ( }; const deserializeAws_json1_1ApplicationSummaries = (output: any, context: __SerdeContext): ApplicationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4624,6 +4624,7 @@ const deserializeAws_json1_1ApplicationSummaries = (output: any, context: __Serd } return deserializeAws_json1_1ApplicationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ApplicationSummary = (output: any, context: __SerdeContext): ApplicationSummary => { @@ -4641,7 +4642,7 @@ const deserializeAws_json1_1ApplicationVersionSummaries = ( output: any, context: __SerdeContext ): ApplicationVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4649,6 +4650,7 @@ const deserializeAws_json1_1ApplicationVersionSummaries = ( } return deserializeAws_json1_1ApplicationVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ApplicationVersionSummary = ( @@ -4704,7 +4706,7 @@ const deserializeAws_json1_1CloudWatchLoggingOptionDescriptions = ( output: any, context: __SerdeContext ): CloudWatchLoggingOptionDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4712,6 +4714,7 @@ const deserializeAws_json1_1CloudWatchLoggingOptionDescriptions = ( } return deserializeAws_json1_1CloudWatchLoggingOptionDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1CodeContentDescription = (output: any, context: __SerdeContext): CodeContentDescription => { @@ -4803,7 +4806,7 @@ const deserializeAws_json1_1CustomArtifactsConfigurationDescriptionList = ( output: any, context: __SerdeContext ): CustomArtifactConfigurationDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4811,6 +4814,7 @@ const deserializeAws_json1_1CustomArtifactsConfigurationDescriptionList = ( } return deserializeAws_json1_1CustomArtifactConfigurationDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionResponse = ( @@ -5008,7 +5012,7 @@ const deserializeAws_json1_1GlueDataCatalogConfigurationDescription = ( }; const deserializeAws_json1_1InAppStreamNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5016,6 +5020,7 @@ const deserializeAws_json1_1InAppStreamNames = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InputDescription = (output: any, context: __SerdeContext): InputDescription => { @@ -5058,7 +5063,7 @@ const deserializeAws_json1_1InputDescription = (output: any, context: __SerdeCon }; const deserializeAws_json1_1InputDescriptions = (output: any, context: __SerdeContext): InputDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5066,6 +5071,7 @@ const deserializeAws_json1_1InputDescriptions = (output: any, context: __SerdeCo } return deserializeAws_json1_1InputDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1InputLambdaProcessorDescription = ( @@ -5299,7 +5305,7 @@ const deserializeAws_json1_1OutputDescription = (output: any, context: __SerdeCo }; const deserializeAws_json1_1OutputDescriptions = (output: any, context: __SerdeContext): OutputDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5307,6 +5313,7 @@ const deserializeAws_json1_1OutputDescriptions = (output: any, context: __SerdeC } return deserializeAws_json1_1OutputDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParallelismConfigurationDescription = ( @@ -5323,7 +5330,7 @@ const deserializeAws_json1_1ParallelismConfigurationDescription = ( }; const deserializeAws_json1_1ParsedInputRecord = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5331,10 +5338,11 @@ const deserializeAws_json1_1ParsedInputRecord = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ParsedInputRecords = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5342,10 +5350,11 @@ const deserializeAws_json1_1ParsedInputRecords = (output: any, context: __SerdeC } return deserializeAws_json1_1ParsedInputRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProcessedInputRecords = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5353,6 +5362,7 @@ const deserializeAws_json1_1ProcessedInputRecords = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PropertyGroup = (output: any, context: __SerdeContext): PropertyGroup => { @@ -5366,7 +5376,7 @@ const deserializeAws_json1_1PropertyGroup = (output: any, context: __SerdeContex }; const deserializeAws_json1_1PropertyGroups = (output: any, context: __SerdeContext): PropertyGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5374,6 +5384,7 @@ const deserializeAws_json1_1PropertyGroups = (output: any, context: __SerdeConte } return deserializeAws_json1_1PropertyGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1PropertyMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -5389,7 +5400,7 @@ const deserializeAws_json1_1PropertyMap = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1RawInputRecords = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5397,6 +5408,7 @@ const deserializeAws_json1_1RawInputRecords = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RecordColumn = (output: any, context: __SerdeContext): RecordColumn => { @@ -5408,7 +5420,7 @@ const deserializeAws_json1_1RecordColumn = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RecordColumns = (output: any, context: __SerdeContext): RecordColumn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5416,6 +5428,7 @@ const deserializeAws_json1_1RecordColumns = (output: any, context: __SerdeContex } return deserializeAws_json1_1RecordColumn(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecordFormat = (output: any, context: __SerdeContext): RecordFormat => { @@ -5450,7 +5463,7 @@ const deserializeAws_json1_1ReferenceDataSourceDescriptions = ( output: any, context: __SerdeContext ): ReferenceDataSourceDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5458,6 +5471,7 @@ const deserializeAws_json1_1ReferenceDataSourceDescriptions = ( } return deserializeAws_json1_1ReferenceDataSourceDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => { @@ -5557,7 +5571,7 @@ const deserializeAws_json1_1S3ReferenceDataSourceDescription = ( }; const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5565,6 +5579,7 @@ const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ServiceUnavailableException = ( @@ -5589,7 +5604,7 @@ const deserializeAws_json1_1SnapshotDetails = (output: any, context: __SerdeCont }; const deserializeAws_json1_1SnapshotSummaries = (output: any, context: __SerdeContext): SnapshotDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5597,6 +5612,7 @@ const deserializeAws_json1_1SnapshotSummaries = (output: any, context: __SerdeCo } return deserializeAws_json1_1SnapshotDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1SourceSchema = (output: any, context: __SerdeContext): SourceSchema => { @@ -5648,7 +5664,7 @@ const deserializeAws_json1_1StopApplicationResponse = ( }; const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5656,6 +5672,7 @@ const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -5670,7 +5687,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5678,6 +5695,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => { @@ -5767,7 +5785,7 @@ const deserializeAws_json1_1VpcConfigurationDescriptions = ( output: any, context: __SerdeContext ): VpcConfigurationDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5775,6 +5793,7 @@ const deserializeAws_json1_1VpcConfigurationDescriptions = ( } return deserializeAws_json1_1VpcConfigurationDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1ZeppelinApplicationConfigurationDescription = ( diff --git a/clients/client-kinesis-analytics/src/protocols/Aws_json1_1.ts b/clients/client-kinesis-analytics/src/protocols/Aws_json1_1.ts index f3b543cf4bdd..cb0f71378ebe 100644 --- a/clients/client-kinesis-analytics/src/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis-analytics/src/protocols/Aws_json1_1.ts @@ -2621,7 +2621,7 @@ const deserializeAws_json1_1ApplicationDetail = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ApplicationSummaries = (output: any, context: __SerdeContext): ApplicationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2629,6 +2629,7 @@ const deserializeAws_json1_1ApplicationSummaries = (output: any, context: __Serd } return deserializeAws_json1_1ApplicationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ApplicationSummary = (output: any, context: __SerdeContext): ApplicationSummary => { @@ -2654,7 +2655,7 @@ const deserializeAws_json1_1CloudWatchLoggingOptionDescriptions = ( output: any, context: __SerdeContext ): CloudWatchLoggingOptionDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2662,6 +2663,7 @@ const deserializeAws_json1_1CloudWatchLoggingOptionDescriptions = ( } return deserializeAws_json1_1CloudWatchLoggingOptionDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1CodeValidationException = ( @@ -2779,7 +2781,7 @@ const deserializeAws_json1_1DiscoverInputSchemaResponse = ( }; const deserializeAws_json1_1InAppStreamNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2787,6 +2789,7 @@ const deserializeAws_json1_1InAppStreamNames = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InputDescription = (output: any, context: __SerdeContext): InputDescription => { @@ -2829,7 +2832,7 @@ const deserializeAws_json1_1InputDescription = (output: any, context: __SerdeCon }; const deserializeAws_json1_1InputDescriptions = (output: any, context: __SerdeContext): InputDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2837,6 +2840,7 @@ const deserializeAws_json1_1InputDescriptions = (output: any, context: __SerdeCo } return deserializeAws_json1_1InputDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1InputLambdaProcessorDescription = ( @@ -3016,7 +3020,7 @@ const deserializeAws_json1_1OutputDescription = (output: any, context: __SerdeCo }; const deserializeAws_json1_1OutputDescriptions = (output: any, context: __SerdeContext): OutputDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3024,10 +3028,11 @@ const deserializeAws_json1_1OutputDescriptions = (output: any, context: __SerdeC } return deserializeAws_json1_1OutputDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParsedInputRecord = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3035,10 +3040,11 @@ const deserializeAws_json1_1ParsedInputRecord = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ParsedInputRecords = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3046,10 +3052,11 @@ const deserializeAws_json1_1ParsedInputRecords = (output: any, context: __SerdeC } return deserializeAws_json1_1ParsedInputRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProcessedInputRecords = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3057,10 +3064,11 @@ const deserializeAws_json1_1ProcessedInputRecords = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RawInputRecords = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3068,6 +3076,7 @@ const deserializeAws_json1_1RawInputRecords = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RecordColumn = (output: any, context: __SerdeContext): RecordColumn => { @@ -3079,7 +3088,7 @@ const deserializeAws_json1_1RecordColumn = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RecordColumns = (output: any, context: __SerdeContext): RecordColumn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3087,6 +3096,7 @@ const deserializeAws_json1_1RecordColumns = (output: any, context: __SerdeContex } return deserializeAws_json1_1RecordColumn(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecordFormat = (output: any, context: __SerdeContext): RecordFormat => { @@ -3121,7 +3131,7 @@ const deserializeAws_json1_1ReferenceDataSourceDescriptions = ( output: any, context: __SerdeContext ): ReferenceDataSourceDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3129,6 +3139,7 @@ const deserializeAws_json1_1ReferenceDataSourceDescriptions = ( } return deserializeAws_json1_1ReferenceDataSourceDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => { @@ -3215,7 +3226,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3223,6 +3234,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => { diff --git a/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts index 69f6caf950a4..6e03f580bef7 100644 --- a/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts @@ -782,7 +782,7 @@ const deserializeAws_restJson1Fragment = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1FragmentList = (output: any, context: __SerdeContext): Fragment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -790,6 +790,7 @@ const deserializeAws_restJson1FragmentList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Fragment(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-kinesis-video-signaling/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-signaling/src/protocols/Aws_restJson1.ts index 943e9034006d..320bf29d46b9 100644 --- a/clients/client-kinesis-video-signaling/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-signaling/src/protocols/Aws_restJson1.ts @@ -306,7 +306,7 @@ const deserializeAws_restJson1IceServer = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1IceServerList = (output: any, context: __SerdeContext): IceServer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -314,10 +314,11 @@ const deserializeAws_restJson1IceServerList = (output: any, context: __SerdeCont } return deserializeAws_restJson1IceServer(entry, context); }); + return retVal; }; const deserializeAws_restJson1Uris = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -325,6 +326,7 @@ const deserializeAws_restJson1Uris = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts index 7180c0d60b43..93b70303e77a 100644 --- a/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts @@ -1989,7 +1989,7 @@ const deserializeAws_restJson1ChannelInfo = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ChannelInfoList = (output: any, context: __SerdeContext): ChannelInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1997,13 +1997,14 @@ const deserializeAws_restJson1ChannelInfoList = (output: any, context: __SerdeCo } return deserializeAws_restJson1ChannelInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceEndpointList = ( output: any, context: __SerdeContext ): ResourceEndpointListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2011,6 +2012,7 @@ const deserializeAws_restJson1ResourceEndpointList = ( } return deserializeAws_restJson1ResourceEndpointListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceEndpointListItem = ( @@ -2062,7 +2064,7 @@ const deserializeAws_restJson1StreamInfo = (output: any, context: __SerdeContext }; const deserializeAws_restJson1StreamInfoList = (output: any, context: __SerdeContext): StreamInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2070,6 +2072,7 @@ const deserializeAws_restJson1StreamInfoList = (output: any, context: __SerdeCon } return deserializeAws_restJson1StreamInfo(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-kinesis/src/protocols/Aws_json1_1.ts b/clients/client-kinesis/src/protocols/Aws_json1_1.ts index b3ec3b5e3639..e32d2093f6ad 100644 --- a/clients/client-kinesis/src/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis/src/protocols/Aws_json1_1.ts @@ -2625,7 +2625,7 @@ const deserializeAws_json1_1ChildShard = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ChildShardList = (output: any, context: __SerdeContext): ChildShard[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2633,6 +2633,7 @@ const deserializeAws_json1_1ChildShardList = (output: any, context: __SerdeConte } return deserializeAws_json1_1ChildShard(entry, context); }); + return retVal; }; const deserializeAws_json1_1Consumer = (output: any, context: __SerdeContext): Consumer => { @@ -2661,7 +2662,7 @@ const deserializeAws_json1_1ConsumerDescription = (output: any, context: __Serde }; const deserializeAws_json1_1ConsumerList = (output: any, context: __SerdeContext): Consumer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2669,6 +2670,7 @@ const deserializeAws_json1_1ConsumerList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Consumer(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeLimitsOutput = (output: any, context: __SerdeContext): DescribeLimitsOutput => { @@ -2723,7 +2725,7 @@ const deserializeAws_json1_1EnhancedMetrics = (output: any, context: __SerdeCont }; const deserializeAws_json1_1EnhancedMonitoringList = (output: any, context: __SerdeContext): EnhancedMetrics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2731,6 +2733,7 @@ const deserializeAws_json1_1EnhancedMonitoringList = (output: any, context: __Se } return deserializeAws_json1_1EnhancedMetrics(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnhancedMonitoringOutput = ( @@ -2909,7 +2912,7 @@ const deserializeAws_json1_1ListTagsForStreamOutput = ( }; const deserializeAws_json1_1MetricsNameList = (output: any, context: __SerdeContext): (MetricsName | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2917,6 +2920,7 @@ const deserializeAws_json1_1MetricsNameList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProvisionedThroughputExceededException = ( @@ -2960,7 +2964,7 @@ const deserializeAws_json1_1PutRecordsResultEntryList = ( output: any, context: __SerdeContext ): PutRecordsResultEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2968,6 +2972,7 @@ const deserializeAws_json1_1PutRecordsResultEntryList = ( } return deserializeAws_json1_1PutRecordsResultEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1_Record = (output: any, context: __SerdeContext): _Record => { @@ -2984,7 +2989,7 @@ const deserializeAws_json1_1_Record = (output: any, context: __SerdeContext): _R }; const deserializeAws_json1_1RecordList = (output: any, context: __SerdeContext): _Record[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2992,6 +2997,7 @@ const deserializeAws_json1_1RecordList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1_Record(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegisterStreamConsumerOutput = ( @@ -3045,7 +3051,7 @@ const deserializeAws_json1_1Shard = (output: any, context: __SerdeContext): Shar }; const deserializeAws_json1_1ShardIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3053,10 +3059,11 @@ const deserializeAws_json1_1ShardIdList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ShardList = (output: any, context: __SerdeContext): Shard[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3064,6 +3071,7 @@ const deserializeAws_json1_1ShardList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Shard(entry, context); }); + return retVal; }; const deserializeAws_json1_1StreamDescription = (output: any, context: __SerdeContext): StreamDescription => { @@ -3129,7 +3137,7 @@ const deserializeAws_json1_1StreamModeDetails = (output: any, context: __SerdeCo }; const deserializeAws_json1_1StreamNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3137,6 +3145,7 @@ const deserializeAws_json1_1StreamNameList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SubscribeToShardEvent = (output: any, context: __SerdeContext): SubscribeToShardEvent => { @@ -3240,7 +3249,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3248,6 +3257,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1UpdateShardCountOutput = (output: any, context: __SerdeContext): UpdateShardCountOutput => { diff --git a/clients/client-kms/src/protocols/Aws_json1_1.ts b/clients/client-kms/src/protocols/Aws_json1_1.ts index 0a23a2f87b30..5ad085e857b4 100644 --- a/clients/client-kms/src/protocols/Aws_json1_1.ts +++ b/clients/client-kms/src/protocols/Aws_json1_1.ts @@ -4722,7 +4722,7 @@ const serializeAws_json1_1VerifyRequest = (input: VerifyRequest, context: __Serd }; const deserializeAws_json1_1AliasList = (output: any, context: __SerdeContext): AliasListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4730,6 +4730,7 @@ const deserializeAws_json1_1AliasList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1AliasListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1AliasListEntry = (output: any, context: __SerdeContext): AliasListEntry => { @@ -4880,7 +4881,7 @@ const deserializeAws_json1_1CustomKeyStoresList = ( output: any, context: __SerdeContext ): CustomKeyStoresListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4888,6 +4889,7 @@ const deserializeAws_json1_1CustomKeyStoresList = ( } return deserializeAws_json1_1CustomKeyStoresListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1CustomKeyStoresListEntry = ( @@ -4973,7 +4975,7 @@ const deserializeAws_json1_1EncryptionAlgorithmSpecList = ( output: any, context: __SerdeContext ): (EncryptionAlgorithmSpec | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4981,6 +4983,7 @@ const deserializeAws_json1_1EncryptionAlgorithmSpecList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1EncryptionContextType = ( @@ -5156,7 +5159,7 @@ const deserializeAws_json1_1GrantConstraints = (output: any, context: __SerdeCon }; const deserializeAws_json1_1GrantList = (output: any, context: __SerdeContext): GrantListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5164,6 +5167,7 @@ const deserializeAws_json1_1GrantList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1GrantListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1GrantListEntry = (output: any, context: __SerdeContext): GrantListEntry => { @@ -5193,7 +5197,7 @@ const deserializeAws_json1_1GrantOperationList = ( output: any, context: __SerdeContext ): (GrantOperation | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5201,6 +5205,7 @@ const deserializeAws_json1_1GrantOperationList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ImportKeyMaterialResponse = ( @@ -5301,7 +5306,7 @@ const deserializeAws_json1_1InvalidMarkerException = (output: any, context: __Se }; const deserializeAws_json1_1KeyList = (output: any, context: __SerdeContext): KeyListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5309,6 +5314,7 @@ const deserializeAws_json1_1KeyList = (output: any, context: __SerdeContext): Ke } return deserializeAws_json1_1KeyListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1KeyListEntry = (output: any, context: __SerdeContext): KeyListEntry => { @@ -5497,7 +5503,7 @@ const deserializeAws_json1_1MultiRegionKey = (output: any, context: __SerdeConte }; const deserializeAws_json1_1MultiRegionKeyList = (output: any, context: __SerdeContext): MultiRegionKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5505,6 +5511,7 @@ const deserializeAws_json1_1MultiRegionKeyList = (output: any, context: __SerdeC } return deserializeAws_json1_1MultiRegionKey(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeContext): NotFoundException => { @@ -5514,7 +5521,7 @@ const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeCo }; const deserializeAws_json1_1PolicyNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5522,6 +5529,7 @@ const deserializeAws_json1_1PolicyNameList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ReEncryptResponse = (output: any, context: __SerdeContext): ReEncryptResponse => { @@ -5570,7 +5578,7 @@ const deserializeAws_json1_1SigningAlgorithmSpecList = ( output: any, context: __SerdeContext ): (SigningAlgorithmSpec | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5578,6 +5586,7 @@ const deserializeAws_json1_1SigningAlgorithmSpecList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SignResponse = (output: any, context: __SerdeContext): SignResponse => { @@ -5603,7 +5612,7 @@ const deserializeAws_json1_1TagException = (output: any, context: __SerdeContext }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5611,6 +5620,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnsupportedOperationException = ( diff --git a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts index 3d822d453cab..8e37f293c8e8 100644 --- a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts +++ b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts @@ -4799,7 +4799,7 @@ const deserializeAws_restJson1AllRowsWildcard = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AuthorizedSessionTagValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4807,6 +4807,7 @@ const deserializeAws_restJson1AuthorizedSessionTagValueList = (output: any, cont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BatchPermissionsFailureEntry = ( @@ -4829,7 +4830,7 @@ const deserializeAws_restJson1BatchPermissionsFailureList = ( output: any, context: __SerdeContext ): BatchPermissionsFailureEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4837,6 +4838,7 @@ const deserializeAws_restJson1BatchPermissionsFailureList = ( } return deserializeAws_restJson1BatchPermissionsFailureEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchPermissionsRequestEntry = ( @@ -4879,7 +4881,7 @@ const deserializeAws_restJson1ColumnLFTag = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ColumnLFTagsList = (output: any, context: __SerdeContext): ColumnLFTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4887,10 +4889,11 @@ const deserializeAws_restJson1ColumnLFTagsList = (output: any, context: __SerdeC } return deserializeAws_restJson1ColumnLFTag(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4898,6 +4901,7 @@ const deserializeAws_restJson1ColumnNames = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ColumnWildcard = (output: any, context: __SerdeContext): ColumnWildcard => { @@ -4910,7 +4914,7 @@ const deserializeAws_restJson1ColumnWildcard = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DatabaseLFTagsList = (output: any, context: __SerdeContext): TaggedDatabase[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4918,6 +4922,7 @@ const deserializeAws_restJson1DatabaseLFTagsList = (output: any, context: __Serd } return deserializeAws_restJson1TaggedDatabase(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatabaseResource = (output: any, context: __SerdeContext): DatabaseResource => { @@ -4949,7 +4954,7 @@ const deserializeAws_restJson1DataCellsFilter = (output: any, context: __SerdeCo }; const deserializeAws_restJson1DataCellsFilterList = (output: any, context: __SerdeContext): DataCellsFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4957,6 +4962,7 @@ const deserializeAws_restJson1DataCellsFilterList = (output: any, context: __Ser } return deserializeAws_restJson1DataCellsFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataCellsFilterResource = ( @@ -4978,7 +4984,7 @@ const deserializeAws_restJson1DataLakePrincipal = (output: any, context: __Serde }; const deserializeAws_restJson1DataLakePrincipalList = (output: any, context: __SerdeContext): DataLakePrincipal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4986,6 +4992,7 @@ const deserializeAws_restJson1DataLakePrincipalList = (output: any, context: __S } return deserializeAws_restJson1DataLakePrincipal(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataLakeSettings = (output: any, context: __SerdeContext): DataLakeSettings => { @@ -5050,7 +5057,7 @@ const deserializeAws_restJson1ExecutionStatistics = (output: any, context: __Ser }; const deserializeAws_restJson1Expression = (output: any, context: __SerdeContext): LFTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5058,6 +5065,7 @@ const deserializeAws_restJson1Expression = (output: any, context: __SerdeContext } return deserializeAws_restJson1LFTag(entry, context); }); + return retVal; }; const deserializeAws_restJson1LFTag = (output: any, context: __SerdeContext): LFTag => { @@ -5084,7 +5092,7 @@ const deserializeAws_restJson1LFTagError = (output: any, context: __SerdeContext }; const deserializeAws_restJson1LFTagErrors = (output: any, context: __SerdeContext): LFTagError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5092,6 +5100,7 @@ const deserializeAws_restJson1LFTagErrors = (output: any, context: __SerdeContex } return deserializeAws_restJson1LFTagError(entry, context); }); + return retVal; }; const deserializeAws_restJson1LFTagKeyResource = (output: any, context: __SerdeContext): LFTagKeyResource => { @@ -5128,7 +5137,7 @@ const deserializeAws_restJson1LFTagPolicyResource = (output: any, context: __Ser }; const deserializeAws_restJson1LFTagsList = (output: any, context: __SerdeContext): LFTagPair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5136,13 +5145,14 @@ const deserializeAws_restJson1LFTagsList = (output: any, context: __SerdeContext } return deserializeAws_restJson1LFTagPair(entry, context); }); + return retVal; }; const deserializeAws_restJson1PartitionedTableObjectsList = ( output: any, context: __SerdeContext ): PartitionObjects[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5150,6 +5160,7 @@ const deserializeAws_restJson1PartitionedTableObjectsList = ( } return deserializeAws_restJson1PartitionObjects(entry, context); }); + return retVal; }; const deserializeAws_restJson1PartitionObjects = (output: any, context: __SerdeContext): PartitionObjects => { @@ -5166,7 +5177,7 @@ const deserializeAws_restJson1PartitionObjects = (output: any, context: __SerdeC }; const deserializeAws_restJson1PartitionValuesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5174,10 +5185,11 @@ const deserializeAws_restJson1PartitionValuesList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PermissionList = (output: any, context: __SerdeContext): (Permission | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5185,6 +5197,7 @@ const deserializeAws_restJson1PermissionList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PlanningStatistics = (output: any, context: __SerdeContext): PlanningStatistics => { @@ -5213,7 +5226,7 @@ const deserializeAws_restJson1PrincipalPermissionsList = ( output: any, context: __SerdeContext ): PrincipalPermissions[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5221,6 +5234,7 @@ const deserializeAws_restJson1PrincipalPermissionsList = ( } return deserializeAws_restJson1PrincipalPermissions(entry, context); }); + return retVal; }; const deserializeAws_restJson1PrincipalResourcePermissions = ( @@ -5255,7 +5269,7 @@ const deserializeAws_restJson1PrincipalResourcePermissionsList = ( output: any, context: __SerdeContext ): PrincipalResourcePermissions[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5263,6 +5277,7 @@ const deserializeAws_restJson1PrincipalResourcePermissionsList = ( } return deserializeAws_restJson1PrincipalResourcePermissions(entry, context); }); + return retVal; }; const deserializeAws_restJson1Resource = (output: any, context: __SerdeContext): Resource => { @@ -5314,7 +5329,7 @@ const deserializeAws_restJson1ResourceInfo = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ResourceInfoList = (output: any, context: __SerdeContext): ResourceInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5322,10 +5337,11 @@ const deserializeAws_restJson1ResourceInfoList = (output: any, context: __SerdeC } return deserializeAws_restJson1ResourceInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceShareList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5333,6 +5349,7 @@ const deserializeAws_restJson1ResourceShareList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RowFilter = (output: any, context: __SerdeContext): RowFilter => { @@ -5374,7 +5391,7 @@ const deserializeAws_restJson1StorageOptimizerConfig = ( }; const deserializeAws_restJson1StorageOptimizerList = (output: any, context: __SerdeContext): StorageOptimizer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5382,10 +5399,11 @@ const deserializeAws_restJson1StorageOptimizerList = (output: any, context: __Se } return deserializeAws_restJson1StorageOptimizer(entry, context); }); + return retVal; }; const deserializeAws_restJson1TableLFTagsList = (output: any, context: __SerdeContext): TaggedTable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5393,6 +5411,7 @@ const deserializeAws_restJson1TableLFTagsList = (output: any, context: __SerdeCo } return deserializeAws_restJson1TaggedTable(entry, context); }); + return retVal; }; const deserializeAws_restJson1TableObject = (output: any, context: __SerdeContext): TableObject => { @@ -5404,7 +5423,7 @@ const deserializeAws_restJson1TableObject = (output: any, context: __SerdeContex }; const deserializeAws_restJson1TableObjectList = (output: any, context: __SerdeContext): TableObject[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5412,6 +5431,7 @@ const deserializeAws_restJson1TableObjectList = (output: any, context: __SerdeCo } return deserializeAws_restJson1TableObject(entry, context); }); + return retVal; }; const deserializeAws_restJson1TableResource = (output: any, context: __SerdeContext): TableResource => { @@ -5484,7 +5504,7 @@ const deserializeAws_restJson1TaggedTable = (output: any, context: __SerdeContex }; const deserializeAws_restJson1TagValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5492,6 +5512,7 @@ const deserializeAws_restJson1TagValueList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TransactionDescription = ( @@ -5516,7 +5537,7 @@ const deserializeAws_restJson1TransactionDescriptionList = ( output: any, context: __SerdeContext ): TransactionDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5524,10 +5545,11 @@ const deserializeAws_restJson1TransactionDescriptionList = ( } return deserializeAws_restJson1TransactionDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1TrustedResourceOwners = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5535,6 +5557,7 @@ const deserializeAws_restJson1TrustedResourceOwners = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1WorkUnitRange = (output: any, context: __SerdeContext): WorkUnitRange => { @@ -5546,7 +5569,7 @@ const deserializeAws_restJson1WorkUnitRange = (output: any, context: __SerdeCont }; const deserializeAws_restJson1WorkUnitRangeList = (output: any, context: __SerdeContext): WorkUnitRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5554,6 +5577,7 @@ const deserializeAws_restJson1WorkUnitRangeList = (output: any, context: __Serde } return deserializeAws_restJson1WorkUnitRange(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-lambda/src/protocols/Aws_restJson1.ts b/clients/client-lambda/src/protocols/Aws_restJson1.ts index 0fd496da1ce5..fb2331eec2b6 100644 --- a/clients/client-lambda/src/protocols/Aws_restJson1.ts +++ b/clients/client-lambda/src/protocols/Aws_restJson1.ts @@ -8143,7 +8143,7 @@ const deserializeAws_restJson1AliasConfiguration = (output: any, context: __Serd }; const deserializeAws_restJson1AliasList = (output: any, context: __SerdeContext): AliasConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8151,6 +8151,7 @@ const deserializeAws_restJson1AliasList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1AliasConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1AliasRoutingConfiguration = ( @@ -8175,7 +8176,7 @@ const deserializeAws_restJson1AllowedPublishers = (output: any, context: __Serde }; const deserializeAws_restJson1ArchitecturesList = (output: any, context: __SerdeContext): (Architecture | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8183,6 +8184,7 @@ const deserializeAws_restJson1ArchitecturesList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CodeSigningConfig = (output: any, context: __SerdeContext): CodeSigningConfig => { @@ -8203,7 +8205,7 @@ const deserializeAws_restJson1CodeSigningConfig = (output: any, context: __Serde }; const deserializeAws_restJson1CodeSigningConfigList = (output: any, context: __SerdeContext): CodeSigningConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8211,6 +8213,7 @@ const deserializeAws_restJson1CodeSigningConfigList = (output: any, context: __S } return deserializeAws_restJson1CodeSigningConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1CodeSigningPolicies = (output: any, context: __SerdeContext): CodeSigningPolicies => { @@ -8223,7 +8226,7 @@ const deserializeAws_restJson1CompatibleArchitectures = ( output: any, context: __SerdeContext ): (Architecture | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8231,10 +8234,11 @@ const deserializeAws_restJson1CompatibleArchitectures = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CompatibleRuntimes = (output: any, context: __SerdeContext): (Runtime | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8242,6 +8246,7 @@ const deserializeAws_restJson1CompatibleRuntimes = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Concurrency = (output: any, context: __SerdeContext): Concurrency => { @@ -8270,7 +8275,7 @@ const deserializeAws_restJson1DestinationConfig = (output: any, context: __Serde }; const deserializeAws_restJson1EndpointLists = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8278,6 +8283,7 @@ const deserializeAws_restJson1EndpointLists = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Endpoints = (output: any, context: __SerdeContext): { [key: string]: string[] } => { @@ -8392,7 +8398,7 @@ const deserializeAws_restJson1EventSourceMappingsList = ( output: any, context: __SerdeContext ): EventSourceMappingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8400,6 +8406,7 @@ const deserializeAws_restJson1EventSourceMappingsList = ( } return deserializeAws_restJson1EventSourceMappingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1FileSystemConfig = (output: any, context: __SerdeContext): FileSystemConfig => { @@ -8410,7 +8417,7 @@ const deserializeAws_restJson1FileSystemConfig = (output: any, context: __SerdeC }; const deserializeAws_restJson1FileSystemConfigList = (output: any, context: __SerdeContext): FileSystemConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8418,6 +8425,7 @@ const deserializeAws_restJson1FileSystemConfigList = (output: any, context: __Se } return deserializeAws_restJson1FileSystemConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1Filter = (output: any, context: __SerdeContext): Filter => { @@ -8436,7 +8444,7 @@ const deserializeAws_restJson1FilterCriteria = (output: any, context: __SerdeCon }; const deserializeAws_restJson1FilterList = (output: any, context: __SerdeContext): Filter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8444,10 +8452,11 @@ const deserializeAws_restJson1FilterList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Filter(entry, context); }); + return retVal; }; const deserializeAws_restJson1FunctionArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8455,6 +8464,7 @@ const deserializeAws_restJson1FunctionArnList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FunctionCodeLocation = (output: any, context: __SerdeContext): FunctionCodeLocation => { @@ -8550,7 +8560,7 @@ const deserializeAws_restJson1FunctionEventInvokeConfigList = ( output: any, context: __SerdeContext ): FunctionEventInvokeConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8558,10 +8568,11 @@ const deserializeAws_restJson1FunctionEventInvokeConfigList = ( } return deserializeAws_restJson1FunctionEventInvokeConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1FunctionList = (output: any, context: __SerdeContext): FunctionConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8569,13 +8580,14 @@ const deserializeAws_restJson1FunctionList = (output: any, context: __SerdeConte } return deserializeAws_restJson1FunctionConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1FunctionResponseTypeList = ( output: any, context: __SerdeContext ): (FunctionResponseType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8583,6 +8595,7 @@ const deserializeAws_restJson1FunctionResponseTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ImageConfig = (output: any, context: __SerdeContext): ImageConfig => { @@ -8629,7 +8642,7 @@ const deserializeAws_restJson1Layer = (output: any, context: __SerdeContext): La }; const deserializeAws_restJson1LayersList = (output: any, context: __SerdeContext): LayersListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8637,6 +8650,7 @@ const deserializeAws_restJson1LayersList = (output: any, context: __SerdeContext } return deserializeAws_restJson1LayersListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1LayersListItem = (output: any, context: __SerdeContext): LayersListItem => { @@ -8651,7 +8665,7 @@ const deserializeAws_restJson1LayersListItem = (output: any, context: __SerdeCon }; const deserializeAws_restJson1LayersReferenceList = (output: any, context: __SerdeContext): Layer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8659,6 +8673,7 @@ const deserializeAws_restJson1LayersReferenceList = (output: any, context: __Ser } return deserializeAws_restJson1Layer(entry, context); }); + return retVal; }; const deserializeAws_restJson1LayerVersionContentOutput = ( @@ -8675,7 +8690,7 @@ const deserializeAws_restJson1LayerVersionContentOutput = ( }; const deserializeAws_restJson1LayerVersionsList = (output: any, context: __SerdeContext): LayerVersionsListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8683,6 +8698,7 @@ const deserializeAws_restJson1LayerVersionsList = (output: any, context: __Serde } return deserializeAws_restJson1LayerVersionsListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1LayerVersionsListItem = (output: any, context: __SerdeContext): LayerVersionsListItem => { @@ -8719,7 +8735,7 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigList = ( output: any, context: __SerdeContext ): ProvisionedConcurrencyConfigListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8727,6 +8743,7 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigList = ( } return deserializeAws_restJson1ProvisionedConcurrencyConfigListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProvisionedConcurrencyConfigListItem = ( @@ -8745,7 +8762,7 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigListItem = ( }; const deserializeAws_restJson1Queues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8753,10 +8770,11 @@ const deserializeAws_restJson1Queues = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8764,6 +8782,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SelfManagedEventSource = ( @@ -8779,7 +8798,7 @@ const deserializeAws_restJson1SelfManagedEventSource = ( }; const deserializeAws_restJson1SigningProfileVersionArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8787,6 +8806,7 @@ const deserializeAws_restJson1SigningProfileVersionArns = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SourceAccessConfiguration = ( @@ -8803,7 +8823,7 @@ const deserializeAws_restJson1SourceAccessConfigurations = ( output: any, context: __SerdeContext ): SourceAccessConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8811,10 +8831,11 @@ const deserializeAws_restJson1SourceAccessConfigurations = ( } return deserializeAws_restJson1SourceAccessConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8822,10 +8843,11 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8833,6 +8855,7 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -8848,7 +8871,7 @@ const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [ }; const deserializeAws_restJson1Topics = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8856,6 +8879,7 @@ const deserializeAws_restJson1Topics = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TracingConfigResponse = (output: any, context: __SerdeContext): TracingConfigResponse => { diff --git a/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts b/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts index a04358a5c8e6..e83f3abafd83 100644 --- a/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts @@ -5183,7 +5183,7 @@ const deserializeAws_restJson1BotAliasMetadata = (output: any, context: __SerdeC }; const deserializeAws_restJson1BotAliasMetadataList = (output: any, context: __SerdeContext): BotAliasMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5191,6 +5191,7 @@ const deserializeAws_restJson1BotAliasMetadataList = (output: any, context: __Se } return deserializeAws_restJson1BotAliasMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotChannelAssociation = (output: any, context: __SerdeContext): BotChannelAssociation => { @@ -5217,7 +5218,7 @@ const deserializeAws_restJson1BotChannelAssociationList = ( output: any, context: __SerdeContext ): BotChannelAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5225,6 +5226,7 @@ const deserializeAws_restJson1BotChannelAssociationList = ( } return deserializeAws_restJson1BotChannelAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotMetadata = (output: any, context: __SerdeContext): BotMetadata => { @@ -5245,7 +5247,7 @@ const deserializeAws_restJson1BotMetadata = (output: any, context: __SerdeContex }; const deserializeAws_restJson1BotMetadataList = (output: any, context: __SerdeContext): BotMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5253,6 +5255,7 @@ const deserializeAws_restJson1BotMetadataList = (output: any, context: __SerdeCo } return deserializeAws_restJson1BotMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1BuiltinIntentMetadata = (output: any, context: __SerdeContext): BuiltinIntentMetadata => { @@ -5269,7 +5272,7 @@ const deserializeAws_restJson1BuiltinIntentMetadataList = ( output: any, context: __SerdeContext ): BuiltinIntentMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5277,6 +5280,7 @@ const deserializeAws_restJson1BuiltinIntentMetadataList = ( } return deserializeAws_restJson1BuiltinIntentMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1BuiltinIntentSlot = (output: any, context: __SerdeContext): BuiltinIntentSlot => { @@ -5286,7 +5290,7 @@ const deserializeAws_restJson1BuiltinIntentSlot = (output: any, context: __Serde }; const deserializeAws_restJson1BuiltinIntentSlotList = (output: any, context: __SerdeContext): BuiltinIntentSlot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5294,6 +5298,7 @@ const deserializeAws_restJson1BuiltinIntentSlotList = (output: any, context: __S } return deserializeAws_restJson1BuiltinIntentSlot(entry, context); }); + return retVal; }; const deserializeAws_restJson1BuiltinSlotTypeMetadata = ( @@ -5313,7 +5318,7 @@ const deserializeAws_restJson1BuiltinSlotTypeMetadataList = ( output: any, context: __SerdeContext ): BuiltinSlotTypeMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5321,6 +5326,7 @@ const deserializeAws_restJson1BuiltinSlotTypeMetadataList = ( } return deserializeAws_restJson1BuiltinSlotTypeMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChannelConfigurationMap = ( @@ -5369,7 +5375,7 @@ const deserializeAws_restJson1EnumerationValue = (output: any, context: __SerdeC }; const deserializeAws_restJson1EnumerationValues = (output: any, context: __SerdeContext): EnumerationValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5377,6 +5383,7 @@ const deserializeAws_restJson1EnumerationValues = (output: any, context: __Serde } return deserializeAws_restJson1EnumerationValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1FollowUpPrompt = (output: any, context: __SerdeContext): FollowUpPrompt => { @@ -5409,7 +5416,7 @@ const deserializeAws_restJson1InputContext = (output: any, context: __SerdeConte }; const deserializeAws_restJson1InputContextList = (output: any, context: __SerdeContext): InputContext[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5417,6 +5424,7 @@ const deserializeAws_restJson1InputContextList = (output: any, context: __SerdeC } return deserializeAws_restJson1InputContext(entry, context); }); + return retVal; }; const deserializeAws_restJson1Intent = (output: any, context: __SerdeContext): Intent => { @@ -5427,7 +5435,7 @@ const deserializeAws_restJson1Intent = (output: any, context: __SerdeContext): I }; const deserializeAws_restJson1IntentList = (output: any, context: __SerdeContext): Intent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5435,6 +5443,7 @@ const deserializeAws_restJson1IntentList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Intent(entry, context); }); + return retVal; }; const deserializeAws_restJson1IntentMetadata = (output: any, context: __SerdeContext): IntentMetadata => { @@ -5454,7 +5463,7 @@ const deserializeAws_restJson1IntentMetadata = (output: any, context: __SerdeCon }; const deserializeAws_restJson1IntentMetadataList = (output: any, context: __SerdeContext): IntentMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5462,10 +5471,11 @@ const deserializeAws_restJson1IntentMetadataList = (output: any, context: __Serd } return deserializeAws_restJson1IntentMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1IntentUtteranceList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5473,6 +5483,7 @@ const deserializeAws_restJson1IntentUtteranceList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1KendraConfiguration = (output: any, context: __SerdeContext): KendraConfiguration => { @@ -5484,7 +5495,7 @@ const deserializeAws_restJson1KendraConfiguration = (output: any, context: __Ser }; const deserializeAws_restJson1ListOfUtterance = (output: any, context: __SerdeContext): UtteranceData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5492,10 +5503,11 @@ const deserializeAws_restJson1ListOfUtterance = (output: any, context: __SerdeCo } return deserializeAws_restJson1UtteranceData(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListsOfUtterances = (output: any, context: __SerdeContext): UtteranceList[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5503,10 +5515,11 @@ const deserializeAws_restJson1ListsOfUtterances = (output: any, context: __Serde } return deserializeAws_restJson1UtteranceList(entry, context); }); + return retVal; }; const deserializeAws_restJson1LocaleList = (output: any, context: __SerdeContext): (Locale | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5514,6 +5527,7 @@ const deserializeAws_restJson1LocaleList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LogSettingsResponse = (output: any, context: __SerdeContext): LogSettingsResponse => { @@ -5530,7 +5544,7 @@ const deserializeAws_restJson1LogSettingsResponseList = ( output: any, context: __SerdeContext ): LogSettingsResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5538,6 +5552,7 @@ const deserializeAws_restJson1LogSettingsResponseList = ( } return deserializeAws_restJson1LogSettingsResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1Message = (output: any, context: __SerdeContext): Message => { @@ -5549,7 +5564,7 @@ const deserializeAws_restJson1Message = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1MessageList = (output: any, context: __SerdeContext): Message[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5557,6 +5572,7 @@ const deserializeAws_restJson1MessageList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Message(entry, context); }); + return retVal; }; const deserializeAws_restJson1MigrationAlert = (output: any, context: __SerdeContext): MigrationAlert => { @@ -5575,7 +5591,7 @@ const deserializeAws_restJson1MigrationAlert = (output: any, context: __SerdeCon }; const deserializeAws_restJson1MigrationAlertDetails = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5583,10 +5599,11 @@ const deserializeAws_restJson1MigrationAlertDetails = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MigrationAlertReferenceURLs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5594,10 +5611,11 @@ const deserializeAws_restJson1MigrationAlertReferenceURLs = (output: any, contex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MigrationAlerts = (output: any, context: __SerdeContext): MigrationAlert[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5605,6 +5623,7 @@ const deserializeAws_restJson1MigrationAlerts = (output: any, context: __SerdeCo } return deserializeAws_restJson1MigrationAlert(entry, context); }); + return retVal; }; const deserializeAws_restJson1MigrationSummary = (output: any, context: __SerdeContext): MigrationSummary => { @@ -5625,7 +5644,7 @@ const deserializeAws_restJson1MigrationSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1MigrationSummaryList = (output: any, context: __SerdeContext): MigrationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5633,6 +5652,7 @@ const deserializeAws_restJson1MigrationSummaryList = (output: any, context: __Se } return deserializeAws_restJson1MigrationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1OutputContext = (output: any, context: __SerdeContext): OutputContext => { @@ -5644,7 +5664,7 @@ const deserializeAws_restJson1OutputContext = (output: any, context: __SerdeCont }; const deserializeAws_restJson1OutputContextList = (output: any, context: __SerdeContext): OutputContext[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5652,6 +5672,7 @@ const deserializeAws_restJson1OutputContextList = (output: any, context: __Serde } return deserializeAws_restJson1OutputContext(entry, context); }); + return retVal; }; const deserializeAws_restJson1Prompt = (output: any, context: __SerdeContext): Prompt => { @@ -5704,7 +5725,7 @@ const deserializeAws_restJson1SlotDefaultValue = (output: any, context: __SerdeC }; const deserializeAws_restJson1SlotDefaultValueList = (output: any, context: __SerdeContext): SlotDefaultValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5712,6 +5733,7 @@ const deserializeAws_restJson1SlotDefaultValueList = (output: any, context: __Se } return deserializeAws_restJson1SlotDefaultValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotDefaultValueSpec = (output: any, context: __SerdeContext): SlotDefaultValueSpec => { @@ -5724,7 +5746,7 @@ const deserializeAws_restJson1SlotDefaultValueSpec = (output: any, context: __Se }; const deserializeAws_restJson1SlotList = (output: any, context: __SerdeContext): Slot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5732,6 +5754,7 @@ const deserializeAws_restJson1SlotList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Slot(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotTypeConfiguration = (output: any, context: __SerdeContext): SlotTypeConfiguration => { @@ -5747,7 +5770,7 @@ const deserializeAws_restJson1SlotTypeConfigurations = ( output: any, context: __SerdeContext ): SlotTypeConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5755,6 +5778,7 @@ const deserializeAws_restJson1SlotTypeConfigurations = ( } return deserializeAws_restJson1SlotTypeConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotTypeMetadata = (output: any, context: __SerdeContext): SlotTypeMetadata => { @@ -5774,7 +5798,7 @@ const deserializeAws_restJson1SlotTypeMetadata = (output: any, context: __SerdeC }; const deserializeAws_restJson1SlotTypeMetadataList = (output: any, context: __SerdeContext): SlotTypeMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5782,6 +5806,7 @@ const deserializeAws_restJson1SlotTypeMetadataList = (output: any, context: __Se } return deserializeAws_restJson1SlotTypeMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotTypeRegexConfiguration = ( @@ -5794,7 +5819,7 @@ const deserializeAws_restJson1SlotTypeRegexConfiguration = ( }; const deserializeAws_restJson1SlotUtteranceList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5802,6 +5827,7 @@ const deserializeAws_restJson1SlotUtteranceList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Statement = (output: any, context: __SerdeContext): Statement => { @@ -5815,7 +5841,7 @@ const deserializeAws_restJson1Statement = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5823,10 +5849,11 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SynonymList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5834,6 +5861,7 @@ const deserializeAws_restJson1SynonymList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -5844,7 +5872,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5852,6 +5880,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1UtteranceData = (output: any, context: __SerdeContext): UtteranceData => { diff --git a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts index 8608f9ebc881..c99c3d275300 100644 --- a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts @@ -10118,7 +10118,7 @@ const deserializeAws_restJson1AggregatedUtterancesSummaryList = ( output: any, context: __SerdeContext ): AggregatedUtterancesSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10126,6 +10126,7 @@ const deserializeAws_restJson1AggregatedUtterancesSummaryList = ( } return deserializeAws_restJson1AggregatedUtterancesSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssociatedTranscript = (output: any, context: __SerdeContext): AssociatedTranscript => { @@ -10138,7 +10139,7 @@ const deserializeAws_restJson1AssociatedTranscriptList = ( output: any, context: __SerdeContext ): AssociatedTranscript[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10146,6 +10147,7 @@ const deserializeAws_restJson1AssociatedTranscriptList = ( } return deserializeAws_restJson1AssociatedTranscript(entry, context); }); + return retVal; }; const deserializeAws_restJson1AudioLogDestination = (output: any, context: __SerdeContext): AudioLogDestination => { @@ -10168,7 +10170,7 @@ const deserializeAws_restJson1AudioLogSetting = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AudioLogSettingsList = (output: any, context: __SerdeContext): AudioLogSetting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10176,6 +10178,7 @@ const deserializeAws_restJson1AudioLogSettingsList = (output: any, context: __Se } return deserializeAws_restJson1AudioLogSetting(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotAliasHistoryEvent = (output: any, context: __SerdeContext): BotAliasHistoryEvent => { @@ -10196,7 +10199,7 @@ const deserializeAws_restJson1BotAliasHistoryEventsList = ( output: any, context: __SerdeContext ): BotAliasHistoryEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10204,6 +10207,7 @@ const deserializeAws_restJson1BotAliasHistoryEventsList = ( } return deserializeAws_restJson1BotAliasHistoryEvent(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotAliasLocaleSettings = ( @@ -10256,7 +10260,7 @@ const deserializeAws_restJson1BotAliasSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1BotAliasSummaryList = (output: any, context: __SerdeContext): BotAliasSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10264,6 +10268,7 @@ const deserializeAws_restJson1BotAliasSummaryList = (output: any, context: __Ser } return deserializeAws_restJson1BotAliasSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotExportSpecification = ( @@ -10324,7 +10329,7 @@ const deserializeAws_restJson1BotLocaleHistoryEventsList = ( output: any, context: __SerdeContext ): BotLocaleHistoryEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10332,6 +10337,7 @@ const deserializeAws_restJson1BotLocaleHistoryEventsList = ( } return deserializeAws_restJson1BotLocaleHistoryEvent(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotLocaleImportSpecification = ( @@ -10368,7 +10374,7 @@ const deserializeAws_restJson1BotLocaleSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1BotLocaleSummaryList = (output: any, context: __SerdeContext): BotLocaleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10376,6 +10382,7 @@ const deserializeAws_restJson1BotLocaleSummaryList = (output: any, context: __Se } return deserializeAws_restJson1BotLocaleSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotRecommendationResults = ( @@ -10430,7 +10437,7 @@ const deserializeAws_restJson1BotRecommendationSummaryList = ( output: any, context: __SerdeContext ): BotRecommendationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10438,6 +10445,7 @@ const deserializeAws_restJson1BotRecommendationSummaryList = ( } return deserializeAws_restJson1BotRecommendationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotSummary = (output: any, context: __SerdeContext): BotSummary => { @@ -10455,7 +10463,7 @@ const deserializeAws_restJson1BotSummary = (output: any, context: __SerdeContext }; const deserializeAws_restJson1BotSummaryList = (output: any, context: __SerdeContext): BotSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10463,6 +10471,7 @@ const deserializeAws_restJson1BotSummaryList = (output: any, context: __SerdeCon } return deserializeAws_restJson1BotSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1BotVersionLocaleDetails = ( @@ -10506,7 +10515,7 @@ const deserializeAws_restJson1BotVersionSummary = (output: any, context: __Serde }; const deserializeAws_restJson1BotVersionSummaryList = (output: any, context: __SerdeContext): BotVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10514,6 +10523,7 @@ const deserializeAws_restJson1BotVersionSummaryList = (output: any, context: __S } return deserializeAws_restJson1BotVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1BuiltInIntentSummary = (output: any, context: __SerdeContext): BuiltInIntentSummary => { @@ -10527,7 +10537,7 @@ const deserializeAws_restJson1BuiltInIntentSummaryList = ( output: any, context: __SerdeContext ): BuiltInIntentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10535,6 +10545,7 @@ const deserializeAws_restJson1BuiltInIntentSummaryList = ( } return deserializeAws_restJson1BuiltInIntentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1BuiltInSlotTypeSummary = ( @@ -10551,7 +10562,7 @@ const deserializeAws_restJson1BuiltInSlotTypeSummaryList = ( output: any, context: __SerdeContext ): BuiltInSlotTypeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10559,6 +10570,7 @@ const deserializeAws_restJson1BuiltInSlotTypeSummaryList = ( } return deserializeAws_restJson1BuiltInSlotTypeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Button = (output: any, context: __SerdeContext): Button => { @@ -10569,7 +10581,7 @@ const deserializeAws_restJson1Button = (output: any, context: __SerdeContext): B }; const deserializeAws_restJson1ButtonsList = (output: any, context: __SerdeContext): Button[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10577,6 +10589,7 @@ const deserializeAws_restJson1ButtonsList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Button(entry, context); }); + return retVal; }; const deserializeAws_restJson1CloudWatchLogGroupLogDestination = ( @@ -10722,7 +10735,7 @@ const deserializeAws_restJson1ExportSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ExportSummaryList = (output: any, context: __SerdeContext): ExportSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10730,6 +10743,7 @@ const deserializeAws_restJson1ExportSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1ExportSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExternalSourceSetting = (output: any, context: __SerdeContext): ExternalSourceSetting => { @@ -10742,7 +10756,7 @@ const deserializeAws_restJson1ExternalSourceSetting = (output: any, context: __S }; const deserializeAws_restJson1FailureReasons = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10750,6 +10764,7 @@ const deserializeAws_restJson1FailureReasons = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FulfillmentCodeHookSettings = ( @@ -10890,7 +10905,7 @@ const deserializeAws_restJson1ImportSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ImportSummaryList = (output: any, context: __SerdeContext): ImportSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10898,6 +10913,7 @@ const deserializeAws_restJson1ImportSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1ImportSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1InputContext = (output: any, context: __SerdeContext): InputContext => { @@ -10907,7 +10923,7 @@ const deserializeAws_restJson1InputContext = (output: any, context: __SerdeConte }; const deserializeAws_restJson1InputContextsList = (output: any, context: __SerdeContext): InputContext[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10915,6 +10931,7 @@ const deserializeAws_restJson1InputContextsList = (output: any, context: __Serde } return deserializeAws_restJson1InputContext(entry, context); }); + return retVal; }; const deserializeAws_restJson1IntentClosingSetting = (output: any, context: __SerdeContext): IntentClosingSetting => { @@ -10972,7 +10989,7 @@ const deserializeAws_restJson1IntentSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1IntentSummaryList = (output: any, context: __SerdeContext): IntentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10980,6 +10997,7 @@ const deserializeAws_restJson1IntentSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1IntentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1KendraConfiguration = (output: any, context: __SerdeContext): KendraConfiguration => { @@ -11041,7 +11059,7 @@ const deserializeAws_restJson1MessageGroup = (output: any, context: __SerdeConte }; const deserializeAws_restJson1MessageGroupsList = (output: any, context: __SerdeContext): MessageGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11049,10 +11067,11 @@ const deserializeAws_restJson1MessageGroupsList = (output: any, context: __Serde } return deserializeAws_restJson1MessageGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1MessageVariationsList = (output: any, context: __SerdeContext): Message[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11060,6 +11079,7 @@ const deserializeAws_restJson1MessageVariationsList = (output: any, context: __S } return deserializeAws_restJson1Message(entry, context); }); + return retVal; }; const deserializeAws_restJson1MultipleValuesSetting = (output: any, context: __SerdeContext): MultipleValuesSetting => { @@ -11075,7 +11095,7 @@ const deserializeAws_restJson1ObfuscationSetting = (output: any, context: __Serd }; const deserializeAws_restJson1ObjectPrefixes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11083,6 +11103,7 @@ const deserializeAws_restJson1ObjectPrefixes = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OutputContext = (output: any, context: __SerdeContext): OutputContext => { @@ -11094,7 +11115,7 @@ const deserializeAws_restJson1OutputContext = (output: any, context: __SerdeCont }; const deserializeAws_restJson1OutputContextsList = (output: any, context: __SerdeContext): OutputContext[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11102,6 +11123,7 @@ const deserializeAws_restJson1OutputContextsList = (output: any, context: __Serd } return deserializeAws_restJson1OutputContext(entry, context); }); + return retVal; }; const deserializeAws_restJson1PathFormat = (output: any, context: __SerdeContext): PathFormat => { @@ -11151,7 +11173,7 @@ const deserializeAws_restJson1PromptSpecification = (output: any, context: __Ser }; const deserializeAws_restJson1RecommendedActions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11159,6 +11181,7 @@ const deserializeAws_restJson1RecommendedActions = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RecommendedIntentSummary = ( @@ -11176,7 +11199,7 @@ const deserializeAws_restJson1RecommendedIntentSummaryList = ( output: any, context: __SerdeContext ): RecommendedIntentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11184,6 +11207,7 @@ const deserializeAws_restJson1RecommendedIntentSummaryList = ( } return deserializeAws_restJson1RecommendedIntentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RelativeAggregationDuration = ( @@ -11243,7 +11267,7 @@ const deserializeAws_restJson1SampleUtterance = (output: any, context: __SerdeCo }; const deserializeAws_restJson1SampleUtterancesList = (output: any, context: __SerdeContext): SampleUtterance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11251,6 +11275,7 @@ const deserializeAws_restJson1SampleUtterancesList = (output: any, context: __Se } return deserializeAws_restJson1SampleUtterance(entry, context); }); + return retVal; }; const deserializeAws_restJson1SampleValue = (output: any, context: __SerdeContext): SampleValue => { @@ -11275,7 +11300,7 @@ const deserializeAws_restJson1SlotDefaultValue = (output: any, context: __SerdeC }; const deserializeAws_restJson1SlotDefaultValueList = (output: any, context: __SerdeContext): SlotDefaultValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11283,6 +11308,7 @@ const deserializeAws_restJson1SlotDefaultValueList = (output: any, context: __Se } return deserializeAws_restJson1SlotDefaultValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotDefaultValueSpecification = ( @@ -11298,7 +11324,7 @@ const deserializeAws_restJson1SlotDefaultValueSpecification = ( }; const deserializeAws_restJson1SlotPrioritiesList = (output: any, context: __SerdeContext): SlotPriority[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11306,6 +11332,7 @@ const deserializeAws_restJson1SlotPrioritiesList = (output: any, context: __Serd } return deserializeAws_restJson1SlotPriority(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotPriority = (output: any, context: __SerdeContext): SlotPriority => { @@ -11334,7 +11361,7 @@ const deserializeAws_restJson1SlotSummary = (output: any, context: __SerdeContex }; const deserializeAws_restJson1SlotSummaryList = (output: any, context: __SerdeContext): SlotSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11342,6 +11369,7 @@ const deserializeAws_restJson1SlotSummaryList = (output: any, context: __SerdeCo } return deserializeAws_restJson1SlotSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotTypeStatistics = (output: any, context: __SerdeContext): SlotTypeStatistics => { @@ -11365,7 +11393,7 @@ const deserializeAws_restJson1SlotTypeSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1SlotTypeSummaryList = (output: any, context: __SerdeContext): SlotTypeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11373,6 +11401,7 @@ const deserializeAws_restJson1SlotTypeSummaryList = (output: any, context: __Ser } return deserializeAws_restJson1SlotTypeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotTypeValue = (output: any, context: __SerdeContext): SlotTypeValue => { @@ -11389,7 +11418,7 @@ const deserializeAws_restJson1SlotTypeValue = (output: any, context: __SerdeCont }; const deserializeAws_restJson1SlotTypeValues = (output: any, context: __SerdeContext): SlotTypeValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11397,6 +11426,7 @@ const deserializeAws_restJson1SlotTypeValues = (output: any, context: __SerdeCon } return deserializeAws_restJson1SlotTypeValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1SlotValueElicitationSetting = ( @@ -11469,7 +11499,7 @@ const deserializeAws_restJson1StillWaitingResponseSpecification = ( }; const deserializeAws_restJson1SynonymList = (output: any, context: __SerdeContext): SampleValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11477,6 +11507,7 @@ const deserializeAws_restJson1SynonymList = (output: any, context: __SerdeContex } return deserializeAws_restJson1SampleValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -11511,7 +11542,7 @@ const deserializeAws_restJson1TextLogSetting = (output: any, context: __SerdeCon }; const deserializeAws_restJson1TextLogSettingsList = (output: any, context: __SerdeContext): TextLogSetting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -11519,6 +11550,7 @@ const deserializeAws_restJson1TextLogSettingsList = (output: any, context: __Ser } return deserializeAws_restJson1TextLogSetting(entry, context); }); + return retVal; }; const deserializeAws_restJson1TranscriptFilter = (output: any, context: __SerdeContext): TranscriptFilter => { diff --git a/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts index d6dad82bc932..3a1de6e60900 100644 --- a/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts @@ -1179,7 +1179,7 @@ const deserializeAws_restJson1ActiveContextParametersMap = ( }; const deserializeAws_restJson1ActiveContextsList = (output: any, context: __SerdeContext): ActiveContext[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1187,6 +1187,7 @@ const deserializeAws_restJson1ActiveContextsList = (output: any, context: __Serd } return deserializeAws_restJson1ActiveContext(entry, context); }); + return retVal; }; const deserializeAws_restJson1ActiveContextTimeToLive = ( @@ -1235,7 +1236,7 @@ const deserializeAws_restJson1GenericAttachment = (output: any, context: __Serde }; const deserializeAws_restJson1genericAttachmentList = (output: any, context: __SerdeContext): GenericAttachment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1243,6 +1244,7 @@ const deserializeAws_restJson1genericAttachmentList = (output: any, context: __S } return deserializeAws_restJson1GenericAttachment(entry, context); }); + return retVal; }; const deserializeAws_restJson1IntentConfidence = (output: any, context: __SerdeContext): IntentConfidence => { @@ -1252,7 +1254,7 @@ const deserializeAws_restJson1IntentConfidence = (output: any, context: __SerdeC }; const deserializeAws_restJson1IntentList = (output: any, context: __SerdeContext): PredictedIntent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1260,6 +1262,7 @@ const deserializeAws_restJson1IntentList = (output: any, context: __SerdeContext } return deserializeAws_restJson1PredictedIntent(entry, context); }); + return retVal; }; const deserializeAws_restJson1IntentSummary = (output: any, context: __SerdeContext): IntentSummary => { @@ -1278,7 +1281,7 @@ const deserializeAws_restJson1IntentSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1IntentSummaryList = (output: any, context: __SerdeContext): IntentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1286,10 +1289,11 @@ const deserializeAws_restJson1IntentSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1IntentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1listOfButtons = (output: any, context: __SerdeContext): Button[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1297,6 +1301,7 @@ const deserializeAws_restJson1listOfButtons = (output: any, context: __SerdeCont } return deserializeAws_restJson1Button(entry, context); }); + return retVal; }; const deserializeAws_restJson1PredictedIntent = (output: any, context: __SerdeContext): PredictedIntent => { diff --git a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts index 548c98f4f72f..0649fafc907d 100644 --- a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts @@ -1783,7 +1783,7 @@ const deserializeAws_restJson1ActiveContextParametersMap = ( }; const deserializeAws_restJson1ActiveContextsList = (output: any, context: __SerdeContext): ActiveContext[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1791,6 +1791,7 @@ const deserializeAws_restJson1ActiveContextsList = (output: any, context: __Serd } return deserializeAws_restJson1ActiveContext(entry, context); }); + return retVal; }; const deserializeAws_restJson1ActiveContextTimeToLive = ( @@ -1828,7 +1829,7 @@ const deserializeAws_restJson1Button = (output: any, context: __SerdeContext): B }; const deserializeAws_restJson1ButtonsList = (output: any, context: __SerdeContext): Button[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1836,6 +1837,7 @@ const deserializeAws_restJson1ButtonsList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Button(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConfidenceScore = (output: any, context: __SerdeContext): ConfidenceScore => { @@ -1944,7 +1946,7 @@ const deserializeAws_restJson1Interpretation = (output: any, context: __SerdeCon }; const deserializeAws_restJson1Interpretations = (output: any, context: __SerdeContext): Interpretation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1952,6 +1954,7 @@ const deserializeAws_restJson1Interpretations = (output: any, context: __SerdeCo } return deserializeAws_restJson1Interpretation(entry, context); }); + return retVal; }; const deserializeAws_restJson1Message = (output: any, context: __SerdeContext): Message => { @@ -1966,7 +1969,7 @@ const deserializeAws_restJson1Message = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Messages = (output: any, context: __SerdeContext): Message[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1974,6 +1977,7 @@ const deserializeAws_restJson1Messages = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Message(entry, context); }); + return retVal; }; const deserializeAws_restJson1PlaybackInterruptionEvent = ( @@ -2021,7 +2025,7 @@ const deserializeAws_restJson1RuntimeHintValue = (output: any, context: __SerdeC }; const deserializeAws_restJson1RuntimeHintValuesList = (output: any, context: __SerdeContext): RuntimeHintValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2029,6 +2033,7 @@ const deserializeAws_restJson1RuntimeHintValuesList = (output: any, context: __S } return deserializeAws_restJson1RuntimeHintValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1SentimentResponse = (output: any, context: __SerdeContext): SentimentResponse => { @@ -2222,7 +2227,7 @@ const deserializeAws_restJson1StartConversationResponseEventStream = ( }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2230,6 +2235,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -2285,7 +2291,7 @@ const deserializeAws_restJson1Value = (output: any, context: __SerdeContext): Va }; const deserializeAws_restJson1Values = (output: any, context: __SerdeContext): Slot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2293,6 +2299,7 @@ const deserializeAws_restJson1Values = (output: any, context: __SerdeContext): S } return deserializeAws_restJson1Slot(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-license-manager/src/protocols/Aws_json1_1.ts b/clients/client-license-manager/src/protocols/Aws_json1_1.ts index bc8354b100b7..b1168c060418 100644 --- a/clients/client-license-manager/src/protocols/Aws_json1_1.ts +++ b/clients/client-license-manager/src/protocols/Aws_json1_1.ts @@ -5052,7 +5052,7 @@ const deserializeAws_json1_1AllowedOperationList = ( output: any, context: __SerdeContext ): (AllowedOperation | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5060,10 +5060,11 @@ const deserializeAws_json1_1AllowedOperationList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5071,6 +5072,7 @@ const deserializeAws_json1_1ArnList = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AuthorizationException = (output: any, context: __SerdeContext): AuthorizationException => { @@ -5160,7 +5162,7 @@ const deserializeAws_json1_1ConsumedLicenseSummaryList = ( output: any, context: __SerdeContext ): ConsumedLicenseSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5168,6 +5170,7 @@ const deserializeAws_json1_1ConsumedLicenseSummaryList = ( } return deserializeAws_json1_1ConsumedLicenseSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConsumptionConfiguration = ( @@ -5320,7 +5323,7 @@ const deserializeAws_json1_1EntitlementData = (output: any, context: __SerdeCont }; const deserializeAws_json1_1EntitlementDataList = (output: any, context: __SerdeContext): EntitlementData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5328,10 +5331,11 @@ const deserializeAws_json1_1EntitlementDataList = (output: any, context: __Serde } return deserializeAws_json1_1EntitlementData(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntitlementList = (output: any, context: __SerdeContext): Entitlement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5339,6 +5343,7 @@ const deserializeAws_json1_1EntitlementList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Entitlement(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntitlementNotAllowedException = ( @@ -5360,7 +5365,7 @@ const deserializeAws_json1_1EntitlementUsage = (output: any, context: __SerdeCon }; const deserializeAws_json1_1EntitlementUsageList = (output: any, context: __SerdeContext): EntitlementUsage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5368,6 +5373,7 @@ const deserializeAws_json1_1EntitlementUsageList = (output: any, context: __Serd } return deserializeAws_json1_1EntitlementUsage(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExtendLicenseConsumptionResponse = ( @@ -5595,7 +5601,7 @@ const deserializeAws_json1_1GrantedLicense = (output: any, context: __SerdeConte }; const deserializeAws_json1_1GrantedLicenseList = (output: any, context: __SerdeContext): GrantedLicense[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5603,10 +5609,11 @@ const deserializeAws_json1_1GrantedLicenseList = (output: any, context: __SerdeC } return deserializeAws_json1_1GrantedLicense(entry, context); }); + return retVal; }; const deserializeAws_json1_1GrantList = (output: any, context: __SerdeContext): Grant[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5614,6 +5621,7 @@ const deserializeAws_json1_1GrantList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Grant(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidParameterValueException = ( @@ -5732,7 +5740,7 @@ const deserializeAws_json1_1LicenseConfigurationAssociations = ( output: any, context: __SerdeContext ): LicenseConfigurationAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5740,10 +5748,11 @@ const deserializeAws_json1_1LicenseConfigurationAssociations = ( } return deserializeAws_json1_1LicenseConfigurationAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1LicenseConfigurations = (output: any, context: __SerdeContext): LicenseConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5751,6 +5760,7 @@ const deserializeAws_json1_1LicenseConfigurations = (output: any, context: __Ser } return deserializeAws_json1_1LicenseConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1LicenseConfigurationUsage = ( @@ -5774,7 +5784,7 @@ const deserializeAws_json1_1LicenseConfigurationUsageList = ( output: any, context: __SerdeContext ): LicenseConfigurationUsage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5782,6 +5792,7 @@ const deserializeAws_json1_1LicenseConfigurationUsageList = ( } return deserializeAws_json1_1LicenseConfigurationUsage(entry, context); }); + return retVal; }; const deserializeAws_json1_1LicenseConversionContext = ( @@ -5826,7 +5837,7 @@ const deserializeAws_json1_1LicenseConversionTasks = ( output: any, context: __SerdeContext ): LicenseConversionTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5834,10 +5845,11 @@ const deserializeAws_json1_1LicenseConversionTasks = ( } return deserializeAws_json1_1LicenseConversionTask(entry, context); }); + return retVal; }; const deserializeAws_json1_1LicenseList = (output: any, context: __SerdeContext): License[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5845,6 +5857,7 @@ const deserializeAws_json1_1LicenseList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1License(entry, context); }); + return retVal; }; const deserializeAws_json1_1LicenseOperationFailure = ( @@ -5873,7 +5886,7 @@ const deserializeAws_json1_1LicenseOperationFailureList = ( output: any, context: __SerdeContext ): LicenseOperationFailure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5881,6 +5894,7 @@ const deserializeAws_json1_1LicenseOperationFailureList = ( } return deserializeAws_json1_1LicenseOperationFailure(entry, context); }); + return retVal; }; const deserializeAws_json1_1LicenseSpecification = (output: any, context: __SerdeContext): LicenseSpecification => { @@ -5891,7 +5905,7 @@ const deserializeAws_json1_1LicenseSpecification = (output: any, context: __Serd }; const deserializeAws_json1_1LicenseSpecifications = (output: any, context: __SerdeContext): LicenseSpecification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5899,6 +5913,7 @@ const deserializeAws_json1_1LicenseSpecifications = (output: any, context: __Ser } return deserializeAws_json1_1LicenseSpecification(entry, context); }); + return retVal; }; const deserializeAws_json1_1LicenseUsage = (output: any, context: __SerdeContext): LicenseUsage => { @@ -6115,7 +6130,7 @@ const deserializeAws_json1_1ManagedResourceSummaryList = ( output: any, context: __SerdeContext ): ManagedResourceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6123,10 +6138,11 @@ const deserializeAws_json1_1ManagedResourceSummaryList = ( } return deserializeAws_json1_1ManagedResourceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaxSize3StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6134,6 +6150,7 @@ const deserializeAws_json1_1MaxSize3StringList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Metadata = (output: any, context: __SerdeContext): Metadata => { @@ -6144,7 +6161,7 @@ const deserializeAws_json1_1Metadata = (output: any, context: __SerdeContext): M }; const deserializeAws_json1_1MetadataList = (output: any, context: __SerdeContext): Metadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6152,6 +6169,7 @@ const deserializeAws_json1_1MetadataList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Metadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1NoEntitlementsAllowedException = ( @@ -6200,7 +6218,7 @@ const deserializeAws_json1_1ProductInformationFilterList = ( output: any, context: __SerdeContext ): ProductInformationFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6208,10 +6226,11 @@ const deserializeAws_json1_1ProductInformationFilterList = ( } return deserializeAws_json1_1ProductInformationFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProductInformationList = (output: any, context: __SerdeContext): ProductInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6219,6 +6238,7 @@ const deserializeAws_json1_1ProductInformationList = (output: any, context: __Se } return deserializeAws_json1_1ProductInformation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisionalConfiguration = ( @@ -6315,7 +6335,7 @@ const deserializeAws_json1_1ReportGenerator = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ReportGeneratorList = (output: any, context: __SerdeContext): ReportGenerator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6323,10 +6343,11 @@ const deserializeAws_json1_1ReportGeneratorList = (output: any, context: __Serde } return deserializeAws_json1_1ReportGenerator(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReportTypeList = (output: any, context: __SerdeContext): (ReportType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6334,6 +6355,7 @@ const deserializeAws_json1_1ReportTypeList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceInventory = (output: any, context: __SerdeContext): ResourceInventory => { @@ -6348,7 +6370,7 @@ const deserializeAws_json1_1ResourceInventory = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ResourceInventoryList = (output: any, context: __SerdeContext): ResourceInventory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6356,6 +6378,7 @@ const deserializeAws_json1_1ResourceInventoryList = (output: any, context: __Ser } return deserializeAws_json1_1ResourceInventory(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceLimitExceededException = ( @@ -6393,7 +6416,7 @@ const deserializeAws_json1_1ServerInternalException = ( }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6401,6 +6424,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -6411,7 +6435,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6419,6 +6443,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -6444,7 +6469,7 @@ const deserializeAws_json1_1TokenData = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1TokenList = (output: any, context: __SerdeContext): TokenData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6452,6 +6477,7 @@ const deserializeAws_json1_1TokenList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1TokenData(entry, context); }); + return retVal; }; const deserializeAws_json1_1UnsupportedDigitalSignatureMethodException = ( diff --git a/clients/client-lightsail/src/protocols/Aws_json1_1.ts b/clients/client-lightsail/src/protocols/Aws_json1_1.ts index 1c3732c62b07..f43c6ac22cfa 100644 --- a/clients/client-lightsail/src/protocols/Aws_json1_1.ts +++ b/clients/client-lightsail/src/protocols/Aws_json1_1.ts @@ -14221,7 +14221,7 @@ const deserializeAws_json1_1AccessKeyLastUsed = (output: any, context: __SerdeCo }; const deserializeAws_json1_1AccessKeyList = (output: any, context: __SerdeContext): AccessKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14229,10 +14229,11 @@ const deserializeAws_json1_1AccessKeyList = (output: any, context: __SerdeContex } return deserializeAws_json1_1AccessKey(entry, context); }); + return retVal; }; const deserializeAws_json1_1AccessReceiverList = (output: any, context: __SerdeContext): ResourceReceivingAccess[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14240,6 +14241,7 @@ const deserializeAws_json1_1AccessReceiverList = (output: any, context: __SerdeC } return deserializeAws_json1_1ResourceReceivingAccess(entry, context); }); + return retVal; }; const deserializeAws_json1_1AccessRules = (output: any, context: __SerdeContext): AccessRules => { @@ -14271,7 +14273,7 @@ const deserializeAws_json1_1AddOn = (output: any, context: __SerdeContext): AddO }; const deserializeAws_json1_1AddOnList = (output: any, context: __SerdeContext): AddOn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14279,6 +14281,7 @@ const deserializeAws_json1_1AddOnList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1AddOn(entry, context); }); + return retVal; }; const deserializeAws_json1_1Alarm = (output: any, context: __SerdeContext): Alarm => { @@ -14322,7 +14325,7 @@ const deserializeAws_json1_1Alarm = (output: any, context: __SerdeContext): Alar }; const deserializeAws_json1_1AlarmsList = (output: any, context: __SerdeContext): Alarm[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14330,6 +14333,7 @@ const deserializeAws_json1_1AlarmsList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Alarm(entry, context); }); + return retVal; }; const deserializeAws_json1_1AllocateStaticIpResult = (output: any, context: __SerdeContext): AllocateStaticIpResult => { @@ -14370,7 +14374,7 @@ const deserializeAws_json1_1AttachedDisk = (output: any, context: __SerdeContext }; const deserializeAws_json1_1AttachedDiskList = (output: any, context: __SerdeContext): AttachedDisk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14378,6 +14382,7 @@ const deserializeAws_json1_1AttachedDiskList = (output: any, context: __SerdeCon } return deserializeAws_json1_1AttachedDisk(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttachInstancesToLoadBalancerResult = ( @@ -14429,7 +14434,7 @@ const deserializeAws_json1_1AutoSnapshotDetails = (output: any, context: __Serde }; const deserializeAws_json1_1AutoSnapshotDetailsList = (output: any, context: __SerdeContext): AutoSnapshotDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14437,6 +14442,7 @@ const deserializeAws_json1_1AutoSnapshotDetailsList = (output: any, context: __S } return deserializeAws_json1_1AutoSnapshotDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { @@ -14447,7 +14453,7 @@ const deserializeAws_json1_1AvailabilityZone = (output: any, context: __SerdeCon }; const deserializeAws_json1_1AvailabilityZoneList = (output: any, context: __SerdeContext): AvailabilityZone[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14455,6 +14461,7 @@ const deserializeAws_json1_1AvailabilityZoneList = (output: any, context: __Serd } return deserializeAws_json1_1AvailabilityZone(entry, context); }); + return retVal; }; const deserializeAws_json1_1Blueprint = (output: any, context: __SerdeContext): Blueprint => { @@ -14475,7 +14482,7 @@ const deserializeAws_json1_1Blueprint = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1BlueprintList = (output: any, context: __SerdeContext): Blueprint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14483,6 +14490,7 @@ const deserializeAws_json1_1BlueprintList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Blueprint(entry, context); }); + return retVal; }; const deserializeAws_json1_1Bucket = (output: any, context: __SerdeContext): Bucket => { @@ -14550,7 +14558,7 @@ const deserializeAws_json1_1BucketBundle = (output: any, context: __SerdeContext }; const deserializeAws_json1_1BucketBundleList = (output: any, context: __SerdeContext): BucketBundle[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14558,10 +14566,11 @@ const deserializeAws_json1_1BucketBundleList = (output: any, context: __SerdeCon } return deserializeAws_json1_1BucketBundle(entry, context); }); + return retVal; }; const deserializeAws_json1_1BucketList = (output: any, context: __SerdeContext): Bucket[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14569,6 +14578,7 @@ const deserializeAws_json1_1BucketList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Bucket(entry, context); }); + return retVal; }; const deserializeAws_json1_1BucketState = (output: any, context: __SerdeContext): BucketState => { @@ -14598,7 +14608,7 @@ const deserializeAws_json1_1Bundle = (output: any, context: __SerdeContext): Bun }; const deserializeAws_json1_1BundleList = (output: any, context: __SerdeContext): Bundle[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14606,6 +14616,7 @@ const deserializeAws_json1_1BundleList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Bundle(entry, context); }); + return retVal; }; const deserializeAws_json1_1CacheBehavior = (output: any, context: __SerdeContext): CacheBehavior => { @@ -14615,7 +14626,7 @@ const deserializeAws_json1_1CacheBehavior = (output: any, context: __SerdeContex }; const deserializeAws_json1_1CacheBehaviorList = (output: any, context: __SerdeContext): CacheBehaviorPerPath[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14623,6 +14634,7 @@ const deserializeAws_json1_1CacheBehaviorList = (output: any, context: __SerdeCo } return deserializeAws_json1_1CacheBehaviorPerPath(entry, context); }); + return retVal; }; const deserializeAws_json1_1CacheBehaviorPerPath = (output: any, context: __SerdeContext): CacheBehaviorPerPath => { @@ -14724,7 +14736,7 @@ const deserializeAws_json1_1CertificateSummary = (output: any, context: __SerdeC }; const deserializeAws_json1_1CertificateSummaryList = (output: any, context: __SerdeContext): CertificateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14732,6 +14744,7 @@ const deserializeAws_json1_1CertificateSummaryList = (output: any, context: __Se } return deserializeAws_json1_1CertificateSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1CloseInstancePublicPortsResult = ( @@ -14778,7 +14791,7 @@ const deserializeAws_json1_1CloudFormationStackRecordList = ( output: any, context: __SerdeContext ): CloudFormationStackRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14786,6 +14799,7 @@ const deserializeAws_json1_1CloudFormationStackRecordList = ( } return deserializeAws_json1_1CloudFormationStackRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1CloudFormationStackRecordSourceInfo = ( @@ -14803,7 +14817,7 @@ const deserializeAws_json1_1CloudFormationStackRecordSourceInfoList = ( output: any, context: __SerdeContext ): CloudFormationStackRecordSourceInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14811,6 +14825,7 @@ const deserializeAws_json1_1CloudFormationStackRecordSourceInfoList = ( } return deserializeAws_json1_1CloudFormationStackRecordSourceInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContactMethod = (output: any, context: __SerdeContext): ContactMethod => { @@ -14834,7 +14849,7 @@ const deserializeAws_json1_1ContactMethod = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ContactMethodsList = (output: any, context: __SerdeContext): ContactMethod[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14842,13 +14857,14 @@ const deserializeAws_json1_1ContactMethodsList = (output: any, context: __SerdeC } return deserializeAws_json1_1ContactMethod(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContactProtocolsList = ( output: any, context: __SerdeContext ): (ContactProtocol | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14856,6 +14872,7 @@ const deserializeAws_json1_1ContactProtocolsList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Container = (output: any, context: __SerdeContext): Container => { @@ -14888,7 +14905,7 @@ const deserializeAws_json1_1ContainerImage = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ContainerImageList = (output: any, context: __SerdeContext): ContainerImage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14896,6 +14913,7 @@ const deserializeAws_json1_1ContainerImageList = (output: any, context: __SerdeC } return deserializeAws_json1_1ContainerImage(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerMap = (output: any, context: __SerdeContext): { [key: string]: Container } => { @@ -14980,7 +14998,7 @@ const deserializeAws_json1_1ContainerServiceDeploymentList = ( output: any, context: __SerdeContext ): ContainerServiceDeployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -14988,6 +15006,7 @@ const deserializeAws_json1_1ContainerServiceDeploymentList = ( } return deserializeAws_json1_1ContainerServiceDeployment(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerServiceEndpoint = ( @@ -15019,7 +15038,7 @@ const deserializeAws_json1_1ContainerServiceHealthCheckConfig = ( }; const deserializeAws_json1_1ContainerServiceList = (output: any, context: __SerdeContext): ContainerService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15027,6 +15046,7 @@ const deserializeAws_json1_1ContainerServiceList = (output: any, context: __Serd } return deserializeAws_json1_1ContainerService(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerServiceLogEvent = ( @@ -15046,7 +15066,7 @@ const deserializeAws_json1_1ContainerServiceLogEventList = ( output: any, context: __SerdeContext ): ContainerServiceLogEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15054,6 +15074,7 @@ const deserializeAws_json1_1ContainerServiceLogEventList = ( } return deserializeAws_json1_1ContainerServiceLogEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerServiceMetadataEntry = ( @@ -15075,7 +15096,7 @@ const deserializeAws_json1_1ContainerServiceMetadataEntryList = ( output: any, context: __SerdeContext ): { [key: string]: string }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15083,6 +15104,7 @@ const deserializeAws_json1_1ContainerServiceMetadataEntryList = ( } return deserializeAws_json1_1ContainerServiceMetadataEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerServicePower = (output: any, context: __SerdeContext): ContainerServicePower => { @@ -15100,7 +15122,7 @@ const deserializeAws_json1_1ContainerServicePowerList = ( output: any, context: __SerdeContext ): ContainerServicePower[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15108,6 +15130,7 @@ const deserializeAws_json1_1ContainerServicePowerList = ( } return deserializeAws_json1_1ContainerServicePower(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerServicePublicDomains = ( @@ -15126,7 +15149,7 @@ const deserializeAws_json1_1ContainerServicePublicDomains = ( }; const deserializeAws_json1_1ContainerServicePublicDomainsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15134,6 +15157,7 @@ const deserializeAws_json1_1ContainerServicePublicDomainsList = (output: any, co } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ContainerServiceRegistryLogin = ( @@ -15801,7 +15825,7 @@ const deserializeAws_json1_1DiskInfo = (output: any, context: __SerdeContext): D }; const deserializeAws_json1_1DiskInfoList = (output: any, context: __SerdeContext): DiskInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15809,10 +15833,11 @@ const deserializeAws_json1_1DiskInfoList = (output: any, context: __SerdeContext } return deserializeAws_json1_1DiskInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1DiskList = (output: any, context: __SerdeContext): Disk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15820,6 +15845,7 @@ const deserializeAws_json1_1DiskList = (output: any, context: __SerdeContext): D } return deserializeAws_json1_1Disk(entry, context); }); + return retVal; }; const deserializeAws_json1_1DiskSnapshot = (output: any, context: __SerdeContext): DiskSnapshot => { @@ -15858,7 +15884,7 @@ const deserializeAws_json1_1DiskSnapshotInfo = (output: any, context: __SerdeCon }; const deserializeAws_json1_1DiskSnapshotList = (output: any, context: __SerdeContext): DiskSnapshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15866,6 +15892,7 @@ const deserializeAws_json1_1DiskSnapshotList = (output: any, context: __SerdeCon } return deserializeAws_json1_1DiskSnapshot(entry, context); }); + return retVal; }; const deserializeAws_json1_1DistributionBundle = (output: any, context: __SerdeContext): DistributionBundle => { @@ -15879,7 +15906,7 @@ const deserializeAws_json1_1DistributionBundle = (output: any, context: __SerdeC }; const deserializeAws_json1_1DistributionBundleList = (output: any, context: __SerdeContext): DistributionBundle[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15887,10 +15914,11 @@ const deserializeAws_json1_1DistributionBundleList = (output: any, context: __Se } return deserializeAws_json1_1DistributionBundle(entry, context); }); + return retVal; }; const deserializeAws_json1_1DistributionList = (output: any, context: __SerdeContext): LightsailDistribution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15898,6 +15926,7 @@ const deserializeAws_json1_1DistributionList = (output: any, context: __SerdeCon } return deserializeAws_json1_1LightsailDistribution(entry, context); }); + return retVal; }; const deserializeAws_json1_1Domain = (output: any, context: __SerdeContext): Domain => { @@ -15940,7 +15969,7 @@ const deserializeAws_json1_1DomainEntry = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1DomainEntryList = (output: any, context: __SerdeContext): DomainEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15948,6 +15977,7 @@ const deserializeAws_json1_1DomainEntryList = (output: any, context: __SerdeCont } return deserializeAws_json1_1DomainEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1DomainEntryOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -15963,7 +15993,7 @@ const deserializeAws_json1_1DomainEntryOptions = (output: any, context: __SerdeC }; const deserializeAws_json1_1DomainList = (output: any, context: __SerdeContext): Domain[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15971,6 +16001,7 @@ const deserializeAws_json1_1DomainList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Domain(entry, context); }); + return retVal; }; const deserializeAws_json1_1DomainValidationRecord = (output: any, context: __SerdeContext): DomainValidationRecord => { @@ -15987,7 +16018,7 @@ const deserializeAws_json1_1DomainValidationRecordList = ( output: any, context: __SerdeContext ): DomainValidationRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15995,6 +16026,7 @@ const deserializeAws_json1_1DomainValidationRecordList = ( } return deserializeAws_json1_1DomainValidationRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1DownloadDefaultKeyPairResult = ( @@ -16057,7 +16089,7 @@ const deserializeAws_json1_1ExportSnapshotRecordList = ( output: any, context: __SerdeContext ): ExportSnapshotRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16065,6 +16097,7 @@ const deserializeAws_json1_1ExportSnapshotRecordList = ( } return deserializeAws_json1_1ExportSnapshotRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExportSnapshotRecordSourceInfo = ( @@ -16786,7 +16819,7 @@ const deserializeAws_json1_1GetStaticIpsResult = (output: any, context: __SerdeC }; const deserializeAws_json1_1HeaderForwardList = (output: any, context: __SerdeContext): (HeaderEnum | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16794,6 +16827,7 @@ const deserializeAws_json1_1HeaderForwardList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1HeaderObject = (output: any, context: __SerdeContext): HeaderObject => { @@ -16828,7 +16862,7 @@ const deserializeAws_json1_1HostKeyAttributes = (output: any, context: __SerdeCo }; const deserializeAws_json1_1HostKeysList = (output: any, context: __SerdeContext): HostKeyAttributes[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16836,6 +16870,7 @@ const deserializeAws_json1_1HostKeysList = (output: any, context: __SerdeContext } return deserializeAws_json1_1HostKeyAttributes(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImportKeyPairResult = (output: any, context: __SerdeContext): ImportKeyPairResult => { @@ -16944,7 +16979,7 @@ const deserializeAws_json1_1InstanceHealthSummaryList = ( output: any, context: __SerdeContext ): InstanceHealthSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16952,10 +16987,11 @@ const deserializeAws_json1_1InstanceHealthSummaryList = ( } return deserializeAws_json1_1InstanceHealthSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext): Instance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16963,6 +16999,7 @@ const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Instance(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceNetworking = (output: any, context: __SerdeContext): InstanceNetworking => { @@ -16982,7 +17019,7 @@ const deserializeAws_json1_1InstancePlatformList = ( output: any, context: __SerdeContext ): (InstancePlatform | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16990,6 +17027,7 @@ const deserializeAws_json1_1InstancePlatformList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InstancePortInfo = (output: any, context: __SerdeContext): InstancePortInfo => { @@ -17017,7 +17055,7 @@ const deserializeAws_json1_1InstancePortInfo = (output: any, context: __SerdeCon }; const deserializeAws_json1_1InstancePortInfoList = (output: any, context: __SerdeContext): InstancePortInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17025,6 +17063,7 @@ const deserializeAws_json1_1InstancePortInfoList = (output: any, context: __Serd } return deserializeAws_json1_1InstancePortInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstancePortState = (output: any, context: __SerdeContext): InstancePortState => { @@ -17049,7 +17088,7 @@ const deserializeAws_json1_1InstancePortState = (output: any, context: __SerdeCo }; const deserializeAws_json1_1InstancePortStateList = (output: any, context: __SerdeContext): InstancePortState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17057,6 +17096,7 @@ const deserializeAws_json1_1InstancePortStateList = (output: any, context: __Ser } return deserializeAws_json1_1InstancePortState(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceSnapshot = (output: any, context: __SerdeContext): InstanceSnapshot => { @@ -17104,7 +17144,7 @@ const deserializeAws_json1_1InstanceSnapshotInfo = (output: any, context: __Serd }; const deserializeAws_json1_1InstanceSnapshotList = (output: any, context: __SerdeContext): InstanceSnapshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17112,6 +17152,7 @@ const deserializeAws_json1_1InstanceSnapshotList = (output: any, context: __Serd } return deserializeAws_json1_1InstanceSnapshot(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceState = (output: any, context: __SerdeContext): InstanceState => { @@ -17131,7 +17172,7 @@ const deserializeAws_json1_1InvalidInputException = (output: any, context: __Ser }; const deserializeAws_json1_1Ipv6AddressList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17139,6 +17180,7 @@ const deserializeAws_json1_1Ipv6AddressList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1IsVpcPeeredResult = (output: any, context: __SerdeContext): IsVpcPeeredResult => { @@ -17170,7 +17212,7 @@ const deserializeAws_json1_1KeyPair = (output: any, context: __SerdeContext): Ke }; const deserializeAws_json1_1KeyPairList = (output: any, context: __SerdeContext): KeyPair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17178,6 +17220,7 @@ const deserializeAws_json1_1KeyPairList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1KeyPair(entry, context); }); + return retVal; }; const deserializeAws_json1_1LightsailDistribution = (output: any, context: __SerdeContext): LightsailDistribution => { @@ -17291,7 +17334,7 @@ const deserializeAws_json1_1LoadBalancerConfigurationOptions = ( }; const deserializeAws_json1_1LoadBalancerList = (output: any, context: __SerdeContext): LoadBalancer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17299,6 +17342,7 @@ const deserializeAws_json1_1LoadBalancerList = (output: any, context: __SerdeCon } return deserializeAws_json1_1LoadBalancer(entry, context); }); + return retVal; }; const deserializeAws_json1_1LoadBalancerTlsCertificate = ( @@ -17381,7 +17425,7 @@ const deserializeAws_json1_1LoadBalancerTlsCertificateDomainValidationOptionList output: any, context: __SerdeContext ): LoadBalancerTlsCertificateDomainValidationOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17389,6 +17433,7 @@ const deserializeAws_json1_1LoadBalancerTlsCertificateDomainValidationOptionList } return deserializeAws_json1_1LoadBalancerTlsCertificateDomainValidationOption(entry, context); }); + return retVal; }; const deserializeAws_json1_1LoadBalancerTlsCertificateDomainValidationRecord = ( @@ -17408,7 +17453,7 @@ const deserializeAws_json1_1LoadBalancerTlsCertificateDomainValidationRecordList output: any, context: __SerdeContext ): LoadBalancerTlsCertificateDomainValidationRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17416,13 +17461,14 @@ const deserializeAws_json1_1LoadBalancerTlsCertificateDomainValidationRecordList } return deserializeAws_json1_1LoadBalancerTlsCertificateDomainValidationRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1LoadBalancerTlsCertificateList = ( output: any, context: __SerdeContext ): LoadBalancerTlsCertificate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17430,6 +17476,7 @@ const deserializeAws_json1_1LoadBalancerTlsCertificateList = ( } return deserializeAws_json1_1LoadBalancerTlsCertificate(entry, context); }); + return retVal; }; const deserializeAws_json1_1LoadBalancerTlsCertificateRenewalSummary = ( @@ -17462,7 +17509,7 @@ const deserializeAws_json1_1LoadBalancerTlsCertificateSummaryList = ( output: any, context: __SerdeContext ): LoadBalancerTlsCertificateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17470,6 +17517,7 @@ const deserializeAws_json1_1LoadBalancerTlsCertificateSummaryList = ( } return deserializeAws_json1_1LoadBalancerTlsCertificateSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1LogEvent = (output: any, context: __SerdeContext): LogEvent => { @@ -17483,7 +17531,7 @@ const deserializeAws_json1_1LogEvent = (output: any, context: __SerdeContext): L }; const deserializeAws_json1_1LogEventList = (output: any, context: __SerdeContext): LogEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17491,6 +17539,7 @@ const deserializeAws_json1_1LogEventList = (output: any, context: __SerdeContext } return deserializeAws_json1_1LogEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetricDatapoint = (output: any, context: __SerdeContext): MetricDatapoint => { @@ -17509,7 +17558,7 @@ const deserializeAws_json1_1MetricDatapoint = (output: any, context: __SerdeCont }; const deserializeAws_json1_1MetricDatapointList = (output: any, context: __SerdeContext): MetricDatapoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17517,6 +17566,7 @@ const deserializeAws_json1_1MetricDatapointList = (output: any, context: __Serde } return deserializeAws_json1_1MetricDatapoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1MonitoredResourceInfo = (output: any, context: __SerdeContext): MonitoredResourceInfo => { @@ -17546,7 +17596,7 @@ const deserializeAws_json1_1NotificationTriggerList = ( output: any, context: __SerdeContext ): (AlarmState | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17554,6 +17604,7 @@ const deserializeAws_json1_1NotificationTriggerList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OpenInstancePublicPortsResult = ( @@ -17607,7 +17658,7 @@ const deserializeAws_json1_1OperationFailureException = ( }; const deserializeAws_json1_1OperationList = (output: any, context: __SerdeContext): Operation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17615,6 +17666,7 @@ const deserializeAws_json1_1OperationList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Operation(entry, context); }); + return retVal; }; const deserializeAws_json1_1Origin = (output: any, context: __SerdeContext): Origin => { @@ -17627,7 +17679,7 @@ const deserializeAws_json1_1Origin = (output: any, context: __SerdeContext): Ori }; const deserializeAws_json1_1PartnerIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17635,6 +17687,7 @@ const deserializeAws_json1_1PartnerIdList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PasswordData = (output: any, context: __SerdeContext): PasswordData => { @@ -17671,7 +17724,7 @@ const deserializeAws_json1_1PendingMaintenanceActionList = ( output: any, context: __SerdeContext ): PendingMaintenanceAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17679,6 +17732,7 @@ const deserializeAws_json1_1PendingMaintenanceActionList = ( } return deserializeAws_json1_1PendingMaintenanceAction(entry, context); }); + return retVal; }; const deserializeAws_json1_1PendingModifiedRelationalDatabaseValues = ( @@ -17693,7 +17747,7 @@ const deserializeAws_json1_1PendingModifiedRelationalDatabaseValues = ( }; const deserializeAws_json1_1PortList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17701,6 +17755,7 @@ const deserializeAws_json1_1PortList = (output: any, context: __SerdeContext): n } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PortMap = ( @@ -17791,7 +17846,7 @@ const deserializeAws_json1_1Region = (output: any, context: __SerdeContext): Reg }; const deserializeAws_json1_1RegionList = (output: any, context: __SerdeContext): Region[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17799,6 +17854,7 @@ const deserializeAws_json1_1RegionList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Region(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegisterContainerImageResult = ( @@ -17886,7 +17942,7 @@ const deserializeAws_json1_1RelationalDatabaseBlueprintList = ( output: any, context: __SerdeContext ): RelationalDatabaseBlueprint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17894,6 +17950,7 @@ const deserializeAws_json1_1RelationalDatabaseBlueprintList = ( } return deserializeAws_json1_1RelationalDatabaseBlueprint(entry, context); }); + return retVal; }; const deserializeAws_json1_1RelationalDatabaseBundle = ( @@ -17917,7 +17974,7 @@ const deserializeAws_json1_1RelationalDatabaseBundleList = ( output: any, context: __SerdeContext ): RelationalDatabaseBundle[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17925,6 +17982,7 @@ const deserializeAws_json1_1RelationalDatabaseBundleList = ( } return deserializeAws_json1_1RelationalDatabaseBundle(entry, context); }); + return retVal; }; const deserializeAws_json1_1RelationalDatabaseEndpoint = ( @@ -17959,7 +18017,7 @@ const deserializeAws_json1_1RelationalDatabaseEventList = ( output: any, context: __SerdeContext ): RelationalDatabaseEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17967,6 +18025,7 @@ const deserializeAws_json1_1RelationalDatabaseEventList = ( } return deserializeAws_json1_1RelationalDatabaseEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1RelationalDatabaseHardware = ( @@ -17981,7 +18040,7 @@ const deserializeAws_json1_1RelationalDatabaseHardware = ( }; const deserializeAws_json1_1RelationalDatabaseList = (output: any, context: __SerdeContext): RelationalDatabase[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17989,6 +18048,7 @@ const deserializeAws_json1_1RelationalDatabaseList = (output: any, context: __Se } return deserializeAws_json1_1RelationalDatabase(entry, context); }); + return retVal; }; const deserializeAws_json1_1RelationalDatabaseParameter = ( @@ -18011,7 +18071,7 @@ const deserializeAws_json1_1RelationalDatabaseParameterList = ( output: any, context: __SerdeContext ): RelationalDatabaseParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18019,6 +18079,7 @@ const deserializeAws_json1_1RelationalDatabaseParameterList = ( } return deserializeAws_json1_1RelationalDatabaseParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1RelationalDatabaseSnapshot = ( @@ -18057,7 +18118,7 @@ const deserializeAws_json1_1RelationalDatabaseSnapshotList = ( output: any, context: __SerdeContext ): RelationalDatabaseSnapshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18065,6 +18126,7 @@ const deserializeAws_json1_1RelationalDatabaseSnapshotList = ( } return deserializeAws_json1_1RelationalDatabaseSnapshot(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReleaseStaticIpResult = (output: any, context: __SerdeContext): ReleaseStaticIpResult => { @@ -18217,7 +18279,7 @@ const deserializeAws_json1_1StaticIp = (output: any, context: __SerdeContext): S }; const deserializeAws_json1_1StaticIpList = (output: any, context: __SerdeContext): StaticIp[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18225,6 +18287,7 @@ const deserializeAws_json1_1StaticIpList = (output: any, context: __SerdeContext } return deserializeAws_json1_1StaticIp(entry, context); }); + return retVal; }; const deserializeAws_json1_1StopInstanceResult = (output: any, context: __SerdeContext): StopInstanceResult => { @@ -18249,7 +18312,7 @@ const deserializeAws_json1_1StopRelationalDatabaseResult = ( }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18257,10 +18320,11 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SubjectAlternativeNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18268,6 +18332,7 @@ const deserializeAws_json1_1SubjectAlternativeNameList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -18278,7 +18343,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18286,6 +18351,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResult = (output: any, context: __SerdeContext): TagResourceResult => { diff --git a/clients/client-location/src/protocols/Aws_restJson1.ts b/clients/client-location/src/protocols/Aws_restJson1.ts index 5c26e0cdb713..30bb75f1f689 100644 --- a/clients/client-location/src/protocols/Aws_restJson1.ts +++ b/clients/client-location/src/protocols/Aws_restJson1.ts @@ -6017,7 +6017,7 @@ const serializeAws_restJson1WaypointPositionList = (input: number[][], context: }; const deserializeAws_restJson1ArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6025,6 +6025,7 @@ const deserializeAws_restJson1ArnList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = ( @@ -6044,7 +6045,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = ( output: any, context: __SerdeContext ): BatchDeleteDevicePositionHistoryError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6052,6 +6053,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = ( } return deserializeAws_restJson1BatchDeleteDevicePositionHistoryError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchDeleteGeofenceError = ( @@ -6071,7 +6073,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceErrorList = ( output: any, context: __SerdeContext ): BatchDeleteGeofenceError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6079,6 +6081,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceErrorList = ( } return deserializeAws_restJson1BatchDeleteGeofenceError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchEvaluateGeofencesError = ( @@ -6102,7 +6105,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = ( output: any, context: __SerdeContext ): BatchEvaluateGeofencesError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6110,6 +6113,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = ( } return deserializeAws_restJson1BatchEvaluateGeofencesError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchGetDevicePositionError = ( @@ -6129,7 +6133,7 @@ const deserializeAws_restJson1BatchGetDevicePositionErrorList = ( output: any, context: __SerdeContext ): BatchGetDevicePositionError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6137,6 +6141,7 @@ const deserializeAws_restJson1BatchGetDevicePositionErrorList = ( } return deserializeAws_restJson1BatchGetDevicePositionError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchItemError = (output: any, context: __SerdeContext): BatchItemError => { @@ -6160,7 +6165,7 @@ const deserializeAws_restJson1BatchPutGeofenceErrorList = ( output: any, context: __SerdeContext ): BatchPutGeofenceError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6168,6 +6173,7 @@ const deserializeAws_restJson1BatchPutGeofenceErrorList = ( } return deserializeAws_restJson1BatchPutGeofenceError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchPutGeofenceSuccess = ( @@ -6191,7 +6197,7 @@ const deserializeAws_restJson1BatchPutGeofenceSuccessList = ( output: any, context: __SerdeContext ): BatchPutGeofenceSuccess[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6199,6 +6205,7 @@ const deserializeAws_restJson1BatchPutGeofenceSuccessList = ( } return deserializeAws_restJson1BatchPutGeofenceSuccess(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchUpdateDevicePositionError = ( @@ -6222,7 +6229,7 @@ const deserializeAws_restJson1BatchUpdateDevicePositionErrorList = ( output: any, context: __SerdeContext ): BatchUpdateDevicePositionError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6230,10 +6237,11 @@ const deserializeAws_restJson1BatchUpdateDevicePositionErrorList = ( } return deserializeAws_restJson1BatchUpdateDevicePositionError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BoundingBox = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6241,6 +6249,7 @@ const deserializeAws_restJson1BoundingBox = (output: any, context: __SerdeContex } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CalculateRouteMatrixSummary = ( @@ -6269,7 +6278,7 @@ const deserializeAws_restJson1CalculateRouteSummary = (output: any, context: __S }; const deserializeAws_restJson1CountryCodeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6277,6 +6286,7 @@ const deserializeAws_restJson1CountryCodeList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DataSourceConfiguration = ( @@ -6315,7 +6325,7 @@ const deserializeAws_restJson1DevicePosition = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DevicePositionList = (output: any, context: __SerdeContext): DevicePosition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6323,6 +6333,7 @@ const deserializeAws_restJson1DevicePositionList = (output: any, context: __Serd } return deserializeAws_restJson1DevicePosition(entry, context); }); + return retVal; }; const deserializeAws_restJson1GeofenceGeometry = (output: any, context: __SerdeContext): GeofenceGeometry => { @@ -6367,7 +6378,7 @@ const deserializeAws_restJson1LegGeometry = (output: any, context: __SerdeContex }; const deserializeAws_restJson1LegList = (output: any, context: __SerdeContext): Leg[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6375,10 +6386,11 @@ const deserializeAws_restJson1LegList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Leg(entry, context); }); + return retVal; }; const deserializeAws_restJson1LinearRing = (output: any, context: __SerdeContext): number[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6386,10 +6398,11 @@ const deserializeAws_restJson1LinearRing = (output: any, context: __SerdeContext } return deserializeAws_restJson1Position(entry, context); }); + return retVal; }; const deserializeAws_restJson1LinearRings = (output: any, context: __SerdeContext): number[][][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6397,10 +6410,11 @@ const deserializeAws_restJson1LinearRings = (output: any, context: __SerdeContex } return deserializeAws_restJson1LinearRing(entry, context); }); + return retVal; }; const deserializeAws_restJson1LineString = (output: any, context: __SerdeContext): number[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6408,6 +6422,7 @@ const deserializeAws_restJson1LineString = (output: any, context: __SerdeContext } return deserializeAws_restJson1Position(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListDevicePositionsResponseEntry = ( @@ -6439,7 +6454,7 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntryList = ( output: any, context: __SerdeContext ): ListDevicePositionsResponseEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6447,6 +6462,7 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntryList = ( } return deserializeAws_restJson1ListDevicePositionsResponseEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = ( @@ -6473,7 +6489,7 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = ( output: any, context: __SerdeContext ): ListGeofenceCollectionsResponseEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6481,6 +6497,7 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = ( } return deserializeAws_restJson1ListGeofenceCollectionsResponseEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListGeofenceResponseEntry = ( @@ -6509,7 +6526,7 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = ( output: any, context: __SerdeContext ): ListGeofenceResponseEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6517,6 +6534,7 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = ( } return deserializeAws_restJson1ListGeofenceResponseEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListMapsResponseEntry = (output: any, context: __SerdeContext): ListMapsResponseEntry => { @@ -6540,7 +6558,7 @@ const deserializeAws_restJson1ListMapsResponseEntryList = ( output: any, context: __SerdeContext ): ListMapsResponseEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6548,6 +6566,7 @@ const deserializeAws_restJson1ListMapsResponseEntryList = ( } return deserializeAws_restJson1ListMapsResponseEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListPlaceIndexesResponseEntry = ( @@ -6574,7 +6593,7 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = ( output: any, context: __SerdeContext ): ListPlaceIndexesResponseEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6582,6 +6601,7 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = ( } return deserializeAws_restJson1ListPlaceIndexesResponseEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = ( @@ -6608,7 +6628,7 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = ( output: any, context: __SerdeContext ): ListRouteCalculatorsResponseEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6616,6 +6636,7 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = ( } return deserializeAws_restJson1ListRouteCalculatorsResponseEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListTrackersResponseEntry = ( @@ -6642,7 +6663,7 @@ const deserializeAws_restJson1ListTrackersResponseEntryList = ( output: any, context: __SerdeContext ): ListTrackersResponseEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6650,6 +6671,7 @@ const deserializeAws_restJson1ListTrackersResponseEntryList = ( } return deserializeAws_restJson1ListTrackersResponseEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1MapConfiguration = (output: any, context: __SerdeContext): MapConfiguration => { @@ -6691,7 +6713,7 @@ const deserializeAws_restJson1PlaceGeometry = (output: any, context: __SerdeCont }; const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6699,6 +6721,7 @@ const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PositionalAccuracy = (output: any, context: __SerdeContext): PositionalAccuracy => { @@ -6708,7 +6731,7 @@ const deserializeAws_restJson1PositionalAccuracy = (output: any, context: __Serd }; const deserializeAws_restJson1PositionList = (output: any, context: __SerdeContext): number[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6716,6 +6739,7 @@ const deserializeAws_restJson1PositionList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Position(entry, context); }); + return retVal; }; const deserializeAws_restJson1PropertyMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -6731,7 +6755,7 @@ const deserializeAws_restJson1PropertyMap = (output: any, context: __SerdeContex }; const deserializeAws_restJson1RouteMatrix = (output: any, context: __SerdeContext): RouteMatrixEntry[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6739,6 +6763,7 @@ const deserializeAws_restJson1RouteMatrix = (output: any, context: __SerdeContex } return deserializeAws_restJson1RouteMatrixRow(entry, context); }); + return retVal; }; const deserializeAws_restJson1RouteMatrixEntry = (output: any, context: __SerdeContext): RouteMatrixEntry => { @@ -6760,7 +6785,7 @@ const deserializeAws_restJson1RouteMatrixEntryError = (output: any, context: __S }; const deserializeAws_restJson1RouteMatrixRow = (output: any, context: __SerdeContext): RouteMatrixEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6768,6 +6793,7 @@ const deserializeAws_restJson1RouteMatrixRow = (output: any, context: __SerdeCon } return deserializeAws_restJson1RouteMatrixEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1SearchForPositionResult = ( @@ -6787,7 +6813,7 @@ const deserializeAws_restJson1SearchForPositionResultList = ( output: any, context: __SerdeContext ): SearchForPositionResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6795,6 +6821,7 @@ const deserializeAws_restJson1SearchForPositionResultList = ( } return deserializeAws_restJson1SearchForPositionResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1SearchForSuggestionsResult = ( @@ -6810,7 +6837,7 @@ const deserializeAws_restJson1SearchForSuggestionsResultList = ( output: any, context: __SerdeContext ): SearchForSuggestionsResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6818,6 +6845,7 @@ const deserializeAws_restJson1SearchForSuggestionsResultList = ( } return deserializeAws_restJson1SearchForSuggestionsResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1SearchForTextResult = (output: any, context: __SerdeContext): SearchForTextResult => { @@ -6835,7 +6863,7 @@ const deserializeAws_restJson1SearchForTextResultList = ( output: any, context: __SerdeContext ): SearchForTextResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6843,6 +6871,7 @@ const deserializeAws_restJson1SearchForTextResultList = ( } return deserializeAws_restJson1SearchForTextResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = ( @@ -6929,7 +6958,7 @@ const deserializeAws_restJson1Step = (output: any, context: __SerdeContext): Ste }; const deserializeAws_restJson1StepList = (output: any, context: __SerdeContext): Step[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6937,6 +6966,7 @@ const deserializeAws_restJson1StepList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Step(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -6972,7 +7002,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6980,6 +7010,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts b/clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts index 741b12be4c85..3fa274a58557 100644 --- a/clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts +++ b/clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts @@ -2237,7 +2237,7 @@ const deserializeAws_json1_0DataIngestionJobSummaries = ( output: any, context: __SerdeContext ): DataIngestionJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2245,6 +2245,7 @@ const deserializeAws_json1_0DataIngestionJobSummaries = ( } return deserializeAws_json1_0DataIngestionJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0DataIngestionJobSummary = ( @@ -2273,7 +2274,7 @@ const deserializeAws_json1_0DataPreProcessingConfiguration = ( }; const deserializeAws_json1_0DatasetSummaries = (output: any, context: __SerdeContext): DatasetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2281,6 +2282,7 @@ const deserializeAws_json1_0DatasetSummaries = (output: any, context: __SerdeCon } return deserializeAws_json1_0DatasetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0DatasetSummary = (output: any, context: __SerdeContext): DatasetSummary => { @@ -2437,7 +2439,7 @@ const deserializeAws_json1_0InferenceExecutionSummaries = ( output: any, context: __SerdeContext ): InferenceExecutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2445,6 +2447,7 @@ const deserializeAws_json1_0InferenceExecutionSummaries = ( } return deserializeAws_json1_0InferenceExecutionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0InferenceExecutionSummary = ( @@ -2549,7 +2552,7 @@ const deserializeAws_json1_0InferenceSchedulerSummaries = ( output: any, context: __SerdeContext ): InferenceSchedulerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2557,6 +2560,7 @@ const deserializeAws_json1_0InferenceSchedulerSummaries = ( } return deserializeAws_json1_0InferenceSchedulerSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0InferenceSchedulerSummary = ( @@ -2699,7 +2703,7 @@ const deserializeAws_json1_0ListTagsForResourceResponse = ( }; const deserializeAws_json1_0ModelSummaries = (output: any, context: __SerdeContext): ModelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2707,6 +2711,7 @@ const deserializeAws_json1_0ModelSummaries = (output: any, context: __SerdeConte } return deserializeAws_json1_0ModelSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0ModelSummary = (output: any, context: __SerdeContext): ModelSummary => { @@ -2792,7 +2797,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2800,6 +2805,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts b/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts index 8950661fd481..359609710e1d 100644 --- a/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts +++ b/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts @@ -3092,7 +3092,7 @@ const deserializeAws_restJson1AlertSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1AlertSummaryList = (output: any, context: __SerdeContext): AlertSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3100,6 +3100,7 @@ const deserializeAws_restJson1AlertSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1AlertSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AnomalyDetectorConfigSummary = ( @@ -3139,7 +3140,7 @@ const deserializeAws_restJson1AnomalyDetectorSummaryList = ( output: any, context: __SerdeContext ): AnomalyDetectorSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3147,6 +3148,7 @@ const deserializeAws_restJson1AnomalyDetectorSummaryList = ( } return deserializeAws_restJson1AnomalyDetectorSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AnomalyGroup = (output: any, context: __SerdeContext): AnomalyGroup => { @@ -3191,7 +3193,7 @@ const deserializeAws_restJson1AnomalyGroupSummaryList = ( output: any, context: __SerdeContext ): AnomalyGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3199,6 +3201,7 @@ const deserializeAws_restJson1AnomalyGroupSummaryList = ( } return deserializeAws_restJson1AnomalyGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppFlowConfig = (output: any, context: __SerdeContext): AppFlowConfig => { @@ -3251,7 +3254,7 @@ const deserializeAws_restJson1DimensionContributionList = ( output: any, context: __SerdeContext ): DimensionContribution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3259,10 +3262,11 @@ const deserializeAws_restJson1DimensionContributionList = ( } return deserializeAws_restJson1DimensionContribution(entry, context); }); + return retVal; }; const deserializeAws_restJson1DimensionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3270,6 +3274,7 @@ const deserializeAws_restJson1DimensionList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DimensionNameValue = (output: any, context: __SerdeContext): DimensionNameValue => { @@ -3280,7 +3285,7 @@ const deserializeAws_restJson1DimensionNameValue = (output: any, context: __Serd }; const deserializeAws_restJson1DimensionNameValueList = (output: any, context: __SerdeContext): DimensionNameValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3288,6 +3293,7 @@ const deserializeAws_restJson1DimensionNameValueList = (output: any, context: __ } return deserializeAws_restJson1DimensionNameValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1DimensionValueContribution = ( @@ -3304,7 +3310,7 @@ const deserializeAws_restJson1DimensionValueContributionList = ( output: any, context: __SerdeContext ): DimensionValueContribution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3312,10 +3318,11 @@ const deserializeAws_restJson1DimensionValueContributionList = ( } return deserializeAws_restJson1DimensionValueContribution(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExecutionList = (output: any, context: __SerdeContext): ExecutionStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3323,6 +3330,7 @@ const deserializeAws_restJson1ExecutionList = (output: any, context: __SerdeCont } return deserializeAws_restJson1ExecutionStatus(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExecutionStatus = (output: any, context: __SerdeContext): ExecutionStatus => { @@ -3347,7 +3355,7 @@ const deserializeAws_restJson1FileFormatDescriptor = (output: any, context: __Se }; const deserializeAws_restJson1HeaderList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3355,10 +3363,11 @@ const deserializeAws_restJson1HeaderList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1HeaderValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3366,10 +3375,11 @@ const deserializeAws_restJson1HeaderValueList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1HistoricalDataPathList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3377,6 +3387,7 @@ const deserializeAws_restJson1HistoricalDataPathList = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1InterMetricImpactDetails = ( @@ -3395,7 +3406,7 @@ const deserializeAws_restJson1InterMetricImpactList = ( output: any, context: __SerdeContext ): InterMetricImpactDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3403,6 +3414,7 @@ const deserializeAws_restJson1InterMetricImpactList = ( } return deserializeAws_restJson1InterMetricImpactDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1ItemizedMetricStats = (output: any, context: __SerdeContext): ItemizedMetricStats => { @@ -3416,7 +3428,7 @@ const deserializeAws_restJson1ItemizedMetricStatsList = ( output: any, context: __SerdeContext ): ItemizedMetricStats[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3424,6 +3436,7 @@ const deserializeAws_restJson1ItemizedMetricStatsList = ( } return deserializeAws_restJson1ItemizedMetricStats(entry, context); }); + return retVal; }; const deserializeAws_restJson1JsonFormatDescriptor = (output: any, context: __SerdeContext): JsonFormatDescriptor => { @@ -3460,7 +3473,7 @@ const deserializeAws_restJson1MetricLevelImpact = (output: any, context: __Serde }; const deserializeAws_restJson1MetricLevelImpactList = (output: any, context: __SerdeContext): MetricLevelImpact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3468,10 +3481,11 @@ const deserializeAws_restJson1MetricLevelImpactList = (output: any, context: __S } return deserializeAws_restJson1MetricLevelImpact(entry, context); }); + return retVal; }; const deserializeAws_restJson1MetricList = (output: any, context: __SerdeContext): Metric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3479,6 +3493,7 @@ const deserializeAws_restJson1MetricList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Metric(entry, context); }); + return retVal; }; const deserializeAws_restJson1MetricSetSummary = (output: any, context: __SerdeContext): MetricSetSummary => { @@ -3503,7 +3518,7 @@ const deserializeAws_restJson1MetricSetSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1MetricSetSummaryList = (output: any, context: __SerdeContext): MetricSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3511,6 +3526,7 @@ const deserializeAws_restJson1MetricSetSummaryList = (output: any, context: __Se } return deserializeAws_restJson1MetricSetSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1MetricSource = (output: any, context: __SerdeContext): MetricSource => { @@ -3539,7 +3555,7 @@ const deserializeAws_restJson1MetricSource = (output: any, context: __SerdeConte }; const deserializeAws_restJson1MetricValueList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3547,6 +3563,7 @@ const deserializeAws_restJson1MetricValueList = (output: any, context: __SerdeCo } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RDSSourceConfig = (output: any, context: __SerdeContext): RDSSourceConfig => { @@ -3600,7 +3617,7 @@ const deserializeAws_restJson1S3SourceConfig = (output: any, context: __SerdeCon }; const deserializeAws_restJson1SampleRow = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3608,10 +3625,11 @@ const deserializeAws_restJson1SampleRow = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SampleRows = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3619,10 +3637,11 @@ const deserializeAws_restJson1SampleRows = (output: any, context: __SerdeContext } return deserializeAws_restJson1SampleRow(entry, context); }); + return retVal; }; const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3630,6 +3649,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SNSConfiguration = (output: any, context: __SerdeContext): SNSConfiguration => { @@ -3640,7 +3660,7 @@ const deserializeAws_restJson1SNSConfiguration = (output: any, context: __SerdeC }; const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3648,6 +3668,7 @@ const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3663,7 +3684,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1TemplatedPathList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3671,6 +3692,7 @@ const deserializeAws_restJson1TemplatedPathList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TimeSeries = (output: any, context: __SerdeContext): TimeSeries => { @@ -3695,7 +3717,7 @@ const deserializeAws_restJson1TimeSeriesFeedback = (output: any, context: __Serd }; const deserializeAws_restJson1TimeSeriesFeedbackList = (output: any, context: __SerdeContext): TimeSeriesFeedback[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3703,10 +3725,11 @@ const deserializeAws_restJson1TimeSeriesFeedbackList = (output: any, context: __ } return deserializeAws_restJson1TimeSeriesFeedback(entry, context); }); + return retVal; }; const deserializeAws_restJson1TimeSeriesList = (output: any, context: __SerdeContext): TimeSeries[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3714,6 +3737,7 @@ const deserializeAws_restJson1TimeSeriesList = (output: any, context: __SerdeCon } return deserializeAws_restJson1TimeSeries(entry, context); }); + return retVal; }; const deserializeAws_restJson1TimestampColumn = (output: any, context: __SerdeContext): TimestampColumn => { @@ -3724,7 +3748,7 @@ const deserializeAws_restJson1TimestampColumn = (output: any, context: __SerdeCo }; const deserializeAws_restJson1TimestampList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3732,6 +3756,7 @@ const deserializeAws_restJson1TimestampList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ValidationExceptionField = ( @@ -3748,7 +3773,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3756,6 +3781,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1VpcConfiguration = (output: any, context: __SerdeContext): VpcConfiguration => { diff --git a/clients/client-lookoutvision/src/protocols/Aws_restJson1.ts b/clients/client-lookoutvision/src/protocols/Aws_restJson1.ts index ae8d8e6fba63..5792cfdc3a29 100644 --- a/clients/client-lookoutvision/src/protocols/Aws_restJson1.ts +++ b/clients/client-lookoutvision/src/protocols/Aws_restJson1.ts @@ -2509,7 +2509,7 @@ const deserializeAws_restJson1DatasetDescription = (output: any, context: __Serd }; const deserializeAws_restJson1DatasetEntryList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2517,6 +2517,7 @@ const deserializeAws_restJson1DatasetEntryList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DatasetImageStats = (output: any, context: __SerdeContext): DatasetImageStats => { @@ -2541,7 +2542,7 @@ const deserializeAws_restJson1DatasetMetadata = (output: any, context: __SerdeCo }; const deserializeAws_restJson1DatasetMetadataList = (output: any, context: __SerdeContext): DatasetMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2549,6 +2550,7 @@ const deserializeAws_restJson1DatasetMetadataList = (output: any, context: __Ser } return deserializeAws_restJson1DatasetMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1DetectAnomalyResult = (output: any, context: __SerdeContext): DetectAnomalyResult => { @@ -2658,7 +2660,7 @@ const deserializeAws_restJson1ModelMetadata = (output: any, context: __SerdeCont }; const deserializeAws_restJson1ModelMetadataList = (output: any, context: __SerdeContext): ModelMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2666,6 +2668,7 @@ const deserializeAws_restJson1ModelMetadataList = (output: any, context: __Serde } return deserializeAws_restJson1ModelMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1ModelPackagingConfiguration = ( @@ -2738,7 +2741,7 @@ const deserializeAws_restJson1ModelPackagingJobsList = ( output: any, context: __SerdeContext ): ModelPackagingJobMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2746,6 +2749,7 @@ const deserializeAws_restJson1ModelPackagingJobsList = ( } return deserializeAws_restJson1ModelPackagingJobMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1ModelPackagingOutputDetails = ( @@ -2811,7 +2815,7 @@ const deserializeAws_restJson1ProjectMetadata = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ProjectMetadataList = (output: any, context: __SerdeContext): ProjectMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2819,6 +2823,7 @@ const deserializeAws_restJson1ProjectMetadataList = (output: any, context: __Ser } return deserializeAws_restJson1ProjectMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3Location = (output: any, context: __SerdeContext): S3Location => { @@ -2836,7 +2841,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2844,6 +2849,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TargetPlatform = (output: any, context: __SerdeContext): TargetPlatform => { diff --git a/clients/client-machine-learning/src/protocols/Aws_json1_1.ts b/clients/client-machine-learning/src/protocols/Aws_json1_1.ts index 90818c25f4c8..3bf7683f9f2d 100644 --- a/clients/client-machine-learning/src/protocols/Aws_json1_1.ts +++ b/clients/client-machine-learning/src/protocols/Aws_json1_1.ts @@ -2516,7 +2516,7 @@ const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeCont }; const deserializeAws_json1_1BatchPredictions = (output: any, context: __SerdeContext): BatchPrediction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2524,6 +2524,7 @@ const deserializeAws_json1_1BatchPredictions = (output: any, context: __SerdeCon } return deserializeAws_json1_1BatchPrediction(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateBatchPredictionOutput = ( @@ -2629,7 +2630,7 @@ const deserializeAws_json1_1DataSource = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1DataSources = (output: any, context: __SerdeContext): DataSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2637,6 +2638,7 @@ const deserializeAws_json1_1DataSources = (output: any, context: __SerdeContext) } return deserializeAws_json1_1DataSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeleteBatchPredictionOutput = ( @@ -2796,7 +2798,7 @@ const deserializeAws_json1_1Evaluation = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Evaluations = (output: any, context: __SerdeContext): Evaluation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2804,6 +2806,7 @@ const deserializeAws_json1_1Evaluations = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Evaluation(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetBatchPredictionOutput = ( @@ -3054,7 +3057,7 @@ const deserializeAws_json1_1MLModel = (output: any, context: __SerdeContext): ML }; const deserializeAws_json1_1MLModels = (output: any, context: __SerdeContext): MLModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3062,6 +3065,7 @@ const deserializeAws_json1_1MLModels = (output: any, context: __SerdeContext): M } return deserializeAws_json1_1MLModel(entry, context); }); + return retVal; }; const deserializeAws_json1_1PerformanceMetrics = (output: any, context: __SerdeContext): PerformanceMetrics => { @@ -3214,7 +3218,7 @@ const deserializeAws_json1_1TagLimitExceededException = ( }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3222,6 +3226,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrainingParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-macie/src/protocols/Aws_json1_1.ts b/clients/client-macie/src/protocols/Aws_json1_1.ts index 20a998933e21..0e41aa69d0b3 100644 --- a/clients/client-macie/src/protocols/Aws_json1_1.ts +++ b/clients/client-macie/src/protocols/Aws_json1_1.ts @@ -755,7 +755,7 @@ const deserializeAws_json1_1FailedS3Resource = (output: any, context: __SerdeCon }; const deserializeAws_json1_1FailedS3Resources = (output: any, context: __SerdeContext): FailedS3Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -763,6 +763,7 @@ const deserializeAws_json1_1FailedS3Resources = (output: any, context: __SerdeCo } return deserializeAws_json1_1FailedS3Resource(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalException = (output: any, context: __SerdeContext): InternalException => { @@ -818,7 +819,7 @@ const deserializeAws_json1_1MemberAccount = (output: any, context: __SerdeContex }; const deserializeAws_json1_1MemberAccounts = (output: any, context: __SerdeContext): MemberAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -826,6 +827,7 @@ const deserializeAws_json1_1MemberAccounts = (output: any, context: __SerdeConte } return deserializeAws_json1_1MemberAccount(entry, context); }); + return retVal; }; const deserializeAws_json1_1S3Resource = (output: any, context: __SerdeContext): S3Resource => { @@ -853,7 +855,7 @@ const deserializeAws_json1_1S3ResourcesClassification = ( output: any, context: __SerdeContext ): S3ResourceClassification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -861,6 +863,7 @@ const deserializeAws_json1_1S3ResourcesClassification = ( } return deserializeAws_json1_1S3ResourceClassification(entry, context); }); + return retVal; }; const deserializeAws_json1_1UpdateS3ResourcesResult = ( diff --git a/clients/client-macie2/src/protocols/Aws_restJson1.ts b/clients/client-macie2/src/protocols/Aws_restJson1.ts index c7643e8f62f0..9c56ec30d962 100644 --- a/clients/client-macie2/src/protocols/Aws_restJson1.ts +++ b/clients/client-macie2/src/protocols/Aws_restJson1.ts @@ -6353,7 +6353,7 @@ const serializeAws_restJson1WeeklySchedule = (input: WeeklySchedule, context: __ }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6361,10 +6361,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfAdminAccount = (output: any, context: __SerdeContext): AdminAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6372,13 +6373,14 @@ const deserializeAws_restJson1__listOfAdminAccount = (output: any, context: __Se } return deserializeAws_restJson1AdminAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary = ( output: any, context: __SerdeContext ): BatchGetCustomDataIdentifierSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6386,10 +6388,11 @@ const deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary = ( } return deserializeAws_restJson1BatchGetCustomDataIdentifierSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfBucketMetadata = (output: any, context: __SerdeContext): BucketMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6397,10 +6400,11 @@ const deserializeAws_restJson1__listOfBucketMetadata = (output: any, context: __ } return deserializeAws_restJson1BucketMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCriteriaForJob = (output: any, context: __SerdeContext): CriteriaForJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6408,13 +6412,14 @@ const deserializeAws_restJson1__listOfCriteriaForJob = (output: any, context: __ } return deserializeAws_restJson1CriteriaForJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCustomDataIdentifierSummary = ( output: any, context: __SerdeContext ): CustomDataIdentifierSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6422,10 +6427,11 @@ const deserializeAws_restJson1__listOfCustomDataIdentifierSummary = ( } return deserializeAws_restJson1CustomDataIdentifierSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfFinding = (output: any, context: __SerdeContext): Finding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6433,13 +6439,14 @@ const deserializeAws_restJson1__listOfFinding = (output: any, context: __SerdeCo } return deserializeAws_restJson1Finding(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfFindingsFilterListItem = ( output: any, context: __SerdeContext ): FindingsFilterListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6447,10 +6454,11 @@ const deserializeAws_restJson1__listOfFindingsFilterListItem = ( } return deserializeAws_restJson1FindingsFilterListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfGroupCount = (output: any, context: __SerdeContext): GroupCount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6458,10 +6466,11 @@ const deserializeAws_restJson1__listOfGroupCount = (output: any, context: __Serd } return deserializeAws_restJson1GroupCount(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInvitation = (output: any, context: __SerdeContext): Invitation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6469,10 +6478,11 @@ const deserializeAws_restJson1__listOfInvitation = (output: any, context: __Serd } return deserializeAws_restJson1Invitation(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfJobScopeTerm = (output: any, context: __SerdeContext): JobScopeTerm[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6480,10 +6490,11 @@ const deserializeAws_restJson1__listOfJobScopeTerm = (output: any, context: __Se } return deserializeAws_restJson1JobScopeTerm(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfJobSummary = (output: any, context: __SerdeContext): JobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6491,10 +6502,11 @@ const deserializeAws_restJson1__listOfJobSummary = (output: any, context: __Serd } return deserializeAws_restJson1JobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfKeyValuePair = (output: any, context: __SerdeContext): KeyValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6502,13 +6514,14 @@ const deserializeAws_restJson1__listOfKeyValuePair = (output: any, context: __Se } return deserializeAws_restJson1KeyValuePair(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfManagedDataIdentifierSummary = ( output: any, context: __SerdeContext ): ManagedDataIdentifierSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6516,10 +6529,11 @@ const deserializeAws_restJson1__listOfManagedDataIdentifierSummary = ( } return deserializeAws_restJson1ManagedDataIdentifierSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMatchingResource = (output: any, context: __SerdeContext): MatchingResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6527,10 +6541,11 @@ const deserializeAws_restJson1__listOfMatchingResource = (output: any, context: } return deserializeAws_restJson1MatchingResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMember = (output: any, context: __SerdeContext): Member[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6538,13 +6553,14 @@ const deserializeAws_restJson1__listOfMember = (output: any, context: __SerdeCon } return deserializeAws_restJson1Member(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = ( output: any, context: __SerdeContext ): S3BucketDefinitionForJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6552,13 +6568,14 @@ const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = ( } return deserializeAws_restJson1S3BucketDefinitionForJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfTagCriterionPairForJob = ( output: any, context: __SerdeContext ): TagCriterionPairForJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6566,10 +6583,11 @@ const deserializeAws_restJson1__listOfTagCriterionPairForJob = ( } return deserializeAws_restJson1TagCriterionPairForJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfTagValuePair = (output: any, context: __SerdeContext): TagValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6577,13 +6595,14 @@ const deserializeAws_restJson1__listOfTagValuePair = (output: any, context: __Se } return deserializeAws_restJson1TagValuePair(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfUnprocessedAccount = ( output: any, context: __SerdeContext ): UnprocessedAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6591,10 +6610,11 @@ const deserializeAws_restJson1__listOfUnprocessedAccount = ( } return deserializeAws_restJson1UnprocessedAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfUsageByAccount = (output: any, context: __SerdeContext): UsageByAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6602,10 +6622,11 @@ const deserializeAws_restJson1__listOfUsageByAccount = (output: any, context: __ } return deserializeAws_restJson1UsageByAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfUsageRecord = (output: any, context: __SerdeContext): UsageRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6613,10 +6634,11 @@ const deserializeAws_restJson1__listOfUsageRecord = (output: any, context: __Ser } return deserializeAws_restJson1UsageRecord(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfUsageTotal = (output: any, context: __SerdeContext): UsageTotal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6624,6 +6646,7 @@ const deserializeAws_restJson1__listOfUsageTotal = (output: any, context: __Serd } return deserializeAws_restJson1UsageTotal(entry, context); }); + return retVal; }; const deserializeAws_restJson1AccessControlList = (output: any, context: __SerdeContext): AccessControlList => { @@ -6898,7 +6921,7 @@ const deserializeAws_restJson1Cell = (output: any, context: __SerdeContext): Cel }; const deserializeAws_restJson1Cells = (output: any, context: __SerdeContext): Cell[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6906,6 +6929,7 @@ const deserializeAws_restJson1Cells = (output: any, context: __SerdeContext): Ce } return deserializeAws_restJson1Cell(entry, context); }); + return retVal; }; const deserializeAws_restJson1ClassificationDetails = (output: any, context: __SerdeContext): ClassificationDetails => { @@ -7065,7 +7089,7 @@ const deserializeAws_restJson1CustomDetection = (output: any, context: __SerdeCo }; const deserializeAws_restJson1CustomDetections = (output: any, context: __SerdeContext): CustomDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7073,6 +7097,7 @@ const deserializeAws_restJson1CustomDetections = (output: any, context: __SerdeC } return deserializeAws_restJson1CustomDetection(entry, context); }); + return retVal; }; const deserializeAws_restJson1DailySchedule = (output: any, context: __SerdeContext): DailySchedule => { @@ -7091,7 +7116,7 @@ const deserializeAws_restJson1DefaultDetection = (output: any, context: __SerdeC }; const deserializeAws_restJson1DefaultDetections = (output: any, context: __SerdeContext): DefaultDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7099,6 +7124,7 @@ const deserializeAws_restJson1DefaultDetections = (output: any, context: __Serde } return deserializeAws_restJson1DefaultDetection(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainDetails = (output: any, context: __SerdeContext): DomainDetails => { @@ -7380,7 +7406,7 @@ const deserializeAws_restJson1KeyValuePair = (output: any, context: __SerdeConte }; const deserializeAws_restJson1KeyValuePairList = (output: any, context: __SerdeContext): KeyValuePair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7388,6 +7414,7 @@ const deserializeAws_restJson1KeyValuePairList = (output: any, context: __SerdeC } return deserializeAws_restJson1KeyValuePair(entry, context); }); + return retVal; }; const deserializeAws_restJson1LastRunErrorStatus = (output: any, context: __SerdeContext): LastRunErrorStatus => { @@ -7535,7 +7562,7 @@ const deserializeAws_restJson1Page = (output: any, context: __SerdeContext): Pag }; const deserializeAws_restJson1Pages = (output: any, context: __SerdeContext): Page[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7543,6 +7570,7 @@ const deserializeAws_restJson1Pages = (output: any, context: __SerdeContext): Pa } return deserializeAws_restJson1Page(entry, context); }); + return retVal; }; const deserializeAws_restJson1PolicyDetails = (output: any, context: __SerdeContext): PolicyDetails => { @@ -7567,7 +7595,7 @@ const deserializeAws_restJson1Range = (output: any, context: __SerdeContext): Ra }; const deserializeAws_restJson1Ranges = (output: any, context: __SerdeContext): Range[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7575,6 +7603,7 @@ const deserializeAws_restJson1Ranges = (output: any, context: __SerdeContext): R } return deserializeAws_restJson1Range(entry, context); }); + return retVal; }; const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): _Record => { @@ -7585,7 +7614,7 @@ const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Records = (output: any, context: __SerdeContext): _Record[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7593,6 +7622,7 @@ const deserializeAws_restJson1Records = (output: any, context: __SerdeContext): } return deserializeAws_restJson1_Record(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplicationDetails = (output: any, context: __SerdeContext): ReplicationDetails => { @@ -7758,7 +7788,7 @@ const deserializeAws_restJson1SecurityHubConfiguration = ( }; const deserializeAws_restJson1SensitiveData = (output: any, context: __SerdeContext): SensitiveDataItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7766,6 +7796,7 @@ const deserializeAws_restJson1SensitiveData = (output: any, context: __SerdeCont } return deserializeAws_restJson1SensitiveDataItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1SensitiveDataItem = (output: any, context: __SerdeContext): SensitiveDataItem => { @@ -7845,7 +7876,7 @@ const deserializeAws_restJson1SeverityLevel = (output: any, context: __SerdeCont }; const deserializeAws_restJson1SeverityLevelList = (output: any, context: __SerdeContext): SeverityLevel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7853,6 +7884,7 @@ const deserializeAws_restJson1SeverityLevelList = (output: any, context: __Serde } return deserializeAws_restJson1SeverityLevel(entry, context); }); + return retVal; }; const deserializeAws_restJson1SimpleCriterionForJob = (output: any, context: __SerdeContext): SimpleCriterionForJob => { diff --git a/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts b/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts index 6493b9dda021..e46471dd98d1 100644 --- a/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts +++ b/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts @@ -2680,7 +2680,7 @@ const deserializeAws_restJson1Invitation = (output: any, context: __SerdeContext }; const deserializeAws_restJson1InvitationList = (output: any, context: __SerdeContext): Invitation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2688,6 +2688,7 @@ const deserializeAws_restJson1InvitationList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Invitation(entry, context); }); + return retVal; }; const deserializeAws_restJson1InviteAction = (output: any, context: __SerdeContext): InviteAction => { @@ -2697,7 +2698,7 @@ const deserializeAws_restJson1InviteAction = (output: any, context: __SerdeConte }; const deserializeAws_restJson1InviteActionList = (output: any, context: __SerdeContext): InviteAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2705,6 +2706,7 @@ const deserializeAws_restJson1InviteActionList = (output: any, context: __SerdeC } return deserializeAws_restJson1InviteAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1LogConfiguration = (output: any, context: __SerdeContext): LogConfiguration => { @@ -2812,7 +2814,7 @@ const deserializeAws_restJson1MemberSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1MemberSummaryList = (output: any, context: __SerdeContext): MemberSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2820,6 +2822,7 @@ const deserializeAws_restJson1MemberSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1MemberSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Network = (output: any, context: __SerdeContext): Network => { @@ -2903,7 +2906,7 @@ const deserializeAws_restJson1NetworkSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1NetworkSummaryList = (output: any, context: __SerdeContext): NetworkSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2911,6 +2914,7 @@ const deserializeAws_restJson1NetworkSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1NetworkSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Node = (output: any, context: __SerdeContext): Node => { @@ -3019,7 +3023,7 @@ const deserializeAws_restJson1NodeSummary = (output: any, context: __SerdeContex }; const deserializeAws_restJson1NodeSummaryList = (output: any, context: __SerdeContext): NodeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3027,6 +3031,7 @@ const deserializeAws_restJson1NodeSummaryList = (output: any, context: __SerdeCo } return deserializeAws_restJson1NodeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1OutputTagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3105,7 +3110,7 @@ const deserializeAws_restJson1ProposalSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ProposalSummaryList = (output: any, context: __SerdeContext): ProposalSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3113,10 +3118,11 @@ const deserializeAws_restJson1ProposalSummaryList = (output: any, context: __Ser } return deserializeAws_restJson1ProposalSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProposalVoteList = (output: any, context: __SerdeContext): VoteSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3124,6 +3130,7 @@ const deserializeAws_restJson1ProposalVoteList = (output: any, context: __SerdeC } return deserializeAws_restJson1VoteSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RemoveAction = (output: any, context: __SerdeContext): RemoveAction => { @@ -3133,7 +3140,7 @@ const deserializeAws_restJson1RemoveAction = (output: any, context: __SerdeConte }; const deserializeAws_restJson1RemoveActionList = (output: any, context: __SerdeContext): RemoveAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3141,6 +3148,7 @@ const deserializeAws_restJson1RemoveActionList = (output: any, context: __SerdeC } return deserializeAws_restJson1RemoveAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1VoteSummary = (output: any, context: __SerdeContext): VoteSummary => { diff --git a/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts b/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts index 92fa161c8c5f..13d6609fbb25 100644 --- a/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts +++ b/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts @@ -801,7 +801,7 @@ const serializeAws_restJson1ValueList = (input: string[], context: __SerdeContex }; const deserializeAws_restJson1ChangeSetDescription = (output: any, context: __SerdeContext): ChangeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -809,13 +809,14 @@ const deserializeAws_restJson1ChangeSetDescription = (output: any, context: __Se } return deserializeAws_restJson1ChangeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChangeSetSummaryList = ( output: any, context: __SerdeContext ): ChangeSetSummaryListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -823,6 +824,7 @@ const deserializeAws_restJson1ChangeSetSummaryList = ( } return deserializeAws_restJson1ChangeSetSummaryListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChangeSetSummaryListItem = ( @@ -879,7 +881,7 @@ const deserializeAws_restJson1EntitySummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1EntitySummaryList = (output: any, context: __SerdeContext): EntitySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -887,6 +889,7 @@ const deserializeAws_restJson1EntitySummaryList = (output: any, context: __Serde } return deserializeAws_restJson1EntitySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ErrorDetail = (output: any, context: __SerdeContext): ErrorDetail => { @@ -897,7 +900,7 @@ const deserializeAws_restJson1ErrorDetail = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ErrorDetailList = (output: any, context: __SerdeContext): ErrorDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -905,10 +908,11 @@ const deserializeAws_restJson1ErrorDetailList = (output: any, context: __SerdeCo } return deserializeAws_restJson1ErrorDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -916,6 +920,7 @@ const deserializeAws_restJson1ResourceIdList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-marketplace-entitlement-service/src/protocols/Aws_json1_1.ts b/clients/client-marketplace-entitlement-service/src/protocols/Aws_json1_1.ts index d91c237c504b..4b8978dea6e5 100644 --- a/clients/client-marketplace-entitlement-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-entitlement-service/src/protocols/Aws_json1_1.ts @@ -187,7 +187,7 @@ const deserializeAws_json1_1Entitlement = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1EntitlementList = (output: any, context: __SerdeContext): Entitlement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -195,6 +195,7 @@ const deserializeAws_json1_1EntitlementList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Entitlement(entry, context); }); + return retVal; }; const deserializeAws_json1_1EntitlementValue = (output: any, context: __SerdeContext): EntitlementValue => { diff --git a/clients/client-marketplace-metering/src/protocols/Aws_json1_1.ts b/clients/client-marketplace-metering/src/protocols/Aws_json1_1.ts index 772c4dfe0bef..70be51d5e8f2 100644 --- a/clients/client-marketplace-metering/src/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-metering/src/protocols/Aws_json1_1.ts @@ -850,7 +850,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -858,6 +858,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { @@ -886,7 +887,7 @@ const deserializeAws_json1_1UsageAllocation = (output: any, context: __SerdeCont }; const deserializeAws_json1_1UsageAllocations = (output: any, context: __SerdeContext): UsageAllocation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -894,6 +895,7 @@ const deserializeAws_json1_1UsageAllocations = (output: any, context: __SerdeCon } return deserializeAws_json1_1UsageAllocation(entry, context); }); + return retVal; }; const deserializeAws_json1_1UsageRecord = (output: any, context: __SerdeContext): UsageRecord => { @@ -913,7 +915,7 @@ const deserializeAws_json1_1UsageRecord = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1UsageRecordList = (output: any, context: __SerdeContext): UsageRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -921,6 +923,7 @@ const deserializeAws_json1_1UsageRecordList = (output: any, context: __SerdeCont } return deserializeAws_json1_1UsageRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1UsageRecordResult = (output: any, context: __SerdeContext): UsageRecordResult => { @@ -935,7 +938,7 @@ const deserializeAws_json1_1UsageRecordResult = (output: any, context: __SerdeCo }; const deserializeAws_json1_1UsageRecordResultList = (output: any, context: __SerdeContext): UsageRecordResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -943,6 +946,7 @@ const deserializeAws_json1_1UsageRecordResultList = (output: any, context: __Ser } return deserializeAws_json1_1UsageRecordResult(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts b/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts index 26e55e14abf9..1e3deda60858 100644 --- a/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts @@ -3621,7 +3621,7 @@ const serializeAws_restJson1VpcInterfaceRequest = (input: VpcInterfaceRequest, c }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3629,13 +3629,14 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfDestinationConfiguration = ( output: any, context: __SerdeContext ): DestinationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3643,10 +3644,11 @@ const deserializeAws_restJson1__listOfDestinationConfiguration = ( } return deserializeAws_restJson1DestinationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfEntitlement = (output: any, context: __SerdeContext): Entitlement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3654,13 +3656,14 @@ const deserializeAws_restJson1__listOfEntitlement = (output: any, context: __Ser } return deserializeAws_restJson1Entitlement(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputConfiguration = ( output: any, context: __SerdeContext ): InputConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3668,13 +3671,14 @@ const deserializeAws_restJson1__listOfInputConfiguration = ( } return deserializeAws_restJson1InputConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfListedEntitlement = ( output: any, context: __SerdeContext ): ListedEntitlement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3682,10 +3686,11 @@ const deserializeAws_restJson1__listOfListedEntitlement = ( } return deserializeAws_restJson1ListedEntitlement(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfListedFlow = (output: any, context: __SerdeContext): ListedFlow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3693,10 +3698,11 @@ const deserializeAws_restJson1__listOfListedFlow = (output: any, context: __Serd } return deserializeAws_restJson1ListedFlow(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMediaStream = (output: any, context: __SerdeContext): MediaStream[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3704,13 +3710,14 @@ const deserializeAws_restJson1__listOfMediaStream = (output: any, context: __Ser } return deserializeAws_restJson1MediaStream(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMediaStreamOutputConfiguration = ( output: any, context: __SerdeContext ): MediaStreamOutputConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3718,13 +3725,14 @@ const deserializeAws_restJson1__listOfMediaStreamOutputConfiguration = ( } return deserializeAws_restJson1MediaStreamOutputConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMediaStreamSourceConfiguration = ( output: any, context: __SerdeContext ): MediaStreamSourceConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3732,10 +3740,11 @@ const deserializeAws_restJson1__listOfMediaStreamSourceConfiguration = ( } return deserializeAws_restJson1MediaStreamSourceConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOffering = (output: any, context: __SerdeContext): Offering[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3743,10 +3752,11 @@ const deserializeAws_restJson1__listOfOffering = (output: any, context: __SerdeC } return deserializeAws_restJson1Offering(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutput = (output: any, context: __SerdeContext): Output[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3754,10 +3764,11 @@ const deserializeAws_restJson1__listOfOutput = (output: any, context: __SerdeCon } return deserializeAws_restJson1Output(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfReservation = (output: any, context: __SerdeContext): Reservation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3765,10 +3776,11 @@ const deserializeAws_restJson1__listOfReservation = (output: any, context: __Ser } return deserializeAws_restJson1Reservation(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSource = (output: any, context: __SerdeContext): Source[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3776,10 +3788,11 @@ const deserializeAws_restJson1__listOfSource = (output: any, context: __SerdeCon } return deserializeAws_restJson1Source(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfVpcInterface = (output: any, context: __SerdeContext): VpcInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3787,6 +3800,7 @@ const deserializeAws_restJson1__listOfVpcInterface = (output: any, context: __Se } return deserializeAws_restJson1VpcInterface(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts index 26fa90b82137..29e33d84162d 100644 --- a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts @@ -6130,7 +6130,7 @@ const serializeAws_restJson1XavcSettings = (input: XavcSettings, context: __Serd }; const deserializeAws_restJson1__listOf__doubleMinNegative60Max6 = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6138,10 +6138,11 @@ const deserializeAws_restJson1__listOf__doubleMinNegative60Max6 = (output: any, } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__integerMin1Max2147483647 = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6149,10 +6150,11 @@ const deserializeAws_restJson1__listOf__integerMin1Max2147483647 = (output: any, } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__integerMin32Max8182 = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6160,10 +6162,11 @@ const deserializeAws_restJson1__listOf__integerMin32Max8182 = (output: any, cont } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__integerMinNegative60Max6 = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6171,10 +6174,11 @@ const deserializeAws_restJson1__listOf__integerMinNegative60Max6 = (output: any, } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6182,10 +6186,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__stringMin1 = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6193,13 +6198,14 @@ const deserializeAws_restJson1__listOf__stringMin1 = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12 = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6207,13 +6213,14 @@ const deserializeAws_restJson1__listOf__stringMin36Max36Pattern09aFAF809aFAF409a } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12 = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6221,13 +6228,14 @@ const deserializeAws_restJson1__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__stringPatternS3ASSETMAPXml = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6235,10 +6243,11 @@ const deserializeAws_restJson1__listOf__stringPatternS3ASSETMAPXml = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfAudioDescription = (output: any, context: __SerdeContext): AudioDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6246,13 +6255,14 @@ const deserializeAws_restJson1__listOfAudioDescription = (output: any, context: } return deserializeAws_restJson1AudioDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCaptionDescription = ( output: any, context: __SerdeContext ): CaptionDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6260,13 +6270,14 @@ const deserializeAws_restJson1__listOfCaptionDescription = ( } return deserializeAws_restJson1CaptionDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCaptionDescriptionPreset = ( output: any, context: __SerdeContext ): CaptionDescriptionPreset[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6274,13 +6285,14 @@ const deserializeAws_restJson1__listOfCaptionDescriptionPreset = ( } return deserializeAws_restJson1CaptionDescriptionPreset(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCmafAdditionalManifest = ( output: any, context: __SerdeContext ): CmafAdditionalManifest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6288,13 +6300,14 @@ const deserializeAws_restJson1__listOfCmafAdditionalManifest = ( } return deserializeAws_restJson1CmafAdditionalManifest(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDashAdditionalManifest = ( output: any, context: __SerdeContext ): DashAdditionalManifest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6302,10 +6315,11 @@ const deserializeAws_restJson1__listOfDashAdditionalManifest = ( } return deserializeAws_restJson1DashAdditionalManifest(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfEndpoint = (output: any, context: __SerdeContext): Endpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6313,13 +6327,14 @@ const deserializeAws_restJson1__listOfEndpoint = (output: any, context: __SerdeC } return deserializeAws_restJson1Endpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfHlsAdditionalManifest = ( output: any, context: __SerdeContext ): HlsAdditionalManifest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6327,13 +6342,14 @@ const deserializeAws_restJson1__listOfHlsAdditionalManifest = ( } return deserializeAws_restJson1HlsAdditionalManifest(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfHlsAdMarkers = ( output: any, context: __SerdeContext ): (HlsAdMarkers | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6341,13 +6357,14 @@ const deserializeAws_restJson1__listOfHlsAdMarkers = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfHlsCaptionLanguageMapping = ( output: any, context: __SerdeContext ): HlsCaptionLanguageMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6355,10 +6372,11 @@ const deserializeAws_restJson1__listOfHlsCaptionLanguageMapping = ( } return deserializeAws_restJson1HlsCaptionLanguageMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfHopDestination = (output: any, context: __SerdeContext): HopDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6366,10 +6384,11 @@ const deserializeAws_restJson1__listOfHopDestination = (output: any, context: __ } return deserializeAws_restJson1HopDestination(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfId3Insertion = (output: any, context: __SerdeContext): Id3Insertion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6377,10 +6396,11 @@ const deserializeAws_restJson1__listOfId3Insertion = (output: any, context: __Se } return deserializeAws_restJson1Id3Insertion(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInput = (output: any, context: __SerdeContext): Input[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6388,10 +6408,11 @@ const deserializeAws_restJson1__listOfInput = (output: any, context: __SerdeCont } return deserializeAws_restJson1Input(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputClipping = (output: any, context: __SerdeContext): InputClipping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6399,10 +6420,11 @@ const deserializeAws_restJson1__listOfInputClipping = (output: any, context: __S } return deserializeAws_restJson1InputClipping(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputTemplate = (output: any, context: __SerdeContext): InputTemplate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6410,10 +6432,11 @@ const deserializeAws_restJson1__listOfInputTemplate = (output: any, context: __S } return deserializeAws_restJson1InputTemplate(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInsertableImage = (output: any, context: __SerdeContext): InsertableImage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6421,10 +6444,11 @@ const deserializeAws_restJson1__listOfInsertableImage = (output: any, context: _ } return deserializeAws_restJson1InsertableImage(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfJob = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6432,10 +6456,11 @@ const deserializeAws_restJson1__listOfJob = (output: any, context: __SerdeContex } return deserializeAws_restJson1Job(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfJobTemplate = (output: any, context: __SerdeContext): JobTemplate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6443,13 +6468,14 @@ const deserializeAws_restJson1__listOfJobTemplate = (output: any, context: __Ser } return deserializeAws_restJson1JobTemplate(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMsSmoothAdditionalManifest = ( output: any, context: __SerdeContext ): MsSmoothAdditionalManifest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6457,10 +6483,11 @@ const deserializeAws_restJson1__listOfMsSmoothAdditionalManifest = ( } return deserializeAws_restJson1MsSmoothAdditionalManifest(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutput = (output: any, context: __SerdeContext): Output[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6468,13 +6495,14 @@ const deserializeAws_restJson1__listOfOutput = (output: any, context: __SerdeCon } return deserializeAws_restJson1Output(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutputChannelMapping = ( output: any, context: __SerdeContext ): OutputChannelMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6482,10 +6510,11 @@ const deserializeAws_restJson1__listOfOutputChannelMapping = ( } return deserializeAws_restJson1OutputChannelMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutputDetail = (output: any, context: __SerdeContext): OutputDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6493,10 +6522,11 @@ const deserializeAws_restJson1__listOfOutputDetail = (output: any, context: __Se } return deserializeAws_restJson1OutputDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutputGroup = (output: any, context: __SerdeContext): OutputGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6504,13 +6534,14 @@ const deserializeAws_restJson1__listOfOutputGroup = (output: any, context: __Ser } return deserializeAws_restJson1OutputGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutputGroupDetail = ( output: any, context: __SerdeContext ): OutputGroupDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6518,10 +6549,11 @@ const deserializeAws_restJson1__listOfOutputGroupDetail = ( } return deserializeAws_restJson1OutputGroupDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfPreset = (output: any, context: __SerdeContext): Preset[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6529,10 +6561,11 @@ const deserializeAws_restJson1__listOfPreset = (output: any, context: __SerdeCon } return deserializeAws_restJson1Preset(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfQueue = (output: any, context: __SerdeContext): Queue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6540,10 +6573,11 @@ const deserializeAws_restJson1__listOfQueue = (output: any, context: __SerdeCont } return deserializeAws_restJson1Queue(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfQueueTransition = (output: any, context: __SerdeContext): QueueTransition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6551,13 +6585,14 @@ const deserializeAws_restJson1__listOfQueueTransition = (output: any, context: _ } return deserializeAws_restJson1QueueTransition(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfTeletextPageType = ( output: any, context: __SerdeContext ): (TeletextPageType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6565,6 +6600,7 @@ const deserializeAws_restJson1__listOfTeletextPageType = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-medialive/src/protocols/Aws_restJson1.ts b/clients/client-medialive/src/protocols/Aws_restJson1.ts index 5efb975bb575..c41f9a2f7e43 100644 --- a/clients/client-medialive/src/protocols/Aws_restJson1.ts +++ b/clients/client-medialive/src/protocols/Aws_restJson1.ts @@ -10034,7 +10034,7 @@ const serializeAws_restJson1WebvttDestinationSettings = ( }; const deserializeAws_restJson1__listOf__integer = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10042,10 +10042,11 @@ const deserializeAws_restJson1__listOf__integer = (output: any, context: __Serde } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10053,13 +10054,14 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfAudioChannelMapping = ( output: any, context: __SerdeContext ): AudioChannelMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10067,10 +10069,11 @@ const deserializeAws_restJson1__listOfAudioChannelMapping = ( } return deserializeAws_restJson1AudioChannelMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfAudioDescription = (output: any, context: __SerdeContext): AudioDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10078,10 +10081,11 @@ const deserializeAws_restJson1__listOfAudioDescription = (output: any, context: } return deserializeAws_restJson1AudioDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfAudioSelector = (output: any, context: __SerdeContext): AudioSelector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10089,10 +10093,11 @@ const deserializeAws_restJson1__listOfAudioSelector = (output: any, context: __S } return deserializeAws_restJson1AudioSelector(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfAudioTrack = (output: any, context: __SerdeContext): AudioTrack[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10100,13 +10105,14 @@ const deserializeAws_restJson1__listOfAudioTrack = (output: any, context: __Serd } return deserializeAws_restJson1AudioTrack(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfBatchFailedResultModel = ( output: any, context: __SerdeContext ): BatchFailedResultModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10114,13 +10120,14 @@ const deserializeAws_restJson1__listOfBatchFailedResultModel = ( } return deserializeAws_restJson1BatchFailedResultModel(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfBatchSuccessfulResultModel = ( output: any, context: __SerdeContext ): BatchSuccessfulResultModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10128,13 +10135,14 @@ const deserializeAws_restJson1__listOfBatchSuccessfulResultModel = ( } return deserializeAws_restJson1BatchSuccessfulResultModel(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCaptionDescription = ( output: any, context: __SerdeContext ): CaptionDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10142,13 +10150,14 @@ const deserializeAws_restJson1__listOfCaptionDescription = ( } return deserializeAws_restJson1CaptionDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCaptionLanguageMapping = ( output: any, context: __SerdeContext ): CaptionLanguageMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10156,10 +10165,11 @@ const deserializeAws_restJson1__listOfCaptionLanguageMapping = ( } return deserializeAws_restJson1CaptionLanguageMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCaptionSelector = (output: any, context: __SerdeContext): CaptionSelector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10167,13 +10177,14 @@ const deserializeAws_restJson1__listOfCaptionSelector = (output: any, context: _ } return deserializeAws_restJson1CaptionSelector(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfChannelEgressEndpoint = ( output: any, context: __SerdeContext ): ChannelEgressEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10181,10 +10192,11 @@ const deserializeAws_restJson1__listOfChannelEgressEndpoint = ( } return deserializeAws_restJson1ChannelEgressEndpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfChannelSummary = (output: any, context: __SerdeContext): ChannelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10192,13 +10204,14 @@ const deserializeAws_restJson1__listOfChannelSummary = (output: any, context: __ } return deserializeAws_restJson1ChannelSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfFailoverCondition = ( output: any, context: __SerdeContext ): FailoverCondition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10206,13 +10219,14 @@ const deserializeAws_restJson1__listOfFailoverCondition = ( } return deserializeAws_restJson1FailoverCondition(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfHlsAdMarkers = ( output: any, context: __SerdeContext ): (HlsAdMarkers | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10220,10 +10234,11 @@ const deserializeAws_restJson1__listOfHlsAdMarkers = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfInput = (output: any, context: __SerdeContext): Input[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10231,10 +10246,11 @@ const deserializeAws_restJson1__listOfInput = (output: any, context: __SerdeCont } return deserializeAws_restJson1Input(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputAttachment = (output: any, context: __SerdeContext): InputAttachment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10242,13 +10258,14 @@ const deserializeAws_restJson1__listOfInputAttachment = (output: any, context: _ } return deserializeAws_restJson1InputAttachment(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputChannelLevel = ( output: any, context: __SerdeContext ): InputChannelLevel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10256,10 +10273,11 @@ const deserializeAws_restJson1__listOfInputChannelLevel = ( } return deserializeAws_restJson1InputChannelLevel(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputDestination = (output: any, context: __SerdeContext): InputDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10267,13 +10285,14 @@ const deserializeAws_restJson1__listOfInputDestination = (output: any, context: } return deserializeAws_restJson1InputDestination(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputDeviceSettings = ( output: any, context: __SerdeContext ): InputDeviceSettings[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10281,13 +10300,14 @@ const deserializeAws_restJson1__listOfInputDeviceSettings = ( } return deserializeAws_restJson1InputDeviceSettings(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputDeviceSummary = ( output: any, context: __SerdeContext ): InputDeviceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10295,13 +10315,14 @@ const deserializeAws_restJson1__listOfInputDeviceSummary = ( } return deserializeAws_restJson1InputDeviceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputSecurityGroup = ( output: any, context: __SerdeContext ): InputSecurityGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10309,10 +10330,11 @@ const deserializeAws_restJson1__listOfInputSecurityGroup = ( } return deserializeAws_restJson1InputSecurityGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputSource = (output: any, context: __SerdeContext): InputSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10320,13 +10342,14 @@ const deserializeAws_restJson1__listOfInputSource = (output: any, context: __Ser } return deserializeAws_restJson1InputSource(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfInputWhitelistRule = ( output: any, context: __SerdeContext ): InputWhitelistRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10334,10 +10357,11 @@ const deserializeAws_restJson1__listOfInputWhitelistRule = ( } return deserializeAws_restJson1InputWhitelistRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMediaConnectFlow = (output: any, context: __SerdeContext): MediaConnectFlow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10345,13 +10369,14 @@ const deserializeAws_restJson1__listOfMediaConnectFlow = (output: any, context: } return deserializeAws_restJson1MediaConnectFlow(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMediaPackageOutputDestinationSettings = ( output: any, context: __SerdeContext ): MediaPackageOutputDestinationSettings[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10359,13 +10384,14 @@ const deserializeAws_restJson1__listOfMediaPackageOutputDestinationSettings = ( } return deserializeAws_restJson1MediaPackageOutputDestinationSettings(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMultiplexOutputDestination = ( output: any, context: __SerdeContext ): MultiplexOutputDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10373,13 +10399,14 @@ const deserializeAws_restJson1__listOfMultiplexOutputDestination = ( } return deserializeAws_restJson1MultiplexOutputDestination(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMultiplexProgramPipelineDetail = ( output: any, context: __SerdeContext ): MultiplexProgramPipelineDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10387,13 +10414,14 @@ const deserializeAws_restJson1__listOfMultiplexProgramPipelineDetail = ( } return deserializeAws_restJson1MultiplexProgramPipelineDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMultiplexProgramSummary = ( output: any, context: __SerdeContext ): MultiplexProgramSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10401,10 +10429,11 @@ const deserializeAws_restJson1__listOfMultiplexProgramSummary = ( } return deserializeAws_restJson1MultiplexProgramSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMultiplexSummary = (output: any, context: __SerdeContext): MultiplexSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10412,10 +10441,11 @@ const deserializeAws_restJson1__listOfMultiplexSummary = (output: any, context: } return deserializeAws_restJson1MultiplexSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOffering = (output: any, context: __SerdeContext): Offering[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10423,10 +10453,11 @@ const deserializeAws_restJson1__listOfOffering = (output: any, context: __SerdeC } return deserializeAws_restJson1Offering(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutput = (output: any, context: __SerdeContext): Output[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10434,13 +10465,14 @@ const deserializeAws_restJson1__listOfOutput = (output: any, context: __SerdeCon } return deserializeAws_restJson1Output(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutputDestination = ( output: any, context: __SerdeContext ): OutputDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10448,13 +10480,14 @@ const deserializeAws_restJson1__listOfOutputDestination = ( } return deserializeAws_restJson1OutputDestination(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutputDestinationSettings = ( output: any, context: __SerdeContext ): OutputDestinationSettings[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10462,10 +10495,11 @@ const deserializeAws_restJson1__listOfOutputDestinationSettings = ( } return deserializeAws_restJson1OutputDestinationSettings(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOutputGroup = (output: any, context: __SerdeContext): OutputGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10473,10 +10507,11 @@ const deserializeAws_restJson1__listOfOutputGroup = (output: any, context: __Ser } return deserializeAws_restJson1OutputGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfPipelineDetail = (output: any, context: __SerdeContext): PipelineDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10484,13 +10519,14 @@ const deserializeAws_restJson1__listOfPipelineDetail = (output: any, context: __ } return deserializeAws_restJson1PipelineDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfPipelinePauseStateSettings = ( output: any, context: __SerdeContext ): PipelinePauseStateSettings[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10498,10 +10534,11 @@ const deserializeAws_restJson1__listOfPipelinePauseStateSettings = ( } return deserializeAws_restJson1PipelinePauseStateSettings(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfReservation = (output: any, context: __SerdeContext): Reservation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10509,13 +10546,14 @@ const deserializeAws_restJson1__listOfReservation = (output: any, context: __Ser } return deserializeAws_restJson1Reservation(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRtmpAdMarkers = ( output: any, context: __SerdeContext ): (RtmpAdMarkers | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10523,10 +10561,11 @@ const deserializeAws_restJson1__listOfRtmpAdMarkers = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfScheduleAction = (output: any, context: __SerdeContext): ScheduleAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10534,10 +10573,11 @@ const deserializeAws_restJson1__listOfScheduleAction = (output: any, context: __ } return deserializeAws_restJson1ScheduleAction(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfScte35Descriptor = (output: any, context: __SerdeContext): Scte35Descriptor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10545,13 +10585,14 @@ const deserializeAws_restJson1__listOfScte35Descriptor = (output: any, context: } return deserializeAws_restJson1Scte35Descriptor(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfTransferringInputDeviceSummary = ( output: any, context: __SerdeContext ): TransferringInputDeviceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10559,10 +10600,11 @@ const deserializeAws_restJson1__listOfTransferringInputDeviceSummary = ( } return deserializeAws_restJson1TransferringInputDeviceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfValidationError = (output: any, context: __SerdeContext): ValidationError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10570,10 +10612,11 @@ const deserializeAws_restJson1__listOfValidationError = (output: any, context: _ } return deserializeAws_restJson1ValidationError(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfVideoDescription = (output: any, context: __SerdeContext): VideoDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -10581,6 +10624,7 @@ const deserializeAws_restJson1__listOfVideoDescription = (output: any, context: } return deserializeAws_restJson1VideoDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1AacSettings = (output: any, context: __SerdeContext): AacSettings => { diff --git a/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts b/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts index 6f31959b0785..a682a7671801 100644 --- a/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts @@ -2121,7 +2121,7 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = ( output: any, context: __SerdeContext ): (__PeriodTriggersElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2129,10 +2129,11 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2140,10 +2141,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfAssetShallow = (output: any, context: __SerdeContext): AssetShallow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2151,10 +2153,11 @@ const deserializeAws_restJson1__listOfAssetShallow = (output: any, context: __Se } return deserializeAws_restJson1AssetShallow(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDashManifest = (output: any, context: __SerdeContext): DashManifest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2162,10 +2165,11 @@ const deserializeAws_restJson1__listOfDashManifest = (output: any, context: __Se } return deserializeAws_restJson1DashManifest(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfEgressEndpoint = (output: any, context: __SerdeContext): EgressEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2173,10 +2177,11 @@ const deserializeAws_restJson1__listOfEgressEndpoint = (output: any, context: __ } return deserializeAws_restJson1EgressEndpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfHlsManifest = (output: any, context: __SerdeContext): HlsManifest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2184,10 +2189,11 @@ const deserializeAws_restJson1__listOfHlsManifest = (output: any, context: __Ser } return deserializeAws_restJson1HlsManifest(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMssManifest = (output: any, context: __SerdeContext): MssManifest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2195,13 +2201,14 @@ const deserializeAws_restJson1__listOfMssManifest = (output: any, context: __Ser } return deserializeAws_restJson1MssManifest(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfPackagingConfiguration = ( output: any, context: __SerdeContext ): PackagingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2209,10 +2216,11 @@ const deserializeAws_restJson1__listOfPackagingConfiguration = ( } return deserializeAws_restJson1PackagingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfPackagingGroup = (output: any, context: __SerdeContext): PackagingGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2220,6 +2228,7 @@ const deserializeAws_restJson1__listOfPackagingGroup = (output: any, context: __ } return deserializeAws_restJson1PackagingGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-mediapackage/src/protocols/Aws_restJson1.ts b/clients/client-mediapackage/src/protocols/Aws_restJson1.ts index 007eec96b969..57e2fcf0a532 100644 --- a/clients/client-mediapackage/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackage/src/protocols/Aws_restJson1.ts @@ -2582,7 +2582,7 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = ( output: any, context: __SerdeContext ): (__PeriodTriggersElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2590,10 +2590,11 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2601,10 +2602,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfChannel = (output: any, context: __SerdeContext): Channel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2612,10 +2614,11 @@ const deserializeAws_restJson1__listOfChannel = (output: any, context: __SerdeCo } return deserializeAws_restJson1Channel(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfHarvestJob = (output: any, context: __SerdeContext): HarvestJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2623,10 +2626,11 @@ const deserializeAws_restJson1__listOfHarvestJob = (output: any, context: __Serd } return deserializeAws_restJson1HarvestJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfHlsManifest = (output: any, context: __SerdeContext): HlsManifest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2634,10 +2638,11 @@ const deserializeAws_restJson1__listOfHlsManifest = (output: any, context: __Ser } return deserializeAws_restJson1HlsManifest(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfIngestEndpoint = (output: any, context: __SerdeContext): IngestEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2645,10 +2650,11 @@ const deserializeAws_restJson1__listOfIngestEndpoint = (output: any, context: __ } return deserializeAws_restJson1IngestEndpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfOriginEndpoint = (output: any, context: __SerdeContext): OriginEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2656,6 +2662,7 @@ const deserializeAws_restJson1__listOfOriginEndpoint = (output: any, context: __ } return deserializeAws_restJson1OriginEndpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -2671,7 +2678,7 @@ const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AdTriggers = (output: any, context: __SerdeContext): (__AdTriggersElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2679,6 +2686,7 @@ const deserializeAws_restJson1AdTriggers = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Authorization = (output: any, context: __SerdeContext): Authorization => { diff --git a/clients/client-mediastore-data/src/protocols/Aws_restJson1.ts b/clients/client-mediastore-data/src/protocols/Aws_restJson1.ts index c01d29cd2e54..18f6ecc923ba 100644 --- a/clients/client-mediastore-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediastore-data/src/protocols/Aws_restJson1.ts @@ -582,7 +582,7 @@ const deserializeAws_restJson1Item = (output: any, context: __SerdeContext): Ite }; const deserializeAws_restJson1ItemList = (output: any, context: __SerdeContext): Item[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -590,6 +590,7 @@ const deserializeAws_restJson1ItemList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Item(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-mediastore/src/protocols/Aws_json1_1.ts b/clients/client-mediastore/src/protocols/Aws_json1_1.ts index 238ab5ab76df..f2da52adc5c4 100644 --- a/clients/client-mediastore/src/protocols/Aws_json1_1.ts +++ b/clients/client-mediastore/src/protocols/Aws_json1_1.ts @@ -1782,7 +1782,7 @@ const serializeAws_json1_1UntagResourceInput = (input: UntagResourceInput, conte }; const deserializeAws_json1_1AllowedHeaders = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1790,10 +1790,11 @@ const deserializeAws_json1_1AllowedHeaders = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AllowedMethods = (output: any, context: __SerdeContext): (MethodName | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1801,10 +1802,11 @@ const deserializeAws_json1_1AllowedMethods = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AllowedOrigins = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1812,6 +1814,7 @@ const deserializeAws_json1_1AllowedOrigins = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Container = (output: any, context: __SerdeContext): Container => { @@ -1838,7 +1841,7 @@ const deserializeAws_json1_1ContainerInUseException = ( }; const deserializeAws_json1_1ContainerList = (output: any, context: __SerdeContext): Container[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1846,6 +1849,7 @@ const deserializeAws_json1_1ContainerList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Container(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerNotFoundException = ( @@ -1858,7 +1862,7 @@ const deserializeAws_json1_1ContainerNotFoundException = ( }; const deserializeAws_json1_1CorsPolicy = (output: any, context: __SerdeContext): CorsRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1866,6 +1870,7 @@ const deserializeAws_json1_1CorsPolicy = (output: any, context: __SerdeContext): } return deserializeAws_json1_1CorsRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1CorsPolicyNotFoundException = ( @@ -1950,7 +1955,7 @@ const deserializeAws_json1_1DescribeContainerOutput = ( }; const deserializeAws_json1_1ExposeHeaders = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1958,6 +1963,7 @@ const deserializeAws_json1_1ExposeHeaders = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1GetContainerPolicyOutput = ( @@ -2048,7 +2054,7 @@ const deserializeAws_json1_1MetricPolicyRule = (output: any, context: __SerdeCon }; const deserializeAws_json1_1MetricPolicyRules = (output: any, context: __SerdeContext): MetricPolicyRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2056,6 +2062,7 @@ const deserializeAws_json1_1MetricPolicyRules = (output: any, context: __SerdeCo } return deserializeAws_json1_1MetricPolicyRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1PolicyNotFoundException = ( @@ -2111,7 +2118,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2119,6 +2126,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceOutput = (output: any, context: __SerdeContext): TagResourceOutput => { diff --git a/clients/client-mediatailor/src/protocols/Aws_restJson1.ts b/clients/client-mediatailor/src/protocols/Aws_restJson1.ts index 5af39d1bbcf9..9b141f654e1e 100644 --- a/clients/client-mediatailor/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediatailor/src/protocols/Aws_restJson1.ts @@ -3900,7 +3900,7 @@ const serializeAws_restJson1Transition = (input: Transition, context: __SerdeCon }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3908,10 +3908,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfAdBreak = (output: any, context: __SerdeContext): AdBreak[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3919,10 +3920,11 @@ const deserializeAws_restJson1__listOfAdBreak = (output: any, context: __SerdeCo } return deserializeAws_restJson1AdBreak(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfAlert = (output: any, context: __SerdeContext): Alert[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3930,13 +3932,14 @@ const deserializeAws_restJson1__listOfAlert = (output: any, context: __SerdeCont } return deserializeAws_restJson1Alert(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfAvailMatchingCriteria = ( output: any, context: __SerdeContext ): AvailMatchingCriteria[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3944,10 +3947,11 @@ const deserializeAws_restJson1__listOfAvailMatchingCriteria = ( } return deserializeAws_restJson1AvailMatchingCriteria(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfChannel = (output: any, context: __SerdeContext): Channel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3955,13 +3959,14 @@ const deserializeAws_restJson1__listOfChannel = (output: any, context: __SerdeCo } return deserializeAws_restJson1Channel(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfPlaybackConfiguration = ( output: any, context: __SerdeContext ): PlaybackConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3969,10 +3974,11 @@ const deserializeAws_restJson1__listOfPlaybackConfiguration = ( } return deserializeAws_restJson1PlaybackConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfPrefetchSchedule = (output: any, context: __SerdeContext): PrefetchSchedule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3980,10 +3986,11 @@ const deserializeAws_restJson1__listOfPrefetchSchedule = (output: any, context: } return deserializeAws_restJson1PrefetchSchedule(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfScheduleAdBreak = (output: any, context: __SerdeContext): ScheduleAdBreak[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3991,10 +3998,11 @@ const deserializeAws_restJson1__listOfScheduleAdBreak = (output: any, context: _ } return deserializeAws_restJson1ScheduleAdBreak(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfScheduleEntry = (output: any, context: __SerdeContext): ScheduleEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4002,13 +4010,14 @@ const deserializeAws_restJson1__listOfScheduleEntry = (output: any, context: __S } return deserializeAws_restJson1ScheduleEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSegmentDeliveryConfiguration = ( output: any, context: __SerdeContext ): SegmentDeliveryConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4016,10 +4025,11 @@ const deserializeAws_restJson1__listOfSegmentDeliveryConfiguration = ( } return deserializeAws_restJson1SegmentDeliveryConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSourceLocation = (output: any, context: __SerdeContext): SourceLocation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4027,10 +4037,11 @@ const deserializeAws_restJson1__listOfSourceLocation = (output: any, context: __ } return deserializeAws_restJson1SourceLocation(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfVodSource = (output: any, context: __SerdeContext): VodSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4038,6 +4049,7 @@ const deserializeAws_restJson1__listOfVodSource = (output: any, context: __Serde } return deserializeAws_restJson1VodSource(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4237,7 +4249,7 @@ const deserializeAws_restJson1HttpPackageConfigurations = ( output: any, context: __SerdeContext ): HttpPackageConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4245,6 +4257,7 @@ const deserializeAws_restJson1HttpPackageConfigurations = ( } return deserializeAws_restJson1HttpPackageConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1LivePreRollConfiguration = ( @@ -4397,7 +4410,7 @@ const deserializeAws_restJson1ResponseOutputItem = (output: any, context: __Serd }; const deserializeAws_restJson1ResponseOutputs = (output: any, context: __SerdeContext): ResponseOutputItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4405,6 +4418,7 @@ const deserializeAws_restJson1ResponseOutputs = (output: any, context: __SerdeCo } return deserializeAws_restJson1ResponseOutputItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ScheduleAdBreak = (output: any, context: __SerdeContext): ScheduleAdBreak => { diff --git a/clients/client-memorydb/src/protocols/Aws_json1_1.ts b/clients/client-memorydb/src/protocols/Aws_json1_1.ts index 1b0111a64119..d50f70dc932d 100644 --- a/clients/client-memorydb/src/protocols/Aws_json1_1.ts +++ b/clients/client-memorydb/src/protocols/Aws_json1_1.ts @@ -3989,7 +3989,7 @@ const deserializeAws_json1_1ACLAlreadyExistsFault = (output: any, context: __Ser }; const deserializeAws_json1_1ACLClusterNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3997,10 +3997,11 @@ const deserializeAws_json1_1ACLClusterNameList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ACLList = (output: any, context: __SerdeContext): ACL[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4008,10 +4009,11 @@ const deserializeAws_json1_1ACLList = (output: any, context: __SerdeContext): AC } return deserializeAws_json1_1ACL(entry, context); }); + return retVal; }; const deserializeAws_json1_1ACLNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4019,6 +4021,7 @@ const deserializeAws_json1_1ACLNameList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ACLNotFoundFault = (output: any, context: __SerdeContext): ACLNotFoundFault => { @@ -4164,7 +4167,7 @@ const deserializeAws_json1_1ClusterConfiguration = (output: any, context: __Serd }; const deserializeAws_json1_1ClusterList = (output: any, context: __SerdeContext): Cluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4172,6 +4175,7 @@ const deserializeAws_json1_1ClusterList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Cluster(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClusterNotFoundFault = (output: any, context: __SerdeContext): ClusterNotFoundFault => { @@ -4474,7 +4478,7 @@ const deserializeAws_json1_1EngineVersionInfo = (output: any, context: __SerdeCo }; const deserializeAws_json1_1EngineVersionInfoList = (output: any, context: __SerdeContext): EngineVersionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4482,6 +4486,7 @@ const deserializeAws_json1_1EngineVersionInfoList = (output: any, context: __Ser } return deserializeAws_json1_1EngineVersionInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Event => { @@ -4497,7 +4502,7 @@ const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Even }; const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): Event[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4505,6 +4510,7 @@ const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Event(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailoverShardResponse = (output: any, context: __SerdeContext): FailoverShardResponse => { @@ -4666,7 +4672,7 @@ const deserializeAws_json1_1Node = (output: any, context: __SerdeContext): Node }; const deserializeAws_json1_1NodeList = (output: any, context: __SerdeContext): Node[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4674,6 +4680,7 @@ const deserializeAws_json1_1NodeList = (output: any, context: __SerdeContext): N } return deserializeAws_json1_1Node(entry, context); }); + return retVal; }; const deserializeAws_json1_1NodeQuotaForClusterExceededFault = ( @@ -4695,7 +4702,7 @@ const deserializeAws_json1_1NodeQuotaForCustomerExceededFault = ( }; const deserializeAws_json1_1NodeTypeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4703,6 +4710,7 @@ const deserializeAws_json1_1NodeTypeList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NoOperationFault = (output: any, context: __SerdeContext): NoOperationFault => { @@ -4741,7 +4749,7 @@ const deserializeAws_json1_1ParameterGroupAlreadyExistsFault = ( }; const deserializeAws_json1_1ParameterGroupList = (output: any, context: __SerdeContext): ParameterGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4749,6 +4757,7 @@ const deserializeAws_json1_1ParameterGroupList = (output: any, context: __SerdeC } return deserializeAws_json1_1ParameterGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterGroupNotFoundFault = ( @@ -4770,7 +4779,7 @@ const deserializeAws_json1_1ParameterGroupQuotaExceededFault = ( }; const deserializeAws_json1_1ParametersList = (output: any, context: __SerdeContext): Parameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4778,6 +4787,7 @@ const deserializeAws_json1_1ParametersList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Parameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1PendingModifiedServiceUpdate = ( @@ -4794,7 +4804,7 @@ const deserializeAws_json1_1PendingModifiedServiceUpdateList = ( output: any, context: __SerdeContext ): PendingModifiedServiceUpdate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4802,6 +4812,7 @@ const deserializeAws_json1_1PendingModifiedServiceUpdateList = ( } return deserializeAws_json1_1PendingModifiedServiceUpdate(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResetParameterGroupResponse = ( @@ -4839,7 +4850,7 @@ const deserializeAws_json1_1SecurityGroupMembershipList = ( output: any, context: __SerdeContext ): SecurityGroupMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4847,6 +4858,7 @@ const deserializeAws_json1_1SecurityGroupMembershipList = ( } return deserializeAws_json1_1SecurityGroupMembership(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceLinkedRoleNotFoundFault = ( @@ -4878,7 +4890,7 @@ const deserializeAws_json1_1ServiceUpdate = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ServiceUpdateList = (output: any, context: __SerdeContext): ServiceUpdate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4886,6 +4898,7 @@ const deserializeAws_json1_1ServiceUpdateList = (output: any, context: __SerdeCo } return deserializeAws_json1_1ServiceUpdate(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceUpdateNotFoundFault = ( @@ -4933,7 +4946,7 @@ const deserializeAws_json1_1ShardDetail = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ShardDetails = (output: any, context: __SerdeContext): ShardDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4941,10 +4954,11 @@ const deserializeAws_json1_1ShardDetails = (output: any, context: __SerdeContext } return deserializeAws_json1_1ShardDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ShardList = (output: any, context: __SerdeContext): Shard[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4952,6 +4966,7 @@ const deserializeAws_json1_1ShardList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Shard(entry, context); }); + return retVal; }; const deserializeAws_json1_1ShardNotFoundFault = (output: any, context: __SerdeContext): ShardNotFoundFault => { @@ -4999,7 +5014,7 @@ const deserializeAws_json1_1SnapshotAlreadyExistsFault = ( }; const deserializeAws_json1_1SnapshotList = (output: any, context: __SerdeContext): Snapshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5007,6 +5022,7 @@ const deserializeAws_json1_1SnapshotList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Snapshot(entry, context); }); + return retVal; }; const deserializeAws_json1_1SnapshotNotFoundFault = (output: any, context: __SerdeContext): SnapshotNotFoundFault => { @@ -5063,7 +5079,7 @@ const deserializeAws_json1_1SubnetGroupInUseFault = (output: any, context: __Ser }; const deserializeAws_json1_1SubnetGroupList = (output: any, context: __SerdeContext): SubnetGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5071,6 +5087,7 @@ const deserializeAws_json1_1SubnetGroupList = (output: any, context: __SerdeCont } return deserializeAws_json1_1SubnetGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubnetGroupNotFoundFault = ( @@ -5098,7 +5115,7 @@ const deserializeAws_json1_1SubnetInUse = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1SubnetList = (output: any, context: __SerdeContext): Subnet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5106,6 +5123,7 @@ const deserializeAws_json1_1SubnetList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Subnet(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubnetNotAllowedFault = (output: any, context: __SerdeContext): SubnetNotAllowedFault => { @@ -5131,7 +5149,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5139,6 +5157,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagNotFoundFault = (output: any, context: __SerdeContext): TagNotFoundFault => { @@ -5183,7 +5202,7 @@ const deserializeAws_json1_1UnprocessedCluster = (output: any, context: __SerdeC }; const deserializeAws_json1_1UnprocessedClusterList = (output: any, context: __SerdeContext): UnprocessedCluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5191,6 +5210,7 @@ const deserializeAws_json1_1UnprocessedClusterList = (output: any, context: __Se } return deserializeAws_json1_1UnprocessedCluster(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => { @@ -5273,7 +5293,7 @@ const deserializeAws_json1_1UserAlreadyExistsFault = (output: any, context: __Se }; const deserializeAws_json1_1UserList = (output: any, context: __SerdeContext): User[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5281,10 +5301,11 @@ const deserializeAws_json1_1UserList = (output: any, context: __SerdeContext): U } return deserializeAws_json1_1User(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5292,6 +5313,7 @@ const deserializeAws_json1_1UserNameList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1UserNotFoundFault = (output: any, context: __SerdeContext): UserNotFoundFault => { diff --git a/clients/client-mgn/src/protocols/Aws_restJson1.ts b/clients/client-mgn/src/protocols/Aws_restJson1.ts index c73f53361e44..cdb1b43e6970 100644 --- a/clients/client-mgn/src/protocols/Aws_restJson1.ts +++ b/clients/client-mgn/src/protocols/Aws_restJson1.ts @@ -3471,7 +3471,7 @@ const deserializeAws_restJson1CPU = (output: any, context: __SerdeContext): CPU }; const deserializeAws_restJson1Cpus = (output: any, context: __SerdeContext): CPU[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3479,6 +3479,7 @@ const deserializeAws_restJson1Cpus = (output: any, context: __SerdeContext): CPU } return deserializeAws_restJson1CPU(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataReplicationError = (output: any, context: __SerdeContext): DataReplicationError => { @@ -3526,7 +3527,7 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = ( output: any, context: __SerdeContext ): DataReplicationInfoReplicatedDisk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3534,6 +3535,7 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = ( } return deserializeAws_restJson1DataReplicationInfoReplicatedDisk(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataReplicationInitiation = ( @@ -3564,7 +3566,7 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = ( output: any, context: __SerdeContext ): DataReplicationInitiationStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3572,6 +3574,7 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = ( } return deserializeAws_restJson1DataReplicationInitiationStep(entry, context); }); + return retVal; }; const deserializeAws_restJson1Disk = (output: any, context: __SerdeContext): Disk => { @@ -3582,7 +3585,7 @@ const deserializeAws_restJson1Disk = (output: any, context: __SerdeContext): Dis }; const deserializeAws_restJson1Disks = (output: any, context: __SerdeContext): Disk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3590,6 +3593,7 @@ const deserializeAws_restJson1Disks = (output: any, context: __SerdeContext): Di } return deserializeAws_restJson1Disk(entry, context); }); + return retVal; }; const deserializeAws_restJson1IdentificationHints = (output: any, context: __SerdeContext): IdentificationHints => { @@ -3603,7 +3607,7 @@ const deserializeAws_restJson1IdentificationHints = (output: any, context: __Ser }; const deserializeAws_restJson1IPsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3611,6 +3615,7 @@ const deserializeAws_restJson1IPsList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job => { @@ -3654,7 +3659,7 @@ const deserializeAws_restJson1JobLogEventData = (output: any, context: __SerdeCo }; const deserializeAws_restJson1JobLogs = (output: any, context: __SerdeContext): JobLog[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3662,10 +3667,11 @@ const deserializeAws_restJson1JobLogs = (output: any, context: __SerdeContext): } return deserializeAws_restJson1JobLog(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobsList = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3673,6 +3679,7 @@ const deserializeAws_restJson1JobsList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Job(entry, context); }); + return retVal; }; const deserializeAws_restJson1LaunchedInstance = (output: any, context: __SerdeContext): LaunchedInstance => { @@ -3809,7 +3816,7 @@ const deserializeAws_restJson1NetworkInterface = (output: any, context: __SerdeC }; const deserializeAws_restJson1NetworkInterfaces = (output: any, context: __SerdeContext): NetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3817,6 +3824,7 @@ const deserializeAws_restJson1NetworkInterfaces = (output: any, context: __Serde } return deserializeAws_restJson1NetworkInterface(entry, context); }); + return retVal; }; const deserializeAws_restJson1OS = (output: any, context: __SerdeContext): OS => { @@ -3833,7 +3841,7 @@ const deserializeAws_restJson1ParticipatingServer = (output: any, context: __Ser }; const deserializeAws_restJson1ParticipatingServers = (output: any, context: __SerdeContext): ParticipatingServer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3841,6 +3849,7 @@ const deserializeAws_restJson1ParticipatingServers = (output: any, context: __Se } return deserializeAws_restJson1ParticipatingServer(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = ( @@ -3859,7 +3868,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = ( output: any, context: __SerdeContext ): ReplicationConfigurationReplicatedDisk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3867,6 +3876,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = ( } return deserializeAws_restJson1ReplicationConfigurationReplicatedDisk(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplicationConfigurationTemplate = ( @@ -3908,7 +3918,7 @@ const deserializeAws_restJson1ReplicationConfigurationTemplates = ( output: any, context: __SerdeContext ): ReplicationConfigurationTemplate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3916,13 +3926,14 @@ const deserializeAws_restJson1ReplicationConfigurationTemplates = ( } return deserializeAws_restJson1ReplicationConfigurationTemplate(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3930,6 +3941,7 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SourceProperties = (output: any, context: __SerdeContext): SourceProperties => { @@ -3988,7 +4000,7 @@ const deserializeAws_restJson1SourceServer = (output: any, context: __SerdeConte }; const deserializeAws_restJson1SourceServersList = (output: any, context: __SerdeContext): SourceServer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3996,6 +4008,7 @@ const deserializeAws_restJson1SourceServersList = (output: any, context: __Serde } return deserializeAws_restJson1SourceServer(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4024,7 +4037,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4032,6 +4045,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1VcenterClient = (output: any, context: __SerdeContext): VcenterClient => { @@ -4054,7 +4068,7 @@ const deserializeAws_restJson1VcenterClient = (output: any, context: __SerdeCont }; const deserializeAws_restJson1VcenterClientList = (output: any, context: __SerdeContext): VcenterClient[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4062,6 +4076,7 @@ const deserializeAws_restJson1VcenterClientList = (output: any, context: __Serde } return deserializeAws_restJson1VcenterClient(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts b/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts index 79e10d7d7e67..be8932846d8f 100644 --- a/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts +++ b/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts @@ -3037,7 +3037,7 @@ const deserializeAws_restJson1ApiGatewayProxySummary = ( }; const deserializeAws_restJson1ApplicationSummaries = (output: any, context: __SerdeContext): ApplicationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3045,6 +3045,7 @@ const deserializeAws_restJson1ApplicationSummaries = (output: any, context: __Se } return deserializeAws_restJson1ApplicationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ApplicationSummary = (output: any, context: __SerdeContext): ApplicationSummary => { @@ -3082,7 +3083,7 @@ const deserializeAws_restJson1ApplicationSummary = (output: any, context: __Serd }; const deserializeAws_restJson1CidrBlocks = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3090,10 +3091,11 @@ const deserializeAws_restJson1CidrBlocks = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EnvironmentSummaries = (output: any, context: __SerdeContext): EnvironmentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3101,6 +3103,7 @@ const deserializeAws_restJson1EnvironmentSummaries = (output: any, context: __Se } return deserializeAws_restJson1EnvironmentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1EnvironmentSummary = (output: any, context: __SerdeContext): EnvironmentSummary => { @@ -3154,7 +3157,7 @@ const deserializeAws_restJson1EnvironmentVpc = (output: any, context: __SerdeCon }; const deserializeAws_restJson1EnvironmentVpcs = (output: any, context: __SerdeContext): EnvironmentVpc[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3162,6 +3165,7 @@ const deserializeAws_restJson1EnvironmentVpcs = (output: any, context: __SerdeCo } return deserializeAws_restJson1EnvironmentVpc(entry, context); }); + return retVal; }; const deserializeAws_restJson1ErrorResponse = (output: any, context: __SerdeContext): ErrorResponse => { @@ -3179,7 +3183,7 @@ const deserializeAws_restJson1ErrorResponse = (output: any, context: __SerdeCont }; const deserializeAws_restJson1HttpMethods = (output: any, context: __SerdeContext): (HttpMethod | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3187,6 +3191,7 @@ const deserializeAws_restJson1HttpMethods = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LambdaEndpointConfig = (output: any, context: __SerdeContext): LambdaEndpointConfig => { @@ -3220,7 +3225,7 @@ const deserializeAws_restJson1PathResourceToId = (output: any, context: __SerdeC }; const deserializeAws_restJson1RouteSummaries = (output: any, context: __SerdeContext): RouteSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3228,6 +3233,7 @@ const deserializeAws_restJson1RouteSummaries = (output: any, context: __SerdeCon } return deserializeAws_restJson1RouteSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RouteSummary = (output: any, context: __SerdeContext): RouteSummary => { @@ -3271,7 +3277,7 @@ const deserializeAws_restJson1RouteSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ServiceSummaries = (output: any, context: __SerdeContext): ServiceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3279,6 +3285,7 @@ const deserializeAws_restJson1ServiceSummaries = (output: any, context: __SerdeC } return deserializeAws_restJson1ServiceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServiceSummary = (output: any, context: __SerdeContext): ServiceSummary => { diff --git a/clients/client-migration-hub/src/protocols/Aws_json1_1.ts b/clients/client-migration-hub/src/protocols/Aws_json1_1.ts index 8ea34aca4cb1..cee78d51013f 100644 --- a/clients/client-migration-hub/src/protocols/Aws_json1_1.ts +++ b/clients/client-migration-hub/src/protocols/Aws_json1_1.ts @@ -1888,7 +1888,7 @@ const deserializeAws_json1_1ApplicationState = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ApplicationStateList = (output: any, context: __SerdeContext): ApplicationState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1896,6 +1896,7 @@ const deserializeAws_json1_1ApplicationStateList = (output: any, context: __Serd } return deserializeAws_json1_1ApplicationState(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociateCreatedArtifactResult = ( @@ -1920,7 +1921,7 @@ const deserializeAws_json1_1CreatedArtifact = (output: any, context: __SerdeCont }; const deserializeAws_json1_1CreatedArtifactList = (output: any, context: __SerdeContext): CreatedArtifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1928,6 +1929,7 @@ const deserializeAws_json1_1CreatedArtifactList = (output: any, context: __Serde } return deserializeAws_json1_1CreatedArtifact(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateProgressUpdateStreamResult = ( @@ -1991,7 +1993,7 @@ const deserializeAws_json1_1DiscoveredResource = (output: any, context: __SerdeC }; const deserializeAws_json1_1DiscoveredResourceList = (output: any, context: __SerdeContext): DiscoveredResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1999,6 +2001,7 @@ const deserializeAws_json1_1DiscoveredResourceList = (output: any, context: __Se } return deserializeAws_json1_1DiscoveredResource(entry, context); }); + return retVal; }; const deserializeAws_json1_1DryRunOperation = (output: any, context: __SerdeContext): DryRunOperation => { @@ -2039,7 +2042,7 @@ const deserializeAws_json1_1LatestResourceAttributeList = ( output: any, context: __SerdeContext ): ResourceAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2047,6 +2050,7 @@ const deserializeAws_json1_1LatestResourceAttributeList = ( } return deserializeAws_json1_1ResourceAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListApplicationStatesResult = ( @@ -2149,7 +2153,7 @@ const deserializeAws_json1_1MigrationTaskSummaryList = ( output: any, context: __SerdeContext ): MigrationTaskSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2157,6 +2161,7 @@ const deserializeAws_json1_1MigrationTaskSummaryList = ( } return deserializeAws_json1_1MigrationTaskSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotifyApplicationStateResult = ( @@ -2192,7 +2197,7 @@ const deserializeAws_json1_1ProgressUpdateStreamSummaryList = ( output: any, context: __SerdeContext ): ProgressUpdateStreamSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2200,6 +2205,7 @@ const deserializeAws_json1_1ProgressUpdateStreamSummaryList = ( } return deserializeAws_json1_1ProgressUpdateStreamSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutResourceAttributesResult = ( diff --git a/clients/client-migrationhub-config/src/protocols/Aws_json1_1.ts b/clients/client-migrationhub-config/src/protocols/Aws_json1_1.ts index daf466fd12e8..10efc8a6820a 100644 --- a/clients/client-migrationhub-config/src/protocols/Aws_json1_1.ts +++ b/clients/client-migrationhub-config/src/protocols/Aws_json1_1.ts @@ -422,7 +422,7 @@ const deserializeAws_json1_1HomeRegionControl = (output: any, context: __SerdeCo }; const deserializeAws_json1_1HomeRegionControls = (output: any, context: __SerdeContext): HomeRegionControl[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -430,6 +430,7 @@ const deserializeAws_json1_1HomeRegionControls = (output: any, context: __SerdeC } return deserializeAws_json1_1HomeRegionControl(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalServerError = (output: any, context: __SerdeContext): InternalServerError => { diff --git a/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts b/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts index 51a7ee34c6ec..96b3470d0419 100644 --- a/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts +++ b/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts @@ -2338,7 +2338,7 @@ const deserializeAws_restJson1ApplicationComponentDetails = ( output: any, context: __SerdeContext ): ApplicationComponentDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2346,13 +2346,14 @@ const deserializeAws_restJson1ApplicationComponentDetails = ( } return deserializeAws_restJson1ApplicationComponentDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ApplicationComponentStrategies = ( output: any, context: __SerdeContext ): ApplicationComponentStrategy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2360,6 +2361,7 @@ const deserializeAws_restJson1ApplicationComponentStrategies = ( } return deserializeAws_restJson1ApplicationComponentStrategy(entry, context); }); + return retVal; }; const deserializeAws_restJson1ApplicationComponentStrategy = ( @@ -2445,7 +2447,7 @@ const deserializeAws_restJson1AssociatedApplications = ( output: any, context: __SerdeContext ): AssociatedApplication[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2453,10 +2455,11 @@ const deserializeAws_restJson1AssociatedApplications = ( } return deserializeAws_restJson1AssociatedApplication(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssociatedServerIDs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2464,6 +2467,7 @@ const deserializeAws_restJson1AssociatedServerIDs = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AwsManagedResources = (output: any, context: __SerdeContext): AwsManagedResources => { @@ -2479,7 +2483,7 @@ const deserializeAws_restJson1AwsManagedTargetDestinations = ( output: any, context: __SerdeContext ): (AwsManagedTargetDestination | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2487,6 +2491,7 @@ const deserializeAws_restJson1AwsManagedTargetDestinations = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BusinessGoals = (output: any, context: __SerdeContext): BusinessGoals => { @@ -2513,7 +2518,7 @@ const deserializeAws_restJson1Collector = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1Collectors = (output: any, context: __SerdeContext): Collector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2521,6 +2526,7 @@ const deserializeAws_restJson1Collectors = (output: any, context: __SerdeContext } return deserializeAws_restJson1Collector(entry, context); }); + return retVal; }; const deserializeAws_restJson1DatabaseConfigDetail = (output: any, context: __SerdeContext): DatabaseConfigDetail => { @@ -2595,7 +2601,7 @@ const deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = ( output: any, context: __SerdeContext ): (HeterogeneousTargetDatabaseEngine | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2603,6 +2609,7 @@ const deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Homogeneous = (output: any, context: __SerdeContext): Homogeneous => { @@ -2618,7 +2625,7 @@ const deserializeAws_restJson1HomogeneousTargetDatabaseEngines = ( output: any, context: __SerdeContext ): (HomogeneousTargetDatabaseEngine | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2626,6 +2633,7 @@ const deserializeAws_restJson1HomogeneousTargetDatabaseEngines = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ImportFileTaskInformation = ( @@ -2657,7 +2665,7 @@ const deserializeAws_restJson1ListAntipatternSeveritySummary = ( output: any, context: __SerdeContext ): AntipatternSeveritySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2665,13 +2673,14 @@ const deserializeAws_restJson1ListAntipatternSeveritySummary = ( } return deserializeAws_restJson1AntipatternSeveritySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListApplicationComponentSummary = ( output: any, context: __SerdeContext ): ApplicationComponentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2679,13 +2688,14 @@ const deserializeAws_restJson1ListApplicationComponentSummary = ( } return deserializeAws_restJson1ApplicationComponentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListImportFileTaskInformation = ( output: any, context: __SerdeContext ): ImportFileTaskInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2693,10 +2703,11 @@ const deserializeAws_restJson1ListImportFileTaskInformation = ( } return deserializeAws_restJson1ImportFileTaskInformation(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListServerSummary = (output: any, context: __SerdeContext): ServerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2704,10 +2715,11 @@ const deserializeAws_restJson1ListServerSummary = (output: any, context: __Serde } return deserializeAws_restJson1ServerSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListStrategySummary = (output: any, context: __SerdeContext): StrategySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2715,6 +2727,7 @@ const deserializeAws_restJson1ListStrategySummary = (output: any, context: __Ser } return deserializeAws_restJson1StrategySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ManagementPreference = (output: any, context: __SerdeContext): ManagementPreference => { @@ -2746,7 +2759,7 @@ const deserializeAws_restJson1NetworkInfo = (output: any, context: __SerdeContex }; const deserializeAws_restJson1NetworkInfoList = (output: any, context: __SerdeContext): NetworkInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2754,6 +2767,7 @@ const deserializeAws_restJson1NetworkInfoList = (output: any, context: __SerdeCo } return deserializeAws_restJson1NetworkInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1NoDatabaseMigrationPreference = ( @@ -2784,7 +2798,7 @@ const deserializeAws_restJson1NoPreferenceTargetDestinations = ( output: any, context: __SerdeContext ): (NoPreferenceTargetDestination | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2792,6 +2806,7 @@ const deserializeAws_restJson1NoPreferenceTargetDestinations = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1OSInfo = (output: any, context: __SerdeContext): OSInfo => { @@ -2848,7 +2863,7 @@ const deserializeAws_restJson1RecommendationSet = (output: any, context: __Serde }; const deserializeAws_restJson1S3Keys = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2856,6 +2871,7 @@ const deserializeAws_restJson1S3Keys = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3Object = (output: any, context: __SerdeContext): S3Object => { @@ -2878,7 +2894,7 @@ const deserializeAws_restJson1SelfManageTargetDestinations = ( output: any, context: __SerdeContext ): (SelfManageTargetDestination | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2886,6 +2902,7 @@ const deserializeAws_restJson1SelfManageTargetDestinations = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ServerDetail = (output: any, context: __SerdeContext): ServerDetail => { @@ -2925,7 +2942,7 @@ const deserializeAws_restJson1ServerDetail = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ServerDetails = (output: any, context: __SerdeContext): ServerDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2933,10 +2950,11 @@ const deserializeAws_restJson1ServerDetails = (output: any, context: __SerdeCont } return deserializeAws_restJson1ServerDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServerStrategies = (output: any, context: __SerdeContext): ServerStrategy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2944,6 +2962,7 @@ const deserializeAws_restJson1ServerStrategies = (output: any, context: __SerdeC } return deserializeAws_restJson1ServerStrategy(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServerStrategy = (output: any, context: __SerdeContext): ServerStrategy => { @@ -2969,7 +2988,7 @@ const deserializeAws_restJson1SourceCodeRepositories = ( output: any, context: __SerdeContext ): SourceCodeRepository[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2977,6 +2996,7 @@ const deserializeAws_restJson1SourceCodeRepositories = ( } return deserializeAws_restJson1SourceCodeRepository(entry, context); }); + return retVal; }; const deserializeAws_restJson1SourceCodeRepository = (output: any, context: __SerdeContext): SourceCodeRepository => { @@ -3013,7 +3033,7 @@ const deserializeAws_restJson1TargetDatabaseEngines = ( output: any, context: __SerdeContext ): (TargetDatabaseEngine | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3021,6 +3041,7 @@ const deserializeAws_restJson1TargetDatabaseEngines = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TransformationTool = (output: any, context: __SerdeContext): TransformationTool => { diff --git a/clients/client-mobile/src/protocols/Aws_restJson1.ts b/clients/client-mobile/src/protocols/Aws_restJson1.ts index 369ee239f111..1d28e38c199a 100644 --- a/clients/client-mobile/src/protocols/Aws_restJson1.ts +++ b/clients/client-mobile/src/protocols/Aws_restJson1.ts @@ -1002,7 +1002,7 @@ const deserializeAws_restJson1BundleDetails = (output: any, context: __SerdeCont }; const deserializeAws_restJson1BundleList = (output: any, context: __SerdeContext): BundleDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1010,10 +1010,11 @@ const deserializeAws_restJson1BundleList = (output: any, context: __SerdeContext } return deserializeAws_restJson1BundleDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1Platforms = (output: any, context: __SerdeContext): (Platform | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1021,6 +1022,7 @@ const deserializeAws_restJson1Platforms = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ProjectDetails = (output: any, context: __SerdeContext): ProjectDetails => { @@ -1046,7 +1048,7 @@ const deserializeAws_restJson1ProjectDetails = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ProjectSummaries = (output: any, context: __SerdeContext): ProjectSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1054,6 +1056,7 @@ const deserializeAws_restJson1ProjectSummaries = (output: any, context: __SerdeC } return deserializeAws_restJson1ProjectSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProjectSummary = (output: any, context: __SerdeContext): ProjectSummary => { @@ -1077,7 +1080,7 @@ const deserializeAws_restJson1Resource = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1085,6 +1088,7 @@ const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Resource(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-mq/src/protocols/Aws_restJson1.ts b/clients/client-mq/src/protocols/Aws_restJson1.ts index 5e0c52f280af..089211f28e9c 100644 --- a/clients/client-mq/src/protocols/Aws_restJson1.ts +++ b/clients/client-mq/src/protocols/Aws_restJson1.ts @@ -2539,7 +2539,7 @@ const serializeAws_restJson1WeeklyStartTime = (input: WeeklyStartTime, context: }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2547,10 +2547,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfAvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2558,10 +2559,11 @@ const deserializeAws_restJson1__listOfAvailabilityZone = (output: any, context: } return deserializeAws_restJson1AvailabilityZone(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfBrokerEngineType = (output: any, context: __SerdeContext): BrokerEngineType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2569,10 +2571,11 @@ const deserializeAws_restJson1__listOfBrokerEngineType = (output: any, context: } return deserializeAws_restJson1BrokerEngineType(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfBrokerInstance = (output: any, context: __SerdeContext): BrokerInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2580,13 +2583,14 @@ const deserializeAws_restJson1__listOfBrokerInstance = (output: any, context: __ } return deserializeAws_restJson1BrokerInstance(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfBrokerInstanceOption = ( output: any, context: __SerdeContext ): BrokerInstanceOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2594,10 +2598,11 @@ const deserializeAws_restJson1__listOfBrokerInstanceOption = ( } return deserializeAws_restJson1BrokerInstanceOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfBrokerSummary = (output: any, context: __SerdeContext): BrokerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2605,10 +2610,11 @@ const deserializeAws_restJson1__listOfBrokerSummary = (output: any, context: __S } return deserializeAws_restJson1BrokerSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfConfiguration = (output: any, context: __SerdeContext): Configuration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2616,10 +2622,11 @@ const deserializeAws_restJson1__listOfConfiguration = (output: any, context: __S } return deserializeAws_restJson1Configuration(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfConfigurationId = (output: any, context: __SerdeContext): ConfigurationId[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2627,13 +2634,14 @@ const deserializeAws_restJson1__listOfConfigurationId = (output: any, context: _ } return deserializeAws_restJson1ConfigurationId(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfConfigurationRevision = ( output: any, context: __SerdeContext ): ConfigurationRevision[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2641,13 +2649,14 @@ const deserializeAws_restJson1__listOfConfigurationRevision = ( } return deserializeAws_restJson1ConfigurationRevision(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfDeploymentMode = ( output: any, context: __SerdeContext ): (DeploymentMode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2655,10 +2664,11 @@ const deserializeAws_restJson1__listOfDeploymentMode = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfEngineVersion = (output: any, context: __SerdeContext): EngineVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2666,13 +2676,14 @@ const deserializeAws_restJson1__listOfEngineVersion = (output: any, context: __S } return deserializeAws_restJson1EngineVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSanitizationWarning = ( output: any, context: __SerdeContext ): SanitizationWarning[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2680,10 +2691,11 @@ const deserializeAws_restJson1__listOfSanitizationWarning = ( } return deserializeAws_restJson1SanitizationWarning(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfUserSummary = (output: any, context: __SerdeContext): UserSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2691,6 +2703,7 @@ const deserializeAws_restJson1__listOfUserSummary = (output: any, context: __Ser } return deserializeAws_restJson1UserSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-mturk/src/protocols/Aws_json1_1.ts b/clients/client-mturk/src/protocols/Aws_json1_1.ts index af5fd0b7f4b3..ff3220742d0e 100644 --- a/clients/client-mturk/src/protocols/Aws_json1_1.ts +++ b/clients/client-mturk/src/protocols/Aws_json1_1.ts @@ -3311,7 +3311,7 @@ const deserializeAws_json1_1Assignment = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1AssignmentList = (output: any, context: __SerdeContext): Assignment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3319,6 +3319,7 @@ const deserializeAws_json1_1AssignmentList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Assignment(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociateQualificationWithWorkerResponse = ( @@ -3342,7 +3343,7 @@ const deserializeAws_json1_1BonusPayment = (output: any, context: __SerdeContext }; const deserializeAws_json1_1BonusPaymentList = (output: any, context: __SerdeContext): BonusPayment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3350,6 +3351,7 @@ const deserializeAws_json1_1BonusPaymentList = (output: any, context: __SerdeCon } return deserializeAws_json1_1BonusPayment(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateAdditionalAssignmentsForHITResponse = ( @@ -3519,7 +3521,7 @@ const deserializeAws_json1_1HIT = (output: any, context: __SerdeContext): HIT => }; const deserializeAws_json1_1HITList = (output: any, context: __SerdeContext): HIT[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3527,10 +3529,11 @@ const deserializeAws_json1_1HITList = (output: any, context: __SerdeContext): HI } return deserializeAws_json1_1HIT(entry, context); }); + return retVal; }; const deserializeAws_json1_1IntegerList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3538,6 +3541,7 @@ const deserializeAws_json1_1IntegerList = (output: any, context: __SerdeContext) } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListAssignmentsForHITResponse = ( @@ -3697,7 +3701,7 @@ const deserializeAws_json1_1Locale = (output: any, context: __SerdeContext): Loc }; const deserializeAws_json1_1LocaleList = (output: any, context: __SerdeContext): Locale[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3705,6 +3709,7 @@ const deserializeAws_json1_1LocaleList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Locale(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotifyWorkersFailureStatus = ( @@ -3722,7 +3727,7 @@ const deserializeAws_json1_1NotifyWorkersFailureStatusList = ( output: any, context: __SerdeContext ): NotifyWorkersFailureStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3730,6 +3735,7 @@ const deserializeAws_json1_1NotifyWorkersFailureStatusList = ( } return deserializeAws_json1_1NotifyWorkersFailureStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotifyWorkersResponse = (output: any, context: __SerdeContext): NotifyWorkersResponse => { @@ -3752,7 +3758,7 @@ const deserializeAws_json1_1ParameterMapEntry = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ParameterMapEntryList = (output: any, context: __SerdeContext): ParameterMapEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3760,6 +3766,7 @@ const deserializeAws_json1_1ParameterMapEntryList = (output: any, context: __Ser } return deserializeAws_json1_1ParameterMapEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1PolicyParameter = (output: any, context: __SerdeContext): PolicyParameter => { @@ -3777,7 +3784,7 @@ const deserializeAws_json1_1PolicyParameter = (output: any, context: __SerdeCont }; const deserializeAws_json1_1PolicyParameterList = (output: any, context: __SerdeContext): PolicyParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3785,6 +3792,7 @@ const deserializeAws_json1_1PolicyParameterList = (output: any, context: __Serde } return deserializeAws_json1_1PolicyParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1Qualification = (output: any, context: __SerdeContext): Qualification => { @@ -3805,7 +3813,7 @@ const deserializeAws_json1_1Qualification = (output: any, context: __SerdeContex }; const deserializeAws_json1_1QualificationList = (output: any, context: __SerdeContext): Qualification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3813,6 +3821,7 @@ const deserializeAws_json1_1QualificationList = (output: any, context: __SerdeCo } return deserializeAws_json1_1Qualification(entry, context); }); + return retVal; }; const deserializeAws_json1_1QualificationRequest = (output: any, context: __SerdeContext): QualificationRequest => { @@ -3833,7 +3842,7 @@ const deserializeAws_json1_1QualificationRequestList = ( output: any, context: __SerdeContext ): QualificationRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3841,6 +3850,7 @@ const deserializeAws_json1_1QualificationRequestList = ( } return deserializeAws_json1_1QualificationRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1QualificationRequirement = ( @@ -3867,7 +3877,7 @@ const deserializeAws_json1_1QualificationRequirementList = ( output: any, context: __SerdeContext ): QualificationRequirement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3875,6 +3885,7 @@ const deserializeAws_json1_1QualificationRequirementList = ( } return deserializeAws_json1_1QualificationRequirement(entry, context); }); + return retVal; }; const deserializeAws_json1_1QualificationType = (output: any, context: __SerdeContext): QualificationType => { @@ -3899,7 +3910,7 @@ const deserializeAws_json1_1QualificationType = (output: any, context: __SerdeCo }; const deserializeAws_json1_1QualificationTypeList = (output: any, context: __SerdeContext): QualificationType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3907,6 +3918,7 @@ const deserializeAws_json1_1QualificationTypeList = (output: any, context: __Ser } return deserializeAws_json1_1QualificationType(entry, context); }); + return retVal; }; const deserializeAws_json1_1RejectAssignmentResponse = ( @@ -3947,7 +3959,7 @@ const deserializeAws_json1_1ReviewActionDetail = (output: any, context: __SerdeC }; const deserializeAws_json1_1ReviewActionDetailList = (output: any, context: __SerdeContext): ReviewActionDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3955,6 +3967,7 @@ const deserializeAws_json1_1ReviewActionDetailList = (output: any, context: __Se } return deserializeAws_json1_1ReviewActionDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReviewPolicy = (output: any, context: __SerdeContext): ReviewPolicy => { @@ -3992,7 +4005,7 @@ const deserializeAws_json1_1ReviewResultDetail = (output: any, context: __SerdeC }; const deserializeAws_json1_1ReviewResultDetailList = (output: any, context: __SerdeContext): ReviewResultDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4000,6 +4013,7 @@ const deserializeAws_json1_1ReviewResultDetailList = (output: any, context: __Se } return deserializeAws_json1_1ReviewResultDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1SendBonusResponse = (output: any, context: __SerdeContext): SendBonusResponse => { @@ -4021,7 +4035,7 @@ const deserializeAws_json1_1ServiceFault = (output: any, context: __SerdeContext }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4029,6 +4043,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1UpdateExpirationForHITResponse = ( @@ -4079,7 +4094,7 @@ const deserializeAws_json1_1WorkerBlock = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1WorkerBlockList = (output: any, context: __SerdeContext): WorkerBlock[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4087,6 +4102,7 @@ const deserializeAws_json1_1WorkerBlockList = (output: any, context: __SerdeCont } return deserializeAws_json1_1WorkerBlock(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-mwaa/src/protocols/Aws_restJson1.ts b/clients/client-mwaa/src/protocols/Aws_restJson1.ts index 4e4fa274badb..0d833daa313b 100644 --- a/clients/client-mwaa/src/protocols/Aws_restJson1.ts +++ b/clients/client-mwaa/src/protocols/Aws_restJson1.ts @@ -1375,7 +1375,7 @@ const deserializeAws_restJson1Environment = (output: any, context: __SerdeContex }; const deserializeAws_restJson1EnvironmentList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1383,6 +1383,7 @@ const deserializeAws_restJson1EnvironmentList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LastUpdate = (output: any, context: __SerdeContext): LastUpdate => { @@ -1450,7 +1451,7 @@ const deserializeAws_restJson1NetworkConfiguration = (output: any, context: __Se }; const deserializeAws_restJson1SecurityGroupList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1458,10 +1459,11 @@ const deserializeAws_restJson1SecurityGroupList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SubnetList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1469,6 +1471,7 @@ const deserializeAws_restJson1SubnetList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-network-firewall/src/protocols/Aws_json1_0.ts b/clients/client-network-firewall/src/protocols/Aws_json1_0.ts index e4d9bee804a4..a1a1b8caff35 100644 --- a/clients/client-network-firewall/src/protocols/Aws_json1_0.ts +++ b/clients/client-network-firewall/src/protocols/Aws_json1_0.ts @@ -3405,7 +3405,7 @@ const deserializeAws_json1_0Address = (output: any, context: __SerdeContext): Ad }; const deserializeAws_json1_0Addresses = (output: any, context: __SerdeContext): Address[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3413,6 +3413,7 @@ const deserializeAws_json1_0Addresses = (output: any, context: __SerdeContext): } return deserializeAws_json1_0Address(entry, context); }); + return retVal; }; const deserializeAws_json1_0AssociateFirewallPolicyResponse = ( @@ -3500,7 +3501,7 @@ const deserializeAws_json1_0CustomAction = (output: any, context: __SerdeContext }; const deserializeAws_json1_0CustomActions = (output: any, context: __SerdeContext): CustomAction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3508,6 +3509,7 @@ const deserializeAws_json1_0CustomActions = (output: any, context: __SerdeContex } return deserializeAws_json1_0CustomAction(entry, context); }); + return retVal; }; const deserializeAws_json1_0DeleteFirewallPolicyResponse = ( @@ -3651,7 +3653,7 @@ const deserializeAws_json1_0Dimension = (output: any, context: __SerdeContext): }; const deserializeAws_json1_0Dimensions = (output: any, context: __SerdeContext): Dimension[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3659,6 +3661,7 @@ const deserializeAws_json1_0Dimensions = (output: any, context: __SerdeContext): } return deserializeAws_json1_0Dimension(entry, context); }); + return retVal; }; const deserializeAws_json1_0DisassociateSubnetsResponse = ( @@ -3706,7 +3709,7 @@ const deserializeAws_json1_0FirewallMetadata = (output: any, context: __SerdeCon }; const deserializeAws_json1_0FirewallPolicies = (output: any, context: __SerdeContext): FirewallPolicyMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3714,6 +3717,7 @@ const deserializeAws_json1_0FirewallPolicies = (output: any, context: __SerdeCon } return deserializeAws_json1_0FirewallPolicyMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_0FirewallPolicy = (output: any, context: __SerdeContext): FirewallPolicy => { @@ -3774,7 +3778,7 @@ const deserializeAws_json1_0FirewallPolicyResponse = (output: any, context: __Se }; const deserializeAws_json1_0Firewalls = (output: any, context: __SerdeContext): FirewallMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3782,6 +3786,7 @@ const deserializeAws_json1_0Firewalls = (output: any, context: __SerdeContext): } return deserializeAws_json1_0FirewallMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_0FirewallStatus = (output: any, context: __SerdeContext): FirewallStatus => { @@ -3796,7 +3801,7 @@ const deserializeAws_json1_0FirewallStatus = (output: any, context: __SerdeConte }; const deserializeAws_json1_0Flags = (output: any, context: __SerdeContext): (TCPFlag | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3804,6 +3809,7 @@ const deserializeAws_json1_0Flags = (output: any, context: __SerdeContext): (TCP } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0Header = (output: any, context: __SerdeContext): Header => { @@ -3950,7 +3956,7 @@ const deserializeAws_json1_0LogDestinationConfig = (output: any, context: __Serd }; const deserializeAws_json1_0LogDestinationConfigs = (output: any, context: __SerdeContext): LogDestinationConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3958,6 +3964,7 @@ const deserializeAws_json1_0LogDestinationConfigs = (output: any, context: __Ser } return deserializeAws_json1_0LogDestinationConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_0LogDestinationMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4034,7 +4041,7 @@ const deserializeAws_json1_0PortRange = (output: any, context: __SerdeContext): }; const deserializeAws_json1_0PortRanges = (output: any, context: __SerdeContext): PortRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4042,6 +4049,7 @@ const deserializeAws_json1_0PortRanges = (output: any, context: __SerdeContext): } return deserializeAws_json1_0PortRange(entry, context); }); + return retVal; }; const deserializeAws_json1_0PortSet = (output: any, context: __SerdeContext): PortSet => { @@ -4066,7 +4074,7 @@ const deserializeAws_json1_0PortSets = (output: any, context: __SerdeContext): { }; const deserializeAws_json1_0ProtocolNumbers = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4074,6 +4082,7 @@ const deserializeAws_json1_0ProtocolNumbers = (output: any, context: __SerdeCont } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_0PublishMetricAction = (output: any, context: __SerdeContext): PublishMetricAction => { @@ -4166,7 +4175,7 @@ const deserializeAws_json1_0RuleGroupResponse = (output: any, context: __SerdeCo }; const deserializeAws_json1_0RuleGroups = (output: any, context: __SerdeContext): RuleGroupMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4174,6 +4183,7 @@ const deserializeAws_json1_0RuleGroups = (output: any, context: __SerdeContext): } return deserializeAws_json1_0RuleGroupMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_0RuleOption = (output: any, context: __SerdeContext): RuleOption => { @@ -4187,7 +4197,7 @@ const deserializeAws_json1_0RuleOption = (output: any, context: __SerdeContext): }; const deserializeAws_json1_0RuleOptions = (output: any, context: __SerdeContext): RuleOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4195,6 +4205,7 @@ const deserializeAws_json1_0RuleOptions = (output: any, context: __SerdeContext) } return deserializeAws_json1_0RuleOption(entry, context); }); + return retVal; }; const deserializeAws_json1_0RulesSource = (output: any, context: __SerdeContext): RulesSource => { @@ -4230,7 +4241,7 @@ const deserializeAws_json1_0RulesSourceList = (output: any, context: __SerdeCont }; const deserializeAws_json1_0RuleTargets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4238,6 +4249,7 @@ const deserializeAws_json1_0RuleTargets = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0RuleVariables = (output: any, context: __SerdeContext): RuleVariables => { @@ -4254,7 +4266,7 @@ const deserializeAws_json1_0RuleVariables = (output: any, context: __SerdeContex }; const deserializeAws_json1_0Settings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4262,10 +4274,11 @@ const deserializeAws_json1_0Settings = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0StatefulActions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4273,6 +4286,7 @@ const deserializeAws_json1_0StatefulActions = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0StatefulEngineOptions = (output: any, context: __SerdeContext): StatefulEngineOptions => { @@ -4322,7 +4336,7 @@ const deserializeAws_json1_0StatefulRuleGroupReferences = ( output: any, context: __SerdeContext ): StatefulRuleGroupReference[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4330,6 +4344,7 @@ const deserializeAws_json1_0StatefulRuleGroupReferences = ( } return deserializeAws_json1_0StatefulRuleGroupReference(entry, context); }); + return retVal; }; const deserializeAws_json1_0StatefulRuleOptions = (output: any, context: __SerdeContext): StatefulRuleOptions => { @@ -4339,7 +4354,7 @@ const deserializeAws_json1_0StatefulRuleOptions = (output: any, context: __Serde }; const deserializeAws_json1_0StatefulRules = (output: any, context: __SerdeContext): StatefulRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4347,10 +4362,11 @@ const deserializeAws_json1_0StatefulRules = (output: any, context: __SerdeContex } return deserializeAws_json1_0StatefulRule(entry, context); }); + return retVal; }; const deserializeAws_json1_0StatelessActions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4358,6 +4374,7 @@ const deserializeAws_json1_0StatelessActions = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0StatelessRule = (output: any, context: __SerdeContext): StatelessRule => { @@ -4384,7 +4401,7 @@ const deserializeAws_json1_0StatelessRuleGroupReferences = ( output: any, context: __SerdeContext ): StatelessRuleGroupReference[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4392,10 +4409,11 @@ const deserializeAws_json1_0StatelessRuleGroupReferences = ( } return deserializeAws_json1_0StatelessRuleGroupReference(entry, context); }); + return retVal; }; const deserializeAws_json1_0StatelessRules = (output: any, context: __SerdeContext): StatelessRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4403,6 +4421,7 @@ const deserializeAws_json1_0StatelessRules = (output: any, context: __SerdeConte } return deserializeAws_json1_0StatelessRule(entry, context); }); + return retVal; }; const deserializeAws_json1_0StatelessRulesAndCustomActions = ( @@ -4428,7 +4447,7 @@ const deserializeAws_json1_0SubnetMapping = (output: any, context: __SerdeContex }; const deserializeAws_json1_0SubnetMappings = (output: any, context: __SerdeContext): SubnetMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4436,6 +4455,7 @@ const deserializeAws_json1_0SubnetMappings = (output: any, context: __SerdeConte } return deserializeAws_json1_0SubnetMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_0SyncState = (output: any, context: __SerdeContext): SyncState => { @@ -4486,7 +4506,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4494,6 +4514,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -4501,7 +4522,7 @@ const deserializeAws_json1_0TagResourceResponse = (output: any, context: __Serde }; const deserializeAws_json1_0TargetTypes = (output: any, context: __SerdeContext): (TargetType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4509,6 +4530,7 @@ const deserializeAws_json1_0TargetTypes = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0TCPFlagField = (output: any, context: __SerdeContext): TCPFlagField => { @@ -4525,7 +4547,7 @@ const deserializeAws_json1_0TCPFlagField = (output: any, context: __SerdeContext }; const deserializeAws_json1_0TCPFlags = (output: any, context: __SerdeContext): TCPFlagField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4533,6 +4555,7 @@ const deserializeAws_json1_0TCPFlags = (output: any, context: __SerdeContext): T } return deserializeAws_json1_0TCPFlagField(entry, context); }); + return retVal; }; const deserializeAws_json1_0ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { @@ -4643,7 +4666,7 @@ const deserializeAws_json1_0UpdateSubnetChangeProtectionResponse = ( }; const deserializeAws_json1_0VariableDefinitionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4651,6 +4674,7 @@ const deserializeAws_json1_0VariableDefinitionList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-networkmanager/src/protocols/Aws_restJson1.ts b/clients/client-networkmanager/src/protocols/Aws_restJson1.ts index 4333c3c2c33f..458c60db8c5d 100644 --- a/clients/client-networkmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-networkmanager/src/protocols/Aws_restJson1.ts @@ -7976,7 +7976,7 @@ const deserializeAws_restJson1Attachment = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AttachmentList = (output: any, context: __SerdeContext): Attachment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7984,6 +7984,7 @@ const deserializeAws_restJson1AttachmentList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Attachment(entry, context); }); + return retVal; }; const deserializeAws_restJson1AWSLocation = (output: any, context: __SerdeContext): AWSLocation => { @@ -8057,7 +8058,7 @@ const deserializeAws_restJson1ConnectionHealth = (output: any, context: __SerdeC }; const deserializeAws_restJson1ConnectionList = (output: any, context: __SerdeContext): Connection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8065,6 +8066,7 @@ const deserializeAws_restJson1ConnectionList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Connection(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectPeer = (output: any, context: __SerdeContext): ConnectPeer => { @@ -8106,7 +8108,7 @@ const deserializeAws_restJson1ConnectPeerAssociationList = ( output: any, context: __SerdeContext ): ConnectPeerAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8114,6 +8116,7 @@ const deserializeAws_restJson1ConnectPeerAssociationList = ( } return deserializeAws_restJson1ConnectPeerAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectPeerBgpConfiguration = ( @@ -8132,7 +8135,7 @@ const deserializeAws_restJson1ConnectPeerBgpConfigurationList = ( output: any, context: __SerdeContext ): ConnectPeerBgpConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8140,6 +8143,7 @@ const deserializeAws_restJson1ConnectPeerBgpConfigurationList = ( } return deserializeAws_restJson1ConnectPeerBgpConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConnectPeerConfiguration = ( @@ -8180,7 +8184,7 @@ const deserializeAws_restJson1ConnectPeerSummary = (output: any, context: __Serd }; const deserializeAws_restJson1ConnectPeerSummaryList = (output: any, context: __SerdeContext): ConnectPeerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8188,10 +8192,11 @@ const deserializeAws_restJson1ConnectPeerSummaryList = (output: any, context: __ } return deserializeAws_restJson1ConnectPeerSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConstrainedStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8199,6 +8204,7 @@ const deserializeAws_restJson1ConstrainedStringList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CoreNetwork = (output: any, context: __SerdeContext): CoreNetwork => { @@ -8244,7 +8250,7 @@ const deserializeAws_restJson1CoreNetworkChange = (output: any, context: __Serde }; const deserializeAws_restJson1CoreNetworkChangeList = (output: any, context: __SerdeContext): CoreNetworkChange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8252,6 +8258,7 @@ const deserializeAws_restJson1CoreNetworkChangeList = (output: any, context: __S } return deserializeAws_restJson1CoreNetworkChange(entry, context); }); + return retVal; }; const deserializeAws_restJson1CoreNetworkChangeValues = ( @@ -8290,7 +8297,7 @@ const deserializeAws_restJson1CoreNetworkEdge = (output: any, context: __SerdeCo }; const deserializeAws_restJson1CoreNetworkEdgeList = (output: any, context: __SerdeContext): CoreNetworkEdge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8298,6 +8305,7 @@ const deserializeAws_restJson1CoreNetworkEdgeList = (output: any, context: __Ser } return deserializeAws_restJson1CoreNetworkEdge(entry, context); }); + return retVal; }; const deserializeAws_restJson1CoreNetworkPolicy = (output: any, context: __SerdeContext): CoreNetworkPolicy => { @@ -8337,7 +8345,7 @@ const deserializeAws_restJson1CoreNetworkPolicyErrorList = ( output: any, context: __SerdeContext ): CoreNetworkPolicyError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8345,6 +8353,7 @@ const deserializeAws_restJson1CoreNetworkPolicyErrorList = ( } return deserializeAws_restJson1CoreNetworkPolicyError(entry, context); }); + return retVal; }; const deserializeAws_restJson1CoreNetworkPolicyVersion = ( @@ -8368,7 +8377,7 @@ const deserializeAws_restJson1CoreNetworkPolicyVersionList = ( output: any, context: __SerdeContext ): CoreNetworkPolicyVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8376,6 +8385,7 @@ const deserializeAws_restJson1CoreNetworkPolicyVersionList = ( } return deserializeAws_restJson1CoreNetworkPolicyVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1CoreNetworkSegment = (output: any, context: __SerdeContext): CoreNetworkSegment => { @@ -8404,7 +8414,7 @@ const deserializeAws_restJson1CoreNetworkSegmentEdgeIdentifier = ( }; const deserializeAws_restJson1CoreNetworkSegmentList = (output: any, context: __SerdeContext): CoreNetworkSegment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8412,6 +8422,7 @@ const deserializeAws_restJson1CoreNetworkSegmentList = (output: any, context: __ } return deserializeAws_restJson1CoreNetworkSegment(entry, context); }); + return retVal; }; const deserializeAws_restJson1CoreNetworkSummary = (output: any, context: __SerdeContext): CoreNetworkSummary => { @@ -8430,7 +8441,7 @@ const deserializeAws_restJson1CoreNetworkSummary = (output: any, context: __Serd }; const deserializeAws_restJson1CoreNetworkSummaryList = (output: any, context: __SerdeContext): CoreNetworkSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8438,6 +8449,7 @@ const deserializeAws_restJson1CoreNetworkSummaryList = (output: any, context: __ } return deserializeAws_restJson1CoreNetworkSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1CustomerGatewayAssociation = ( @@ -8457,7 +8469,7 @@ const deserializeAws_restJson1CustomerGatewayAssociationList = ( output: any, context: __SerdeContext ): CustomerGatewayAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8465,6 +8477,7 @@ const deserializeAws_restJson1CustomerGatewayAssociationList = ( } return deserializeAws_restJson1CustomerGatewayAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1Device = (output: any, context: __SerdeContext): Device => { @@ -8499,7 +8512,7 @@ const deserializeAws_restJson1Device = (output: any, context: __SerdeContext): D }; const deserializeAws_restJson1DeviceList = (output: any, context: __SerdeContext): Device[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8507,6 +8520,7 @@ const deserializeAws_restJson1DeviceList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Device(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExceptionContextMap = ( @@ -8525,7 +8539,7 @@ const deserializeAws_restJson1ExceptionContextMap = ( }; const deserializeAws_restJson1ExternalRegionCodeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8533,6 +8547,7 @@ const deserializeAws_restJson1ExternalRegionCodeList = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1GlobalNetwork = (output: any, context: __SerdeContext): GlobalNetwork => { @@ -8553,7 +8568,7 @@ const deserializeAws_restJson1GlobalNetwork = (output: any, context: __SerdeCont }; const deserializeAws_restJson1GlobalNetworkList = (output: any, context: __SerdeContext): GlobalNetwork[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8561,6 +8576,7 @@ const deserializeAws_restJson1GlobalNetworkList = (output: any, context: __Serde } return deserializeAws_restJson1GlobalNetwork(entry, context); }); + return retVal; }; const deserializeAws_restJson1Link = (output: any, context: __SerdeContext): Link => { @@ -8598,7 +8614,7 @@ const deserializeAws_restJson1LinkAssociation = (output: any, context: __SerdeCo }; const deserializeAws_restJson1LinkAssociationList = (output: any, context: __SerdeContext): LinkAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8606,10 +8622,11 @@ const deserializeAws_restJson1LinkAssociationList = (output: any, context: __Ser } return deserializeAws_restJson1LinkAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1LinkList = (output: any, context: __SerdeContext): Link[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8617,6 +8634,7 @@ const deserializeAws_restJson1LinkList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Link(entry, context); }); + return retVal; }; const deserializeAws_restJson1Location = (output: any, context: __SerdeContext): Location => { @@ -8663,7 +8681,7 @@ const deserializeAws_restJson1NetworkResourceCountList = ( output: any, context: __SerdeContext ): NetworkResourceCount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8671,10 +8689,11 @@ const deserializeAws_restJson1NetworkResourceCountList = ( } return deserializeAws_restJson1NetworkResourceCount(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkResourceList = (output: any, context: __SerdeContext): NetworkResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8682,6 +8701,7 @@ const deserializeAws_restJson1NetworkResourceList = (output: any, context: __Ser } return deserializeAws_restJson1NetworkResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkResourceMetadataMap = ( @@ -8744,7 +8764,7 @@ const deserializeAws_restJson1NetworkRouteDestinationList = ( output: any, context: __SerdeContext ): NetworkRouteDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8752,10 +8772,11 @@ const deserializeAws_restJson1NetworkRouteDestinationList = ( } return deserializeAws_restJson1NetworkRouteDestination(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkRouteList = (output: any, context: __SerdeContext): NetworkRoute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8763,6 +8784,7 @@ const deserializeAws_restJson1NetworkRouteList = (output: any, context: __SerdeC } return deserializeAws_restJson1NetworkRoute(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkTelemetry = (output: any, context: __SerdeContext): NetworkTelemetry => { @@ -8783,7 +8805,7 @@ const deserializeAws_restJson1NetworkTelemetry = (output: any, context: __SerdeC }; const deserializeAws_restJson1NetworkTelemetryList = (output: any, context: __SerdeContext): NetworkTelemetry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8791,6 +8813,7 @@ const deserializeAws_restJson1NetworkTelemetryList = (output: any, context: __Se } return deserializeAws_restJson1NetworkTelemetry(entry, context); }); + return retVal; }; const deserializeAws_restJson1PathComponent = (output: any, context: __SerdeContext): PathComponent => { @@ -8805,7 +8828,7 @@ const deserializeAws_restJson1PathComponent = (output: any, context: __SerdeCont }; const deserializeAws_restJson1PathComponentList = (output: any, context: __SerdeContext): PathComponent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8813,6 +8836,7 @@ const deserializeAws_restJson1PathComponentList = (output: any, context: __Serde } return deserializeAws_restJson1PathComponent(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProposedSegmentChange = (output: any, context: __SerdeContext): ProposedSegmentChange => { @@ -8846,7 +8870,7 @@ const deserializeAws_restJson1Relationship = (output: any, context: __SerdeConte }; const deserializeAws_restJson1RelationshipList = (output: any, context: __SerdeContext): Relationship[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8854,6 +8878,7 @@ const deserializeAws_restJson1RelationshipList = (output: any, context: __SerdeC } return deserializeAws_restJson1Relationship(entry, context); }); + return retVal; }; const deserializeAws_restJson1RouteAnalysis = (output: any, context: __SerdeContext): RouteAnalysis => { @@ -8948,7 +8973,7 @@ const deserializeAws_restJson1Site = (output: any, context: __SerdeContext): Sit }; const deserializeAws_restJson1SiteList = (output: any, context: __SerdeContext): Site[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8956,6 +8981,7 @@ const deserializeAws_restJson1SiteList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Site(entry, context); }); + return retVal; }; const deserializeAws_restJson1SiteToSiteVpnAttachment = ( @@ -8972,7 +8998,7 @@ const deserializeAws_restJson1SiteToSiteVpnAttachment = ( }; const deserializeAws_restJson1SubnetArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8980,6 +9006,7 @@ const deserializeAws_restJson1SubnetArnList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -8990,7 +9017,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8998,6 +9025,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TransitGatewayConnectPeerAssociation = ( @@ -9017,7 +9045,7 @@ const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = ( output: any, context: __SerdeContext ): TransitGatewayConnectPeerAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9025,6 +9053,7 @@ const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = ( } return deserializeAws_restJson1TransitGatewayConnectPeerAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1TransitGatewayRegistration = ( @@ -9045,7 +9074,7 @@ const deserializeAws_restJson1TransitGatewayRegistrationList = ( output: any, context: __SerdeContext ): TransitGatewayRegistration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9053,6 +9082,7 @@ const deserializeAws_restJson1TransitGatewayRegistrationList = ( } return deserializeAws_restJson1TransitGatewayRegistration(entry, context); }); + return retVal; }; const deserializeAws_restJson1TransitGatewayRegistrationStateReason = ( @@ -9079,7 +9109,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9087,6 +9117,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1VpcAttachment = (output: any, context: __SerdeContext): VpcAttachment => { diff --git a/clients/client-nimble/src/protocols/Aws_restJson1.ts b/clients/client-nimble/src/protocols/Aws_restJson1.ts index b9e78f992c31..c6ce14bb056b 100644 --- a/clients/client-nimble/src/protocols/Aws_restJson1.ts +++ b/clients/client-nimble/src/protocols/Aws_restJson1.ts @@ -5590,7 +5590,7 @@ const deserializeAws_restJson1ActiveDirectoryComputerAttributeList = ( output: any, context: __SerdeContext ): ActiveDirectoryComputerAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5598,6 +5598,7 @@ const deserializeAws_restJson1ActiveDirectoryComputerAttributeList = ( } return deserializeAws_restJson1ActiveDirectoryComputerAttribute(entry, context); }); + return retVal; }; const deserializeAws_restJson1ActiveDirectoryConfiguration = ( @@ -5615,7 +5616,7 @@ const deserializeAws_restJson1ActiveDirectoryConfiguration = ( }; const deserializeAws_restJson1ActiveDirectoryDnsIpAddressList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5623,6 +5624,7 @@ const deserializeAws_restJson1ActiveDirectoryDnsIpAddressList = (output: any, co } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ComputeFarmConfiguration = ( @@ -5636,7 +5638,7 @@ const deserializeAws_restJson1ComputeFarmConfiguration = ( }; const deserializeAws_restJson1EC2SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5644,6 +5646,7 @@ const deserializeAws_restJson1EC2SubnetIdList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Eula = (output: any, context: __SerdeContext): Eula => { @@ -5676,7 +5679,7 @@ const deserializeAws_restJson1EulaAcceptance = (output: any, context: __SerdeCon }; const deserializeAws_restJson1EulaAcceptanceList = (output: any, context: __SerdeContext): EulaAcceptance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5684,10 +5687,11 @@ const deserializeAws_restJson1EulaAcceptanceList = (output: any, context: __Serd } return deserializeAws_restJson1EulaAcceptance(entry, context); }); + return retVal; }; const deserializeAws_restJson1EulaIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5695,10 +5699,11 @@ const deserializeAws_restJson1EulaIdList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EulaList = (output: any, context: __SerdeContext): Eula[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5706,6 +5711,7 @@ const deserializeAws_restJson1EulaList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Eula(entry, context); }); + return retVal; }; const deserializeAws_restJson1ExceptionContext = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -5831,7 +5837,7 @@ const deserializeAws_restJson1LaunchProfileInitializationScriptList = ( output: any, context: __SerdeContext ): LaunchProfileInitializationScript[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5839,10 +5845,11 @@ const deserializeAws_restJson1LaunchProfileInitializationScriptList = ( } return deserializeAws_restJson1LaunchProfileInitializationScript(entry, context); }); + return retVal; }; const deserializeAws_restJson1LaunchProfileList = (output: any, context: __SerdeContext): LaunchProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5850,6 +5857,7 @@ const deserializeAws_restJson1LaunchProfileList = (output: any, context: __Serde } return deserializeAws_restJson1LaunchProfile(entry, context); }); + return retVal; }; const deserializeAws_restJson1LaunchProfileMembership = ( @@ -5868,7 +5876,7 @@ const deserializeAws_restJson1LaunchProfileMembershipList = ( output: any, context: __SerdeContext ): LaunchProfileMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5876,10 +5884,11 @@ const deserializeAws_restJson1LaunchProfileMembershipList = ( } return deserializeAws_restJson1LaunchProfileMembership(entry, context); }); + return retVal; }; const deserializeAws_restJson1LaunchProfileProtocolVersionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5887,10 +5896,11 @@ const deserializeAws_restJson1LaunchProfileProtocolVersionList = (output: any, c } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LaunchProfileSecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5898,10 +5908,11 @@ const deserializeAws_restJson1LaunchProfileSecurityGroupIdList = (output: any, c } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LaunchProfileStudioComponentIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5909,6 +5920,7 @@ const deserializeAws_restJson1LaunchProfileStudioComponentIdList = (output: any, } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LicenseServiceConfiguration = ( @@ -6017,7 +6029,7 @@ const deserializeAws_restJson1StreamingImageEncryptionConfiguration = ( }; const deserializeAws_restJson1StreamingImageIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6025,10 +6037,11 @@ const deserializeAws_restJson1StreamingImageIdList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StreamingImageList = (output: any, context: __SerdeContext): StreamingImage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6036,13 +6049,14 @@ const deserializeAws_restJson1StreamingImageList = (output: any, context: __Serd } return deserializeAws_restJson1StreamingImage(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamingInstanceTypeList = ( output: any, context: __SerdeContext ): (StreamingInstanceType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6050,6 +6064,7 @@ const deserializeAws_restJson1StreamingInstanceTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StreamingSession = (output: any, context: __SerdeContext): StreamingSession => { @@ -6099,7 +6114,7 @@ const deserializeAws_restJson1StreamingSession = (output: any, context: __SerdeC }; const deserializeAws_restJson1StreamingSessionList = (output: any, context: __SerdeContext): StreamingSession[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6107,13 +6122,14 @@ const deserializeAws_restJson1StreamingSessionList = (output: any, context: __Se } return deserializeAws_restJson1StreamingSession(entry, context); }); + return retVal; }; const deserializeAws_restJson1StreamingSessionStorageModeList = ( output: any, context: __SerdeContext ): (StreamingSessionStorageMode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6121,6 +6137,7 @@ const deserializeAws_restJson1StreamingSessionStorageModeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StreamingSessionStorageRoot = ( @@ -6272,7 +6289,7 @@ const deserializeAws_restJson1StudioComponentInitializationScriptList = ( output: any, context: __SerdeContext ): StudioComponentInitializationScript[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6280,10 +6297,11 @@ const deserializeAws_restJson1StudioComponentInitializationScriptList = ( } return deserializeAws_restJson1StudioComponentInitializationScript(entry, context); }); + return retVal; }; const deserializeAws_restJson1StudioComponentList = (output: any, context: __SerdeContext): StudioComponent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6291,13 +6309,14 @@ const deserializeAws_restJson1StudioComponentList = (output: any, context: __Ser } return deserializeAws_restJson1StudioComponent(entry, context); }); + return retVal; }; const deserializeAws_restJson1StudioComponentScriptParameterKeyValueList = ( output: any, context: __SerdeContext ): ScriptParameterKeyValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6305,10 +6324,11 @@ const deserializeAws_restJson1StudioComponentScriptParameterKeyValueList = ( } return deserializeAws_restJson1ScriptParameterKeyValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1StudioComponentSecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6316,6 +6336,7 @@ const deserializeAws_restJson1StudioComponentSecurityGroupIdList = (output: any, } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StudioComponentSummary = ( @@ -6345,7 +6366,7 @@ const deserializeAws_restJson1StudioComponentSummaryList = ( output: any, context: __SerdeContext ): StudioComponentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6353,6 +6374,7 @@ const deserializeAws_restJson1StudioComponentSummaryList = ( } return deserializeAws_restJson1StudioComponentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1StudioEncryptionConfiguration = ( @@ -6366,7 +6388,7 @@ const deserializeAws_restJson1StudioEncryptionConfiguration = ( }; const deserializeAws_restJson1StudioList = (output: any, context: __SerdeContext): Studio[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6374,6 +6396,7 @@ const deserializeAws_restJson1StudioList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Studio(entry, context); }); + return retVal; }; const deserializeAws_restJson1StudioMembership = (output: any, context: __SerdeContext): StudioMembership => { @@ -6386,7 +6409,7 @@ const deserializeAws_restJson1StudioMembership = (output: any, context: __SerdeC }; const deserializeAws_restJson1StudioMembershipList = (output: any, context: __SerdeContext): StudioMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6394,6 +6417,7 @@ const deserializeAws_restJson1StudioMembershipList = (output: any, context: __Se } return deserializeAws_restJson1StudioMembership(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -6418,7 +6442,7 @@ const deserializeAws_restJson1ValidationResult = (output: any, context: __SerdeC }; const deserializeAws_restJson1ValidationResults = (output: any, context: __SerdeContext): ValidationResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6426,6 +6450,7 @@ const deserializeAws_restJson1ValidationResults = (output: any, context: __Serde } return deserializeAws_restJson1ValidationResult(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-opensearch/src/protocols/Aws_restJson1.ts b/clients/client-opensearch/src/protocols/Aws_restJson1.ts index 3664625f53b9..107efdfedaca 100644 --- a/clients/client-opensearch/src/protocols/Aws_restJson1.ts +++ b/clients/client-opensearch/src/protocols/Aws_restJson1.ts @@ -4408,7 +4408,7 @@ const deserializeAws_restJson1AdditionalLimit = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AdditionalLimitList = (output: any, context: __SerdeContext): AdditionalLimit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4416,6 +4416,7 @@ const deserializeAws_restJson1AdditionalLimitList = (output: any, context: __Ser } return deserializeAws_restJson1AdditionalLimit(entry, context); }); + return retVal; }; const deserializeAws_restJson1AdvancedOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4498,7 +4499,7 @@ const deserializeAws_restJson1AutoTuneDetails = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AutoTuneList = (output: any, context: __SerdeContext): AutoTune[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4506,6 +4507,7 @@ const deserializeAws_restJson1AutoTuneList = (output: any, context: __SerdeConte } return deserializeAws_restJson1AutoTune(entry, context); }); + return retVal; }; const deserializeAws_restJson1AutoTuneMaintenanceSchedule = ( @@ -4529,7 +4531,7 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = ( output: any, context: __SerdeContext ): AutoTuneMaintenanceSchedule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4537,6 +4539,7 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = ( } return deserializeAws_restJson1AutoTuneMaintenanceSchedule(entry, context); }); + return retVal; }; const deserializeAws_restJson1AutoTuneOptions = (output: any, context: __SerdeContext): AutoTuneOptions => { @@ -4618,7 +4621,7 @@ const deserializeAws_restJson1ChangeProgressStageList = ( output: any, context: __SerdeContext ): ChangeProgressStage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4626,6 +4629,7 @@ const deserializeAws_restJson1ChangeProgressStageList = ( } return deserializeAws_restJson1ChangeProgressStage(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChangeProgressStatusDetails = ( @@ -4722,7 +4726,7 @@ const deserializeAws_restJson1CompatibleVersionsList = ( output: any, context: __SerdeContext ): CompatibleVersionsMap[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4730,6 +4734,7 @@ const deserializeAws_restJson1CompatibleVersionsList = ( } return deserializeAws_restJson1CompatibleVersionsMap(entry, context); }); + return retVal; }; const deserializeAws_restJson1CompatibleVersionsMap = (output: any, context: __SerdeContext): CompatibleVersionsMap => { @@ -4841,7 +4846,7 @@ const deserializeAws_restJson1DomainInfo = (output: any, context: __SerdeContext }; const deserializeAws_restJson1DomainInfoList = (output: any, context: __SerdeContext): DomainInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4849,6 +4854,7 @@ const deserializeAws_restJson1DomainInfoList = (output: any, context: __SerdeCon } return deserializeAws_restJson1DomainInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainInformationContainer = ( @@ -4887,7 +4893,7 @@ const deserializeAws_restJson1DomainPackageDetailsList = ( output: any, context: __SerdeContext ): DomainPackageDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4895,6 +4901,7 @@ const deserializeAws_restJson1DomainPackageDetailsList = ( } return deserializeAws_restJson1DomainPackageDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainStatus = (output: any, context: __SerdeContext): DomainStatus => { @@ -4973,7 +4980,7 @@ const deserializeAws_restJson1DomainStatus = (output: any, context: __SerdeConte }; const deserializeAws_restJson1DomainStatusList = (output: any, context: __SerdeContext): DomainStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4981,6 +4988,7 @@ const deserializeAws_restJson1DomainStatusList = (output: any, context: __SerdeC } return deserializeAws_restJson1DomainStatus(entry, context); }); + return retVal; }; const deserializeAws_restJson1DryRunResults = (output: any, context: __SerdeContext): DryRunResults => { @@ -5083,7 +5091,7 @@ const deserializeAws_restJson1InboundConnection = (output: any, context: __Serde }; const deserializeAws_restJson1InboundConnections = (output: any, context: __SerdeContext): InboundConnection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5091,6 +5099,7 @@ const deserializeAws_restJson1InboundConnections = (output: any, context: __Serd } return deserializeAws_restJson1InboundConnection(entry, context); }); + return retVal; }; const deserializeAws_restJson1InboundConnectionStatus = ( @@ -5120,7 +5129,7 @@ const deserializeAws_restJson1InstanceLimits = (output: any, context: __SerdeCon }; const deserializeAws_restJson1InstanceRoleList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5128,6 +5137,7 @@ const deserializeAws_restJson1InstanceRoleList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1InstanceTypeDetails = (output: any, context: __SerdeContext): InstanceTypeDetails => { @@ -5149,7 +5159,7 @@ const deserializeAws_restJson1InstanceTypeDetailsList = ( output: any, context: __SerdeContext ): InstanceTypeDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5157,10 +5167,11 @@ const deserializeAws_restJson1InstanceTypeDetailsList = ( } return deserializeAws_restJson1InstanceTypeDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1Issues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5168,6 +5179,7 @@ const deserializeAws_restJson1Issues = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Limits = (output: any, context: __SerdeContext): Limits => { @@ -5200,7 +5212,7 @@ const deserializeAws_restJson1LimitsByRole = (output: any, context: __SerdeConte }; const deserializeAws_restJson1LimitValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5208,6 +5220,7 @@ const deserializeAws_restJson1LimitValueList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LogPublishingOption = (output: any, context: __SerdeContext): LogPublishingOption => { @@ -5312,7 +5325,7 @@ const deserializeAws_restJson1OutboundConnection = (output: any, context: __Serd }; const deserializeAws_restJson1OutboundConnections = (output: any, context: __SerdeContext): OutboundConnection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5320,6 +5333,7 @@ const deserializeAws_restJson1OutboundConnections = (output: any, context: __Ser } return deserializeAws_restJson1OutboundConnection(entry, context); }); + return retVal; }; const deserializeAws_restJson1OutboundConnectionStatus = ( @@ -5356,7 +5370,7 @@ const deserializeAws_restJson1PackageDetails = (output: any, context: __SerdeCon }; const deserializeAws_restJson1PackageDetailsList = (output: any, context: __SerdeContext): PackageDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5364,6 +5378,7 @@ const deserializeAws_restJson1PackageDetailsList = (output: any, context: __Serd } return deserializeAws_restJson1PackageDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageVersionHistory = (output: any, context: __SerdeContext): PackageVersionHistory => { @@ -5381,7 +5396,7 @@ const deserializeAws_restJson1PackageVersionHistoryList = ( output: any, context: __SerdeContext ): PackageVersionHistory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5389,6 +5404,7 @@ const deserializeAws_restJson1PackageVersionHistoryList = ( } return deserializeAws_restJson1PackageVersionHistory(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecurringCharge = (output: any, context: __SerdeContext): RecurringCharge => { @@ -5399,7 +5415,7 @@ const deserializeAws_restJson1RecurringCharge = (output: any, context: __SerdeCo }; const deserializeAws_restJson1RecurringChargeList = (output: any, context: __SerdeContext): RecurringCharge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5407,6 +5423,7 @@ const deserializeAws_restJson1RecurringChargeList = (output: any, context: __Ser } return deserializeAws_restJson1RecurringCharge(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReservedInstance = (output: any, context: __SerdeContext): ReservedInstance => { @@ -5435,7 +5452,7 @@ const deserializeAws_restJson1ReservedInstance = (output: any, context: __SerdeC }; const deserializeAws_restJson1ReservedInstanceList = (output: any, context: __SerdeContext): ReservedInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5443,6 +5460,7 @@ const deserializeAws_restJson1ReservedInstanceList = (output: any, context: __Se } return deserializeAws_restJson1ReservedInstance(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReservedInstanceOffering = ( @@ -5468,7 +5486,7 @@ const deserializeAws_restJson1ReservedInstanceOfferingList = ( output: any, context: __SerdeContext ): ReservedInstanceOffering[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5476,6 +5494,7 @@ const deserializeAws_restJson1ReservedInstanceOfferingList = ( } return deserializeAws_restJson1ReservedInstanceOffering(entry, context); }); + return retVal; }; const deserializeAws_restJson1SAMLIdp = (output: any, context: __SerdeContext): SAMLIdp => { @@ -5573,7 +5592,7 @@ const deserializeAws_restJson1StorageTypeLimit = (output: any, context: __SerdeC }; const deserializeAws_restJson1StorageTypeLimitList = (output: any, context: __SerdeContext): StorageTypeLimit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5581,10 +5600,11 @@ const deserializeAws_restJson1StorageTypeLimitList = (output: any, context: __Se } return deserializeAws_restJson1StorageTypeLimit(entry, context); }); + return retVal; }; const deserializeAws_restJson1StorageTypeList = (output: any, context: __SerdeContext): StorageType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5592,10 +5612,11 @@ const deserializeAws_restJson1StorageTypeList = (output: any, context: __SerdeCo } return deserializeAws_restJson1StorageType(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5603,6 +5624,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -5613,7 +5635,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5621,6 +5643,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1UpgradeHistory = (output: any, context: __SerdeContext): UpgradeHistory => { @@ -5639,7 +5662,7 @@ const deserializeAws_restJson1UpgradeHistory = (output: any, context: __SerdeCon }; const deserializeAws_restJson1UpgradeHistoryList = (output: any, context: __SerdeContext): UpgradeHistory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5647,6 +5670,7 @@ const deserializeAws_restJson1UpgradeHistoryList = (output: any, context: __Serd } return deserializeAws_restJson1UpgradeHistory(entry, context); }); + return retVal; }; const deserializeAws_restJson1UpgradeStepItem = (output: any, context: __SerdeContext): UpgradeStepItem => { @@ -5662,7 +5686,7 @@ const deserializeAws_restJson1UpgradeStepItem = (output: any, context: __SerdeCo }; const deserializeAws_restJson1UpgradeStepsList = (output: any, context: __SerdeContext): UpgradeStepItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5670,10 +5694,11 @@ const deserializeAws_restJson1UpgradeStepsList = (output: any, context: __SerdeC } return deserializeAws_restJson1UpgradeStepItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1VersionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5681,6 +5706,7 @@ const deserializeAws_restJson1VersionList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1VersionStatus = (output: any, context: __SerdeContext): VersionStatus => { diff --git a/clients/client-opsworks/src/protocols/Aws_json1_1.ts b/clients/client-opsworks/src/protocols/Aws_json1_1.ts index 73ee2c632877..48468190116c 100644 --- a/clients/client-opsworks/src/protocols/Aws_json1_1.ts +++ b/clients/client-opsworks/src/protocols/Aws_json1_1.ts @@ -5908,7 +5908,7 @@ const deserializeAws_json1_1AgentVersion = (output: any, context: __SerdeContext }; const deserializeAws_json1_1AgentVersions = (output: any, context: __SerdeContext): AgentVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5916,6 +5916,7 @@ const deserializeAws_json1_1AgentVersions = (output: any, context: __SerdeContex } return deserializeAws_json1_1AgentVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1App = (output: any, context: __SerdeContext): App => { @@ -5971,7 +5972,7 @@ const deserializeAws_json1_1AppAttributes = (output: any, context: __SerdeContex }; const deserializeAws_json1_1Apps = (output: any, context: __SerdeContext): App[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5979,6 +5980,7 @@ const deserializeAws_json1_1Apps = (output: any, context: __SerdeContext): App[] } return deserializeAws_json1_1App(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoScalingThresholds = (output: any, context: __SerdeContext): AutoScalingThresholds => { @@ -6009,7 +6011,7 @@ const deserializeAws_json1_1BlockDeviceMapping = (output: any, context: __SerdeC }; const deserializeAws_json1_1BlockDeviceMappings = (output: any, context: __SerdeContext): BlockDeviceMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6017,6 +6019,7 @@ const deserializeAws_json1_1BlockDeviceMappings = (output: any, context: __Serde } return deserializeAws_json1_1BlockDeviceMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1ChefConfiguration = (output: any, context: __SerdeContext): ChefConfiguration => { @@ -6068,7 +6071,7 @@ const deserializeAws_json1_1CloudWatchLogsLogStreams = ( output: any, context: __SerdeContext ): CloudWatchLogsLogStream[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6076,6 +6079,7 @@ const deserializeAws_json1_1CloudWatchLogsLogStreams = ( } return deserializeAws_json1_1CloudWatchLogsLogStream(entry, context); }); + return retVal; }; const deserializeAws_json1_1Command = (output: any, context: __SerdeContext): Command => { @@ -6094,7 +6098,7 @@ const deserializeAws_json1_1Command = (output: any, context: __SerdeContext): Co }; const deserializeAws_json1_1Commands = (output: any, context: __SerdeContext): Command[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6102,6 +6106,7 @@ const deserializeAws_json1_1Commands = (output: any, context: __SerdeContext): C } return deserializeAws_json1_1Command(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateAppResult = (output: any, context: __SerdeContext): CreateAppResult => { @@ -6167,7 +6172,7 @@ const deserializeAws_json1_1DataSource = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1DataSources = (output: any, context: __SerdeContext): DataSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6175,6 +6180,7 @@ const deserializeAws_json1_1DataSources = (output: any, context: __SerdeContext) } return deserializeAws_json1_1DataSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1Deployment = (output: any, context: __SerdeContext): Deployment => { @@ -6226,7 +6232,7 @@ const deserializeAws_json1_1DeploymentCommandArgs = ( }; const deserializeAws_json1_1Deployments = (output: any, context: __SerdeContext): Deployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6234,6 +6240,7 @@ const deserializeAws_json1_1Deployments = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Deployment(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeAgentVersionsResult = ( @@ -6505,7 +6512,7 @@ const deserializeAws_json1_1EcsCluster = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1EcsClusters = (output: any, context: __SerdeContext): EcsCluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6513,6 +6520,7 @@ const deserializeAws_json1_1EcsClusters = (output: any, context: __SerdeContext) } return deserializeAws_json1_1EcsCluster(entry, context); }); + return retVal; }; const deserializeAws_json1_1ElasticIp = (output: any, context: __SerdeContext): ElasticIp => { @@ -6526,7 +6534,7 @@ const deserializeAws_json1_1ElasticIp = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ElasticIps = (output: any, context: __SerdeContext): ElasticIp[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6534,6 +6542,7 @@ const deserializeAws_json1_1ElasticIps = (output: any, context: __SerdeContext): } return deserializeAws_json1_1ElasticIp(entry, context); }); + return retVal; }; const deserializeAws_json1_1ElasticLoadBalancer = (output: any, context: __SerdeContext): ElasticLoadBalancer => { @@ -6560,7 +6569,7 @@ const deserializeAws_json1_1ElasticLoadBalancer = (output: any, context: __Serde }; const deserializeAws_json1_1ElasticLoadBalancers = (output: any, context: __SerdeContext): ElasticLoadBalancer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6568,6 +6577,7 @@ const deserializeAws_json1_1ElasticLoadBalancers = (output: any, context: __Serd } return deserializeAws_json1_1ElasticLoadBalancer(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnvironmentVariable = (output: any, context: __SerdeContext): EnvironmentVariable => { @@ -6579,7 +6589,7 @@ const deserializeAws_json1_1EnvironmentVariable = (output: any, context: __Serde }; const deserializeAws_json1_1EnvironmentVariables = (output: any, context: __SerdeContext): EnvironmentVariable[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6587,6 +6597,7 @@ const deserializeAws_json1_1EnvironmentVariables = (output: any, context: __Serd } return deserializeAws_json1_1EnvironmentVariable(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetHostnameSuggestionResult = ( @@ -6667,7 +6678,7 @@ const deserializeAws_json1_1Instance = (output: any, context: __SerdeContext): I }; const deserializeAws_json1_1Instances = (output: any, context: __SerdeContext): Instance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6675,6 +6686,7 @@ const deserializeAws_json1_1Instances = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Instance(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstancesCount = (output: any, context: __SerdeContext): InstancesCount => { @@ -6773,7 +6785,7 @@ const deserializeAws_json1_1LayerAttributes = (output: any, context: __SerdeCont }; const deserializeAws_json1_1Layers = (output: any, context: __SerdeContext): Layer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6781,6 +6793,7 @@ const deserializeAws_json1_1Layers = (output: any, context: __SerdeContext): Lay } return deserializeAws_json1_1Layer(entry, context); }); + return retVal; }; const deserializeAws_json1_1LifecycleEventConfiguration = ( @@ -6825,7 +6838,7 @@ const deserializeAws_json1_1LoadBasedAutoScalingConfigurations = ( output: any, context: __SerdeContext ): LoadBasedAutoScalingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6833,6 +6846,7 @@ const deserializeAws_json1_1LoadBasedAutoScalingConfigurations = ( } return deserializeAws_json1_1LoadBasedAutoScalingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1OperatingSystem = (output: any, context: __SerdeContext): OperatingSystem => { @@ -6864,7 +6878,7 @@ const deserializeAws_json1_1OperatingSystemConfigurationManagers = ( output: any, context: __SerdeContext ): OperatingSystemConfigurationManager[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6872,10 +6886,11 @@ const deserializeAws_json1_1OperatingSystemConfigurationManagers = ( } return deserializeAws_json1_1OperatingSystemConfigurationManager(entry, context); }); + return retVal; }; const deserializeAws_json1_1OperatingSystems = (output: any, context: __SerdeContext): OperatingSystem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6883,6 +6898,7 @@ const deserializeAws_json1_1OperatingSystems = (output: any, context: __SerdeCon } return deserializeAws_json1_1OperatingSystem(entry, context); }); + return retVal; }; const deserializeAws_json1_1Parameters = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -6908,7 +6924,7 @@ const deserializeAws_json1_1Permission = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Permissions = (output: any, context: __SerdeContext): Permission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6916,6 +6932,7 @@ const deserializeAws_json1_1Permissions = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Permission(entry, context); }); + return retVal; }; const deserializeAws_json1_1RaidArray = (output: any, context: __SerdeContext): RaidArray => { @@ -6937,7 +6954,7 @@ const deserializeAws_json1_1RaidArray = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1RaidArrays = (output: any, context: __SerdeContext): RaidArray[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6945,6 +6962,7 @@ const deserializeAws_json1_1RaidArrays = (output: any, context: __SerdeContext): } return deserializeAws_json1_1RaidArray(entry, context); }); + return retVal; }; const deserializeAws_json1_1RdsDbInstance = (output: any, context: __SerdeContext): RdsDbInstance => { @@ -6962,7 +6980,7 @@ const deserializeAws_json1_1RdsDbInstance = (output: any, context: __SerdeContex }; const deserializeAws_json1_1RdsDbInstances = (output: any, context: __SerdeContext): RdsDbInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6970,6 +6988,7 @@ const deserializeAws_json1_1RdsDbInstances = (output: any, context: __SerdeConte } return deserializeAws_json1_1RdsDbInstance(entry, context); }); + return retVal; }; const deserializeAws_json1_1Recipes = (output: any, context: __SerdeContext): Recipes => { @@ -7065,7 +7084,7 @@ const deserializeAws_json1_1ServiceError = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ServiceErrors = (output: any, context: __SerdeContext): ServiceError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7073,6 +7092,7 @@ const deserializeAws_json1_1ServiceErrors = (output: any, context: __SerdeContex } return deserializeAws_json1_1ServiceError(entry, context); }); + return retVal; }; const deserializeAws_json1_1ShutdownEventConfiguration = ( @@ -7169,7 +7189,7 @@ const deserializeAws_json1_1StackConfigurationManager = ( }; const deserializeAws_json1_1Stacks = (output: any, context: __SerdeContext): Stack[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7177,6 +7197,7 @@ const deserializeAws_json1_1Stacks = (output: any, context: __SerdeContext): Sta } return deserializeAws_json1_1Stack(entry, context); }); + return retVal; }; const deserializeAws_json1_1StackSummary = (output: any, context: __SerdeContext): StackSummary => { @@ -7194,7 +7215,7 @@ const deserializeAws_json1_1StackSummary = (output: any, context: __SerdeContext }; const deserializeAws_json1_1Strings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7202,6 +7223,7 @@ const deserializeAws_json1_1Strings = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -7242,7 +7264,7 @@ const deserializeAws_json1_1TimeBasedAutoScalingConfigurations = ( output: any, context: __SerdeContext ): TimeBasedAutoScalingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7250,6 +7272,7 @@ const deserializeAws_json1_1TimeBasedAutoScalingConfigurations = ( } return deserializeAws_json1_1TimeBasedAutoScalingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserProfile = (output: any, context: __SerdeContext): UserProfile => { @@ -7263,7 +7286,7 @@ const deserializeAws_json1_1UserProfile = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1UserProfiles = (output: any, context: __SerdeContext): UserProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7271,6 +7294,7 @@ const deserializeAws_json1_1UserProfiles = (output: any, context: __SerdeContext } return deserializeAws_json1_1UserProfile(entry, context); }); + return retVal; }; const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => { @@ -7311,7 +7335,7 @@ const deserializeAws_json1_1VolumeConfiguration = (output: any, context: __Serde }; const deserializeAws_json1_1VolumeConfigurations = (output: any, context: __SerdeContext): VolumeConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7319,10 +7343,11 @@ const deserializeAws_json1_1VolumeConfigurations = (output: any, context: __Serd } return deserializeAws_json1_1VolumeConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1Volumes = (output: any, context: __SerdeContext): Volume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7330,6 +7355,7 @@ const deserializeAws_json1_1Volumes = (output: any, context: __SerdeContext): Vo } return deserializeAws_json1_1Volume(entry, context); }); + return retVal; }; const deserializeAws_json1_1WeeklyAutoScalingSchedule = ( diff --git a/clients/client-opsworkscm/src/protocols/Aws_json1_1.ts b/clients/client-opsworkscm/src/protocols/Aws_json1_1.ts index acf807b8865e..358de2c19aec 100644 --- a/clients/client-opsworkscm/src/protocols/Aws_json1_1.ts +++ b/clients/client-opsworkscm/src/protocols/Aws_json1_1.ts @@ -1630,7 +1630,7 @@ const deserializeAws_json1_1AccountAttribute = (output: any, context: __SerdeCon }; const deserializeAws_json1_1AccountAttributes = (output: any, context: __SerdeContext): AccountAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1638,6 +1638,7 @@ const deserializeAws_json1_1AccountAttributes = (output: any, context: __SerdeCo } return deserializeAws_json1_1AccountAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociateNodeResponse = (output: any, context: __SerdeContext): AssociateNodeResponse => { @@ -1685,7 +1686,7 @@ const deserializeAws_json1_1Backup = (output: any, context: __SerdeContext): Bac }; const deserializeAws_json1_1Backups = (output: any, context: __SerdeContext): Backup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1693,6 +1694,7 @@ const deserializeAws_json1_1Backups = (output: any, context: __SerdeContext): Ba } return deserializeAws_json1_1Backup(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateBackupResponse = (output: any, context: __SerdeContext): CreateBackupResponse => { @@ -1799,7 +1801,7 @@ const deserializeAws_json1_1EngineAttribute = (output: any, context: __SerdeCont }; const deserializeAws_json1_1EngineAttributes = (output: any, context: __SerdeContext): EngineAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1807,6 +1809,7 @@ const deserializeAws_json1_1EngineAttributes = (output: any, context: __SerdeCon } return deserializeAws_json1_1EngineAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExportServerEngineAttributeResponse = ( @@ -1937,7 +1940,7 @@ const deserializeAws_json1_1ServerEvent = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ServerEvents = (output: any, context: __SerdeContext): ServerEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1945,10 +1948,11 @@ const deserializeAws_json1_1ServerEvents = (output: any, context: __SerdeContext } return deserializeAws_json1_1ServerEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_1Servers = (output: any, context: __SerdeContext): Server[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1956,6 +1960,7 @@ const deserializeAws_json1_1Servers = (output: any, context: __SerdeContext): Se } return deserializeAws_json1_1Server(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartMaintenanceResponse = ( @@ -1971,7 +1976,7 @@ const deserializeAws_json1_1StartMaintenanceResponse = ( }; const deserializeAws_json1_1Strings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1979,6 +1984,7 @@ const deserializeAws_json1_1Strings = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -1989,7 +1995,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1997,6 +2003,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-organizations/src/protocols/Aws_json1_1.ts b/clients/client-organizations/src/protocols/Aws_json1_1.ts index f1c86821a411..a954a8ba0112 100644 --- a/clients/client-organizations/src/protocols/Aws_json1_1.ts +++ b/clients/client-organizations/src/protocols/Aws_json1_1.ts @@ -5338,7 +5338,7 @@ const deserializeAws_json1_1AccountOwnerNotVerifiedException = ( }; const deserializeAws_json1_1Accounts = (output: any, context: __SerdeContext): Account[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5346,6 +5346,7 @@ const deserializeAws_json1_1Accounts = (output: any, context: __SerdeContext): A } return deserializeAws_json1_1Account(entry, context); }); + return retVal; }; const deserializeAws_json1_1AlreadyInOrganizationException = ( @@ -5392,7 +5393,7 @@ const deserializeAws_json1_1ChildNotFoundException = (output: any, context: __Se }; const deserializeAws_json1_1Children = (output: any, context: __SerdeContext): Child[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5400,6 +5401,7 @@ const deserializeAws_json1_1Children = (output: any, context: __SerdeContext): C } return deserializeAws_json1_1Child(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConcurrentModificationException = ( @@ -5450,7 +5452,7 @@ const deserializeAws_json1_1CreateAccountStatus = (output: any, context: __Serde }; const deserializeAws_json1_1CreateAccountStatuses = (output: any, context: __SerdeContext): CreateAccountStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5458,6 +5460,7 @@ const deserializeAws_json1_1CreateAccountStatuses = (output: any, context: __Ser } return deserializeAws_json1_1CreateAccountStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateAccountStatusNotFoundException = ( @@ -5549,7 +5552,7 @@ const deserializeAws_json1_1DelegatedAdministrators = ( output: any, context: __SerdeContext ): DelegatedAdministrator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5557,6 +5560,7 @@ const deserializeAws_json1_1DelegatedAdministrators = ( } return deserializeAws_json1_1DelegatedAdministrator(entry, context); }); + return retVal; }; const deserializeAws_json1_1DelegatedService = (output: any, context: __SerdeContext): DelegatedService => { @@ -5570,7 +5574,7 @@ const deserializeAws_json1_1DelegatedService = (output: any, context: __SerdeCon }; const deserializeAws_json1_1DelegatedServices = (output: any, context: __SerdeContext): DelegatedService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5578,6 +5582,7 @@ const deserializeAws_json1_1DelegatedServices = (output: any, context: __SerdeCo } return deserializeAws_json1_1DelegatedService(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeAccountResponse = ( @@ -5775,7 +5780,7 @@ const deserializeAws_json1_1EnabledServicePrincipals = ( output: any, context: __SerdeContext ): EnabledServicePrincipal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5783,6 +5788,7 @@ const deserializeAws_json1_1EnabledServicePrincipals = ( } return deserializeAws_json1_1EnabledServicePrincipal(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnablePolicyTypeResponse = ( @@ -5858,7 +5864,7 @@ const deserializeAws_json1_1HandshakeNotFoundException = ( }; const deserializeAws_json1_1HandshakeParties = (output: any, context: __SerdeContext): HandshakeParty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5866,6 +5872,7 @@ const deserializeAws_json1_1HandshakeParties = (output: any, context: __SerdeCon } return deserializeAws_json1_1HandshakeParty(entry, context); }); + return retVal; }; const deserializeAws_json1_1HandshakeParty = (output: any, context: __SerdeContext): HandshakeParty => { @@ -5887,7 +5894,7 @@ const deserializeAws_json1_1HandshakeResource = (output: any, context: __SerdeCo }; const deserializeAws_json1_1HandshakeResources = (output: any, context: __SerdeContext): HandshakeResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5895,10 +5902,11 @@ const deserializeAws_json1_1HandshakeResources = (output: any, context: __SerdeC } return deserializeAws_json1_1HandshakeResource(entry, context); }); + return retVal; }; const deserializeAws_json1_1Handshakes = (output: any, context: __SerdeContext): Handshake[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5906,6 +5914,7 @@ const deserializeAws_json1_1Handshakes = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Handshake(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidHandshakeTransitionException = ( @@ -6187,7 +6196,7 @@ const deserializeAws_json1_1OrganizationalUnitNotFoundException = ( }; const deserializeAws_json1_1OrganizationalUnits = (output: any, context: __SerdeContext): OrganizationalUnit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6195,6 +6204,7 @@ const deserializeAws_json1_1OrganizationalUnits = (output: any, context: __Serde } return deserializeAws_json1_1OrganizationalUnit(entry, context); }); + return retVal; }; const deserializeAws_json1_1OrganizationNotEmptyException = ( @@ -6223,7 +6233,7 @@ const deserializeAws_json1_1ParentNotFoundException = ( }; const deserializeAws_json1_1Parents = (output: any, context: __SerdeContext): Parent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6231,10 +6241,11 @@ const deserializeAws_json1_1Parents = (output: any, context: __SerdeContext): Pa } return deserializeAws_json1_1Parent(entry, context); }); + return retVal; }; const deserializeAws_json1_1Policies = (output: any, context: __SerdeContext): PolicySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6242,6 +6253,7 @@ const deserializeAws_json1_1Policies = (output: any, context: __SerdeContext): P } return deserializeAws_json1_1PolicySummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1Policy = (output: any, context: __SerdeContext): Policy => { @@ -6299,7 +6311,7 @@ const deserializeAws_json1_1PolicySummary = (output: any, context: __SerdeContex }; const deserializeAws_json1_1PolicyTargets = (output: any, context: __SerdeContext): PolicyTargetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6307,6 +6319,7 @@ const deserializeAws_json1_1PolicyTargets = (output: any, context: __SerdeContex } return deserializeAws_json1_1PolicyTargetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PolicyTargetSummary = (output: any, context: __SerdeContext): PolicyTargetSummary => { @@ -6346,7 +6359,7 @@ const deserializeAws_json1_1PolicyTypeNotEnabledException = ( }; const deserializeAws_json1_1PolicyTypes = (output: any, context: __SerdeContext): PolicyTypeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6354,6 +6367,7 @@ const deserializeAws_json1_1PolicyTypes = (output: any, context: __SerdeContext) } return deserializeAws_json1_1PolicyTypeSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PolicyTypeSummary = (output: any, context: __SerdeContext): PolicyTypeSummary => { @@ -6382,7 +6396,7 @@ const deserializeAws_json1_1RootNotFoundException = (output: any, context: __Ser }; const deserializeAws_json1_1Roots = (output: any, context: __SerdeContext): Root[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6390,6 +6404,7 @@ const deserializeAws_json1_1Roots = (output: any, context: __SerdeContext): Root } return deserializeAws_json1_1Root(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceException = (output: any, context: __SerdeContext): ServiceException => { @@ -6415,7 +6430,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6423,6 +6438,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetNotFoundException = ( diff --git a/clients/client-outposts/src/protocols/Aws_restJson1.ts b/clients/client-outposts/src/protocols/Aws_restJson1.ts index 9e8588c05af7..d49fdb8d9dfe 100644 --- a/clients/client-outposts/src/protocols/Aws_restJson1.ts +++ b/clients/client-outposts/src/protocols/Aws_restJson1.ts @@ -2257,7 +2257,7 @@ const deserializeAws_restJson1CatalogItem = (output: any, context: __SerdeContex }; const deserializeAws_restJson1CatalogItemListDefinition = (output: any, context: __SerdeContext): CatalogItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2265,6 +2265,7 @@ const deserializeAws_restJson1CatalogItemListDefinition = (output: any, context: } return deserializeAws_restJson1CatalogItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1EC2Capacity = (output: any, context: __SerdeContext): EC2Capacity => { @@ -2276,7 +2277,7 @@ const deserializeAws_restJson1EC2Capacity = (output: any, context: __SerdeContex }; const deserializeAws_restJson1EC2CapacityListDefinition = (output: any, context: __SerdeContext): EC2Capacity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2284,6 +2285,7 @@ const deserializeAws_restJson1EC2CapacityListDefinition = (output: any, context: } return deserializeAws_restJson1EC2Capacity(entry, context); }); + return retVal; }; const deserializeAws_restJson1InstanceTypeItem = (output: any, context: __SerdeContext): InstanceTypeItem => { @@ -2296,7 +2298,7 @@ const deserializeAws_restJson1InstanceTypeListDefinition = ( output: any, context: __SerdeContext ): InstanceTypeItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2304,6 +2306,7 @@ const deserializeAws_restJson1InstanceTypeListDefinition = ( } return deserializeAws_restJson1InstanceTypeItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1LineItem = (output: any, context: __SerdeContext): LineItem => { @@ -2316,7 +2319,7 @@ const deserializeAws_restJson1LineItem = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1LineItemListDefinition = (output: any, context: __SerdeContext): LineItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2324,6 +2327,7 @@ const deserializeAws_restJson1LineItemListDefinition = (output: any, context: __ } return deserializeAws_restJson1LineItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1LineItemStatusCounts = ( @@ -2387,7 +2391,7 @@ const deserializeAws_restJson1OrderSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1OrderSummaryListDefinition = (output: any, context: __SerdeContext): OrderSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2395,6 +2399,7 @@ const deserializeAws_restJson1OrderSummaryListDefinition = (output: any, context } return deserializeAws_restJson1OrderSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Outpost = (output: any, context: __SerdeContext): Outpost => { @@ -2418,7 +2423,7 @@ const deserializeAws_restJson1Outpost = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1outpostListDefinition = (output: any, context: __SerdeContext): Outpost[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2426,6 +2431,7 @@ const deserializeAws_restJson1outpostListDefinition = (output: any, context: __S } return deserializeAws_restJson1Outpost(entry, context); }); + return retVal; }; const deserializeAws_restJson1RackPhysicalProperties = ( @@ -2468,7 +2474,7 @@ const deserializeAws_restJson1Site = (output: any, context: __SerdeContext): Sit }; const deserializeAws_restJson1siteListDefinition = (output: any, context: __SerdeContext): Site[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2476,13 +2482,14 @@ const deserializeAws_restJson1siteListDefinition = (output: any, context: __Serd } return deserializeAws_restJson1Site(entry, context); }); + return retVal; }; const deserializeAws_restJson1SupportedStorageList = ( output: any, context: __SerdeContext ): (SupportedStorageEnum | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2490,10 +2497,11 @@ const deserializeAws_restJson1SupportedStorageList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SupportedUplinkGbpsListDefinition = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2501,6 +2509,7 @@ const deserializeAws_restJson1SupportedUplinkGbpsListDefinition = (output: any, } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-panorama/src/protocols/Aws_restJson1.ts b/clients/client-panorama/src/protocols/Aws_restJson1.ts index 3abba7fd82c3..81ff8c25dad7 100644 --- a/clients/client-panorama/src/protocols/Aws_restJson1.ts +++ b/clients/client-panorama/src/protocols/Aws_restJson1.ts @@ -3728,7 +3728,7 @@ const deserializeAws_restJson1ApplicationInstance = (output: any, context: __Ser }; const deserializeAws_restJson1ApplicationInstances = (output: any, context: __SerdeContext): ApplicationInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3736,6 +3736,7 @@ const deserializeAws_restJson1ApplicationInstances = (output: any, context: __Se } return deserializeAws_restJson1ApplicationInstance(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConflictExceptionErrorArgument = ( @@ -3752,7 +3753,7 @@ const deserializeAws_restJson1ConflictExceptionErrorArgumentList = ( output: any, context: __SerdeContext ): ConflictExceptionErrorArgument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3760,6 +3761,7 @@ const deserializeAws_restJson1ConflictExceptionErrorArgumentList = ( } return deserializeAws_restJson1ConflictExceptionErrorArgument(entry, context); }); + return retVal; }; const deserializeAws_restJson1Device = (output: any, context: __SerdeContext): Device => { @@ -3795,7 +3797,7 @@ const deserializeAws_restJson1DeviceJob = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1DeviceJobList = (output: any, context: __SerdeContext): DeviceJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3803,10 +3805,11 @@ const deserializeAws_restJson1DeviceJobList = (output: any, context: __SerdeCont } return deserializeAws_restJson1DeviceJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeviceList = (output: any, context: __SerdeContext): Device[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3814,10 +3817,11 @@ const deserializeAws_restJson1DeviceList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Device(entry, context); }); + return retVal; }; const deserializeAws_restJson1DnsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3825,6 +3829,7 @@ const deserializeAws_restJson1DnsList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EthernetPayload = (output: any, context: __SerdeContext): EthernetPayload => { @@ -3846,7 +3851,7 @@ const deserializeAws_restJson1EthernetStatus = (output: any, context: __SerdeCon }; const deserializeAws_restJson1InputPortList = (output: any, context: __SerdeContext): NodeInputPort[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3854,6 +3859,7 @@ const deserializeAws_restJson1InputPortList = (output: any, context: __SerdeCont } return deserializeAws_restJson1NodeInputPort(entry, context); }); + return retVal; }; const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job => { @@ -3864,7 +3870,7 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job }; const deserializeAws_restJson1JobList = (output: any, context: __SerdeContext): Job[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3872,6 +3878,7 @@ const deserializeAws_restJson1JobList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Job(entry, context); }); + return retVal; }; const deserializeAws_restJson1JobResourceTags = (output: any, context: __SerdeContext): JobResourceTags => { @@ -3885,7 +3892,7 @@ const deserializeAws_restJson1JobResourceTags = (output: any, context: __SerdeCo }; const deserializeAws_restJson1JobTagsList = (output: any, context: __SerdeContext): JobResourceTags[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3893,6 +3900,7 @@ const deserializeAws_restJson1JobTagsList = (output: any, context: __SerdeContex } return deserializeAws_restJson1JobResourceTags(entry, context); }); + return retVal; }; const deserializeAws_restJson1ManifestOverridesPayload = ( @@ -3975,7 +3983,7 @@ const deserializeAws_restJson1NodeFromTemplateJobList = ( output: any, context: __SerdeContext ): NodeFromTemplateJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3983,6 +3991,7 @@ const deserializeAws_restJson1NodeFromTemplateJobList = ( } return deserializeAws_restJson1NodeFromTemplateJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1NodeInputPort = (output: any, context: __SerdeContext): NodeInputPort => { @@ -4008,7 +4017,7 @@ const deserializeAws_restJson1NodeInstance = (output: any, context: __SerdeConte }; const deserializeAws_restJson1NodeInstances = (output: any, context: __SerdeContext): NodeInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4016,6 +4025,7 @@ const deserializeAws_restJson1NodeInstances = (output: any, context: __SerdeCont } return deserializeAws_restJson1NodeInstance(entry, context); }); + return retVal; }; const deserializeAws_restJson1NodeInterface = (output: any, context: __SerdeContext): NodeInterface => { @@ -4040,7 +4050,7 @@ const deserializeAws_restJson1NodeOutputPort = (output: any, context: __SerdeCon }; const deserializeAws_restJson1NodesList = (output: any, context: __SerdeContext): Node[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4048,10 +4058,11 @@ const deserializeAws_restJson1NodesList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Node(entry, context); }); + return retVal; }; const deserializeAws_restJson1OutputPortList = (output: any, context: __SerdeContext): NodeOutputPort[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4059,6 +4070,7 @@ const deserializeAws_restJson1OutputPortList = (output: any, context: __SerdeCon } return deserializeAws_restJson1NodeOutputPort(entry, context); }); + return retVal; }; const deserializeAws_restJson1OutPutS3Location = (output: any, context: __SerdeContext): OutPutS3Location => { @@ -4098,7 +4110,7 @@ const deserializeAws_restJson1PackageImportJobInputConfig = ( }; const deserializeAws_restJson1PackageImportJobList = (output: any, context: __SerdeContext): PackageImportJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4106,6 +4118,7 @@ const deserializeAws_restJson1PackageImportJobList = (output: any, context: __Se } return deserializeAws_restJson1PackageImportJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageImportJobOutput = ( @@ -4136,7 +4149,7 @@ const deserializeAws_restJson1PackageImportJobOutputConfig = ( }; const deserializeAws_restJson1PackageList = (output: any, context: __SerdeContext): PackageListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4144,6 +4157,7 @@ const deserializeAws_restJson1PackageList = (output: any, context: __SerdeContex } return deserializeAws_restJson1PackageListItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageListItem = (output: any, context: __SerdeContext): PackageListItem => { @@ -4171,7 +4185,7 @@ const deserializeAws_restJson1PackageObject = (output: any, context: __SerdeCont }; const deserializeAws_restJson1PackageObjects = (output: any, context: __SerdeContext): PackageObject[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4179,6 +4193,7 @@ const deserializeAws_restJson1PackageObjects = (output: any, context: __SerdeCon } return deserializeAws_restJson1PackageObject(entry, context); }); + return retVal; }; const deserializeAws_restJson1PackageVersionInputConfig = ( @@ -4205,7 +4220,7 @@ const deserializeAws_restJson1PackageVersionOutputConfig = ( }; const deserializeAws_restJson1PrincipalArnsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4213,6 +4228,7 @@ const deserializeAws_restJson1PrincipalArnsList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3Location = (output: any, context: __SerdeContext): S3Location => { @@ -4289,7 +4305,7 @@ const deserializeAws_restJson1ValidationExceptionErrorArgumentList = ( output: any, context: __SerdeContext ): ValidationExceptionErrorArgument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4297,6 +4313,7 @@ const deserializeAws_restJson1ValidationExceptionErrorArgumentList = ( } return deserializeAws_restJson1ValidationExceptionErrorArgument(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValidationExceptionField = ( @@ -4313,7 +4330,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4321,6 +4338,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts b/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts index e1fe2db53da2..707ec3a84a93 100644 --- a/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts @@ -256,7 +256,7 @@ const serializeAws_restJson1InputList = (input: string[], context: __SerdeContex }; const deserializeAws_restJson1ItemList = (output: any, context: __SerdeContext): PredictedItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -264,6 +264,7 @@ const deserializeAws_restJson1ItemList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1PredictedItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1PredictedItem = (output: any, context: __SerdeContext): PredictedItem => { diff --git a/clients/client-personalize/src/protocols/Aws_json1_1.ts b/clients/client-personalize/src/protocols/Aws_json1_1.ts index bb078fba5e69..d46faad2eea5 100644 --- a/clients/client-personalize/src/protocols/Aws_json1_1.ts +++ b/clients/client-personalize/src/protocols/Aws_json1_1.ts @@ -4637,7 +4637,7 @@ const deserializeAws_json1_1AlgorithmImage = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4645,6 +4645,7 @@ const deserializeAws_json1_1ArnList = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AutoMLConfig = (output: any, context: __SerdeContext): AutoMLConfig => { @@ -4730,7 +4731,7 @@ const deserializeAws_json1_1BatchInferenceJobOutput = ( }; const deserializeAws_json1_1BatchInferenceJobs = (output: any, context: __SerdeContext): BatchInferenceJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4738,6 +4739,7 @@ const deserializeAws_json1_1BatchInferenceJobs = (output: any, context: __SerdeC } return deserializeAws_json1_1BatchInferenceJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchInferenceJobSummary = ( @@ -4809,7 +4811,7 @@ const deserializeAws_json1_1BatchSegmentJobOutput = (output: any, context: __Ser }; const deserializeAws_json1_1BatchSegmentJobs = (output: any, context: __SerdeContext): BatchSegmentJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4817,6 +4819,7 @@ const deserializeAws_json1_1BatchSegmentJobs = (output: any, context: __SerdeCon } return deserializeAws_json1_1BatchSegmentJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1BatchSegmentJobSummary = (output: any, context: __SerdeContext): BatchSegmentJobSummary => { @@ -4874,7 +4877,7 @@ const deserializeAws_json1_1CampaignConfig = (output: any, context: __SerdeConte }; const deserializeAws_json1_1Campaigns = (output: any, context: __SerdeContext): CampaignSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4882,6 +4885,7 @@ const deserializeAws_json1_1Campaigns = (output: any, context: __SerdeContext): } return deserializeAws_json1_1CampaignSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1CampaignSummary = (output: any, context: __SerdeContext): CampaignSummary => { @@ -4939,7 +4943,7 @@ const deserializeAws_json1_1CategoricalHyperParameterRanges = ( output: any, context: __SerdeContext ): CategoricalHyperParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4947,10 +4951,11 @@ const deserializeAws_json1_1CategoricalHyperParameterRanges = ( } return deserializeAws_json1_1CategoricalHyperParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1CategoricalValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4958,6 +4963,7 @@ const deserializeAws_json1_1CategoricalValues = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ContinuousHyperParameterRange = ( @@ -4975,7 +4981,7 @@ const deserializeAws_json1_1ContinuousHyperParameterRanges = ( output: any, context: __SerdeContext ): ContinuousHyperParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4983,6 +4989,7 @@ const deserializeAws_json1_1ContinuousHyperParameterRanges = ( } return deserializeAws_json1_1ContinuousHyperParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateBatchInferenceJobResponse = ( @@ -5142,7 +5149,7 @@ const deserializeAws_json1_1DatasetExportJobOutput = (output: any, context: __Se }; const deserializeAws_json1_1DatasetExportJobs = (output: any, context: __SerdeContext): DatasetExportJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5150,6 +5157,7 @@ const deserializeAws_json1_1DatasetExportJobs = (output: any, context: __SerdeCo } return deserializeAws_json1_1DatasetExportJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetExportJobSummary = ( @@ -5193,7 +5201,7 @@ const deserializeAws_json1_1DatasetGroup = (output: any, context: __SerdeContext }; const deserializeAws_json1_1DatasetGroups = (output: any, context: __SerdeContext): DatasetGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5201,6 +5209,7 @@ const deserializeAws_json1_1DatasetGroups = (output: any, context: __SerdeContex } return deserializeAws_json1_1DatasetGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetGroupSummary = (output: any, context: __SerdeContext): DatasetGroupSummary => { @@ -5245,7 +5254,7 @@ const deserializeAws_json1_1DatasetImportJob = (output: any, context: __SerdeCon }; const deserializeAws_json1_1DatasetImportJobs = (output: any, context: __SerdeContext): DatasetImportJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5253,6 +5262,7 @@ const deserializeAws_json1_1DatasetImportJobs = (output: any, context: __SerdeCo } return deserializeAws_json1_1DatasetImportJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetImportJobSummary = ( @@ -5276,7 +5286,7 @@ const deserializeAws_json1_1DatasetImportJobSummary = ( }; const deserializeAws_json1_1Datasets = (output: any, context: __SerdeContext): DatasetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5284,6 +5294,7 @@ const deserializeAws_json1_1Datasets = (output: any, context: __SerdeContext): D } return deserializeAws_json1_1DatasetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetSchema = (output: any, context: __SerdeContext): DatasetSchema => { @@ -5360,7 +5371,7 @@ const deserializeAws_json1_1DefaultCategoricalHyperParameterRanges = ( output: any, context: __SerdeContext ): DefaultCategoricalHyperParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5368,6 +5379,7 @@ const deserializeAws_json1_1DefaultCategoricalHyperParameterRanges = ( } return deserializeAws_json1_1DefaultCategoricalHyperParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1DefaultContinuousHyperParameterRange = ( @@ -5386,7 +5398,7 @@ const deserializeAws_json1_1DefaultContinuousHyperParameterRanges = ( output: any, context: __SerdeContext ): DefaultContinuousHyperParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5394,6 +5406,7 @@ const deserializeAws_json1_1DefaultContinuousHyperParameterRanges = ( } return deserializeAws_json1_1DefaultContinuousHyperParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1DefaultHyperParameterRanges = ( @@ -5432,7 +5445,7 @@ const deserializeAws_json1_1DefaultIntegerHyperParameterRanges = ( output: any, context: __SerdeContext ): DefaultIntegerHyperParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5440,6 +5453,7 @@ const deserializeAws_json1_1DefaultIntegerHyperParameterRanges = ( } return deserializeAws_json1_1DefaultIntegerHyperParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeAlgorithmResponse = ( @@ -5645,7 +5659,7 @@ const deserializeAws_json1_1EventTracker = (output: any, context: __SerdeContext }; const deserializeAws_json1_1EventTrackers = (output: any, context: __SerdeContext): EventTrackerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5653,6 +5667,7 @@ const deserializeAws_json1_1EventTrackers = (output: any, context: __SerdeContex } return deserializeAws_json1_1EventTrackerSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1EventTrackerSummary = (output: any, context: __SerdeContext): EventTrackerSummary => { @@ -5741,7 +5756,7 @@ const deserializeAws_json1_1Filter = (output: any, context: __SerdeContext): Fil }; const deserializeAws_json1_1Filters = (output: any, context: __SerdeContext): FilterSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5749,6 +5764,7 @@ const deserializeAws_json1_1Filters = (output: any, context: __SerdeContext): Fi } return deserializeAws_json1_1FilterSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1FilterSummary = (output: any, context: __SerdeContext): FilterSummary => { @@ -5858,7 +5874,7 @@ const deserializeAws_json1_1IntegerHyperParameterRanges = ( output: any, context: __SerdeContext ): IntegerHyperParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5866,6 +5882,7 @@ const deserializeAws_json1_1IntegerHyperParameterRanges = ( } return deserializeAws_json1_1IntegerHyperParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidInputException = (output: any, context: __SerdeContext): InvalidInputException => { @@ -6093,7 +6110,7 @@ const deserializeAws_json1_1Recipe = (output: any, context: __SerdeContext): Rec }; const deserializeAws_json1_1Recipes = (output: any, context: __SerdeContext): RecipeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6101,6 +6118,7 @@ const deserializeAws_json1_1Recipes = (output: any, context: __SerdeContext): Re } return deserializeAws_json1_1RecipeSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecipeSummary = (output: any, context: __SerdeContext): RecipeSummary => { @@ -6158,7 +6176,7 @@ const deserializeAws_json1_1RecommenderConfig = (output: any, context: __SerdeCo }; const deserializeAws_json1_1Recommenders = (output: any, context: __SerdeContext): RecommenderSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6166,6 +6184,7 @@ const deserializeAws_json1_1Recommenders = (output: any, context: __SerdeContext } return deserializeAws_json1_1RecommenderSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecommenderSummary = (output: any, context: __SerdeContext): RecommenderSummary => { @@ -6256,7 +6275,7 @@ const deserializeAws_json1_1S3DataConfig = (output: any, context: __SerdeContext }; const deserializeAws_json1_1Schemas = (output: any, context: __SerdeContext): DatasetSchemaSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6264,6 +6283,7 @@ const deserializeAws_json1_1Schemas = (output: any, context: __SerdeContext): Da } return deserializeAws_json1_1DatasetSchemaSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1Solution = (output: any, context: __SerdeContext): Solution => { @@ -6326,7 +6346,7 @@ const deserializeAws_json1_1SolutionConfig = (output: any, context: __SerdeConte }; const deserializeAws_json1_1Solutions = (output: any, context: __SerdeContext): SolutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6334,6 +6354,7 @@ const deserializeAws_json1_1Solutions = (output: any, context: __SerdeContext): } return deserializeAws_json1_1SolutionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SolutionSummary = (output: any, context: __SerdeContext): SolutionSummary => { @@ -6385,7 +6406,7 @@ const deserializeAws_json1_1SolutionVersion = (output: any, context: __SerdeCont }; const deserializeAws_json1_1SolutionVersions = (output: any, context: __SerdeContext): SolutionVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6393,6 +6414,7 @@ const deserializeAws_json1_1SolutionVersions = (output: any, context: __SerdeCon } return deserializeAws_json1_1SolutionVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SolutionVersionSummary = (output: any, context: __SerdeContext): SolutionVersionSummary => { diff --git a/clients/client-pi/src/protocols/Aws_json1_1.ts b/clients/client-pi/src/protocols/Aws_json1_1.ts index 979f31de48fd..a4b307bc6d7e 100644 --- a/clients/client-pi/src/protocols/Aws_json1_1.ts +++ b/clients/client-pi/src/protocols/Aws_json1_1.ts @@ -707,7 +707,7 @@ const deserializeAws_json1_1DataPoint = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1DataPointsList = (output: any, context: __SerdeContext): DataPoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -715,6 +715,7 @@ const deserializeAws_json1_1DataPointsList = (output: any, context: __SerdeConte } return deserializeAws_json1_1DataPoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeDimensionKeysResponse = ( @@ -749,7 +750,7 @@ const deserializeAws_json1_1DimensionDetail = (output: any, context: __SerdeCont }; const deserializeAws_json1_1DimensionDetailList = (output: any, context: __SerdeContext): DimensionDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -757,6 +758,7 @@ const deserializeAws_json1_1DimensionDetailList = (output: any, context: __Serde } return deserializeAws_json1_1DimensionDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1DimensionGroupDetail = (output: any, context: __SerdeContext): DimensionGroupDetail => { @@ -773,7 +775,7 @@ const deserializeAws_json1_1DimensionGroupDetailList = ( output: any, context: __SerdeContext ): DimensionGroupDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -781,6 +783,7 @@ const deserializeAws_json1_1DimensionGroupDetailList = ( } return deserializeAws_json1_1DimensionGroupDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1DimensionKeyDescription = ( @@ -808,7 +811,7 @@ const deserializeAws_json1_1DimensionKeyDescriptionList = ( output: any, context: __SerdeContext ): DimensionKeyDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -816,6 +819,7 @@ const deserializeAws_json1_1DimensionKeyDescriptionList = ( } return deserializeAws_json1_1DimensionKeyDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1DimensionKeyDetail = (output: any, context: __SerdeContext): DimensionKeyDetail => { @@ -827,7 +831,7 @@ const deserializeAws_json1_1DimensionKeyDetail = (output: any, context: __SerdeC }; const deserializeAws_json1_1DimensionKeyDetailList = (output: any, context: __SerdeContext): DimensionKeyDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -835,6 +839,7 @@ const deserializeAws_json1_1DimensionKeyDetailList = (output: any, context: __Se } return deserializeAws_json1_1DimensionKeyDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1DimensionMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -969,7 +974,7 @@ const deserializeAws_json1_1MetricDimensionGroups = (output: any, context: __Ser }; const deserializeAws_json1_1MetricDimensionsList = (output: any, context: __SerdeContext): MetricDimensionGroups[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -977,6 +982,7 @@ const deserializeAws_json1_1MetricDimensionsList = (output: any, context: __Serd } return deserializeAws_json1_1MetricDimensionGroups(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetricKeyDataPoints = (output: any, context: __SerdeContext): MetricKeyDataPoints => { @@ -993,7 +999,7 @@ const deserializeAws_json1_1MetricKeyDataPoints = (output: any, context: __Serde }; const deserializeAws_json1_1MetricKeyDataPointsList = (output: any, context: __SerdeContext): MetricKeyDataPoints[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1001,10 +1007,11 @@ const deserializeAws_json1_1MetricKeyDataPointsList = (output: any, context: __S } return deserializeAws_json1_1MetricKeyDataPoints(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetricValuesList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1012,6 +1019,7 @@ const deserializeAws_json1_1MetricValuesList = (output: any, context: __SerdeCon } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NotAuthorizedException = (output: any, context: __SerdeContext): NotAuthorizedException => { @@ -1033,7 +1041,7 @@ const deserializeAws_json1_1ResponsePartitionKeyList = ( output: any, context: __SerdeContext ): ResponsePartitionKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1041,6 +1049,7 @@ const deserializeAws_json1_1ResponsePartitionKeyList = ( } return deserializeAws_json1_1ResponsePartitionKey(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResponseResourceMetric = (output: any, context: __SerdeContext): ResponseResourceMetric => { @@ -1068,7 +1077,7 @@ const deserializeAws_json1_1ResponseResourceMetricList = ( output: any, context: __SerdeContext ): ResponseResourceMetric[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1076,6 +1085,7 @@ const deserializeAws_json1_1ResponseResourceMetricList = ( } return deserializeAws_json1_1ResponseResourceMetric(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts index e1065210be43..112104923128 100644 --- a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts @@ -4212,7 +4212,7 @@ const serializeAws_restJson1TrackingOptions = (input: TrackingOptions, context: }; const deserializeAws_restJson1BlacklistEntries = (output: any, context: __SerdeContext): BlacklistEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4220,6 +4220,7 @@ const deserializeAws_restJson1BlacklistEntries = (output: any, context: __SerdeC } return deserializeAws_restJson1BlacklistEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1BlacklistEntry = (output: any, context: __SerdeContext): BlacklistEntry => { @@ -4272,7 +4273,7 @@ const deserializeAws_restJson1CloudWatchDimensionConfigurations = ( output: any, context: __SerdeContext ): CloudWatchDimensionConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4280,10 +4281,11 @@ const deserializeAws_restJson1CloudWatchDimensionConfigurations = ( } return deserializeAws_restJson1CloudWatchDimensionConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConfigurationSetNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4291,6 +4293,7 @@ const deserializeAws_restJson1ConfigurationSetNameList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DailyVolume = (output: any, context: __SerdeContext): DailyVolume => { @@ -4311,7 +4314,7 @@ const deserializeAws_restJson1DailyVolume = (output: any, context: __SerdeContex }; const deserializeAws_restJson1DailyVolumes = (output: any, context: __SerdeContext): DailyVolume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4319,6 +4322,7 @@ const deserializeAws_restJson1DailyVolumes = (output: any, context: __SerdeConte } return deserializeAws_restJson1DailyVolume(entry, context); }); + return retVal; }; const deserializeAws_restJson1DedicatedIp = (output: any, context: __SerdeContext): DedicatedIp => { @@ -4331,7 +4335,7 @@ const deserializeAws_restJson1DedicatedIp = (output: any, context: __SerdeContex }; const deserializeAws_restJson1DedicatedIpList = (output: any, context: __SerdeContext): DedicatedIp[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4339,6 +4343,7 @@ const deserializeAws_restJson1DedicatedIpList = (output: any, context: __SerdeCo } return deserializeAws_restJson1DedicatedIp(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeliverabilityTestReport = ( @@ -4362,7 +4367,7 @@ const deserializeAws_restJson1DeliverabilityTestReports = ( output: any, context: __SerdeContext ): DeliverabilityTestReport[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4370,6 +4375,7 @@ const deserializeAws_restJson1DeliverabilityTestReports = ( } return deserializeAws_restJson1DeliverabilityTestReport(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeliveryOptions = (output: any, context: __SerdeContext): DeliveryOptions => { @@ -4391,7 +4397,7 @@ const deserializeAws_restJson1DkimAttributes = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DnsTokenList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4399,6 +4405,7 @@ const deserializeAws_restJson1DnsTokenList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DomainDeliverabilityCampaign = ( @@ -4439,7 +4446,7 @@ const deserializeAws_restJson1DomainDeliverabilityCampaignList = ( output: any, context: __SerdeContext ): DomainDeliverabilityCampaign[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4447,6 +4454,7 @@ const deserializeAws_restJson1DomainDeliverabilityCampaignList = ( } return deserializeAws_restJson1DomainDeliverabilityCampaign(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainDeliverabilityTrackingOption = ( @@ -4470,7 +4478,7 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOptions = ( output: any, context: __SerdeContext ): DomainDeliverabilityTrackingOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4478,6 +4486,7 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOptions = ( } return deserializeAws_restJson1DomainDeliverabilityTrackingOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainIspPlacement = (output: any, context: __SerdeContext): DomainIspPlacement => { @@ -4491,7 +4500,7 @@ const deserializeAws_restJson1DomainIspPlacement = (output: any, context: __Serd }; const deserializeAws_restJson1DomainIspPlacements = (output: any, context: __SerdeContext): DomainIspPlacement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4499,10 +4508,11 @@ const deserializeAws_restJson1DomainIspPlacements = (output: any, context: __Ser } return deserializeAws_restJson1DomainIspPlacement(entry, context); }); + return retVal; }; const deserializeAws_restJson1Esps = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4510,6 +4520,7 @@ const deserializeAws_restJson1Esps = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EventDestination = (output: any, context: __SerdeContext): EventDestination => { @@ -4540,7 +4551,7 @@ const deserializeAws_restJson1EventDestination = (output: any, context: __SerdeC }; const deserializeAws_restJson1EventDestinations = (output: any, context: __SerdeContext): EventDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4548,10 +4559,11 @@ const deserializeAws_restJson1EventDestinations = (output: any, context: __Serde } return deserializeAws_restJson1EventDestination(entry, context); }); + return retVal; }; const deserializeAws_restJson1EventTypes = (output: any, context: __SerdeContext): (EventType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4559,6 +4571,7 @@ const deserializeAws_restJson1EventTypes = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IdentityInfo = (output: any, context: __SerdeContext): IdentityInfo => { @@ -4570,7 +4583,7 @@ const deserializeAws_restJson1IdentityInfo = (output: any, context: __SerdeConte }; const deserializeAws_restJson1IdentityInfoList = (output: any, context: __SerdeContext): IdentityInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4578,6 +4591,7 @@ const deserializeAws_restJson1IdentityInfoList = (output: any, context: __SerdeC } return deserializeAws_restJson1IdentityInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1InboxPlacementTrackingOption = ( @@ -4594,7 +4608,7 @@ const deserializeAws_restJson1InboxPlacementTrackingOption = ( }; const deserializeAws_restJson1IpList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4602,10 +4616,11 @@ const deserializeAws_restJson1IpList = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IspNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4613,6 +4628,7 @@ const deserializeAws_restJson1IspNameList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IspPlacement = (output: any, context: __SerdeContext): IspPlacement => { @@ -4626,7 +4642,7 @@ const deserializeAws_restJson1IspPlacement = (output: any, context: __SerdeConte }; const deserializeAws_restJson1IspPlacements = (output: any, context: __SerdeContext): IspPlacement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4634,6 +4650,7 @@ const deserializeAws_restJson1IspPlacements = (output: any, context: __SerdeCont } return deserializeAws_restJson1IspPlacement(entry, context); }); + return retVal; }; const deserializeAws_restJson1KinesisFirehoseDestination = ( @@ -4647,7 +4664,7 @@ const deserializeAws_restJson1KinesisFirehoseDestination = ( }; const deserializeAws_restJson1ListOfDedicatedIpPools = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4655,6 +4672,7 @@ const deserializeAws_restJson1ListOfDedicatedIpPools = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MailFromAttributes = (output: any, context: __SerdeContext): MailFromAttributes => { @@ -4733,7 +4751,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4741,6 +4759,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TrackingOptions = (output: any, context: __SerdeContext): TrackingOptions => { diff --git a/clients/client-pinpoint-sms-voice/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint-sms-voice/src/protocols/Aws_restJson1.ts index 0c96ec1382d6..042a82fde1f5 100644 --- a/clients/client-pinpoint-sms-voice/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint-sms-voice/src/protocols/Aws_restJson1.ts @@ -962,7 +962,7 @@ const deserializeAws_restJson1CloudWatchLogsDestination = ( }; const deserializeAws_restJson1ConfigurationSets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -970,6 +970,7 @@ const deserializeAws_restJson1ConfigurationSets = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EventDestination = (output: any, context: __SerdeContext): EventDestination => { @@ -996,7 +997,7 @@ const deserializeAws_restJson1EventDestination = (output: any, context: __SerdeC }; const deserializeAws_restJson1EventDestinations = (output: any, context: __SerdeContext): EventDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1004,10 +1005,11 @@ const deserializeAws_restJson1EventDestinations = (output: any, context: __Serde } return deserializeAws_restJson1EventDestination(entry, context); }); + return retVal; }; const deserializeAws_restJson1EventTypes = (output: any, context: __SerdeContext): (EventType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1015,6 +1017,7 @@ const deserializeAws_restJson1EventTypes = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1KinesisFirehoseDestination = ( diff --git a/clients/client-pinpoint/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint/src/protocols/Aws_restJson1.ts index a265db781b92..62246e3395e0 100644 --- a/clients/client-pinpoint/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint/src/protocols/Aws_restJson1.ts @@ -15339,7 +15339,7 @@ const deserializeAws_restJson1ListOf__EndpointTypesElement = ( output: any, context: __SerdeContext ): (__EndpointTypesElement | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15347,10 +15347,11 @@ const deserializeAws_restJson1ListOf__EndpointTypesElement = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15358,10 +15359,11 @@ const deserializeAws_restJson1ListOf__string = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ListOfActivityResponse = (output: any, context: __SerdeContext): ActivityResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15369,13 +15371,14 @@ const deserializeAws_restJson1ListOfActivityResponse = (output: any, context: __ } return deserializeAws_restJson1ActivityResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfApplicationResponse = ( output: any, context: __SerdeContext ): ApplicationResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15383,10 +15386,11 @@ const deserializeAws_restJson1ListOfApplicationResponse = ( } return deserializeAws_restJson1ApplicationResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfCampaignResponse = (output: any, context: __SerdeContext): CampaignResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15394,10 +15398,11 @@ const deserializeAws_restJson1ListOfCampaignResponse = (output: any, context: __ } return deserializeAws_restJson1CampaignResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfEndpointResponse = (output: any, context: __SerdeContext): EndpointResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15405,10 +15410,11 @@ const deserializeAws_restJson1ListOfEndpointResponse = (output: any, context: __ } return deserializeAws_restJson1EndpointResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfExportJobResponse = (output: any, context: __SerdeContext): ExportJobResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15416,10 +15422,11 @@ const deserializeAws_restJson1ListOfExportJobResponse = (output: any, context: _ } return deserializeAws_restJson1ExportJobResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfImportJobResponse = (output: any, context: __SerdeContext): ImportJobResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15427,13 +15434,14 @@ const deserializeAws_restJson1ListOfImportJobResponse = (output: any, context: _ } return deserializeAws_restJson1ImportJobResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfInAppMessageCampaign = ( output: any, context: __SerdeContext ): InAppMessageCampaign[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15441,13 +15449,14 @@ const deserializeAws_restJson1ListOfInAppMessageCampaign = ( } return deserializeAws_restJson1InAppMessageCampaign(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfInAppMessageContent = ( output: any, context: __SerdeContext ): InAppMessageContent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15455,10 +15464,11 @@ const deserializeAws_restJson1ListOfInAppMessageContent = ( } return deserializeAws_restJson1InAppMessageContent(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfJourneyResponse = (output: any, context: __SerdeContext): JourneyResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15466,13 +15476,14 @@ const deserializeAws_restJson1ListOfJourneyResponse = (output: any, context: __S } return deserializeAws_restJson1JourneyResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfMultiConditionalBranch = ( output: any, context: __SerdeContext ): MultiConditionalBranch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15480,10 +15491,11 @@ const deserializeAws_restJson1ListOfMultiConditionalBranch = ( } return deserializeAws_restJson1MultiConditionalBranch(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfRandomSplitEntry = (output: any, context: __SerdeContext): RandomSplitEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15491,13 +15503,14 @@ const deserializeAws_restJson1ListOfRandomSplitEntry = (output: any, context: __ } return deserializeAws_restJson1RandomSplitEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfRecommenderConfigurationResponse = ( output: any, context: __SerdeContext ): RecommenderConfigurationResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15505,10 +15518,11 @@ const deserializeAws_restJson1ListOfRecommenderConfigurationResponse = ( } return deserializeAws_restJson1RecommenderConfigurationResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfResultRow = (output: any, context: __SerdeContext): ResultRow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15516,10 +15530,11 @@ const deserializeAws_restJson1ListOfResultRow = (output: any, context: __SerdeCo } return deserializeAws_restJson1ResultRow(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfResultRowValue = (output: any, context: __SerdeContext): ResultRowValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15527,10 +15542,11 @@ const deserializeAws_restJson1ListOfResultRowValue = (output: any, context: __Se } return deserializeAws_restJson1ResultRowValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfSegmentDimensions = (output: any, context: __SerdeContext): SegmentDimensions[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15538,10 +15554,11 @@ const deserializeAws_restJson1ListOfSegmentDimensions = (output: any, context: _ } return deserializeAws_restJson1SegmentDimensions(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfSegmentGroup = (output: any, context: __SerdeContext): SegmentGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15549,10 +15566,11 @@ const deserializeAws_restJson1ListOfSegmentGroup = (output: any, context: __Serd } return deserializeAws_restJson1SegmentGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfSegmentReference = (output: any, context: __SerdeContext): SegmentReference[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15560,10 +15578,11 @@ const deserializeAws_restJson1ListOfSegmentReference = (output: any, context: __ } return deserializeAws_restJson1SegmentReference(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfSegmentResponse = (output: any, context: __SerdeContext): SegmentResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15571,10 +15590,11 @@ const deserializeAws_restJson1ListOfSegmentResponse = (output: any, context: __S } return deserializeAws_restJson1SegmentResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfSimpleCondition = (output: any, context: __SerdeContext): SimpleCondition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15582,10 +15602,11 @@ const deserializeAws_restJson1ListOfSimpleCondition = (output: any, context: __S } return deserializeAws_restJson1SimpleCondition(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfTemplateResponse = (output: any, context: __SerdeContext): TemplateResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15593,13 +15614,14 @@ const deserializeAws_restJson1ListOfTemplateResponse = (output: any, context: __ } return deserializeAws_restJson1TemplateResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfTemplateVersionResponse = ( output: any, context: __SerdeContext ): TemplateVersionResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15607,10 +15629,11 @@ const deserializeAws_restJson1ListOfTemplateVersionResponse = ( } return deserializeAws_restJson1TemplateVersionResponse(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfTreatmentResource = (output: any, context: __SerdeContext): TreatmentResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15618,6 +15641,7 @@ const deserializeAws_restJson1ListOfTreatmentResource = (output: any, context: _ } return deserializeAws_restJson1TreatmentResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListRecommenderConfigurationsResponse = ( diff --git a/clients/client-polly/src/protocols/Aws_restJson1.ts b/clients/client-polly/src/protocols/Aws_restJson1.ts index 5d7ceabcfda8..fcded7c1f7e9 100644 --- a/clients/client-polly/src/protocols/Aws_restJson1.ts +++ b/clients/client-polly/src/protocols/Aws_restJson1.ts @@ -1207,7 +1207,7 @@ const serializeAws_restJson1SpeechMarkTypeList = (input: (SpeechMarkType | strin }; const deserializeAws_restJson1EngineList = (output: any, context: __SerdeContext): (Engine | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1215,10 +1215,11 @@ const deserializeAws_restJson1EngineList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1LanguageCodeList = (output: any, context: __SerdeContext): (LanguageCode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1226,6 +1227,7 @@ const deserializeAws_restJson1LanguageCodeList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Lexicon = (output: any, context: __SerdeContext): Lexicon => { @@ -1260,7 +1262,7 @@ const deserializeAws_restJson1LexiconDescription = (output: any, context: __Serd }; const deserializeAws_restJson1LexiconDescriptionList = (output: any, context: __SerdeContext): LexiconDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1268,10 +1270,11 @@ const deserializeAws_restJson1LexiconDescriptionList = (output: any, context: __ } return deserializeAws_restJson1LexiconDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1LexiconNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1279,13 +1282,14 @@ const deserializeAws_restJson1LexiconNameList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SpeechMarkTypeList = ( output: any, context: __SerdeContext ): (SpeechMarkType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1293,6 +1297,7 @@ const deserializeAws_restJson1SpeechMarkTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SynthesisTask = (output: any, context: __SerdeContext): SynthesisTask => { @@ -1325,7 +1330,7 @@ const deserializeAws_restJson1SynthesisTask = (output: any, context: __SerdeCont }; const deserializeAws_restJson1SynthesisTasks = (output: any, context: __SerdeContext): SynthesisTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1333,6 +1338,7 @@ const deserializeAws_restJson1SynthesisTasks = (output: any, context: __SerdeCon } return deserializeAws_restJson1SynthesisTask(entry, context); }); + return retVal; }; const deserializeAws_restJson1Voice = (output: any, context: __SerdeContext): Voice => { @@ -1354,7 +1360,7 @@ const deserializeAws_restJson1Voice = (output: any, context: __SerdeContext): Vo }; const deserializeAws_restJson1VoiceList = (output: any, context: __SerdeContext): Voice[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1362,6 +1368,7 @@ const deserializeAws_restJson1VoiceList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Voice(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-pricing/src/protocols/Aws_json1_1.ts b/clients/client-pricing/src/protocols/Aws_json1_1.ts index 685da84d4a1c..8cdf9775dc66 100644 --- a/clients/client-pricing/src/protocols/Aws_json1_1.ts +++ b/clients/client-pricing/src/protocols/Aws_json1_1.ts @@ -353,7 +353,7 @@ const serializeAws_json1_1GetProductsRequest = (input: GetProductsRequest, conte }; const deserializeAws_json1_1AttributeNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -361,6 +361,7 @@ const deserializeAws_json1_1AttributeNameList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AttributeValue = (output: any, context: __SerdeContext): AttributeValue => { @@ -370,7 +371,7 @@ const deserializeAws_json1_1AttributeValue = (output: any, context: __SerdeConte }; const deserializeAws_json1_1AttributeValueList = (output: any, context: __SerdeContext): AttributeValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -378,6 +379,7 @@ const deserializeAws_json1_1AttributeValueList = (output: any, context: __SerdeC } return deserializeAws_json1_1AttributeValue(entry, context); }); + return retVal; }; const deserializeAws_json1_1DescribeServicesResponse = ( @@ -458,7 +460,7 @@ const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeCo }; const deserializeAws_json1_1PriceList = (output: any, context: __SerdeContext): (__LazyJsonString | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -466,6 +468,7 @@ const deserializeAws_json1_1PriceList = (output: any, context: __SerdeContext): } return new __LazyJsonString(entry); }); + return retVal; }; const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Service => { @@ -479,7 +482,7 @@ const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Se }; const deserializeAws_json1_1ServiceList = (output: any, context: __SerdeContext): Service[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -487,6 +490,7 @@ const deserializeAws_json1_1ServiceList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Service(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-proton/src/protocols/Aws_json1_0.ts b/clients/client-proton/src/protocols/Aws_json1_0.ts index af7281e83a6e..5ce5c1e4715c 100644 --- a/clients/client-proton/src/protocols/Aws_json1_0.ts +++ b/clients/client-proton/src/protocols/Aws_json1_0.ts @@ -6144,7 +6144,7 @@ const deserializeAws_json1_0CompatibleEnvironmentTemplateList = ( output: any, context: __SerdeContext ): CompatibleEnvironmentTemplate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6152,6 +6152,7 @@ const deserializeAws_json1_0CompatibleEnvironmentTemplateList = ( } return deserializeAws_json1_0CompatibleEnvironmentTemplate(entry, context); }); + return retVal; }; const deserializeAws_json1_0ConflictException = (output: any, context: __SerdeContext): ConflictException => { @@ -6448,7 +6449,7 @@ const deserializeAws_json1_0EnvironmentAccountConnectionSummaryList = ( output: any, context: __SerdeContext ): EnvironmentAccountConnectionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6456,6 +6457,7 @@ const deserializeAws_json1_0EnvironmentAccountConnectionSummaryList = ( } return deserializeAws_json1_0EnvironmentAccountConnectionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0EnvironmentSummary = (output: any, context: __SerdeContext): EnvironmentSummary => { @@ -6488,7 +6490,7 @@ const deserializeAws_json1_0EnvironmentSummary = (output: any, context: __SerdeC }; const deserializeAws_json1_0EnvironmentSummaryList = (output: any, context: __SerdeContext): EnvironmentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6496,6 +6498,7 @@ const deserializeAws_json1_0EnvironmentSummaryList = (output: any, context: __Se } return deserializeAws_json1_0EnvironmentSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0EnvironmentTemplate = (output: any, context: __SerdeContext): EnvironmentTemplate => { @@ -6544,7 +6547,7 @@ const deserializeAws_json1_0EnvironmentTemplateSummaryList = ( output: any, context: __SerdeContext ): EnvironmentTemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6552,6 +6555,7 @@ const deserializeAws_json1_0EnvironmentTemplateSummaryList = ( } return deserializeAws_json1_0EnvironmentTemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0EnvironmentTemplateVersion = ( @@ -6607,7 +6611,7 @@ const deserializeAws_json1_0EnvironmentTemplateVersionSummaryList = ( output: any, context: __SerdeContext ): EnvironmentTemplateVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6615,6 +6619,7 @@ const deserializeAws_json1_0EnvironmentTemplateVersionSummaryList = ( } return deserializeAws_json1_0EnvironmentTemplateVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0GetAccountSettingsOutput = ( @@ -7008,7 +7013,7 @@ const deserializeAws_json1_0Output = (output: any, context: __SerdeContext): Out }; const deserializeAws_json1_0OutputsList = (output: any, context: __SerdeContext): Output[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7016,6 +7021,7 @@ const deserializeAws_json1_0OutputsList = (output: any, context: __SerdeContext) } return deserializeAws_json1_0Output(entry, context); }); + return retVal; }; const deserializeAws_json1_0ProvisionedResource = (output: any, context: __SerdeContext): ProvisionedResource => { @@ -7027,7 +7033,7 @@ const deserializeAws_json1_0ProvisionedResource = (output: any, context: __Serde }; const deserializeAws_json1_0ProvisionedResourceList = (output: any, context: __SerdeContext): ProvisionedResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7035,6 +7041,7 @@ const deserializeAws_json1_0ProvisionedResourceList = (output: any, context: __S } return deserializeAws_json1_0ProvisionedResource(entry, context); }); + return retVal; }; const deserializeAws_json1_0RejectEnvironmentAccountConnectionOutput = ( @@ -7077,7 +7084,7 @@ const deserializeAws_json1_0RepositorySummary = (output: any, context: __SerdeCo }; const deserializeAws_json1_0RepositorySummaryList = (output: any, context: __SerdeContext): RepositorySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7085,6 +7092,7 @@ const deserializeAws_json1_0RepositorySummaryList = (output: any, context: __Ser } return deserializeAws_json1_0RepositorySummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0RepositorySyncAttempt = (output: any, context: __SerdeContext): RepositorySyncAttempt => { @@ -7117,7 +7125,7 @@ const deserializeAws_json1_0RepositorySyncDefinitionList = ( output: any, context: __SerdeContext ): RepositorySyncDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7125,6 +7133,7 @@ const deserializeAws_json1_0RepositorySyncDefinitionList = ( } return deserializeAws_json1_0RepositorySyncDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_0RepositorySyncEvent = (output: any, context: __SerdeContext): RepositorySyncEvent => { @@ -7140,7 +7149,7 @@ const deserializeAws_json1_0RepositorySyncEvent = (output: any, context: __Serde }; const deserializeAws_json1_0RepositorySyncEvents = (output: any, context: __SerdeContext): RepositorySyncEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7148,6 +7157,7 @@ const deserializeAws_json1_0RepositorySyncEvents = (output: any, context: __Serd } return deserializeAws_json1_0RepositorySyncEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_0ResourceNotFoundException = ( @@ -7195,7 +7205,7 @@ const deserializeAws_json1_0ResourceSyncEvent = (output: any, context: __SerdeCo }; const deserializeAws_json1_0ResourceSyncEvents = (output: any, context: __SerdeContext): ResourceSyncEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7203,6 +7213,7 @@ const deserializeAws_json1_0ResourceSyncEvents = (output: any, context: __SerdeC } return deserializeAws_json1_0ResourceSyncEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_0Revision = (output: any, context: __SerdeContext): Revision => { @@ -7299,7 +7310,7 @@ const deserializeAws_json1_0ServiceInstanceSummaryList = ( output: any, context: __SerdeContext ): ServiceInstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7307,6 +7318,7 @@ const deserializeAws_json1_0ServiceInstanceSummaryList = ( } return deserializeAws_json1_0ServiceInstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0ServicePipeline = (output: any, context: __SerdeContext): ServicePipeline => { @@ -7362,7 +7374,7 @@ const deserializeAws_json1_0ServiceSummary = (output: any, context: __SerdeConte }; const deserializeAws_json1_0ServiceSummaryList = (output: any, context: __SerdeContext): ServiceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7370,6 +7382,7 @@ const deserializeAws_json1_0ServiceSummaryList = (output: any, context: __SerdeC } return deserializeAws_json1_0ServiceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0ServiceTemplate = (output: any, context: __SerdeContext): ServiceTemplate => { @@ -7415,7 +7428,7 @@ const deserializeAws_json1_0ServiceTemplateSummaryList = ( output: any, context: __SerdeContext ): ServiceTemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7423,6 +7436,7 @@ const deserializeAws_json1_0ServiceTemplateSummaryList = ( } return deserializeAws_json1_0ServiceTemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0ServiceTemplateVersion = (output: any, context: __SerdeContext): ServiceTemplateVersion => { @@ -7479,7 +7493,7 @@ const deserializeAws_json1_0ServiceTemplateVersionSummaryList = ( output: any, context: __SerdeContext ): ServiceTemplateVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7487,6 +7501,7 @@ const deserializeAws_json1_0ServiceTemplateVersionSummaryList = ( } return deserializeAws_json1_0ServiceTemplateVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => { @@ -7497,7 +7512,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7505,6 +7520,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceOutput = (output: any, context: __SerdeContext): TagResourceOutput => { diff --git a/clients/client-qldb-session/src/protocols/Aws_json1_0.ts b/clients/client-qldb-session/src/protocols/Aws_json1_0.ts index a2d5eac95666..5de0471c804b 100644 --- a/clients/client-qldb-session/src/protocols/Aws_json1_0.ts +++ b/clients/client-qldb-session/src/protocols/Aws_json1_0.ts @@ -485,7 +485,7 @@ const deserializeAws_json1_0ValueHolder = (output: any, context: __SerdeContext) }; const deserializeAws_json1_0ValueHolders = (output: any, context: __SerdeContext): ValueHolder[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -493,6 +493,7 @@ const deserializeAws_json1_0ValueHolders = (output: any, context: __SerdeContext } return deserializeAws_json1_0ValueHolder(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-qldb/src/protocols/Aws_restJson1.ts b/clients/client-qldb/src/protocols/Aws_restJson1.ts index ae699bb6c6a5..9a06c4b8a3c2 100644 --- a/clients/client-qldb/src/protocols/Aws_restJson1.ts +++ b/clients/client-qldb/src/protocols/Aws_restJson1.ts @@ -2022,7 +2022,7 @@ const deserializeAws_restJson1JournalKinesisStreamDescriptionList = ( output: any, context: __SerdeContext ): JournalKinesisStreamDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2030,6 +2030,7 @@ const deserializeAws_restJson1JournalKinesisStreamDescriptionList = ( } return deserializeAws_restJson1JournalKinesisStreamDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1JournalS3ExportDescription = ( @@ -2065,7 +2066,7 @@ const deserializeAws_restJson1JournalS3ExportList = ( output: any, context: __SerdeContext ): JournalS3ExportDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2073,6 +2074,7 @@ const deserializeAws_restJson1JournalS3ExportList = ( } return deserializeAws_restJson1JournalS3ExportDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1KinesisConfiguration = (output: any, context: __SerdeContext): KinesisConfiguration => { @@ -2097,7 +2099,7 @@ const deserializeAws_restJson1LedgerEncryptionDescription = ( }; const deserializeAws_restJson1LedgerList = (output: any, context: __SerdeContext): LedgerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2105,6 +2107,7 @@ const deserializeAws_restJson1LedgerList = (output: any, context: __SerdeContext } return deserializeAws_restJson1LedgerSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1LedgerSummary = (output: any, context: __SerdeContext): LedgerSummary => { diff --git a/clients/client-quicksight/src/protocols/Aws_restJson1.ts b/clients/client-quicksight/src/protocols/Aws_restJson1.ts index 61f78899779f..fca004202be8 100644 --- a/clients/client-quicksight/src/protocols/Aws_restJson1.ts +++ b/clients/client-quicksight/src/protocols/Aws_restJson1.ts @@ -15985,7 +15985,7 @@ const deserializeAws_restJson1AccountSettings = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15993,6 +15993,7 @@ const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ActiveIAMPolicyAssignment = ( @@ -16009,7 +16010,7 @@ const deserializeAws_restJson1ActiveIAMPolicyAssignmentList = ( output: any, context: __SerdeContext ): ActiveIAMPolicyAssignment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16017,6 +16018,7 @@ const deserializeAws_restJson1ActiveIAMPolicyAssignmentList = ( } return deserializeAws_restJson1ActiveIAMPolicyAssignment(entry, context); }); + return retVal; }; const deserializeAws_restJson1AmazonElasticsearchParameters = ( @@ -16075,7 +16077,7 @@ const deserializeAws_restJson1AnalysisError = (output: any, context: __SerdeCont }; const deserializeAws_restJson1AnalysisErrorList = (output: any, context: __SerdeContext): AnalysisError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16083,6 +16085,7 @@ const deserializeAws_restJson1AnalysisErrorList = (output: any, context: __Serde } return deserializeAws_restJson1AnalysisError(entry, context); }); + return retVal; }; const deserializeAws_restJson1AnalysisSummary = (output: any, context: __SerdeContext): AnalysisSummary => { @@ -16103,7 +16106,7 @@ const deserializeAws_restJson1AnalysisSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1AnalysisSummaryList = (output: any, context: __SerdeContext): AnalysisSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16111,6 +16114,7 @@ const deserializeAws_restJson1AnalysisSummaryList = (output: any, context: __Ser } return deserializeAws_restJson1AnalysisSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AthenaParameters = (output: any, context: __SerdeContext): AthenaParameters => { @@ -16162,7 +16166,7 @@ const deserializeAws_restJson1CalculatedColumn = (output: any, context: __SerdeC }; const deserializeAws_restJson1CalculatedColumnList = (output: any, context: __SerdeContext): CalculatedColumn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16170,6 +16174,7 @@ const deserializeAws_restJson1CalculatedColumnList = (output: any, context: __Se } return deserializeAws_restJson1CalculatedColumn(entry, context); }); + return retVal; }; const deserializeAws_restJson1CastColumnTypeOperation = ( @@ -16184,7 +16189,7 @@ const deserializeAws_restJson1CastColumnTypeOperation = ( }; const deserializeAws_restJson1ColorList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16192,6 +16197,7 @@ const deserializeAws_restJson1ColorList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ColumnDescription = (output: any, context: __SerdeContext): ColumnDescription => { @@ -16222,7 +16228,7 @@ const deserializeAws_restJson1ColumnGroupColumnSchemaList = ( output: any, context: __SerdeContext ): ColumnGroupColumnSchema[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16230,10 +16236,11 @@ const deserializeAws_restJson1ColumnGroupColumnSchemaList = ( } return deserializeAws_restJson1ColumnGroupColumnSchema(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnGroupList = (output: any, context: __SerdeContext): ColumnGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16241,6 +16248,7 @@ const deserializeAws_restJson1ColumnGroupList = (output: any, context: __SerdeCo } return deserializeAws_restJson1ColumnGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnGroupSchema = (output: any, context: __SerdeContext): ColumnGroupSchema => { @@ -16254,7 +16262,7 @@ const deserializeAws_restJson1ColumnGroupSchema = (output: any, context: __Serde }; const deserializeAws_restJson1ColumnGroupSchemaList = (output: any, context: __SerdeContext): ColumnGroupSchema[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16262,6 +16270,7 @@ const deserializeAws_restJson1ColumnGroupSchemaList = (output: any, context: __S } return deserializeAws_restJson1ColumnGroupSchema(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnLevelPermissionRule = ( @@ -16284,7 +16293,7 @@ const deserializeAws_restJson1ColumnLevelPermissionRuleList = ( output: any, context: __SerdeContext ): ColumnLevelPermissionRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16292,10 +16301,11 @@ const deserializeAws_restJson1ColumnLevelPermissionRuleList = ( } return deserializeAws_restJson1ColumnLevelPermissionRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16303,10 +16313,11 @@ const deserializeAws_restJson1ColumnList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ColumnNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16314,6 +16325,7 @@ const deserializeAws_restJson1ColumnNameList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ColumnSchema = (output: any, context: __SerdeContext): ColumnSchema => { @@ -16325,7 +16337,7 @@ const deserializeAws_restJson1ColumnSchema = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ColumnSchemaList = (output: any, context: __SerdeContext): ColumnSchema[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16333,6 +16345,7 @@ const deserializeAws_restJson1ColumnSchemaList = (output: any, context: __SerdeC } return deserializeAws_restJson1ColumnSchema(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnTag = (output: any, context: __SerdeContext): ColumnTag => { @@ -16346,7 +16359,7 @@ const deserializeAws_restJson1ColumnTag = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ColumnTagList = (output: any, context: __SerdeContext): ColumnTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16354,10 +16367,11 @@ const deserializeAws_restJson1ColumnTagList = (output: any, context: __SerdeCont } return deserializeAws_restJson1ColumnTag(entry, context); }); + return retVal; }; const deserializeAws_restJson1ColumnTagNames = (output: any, context: __SerdeContext): (ColumnTagName | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16365,6 +16379,7 @@ const deserializeAws_restJson1ColumnTagNames = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1CreateColumnsOperation = ( @@ -16423,7 +16438,7 @@ const deserializeAws_restJson1DashboardError = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DashboardErrorList = (output: any, context: __SerdeContext): DashboardError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16431,6 +16446,7 @@ const deserializeAws_restJson1DashboardErrorList = (output: any, context: __Serd } return deserializeAws_restJson1DashboardError(entry, context); }); + return retVal; }; const deserializeAws_restJson1DashboardSummary = (output: any, context: __SerdeContext): DashboardSummary => { @@ -16455,7 +16471,7 @@ const deserializeAws_restJson1DashboardSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1DashboardSummaryList = (output: any, context: __SerdeContext): DashboardSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16463,6 +16479,7 @@ const deserializeAws_restJson1DashboardSummaryList = (output: any, context: __Se } return deserializeAws_restJson1DashboardSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DashboardVersion = (output: any, context: __SerdeContext): DashboardVersion => { @@ -16513,7 +16530,7 @@ const deserializeAws_restJson1DashboardVersionSummaryList = ( output: any, context: __SerdeContext ): DashboardVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16521,6 +16538,7 @@ const deserializeAws_restJson1DashboardVersionSummaryList = ( } return deserializeAws_restJson1DashboardVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataColorPalette = (output: any, context: __SerdeContext): DataColorPalette => { @@ -16592,7 +16610,7 @@ const deserializeAws_restJson1DataSet = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1DataSetArnsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16600,6 +16618,7 @@ const deserializeAws_restJson1DataSetArnsList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DataSetConfiguration = (output: any, context: __SerdeContext): DataSetConfiguration => { @@ -16620,7 +16639,7 @@ const deserializeAws_restJson1DataSetConfigurationList = ( output: any, context: __SerdeContext ): DataSetConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16628,6 +16647,7 @@ const deserializeAws_restJson1DataSetConfigurationList = ( } return deserializeAws_restJson1DataSetConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataSetSchema = (output: any, context: __SerdeContext): DataSetSchema => { @@ -16663,7 +16683,7 @@ const deserializeAws_restJson1DataSetSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DataSetSummaryList = (output: any, context: __SerdeContext): DataSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16671,6 +16691,7 @@ const deserializeAws_restJson1DataSetSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1DataSetSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataSetUsageConfiguration = ( @@ -16729,7 +16750,7 @@ const deserializeAws_restJson1DataSourceErrorInfo = (output: any, context: __Ser }; const deserializeAws_restJson1DataSourceList = (output: any, context: __SerdeContext): DataSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16737,6 +16758,7 @@ const deserializeAws_restJson1DataSourceList = (output: any, context: __SerdeCon } return deserializeAws_restJson1DataSource(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataSourceParameters = (output: any, context: __SerdeContext): DataSourceParameters => { @@ -16869,7 +16891,7 @@ const deserializeAws_restJson1DataSourceParametersList = ( output: any, context: __SerdeContext ): DataSourceParameters[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16877,6 +16899,7 @@ const deserializeAws_restJson1DataSourceParametersList = ( } return deserializeAws_restJson1DataSourceParameters(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1ErrorInfo = (output: any, context: __SerdeContext): ErrorInfo => { @@ -16946,7 +16969,7 @@ const deserializeAws_restJson1Folder = (output: any, context: __SerdeContext): F }; const deserializeAws_restJson1FolderColumnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16954,6 +16977,7 @@ const deserializeAws_restJson1FolderColumnList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FolderMember = (output: any, context: __SerdeContext): FolderMember => { @@ -16964,7 +16988,7 @@ const deserializeAws_restJson1FolderMember = (output: any, context: __SerdeConte }; const deserializeAws_restJson1FolderMemberList = (output: any, context: __SerdeContext): MemberIdArnPair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16972,6 +16996,7 @@ const deserializeAws_restJson1FolderMemberList = (output: any, context: __SerdeC } return deserializeAws_restJson1MemberIdArnPair(entry, context); }); + return retVal; }; const deserializeAws_restJson1FolderSummary = (output: any, context: __SerdeContext): FolderSummary => { @@ -16992,7 +17017,7 @@ const deserializeAws_restJson1FolderSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1FolderSummaryList = (output: any, context: __SerdeContext): FolderSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17000,6 +17025,7 @@ const deserializeAws_restJson1FolderSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1FolderSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1GeoSpatialColumnGroup = (output: any, context: __SerdeContext): GeoSpatialColumnGroup => { @@ -17023,7 +17049,7 @@ const deserializeAws_restJson1Group = (output: any, context: __SerdeContext): Gr }; const deserializeAws_restJson1GroupList = (output: any, context: __SerdeContext): Group[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17031,6 +17057,7 @@ const deserializeAws_restJson1GroupList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Group(entry, context); }); + return retVal; }; const deserializeAws_restJson1GroupMember = (output: any, context: __SerdeContext): GroupMember => { @@ -17041,7 +17068,7 @@ const deserializeAws_restJson1GroupMember = (output: any, context: __SerdeContex }; const deserializeAws_restJson1GroupMemberList = (output: any, context: __SerdeContext): GroupMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17049,6 +17076,7 @@ const deserializeAws_restJson1GroupMemberList = (output: any, context: __SerdeCo } return deserializeAws_restJson1GroupMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1GutterStyle = (output: any, context: __SerdeContext): GutterStyle => { @@ -17085,7 +17113,7 @@ const deserializeAws_restJson1IAMPolicyAssignmentSummaryList = ( output: any, context: __SerdeContext ): IAMPolicyAssignmentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17093,6 +17121,7 @@ const deserializeAws_restJson1IAMPolicyAssignmentSummaryList = ( } return deserializeAws_restJson1IAMPolicyAssignmentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1IdentityMap = (output: any, context: __SerdeContext): { [key: string]: string[] } => { @@ -17108,7 +17137,7 @@ const deserializeAws_restJson1IdentityMap = (output: any, context: __SerdeContex }; const deserializeAws_restJson1IdentityNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17116,6 +17145,7 @@ const deserializeAws_restJson1IdentityNameList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Ingestion = (output: any, context: __SerdeContext): Ingestion => { @@ -17147,7 +17177,7 @@ const deserializeAws_restJson1Ingestion = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1Ingestions = (output: any, context: __SerdeContext): Ingestion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17155,6 +17185,7 @@ const deserializeAws_restJson1Ingestions = (output: any, context: __SerdeContext } return deserializeAws_restJson1Ingestion(entry, context); }); + return retVal; }; const deserializeAws_restJson1InputColumn = (output: any, context: __SerdeContext): InputColumn => { @@ -17165,7 +17196,7 @@ const deserializeAws_restJson1InputColumn = (output: any, context: __SerdeContex }; const deserializeAws_restJson1InputColumnList = (output: any, context: __SerdeContext): InputColumn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17173,6 +17204,7 @@ const deserializeAws_restJson1InputColumnList = (output: any, context: __SerdeCo } return deserializeAws_restJson1InputColumn(entry, context); }); + return retVal; }; const deserializeAws_restJson1IpRestrictionRuleMap = ( @@ -17329,7 +17361,7 @@ const deserializeAws_restJson1NamespaceInfoV2 = (output: any, context: __SerdeCo }; const deserializeAws_restJson1Namespaces = (output: any, context: __SerdeContext): NamespaceInfoV2[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17337,6 +17369,7 @@ const deserializeAws_restJson1Namespaces = (output: any, context: __SerdeContext } return deserializeAws_restJson1NamespaceInfoV2(entry, context); }); + return retVal; }; const deserializeAws_restJson1OracleParameters = (output: any, context: __SerdeContext): OracleParameters => { @@ -17356,7 +17389,7 @@ const deserializeAws_restJson1OutputColumn = (output: any, context: __SerdeConte }; const deserializeAws_restJson1OutputColumnList = (output: any, context: __SerdeContext): OutputColumn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17364,10 +17397,11 @@ const deserializeAws_restJson1OutputColumnList = (output: any, context: __SerdeC } return deserializeAws_restJson1OutputColumn(entry, context); }); + return retVal; }; const deserializeAws_restJson1Path = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17375,6 +17409,7 @@ const deserializeAws_restJson1Path = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1PhysicalTable = (output: any, context: __SerdeContext): PhysicalTable => { @@ -17428,7 +17463,7 @@ const deserializeAws_restJson1PrestoParameters = (output: any, context: __SerdeC }; const deserializeAws_restJson1PrincipalList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17436,10 +17471,11 @@ const deserializeAws_restJson1PrincipalList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ProjectedColumnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17447,6 +17483,7 @@ const deserializeAws_restJson1ProjectedColumnList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ProjectOperation = (output: any, context: __SerdeContext): ProjectOperation => { @@ -17512,7 +17549,7 @@ const deserializeAws_restJson1ResourcePermission = (output: any, context: __Serd }; const deserializeAws_restJson1ResourcePermissionList = (output: any, context: __SerdeContext): ResourcePermission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17520,6 +17557,7 @@ const deserializeAws_restJson1ResourcePermissionList = (output: any, context: __ } return deserializeAws_restJson1ResourcePermission(entry, context); }); + return retVal; }; const deserializeAws_restJson1RowInfo = (output: any, context: __SerdeContext): RowInfo => { @@ -17572,7 +17610,7 @@ const deserializeAws_restJson1RowLevelPermissionTagRuleList = ( output: any, context: __SerdeContext ): RowLevelPermissionTagRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17580,6 +17618,7 @@ const deserializeAws_restJson1RowLevelPermissionTagRuleList = ( } return deserializeAws_restJson1RowLevelPermissionTagRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3Parameters = (output: any, context: __SerdeContext): S3Parameters => { @@ -17619,7 +17658,7 @@ const deserializeAws_restJson1Sheet = (output: any, context: __SerdeContext): Sh }; const deserializeAws_restJson1SheetList = (output: any, context: __SerdeContext): Sheet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17627,6 +17666,7 @@ const deserializeAws_restJson1SheetList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Sheet(entry, context); }); + return retVal; }; const deserializeAws_restJson1SheetStyle = (output: any, context: __SerdeContext): SheetStyle => { @@ -17689,7 +17729,7 @@ const deserializeAws_restJson1TagColumnOperation = (output: any, context: __Serd }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17697,6 +17737,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1Template = (output: any, context: __SerdeContext): Template => { @@ -17728,7 +17769,7 @@ const deserializeAws_restJson1TemplateAlias = (output: any, context: __SerdeCont }; const deserializeAws_restJson1TemplateAliasList = (output: any, context: __SerdeContext): TemplateAlias[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17736,6 +17777,7 @@ const deserializeAws_restJson1TemplateAliasList = (output: any, context: __Serde } return deserializeAws_restJson1TemplateAlias(entry, context); }); + return retVal; }; const deserializeAws_restJson1TemplateError = (output: any, context: __SerdeContext): TemplateError => { @@ -17746,7 +17788,7 @@ const deserializeAws_restJson1TemplateError = (output: any, context: __SerdeCont }; const deserializeAws_restJson1TemplateErrorList = (output: any, context: __SerdeContext): TemplateError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17754,6 +17796,7 @@ const deserializeAws_restJson1TemplateErrorList = (output: any, context: __Serde } return deserializeAws_restJson1TemplateError(entry, context); }); + return retVal; }; const deserializeAws_restJson1TemplateSummary = (output: any, context: __SerdeContext): TemplateSummary => { @@ -17774,7 +17817,7 @@ const deserializeAws_restJson1TemplateSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1TemplateSummaryList = (output: any, context: __SerdeContext): TemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17782,6 +17825,7 @@ const deserializeAws_restJson1TemplateSummaryList = (output: any, context: __Ser } return deserializeAws_restJson1TemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TemplateVersion = (output: any, context: __SerdeContext): TemplateVersion => { @@ -17830,7 +17874,7 @@ const deserializeAws_restJson1TemplateVersionSummaryList = ( output: any, context: __SerdeContext ): TemplateVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17838,6 +17882,7 @@ const deserializeAws_restJson1TemplateVersionSummaryList = ( } return deserializeAws_restJson1TemplateVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TeradataParameters = (output: any, context: __SerdeContext): TeradataParameters => { @@ -17878,7 +17923,7 @@ const deserializeAws_restJson1ThemeAlias = (output: any, context: __SerdeContext }; const deserializeAws_restJson1ThemeAliasList = (output: any, context: __SerdeContext): ThemeAlias[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17886,6 +17931,7 @@ const deserializeAws_restJson1ThemeAliasList = (output: any, context: __SerdeCon } return deserializeAws_restJson1ThemeAlias(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThemeConfiguration = (output: any, context: __SerdeContext): ThemeConfiguration => { @@ -17913,7 +17959,7 @@ const deserializeAws_restJson1ThemeError = (output: any, context: __SerdeContext }; const deserializeAws_restJson1ThemeErrorList = (output: any, context: __SerdeContext): ThemeError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17921,6 +17967,7 @@ const deserializeAws_restJson1ThemeErrorList = (output: any, context: __SerdeCon } return deserializeAws_restJson1ThemeError(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThemeSummary = (output: any, context: __SerdeContext): ThemeSummary => { @@ -17941,7 +17988,7 @@ const deserializeAws_restJson1ThemeSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ThemeSummaryList = (output: any, context: __SerdeContext): ThemeSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17949,6 +17996,7 @@ const deserializeAws_restJson1ThemeSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1ThemeSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ThemeVersion = (output: any, context: __SerdeContext): ThemeVersion => { @@ -17990,7 +18038,7 @@ const deserializeAws_restJson1ThemeVersionSummaryList = ( output: any, context: __SerdeContext ): ThemeVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17998,6 +18046,7 @@ const deserializeAws_restJson1ThemeVersionSummaryList = ( } return deserializeAws_restJson1ThemeVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TileLayoutStyle = (output: any, context: __SerdeContext): TileLayoutStyle => { @@ -18062,7 +18111,7 @@ const deserializeAws_restJson1TransformOperation = (output: any, context: __Serd }; const deserializeAws_restJson1TransformOperationList = (output: any, context: __SerdeContext): TransformOperation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18070,6 +18119,7 @@ const deserializeAws_restJson1TransformOperationList = (output: any, context: __ } return deserializeAws_restJson1TransformOperation(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1TwitterParameters = (output: any, context: __SerdeContext): TwitterParameters => { @@ -18137,7 +18187,7 @@ const deserializeAws_restJson1User = (output: any, context: __SerdeContext): Use }; const deserializeAws_restJson1UserList = (output: any, context: __SerdeContext): User[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18145,6 +18195,7 @@ const deserializeAws_restJson1UserList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1User(entry, context); }); + return retVal; }; const deserializeAws_restJson1VpcConnectionProperties = ( diff --git a/clients/client-ram/src/protocols/Aws_restJson1.ts b/clients/client-ram/src/protocols/Aws_restJson1.ts index 677ccab7d697..9818bb5605c2 100644 --- a/clients/client-ram/src/protocols/Aws_restJson1.ts +++ b/clients/client-ram/src/protocols/Aws_restJson1.ts @@ -3034,7 +3034,7 @@ const serializeAws_restJson1TagValueList = (input: string[], context: __SerdeCon }; const deserializeAws_restJson1PolicyList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3042,6 +3042,7 @@ const deserializeAws_restJson1PolicyList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Principal = (output: any, context: __SerdeContext): Principal => { @@ -3061,7 +3062,7 @@ const deserializeAws_restJson1Principal = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1PrincipalList = (output: any, context: __SerdeContext): Principal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3069,6 +3070,7 @@ const deserializeAws_restJson1PrincipalList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Principal(entry, context); }); + return retVal; }; const deserializeAws_restJson1Resource = (output: any, context: __SerdeContext): Resource => { @@ -3092,7 +3094,7 @@ const deserializeAws_restJson1Resource = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1ResourceList = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3100,6 +3102,7 @@ const deserializeAws_restJson1ResourceList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Resource(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceShare = (output: any, context: __SerdeContext): ResourceShare => { @@ -3153,7 +3156,7 @@ const deserializeAws_restJson1ResourceShareAssociationList = ( output: any, context: __SerdeContext ): ResourceShareAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3161,6 +3164,7 @@ const deserializeAws_restJson1ResourceShareAssociationList = ( } return deserializeAws_restJson1ResourceShareAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceShareInvitation = ( @@ -3190,7 +3194,7 @@ const deserializeAws_restJson1ResourceShareInvitationList = ( output: any, context: __SerdeContext ): ResourceShareInvitation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3198,10 +3202,11 @@ const deserializeAws_restJson1ResourceShareInvitationList = ( } return deserializeAws_restJson1ResourceShareInvitation(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceShareList = (output: any, context: __SerdeContext): ResourceShare[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3209,6 +3214,7 @@ const deserializeAws_restJson1ResourceShareList = (output: any, context: __Serde } return deserializeAws_restJson1ResourceShare(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceSharePermissionDetail = ( @@ -3238,7 +3244,7 @@ const deserializeAws_restJson1ResourceSharePermissionList = ( output: any, context: __SerdeContext ): ResourceSharePermissionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3246,6 +3252,7 @@ const deserializeAws_restJson1ResourceSharePermissionList = ( } return deserializeAws_restJson1ResourceSharePermissionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceSharePermissionSummary = ( @@ -3286,7 +3293,7 @@ const deserializeAws_restJson1ServiceNameAndResourceTypeList = ( output: any, context: __SerdeContext ): ServiceNameAndResourceType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3294,6 +3301,7 @@ const deserializeAws_restJson1ServiceNameAndResourceTypeList = ( } return deserializeAws_restJson1ServiceNameAndResourceType(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -3304,7 +3312,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3312,6 +3320,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-rbin/src/protocols/Aws_restJson1.ts b/clients/client-rbin/src/protocols/Aws_restJson1.ts index 903f59d33db0..04a653e6ccc0 100644 --- a/clients/client-rbin/src/protocols/Aws_restJson1.ts +++ b/clients/client-rbin/src/protocols/Aws_restJson1.ts @@ -871,7 +871,7 @@ const deserializeAws_restJson1ResourceTag = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ResourceTags = (output: any, context: __SerdeContext): ResourceTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -879,6 +879,7 @@ const deserializeAws_restJson1ResourceTags = (output: any, context: __SerdeConte } return deserializeAws_restJson1ResourceTag(entry, context); }); + return retVal; }; const deserializeAws_restJson1RetentionPeriod = (output: any, context: __SerdeContext): RetentionPeriod => { @@ -900,7 +901,7 @@ const deserializeAws_restJson1RuleSummary = (output: any, context: __SerdeContex }; const deserializeAws_restJson1RuleSummaryList = (output: any, context: __SerdeContext): RuleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -908,6 +909,7 @@ const deserializeAws_restJson1RuleSummaryList = (output: any, context: __SerdeCo } return deserializeAws_restJson1RuleSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -918,7 +920,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -926,6 +928,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-rds-data/src/protocols/Aws_restJson1.ts b/clients/client-rds-data/src/protocols/Aws_restJson1.ts index 62ef0ac89e68..d2dbb5c3eedc 100644 --- a/clients/client-rds-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-rds-data/src/protocols/Aws_restJson1.ts @@ -795,7 +795,7 @@ const serializeAws_restJson1StringArray = (input: string[], context: __SerdeCont }; const deserializeAws_restJson1ArrayOfArray = (output: any, context: __SerdeContext): ArrayValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -803,6 +803,7 @@ const deserializeAws_restJson1ArrayOfArray = (output: any, context: __SerdeConte } return deserializeAws_restJson1ArrayValue(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1ArrayValue = (output: any, context: __SerdeContext): ArrayValue => { @@ -835,7 +836,7 @@ const deserializeAws_restJson1ArrayValue = (output: any, context: __SerdeContext }; const deserializeAws_restJson1ArrayValueList = (output: any, context: __SerdeContext): Value[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -843,10 +844,11 @@ const deserializeAws_restJson1ArrayValueList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Value(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1BooleanArray = (output: any, context: __SerdeContext): boolean[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -854,6 +856,7 @@ const deserializeAws_restJson1BooleanArray = (output: any, context: __SerdeConte } return __expectBoolean(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ColumnMetadata = (output: any, context: __SerdeContext): ColumnMetadata => { @@ -876,7 +879,7 @@ const deserializeAws_restJson1ColumnMetadata = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DoubleArray = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -884,6 +887,7 @@ const deserializeAws_restJson1DoubleArray = (output: any, context: __SerdeContex } return __limitedParseDouble(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Field = (output: any, context: __SerdeContext): Field => { @@ -916,7 +920,7 @@ const deserializeAws_restJson1Field = (output: any, context: __SerdeContext): Fi }; const deserializeAws_restJson1FieldList = (output: any, context: __SerdeContext): Field[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -924,10 +928,11 @@ const deserializeAws_restJson1FieldList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Field(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1LongArray = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -935,10 +940,11 @@ const deserializeAws_restJson1LongArray = (output: any, context: __SerdeContext) } return __expectLong(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Metadata = (output: any, context: __SerdeContext): ColumnMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -946,6 +952,7 @@ const deserializeAws_restJson1Metadata = (output: any, context: __SerdeContext): } return deserializeAws_restJson1ColumnMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): _Record => { @@ -958,7 +965,7 @@ const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Records = (output: any, context: __SerdeContext): _Record[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -966,6 +973,7 @@ const deserializeAws_restJson1Records = (output: any, context: __SerdeContext): } return deserializeAws_restJson1_Record(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResultFrame = (output: any, context: __SerdeContext): ResultFrame => { @@ -992,7 +1000,7 @@ const deserializeAws_restJson1ResultSetMetadata = (output: any, context: __Serde }; const deserializeAws_restJson1Row = (output: any, context: __SerdeContext): Value[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1000,10 +1008,11 @@ const deserializeAws_restJson1Row = (output: any, context: __SerdeContext): Valu } return deserializeAws_restJson1Value(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1SqlRecords = (output: any, context: __SerdeContext): Field[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1011,6 +1020,7 @@ const deserializeAws_restJson1SqlRecords = (output: any, context: __SerdeContext } return deserializeAws_restJson1FieldList(entry, context); }); + return retVal; }; const deserializeAws_restJson1SqlStatementResult = (output: any, context: __SerdeContext): SqlStatementResult => { @@ -1024,7 +1034,7 @@ const deserializeAws_restJson1SqlStatementResult = (output: any, context: __Serd }; const deserializeAws_restJson1SqlStatementResults = (output: any, context: __SerdeContext): SqlStatementResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1032,10 +1042,11 @@ const deserializeAws_restJson1SqlStatementResults = (output: any, context: __Ser } return deserializeAws_restJson1SqlStatementResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringArray = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1043,6 +1054,7 @@ const deserializeAws_restJson1StringArray = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StructValue = (output: any, context: __SerdeContext): StructValue => { @@ -1064,7 +1076,7 @@ const deserializeAws_restJson1UpdateResult = (output: any, context: __SerdeConte }; const deserializeAws_restJson1UpdateResults = (output: any, context: __SerdeContext): UpdateResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1072,6 +1084,7 @@ const deserializeAws_restJson1UpdateResults = (output: any, context: __SerdeCont } return deserializeAws_restJson1UpdateResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1Value = (output: any, context: __SerdeContext): Value => { diff --git a/clients/client-redshift-data/src/protocols/Aws_json1_1.ts b/clients/client-redshift-data/src/protocols/Aws_json1_1.ts index c29e67cc0e5e..5756359c8787 100644 --- a/clients/client-redshift-data/src/protocols/Aws_json1_1.ts +++ b/clients/client-redshift-data/src/protocols/Aws_json1_1.ts @@ -979,7 +979,7 @@ const deserializeAws_json1_1CancelStatementResponse = ( }; const deserializeAws_json1_1ColumnList = (output: any, context: __SerdeContext): ColumnMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -987,6 +987,7 @@ const deserializeAws_json1_1ColumnList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1ColumnMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1ColumnMetadata = (output: any, context: __SerdeContext): ColumnMetadata => { @@ -1008,7 +1009,7 @@ const deserializeAws_json1_1ColumnMetadata = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ColumnMetadataList = (output: any, context: __SerdeContext): ColumnMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1016,6 +1017,7 @@ const deserializeAws_json1_1ColumnMetadataList = (output: any, context: __SerdeC } return deserializeAws_json1_1ColumnMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatabaseConnectionException = ( @@ -1028,7 +1030,7 @@ const deserializeAws_json1_1DatabaseConnectionException = ( }; const deserializeAws_json1_1DatabaseList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1036,6 +1038,7 @@ const deserializeAws_json1_1DatabaseList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DescribeStatementResponse = ( @@ -1136,7 +1139,7 @@ const deserializeAws_json1_1Field = (output: any, context: __SerdeContext): Fiel }; const deserializeAws_json1_1FieldList = (output: any, context: __SerdeContext): Field[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1144,6 +1147,7 @@ const deserializeAws_json1_1FieldList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Field(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_json1_1GetStatementResultResponse = ( @@ -1224,7 +1228,7 @@ const deserializeAws_json1_1ResourceNotFoundException = ( }; const deserializeAws_json1_1SchemaList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1232,6 +1236,7 @@ const deserializeAws_json1_1SchemaList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SqlParameter = (output: any, context: __SerdeContext): SqlParameter => { @@ -1242,7 +1247,7 @@ const deserializeAws_json1_1SqlParameter = (output: any, context: __SerdeContext }; const deserializeAws_json1_1SqlParametersList = (output: any, context: __SerdeContext): SqlParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1250,10 +1255,11 @@ const deserializeAws_json1_1SqlParametersList = (output: any, context: __SerdeCo } return deserializeAws_json1_1SqlParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1SqlRecords = (output: any, context: __SerdeContext): Field[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1261,6 +1267,7 @@ const deserializeAws_json1_1SqlRecords = (output: any, context: __SerdeContext): } return deserializeAws_json1_1FieldList(entry, context); }); + return retVal; }; const deserializeAws_json1_1StatementData = (output: any, context: __SerdeContext): StatementData => { @@ -1291,7 +1298,7 @@ const deserializeAws_json1_1StatementData = (output: any, context: __SerdeContex }; const deserializeAws_json1_1StatementList = (output: any, context: __SerdeContext): StatementData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1299,10 +1306,11 @@ const deserializeAws_json1_1StatementList = (output: any, context: __SerdeContex } return deserializeAws_json1_1StatementData(entry, context); }); + return retVal; }; const deserializeAws_json1_1StatementStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1310,6 +1318,7 @@ const deserializeAws_json1_1StatementStringList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SubStatementData = (output: any, context: __SerdeContext): SubStatementData => { @@ -1335,7 +1344,7 @@ const deserializeAws_json1_1SubStatementData = (output: any, context: __SerdeCon }; const deserializeAws_json1_1SubStatementList = (output: any, context: __SerdeContext): SubStatementData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1343,10 +1352,11 @@ const deserializeAws_json1_1SubStatementList = (output: any, context: __SerdeCon } return deserializeAws_json1_1SubStatementData(entry, context); }); + return retVal; }; const deserializeAws_json1_1TableList = (output: any, context: __SerdeContext): TableMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1354,6 +1364,7 @@ const deserializeAws_json1_1TableList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1TableMember(entry, context); }); + return retVal; }; const deserializeAws_json1_1TableMember = (output: any, context: __SerdeContext): TableMember => { diff --git a/clients/client-rekognition/src/protocols/Aws_json1_1.ts b/clients/client-rekognition/src/protocols/Aws_json1_1.ts index dd85079ceddc..eed18af2ab28 100644 --- a/clients/client-rekognition/src/protocols/Aws_json1_1.ts +++ b/clients/client-rekognition/src/protocols/Aws_json1_1.ts @@ -6135,7 +6135,7 @@ const deserializeAws_json1_1Asset = (output: any, context: __SerdeContext): Asse }; const deserializeAws_json1_1Assets = (output: any, context: __SerdeContext): Asset[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6143,6 +6143,7 @@ const deserializeAws_json1_1Assets = (output: any, context: __SerdeContext): Ass } return deserializeAws_json1_1Asset(entry, context); }); + return retVal; }; const deserializeAws_json1_1AudioMetadata = (output: any, context: __SerdeContext): AudioMetadata => { @@ -6155,7 +6156,7 @@ const deserializeAws_json1_1AudioMetadata = (output: any, context: __SerdeContex }; const deserializeAws_json1_1AudioMetadataList = (output: any, context: __SerdeContext): AudioMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6163,6 +6164,7 @@ const deserializeAws_json1_1AudioMetadataList = (output: any, context: __SerdeCo } return deserializeAws_json1_1AudioMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1Beard = (output: any, context: __SerdeContext): Beard => { @@ -6173,7 +6175,7 @@ const deserializeAws_json1_1Beard = (output: any, context: __SerdeContext): Bear }; const deserializeAws_json1_1BodyParts = (output: any, context: __SerdeContext): ProtectiveEquipmentBodyPart[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6181,6 +6183,7 @@ const deserializeAws_json1_1BodyParts = (output: any, context: __SerdeContext): } return deserializeAws_json1_1ProtectiveEquipmentBodyPart(entry, context); }); + return retVal; }; const deserializeAws_json1_1BoundingBox = (output: any, context: __SerdeContext): BoundingBox => { @@ -6233,7 +6236,7 @@ const deserializeAws_json1_1CelebrityDetail = (output: any, context: __SerdeCont }; const deserializeAws_json1_1CelebrityList = (output: any, context: __SerdeContext): Celebrity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6241,6 +6244,7 @@ const deserializeAws_json1_1CelebrityList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Celebrity(entry, context); }); + return retVal; }; const deserializeAws_json1_1CelebrityRecognition = (output: any, context: __SerdeContext): CelebrityRecognition => { @@ -6254,7 +6258,7 @@ const deserializeAws_json1_1CelebrityRecognition = (output: any, context: __Serd }; const deserializeAws_json1_1CelebrityRecognitions = (output: any, context: __SerdeContext): CelebrityRecognition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6262,10 +6266,11 @@ const deserializeAws_json1_1CelebrityRecognitions = (output: any, context: __Ser } return deserializeAws_json1_1CelebrityRecognition(entry, context); }); + return retVal; }; const deserializeAws_json1_1CollectionIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6273,6 +6278,7 @@ const deserializeAws_json1_1CollectionIdList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ComparedFace = (output: any, context: __SerdeContext): ComparedFace => { @@ -6304,7 +6310,7 @@ const deserializeAws_json1_1ComparedFace = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ComparedFaceList = (output: any, context: __SerdeContext): ComparedFace[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6312,6 +6318,7 @@ const deserializeAws_json1_1ComparedFaceList = (output: any, context: __SerdeCon } return deserializeAws_json1_1ComparedFace(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComparedSourceImageFace = ( @@ -6338,7 +6345,7 @@ const deserializeAws_json1_1CompareFacesMatch = (output: any, context: __SerdeCo }; const deserializeAws_json1_1CompareFacesMatchList = (output: any, context: __SerdeContext): CompareFacesMatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6346,6 +6353,7 @@ const deserializeAws_json1_1CompareFacesMatchList = (output: any, context: __Ser } return deserializeAws_json1_1CompareFacesMatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1CompareFacesResponse = (output: any, context: __SerdeContext): CompareFacesResponse => { @@ -6368,7 +6376,7 @@ const deserializeAws_json1_1CompareFacesResponse = (output: any, context: __Serd }; const deserializeAws_json1_1CompareFacesUnmatchList = (output: any, context: __SerdeContext): ComparedFace[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6376,6 +6384,7 @@ const deserializeAws_json1_1CompareFacesUnmatchList = (output: any, context: __S } return deserializeAws_json1_1ComparedFace(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContentModerationDetection = ( @@ -6395,7 +6404,7 @@ const deserializeAws_json1_1ContentModerationDetections = ( output: any, context: __SerdeContext ): ContentModerationDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6403,6 +6412,7 @@ const deserializeAws_json1_1ContentModerationDetections = ( } return deserializeAws_json1_1ContentModerationDetection(entry, context); }); + return retVal; }; const deserializeAws_json1_1CoversBodyPart = (output: any, context: __SerdeContext): CoversBodyPart => { @@ -6465,7 +6475,7 @@ const deserializeAws_json1_1CustomLabel = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1CustomLabels = (output: any, context: __SerdeContext): CustomLabel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6473,6 +6483,7 @@ const deserializeAws_json1_1CustomLabels = (output: any, context: __SerdeContext } return deserializeAws_json1_1CustomLabel(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetDescription = (output: any, context: __SerdeContext): DatasetDescription => { @@ -6496,7 +6507,7 @@ const deserializeAws_json1_1DatasetDescription = (output: any, context: __SerdeC }; const deserializeAws_json1_1DatasetEntries = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6504,6 +6515,7 @@ const deserializeAws_json1_1DatasetEntries = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DatasetLabelDescription = ( @@ -6523,7 +6535,7 @@ const deserializeAws_json1_1DatasetLabelDescriptions = ( output: any, context: __SerdeContext ): DatasetLabelDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6531,6 +6543,7 @@ const deserializeAws_json1_1DatasetLabelDescriptions = ( } return deserializeAws_json1_1DatasetLabelDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetLabelStats = (output: any, context: __SerdeContext): DatasetLabelStats => { @@ -6555,7 +6568,7 @@ const deserializeAws_json1_1DatasetMetadata = (output: any, context: __SerdeCont }; const deserializeAws_json1_1DatasetMetadataList = (output: any, context: __SerdeContext): DatasetMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6563,6 +6576,7 @@ const deserializeAws_json1_1DatasetMetadataList = (output: any, context: __Serde } return deserializeAws_json1_1DatasetMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1DatasetStats = (output: any, context: __SerdeContext): DatasetStats => { @@ -6796,7 +6810,7 @@ const deserializeAws_json1_1Emotion = (output: any, context: __SerdeContext): Em }; const deserializeAws_json1_1Emotions = (output: any, context: __SerdeContext): Emotion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6804,6 +6818,7 @@ const deserializeAws_json1_1Emotions = (output: any, context: __SerdeContext): E } return deserializeAws_json1_1Emotion(entry, context); }); + return retVal; }; const deserializeAws_json1_1EquipmentDetection = (output: any, context: __SerdeContext): EquipmentDetection => { @@ -6822,7 +6837,7 @@ const deserializeAws_json1_1EquipmentDetection = (output: any, context: __SerdeC }; const deserializeAws_json1_1EquipmentDetections = (output: any, context: __SerdeContext): EquipmentDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6830,6 +6845,7 @@ const deserializeAws_json1_1EquipmentDetections = (output: any, context: __Serde } return deserializeAws_json1_1EquipmentDetection(entry, context); }); + return retVal; }; const deserializeAws_json1_1EvaluationResult = (output: any, context: __SerdeContext): EvaluationResult => { @@ -6931,7 +6947,7 @@ const deserializeAws_json1_1FaceDetail = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1FaceDetailList = (output: any, context: __SerdeContext): FaceDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6939,6 +6955,7 @@ const deserializeAws_json1_1FaceDetailList = (output: any, context: __SerdeConte } return deserializeAws_json1_1FaceDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1FaceDetection = (output: any, context: __SerdeContext): FaceDetection => { @@ -6952,7 +6969,7 @@ const deserializeAws_json1_1FaceDetection = (output: any, context: __SerdeContex }; const deserializeAws_json1_1FaceDetections = (output: any, context: __SerdeContext): FaceDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6960,10 +6977,11 @@ const deserializeAws_json1_1FaceDetections = (output: any, context: __SerdeConte } return deserializeAws_json1_1FaceDetection(entry, context); }); + return retVal; }; const deserializeAws_json1_1FaceIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6971,10 +6989,11 @@ const deserializeAws_json1_1FaceIdList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FaceList = (output: any, context: __SerdeContext): Face[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6982,6 +7001,7 @@ const deserializeAws_json1_1FaceList = (output: any, context: __SerdeContext): F } return deserializeAws_json1_1Face(entry, context); }); + return retVal; }; const deserializeAws_json1_1FaceMatch = (output: any, context: __SerdeContext): FaceMatch => { @@ -6993,7 +7013,7 @@ const deserializeAws_json1_1FaceMatch = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1FaceMatchList = (output: any, context: __SerdeContext): FaceMatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7001,10 +7021,11 @@ const deserializeAws_json1_1FaceMatchList = (output: any, context: __SerdeContex } return deserializeAws_json1_1FaceMatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1FaceModelVersionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7012,6 +7033,7 @@ const deserializeAws_json1_1FaceModelVersionList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FaceRecord = (output: any, context: __SerdeContext): FaceRecord => { @@ -7026,7 +7048,7 @@ const deserializeAws_json1_1FaceRecord = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1FaceRecordList = (output: any, context: __SerdeContext): FaceRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7034,6 +7056,7 @@ const deserializeAws_json1_1FaceRecordList = (output: any, context: __SerdeConte } return deserializeAws_json1_1FaceRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1FaceSearchSettings = (output: any, context: __SerdeContext): FaceSearchSettings => { @@ -7266,7 +7289,7 @@ const deserializeAws_json1_1HumanLoopActivationOutput = ( }; const deserializeAws_json1_1HumanLoopActivationReasons = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7274,6 +7297,7 @@ const deserializeAws_json1_1HumanLoopActivationReasons = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1HumanLoopQuotaExceededException = ( @@ -7342,7 +7366,7 @@ const deserializeAws_json1_1Instance = (output: any, context: __SerdeContext): I }; const deserializeAws_json1_1Instances = (output: any, context: __SerdeContext): Instance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7350,6 +7374,7 @@ const deserializeAws_json1_1Instances = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Instance(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalServerError = (output: any, context: __SerdeContext): InternalServerError => { @@ -7448,7 +7473,7 @@ const deserializeAws_json1_1LabelDetection = (output: any, context: __SerdeConte }; const deserializeAws_json1_1LabelDetections = (output: any, context: __SerdeContext): LabelDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7456,10 +7481,11 @@ const deserializeAws_json1_1LabelDetections = (output: any, context: __SerdeCont } return deserializeAws_json1_1LabelDetection(entry, context); }); + return retVal; }; const deserializeAws_json1_1Labels = (output: any, context: __SerdeContext): Label[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7467,6 +7493,7 @@ const deserializeAws_json1_1Labels = (output: any, context: __SerdeContext): Lab } return deserializeAws_json1_1Label(entry, context); }); + return retVal; }; const deserializeAws_json1_1Landmark = (output: any, context: __SerdeContext): Landmark => { @@ -7478,7 +7505,7 @@ const deserializeAws_json1_1Landmark = (output: any, context: __SerdeContext): L }; const deserializeAws_json1_1Landmarks = (output: any, context: __SerdeContext): Landmark[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7486,6 +7513,7 @@ const deserializeAws_json1_1Landmarks = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Landmark(entry, context); }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -7584,7 +7612,7 @@ const deserializeAws_json1_1ModerationLabel = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ModerationLabels = (output: any, context: __SerdeContext): ModerationLabel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7592,6 +7620,7 @@ const deserializeAws_json1_1ModerationLabels = (output: any, context: __SerdeCon } return deserializeAws_json1_1ModerationLabel(entry, context); }); + return retVal; }; const deserializeAws_json1_1MouthOpen = (output: any, context: __SerdeContext): MouthOpen => { @@ -7622,7 +7651,7 @@ const deserializeAws_json1_1Parent = (output: any, context: __SerdeContext): Par }; const deserializeAws_json1_1Parents = (output: any, context: __SerdeContext): Parent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7630,6 +7659,7 @@ const deserializeAws_json1_1Parents = (output: any, context: __SerdeContext): Pa } return deserializeAws_json1_1Parent(entry, context); }); + return retVal; }; const deserializeAws_json1_1PersonDetail = (output: any, context: __SerdeContext): PersonDetail => { @@ -7657,7 +7687,7 @@ const deserializeAws_json1_1PersonDetection = (output: any, context: __SerdeCont }; const deserializeAws_json1_1PersonDetections = (output: any, context: __SerdeContext): PersonDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7665,6 +7695,7 @@ const deserializeAws_json1_1PersonDetections = (output: any, context: __SerdeCon } return deserializeAws_json1_1PersonDetection(entry, context); }); + return retVal; }; const deserializeAws_json1_1PersonMatch = (output: any, context: __SerdeContext): PersonMatch => { @@ -7682,7 +7713,7 @@ const deserializeAws_json1_1PersonMatch = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1PersonMatches = (output: any, context: __SerdeContext): PersonMatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7690,6 +7721,7 @@ const deserializeAws_json1_1PersonMatches = (output: any, context: __SerdeContex } return deserializeAws_json1_1PersonMatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1Point = (output: any, context: __SerdeContext): Point => { @@ -7700,7 +7732,7 @@ const deserializeAws_json1_1Point = (output: any, context: __SerdeContext): Poin }; const deserializeAws_json1_1Polygon = (output: any, context: __SerdeContext): Point[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7708,6 +7740,7 @@ const deserializeAws_json1_1Polygon = (output: any, context: __SerdeContext): Po } return deserializeAws_json1_1Point(entry, context); }); + return retVal; }; const deserializeAws_json1_1Pose = (output: any, context: __SerdeContext): Pose => { @@ -7734,7 +7767,7 @@ const deserializeAws_json1_1ProjectDescription = (output: any, context: __SerdeC }; const deserializeAws_json1_1ProjectDescriptions = (output: any, context: __SerdeContext): ProjectDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7742,6 +7775,7 @@ const deserializeAws_json1_1ProjectDescriptions = (output: any, context: __Serde } return deserializeAws_json1_1ProjectDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProjectVersionDescription = ( @@ -7790,7 +7824,7 @@ const deserializeAws_json1_1ProjectVersionDescriptions = ( output: any, context: __SerdeContext ): ProjectVersionDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7798,6 +7832,7 @@ const deserializeAws_json1_1ProjectVersionDescriptions = ( } return deserializeAws_json1_1ProjectVersionDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProtectiveEquipmentBodyPart = ( @@ -7833,7 +7868,7 @@ const deserializeAws_json1_1ProtectiveEquipmentPerson = ( }; const deserializeAws_json1_1ProtectiveEquipmentPersonIds = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7841,13 +7876,14 @@ const deserializeAws_json1_1ProtectiveEquipmentPersonIds = (output: any, context } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProtectiveEquipmentPersons = ( output: any, context: __SerdeContext ): ProtectiveEquipmentPerson[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7855,6 +7891,7 @@ const deserializeAws_json1_1ProtectiveEquipmentPersons = ( } return deserializeAws_json1_1ProtectiveEquipmentPerson(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProtectiveEquipmentSummary = ( @@ -7889,7 +7926,7 @@ const deserializeAws_json1_1ProvisionedThroughputExceededException = ( }; const deserializeAws_json1_1Reasons = (output: any, context: __SerdeContext): (Reason | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7897,6 +7934,7 @@ const deserializeAws_json1_1Reasons = (output: any, context: __SerdeContext): (R } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RecognizeCelebritiesResponse = ( @@ -8018,7 +8056,7 @@ const deserializeAws_json1_1SegmentDetection = (output: any, context: __SerdeCon }; const deserializeAws_json1_1SegmentDetections = (output: any, context: __SerdeContext): SegmentDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8026,6 +8064,7 @@ const deserializeAws_json1_1SegmentDetections = (output: any, context: __SerdeCo } return deserializeAws_json1_1SegmentDetection(entry, context); }); + return retVal; }; const deserializeAws_json1_1SegmentTypeInfo = (output: any, context: __SerdeContext): SegmentTypeInfo => { @@ -8036,7 +8075,7 @@ const deserializeAws_json1_1SegmentTypeInfo = (output: any, context: __SerdeCont }; const deserializeAws_json1_1SegmentTypesInfo = (output: any, context: __SerdeContext): SegmentTypeInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8044,6 +8083,7 @@ const deserializeAws_json1_1SegmentTypesInfo = (output: any, context: __SerdeCon } return deserializeAws_json1_1SegmentTypeInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceQuotaExceededException = ( @@ -8192,7 +8232,7 @@ const deserializeAws_json1_1StreamProcessorInput = (output: any, context: __Serd }; const deserializeAws_json1_1StreamProcessorList = (output: any, context: __SerdeContext): StreamProcessor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8200,6 +8240,7 @@ const deserializeAws_json1_1StreamProcessorList = (output: any, context: __Serde } return deserializeAws_json1_1StreamProcessor(entry, context); }); + return retVal; }; const deserializeAws_json1_1StreamProcessorOutput = (output: any, context: __SerdeContext): StreamProcessorOutput => { @@ -8304,7 +8345,7 @@ const deserializeAws_json1_1TextDetection = (output: any, context: __SerdeContex }; const deserializeAws_json1_1TextDetectionList = (output: any, context: __SerdeContext): TextDetection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8312,6 +8353,7 @@ const deserializeAws_json1_1TextDetectionList = (output: any, context: __SerdeCo } return deserializeAws_json1_1TextDetection(entry, context); }); + return retVal; }; const deserializeAws_json1_1TextDetectionResult = (output: any, context: __SerdeContext): TextDetectionResult => { @@ -8325,7 +8367,7 @@ const deserializeAws_json1_1TextDetectionResult = (output: any, context: __Serde }; const deserializeAws_json1_1TextDetectionResults = (output: any, context: __SerdeContext): TextDetectionResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8333,6 +8375,7 @@ const deserializeAws_json1_1TextDetectionResults = (output: any, context: __Serd } return deserializeAws_json1_1TextDetectionResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { @@ -8383,7 +8426,7 @@ const deserializeAws_json1_1UnindexedFace = (output: any, context: __SerdeContex }; const deserializeAws_json1_1UnindexedFaces = (output: any, context: __SerdeContext): UnindexedFace[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8391,6 +8434,7 @@ const deserializeAws_json1_1UnindexedFaces = (output: any, context: __SerdeConte } return deserializeAws_json1_1UnindexedFace(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => { @@ -8405,7 +8449,7 @@ const deserializeAws_json1_1UpdateDatasetEntriesResponse = ( }; const deserializeAws_json1_1Urls = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8413,6 +8457,7 @@ const deserializeAws_json1_1Urls = (output: any, context: __SerdeContext): strin } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ValidationData = (output: any, context: __SerdeContext): ValidationData => { @@ -8437,7 +8482,7 @@ const deserializeAws_json1_1VideoMetadata = (output: any, context: __SerdeContex }; const deserializeAws_json1_1VideoMetadataList = (output: any, context: __SerdeContext): VideoMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8445,6 +8490,7 @@ const deserializeAws_json1_1VideoMetadataList = (output: any, context: __SerdeCo } return deserializeAws_json1_1VideoMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1VideoTooLargeException = (output: any, context: __SerdeContext): VideoTooLargeException => { diff --git a/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts b/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts index 3ba317192b95..35ed9210fe7c 100644 --- a/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts +++ b/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts @@ -3955,7 +3955,7 @@ const deserializeAws_restJson1AlarmRecommendationList = ( output: any, context: __SerdeContext ): AlarmRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3963,6 +3963,7 @@ const deserializeAws_restJson1AlarmRecommendationList = ( } return deserializeAws_restJson1AlarmRecommendation(entry, context); }); + return retVal; }; const deserializeAws_restJson1App = (output: any, context: __SerdeContext): App => { @@ -4064,7 +4065,7 @@ const deserializeAws_restJson1AppAssessmentSummaryList = ( output: any, context: __SerdeContext ): AppAssessmentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4072,6 +4073,7 @@ const deserializeAws_restJson1AppAssessmentSummaryList = ( } return deserializeAws_restJson1AppAssessmentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppComponent = (output: any, context: __SerdeContext): AppComponent => { @@ -4105,7 +4107,7 @@ const deserializeAws_restJson1AppComponentCompliance = ( }; const deserializeAws_restJson1AppComponentList = (output: any, context: __SerdeContext): AppComponent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4113,6 +4115,7 @@ const deserializeAws_restJson1AppComponentList = (output: any, context: __SerdeC } return deserializeAws_restJson1AppComponent(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppSummary = (output: any, context: __SerdeContext): AppSummary => { @@ -4130,7 +4133,7 @@ const deserializeAws_restJson1AppSummary = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AppSummaryList = (output: any, context: __SerdeContext): AppSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4138,10 +4141,11 @@ const deserializeAws_restJson1AppSummaryList = (output: any, context: __SerdeCon } return deserializeAws_restJson1AppSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppVersionList = (output: any, context: __SerdeContext): AppVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4149,6 +4153,7 @@ const deserializeAws_restJson1AppVersionList = (output: any, context: __SerdeCon } return deserializeAws_restJson1AppVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AppVersionSummary = (output: any, context: __SerdeContext): AppVersionSummary => { @@ -4158,7 +4163,7 @@ const deserializeAws_restJson1AppVersionSummary = (output: any, context: __Serde }; const deserializeAws_restJson1ArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4166,6 +4171,7 @@ const deserializeAws_restJson1ArnList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AssessmentCompliance = ( @@ -4190,7 +4196,7 @@ const deserializeAws_restJson1ComponentCompliancesList = ( output: any, context: __SerdeContext ): AppComponentCompliance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4198,6 +4204,7 @@ const deserializeAws_restJson1ComponentCompliancesList = ( } return deserializeAws_restJson1AppComponentCompliance(entry, context); }); + return retVal; }; const deserializeAws_restJson1ComponentRecommendation = ( @@ -4218,7 +4225,7 @@ const deserializeAws_restJson1ComponentRecommendationList = ( output: any, context: __SerdeContext ): ComponentRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4226,6 +4233,7 @@ const deserializeAws_restJson1ComponentRecommendationList = ( } return deserializeAws_restJson1ComponentRecommendation(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConfigRecommendation = (output: any, context: __SerdeContext): ConfigRecommendation => { @@ -4259,7 +4267,7 @@ const deserializeAws_restJson1ConfigRecommendationList = ( output: any, context: __SerdeContext ): ConfigRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4267,6 +4275,7 @@ const deserializeAws_restJson1ConfigRecommendationList = ( } return deserializeAws_restJson1ConfigRecommendation(entry, context); }); + return retVal; }; const deserializeAws_restJson1Cost = (output: any, context: __SerdeContext): Cost => { @@ -4372,7 +4381,7 @@ const deserializeAws_restJson1PhysicalResourceId = (output: any, context: __Serd }; const deserializeAws_restJson1PhysicalResourceList = (output: any, context: __SerdeContext): PhysicalResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4380,6 +4389,7 @@ const deserializeAws_restJson1PhysicalResourceList = (output: any, context: __Se } return deserializeAws_restJson1PhysicalResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationCompliance = ( @@ -4414,7 +4424,7 @@ const deserializeAws_restJson1RecommendationDisruptionCompliance = ( }; const deserializeAws_restJson1RecommendationIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4422,6 +4432,7 @@ const deserializeAws_restJson1RecommendationIdList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RecommendationItem = (output: any, context: __SerdeContext): RecommendationItem => { @@ -4434,7 +4445,7 @@ const deserializeAws_restJson1RecommendationItem = (output: any, context: __Serd }; const deserializeAws_restJson1RecommendationItemList = (output: any, context: __SerdeContext): RecommendationItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4442,6 +4453,7 @@ const deserializeAws_restJson1RecommendationItemList = (output: any, context: __ } return deserializeAws_restJson1RecommendationItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationTemplate = ( @@ -4488,7 +4500,7 @@ const deserializeAws_restJson1RecommendationTemplateList = ( output: any, context: __SerdeContext ): RecommendationTemplate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4496,13 +4508,14 @@ const deserializeAws_restJson1RecommendationTemplateList = ( } return deserializeAws_restJson1RecommendationTemplate(entry, context); }); + return retVal; }; const deserializeAws_restJson1RenderRecommendationTypeList = ( output: any, context: __SerdeContext ): (RenderRecommendationType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4510,10 +4523,11 @@ const deserializeAws_restJson1RenderRecommendationTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResiliencyPolicies = (output: any, context: __SerdeContext): ResiliencyPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4521,6 +4535,7 @@ const deserializeAws_restJson1ResiliencyPolicies = (output: any, context: __Serd } return deserializeAws_restJson1ResiliencyPolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResiliencyPolicy = (output: any, context: __SerdeContext): ResiliencyPolicy => { @@ -4571,7 +4586,7 @@ const deserializeAws_restJson1ResourceMapping = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ResourceMappingList = (output: any, context: __SerdeContext): ResourceMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4579,6 +4594,7 @@ const deserializeAws_restJson1ResourceMappingList = (output: any, context: __Ser } return deserializeAws_restJson1ResourceMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3Location = (output: any, context: __SerdeContext): S3Location => { @@ -4605,7 +4621,7 @@ const deserializeAws_restJson1SopRecommendation = (output: any, context: __Serde }; const deserializeAws_restJson1SopRecommendationList = (output: any, context: __SerdeContext): SopRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4613,10 +4629,11 @@ const deserializeAws_restJson1SopRecommendationList = (output: any, context: __S } return deserializeAws_restJson1SopRecommendation(entry, context); }); + return retVal; }; const deserializeAws_restJson1SuggestedChangesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4624,6 +4641,7 @@ const deserializeAws_restJson1SuggestedChangesList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -4657,7 +4675,7 @@ const deserializeAws_restJson1TestRecommendation = (output: any, context: __Serd }; const deserializeAws_restJson1TestRecommendationList = (output: any, context: __SerdeContext): TestRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4665,6 +4683,7 @@ const deserializeAws_restJson1TestRecommendationList = (output: any, context: __ } return deserializeAws_restJson1TestRecommendation(entry, context); }); + return retVal; }; const deserializeAws_restJson1UnsupportedResource = (output: any, context: __SerdeContext): UnsupportedResource => { @@ -4685,7 +4704,7 @@ const deserializeAws_restJson1UnsupportedResourceList = ( output: any, context: __SerdeContext ): UnsupportedResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4693,6 +4712,7 @@ const deserializeAws_restJson1UnsupportedResourceList = ( } return deserializeAws_restJson1UnsupportedResource(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-resource-groups-tagging-api/src/protocols/Aws_json1_1.ts b/clients/client-resource-groups-tagging-api/src/protocols/Aws_json1_1.ts index 0f3f9320649b..83dac3779f8d 100644 --- a/clients/client-resource-groups-tagging-api/src/protocols/Aws_json1_1.ts +++ b/clients/client-resource-groups-tagging-api/src/protocols/Aws_json1_1.ts @@ -1045,7 +1045,7 @@ const deserializeAws_json1_1ResourceTagMapping = (output: any, context: __SerdeC }; const deserializeAws_json1_1ResourceTagMappingList = (output: any, context: __SerdeContext): ResourceTagMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1053,6 +1053,7 @@ const deserializeAws_json1_1ResourceTagMappingList = (output: any, context: __Se } return deserializeAws_json1_1ResourceTagMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartReportCreationOutput = ( @@ -1074,7 +1075,7 @@ const deserializeAws_json1_1Summary = (output: any, context: __SerdeContext): Su }; const deserializeAws_json1_1SummaryList = (output: any, context: __SerdeContext): Summary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1082,6 +1083,7 @@ const deserializeAws_json1_1SummaryList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Summary(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -1092,7 +1094,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagKeyList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1100,10 +1102,11 @@ const deserializeAws_json1_1TagKeyList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1111,6 +1114,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourcesOutput = (output: any, context: __SerdeContext): TagResourcesOutput => { @@ -1123,7 +1127,7 @@ const deserializeAws_json1_1TagResourcesOutput = (output: any, context: __SerdeC }; const deserializeAws_json1_1TagValuesOutputList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1131,6 +1135,7 @@ const deserializeAws_json1_1TagValuesOutputList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ThrottledException = (output: any, context: __SerdeContext): ThrottledException => { diff --git a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts index 912c31b66c84..6733bbe0b204 100644 --- a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts @@ -1804,7 +1804,7 @@ const deserializeAws_restJson1FailedResource = (output: any, context: __SerdeCon }; const deserializeAws_restJson1FailedResourceList = (output: any, context: __SerdeContext): FailedResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1812,6 +1812,7 @@ const deserializeAws_restJson1FailedResourceList = (output: any, context: __Serd } return deserializeAws_restJson1FailedResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1Group = (output: any, context: __SerdeContext): Group => { @@ -1854,7 +1855,7 @@ const deserializeAws_restJson1GroupConfigurationList = ( output: any, context: __SerdeContext ): GroupConfigurationItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1862,6 +1863,7 @@ const deserializeAws_restJson1GroupConfigurationList = ( } return deserializeAws_restJson1GroupConfigurationItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1GroupConfigurationParameter = ( @@ -1881,7 +1883,7 @@ const deserializeAws_restJson1GroupConfigurationParameterValueList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1889,6 +1891,7 @@ const deserializeAws_restJson1GroupConfigurationParameterValueList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1GroupIdentifier = (output: any, context: __SerdeContext): GroupIdentifier => { @@ -1899,7 +1902,7 @@ const deserializeAws_restJson1GroupIdentifier = (output: any, context: __SerdeCo }; const deserializeAws_restJson1GroupIdentifierList = (output: any, context: __SerdeContext): GroupIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1907,10 +1910,11 @@ const deserializeAws_restJson1GroupIdentifierList = (output: any, context: __Ser } return deserializeAws_restJson1GroupIdentifier(entry, context); }); + return retVal; }; const deserializeAws_restJson1GroupList = (output: any, context: __SerdeContext): Group[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1918,13 +1922,14 @@ const deserializeAws_restJson1GroupList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Group(entry, context); }); + return retVal; }; const deserializeAws_restJson1GroupParameterList = ( output: any, context: __SerdeContext ): GroupConfigurationParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1932,6 +1937,7 @@ const deserializeAws_restJson1GroupParameterList = ( } return deserializeAws_restJson1GroupConfigurationParameter(entry, context); }); + return retVal; }; const deserializeAws_restJson1GroupQuery = (output: any, context: __SerdeContext): GroupQuery => { @@ -1964,7 +1970,7 @@ const deserializeAws_restJson1ListGroupResourcesItemList = ( output: any, context: __SerdeContext ): ListGroupResourcesItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1972,6 +1978,7 @@ const deserializeAws_restJson1ListGroupResourcesItemList = ( } return deserializeAws_restJson1ListGroupResourcesItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1PendingResource = (output: any, context: __SerdeContext): PendingResource => { @@ -1981,7 +1988,7 @@ const deserializeAws_restJson1PendingResource = (output: any, context: __SerdeCo }; const deserializeAws_restJson1PendingResourceList = (output: any, context: __SerdeContext): PendingResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1989,6 +1996,7 @@ const deserializeAws_restJson1PendingResourceList = (output: any, context: __Ser } return deserializeAws_restJson1PendingResource(entry, context); }); + return retVal; }; const deserializeAws_restJson1QueryError = (output: any, context: __SerdeContext): QueryError => { @@ -1999,7 +2007,7 @@ const deserializeAws_restJson1QueryError = (output: any, context: __SerdeContext }; const deserializeAws_restJson1QueryErrorList = (output: any, context: __SerdeContext): QueryError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2007,10 +2015,11 @@ const deserializeAws_restJson1QueryErrorList = (output: any, context: __SerdeCon } return deserializeAws_restJson1QueryError(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2018,6 +2027,7 @@ const deserializeAws_restJson1ResourceArnList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResourceIdentifier = (output: any, context: __SerdeContext): ResourceIdentifier => { @@ -2028,7 +2038,7 @@ const deserializeAws_restJson1ResourceIdentifier = (output: any, context: __Serd }; const deserializeAws_restJson1ResourceIdentifierList = (output: any, context: __SerdeContext): ResourceIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2036,6 +2046,7 @@ const deserializeAws_restJson1ResourceIdentifierList = (output: any, context: __ } return deserializeAws_restJson1ResourceIdentifier(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceQuery = (output: any, context: __SerdeContext): ResourceQuery => { @@ -2052,7 +2063,7 @@ const deserializeAws_restJson1ResourceStatus = (output: any, context: __SerdeCon }; const deserializeAws_restJson1TagKeyList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2060,6 +2071,7 @@ const deserializeAws_restJson1TagKeyList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-robomaker/src/protocols/Aws_restJson1.ts b/clients/client-robomaker/src/protocols/Aws_restJson1.ts index 1f2e4fcd38c2..3416102240df 100644 --- a/clients/client-robomaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-robomaker/src/protocols/Aws_restJson1.ts @@ -6597,7 +6597,7 @@ const serializeAws_restJson1WorldCount = (input: WorldCount, context: __SerdeCon }; const deserializeAws_restJson1Arns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6605,6 +6605,7 @@ const deserializeAws_restJson1Arns = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BatchPolicy = (output: any, context: __SerdeContext): BatchPolicy => { @@ -6615,7 +6616,7 @@ const deserializeAws_restJson1BatchPolicy = (output: any, context: __SerdeContex }; const deserializeAws_restJson1CommandList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6623,6 +6624,7 @@ const deserializeAws_restJson1CommandList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Compute = (output: any, context: __SerdeContext): Compute => { @@ -6645,7 +6647,7 @@ const deserializeAws_restJson1CreateSimulationJobRequests = ( output: any, context: __SerdeContext ): SimulationJobRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6653,6 +6655,7 @@ const deserializeAws_restJson1CreateSimulationJobRequests = ( } return deserializeAws_restJson1SimulationJobRequest(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataSource = (output: any, context: __SerdeContext): DataSource => { @@ -6682,7 +6685,7 @@ const deserializeAws_restJson1DataSourceConfig = (output: any, context: __SerdeC }; const deserializeAws_restJson1DataSourceConfigs = (output: any, context: __SerdeContext): DataSourceConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6690,10 +6693,11 @@ const deserializeAws_restJson1DataSourceConfigs = (output: any, context: __Serde } return deserializeAws_restJson1DataSourceConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataSourceNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6701,10 +6705,11 @@ const deserializeAws_restJson1DataSourceNames = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DataSources = (output: any, context: __SerdeContext): DataSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6712,6 +6717,7 @@ const deserializeAws_restJson1DataSources = (output: any, context: __SerdeContex } return deserializeAws_restJson1DataSource(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeploymentApplicationConfig = ( @@ -6732,7 +6738,7 @@ const deserializeAws_restJson1DeploymentApplicationConfigs = ( output: any, context: __SerdeContext ): DeploymentApplicationConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6740,6 +6746,7 @@ const deserializeAws_restJson1DeploymentApplicationConfigs = ( } return deserializeAws_restJson1DeploymentApplicationConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeploymentConfig = (output: any, context: __SerdeContext): DeploymentConfig => { @@ -6777,7 +6784,7 @@ const deserializeAws_restJson1DeploymentJob = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DeploymentJobs = (output: any, context: __SerdeContext): DeploymentJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6785,6 +6792,7 @@ const deserializeAws_restJson1DeploymentJobs = (output: any, context: __SerdeCon } return deserializeAws_restJson1DeploymentJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeploymentLaunchConfig = ( @@ -6846,7 +6854,7 @@ const deserializeAws_restJson1FailedCreateSimulationJobRequests = ( output: any, context: __SerdeContext ): FailedCreateSimulationJobRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6854,6 +6862,7 @@ const deserializeAws_restJson1FailedCreateSimulationJobRequests = ( } return deserializeAws_restJson1FailedCreateSimulationJobRequest(entry, context); }); + return retVal; }; const deserializeAws_restJson1FailureSummary = (output: any, context: __SerdeContext): FailureSummary => { @@ -6898,7 +6907,7 @@ const deserializeAws_restJson1Fleet = (output: any, context: __SerdeContext): Fl }; const deserializeAws_restJson1Fleets = (output: any, context: __SerdeContext): Fleet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6906,6 +6915,7 @@ const deserializeAws_restJson1Fleets = (output: any, context: __SerdeContext): F } return deserializeAws_restJson1Fleet(entry, context); }); + return retVal; }; const deserializeAws_restJson1LaunchConfig = (output: any, context: __SerdeContext): LaunchConfig => { @@ -6967,7 +6977,7 @@ const deserializeAws_restJson1PortMapping = (output: any, context: __SerdeContex }; const deserializeAws_restJson1PortMappingList = (output: any, context: __SerdeContext): PortMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6975,6 +6985,7 @@ const deserializeAws_restJson1PortMappingList = (output: any, context: __SerdeCo } return deserializeAws_restJson1PortMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProgressDetail = (output: any, context: __SerdeContext): ProgressDetail => { @@ -7041,7 +7052,7 @@ const deserializeAws_restJson1RobotApplicationConfigs = ( output: any, context: __SerdeContext ): RobotApplicationConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7049,10 +7060,11 @@ const deserializeAws_restJson1RobotApplicationConfigs = ( } return deserializeAws_restJson1RobotApplicationConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1RobotApplicationNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7060,13 +7072,14 @@ const deserializeAws_restJson1RobotApplicationNames = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RobotApplicationSummaries = ( output: any, context: __SerdeContext ): RobotApplicationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7074,6 +7087,7 @@ const deserializeAws_restJson1RobotApplicationSummaries = ( } return deserializeAws_restJson1RobotApplicationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1RobotApplicationSummary = ( @@ -7117,7 +7131,7 @@ const deserializeAws_restJson1RobotDeployment = (output: any, context: __SerdeCo }; const deserializeAws_restJson1RobotDeploymentSummary = (output: any, context: __SerdeContext): RobotDeployment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7125,10 +7139,11 @@ const deserializeAws_restJson1RobotDeploymentSummary = (output: any, context: __ } return deserializeAws_restJson1RobotDeployment(entry, context); }); + return retVal; }; const deserializeAws_restJson1Robots = (output: any, context: __SerdeContext): Robot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7136,6 +7151,7 @@ const deserializeAws_restJson1Robots = (output: any, context: __SerdeContext): R } return deserializeAws_restJson1Robot(entry, context); }); + return retVal; }; const deserializeAws_restJson1RobotSoftwareSuite = (output: any, context: __SerdeContext): RobotSoftwareSuite => { @@ -7153,7 +7169,7 @@ const deserializeAws_restJson1S3KeyOutput = (output: any, context: __SerdeContex }; const deserializeAws_restJson1S3KeyOutputs = (output: any, context: __SerdeContext): S3KeyOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7161,10 +7177,11 @@ const deserializeAws_restJson1S3KeyOutputs = (output: any, context: __SerdeConte } return deserializeAws_restJson1S3KeyOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3KeysOrPrefixes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7172,6 +7189,7 @@ const deserializeAws_restJson1S3KeysOrPrefixes = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1S3Object = (output: any, context: __SerdeContext): S3Object => { @@ -7183,7 +7201,7 @@ const deserializeAws_restJson1S3Object = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1SecurityGroups = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7191,6 +7209,7 @@ const deserializeAws_restJson1SecurityGroups = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SimulationApplicationConfig = ( @@ -7225,7 +7244,7 @@ const deserializeAws_restJson1SimulationApplicationConfigs = ( output: any, context: __SerdeContext ): SimulationApplicationConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7233,10 +7252,11 @@ const deserializeAws_restJson1SimulationApplicationConfigs = ( } return deserializeAws_restJson1SimulationApplicationConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1SimulationApplicationNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7244,13 +7264,14 @@ const deserializeAws_restJson1SimulationApplicationNames = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SimulationApplicationSummaries = ( output: any, context: __SerdeContext ): SimulationApplicationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7258,6 +7279,7 @@ const deserializeAws_restJson1SimulationApplicationSummaries = ( } return deserializeAws_restJson1SimulationApplicationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SimulationApplicationSummary = ( @@ -7346,7 +7368,7 @@ const deserializeAws_restJson1SimulationJobBatchSummaries = ( output: any, context: __SerdeContext ): SimulationJobBatchSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7354,6 +7376,7 @@ const deserializeAws_restJson1SimulationJobBatchSummaries = ( } return deserializeAws_restJson1SimulationJobBatchSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SimulationJobBatchSummary = ( @@ -7419,7 +7442,7 @@ const deserializeAws_restJson1SimulationJobRequest = (output: any, context: __Se }; const deserializeAws_restJson1SimulationJobs = (output: any, context: __SerdeContext): SimulationJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7427,13 +7450,14 @@ const deserializeAws_restJson1SimulationJobs = (output: any, context: __SerdeCon } return deserializeAws_restJson1SimulationJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1SimulationJobSummaries = ( output: any, context: __SerdeContext ): SimulationJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7441,6 +7465,7 @@ const deserializeAws_restJson1SimulationJobSummaries = ( } return deserializeAws_restJson1SimulationJobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SimulationJobSummary = (output: any, context: __SerdeContext): SimulationJobSummary => { @@ -7488,7 +7513,7 @@ const deserializeAws_restJson1Source = (output: any, context: __SerdeContext): S }; const deserializeAws_restJson1Sources = (output: any, context: __SerdeContext): Source[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7496,10 +7521,11 @@ const deserializeAws_restJson1Sources = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Source(entry, context); }); + return retVal; }; const deserializeAws_restJson1Subnets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7507,6 +7533,7 @@ const deserializeAws_restJson1Subnets = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -7522,7 +7549,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1TemplateSummaries = (output: any, context: __SerdeContext): TemplateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7530,6 +7557,7 @@ const deserializeAws_restJson1TemplateSummaries = (output: any, context: __Serde } return deserializeAws_restJson1TemplateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TemplateSummary = (output: any, context: __SerdeContext): TemplateSummary => { @@ -7559,7 +7587,7 @@ const deserializeAws_restJson1Tool = (output: any, context: __SerdeContext): Too }; const deserializeAws_restJson1Tools = (output: any, context: __SerdeContext): Tool[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7567,6 +7595,7 @@ const deserializeAws_restJson1Tools = (output: any, context: __SerdeContext): To } return deserializeAws_restJson1Tool(entry, context); }); + return retVal; }; const deserializeAws_restJson1UploadConfiguration = (output: any, context: __SerdeContext): UploadConfiguration => { @@ -7578,7 +7607,7 @@ const deserializeAws_restJson1UploadConfiguration = (output: any, context: __Ser }; const deserializeAws_restJson1UploadConfigurations = (output: any, context: __SerdeContext): UploadConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7586,6 +7615,7 @@ const deserializeAws_restJson1UploadConfigurations = (output: any, context: __Se } return deserializeAws_restJson1UploadConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1VPCConfig = (output: any, context: __SerdeContext): VPCConfig => { @@ -7624,7 +7654,7 @@ const deserializeAws_restJson1WorldConfig = (output: any, context: __SerdeContex }; const deserializeAws_restJson1WorldConfigs = (output: any, context: __SerdeContext): WorldConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7632,6 +7662,7 @@ const deserializeAws_restJson1WorldConfigs = (output: any, context: __SerdeConte } return deserializeAws_restJson1WorldConfig(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorldCount = (output: any, context: __SerdeContext): WorldCount => { @@ -7645,7 +7676,7 @@ const deserializeAws_restJson1WorldExportJobSummaries = ( output: any, context: __SerdeContext ): WorldExportJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7653,6 +7684,7 @@ const deserializeAws_restJson1WorldExportJobSummaries = ( } return deserializeAws_restJson1WorldExportJobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorldExportJobSummary = (output: any, context: __SerdeContext): WorldExportJobSummary => { @@ -7679,7 +7711,7 @@ const deserializeAws_restJson1WorldFailure = (output: any, context: __SerdeConte }; const deserializeAws_restJson1WorldFailures = (output: any, context: __SerdeContext): WorldFailure[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7687,13 +7719,14 @@ const deserializeAws_restJson1WorldFailures = (output: any, context: __SerdeCont } return deserializeAws_restJson1WorldFailure(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorldGenerationJobSummaries = ( output: any, context: __SerdeContext ): WorldGenerationJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7701,6 +7734,7 @@ const deserializeAws_restJson1WorldGenerationJobSummaries = ( } return deserializeAws_restJson1WorldGenerationJobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorldGenerationJobSummary = ( @@ -7725,7 +7759,7 @@ const deserializeAws_restJson1WorldGenerationJobSummary = ( }; const deserializeAws_restJson1WorldSummaries = (output: any, context: __SerdeContext): WorldSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7733,6 +7767,7 @@ const deserializeAws_restJson1WorldSummaries = (output: any, context: __SerdeCon } return deserializeAws_restJson1WorldSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorldSummary = (output: any, context: __SerdeContext): WorldSummary => { diff --git a/clients/client-route-53-domains/src/protocols/Aws_json1_1.ts b/clients/client-route-53-domains/src/protocols/Aws_json1_1.ts index af5ffe85af58..583c064cf3a3 100644 --- a/clients/client-route-53-domains/src/protocols/Aws_json1_1.ts +++ b/clients/client-route-53-domains/src/protocols/Aws_json1_1.ts @@ -2633,7 +2633,7 @@ const deserializeAws_json1_1BillingRecord = (output: any, context: __SerdeContex }; const deserializeAws_json1_1BillingRecords = (output: any, context: __SerdeContext): BillingRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2641,6 +2641,7 @@ const deserializeAws_json1_1BillingRecords = (output: any, context: __SerdeConte } return deserializeAws_json1_1BillingRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1CancelDomainTransferToAnotherAwsAccountResponse = ( @@ -2757,7 +2758,7 @@ const deserializeAws_json1_1DomainPrice = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1DomainPriceList = (output: any, context: __SerdeContext): DomainPrice[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2765,10 +2766,11 @@ const deserializeAws_json1_1DomainPriceList = (output: any, context: __SerdeCont } return deserializeAws_json1_1DomainPrice(entry, context); }); + return retVal; }; const deserializeAws_json1_1DomainStatusList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2776,6 +2778,7 @@ const deserializeAws_json1_1DomainStatusList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DomainSuggestion = (output: any, context: __SerdeContext): DomainSuggestion => { @@ -2786,7 +2789,7 @@ const deserializeAws_json1_1DomainSuggestion = (output: any, context: __SerdeCon }; const deserializeAws_json1_1DomainSuggestionsList = (output: any, context: __SerdeContext): DomainSuggestion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2794,6 +2797,7 @@ const deserializeAws_json1_1DomainSuggestionsList = (output: any, context: __Ser } return deserializeAws_json1_1DomainSuggestion(entry, context); }); + return retVal; }; const deserializeAws_json1_1DomainSummary = (output: any, context: __SerdeContext): DomainSummary => { @@ -2809,7 +2813,7 @@ const deserializeAws_json1_1DomainSummary = (output: any, context: __SerdeContex }; const deserializeAws_json1_1DomainSummaryList = (output: any, context: __SerdeContext): DomainSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2817,6 +2821,7 @@ const deserializeAws_json1_1DomainSummaryList = (output: any, context: __SerdeCo } return deserializeAws_json1_1DomainSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DomainTransferability = (output: any, context: __SerdeContext): DomainTransferability => { @@ -2855,7 +2860,7 @@ const deserializeAws_json1_1ExtraParam = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ExtraParamList = (output: any, context: __SerdeContext): ExtraParam[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2863,6 +2868,7 @@ const deserializeAws_json1_1ExtraParamList = (output: any, context: __SerdeConte } return deserializeAws_json1_1ExtraParam(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetContactReachabilityStatusResponse = ( @@ -2958,7 +2964,7 @@ const deserializeAws_json1_1GetOperationDetailResponse = ( }; const deserializeAws_json1_1GlueIpList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2966,6 +2972,7 @@ const deserializeAws_json1_1GlueIpList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InvalidInput = (output: any, context: __SerdeContext): InvalidInput => { @@ -3027,7 +3034,7 @@ const deserializeAws_json1_1Nameserver = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1NameserverList = (output: any, context: __SerdeContext): Nameserver[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3035,6 +3042,7 @@ const deserializeAws_json1_1NameserverList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Nameserver(entry, context); }); + return retVal; }; const deserializeAws_json1_1OperationLimitExceeded = (output: any, context: __SerdeContext): OperationLimitExceeded => { @@ -3056,7 +3064,7 @@ const deserializeAws_json1_1OperationSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_1OperationSummaryList = (output: any, context: __SerdeContext): OperationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3064,6 +3072,7 @@ const deserializeAws_json1_1OperationSummaryList = (output: any, context: __Serd } return deserializeAws_json1_1OperationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PriceWithCurrency = (output: any, context: __SerdeContext): PriceWithCurrency => { @@ -3122,7 +3131,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3130,6 +3139,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TLDRulesViolation = (output: any, context: __SerdeContext): TLDRulesViolation => { diff --git a/clients/client-route53-recovery-cluster/src/protocols/Aws_json1_0.ts b/clients/client-route53-recovery-cluster/src/protocols/Aws_json1_0.ts index bfc09ae9c69f..df7cb7d54455 100644 --- a/clients/client-route53-recovery-cluster/src/protocols/Aws_json1_0.ts +++ b/clients/client-route53-recovery-cluster/src/protocols/Aws_json1_0.ts @@ -515,7 +515,7 @@ const deserializeAws_json1_0ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -523,6 +523,7 @@ const deserializeAws_json1_0ValidationExceptionFieldList = ( } return deserializeAws_json1_0ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts b/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts index c1e9c436a571..f7c4943074d4 100644 --- a/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts +++ b/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts @@ -2252,7 +2252,7 @@ const serializeAws_restJson1RuleConfig = (input: RuleConfig, context: __SerdeCon }; const deserializeAws_restJson1__listOf__stringMax36PatternS = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2260,13 +2260,14 @@ const deserializeAws_restJson1__listOf__stringMax36PatternS = (output: any, cont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOf__stringMin1Max256PatternAZaZ09 = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2274,10 +2275,11 @@ const deserializeAws_restJson1__listOf__stringMin1Max256PatternAZaZ09 = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfCluster = (output: any, context: __SerdeContext): Cluster[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2285,10 +2287,11 @@ const deserializeAws_restJson1__listOfCluster = (output: any, context: __SerdeCo } return deserializeAws_restJson1Cluster(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfClusterEndpoint = (output: any, context: __SerdeContext): ClusterEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2296,10 +2299,11 @@ const deserializeAws_restJson1__listOfClusterEndpoint = (output: any, context: _ } return deserializeAws_restJson1ClusterEndpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfControlPanel = (output: any, context: __SerdeContext): ControlPanel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2307,10 +2311,11 @@ const deserializeAws_restJson1__listOfControlPanel = (output: any, context: __Se } return deserializeAws_restJson1ControlPanel(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRoutingControl = (output: any, context: __SerdeContext): RoutingControl[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2318,10 +2323,11 @@ const deserializeAws_restJson1__listOfRoutingControl = (output: any, context: __ } return deserializeAws_restJson1RoutingControl(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRule = (output: any, context: __SerdeContext): Rule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2329,6 +2335,7 @@ const deserializeAws_restJson1__listOfRule = (output: any, context: __SerdeConte } return deserializeAws_restJson1Rule(entry, context); }); + return retVal; }; const deserializeAws_restJson1__mapOf__stringMin0Max256PatternS = ( diff --git a/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts b/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts index 7cf115f97e39..db35c1deecfd 100644 --- a/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts +++ b/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts @@ -3227,7 +3227,7 @@ const serializeAws_restJson1TargetResource = (input: TargetResource, context: __ }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3235,10 +3235,11 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfCellOutput = (output: any, context: __SerdeContext): CellOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3246,10 +3247,11 @@ const deserializeAws_restJson1__listOfCellOutput = (output: any, context: __Serd } return deserializeAws_restJson1CellOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCrossAccountAuthorization = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3257,10 +3259,11 @@ const deserializeAws_restJson1__listOfCrossAccountAuthorization = (output: any, } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfListRulesOutput = (output: any, context: __SerdeContext): ListRulesOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3268,10 +3271,11 @@ const deserializeAws_restJson1__listOfListRulesOutput = (output: any, context: _ } return deserializeAws_restJson1ListRulesOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfMessage = (output: any, context: __SerdeContext): Message[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3279,13 +3283,14 @@ const deserializeAws_restJson1__listOfMessage = (output: any, context: __SerdeCo } return deserializeAws_restJson1Message(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfReadinessCheckOutput = ( output: any, context: __SerdeContext ): ReadinessCheckOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3293,13 +3298,14 @@ const deserializeAws_restJson1__listOfReadinessCheckOutput = ( } return deserializeAws_restJson1ReadinessCheckOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfReadinessCheckSummary = ( output: any, context: __SerdeContext ): ReadinessCheckSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3307,10 +3313,11 @@ const deserializeAws_restJson1__listOfReadinessCheckSummary = ( } return deserializeAws_restJson1ReadinessCheckSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRecommendation = (output: any, context: __SerdeContext): Recommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3318,13 +3325,14 @@ const deserializeAws_restJson1__listOfRecommendation = (output: any, context: __ } return deserializeAws_restJson1Recommendation(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRecoveryGroupOutput = ( output: any, context: __SerdeContext ): RecoveryGroupOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3332,10 +3340,11 @@ const deserializeAws_restJson1__listOfRecoveryGroupOutput = ( } return deserializeAws_restJson1RecoveryGroupOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfResource = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3343,10 +3352,11 @@ const deserializeAws_restJson1__listOfResource = (output: any, context: __SerdeC } return deserializeAws_restJson1Resource(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfResourceResult = (output: any, context: __SerdeContext): ResourceResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3354,13 +3364,14 @@ const deserializeAws_restJson1__listOfResourceResult = (output: any, context: __ } return deserializeAws_restJson1ResourceResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfResourceSetOutput = ( output: any, context: __SerdeContext ): ResourceSetOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3368,10 +3379,11 @@ const deserializeAws_restJson1__listOfResourceSetOutput = ( } return deserializeAws_restJson1ResourceSetOutput(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRuleResult = (output: any, context: __SerdeContext): RuleResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3379,6 +3391,7 @@ const deserializeAws_restJson1__listOfRuleResult = (output: any, context: __Serd } return deserializeAws_restJson1RuleResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1CellOutput = (output: any, context: __SerdeContext): CellOutput => { diff --git a/clients/client-route53resolver/src/protocols/Aws_json1_1.ts b/clients/client-route53resolver/src/protocols/Aws_json1_1.ts index 9f3f7587cac2..a516681b8fce 100644 --- a/clients/client-route53resolver/src/protocols/Aws_json1_1.ts +++ b/clients/client-route53resolver/src/protocols/Aws_json1_1.ts @@ -6118,7 +6118,7 @@ const deserializeAws_json1_1FirewallConfig = (output: any, context: __SerdeConte }; const deserializeAws_json1_1FirewallConfigList = (output: any, context: __SerdeContext): FirewallConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6126,6 +6126,7 @@ const deserializeAws_json1_1FirewallConfigList = (output: any, context: __SerdeC } return deserializeAws_json1_1FirewallConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1FirewallDomainList = (output: any, context: __SerdeContext): FirewallDomainList => { @@ -6160,7 +6161,7 @@ const deserializeAws_json1_1FirewallDomainListMetadataList = ( output: any, context: __SerdeContext ): FirewallDomainListMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6168,10 +6169,11 @@ const deserializeAws_json1_1FirewallDomainListMetadataList = ( } return deserializeAws_json1_1FirewallDomainListMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1FirewallDomains = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6179,6 +6181,7 @@ const deserializeAws_json1_1FirewallDomains = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FirewallRule = (output: any, context: __SerdeContext): FirewallRule => { @@ -6239,7 +6242,7 @@ const deserializeAws_json1_1FirewallRuleGroupAssociations = ( output: any, context: __SerdeContext ): FirewallRuleGroupAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6247,6 +6250,7 @@ const deserializeAws_json1_1FirewallRuleGroupAssociations = ( } return deserializeAws_json1_1FirewallRuleGroupAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1FirewallRuleGroupMetadata = ( @@ -6267,7 +6271,7 @@ const deserializeAws_json1_1FirewallRuleGroupMetadataList = ( output: any, context: __SerdeContext ): FirewallRuleGroupMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6275,10 +6279,11 @@ const deserializeAws_json1_1FirewallRuleGroupMetadataList = ( } return deserializeAws_json1_1FirewallRuleGroupMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1FirewallRules = (output: any, context: __SerdeContext): FirewallRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6286,6 +6291,7 @@ const deserializeAws_json1_1FirewallRules = (output: any, context: __SerdeContex } return deserializeAws_json1_1FirewallRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetFirewallConfigResponse = ( @@ -6509,7 +6515,7 @@ const deserializeAws_json1_1InvalidTagException = (output: any, context: __Serde }; const deserializeAws_json1_1IpAddressesResponse = (output: any, context: __SerdeContext): IpAddressResponse[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6517,6 +6523,7 @@ const deserializeAws_json1_1IpAddressesResponse = (output: any, context: __Serde } return deserializeAws_json1_1IpAddressResponse(entry, context); }); + return retVal; }; const deserializeAws_json1_1IpAddressResponse = (output: any, context: __SerdeContext): IpAddressResponse => { @@ -6781,7 +6788,7 @@ const deserializeAws_json1_1ResolverConfig = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ResolverConfigList = (output: any, context: __SerdeContext): ResolverConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6789,6 +6796,7 @@ const deserializeAws_json1_1ResolverConfigList = (output: any, context: __SerdeC } return deserializeAws_json1_1ResolverConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResolverDnssecConfig = (output: any, context: __SerdeContext): ResolverDnssecConfig => { @@ -6804,7 +6812,7 @@ const deserializeAws_json1_1ResolverDnssecConfigList = ( output: any, context: __SerdeContext ): ResolverDnssecConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6812,6 +6820,7 @@ const deserializeAws_json1_1ResolverDnssecConfigList = ( } return deserializeAws_json1_1ResolverDnssecConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResolverEndpoint = (output: any, context: __SerdeContext): ResolverEndpoint => { @@ -6835,7 +6844,7 @@ const deserializeAws_json1_1ResolverEndpoint = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ResolverEndpoints = (output: any, context: __SerdeContext): ResolverEndpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6843,6 +6852,7 @@ const deserializeAws_json1_1ResolverEndpoints = (output: any, context: __SerdeCo } return deserializeAws_json1_1ResolverEndpoint(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResolverQueryLogConfig = (output: any, context: __SerdeContext): ResolverQueryLogConfig => { @@ -6879,7 +6889,7 @@ const deserializeAws_json1_1ResolverQueryLogConfigAssociationList = ( output: any, context: __SerdeContext ): ResolverQueryLogConfigAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6887,13 +6897,14 @@ const deserializeAws_json1_1ResolverQueryLogConfigAssociationList = ( } return deserializeAws_json1_1ResolverQueryLogConfigAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResolverQueryLogConfigList = ( output: any, context: __SerdeContext ): ResolverQueryLogConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6901,6 +6912,7 @@ const deserializeAws_json1_1ResolverQueryLogConfigList = ( } return deserializeAws_json1_1ResolverQueryLogConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResolverRule = (output: any, context: __SerdeContext): ResolverRule => { @@ -6943,7 +6955,7 @@ const deserializeAws_json1_1ResolverRuleAssociations = ( output: any, context: __SerdeContext ): ResolverRuleAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6951,10 +6963,11 @@ const deserializeAws_json1_1ResolverRuleAssociations = ( } return deserializeAws_json1_1ResolverRuleAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResolverRules = (output: any, context: __SerdeContext): ResolverRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6962,6 +6975,7 @@ const deserializeAws_json1_1ResolverRules = (output: any, context: __SerdeContex } return deserializeAws_json1_1ResolverRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceExistsException = ( @@ -7002,7 +7016,7 @@ const deserializeAws_json1_1ResourceUnavailableException = ( }; const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7010,6 +7024,7 @@ const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -7020,7 +7035,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7028,6 +7043,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -7042,7 +7058,7 @@ const deserializeAws_json1_1TargetAddress = (output: any, context: __SerdeContex }; const deserializeAws_json1_1TargetList = (output: any, context: __SerdeContext): TargetAddress[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7050,6 +7066,7 @@ const deserializeAws_json1_1TargetList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1TargetAddress(entry, context); }); + return retVal; }; const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { diff --git a/clients/client-rum/src/protocols/Aws_restJson1.ts b/clients/client-rum/src/protocols/Aws_restJson1.ts index a20b6839857a..b8cd0ec549b2 100644 --- a/clients/client-rum/src/protocols/Aws_restJson1.ts +++ b/clients/client-rum/src/protocols/Aws_restJson1.ts @@ -1269,7 +1269,7 @@ const deserializeAws_restJson1AppMonitorSummary = (output: any, context: __Serde }; const deserializeAws_restJson1AppMonitorSummaryList = (output: any, context: __SerdeContext): AppMonitorSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1277,6 +1277,7 @@ const deserializeAws_restJson1AppMonitorSummaryList = (output: any, context: __S } return deserializeAws_restJson1AppMonitorSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1CwLog = (output: any, context: __SerdeContext): CwLog => { @@ -1296,7 +1297,7 @@ const deserializeAws_restJson1DataStorage = (output: any, context: __SerdeContex }; const deserializeAws_restJson1EventDataList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1304,10 +1305,11 @@ const deserializeAws_restJson1EventDataList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FavoritePages = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1315,10 +1317,11 @@ const deserializeAws_restJson1FavoritePages = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Pages = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1326,6 +1329,7 @@ const deserializeAws_restJson1Pages = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -1341,7 +1345,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1Telemetries = (output: any, context: __SerdeContext): (Telemetry | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1349,6 +1353,7 @@ const deserializeAws_restJson1Telemetries = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-s3outposts/src/protocols/Aws_restJson1.ts b/clients/client-s3outposts/src/protocols/Aws_restJson1.ts index b46f66534a27..e490d50797a5 100644 --- a/clients/client-s3outposts/src/protocols/Aws_restJson1.ts +++ b/clients/client-s3outposts/src/protocols/Aws_restJson1.ts @@ -374,7 +374,7 @@ const deserializeAws_restJson1Endpoint = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Endpoints = (output: any, context: __SerdeContext): Endpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -382,6 +382,7 @@ const deserializeAws_restJson1Endpoints = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Endpoint(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkInterface = (output: any, context: __SerdeContext): NetworkInterface => { @@ -391,7 +392,7 @@ const deserializeAws_restJson1NetworkInterface = (output: any, context: __SerdeC }; const deserializeAws_restJson1NetworkInterfaces = (output: any, context: __SerdeContext): NetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -399,6 +400,7 @@ const deserializeAws_restJson1NetworkInterfaces = (output: any, context: __Serde } return deserializeAws_restJson1NetworkInterface(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts index 25da3afe2e01..b5fca3010a46 100644 --- a/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts @@ -609,7 +609,7 @@ const deserializeAws_restJson1HumanLoopOutput = (output: any, context: __SerdeCo }; const deserializeAws_restJson1HumanLoopSummaries = (output: any, context: __SerdeContext): HumanLoopSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -617,6 +617,7 @@ const deserializeAws_restJson1HumanLoopSummaries = (output: any, context: __Serd } return deserializeAws_restJson1HumanLoopSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1HumanLoopSummary = (output: any, context: __SerdeContext): HumanLoopSummary => { diff --git a/clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts index 3a654e86185c..03f435bea99f 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts @@ -544,7 +544,7 @@ const deserializeAws_restJson1BatchGetRecordError = (output: any, context: __Ser }; const deserializeAws_restJson1BatchGetRecordErrors = (output: any, context: __SerdeContext): BatchGetRecordError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -552,6 +552,7 @@ const deserializeAws_restJson1BatchGetRecordErrors = (output: any, context: __Se } return deserializeAws_restJson1BatchGetRecordError(entry, context); }); + return retVal; }; const deserializeAws_restJson1BatchGetRecordIdentifier = ( @@ -589,7 +590,7 @@ const deserializeAws_restJson1BatchGetRecordResultDetails = ( output: any, context: __SerdeContext ): BatchGetRecordResultDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -597,10 +598,11 @@ const deserializeAws_restJson1BatchGetRecordResultDetails = ( } return deserializeAws_restJson1BatchGetRecordResultDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1FeatureNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -608,6 +610,7 @@ const deserializeAws_restJson1FeatureNames = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FeatureValue = (output: any, context: __SerdeContext): FeatureValue => { @@ -618,7 +621,7 @@ const deserializeAws_restJson1FeatureValue = (output: any, context: __SerdeConte }; const deserializeAws_restJson1Record = (output: any, context: __SerdeContext): FeatureValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -626,10 +629,11 @@ const deserializeAws_restJson1Record = (output: any, context: __SerdeContext): F } return deserializeAws_restJson1FeatureValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecordIdentifiers = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -637,13 +641,14 @@ const deserializeAws_restJson1RecordIdentifiers = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1UnprocessedIdentifiers = ( output: any, context: __SerdeContext ): BatchGetRecordIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -651,6 +656,7 @@ const deserializeAws_restJson1UnprocessedIdentifiers = ( } return deserializeAws_restJson1BatchGetRecordIdentifier(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts index c5b30be80ca5..ee1ca6fe1890 100644 --- a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts +++ b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts @@ -23656,7 +23656,7 @@ const deserializeAws_json1_1ActionSource = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ActionSummaries = (output: any, context: __SerdeContext): ActionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23664,6 +23664,7 @@ const deserializeAws_json1_1ActionSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_1ActionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionSummary = (output: any, context: __SerdeContext): ActionSummary => { @@ -23695,7 +23696,7 @@ const deserializeAws_json1_1AddAssociationResponse = (output: any, context: __Se }; const deserializeAws_json1_1AdditionalCodeRepositoryNamesOrUrls = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23703,6 +23704,7 @@ const deserializeAws_json1_1AdditionalCodeRepositoryNamesOrUrls = (output: any, } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AdditionalInferenceSpecificationDefinition = ( @@ -23740,7 +23742,7 @@ const deserializeAws_json1_1AdditionalInferenceSpecifications = ( output: any, context: __SerdeContext ): AdditionalInferenceSpecificationDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23748,6 +23750,7 @@ const deserializeAws_json1_1AdditionalInferenceSpecifications = ( } return deserializeAws_json1_1AdditionalInferenceSpecificationDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1AddTagsOutput = (output: any, context: __SerdeContext): AddTagsOutput => { @@ -23767,7 +23770,7 @@ const deserializeAws_json1_1AgentVersion = (output: any, context: __SerdeContext }; const deserializeAws_json1_1AgentVersions = (output: any, context: __SerdeContext): AgentVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23775,6 +23778,7 @@ const deserializeAws_json1_1AgentVersions = (output: any, context: __SerdeContex } return deserializeAws_json1_1AgentVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1Alarm = (output: any, context: __SerdeContext): Alarm => { @@ -23784,7 +23788,7 @@ const deserializeAws_json1_1Alarm = (output: any, context: __SerdeContext): Alar }; const deserializeAws_json1_1AlarmList = (output: any, context: __SerdeContext): Alarm[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23792,6 +23796,7 @@ const deserializeAws_json1_1AlarmList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Alarm(entry, context); }); + return retVal; }; const deserializeAws_json1_1AlgorithmSpecification = (output: any, context: __SerdeContext): AlgorithmSpecification => { @@ -23829,7 +23834,7 @@ const deserializeAws_json1_1AlgorithmStatusItem = (output: any, context: __Serde }; const deserializeAws_json1_1AlgorithmStatusItemList = (output: any, context: __SerdeContext): AlgorithmStatusItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23837,6 +23842,7 @@ const deserializeAws_json1_1AlgorithmStatusItemList = (output: any, context: __S } return deserializeAws_json1_1AlgorithmStatusItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1AlgorithmSummary = (output: any, context: __SerdeContext): AlgorithmSummary => { @@ -23853,7 +23859,7 @@ const deserializeAws_json1_1AlgorithmSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_1AlgorithmSummaryList = (output: any, context: __SerdeContext): AlgorithmSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23861,6 +23867,7 @@ const deserializeAws_json1_1AlgorithmSummaryList = (output: any, context: __Serd } return deserializeAws_json1_1AlgorithmSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1AlgorithmValidationProfile = ( @@ -23884,7 +23891,7 @@ const deserializeAws_json1_1AlgorithmValidationProfiles = ( output: any, context: __SerdeContext ): AlgorithmValidationProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23892,6 +23899,7 @@ const deserializeAws_json1_1AlgorithmValidationProfiles = ( } return deserializeAws_json1_1AlgorithmValidationProfile(entry, context); }); + return retVal; }; const deserializeAws_json1_1AlgorithmValidationSpecification = ( @@ -23950,7 +23958,7 @@ const deserializeAws_json1_1AppImageConfigDetails = (output: any, context: __Ser }; const deserializeAws_json1_1AppImageConfigList = (output: any, context: __SerdeContext): AppImageConfigDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23958,10 +23966,11 @@ const deserializeAws_json1_1AppImageConfigList = (output: any, context: __SerdeC } return deserializeAws_json1_1AppImageConfigDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1AppList = (output: any, context: __SerdeContext): AppDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23969,6 +23978,7 @@ const deserializeAws_json1_1AppList = (output: any, context: __SerdeContext): Ap } return deserializeAws_json1_1AppDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1AppSpecification = (output: any, context: __SerdeContext): AppSpecification => { @@ -24003,7 +24013,7 @@ const deserializeAws_json1_1ArtifactSourceType = (output: any, context: __SerdeC }; const deserializeAws_json1_1ArtifactSourceTypes = (output: any, context: __SerdeContext): ArtifactSourceType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24011,10 +24021,11 @@ const deserializeAws_json1_1ArtifactSourceTypes = (output: any, context: __Serde } return deserializeAws_json1_1ArtifactSourceType(entry, context); }); + return retVal; }; const deserializeAws_json1_1ArtifactSummaries = (output: any, context: __SerdeContext): ArtifactSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24022,6 +24033,7 @@ const deserializeAws_json1_1ArtifactSummaries = (output: any, context: __SerdeCo } return deserializeAws_json1_1ArtifactSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ArtifactSummary = (output: any, context: __SerdeContext): ArtifactSummary => { @@ -24055,7 +24067,7 @@ const deserializeAws_json1_1AssociateTrialComponentResponse = ( }; const deserializeAws_json1_1AssociationSummaries = (output: any, context: __SerdeContext): AssociationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24063,6 +24075,7 @@ const deserializeAws_json1_1AssociationSummaries = (output: any, context: __Serd } return deserializeAws_json1_1AssociationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociationSummary = (output: any, context: __SerdeContext): AssociationSummary => { @@ -24148,7 +24161,7 @@ const deserializeAws_json1_1AthenaDatasetDefinition = ( }; const deserializeAws_json1_1AttributeNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24156,6 +24169,7 @@ const deserializeAws_json1_1AttributeNames = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AutoMLCandidate = (output: any, context: __SerdeContext): AutoMLCandidate => { @@ -24196,7 +24210,7 @@ const deserializeAws_json1_1AutoMLCandidate = (output: any, context: __SerdeCont }; const deserializeAws_json1_1AutoMLCandidates = (output: any, context: __SerdeContext): AutoMLCandidate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24204,6 +24218,7 @@ const deserializeAws_json1_1AutoMLCandidates = (output: any, context: __SerdeCon } return deserializeAws_json1_1AutoMLCandidate(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoMLCandidateStep = (output: any, context: __SerdeContext): AutoMLCandidateStep => { @@ -24244,7 +24259,7 @@ const deserializeAws_json1_1AutoMLContainerDefinitions = ( output: any, context: __SerdeContext ): AutoMLContainerDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24252,6 +24267,7 @@ const deserializeAws_json1_1AutoMLContainerDefinitions = ( } return deserializeAws_json1_1AutoMLContainerDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoMLDataSource = (output: any, context: __SerdeContext): AutoMLDataSource => { @@ -24264,7 +24280,7 @@ const deserializeAws_json1_1AutoMLDataSource = (output: any, context: __SerdeCon }; const deserializeAws_json1_1AutoMLInputDataConfig = (output: any, context: __SerdeContext): AutoMLChannel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24272,6 +24288,7 @@ const deserializeAws_json1_1AutoMLInputDataConfig = (output: any, context: __Ser } return deserializeAws_json1_1AutoMLChannel(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoMLJobArtifacts = (output: any, context: __SerdeContext): AutoMLJobArtifacts => { @@ -24312,7 +24329,7 @@ const deserializeAws_json1_1AutoMLJobObjective = (output: any, context: __SerdeC }; const deserializeAws_json1_1AutoMLJobSummaries = (output: any, context: __SerdeContext): AutoMLJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24320,6 +24337,7 @@ const deserializeAws_json1_1AutoMLJobSummaries = (output: any, context: __SerdeC } return deserializeAws_json1_1AutoMLJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoMLJobSummary = (output: any, context: __SerdeContext): AutoMLJobSummary => { @@ -24368,7 +24386,7 @@ const deserializeAws_json1_1AutoMLPartialFailureReasons = ( output: any, context: __SerdeContext ): AutoMLPartialFailureReason[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24376,6 +24394,7 @@ const deserializeAws_json1_1AutoMLPartialFailureReasons = ( } return deserializeAws_json1_1AutoMLPartialFailureReason(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutoMLS3DataSource = (output: any, context: __SerdeContext): AutoMLS3DataSource => { @@ -24540,7 +24559,7 @@ const deserializeAws_json1_1CandidateProperties = (output: any, context: __Serde }; const deserializeAws_json1_1CandidateSteps = (output: any, context: __SerdeContext): AutoMLCandidateStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24548,6 +24567,7 @@ const deserializeAws_json1_1CandidateSteps = (output: any, context: __SerdeConte } return deserializeAws_json1_1AutoMLCandidateStep(entry, context); }); + return retVal; }; const deserializeAws_json1_1CapacitySize = (output: any, context: __SerdeContext): CapacitySize => { @@ -24580,7 +24600,7 @@ const deserializeAws_json1_1CaptureOption = (output: any, context: __SerdeContex }; const deserializeAws_json1_1CaptureOptionList = (output: any, context: __SerdeContext): CaptureOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24588,6 +24608,7 @@ const deserializeAws_json1_1CaptureOptionList = (output: any, context: __SerdeCo } return deserializeAws_json1_1CaptureOption(entry, context); }); + return retVal; }; const deserializeAws_json1_1CategoricalParameter = (output: any, context: __SerdeContext): CategoricalParameter => { @@ -24617,7 +24638,7 @@ const deserializeAws_json1_1CategoricalParameterRanges = ( output: any, context: __SerdeContext ): CategoricalParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24625,6 +24646,7 @@ const deserializeAws_json1_1CategoricalParameterRanges = ( } return deserializeAws_json1_1CategoricalParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1CategoricalParameterRangeSpecification = ( @@ -24640,7 +24662,7 @@ const deserializeAws_json1_1CategoricalParameterRangeSpecification = ( }; const deserializeAws_json1_1CategoricalParameterRangeValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24648,10 +24670,11 @@ const deserializeAws_json1_1CategoricalParameterRangeValues = (output: any, cont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CategoricalParameters = (output: any, context: __SerdeContext): CategoricalParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24659,6 +24682,7 @@ const deserializeAws_json1_1CategoricalParameters = (output: any, context: __Ser } return deserializeAws_json1_1CategoricalParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1Channel = (output: any, context: __SerdeContext): Channel => { @@ -24700,7 +24724,7 @@ const deserializeAws_json1_1ChannelSpecification = (output: any, context: __Serd }; const deserializeAws_json1_1ChannelSpecifications = (output: any, context: __SerdeContext): ChannelSpecification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24708,6 +24732,7 @@ const deserializeAws_json1_1ChannelSpecifications = (output: any, context: __Ser } return deserializeAws_json1_1ChannelSpecification(entry, context); }); + return retVal; }; const deserializeAws_json1_1CheckpointConfig = (output: any, context: __SerdeContext): CheckpointConfig => { @@ -24718,7 +24743,7 @@ const deserializeAws_json1_1CheckpointConfig = (output: any, context: __SerdeCon }; const deserializeAws_json1_1Cidrs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24726,6 +24751,7 @@ const deserializeAws_json1_1Cidrs = (output: any, context: __SerdeContext): stri } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ClarifyCheckStepMetadata = ( @@ -24767,7 +24793,7 @@ const deserializeAws_json1_1CodeRepositorySummaryList = ( output: any, context: __SerdeContext ): CodeRepositorySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24775,6 +24801,7 @@ const deserializeAws_json1_1CodeRepositorySummaryList = ( } return deserializeAws_json1_1CodeRepositorySummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1CognitoConfig = (output: any, context: __SerdeContext): CognitoConfig => { @@ -24812,7 +24839,7 @@ const deserializeAws_json1_1CollectionConfigurations = ( output: any, context: __SerdeContext ): CollectionConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24820,6 +24847,7 @@ const deserializeAws_json1_1CollectionConfigurations = ( } return deserializeAws_json1_1CollectionConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1CollectionParameters = ( @@ -24841,7 +24869,7 @@ const deserializeAws_json1_1CompilationJobSummaries = ( output: any, context: __SerdeContext ): CompilationJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24849,6 +24877,7 @@ const deserializeAws_json1_1CompilationJobSummaries = ( } return deserializeAws_json1_1CompilationJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1CompilationJobSummary = (output: any, context: __SerdeContext): CompilationJobSummary => { @@ -24880,7 +24909,7 @@ const deserializeAws_json1_1CompilationJobSummary = (output: any, context: __Ser }; const deserializeAws_json1_1CompressionTypes = (output: any, context: __SerdeContext): (CompressionType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24888,6 +24917,7 @@ const deserializeAws_json1_1CompressionTypes = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ConditionStepMetadata = (output: any, context: __SerdeContext): ConditionStepMetadata => { @@ -24903,7 +24933,7 @@ const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ContainerArguments = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24911,6 +24941,7 @@ const deserializeAws_json1_1ContainerArguments = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ContainerDefinition = (output: any, context: __SerdeContext): ContainerDefinition => { @@ -24937,7 +24968,7 @@ const deserializeAws_json1_1ContainerDefinition = (output: any, context: __Serde }; const deserializeAws_json1_1ContainerDefinitionList = (output: any, context: __SerdeContext): ContainerDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24945,10 +24976,11 @@ const deserializeAws_json1_1ContainerDefinitionList = (output: any, context: __S } return deserializeAws_json1_1ContainerDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContainerEntrypoint = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24956,13 +24988,14 @@ const deserializeAws_json1_1ContainerEntrypoint = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ContentClassifiers = ( output: any, context: __SerdeContext ): (ContentClassifier | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24970,10 +25003,11 @@ const deserializeAws_json1_1ContentClassifiers = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ContentTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24981,6 +25015,7 @@ const deserializeAws_json1_1ContentTypes = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ContextSource = (output: any, context: __SerdeContext): ContextSource => { @@ -24992,7 +25027,7 @@ const deserializeAws_json1_1ContextSource = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ContextSummaries = (output: any, context: __SerdeContext): ContextSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25000,6 +25035,7 @@ const deserializeAws_json1_1ContextSummaries = (output: any, context: __SerdeCon } return deserializeAws_json1_1ContextSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContextSummary = (output: any, context: __SerdeContext): ContextSummary => { @@ -25038,7 +25074,7 @@ const deserializeAws_json1_1ContinuousParameterRanges = ( output: any, context: __SerdeContext ): ContinuousParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25046,6 +25082,7 @@ const deserializeAws_json1_1ContinuousParameterRanges = ( } return deserializeAws_json1_1ContinuousParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContinuousParameterRangeSpecification = ( @@ -25418,7 +25455,7 @@ const deserializeAws_json1_1CreateWorkteamResponse = (output: any, context: __Se }; const deserializeAws_json1_1CsvContentTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25426,6 +25463,7 @@ const deserializeAws_json1_1CsvContentTypes = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CustomerMetadataMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -25449,7 +25487,7 @@ const deserializeAws_json1_1CustomImage = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1CustomImages = (output: any, context: __SerdeContext): CustomImage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25457,6 +25495,7 @@ const deserializeAws_json1_1CustomImages = (output: any, context: __SerdeContext } return deserializeAws_json1_1CustomImage(entry, context); }); + return retVal; }; const deserializeAws_json1_1DataCaptureConfig = (output: any, context: __SerdeContext): DataCaptureConfig => { @@ -25617,7 +25656,7 @@ const deserializeAws_json1_1DebugRuleConfigurations = ( output: any, context: __SerdeContext ): DebugRuleConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25625,6 +25664,7 @@ const deserializeAws_json1_1DebugRuleConfigurations = ( } return deserializeAws_json1_1DebugRuleConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1DebugRuleEvaluationStatus = ( @@ -25647,7 +25687,7 @@ const deserializeAws_json1_1DebugRuleEvaluationStatuses = ( output: any, context: __SerdeContext ): DebugRuleEvaluationStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25655,6 +25695,7 @@ const deserializeAws_json1_1DebugRuleEvaluationStatuses = ( } return deserializeAws_json1_1DebugRuleEvaluationStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeleteActionResponse = (output: any, context: __SerdeContext): DeleteActionResponse => { @@ -25769,7 +25810,7 @@ const deserializeAws_json1_1DeployedImage = (output: any, context: __SerdeContex }; const deserializeAws_json1_1DeployedImages = (output: any, context: __SerdeContext): DeployedImage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25777,6 +25818,7 @@ const deserializeAws_json1_1DeployedImages = (output: any, context: __SerdeConte } return deserializeAws_json1_1DeployedImage(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeploymentConfig = (output: any, context: __SerdeContext): DeploymentConfig => { @@ -27619,7 +27661,7 @@ const deserializeAws_json1_1DescribeWorkteamResponse = ( }; const deserializeAws_json1_1DeviceFleetSummaries = (output: any, context: __SerdeContext): DeviceFleetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27627,6 +27669,7 @@ const deserializeAws_json1_1DeviceFleetSummaries = (output: any, context: __Serd } return deserializeAws_json1_1DeviceFleetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceFleetSummary = (output: any, context: __SerdeContext): DeviceFleetSummary => { @@ -27652,7 +27695,7 @@ const deserializeAws_json1_1DeviceStats = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1DeviceSummaries = (output: any, context: __SerdeContext): DeviceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27660,6 +27703,7 @@ const deserializeAws_json1_1DeviceSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_1DeviceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1DeviceSummary = (output: any, context: __SerdeContext): DeviceSummary => { @@ -27721,7 +27765,7 @@ const deserializeAws_json1_1DomainDetails = (output: any, context: __SerdeContex }; const deserializeAws_json1_1DomainList = (output: any, context: __SerdeContext): DomainDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27729,10 +27773,11 @@ const deserializeAws_json1_1DomainList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1DomainDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1DomainSecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27740,6 +27785,7 @@ const deserializeAws_json1_1DomainSecurityGroupIds = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DomainSettings = (output: any, context: __SerdeContext): DomainSettings => { @@ -27862,7 +27908,7 @@ const deserializeAws_json1_1EdgeModel = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1EdgeModels = (output: any, context: __SerdeContext): EdgeModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27870,6 +27916,7 @@ const deserializeAws_json1_1EdgeModels = (output: any, context: __SerdeContext): } return deserializeAws_json1_1EdgeModel(entry, context); }); + return retVal; }; const deserializeAws_json1_1EdgeModelStat = (output: any, context: __SerdeContext): EdgeModelStat => { @@ -27884,7 +27931,7 @@ const deserializeAws_json1_1EdgeModelStat = (output: any, context: __SerdeContex }; const deserializeAws_json1_1EdgeModelStats = (output: any, context: __SerdeContext): EdgeModelStat[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27892,10 +27939,11 @@ const deserializeAws_json1_1EdgeModelStats = (output: any, context: __SerdeConte } return deserializeAws_json1_1EdgeModelStat(entry, context); }); + return retVal; }; const deserializeAws_json1_1EdgeModelSummaries = (output: any, context: __SerdeContext): EdgeModelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27903,6 +27951,7 @@ const deserializeAws_json1_1EdgeModelSummaries = (output: any, context: __SerdeC } return deserializeAws_json1_1EdgeModelSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1EdgeModelSummary = (output: any, context: __SerdeContext): EdgeModelSummary => { @@ -27925,7 +27974,7 @@ const deserializeAws_json1_1EdgePackagingJobSummaries = ( output: any, context: __SerdeContext ): EdgePackagingJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27933,6 +27982,7 @@ const deserializeAws_json1_1EdgePackagingJobSummaries = ( } return deserializeAws_json1_1EdgePackagingJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1EdgePackagingJobSummary = ( @@ -27970,7 +28020,7 @@ const deserializeAws_json1_1EdgePresetDeploymentOutput = ( }; const deserializeAws_json1_1Edges = (output: any, context: __SerdeContext): Edge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -27978,6 +28028,7 @@ const deserializeAws_json1_1Edges = (output: any, context: __SerdeContext): Edge } return deserializeAws_json1_1Edge(entry, context); }); + return retVal; }; const deserializeAws_json1_1EMRStepMetadata = (output: any, context: __SerdeContext): EMRStepMetadata => { @@ -28045,7 +28096,7 @@ const deserializeAws_json1_1EndpointConfigSummaryList = ( output: any, context: __SerdeContext ): EndpointConfigSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28053,6 +28104,7 @@ const deserializeAws_json1_1EndpointConfigSummaryList = ( } return deserializeAws_json1_1EndpointConfigSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1EndpointInput = (output: any, context: __SerdeContext): EndpointInput => { @@ -28088,7 +28140,7 @@ const deserializeAws_json1_1EndpointInputConfigurations = ( output: any, context: __SerdeContext ): EndpointInputConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28096,6 +28148,7 @@ const deserializeAws_json1_1EndpointInputConfigurations = ( } return deserializeAws_json1_1EndpointInputConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1EndpointOutputConfiguration = ( @@ -28127,7 +28180,7 @@ const deserializeAws_json1_1EndpointSummary = (output: any, context: __SerdeCont }; const deserializeAws_json1_1EndpointSummaryList = (output: any, context: __SerdeContext): EndpointSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28135,6 +28188,7 @@ const deserializeAws_json1_1EndpointSummaryList = (output: any, context: __Serde } return deserializeAws_json1_1EndpointSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnvironmentMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -28170,7 +28224,7 @@ const deserializeAws_json1_1EnvironmentParameterRanges = ( }; const deserializeAws_json1_1EnvironmentParameters = (output: any, context: __SerdeContext): EnvironmentParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28178,6 +28232,7 @@ const deserializeAws_json1_1EnvironmentParameters = (output: any, context: __Ser } return deserializeAws_json1_1EnvironmentParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1Experiment = (output: any, context: __SerdeContext): Experiment => { @@ -28229,7 +28284,7 @@ const deserializeAws_json1_1ExperimentSource = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ExperimentSummaries = (output: any, context: __SerdeContext): ExperimentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28237,6 +28292,7 @@ const deserializeAws_json1_1ExperimentSummaries = (output: any, context: __Serde } return deserializeAws_json1_1ExperimentSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExperimentSummary = (output: any, context: __SerdeContext): ExperimentSummary => { @@ -28282,7 +28338,7 @@ const deserializeAws_json1_1FeatureDefinition = (output: any, context: __SerdeCo }; const deserializeAws_json1_1FeatureDefinitions = (output: any, context: __SerdeContext): FeatureDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28290,6 +28346,7 @@ const deserializeAws_json1_1FeatureDefinitions = (output: any, context: __SerdeC } return deserializeAws_json1_1FeatureDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1FeatureGroup = (output: any, context: __SerdeContext): FeatureGroup => { @@ -28330,7 +28387,7 @@ const deserializeAws_json1_1FeatureGroup = (output: any, context: __SerdeContext }; const deserializeAws_json1_1FeatureGroupSummaries = (output: any, context: __SerdeContext): FeatureGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28338,6 +28395,7 @@ const deserializeAws_json1_1FeatureGroupSummaries = (output: any, context: __Ser } return deserializeAws_json1_1FeatureGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1FeatureGroupSummary = (output: any, context: __SerdeContext): FeatureGroupSummary => { @@ -28404,7 +28462,7 @@ const deserializeAws_json1_1FinalHyperParameterTuningJobObjectiveMetric = ( }; const deserializeAws_json1_1FinalMetricDataList = (output: any, context: __SerdeContext): MetricData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28412,6 +28470,7 @@ const deserializeAws_json1_1FinalMetricDataList = (output: any, context: __Serde } return deserializeAws_json1_1MetricData(entry, context); }); + return retVal; }; const deserializeAws_json1_1FlowDefinitionOutputConfig = ( @@ -28428,7 +28487,7 @@ const deserializeAws_json1_1FlowDefinitionSummaries = ( output: any, context: __SerdeContext ): FlowDefinitionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28436,6 +28495,7 @@ const deserializeAws_json1_1FlowDefinitionSummaries = ( } return deserializeAws_json1_1FlowDefinitionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1FlowDefinitionSummary = (output: any, context: __SerdeContext): FlowDefinitionSummary => { @@ -28452,7 +28512,7 @@ const deserializeAws_json1_1FlowDefinitionSummary = (output: any, context: __Ser }; const deserializeAws_json1_1FlowDefinitionTaskKeywords = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28460,6 +28520,7 @@ const deserializeAws_json1_1FlowDefinitionTaskKeywords = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1GetDeviceFleetReportResponse = ( @@ -28542,7 +28603,7 @@ const deserializeAws_json1_1GitConfig = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28550,6 +28611,7 @@ const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1HookParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -28644,7 +28706,7 @@ const deserializeAws_json1_1HumanTaskConfig = (output: any, context: __SerdeCont }; const deserializeAws_json1_1HumanTaskUiSummaries = (output: any, context: __SerdeContext): HumanTaskUiSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28652,6 +28714,7 @@ const deserializeAws_json1_1HumanTaskUiSummaries = (output: any, context: __Serd } return deserializeAws_json1_1HumanTaskUiSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1HumanTaskUiSummary = (output: any, context: __SerdeContext): HumanTaskUiSummary => { @@ -28714,7 +28777,7 @@ const deserializeAws_json1_1HyperParameterSpecifications = ( output: any, context: __SerdeContext ): HyperParameterSpecification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28722,6 +28785,7 @@ const deserializeAws_json1_1HyperParameterSpecifications = ( } return deserializeAws_json1_1HyperParameterSpecification(entry, context); }); + return retVal; }; const deserializeAws_json1_1HyperParameterTrainingJobDefinition = ( @@ -28785,7 +28849,7 @@ const deserializeAws_json1_1HyperParameterTrainingJobDefinitions = ( output: any, context: __SerdeContext ): HyperParameterTrainingJobDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28793,13 +28857,14 @@ const deserializeAws_json1_1HyperParameterTrainingJobDefinitions = ( } return deserializeAws_json1_1HyperParameterTrainingJobDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1HyperParameterTrainingJobSummaries = ( output: any, context: __SerdeContext ): HyperParameterTrainingJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28807,6 +28872,7 @@ const deserializeAws_json1_1HyperParameterTrainingJobSummaries = ( } return deserializeAws_json1_1HyperParameterTrainingJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1HyperParameterTrainingJobSummary = ( @@ -28888,7 +28954,7 @@ const deserializeAws_json1_1HyperParameterTuningJobObjectives = ( output: any, context: __SerdeContext ): HyperParameterTuningJobObjective[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28896,13 +28962,14 @@ const deserializeAws_json1_1HyperParameterTuningJobObjectives = ( } return deserializeAws_json1_1HyperParameterTuningJobObjective(entry, context); }); + return retVal; }; const deserializeAws_json1_1HyperParameterTuningJobSummaries = ( output: any, context: __SerdeContext ): HyperParameterTuningJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28910,6 +28977,7 @@ const deserializeAws_json1_1HyperParameterTuningJobSummaries = ( } return deserializeAws_json1_1HyperParameterTuningJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1HyperParameterTuningJobSummary = ( @@ -28991,7 +29059,7 @@ const deserializeAws_json1_1ImageConfig = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1Images = (output: any, context: __SerdeContext): Image[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -28999,6 +29067,7 @@ const deserializeAws_json1_1Images = (output: any, context: __SerdeContext): Ima } return deserializeAws_json1_1Image(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImageVersion = (output: any, context: __SerdeContext): ImageVersion => { @@ -29020,7 +29089,7 @@ const deserializeAws_json1_1ImageVersion = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ImageVersions = (output: any, context: __SerdeContext): ImageVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29028,6 +29097,7 @@ const deserializeAws_json1_1ImageVersions = (output: any, context: __SerdeContex } return deserializeAws_json1_1ImageVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1InferenceExecutionConfig = ( @@ -29063,7 +29133,7 @@ const deserializeAws_json1_1InferenceRecommendations = ( output: any, context: __SerdeContext ): InferenceRecommendation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29071,6 +29141,7 @@ const deserializeAws_json1_1InferenceRecommendations = ( } return deserializeAws_json1_1InferenceRecommendation(entry, context); }); + return retVal; }; const deserializeAws_json1_1InferenceRecommendationsJob = ( @@ -29104,7 +29175,7 @@ const deserializeAws_json1_1InferenceRecommendationsJobs = ( output: any, context: __SerdeContext ): InferenceRecommendationsJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29112,6 +29183,7 @@ const deserializeAws_json1_1InferenceRecommendationsJobs = ( } return deserializeAws_json1_1InferenceRecommendationsJob(entry, context); }); + return retVal; }; const deserializeAws_json1_1InferenceSpecification = (output: any, context: __SerdeContext): InferenceSpecification => { @@ -29150,7 +29222,7 @@ const deserializeAws_json1_1InputConfig = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1InputDataConfig = (output: any, context: __SerdeContext): Channel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29158,10 +29230,11 @@ const deserializeAws_json1_1InputDataConfig = (output: any, context: __SerdeCont } return deserializeAws_json1_1Channel(entry, context); }); + return retVal; }; const deserializeAws_json1_1InputModes = (output: any, context: __SerdeContext): (TrainingInputMode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29169,6 +29242,7 @@ const deserializeAws_json1_1InputModes = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1IntegerParameterRange = (output: any, context: __SerdeContext): IntegerParameterRange => { @@ -29184,7 +29258,7 @@ const deserializeAws_json1_1IntegerParameterRanges = ( output: any, context: __SerdeContext ): IntegerParameterRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29192,6 +29266,7 @@ const deserializeAws_json1_1IntegerParameterRanges = ( } return deserializeAws_json1_1IntegerParameterRange(entry, context); }); + return retVal; }; const deserializeAws_json1_1IntegerParameterRangeSpecification = ( @@ -29205,7 +29280,7 @@ const deserializeAws_json1_1IntegerParameterRangeSpecification = ( }; const deserializeAws_json1_1JsonContentTypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29213,6 +29288,7 @@ const deserializeAws_json1_1JsonContentTypes = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1JupyterServerAppSettings = ( @@ -29275,7 +29351,7 @@ const deserializeAws_json1_1KernelSpec = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1KernelSpecs = (output: any, context: __SerdeContext): KernelSpec[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29283,6 +29359,7 @@ const deserializeAws_json1_1KernelSpecs = (output: any, context: __SerdeContext) } return deserializeAws_json1_1KernelSpec(entry, context); }); + return retVal; }; const deserializeAws_json1_1LabelCounters = (output: any, context: __SerdeContext): LabelCounters => { @@ -29369,7 +29446,7 @@ const deserializeAws_json1_1LabelingJobForWorkteamSummaryList = ( output: any, context: __SerdeContext ): LabelingJobForWorkteamSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29377,6 +29454,7 @@ const deserializeAws_json1_1LabelingJobForWorkteamSummaryList = ( } return deserializeAws_json1_1LabelingJobForWorkteamSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1LabelingJobInputConfig = (output: any, context: __SerdeContext): LabelingJobInputConfig => { @@ -29480,7 +29558,7 @@ const deserializeAws_json1_1LabelingJobSummary = (output: any, context: __SerdeC }; const deserializeAws_json1_1LabelingJobSummaryList = (output: any, context: __SerdeContext): LabelingJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29488,6 +29566,7 @@ const deserializeAws_json1_1LabelingJobSummaryList = (output: any, context: __Se } return deserializeAws_json1_1LabelingJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1LambdaStepMetadata = (output: any, context: __SerdeContext): LambdaStepMetadata => { @@ -29501,7 +29580,7 @@ const deserializeAws_json1_1LambdaStepMetadata = (output: any, context: __SerdeC }; const deserializeAws_json1_1LifecycleConfigArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29509,6 +29588,7 @@ const deserializeAws_json1_1LifecycleConfigArns = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LineageEntityParameters = ( @@ -29527,7 +29607,7 @@ const deserializeAws_json1_1LineageEntityParameters = ( }; const deserializeAws_json1_1LineageGroupSummaries = (output: any, context: __SerdeContext): LineageGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -29535,6 +29615,7 @@ const deserializeAws_json1_1LineageGroupSummaries = (output: any, context: __Ser } return deserializeAws_json1_1LineageGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1LineageGroupSummary = (output: any, context: __SerdeContext): LineageGroupSummary => { @@ -30260,7 +30341,7 @@ const deserializeAws_json1_1MemberDefinition = (output: any, context: __SerdeCon }; const deserializeAws_json1_1MemberDefinitions = (output: any, context: __SerdeContext): MemberDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30268,6 +30349,7 @@ const deserializeAws_json1_1MemberDefinitions = (output: any, context: __SerdeCo } return deserializeAws_json1_1MemberDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetadataProperties = (output: any, context: __SerdeContext): MetadataProperties => { @@ -30291,7 +30373,7 @@ const deserializeAws_json1_1MetricData = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1MetricDataList = (output: any, context: __SerdeContext): MetricDatum[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30299,6 +30381,7 @@ const deserializeAws_json1_1MetricDataList = (output: any, context: __SerdeConte } return deserializeAws_json1_1MetricDatum(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetricDatum = (output: any, context: __SerdeContext): MetricDatum => { @@ -30317,7 +30400,7 @@ const deserializeAws_json1_1MetricDefinition = (output: any, context: __SerdeCon }; const deserializeAws_json1_1MetricDefinitionList = (output: any, context: __SerdeContext): MetricDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30325,6 +30408,7 @@ const deserializeAws_json1_1MetricDefinitionList = (output: any, context: __Serd } return deserializeAws_json1_1MetricDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1MetricsSource = (output: any, context: __SerdeContext): MetricsSource => { @@ -30486,7 +30570,7 @@ const deserializeAws_json1_1ModelLatencyThresholds = ( output: any, context: __SerdeContext ): ModelLatencyThreshold[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30494,10 +30578,11 @@ const deserializeAws_json1_1ModelLatencyThresholds = ( } return deserializeAws_json1_1ModelLatencyThreshold(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelMetadataSummaries = (output: any, context: __SerdeContext): ModelMetadataSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30505,6 +30590,7 @@ const deserializeAws_json1_1ModelMetadataSummaries = (output: any, context: __Se } return deserializeAws_json1_1ModelMetadataSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelMetadataSummary = (output: any, context: __SerdeContext): ModelMetadataSummary => { @@ -30637,7 +30723,7 @@ const deserializeAws_json1_1ModelPackageContainerDefinitionList = ( output: any, context: __SerdeContext ): ModelPackageContainerDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30645,6 +30731,7 @@ const deserializeAws_json1_1ModelPackageContainerDefinitionList = ( } return deserializeAws_json1_1ModelPackageContainerDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelPackageGroup = (output: any, context: __SerdeContext): ModelPackageGroup => { @@ -30688,7 +30775,7 @@ const deserializeAws_json1_1ModelPackageGroupSummaryList = ( output: any, context: __SerdeContext ): ModelPackageGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30696,6 +30783,7 @@ const deserializeAws_json1_1ModelPackageGroupSummaryList = ( } return deserializeAws_json1_1ModelPackageGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelPackageStatusDetails = ( @@ -30726,7 +30814,7 @@ const deserializeAws_json1_1ModelPackageStatusItemList = ( output: any, context: __SerdeContext ): ModelPackageStatusItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30734,6 +30822,7 @@ const deserializeAws_json1_1ModelPackageStatusItemList = ( } return deserializeAws_json1_1ModelPackageStatusItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelPackageSummaries = ( @@ -30771,7 +30860,7 @@ const deserializeAws_json1_1ModelPackageSummary = (output: any, context: __Serde }; const deserializeAws_json1_1ModelPackageSummaryList = (output: any, context: __SerdeContext): ModelPackageSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30779,6 +30868,7 @@ const deserializeAws_json1_1ModelPackageSummaryList = (output: any, context: __S } return deserializeAws_json1_1ModelPackageSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelPackageValidationProfile = ( @@ -30798,7 +30888,7 @@ const deserializeAws_json1_1ModelPackageValidationProfiles = ( output: any, context: __SerdeContext ): ModelPackageValidationProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30806,6 +30896,7 @@ const deserializeAws_json1_1ModelPackageValidationProfiles = ( } return deserializeAws_json1_1ModelPackageValidationProfile(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelPackageValidationSpecification = ( @@ -30902,7 +30993,7 @@ const deserializeAws_json1_1ModelSummary = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ModelSummaryList = (output: any, context: __SerdeContext): ModelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30910,6 +31001,7 @@ const deserializeAws_json1_1ModelSummaryList = (output: any, context: __SerdeCon } return deserializeAws_json1_1ModelSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1MonitoringAppSpecification = ( @@ -30970,7 +31062,7 @@ const deserializeAws_json1_1MonitoringConstraintsResource = ( }; const deserializeAws_json1_1MonitoringContainerArguments = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -30978,6 +31070,7 @@ const deserializeAws_json1_1MonitoringContainerArguments = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1MonitoringEnvironmentMap = ( @@ -31026,7 +31119,7 @@ const deserializeAws_json1_1MonitoringExecutionSummaryList = ( output: any, context: __SerdeContext ): MonitoringExecutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31034,6 +31127,7 @@ const deserializeAws_json1_1MonitoringExecutionSummaryList = ( } return deserializeAws_json1_1MonitoringExecutionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1MonitoringGroundTruthS3Input = ( @@ -31055,7 +31149,7 @@ const deserializeAws_json1_1MonitoringInput = (output: any, context: __SerdeCont }; const deserializeAws_json1_1MonitoringInputs = (output: any, context: __SerdeContext): MonitoringInput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31063,6 +31157,7 @@ const deserializeAws_json1_1MonitoringInputs = (output: any, context: __SerdeCon } return deserializeAws_json1_1MonitoringInput(entry, context); }); + return retVal; }; const deserializeAws_json1_1MonitoringJobDefinition = ( @@ -31125,7 +31220,7 @@ const deserializeAws_json1_1MonitoringJobDefinitionSummaryList = ( output: any, context: __SerdeContext ): MonitoringJobDefinitionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31133,6 +31228,7 @@ const deserializeAws_json1_1MonitoringJobDefinitionSummaryList = ( } return deserializeAws_json1_1MonitoringJobDefinitionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1MonitoringNetworkConfig = ( @@ -31169,7 +31265,7 @@ const deserializeAws_json1_1MonitoringOutputConfig = (output: any, context: __Se }; const deserializeAws_json1_1MonitoringOutputs = (output: any, context: __SerdeContext): MonitoringOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31177,6 +31273,7 @@ const deserializeAws_json1_1MonitoringOutputs = (output: any, context: __SerdeCo } return deserializeAws_json1_1MonitoringOutput(entry, context); }); + return retVal; }; const deserializeAws_json1_1MonitoringResources = (output: any, context: __SerdeContext): MonitoringResources => { @@ -31246,7 +31343,7 @@ const deserializeAws_json1_1MonitoringScheduleConfig = ( }; const deserializeAws_json1_1MonitoringScheduleList = (output: any, context: __SerdeContext): MonitoringSchedule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31254,6 +31351,7 @@ const deserializeAws_json1_1MonitoringScheduleList = (output: any, context: __Se } return deserializeAws_json1_1MonitoringSchedule(entry, context); }); + return retVal; }; const deserializeAws_json1_1MonitoringScheduleSummary = ( @@ -31282,7 +31380,7 @@ const deserializeAws_json1_1MonitoringScheduleSummaryList = ( output: any, context: __SerdeContext ): MonitoringScheduleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31290,6 +31388,7 @@ const deserializeAws_json1_1MonitoringScheduleSummaryList = ( } return deserializeAws_json1_1MonitoringScheduleSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1MonitoringStatisticsResource = ( @@ -31330,7 +31429,7 @@ const deserializeAws_json1_1NeoVpcConfig = (output: any, context: __SerdeContext }; const deserializeAws_json1_1NeoVpcSecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31338,10 +31437,11 @@ const deserializeAws_json1_1NeoVpcSecurityGroupIds = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NeoVpcSubnets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31349,6 +31449,7 @@ const deserializeAws_json1_1NeoVpcSubnets = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NetworkConfig = (output: any, context: __SerdeContext): NetworkConfig => { @@ -31366,7 +31467,7 @@ const deserializeAws_json1_1NotebookInstanceAcceleratorTypes = ( output: any, context: __SerdeContext ): (NotebookInstanceAcceleratorType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31374,13 +31475,14 @@ const deserializeAws_json1_1NotebookInstanceAcceleratorTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NotebookInstanceLifecycleConfigList = ( output: any, context: __SerdeContext ): NotebookInstanceLifecycleHook[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31388,6 +31490,7 @@ const deserializeAws_json1_1NotebookInstanceLifecycleConfigList = ( } return deserializeAws_json1_1NotebookInstanceLifecycleHook(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotebookInstanceLifecycleConfigSummary = ( @@ -31412,7 +31515,7 @@ const deserializeAws_json1_1NotebookInstanceLifecycleConfigSummaryList = ( output: any, context: __SerdeContext ): NotebookInstanceLifecycleConfigSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31420,6 +31523,7 @@ const deserializeAws_json1_1NotebookInstanceLifecycleConfigSummaryList = ( } return deserializeAws_json1_1NotebookInstanceLifecycleConfigSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotebookInstanceLifecycleHook = ( @@ -31462,7 +31566,7 @@ const deserializeAws_json1_1NotebookInstanceSummaryList = ( output: any, context: __SerdeContext ): NotebookInstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31470,6 +31574,7 @@ const deserializeAws_json1_1NotebookInstanceSummaryList = ( } return deserializeAws_json1_1NotebookInstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotificationConfiguration = ( @@ -31581,7 +31686,7 @@ const deserializeAws_json1_1OutputParameter = (output: any, context: __SerdeCont }; const deserializeAws_json1_1OutputParameterList = (output: any, context: __SerdeContext): OutputParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31589,6 +31694,7 @@ const deserializeAws_json1_1OutputParameterList = (output: any, context: __Serde } return deserializeAws_json1_1OutputParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParallelismConfiguration = ( @@ -31608,7 +31714,7 @@ const deserializeAws_json1_1Parameter = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ParameterList = (output: any, context: __SerdeContext): Parameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31616,6 +31722,7 @@ const deserializeAws_json1_1ParameterList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Parameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterRange = (output: any, context: __SerdeContext): ParameterRange => { @@ -31661,7 +31768,7 @@ const deserializeAws_json1_1ParameterRanges = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ParameterValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31669,6 +31776,7 @@ const deserializeAws_json1_1ParameterValues = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Parent = (output: any, context: __SerdeContext): Parent => { @@ -31691,7 +31799,7 @@ const deserializeAws_json1_1ParentHyperParameterTuningJobs = ( output: any, context: __SerdeContext ): ParentHyperParameterTuningJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31699,10 +31807,11 @@ const deserializeAws_json1_1ParentHyperParameterTuningJobs = ( } return deserializeAws_json1_1ParentHyperParameterTuningJob(entry, context); }); + return retVal; }; const deserializeAws_json1_1Parents = (output: any, context: __SerdeContext): Parent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31710,6 +31819,7 @@ const deserializeAws_json1_1Parents = (output: any, context: __SerdeContext): Pa } return deserializeAws_json1_1Parent(entry, context); }); + return retVal; }; const deserializeAws_json1_1PendingDeploymentSummary = ( @@ -31764,7 +31874,7 @@ const deserializeAws_json1_1PendingProductionVariantSummaryList = ( output: any, context: __SerdeContext ): PendingProductionVariantSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31772,6 +31882,7 @@ const deserializeAws_json1_1PendingProductionVariantSummaryList = ( } return deserializeAws_json1_1PendingProductionVariantSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1Phase = (output: any, context: __SerdeContext): Phase => { @@ -31783,7 +31894,7 @@ const deserializeAws_json1_1Phase = (output: any, context: __SerdeContext): Phas }; const deserializeAws_json1_1Phases = (output: any, context: __SerdeContext): Phase[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31791,6 +31902,7 @@ const deserializeAws_json1_1Phases = (output: any, context: __SerdeContext): Pha } return deserializeAws_json1_1Phase(entry, context); }); + return retVal; }; const deserializeAws_json1_1Pipeline = (output: any, context: __SerdeContext): Pipeline => { @@ -31902,7 +32014,7 @@ const deserializeAws_json1_1PipelineExecutionStepList = ( output: any, context: __SerdeContext ): PipelineExecutionStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -31910,6 +32022,7 @@ const deserializeAws_json1_1PipelineExecutionStepList = ( } return deserializeAws_json1_1PipelineExecutionStep(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineExecutionStepMetadata = ( @@ -31993,7 +32106,7 @@ const deserializeAws_json1_1PipelineExecutionSummaryList = ( output: any, context: __SerdeContext ): PipelineExecutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32001,6 +32114,7 @@ const deserializeAws_json1_1PipelineExecutionSummaryList = ( } return deserializeAws_json1_1PipelineExecutionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PipelineExperimentConfig = ( @@ -32036,7 +32150,7 @@ const deserializeAws_json1_1PipelineSummary = (output: any, context: __SerdeCont }; const deserializeAws_json1_1PipelineSummaryList = (output: any, context: __SerdeContext): PipelineSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32044,6 +32158,7 @@ const deserializeAws_json1_1PipelineSummaryList = (output: any, context: __Serde } return deserializeAws_json1_1PipelineSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProcessingClusterConfig = ( @@ -32098,7 +32213,7 @@ const deserializeAws_json1_1ProcessingInput = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ProcessingInputs = (output: any, context: __SerdeContext): ProcessingInput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32106,6 +32221,7 @@ const deserializeAws_json1_1ProcessingInputs = (output: any, context: __SerdeCon } return deserializeAws_json1_1ProcessingInput(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProcessingJob = (output: any, context: __SerdeContext): ProcessingJob => { @@ -32184,7 +32300,7 @@ const deserializeAws_json1_1ProcessingJobStepMetadata = ( }; const deserializeAws_json1_1ProcessingJobSummaries = (output: any, context: __SerdeContext): ProcessingJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32192,6 +32308,7 @@ const deserializeAws_json1_1ProcessingJobSummaries = (output: any, context: __Se } return deserializeAws_json1_1ProcessingJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProcessingJobSummary = (output: any, context: __SerdeContext): ProcessingJobSummary => { @@ -32242,7 +32359,7 @@ const deserializeAws_json1_1ProcessingOutputConfig = (output: any, context: __Se }; const deserializeAws_json1_1ProcessingOutputs = (output: any, context: __SerdeContext): ProcessingOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32250,6 +32367,7 @@ const deserializeAws_json1_1ProcessingOutputs = (output: any, context: __SerdeCo } return deserializeAws_json1_1ProcessingOutput(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProcessingResources = (output: any, context: __SerdeContext): ProcessingResources => { @@ -32319,7 +32437,7 @@ const deserializeAws_json1_1ProductionVariantCoreDumpConfig = ( }; const deserializeAws_json1_1ProductionVariantList = (output: any, context: __SerdeContext): ProductionVariant[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32327,6 +32445,7 @@ const deserializeAws_json1_1ProductionVariantList = (output: any, context: __Ser } return deserializeAws_json1_1ProductionVariant(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProductionVariantServerlessConfig = ( @@ -32357,7 +32476,7 @@ const deserializeAws_json1_1ProductionVariantStatusList = ( output: any, context: __SerdeContext ): ProductionVariantStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32365,6 +32484,7 @@ const deserializeAws_json1_1ProductionVariantStatusList = ( } return deserializeAws_json1_1ProductionVariantStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProductionVariantSummary = ( @@ -32400,7 +32520,7 @@ const deserializeAws_json1_1ProductionVariantSummaryList = ( output: any, context: __SerdeContext ): ProductionVariantSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32408,10 +32528,11 @@ const deserializeAws_json1_1ProductionVariantSummaryList = ( } return deserializeAws_json1_1ProductionVariantSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProductListings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32419,6 +32540,7 @@ const deserializeAws_json1_1ProductListings = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProfilerConfig = (output: any, context: __SerdeContext): ProfilerConfig => { @@ -32454,7 +32576,7 @@ const deserializeAws_json1_1ProfilerRuleConfigurations = ( output: any, context: __SerdeContext ): ProfilerRuleConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32462,6 +32584,7 @@ const deserializeAws_json1_1ProfilerRuleConfigurations = ( } return deserializeAws_json1_1ProfilerRuleConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProfilerRuleEvaluationStatus = ( @@ -32484,7 +32607,7 @@ const deserializeAws_json1_1ProfilerRuleEvaluationStatuses = ( output: any, context: __SerdeContext ): ProfilerRuleEvaluationStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32492,6 +32615,7 @@ const deserializeAws_json1_1ProfilerRuleEvaluationStatuses = ( } return deserializeAws_json1_1ProfilerRuleEvaluationStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProfilingParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -32563,7 +32687,7 @@ const deserializeAws_json1_1ProjectSummary = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ProjectSummaryList = (output: any, context: __SerdeContext): ProjectSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32571,6 +32695,7 @@ const deserializeAws_json1_1ProjectSummaryList = (output: any, context: __SerdeC } return deserializeAws_json1_1ProjectSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1PropertyNameSuggestion = (output: any, context: __SerdeContext): PropertyNameSuggestion => { @@ -32583,7 +32708,7 @@ const deserializeAws_json1_1PropertyNameSuggestionList = ( output: any, context: __SerdeContext ): PropertyNameSuggestion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32591,6 +32716,7 @@ const deserializeAws_json1_1PropertyNameSuggestionList = ( } return deserializeAws_json1_1PropertyNameSuggestion(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisioningParameter = (output: any, context: __SerdeContext): ProvisioningParameter => { @@ -32604,7 +32730,7 @@ const deserializeAws_json1_1ProvisioningParameters = ( output: any, context: __SerdeContext ): ProvisioningParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32612,6 +32738,7 @@ const deserializeAws_json1_1ProvisioningParameters = ( } return deserializeAws_json1_1ProvisioningParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1PublicWorkforceTaskPrice = ( @@ -32671,7 +32798,7 @@ const deserializeAws_json1_1RealtimeInferenceInstanceTypes = ( output: any, context: __SerdeContext ): (ProductionVariantInstanceType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32679,6 +32806,7 @@ const deserializeAws_json1_1RealtimeInferenceInstanceTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RecommendationJobInputConfig = ( @@ -32769,7 +32897,7 @@ const deserializeAws_json1_1RenderingError = (output: any, context: __SerdeConte }; const deserializeAws_json1_1RenderingErrorList = (output: any, context: __SerdeContext): RenderingError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32777,6 +32905,7 @@ const deserializeAws_json1_1RenderingErrorList = (output: any, context: __SerdeC } return deserializeAws_json1_1RenderingError(entry, context); }); + return retVal; }; const deserializeAws_json1_1RenderUiTemplateResponse = ( @@ -32856,7 +32985,7 @@ const deserializeAws_json1_1ResourceSpec = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ResponseMIMETypes = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -32864,6 +32993,7 @@ const deserializeAws_json1_1ResponseMIMETypes = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RetryPipelineExecutionResponse = ( @@ -33008,7 +33138,7 @@ const deserializeAws_json1_1SearchResponse = (output: any, context: __SerdeConte }; const deserializeAws_json1_1SearchResultsList = (output: any, context: __SerdeContext): SearchRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33016,6 +33146,7 @@ const deserializeAws_json1_1SearchResultsList = (output: any, context: __SerdeCo } return deserializeAws_json1_1SearchRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecondaryStatusTransition = ( @@ -33040,7 +33171,7 @@ const deserializeAws_json1_1SecondaryStatusTransitions = ( output: any, context: __SerdeContext ): SecondaryStatusTransition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33048,10 +33179,11 @@ const deserializeAws_json1_1SecondaryStatusTransitions = ( } return deserializeAws_json1_1SecondaryStatusTransition(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33059,6 +33191,7 @@ const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SendPipelineExecutionStepFailureResponse = ( @@ -33126,7 +33259,7 @@ const deserializeAws_json1_1SourceAlgorithm = (output: any, context: __SerdeCont }; const deserializeAws_json1_1SourceAlgorithmList = (output: any, context: __SerdeContext): SourceAlgorithm[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33134,6 +33267,7 @@ const deserializeAws_json1_1SourceAlgorithmList = (output: any, context: __Serde } return deserializeAws_json1_1SourceAlgorithm(entry, context); }); + return retVal; }; const deserializeAws_json1_1SourceAlgorithmSpecification = ( @@ -33205,7 +33339,7 @@ const deserializeAws_json1_1StudioLifecycleConfigsList = ( output: any, context: __SerdeContext ): StudioLifecycleConfigDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33213,10 +33347,11 @@ const deserializeAws_json1_1StudioLifecycleConfigsList = ( } return deserializeAws_json1_1StudioLifecycleConfigDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1Subnets = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33224,6 +33359,7 @@ const deserializeAws_json1_1Subnets = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SubscribedWorkteam = (output: any, context: __SerdeContext): SubscribedWorkteam => { @@ -33237,7 +33373,7 @@ const deserializeAws_json1_1SubscribedWorkteam = (output: any, context: __SerdeC }; const deserializeAws_json1_1SubscribedWorkteams = (output: any, context: __SerdeContext): SubscribedWorkteam[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33245,6 +33381,7 @@ const deserializeAws_json1_1SubscribedWorkteams = (output: any, context: __Serde } return deserializeAws_json1_1SubscribedWorkteam(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -33255,7 +33392,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33263,6 +33400,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetPlatform = (output: any, context: __SerdeContext): TargetPlatform => { @@ -33274,7 +33412,7 @@ const deserializeAws_json1_1TargetPlatform = (output: any, context: __SerdeConte }; const deserializeAws_json1_1TaskKeywords = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33282,6 +33420,7 @@ const deserializeAws_json1_1TaskKeywords = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TensorBoardAppSettings = (output: any, context: __SerdeContext): TensorBoardAppSettings => { @@ -33347,7 +33486,7 @@ const deserializeAws_json1_1TrainingInstanceTypes = ( output: any, context: __SerdeContext ): (TrainingInstanceType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33355,6 +33494,7 @@ const deserializeAws_json1_1TrainingInstanceTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TrainingJob = (output: any, context: __SerdeContext): TrainingJob => { @@ -33517,7 +33657,7 @@ const deserializeAws_json1_1TrainingJobStepMetadata = ( }; const deserializeAws_json1_1TrainingJobSummaries = (output: any, context: __SerdeContext): TrainingJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33525,6 +33665,7 @@ const deserializeAws_json1_1TrainingJobSummaries = (output: any, context: __Serd } return deserializeAws_json1_1TrainingJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrainingJobSummary = (output: any, context: __SerdeContext): TrainingJobSummary => { @@ -33615,7 +33756,7 @@ const deserializeAws_json1_1TransformInstanceTypes = ( output: any, context: __SerdeContext ): (TransformInstanceType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33623,6 +33764,7 @@ const deserializeAws_json1_1TransformInstanceTypes = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TransformJob = (output: any, context: __SerdeContext): TransformJob => { @@ -33718,7 +33860,7 @@ const deserializeAws_json1_1TransformJobStepMetadata = ( }; const deserializeAws_json1_1TransformJobSummaries = (output: any, context: __SerdeContext): TransformJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33726,6 +33868,7 @@ const deserializeAws_json1_1TransformJobSummaries = (output: any, context: __Ser } return deserializeAws_json1_1TransformJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TransformJobSummary = (output: any, context: __SerdeContext): TransformJobSummary => { @@ -33916,7 +34059,7 @@ const deserializeAws_json1_1TrialComponentMetricSummaries = ( output: any, context: __SerdeContext ): TrialComponentMetricSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33924,6 +34067,7 @@ const deserializeAws_json1_1TrialComponentMetricSummaries = ( } return deserializeAws_json1_1TrialComponentMetricSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrialComponentMetricSummary = ( @@ -33981,7 +34125,7 @@ const deserializeAws_json1_1TrialComponentSimpleSummaries = ( output: any, context: __SerdeContext ): TrialComponentSimpleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -33989,6 +34133,7 @@ const deserializeAws_json1_1TrialComponentSimpleSummaries = ( } return deserializeAws_json1_1TrialComponentSimpleSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrialComponentSimpleSummary = ( @@ -34052,7 +34197,7 @@ const deserializeAws_json1_1TrialComponentSummaries = ( output: any, context: __SerdeContext ): TrialComponentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -34060,6 +34205,7 @@ const deserializeAws_json1_1TrialComponentSummaries = ( } return deserializeAws_json1_1TrialComponentSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrialComponentSummary = (output: any, context: __SerdeContext): TrialComponentSummary => { @@ -34110,7 +34256,7 @@ const deserializeAws_json1_1TrialSource = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1TrialSummaries = (output: any, context: __SerdeContext): TrialSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -34118,6 +34264,7 @@ const deserializeAws_json1_1TrialSummaries = (output: any, context: __SerdeConte } return deserializeAws_json1_1TrialSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrialSummary = (output: any, context: __SerdeContext): TrialSummary => { @@ -34381,7 +34528,7 @@ const deserializeAws_json1_1UserProfileDetails = (output: any, context: __SerdeC }; const deserializeAws_json1_1UserProfileList = (output: any, context: __SerdeContext): UserProfileDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -34389,6 +34536,7 @@ const deserializeAws_json1_1UserProfileList = (output: any, context: __SerdeCont } return deserializeAws_json1_1UserProfileDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1UserSettings = (output: any, context: __SerdeContext): UserSettings => { @@ -34434,7 +34582,7 @@ const deserializeAws_json1_1Vertex = (output: any, context: __SerdeContext): Ver }; const deserializeAws_json1_1Vertices = (output: any, context: __SerdeContext): Vertex[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -34442,6 +34590,7 @@ const deserializeAws_json1_1Vertices = (output: any, context: __SerdeContext): V } return deserializeAws_json1_1Vertex(entry, context); }); + return retVal; }; const deserializeAws_json1_1VpcConfig = (output: any, context: __SerdeContext): VpcConfig => { @@ -34458,7 +34607,7 @@ const deserializeAws_json1_1VpcConfig = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1VpcSecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -34466,6 +34615,7 @@ const deserializeAws_json1_1VpcSecurityGroupIds = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Workforce = (output: any, context: __SerdeContext): Workforce => { @@ -34497,7 +34647,7 @@ const deserializeAws_json1_1Workforce = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Workforces = (output: any, context: __SerdeContext): Workforce[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -34505,6 +34655,7 @@ const deserializeAws_json1_1Workforces = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Workforce(entry, context); }); + return retVal; }; const deserializeAws_json1_1Workteam = (output: any, context: __SerdeContext): Workteam => { @@ -34538,7 +34689,7 @@ const deserializeAws_json1_1Workteam = (output: any, context: __SerdeContext): W }; const deserializeAws_json1_1Workteams = (output: any, context: __SerdeContext): Workteam[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -34546,6 +34697,7 @@ const deserializeAws_json1_1Workteams = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Workteam(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-savingsplans/src/protocols/Aws_restJson1.ts b/clients/client-savingsplans/src/protocols/Aws_restJson1.ts index fcdbc7165990..a340f68aff54 100644 --- a/clients/client-savingsplans/src/protocols/Aws_restJson1.ts +++ b/clients/client-savingsplans/src/protocols/Aws_restJson1.ts @@ -1274,7 +1274,7 @@ const deserializeAws_restJson1SavingsPlan = (output: any, context: __SerdeContex }; const deserializeAws_restJson1SavingsPlanList = (output: any, context: __SerdeContext): SavingsPlan[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1282,6 +1282,7 @@ const deserializeAws_restJson1SavingsPlanList = (output: any, context: __SerdeCo } return deserializeAws_restJson1SavingsPlan(entry, context); }); + return retVal; }; const deserializeAws_restJson1SavingsPlanOffering = (output: any, context: __SerdeContext): SavingsPlanOffering => { @@ -1320,7 +1321,7 @@ const deserializeAws_restJson1SavingsPlanOfferingPropertyList = ( output: any, context: __SerdeContext ): SavingsPlanOfferingProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1328,6 +1329,7 @@ const deserializeAws_restJson1SavingsPlanOfferingPropertyList = ( } return deserializeAws_restJson1SavingsPlanOfferingProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1SavingsPlanOfferingRate = ( @@ -1366,7 +1368,7 @@ const deserializeAws_restJson1SavingsPlanOfferingRatePropertyList = ( output: any, context: __SerdeContext ): SavingsPlanOfferingRateProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1374,13 +1376,14 @@ const deserializeAws_restJson1SavingsPlanOfferingRatePropertyList = ( } return deserializeAws_restJson1SavingsPlanOfferingRateProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1SavingsPlanOfferingRatesList = ( output: any, context: __SerdeContext ): SavingsPlanOfferingRate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1388,13 +1391,14 @@ const deserializeAws_restJson1SavingsPlanOfferingRatesList = ( } return deserializeAws_restJson1SavingsPlanOfferingRate(entry, context); }); + return retVal; }; const deserializeAws_restJson1SavingsPlanOfferingsList = ( output: any, context: __SerdeContext ): SavingsPlanOffering[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1402,13 +1406,14 @@ const deserializeAws_restJson1SavingsPlanOfferingsList = ( } return deserializeAws_restJson1SavingsPlanOffering(entry, context); }); + return retVal; }; const deserializeAws_restJson1SavingsPlanProductTypeList = ( output: any, context: __SerdeContext ): (SavingsPlanProductType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1416,6 +1421,7 @@ const deserializeAws_restJson1SavingsPlanProductTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SavingsPlanRate = (output: any, context: __SerdeContext): SavingsPlanRate => { @@ -1435,7 +1441,7 @@ const deserializeAws_restJson1SavingsPlanRate = (output: any, context: __SerdeCo }; const deserializeAws_restJson1SavingsPlanRateList = (output: any, context: __SerdeContext): SavingsPlanRate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1443,6 +1449,7 @@ const deserializeAws_restJson1SavingsPlanRateList = (output: any, context: __Ser } return deserializeAws_restJson1SavingsPlanRate(entry, context); }); + return retVal; }; const deserializeAws_restJson1SavingsPlanRateProperty = ( @@ -1459,7 +1466,7 @@ const deserializeAws_restJson1SavingsPlanRatePropertyList = ( output: any, context: __SerdeContext ): SavingsPlanRateProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1467,6 +1474,7 @@ const deserializeAws_restJson1SavingsPlanRatePropertyList = ( } return deserializeAws_restJson1SavingsPlanRateProperty(entry, context); }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-schemas/src/protocols/Aws_restJson1.ts b/clients/client-schemas/src/protocols/Aws_restJson1.ts index c8b9fcf1313c..2d061fa51257 100644 --- a/clients/client-schemas/src/protocols/Aws_restJson1.ts +++ b/clients/client-schemas/src/protocols/Aws_restJson1.ts @@ -3437,7 +3437,7 @@ const deserializeAws_restJson1__listOfDiscovererSummary = ( output: any, context: __SerdeContext ): DiscovererSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3445,10 +3445,11 @@ const deserializeAws_restJson1__listOfDiscovererSummary = ( } return deserializeAws_restJson1DiscovererSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfRegistrySummary = (output: any, context: __SerdeContext): RegistrySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3456,10 +3457,11 @@ const deserializeAws_restJson1__listOfRegistrySummary = (output: any, context: _ } return deserializeAws_restJson1RegistrySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSchemaSummary = (output: any, context: __SerdeContext): SchemaSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3467,13 +3469,14 @@ const deserializeAws_restJson1__listOfSchemaSummary = (output: any, context: __S } return deserializeAws_restJson1SchemaSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSchemaVersionSummary = ( output: any, context: __SerdeContext ): SchemaVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3481,13 +3484,14 @@ const deserializeAws_restJson1__listOfSchemaVersionSummary = ( } return deserializeAws_restJson1SchemaVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSearchSchemaSummary = ( output: any, context: __SerdeContext ): SearchSchemaSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3495,13 +3499,14 @@ const deserializeAws_restJson1__listOfSearchSchemaSummary = ( } return deserializeAws_restJson1SearchSchemaSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfSearchSchemaVersionSummary = ( output: any, context: __SerdeContext ): SearchSchemaVersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3509,6 +3514,7 @@ const deserializeAws_restJson1__listOfSearchSchemaVersionSummary = ( } return deserializeAws_restJson1SearchSchemaVersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DiscovererSummary = (output: any, context: __SerdeContext): DiscovererSummary => { diff --git a/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts b/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts index ed1c4be5df88..75c54182826e 100644 --- a/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts +++ b/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts @@ -2303,7 +2303,7 @@ const deserializeAws_json1_1InvalidRequestException = ( }; const deserializeAws_json1_1KmsKeyIdListType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2311,6 +2311,7 @@ const deserializeAws_json1_1KmsKeyIdListType = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -2420,7 +2421,7 @@ const deserializeAws_json1_1ReplicationStatusListType = ( output: any, context: __SerdeContext ): ReplicationStatusType[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2428,6 +2429,7 @@ const deserializeAws_json1_1ReplicationStatusListType = ( } return deserializeAws_json1_1ReplicationStatusType(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationStatusType = (output: any, context: __SerdeContext): ReplicationStatusType => { @@ -2530,7 +2532,7 @@ const deserializeAws_json1_1SecretListEntry = (output: any, context: __SerdeCont }; const deserializeAws_json1_1SecretListType = (output: any, context: __SerdeContext): SecretListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2538,6 +2540,7 @@ const deserializeAws_json1_1SecretListType = (output: any, context: __SerdeConte } return deserializeAws_json1_1SecretListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecretVersionsListEntry = ( @@ -2569,7 +2572,7 @@ const deserializeAws_json1_1SecretVersionsListType = ( output: any, context: __SerdeContext ): SecretVersionsListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2577,10 +2580,11 @@ const deserializeAws_json1_1SecretVersionsListType = ( } return deserializeAws_json1_1SecretVersionsListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecretVersionStagesType = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2588,6 +2592,7 @@ const deserializeAws_json1_1SecretVersionStagesType = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SecretVersionsToStagesMapType = ( @@ -2622,7 +2627,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagListType = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2630,6 +2635,7 @@ const deserializeAws_json1_1TagListType = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1UpdateSecretResponse = (output: any, context: __SerdeContext): UpdateSecretResponse => { @@ -2671,7 +2677,7 @@ const deserializeAws_json1_1ValidationErrorsEntry = (output: any, context: __Ser }; const deserializeAws_json1_1ValidationErrorsType = (output: any, context: __SerdeContext): ValidationErrorsEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2679,6 +2685,7 @@ const deserializeAws_json1_1ValidationErrorsType = (output: any, context: __Serd } return deserializeAws_json1_1ValidationErrorsEntry(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-securityhub/src/protocols/Aws_restJson1.ts b/clients/client-securityhub/src/protocols/Aws_restJson1.ts index 50863fff1d09..ecf4399509cb 100644 --- a/clients/client-securityhub/src/protocols/Aws_restJson1.ts +++ b/clients/client-securityhub/src/protocols/Aws_restJson1.ts @@ -15525,7 +15525,7 @@ const deserializeAws_restJson1ActionTarget = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ActionTargetList = (output: any, context: __SerdeContext): ActionTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15533,6 +15533,7 @@ const deserializeAws_restJson1ActionTargetList = (output: any, context: __SerdeC } return deserializeAws_restJson1ActionTarget(entry, context); }); + return retVal; }; const deserializeAws_restJson1Adjustment = (output: any, context: __SerdeContext): Adjustment => { @@ -15543,7 +15544,7 @@ const deserializeAws_restJson1Adjustment = (output: any, context: __SerdeContext }; const deserializeAws_restJson1AdjustmentList = (output: any, context: __SerdeContext): Adjustment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15551,6 +15552,7 @@ const deserializeAws_restJson1AdjustmentList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Adjustment(entry, context); }); + return retVal; }; const deserializeAws_restJson1AdminAccount = (output: any, context: __SerdeContext): AdminAccount => { @@ -15561,7 +15563,7 @@ const deserializeAws_restJson1AdminAccount = (output: any, context: __SerdeConte }; const deserializeAws_restJson1AdminAccounts = (output: any, context: __SerdeContext): AdminAccount[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15569,6 +15571,7 @@ const deserializeAws_restJson1AdminAccounts = (output: any, context: __SerdeCont } return deserializeAws_restJson1AdminAccount(entry, context); }); + return retVal; }; const deserializeAws_restJson1AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { @@ -15579,7 +15582,7 @@ const deserializeAws_restJson1AvailabilityZone = (output: any, context: __SerdeC }; const deserializeAws_restJson1AvailabilityZones = (output: any, context: __SerdeContext): AvailabilityZone[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15587,6 +15590,7 @@ const deserializeAws_restJson1AvailabilityZones = (output: any, context: __Serde } return deserializeAws_restJson1AvailabilityZone(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsApiCallAction = (output: any, context: __SerdeContext): AwsApiCallAction => { @@ -15681,7 +15685,7 @@ const deserializeAws_restJson1AwsApiGatewayMethodSettingsList = ( output: any, context: __SerdeContext ): AwsApiGatewayMethodSettings[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15689,6 +15693,7 @@ const deserializeAws_restJson1AwsApiGatewayMethodSettingsList = ( } return deserializeAws_restJson1AwsApiGatewayMethodSettings(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsApiGatewayRestApiDetails = ( @@ -15821,7 +15826,7 @@ const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesLis output: any, context: __SerdeContext ): AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15829,6 +15834,7 @@ const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesLis } return deserializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails = ( @@ -15941,7 +15947,7 @@ const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicy output: any, context: __SerdeContext ): AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesListDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15952,6 +15958,7 @@ const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicy context ); }); + return retVal; }; const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesListDetails = ( @@ -15997,7 +16004,7 @@ const deserializeAws_restJson1AwsAutoScalingLaunchConfigurationBlockDeviceMappin output: any, context: __SerdeContext ): AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16005,6 +16012,7 @@ const deserializeAws_restJson1AwsAutoScalingLaunchConfigurationBlockDeviceMappin } return deserializeAws_restJson1AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsAutoScalingLaunchConfigurationDetails = ( @@ -16154,7 +16162,7 @@ const deserializeAws_restJson1AwsCertificateManagerCertificateDomainValidationOp output: any, context: __SerdeContext ): AwsCertificateManagerCertificateDomainValidationOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16162,6 +16170,7 @@ const deserializeAws_restJson1AwsCertificateManagerCertificateDomainValidationOp } return deserializeAws_restJson1AwsCertificateManagerCertificateDomainValidationOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCertificateManagerCertificateExtendedKeyUsage = ( @@ -16178,7 +16187,7 @@ const deserializeAws_restJson1AwsCertificateManagerCertificateExtendedKeyUsages output: any, context: __SerdeContext ): AwsCertificateManagerCertificateExtendedKeyUsage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16186,6 +16195,7 @@ const deserializeAws_restJson1AwsCertificateManagerCertificateExtendedKeyUsages } return deserializeAws_restJson1AwsCertificateManagerCertificateExtendedKeyUsage(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCertificateManagerCertificateKeyUsage = ( @@ -16201,7 +16211,7 @@ const deserializeAws_restJson1AwsCertificateManagerCertificateKeyUsages = ( output: any, context: __SerdeContext ): AwsCertificateManagerCertificateKeyUsage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16209,6 +16219,7 @@ const deserializeAws_restJson1AwsCertificateManagerCertificateKeyUsages = ( } return deserializeAws_restJson1AwsCertificateManagerCertificateKeyUsage(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCertificateManagerCertificateOptions = ( @@ -16274,7 +16285,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionCacheBehaviorsItemList = output: any, context: __SerdeContext ): AwsCloudFrontDistributionCacheBehavior[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16282,6 +16293,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionCacheBehaviorsItemList = } return deserializeAws_restJson1AwsCloudFrontDistributionCacheBehavior(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCloudFrontDistributionDefaultCacheBehavior = ( @@ -16384,7 +16396,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionOriginGroupFailoverStatus output: any, context: __SerdeContext ): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16392,6 +16404,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionOriginGroupFailoverStatus } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AwsCloudFrontDistributionOriginGroups = ( @@ -16410,7 +16423,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionOriginGroupsItemList = ( output: any, context: __SerdeContext ): AwsCloudFrontDistributionOriginGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16418,6 +16431,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionOriginGroupsItemList = ( } return deserializeAws_restJson1AwsCloudFrontDistributionOriginGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCloudFrontDistributionOriginItem = ( @@ -16439,7 +16453,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionOriginItemList = ( output: any, context: __SerdeContext ): AwsCloudFrontDistributionOriginItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16447,6 +16461,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionOriginItemList = ( } return deserializeAws_restJson1AwsCloudFrontDistributionOriginItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCloudFrontDistributionOrigins = ( @@ -16529,7 +16544,7 @@ const deserializeAws_restJson1AwsCodeBuildProjectArtifactsList = ( output: any, context: __SerdeContext ): AwsCodeBuildProjectArtifactsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16537,6 +16552,7 @@ const deserializeAws_restJson1AwsCodeBuildProjectArtifactsList = ( } return deserializeAws_restJson1AwsCodeBuildProjectArtifactsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCodeBuildProjectDetails = ( @@ -16608,7 +16624,7 @@ const deserializeAws_restJson1AwsCodeBuildProjectEnvironmentEnvironmentVariables output: any, context: __SerdeContext ): AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16616,6 +16632,7 @@ const deserializeAws_restJson1AwsCodeBuildProjectEnvironmentEnvironmentVariables } return deserializeAws_restJson1AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsCodeBuildProjectEnvironmentRegistryCredential = ( @@ -16732,7 +16749,7 @@ const deserializeAws_restJson1AwsDynamoDbTableAttributeDefinitionList = ( output: any, context: __SerdeContext ): AwsDynamoDbTableAttributeDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16740,6 +16757,7 @@ const deserializeAws_restJson1AwsDynamoDbTableAttributeDefinitionList = ( } return deserializeAws_restJson1AwsDynamoDbTableAttributeDefinition(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsDynamoDbTableBillingModeSummary = ( @@ -16839,7 +16857,7 @@ const deserializeAws_restJson1AwsDynamoDbTableGlobalSecondaryIndexList = ( output: any, context: __SerdeContext ): AwsDynamoDbTableGlobalSecondaryIndex[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16847,6 +16865,7 @@ const deserializeAws_restJson1AwsDynamoDbTableGlobalSecondaryIndexList = ( } return deserializeAws_restJson1AwsDynamoDbTableGlobalSecondaryIndex(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsDynamoDbTableKeySchema = ( @@ -16863,7 +16882,7 @@ const deserializeAws_restJson1AwsDynamoDbTableKeySchemaList = ( output: any, context: __SerdeContext ): AwsDynamoDbTableKeySchema[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16871,6 +16890,7 @@ const deserializeAws_restJson1AwsDynamoDbTableKeySchemaList = ( } return deserializeAws_restJson1AwsDynamoDbTableKeySchema(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsDynamoDbTableLocalSecondaryIndex = ( @@ -16895,7 +16915,7 @@ const deserializeAws_restJson1AwsDynamoDbTableLocalSecondaryIndexList = ( output: any, context: __SerdeContext ): AwsDynamoDbTableLocalSecondaryIndex[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16903,6 +16923,7 @@ const deserializeAws_restJson1AwsDynamoDbTableLocalSecondaryIndexList = ( } return deserializeAws_restJson1AwsDynamoDbTableLocalSecondaryIndex(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsDynamoDbTableProjection = ( @@ -16986,7 +17007,7 @@ const deserializeAws_restJson1AwsDynamoDbTableReplicaGlobalSecondaryIndexList = output: any, context: __SerdeContext ): AwsDynamoDbTableReplicaGlobalSecondaryIndex[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16994,13 +17015,14 @@ const deserializeAws_restJson1AwsDynamoDbTableReplicaGlobalSecondaryIndexList = } return deserializeAws_restJson1AwsDynamoDbTableReplicaGlobalSecondaryIndex(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsDynamoDbTableReplicaList = ( output: any, context: __SerdeContext ): AwsDynamoDbTableReplica[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17008,6 +17030,7 @@ const deserializeAws_restJson1AwsDynamoDbTableReplicaList = ( } return deserializeAws_restJson1AwsDynamoDbTableReplica(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsDynamoDbTableRestoreSummary = ( @@ -17096,7 +17119,7 @@ const deserializeAws_restJson1AwsEc2InstanceNetworkInterfacesList = ( output: any, context: __SerdeContext ): AwsEc2InstanceNetworkInterfacesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17104,6 +17127,7 @@ const deserializeAws_restJson1AwsEc2InstanceNetworkInterfacesList = ( } return deserializeAws_restJson1AwsEc2InstanceNetworkInterfacesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2NetworkAclAssociation = ( @@ -17121,7 +17145,7 @@ const deserializeAws_restJson1AwsEc2NetworkAclAssociationList = ( output: any, context: __SerdeContext ): AwsEc2NetworkAclAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17129,6 +17153,7 @@ const deserializeAws_restJson1AwsEc2NetworkAclAssociationList = ( } return deserializeAws_restJson1AwsEc2NetworkAclAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2NetworkAclDetails = ( @@ -17174,7 +17199,7 @@ const deserializeAws_restJson1AwsEc2NetworkAclEntryList = ( output: any, context: __SerdeContext ): AwsEc2NetworkAclEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17182,6 +17207,7 @@ const deserializeAws_restJson1AwsEc2NetworkAclEntryList = ( } return deserializeAws_restJson1AwsEc2NetworkAclEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2NetworkInterfaceAttachment = ( @@ -17240,7 +17266,7 @@ const deserializeAws_restJson1AwsEc2NetworkInterfaceIpV6AddressList = ( output: any, context: __SerdeContext ): AwsEc2NetworkInterfaceIpV6AddressDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17248,6 +17274,7 @@ const deserializeAws_restJson1AwsEc2NetworkInterfaceIpV6AddressList = ( } return deserializeAws_restJson1AwsEc2NetworkInterfaceIpV6AddressDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2NetworkInterfacePrivateIpAddressDetail = ( @@ -17264,7 +17291,7 @@ const deserializeAws_restJson1AwsEc2NetworkInterfacePrivateIpAddressList = ( output: any, context: __SerdeContext ): AwsEc2NetworkInterfacePrivateIpAddressDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17272,6 +17299,7 @@ const deserializeAws_restJson1AwsEc2NetworkInterfacePrivateIpAddressList = ( } return deserializeAws_restJson1AwsEc2NetworkInterfacePrivateIpAddressDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2NetworkInterfaceSecurityGroup = ( @@ -17288,7 +17316,7 @@ const deserializeAws_restJson1AwsEc2NetworkInterfaceSecurityGroupList = ( output: any, context: __SerdeContext ): AwsEc2NetworkInterfaceSecurityGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17296,6 +17324,7 @@ const deserializeAws_restJson1AwsEc2NetworkInterfaceSecurityGroupList = ( } return deserializeAws_restJson1AwsEc2NetworkInterfaceSecurityGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2SecurityGroupDetails = ( @@ -17349,7 +17378,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupIpPermissionList = ( output: any, context: __SerdeContext ): AwsEc2SecurityGroupIpPermission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17357,6 +17386,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupIpPermissionList = ( } return deserializeAws_restJson1AwsEc2SecurityGroupIpPermission(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2SecurityGroupIpRange = ( @@ -17372,7 +17402,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupIpRangeList = ( output: any, context: __SerdeContext ): AwsEc2SecurityGroupIpRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17380,6 +17410,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupIpRangeList = ( } return deserializeAws_restJson1AwsEc2SecurityGroupIpRange(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2SecurityGroupIpv6Range = ( @@ -17395,7 +17426,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupIpv6RangeList = ( output: any, context: __SerdeContext ): AwsEc2SecurityGroupIpv6Range[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17403,6 +17434,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupIpv6RangeList = ( } return deserializeAws_restJson1AwsEc2SecurityGroupIpv6Range(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2SecurityGroupPrefixListId = ( @@ -17418,7 +17450,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupPrefixListIdList = ( output: any, context: __SerdeContext ): AwsEc2SecurityGroupPrefixListId[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17426,6 +17458,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupPrefixListIdList = ( } return deserializeAws_restJson1AwsEc2SecurityGroupPrefixListId(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2SecurityGroupUserIdGroupPair = ( @@ -17446,7 +17479,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupUserIdGroupPairList = ( output: any, context: __SerdeContext ): AwsEc2SecurityGroupUserIdGroupPair[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17454,6 +17487,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupUserIdGroupPairList = ( } return deserializeAws_restJson1AwsEc2SecurityGroupUserIdGroupPair(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2SubnetDetails = (output: any, context: __SerdeContext): AwsEc2SubnetDetails => { @@ -17493,7 +17527,7 @@ const deserializeAws_restJson1AwsEc2VolumeAttachmentList = ( output: any, context: __SerdeContext ): AwsEc2VolumeAttachment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17501,6 +17535,7 @@ const deserializeAws_restJson1AwsEc2VolumeAttachmentList = ( } return deserializeAws_restJson1AwsEc2VolumeAttachment(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2VolumeDetails = (output: any, context: __SerdeContext): AwsEc2VolumeDetails => { @@ -17580,7 +17615,7 @@ const deserializeAws_restJson1AwsEc2VpcEndpointServiceServiceTypeList = ( output: any, context: __SerdeContext ): AwsEc2VpcEndpointServiceServiceTypeDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17588,6 +17623,7 @@ const deserializeAws_restJson1AwsEc2VpcEndpointServiceServiceTypeList = ( } return deserializeAws_restJson1AwsEc2VpcEndpointServiceServiceTypeDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2VpnConnectionDetails = ( @@ -17680,7 +17716,7 @@ const deserializeAws_restJson1AwsEc2VpnConnectionOptionsTunnelOptionsList = ( output: any, context: __SerdeContext ): AwsEc2VpnConnectionOptionsTunnelOptionsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17688,6 +17724,7 @@ const deserializeAws_restJson1AwsEc2VpnConnectionOptionsTunnelOptionsList = ( } return deserializeAws_restJson1AwsEc2VpnConnectionOptionsTunnelOptionsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2VpnConnectionRoutesDetails = ( @@ -17704,7 +17741,7 @@ const deserializeAws_restJson1AwsEc2VpnConnectionRoutesList = ( output: any, context: __SerdeContext ): AwsEc2VpnConnectionRoutesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17712,6 +17749,7 @@ const deserializeAws_restJson1AwsEc2VpnConnectionRoutesList = ( } return deserializeAws_restJson1AwsEc2VpnConnectionRoutesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEc2VpnConnectionVgwTelemetryDetails = ( @@ -17732,7 +17770,7 @@ const deserializeAws_restJson1AwsEc2VpnConnectionVgwTelemetryList = ( output: any, context: __SerdeContext ): AwsEc2VpnConnectionVgwTelemetryDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17740,6 +17778,7 @@ const deserializeAws_restJson1AwsEc2VpnConnectionVgwTelemetryList = ( } return deserializeAws_restJson1AwsEc2VpnConnectionVgwTelemetryDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcrContainerImageDetails = ( @@ -17815,7 +17854,7 @@ const deserializeAws_restJson1AwsEcsClusterClusterSettingsList = ( output: any, context: __SerdeContext ): AwsEcsClusterClusterSettingsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17823,6 +17862,7 @@ const deserializeAws_restJson1AwsEcsClusterClusterSettingsList = ( } return deserializeAws_restJson1AwsEcsClusterClusterSettingsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsClusterConfigurationDetails = ( @@ -17885,7 +17925,7 @@ const deserializeAws_restJson1AwsEcsClusterDefaultCapacityProviderStrategyList = output: any, context: __SerdeContext ): AwsEcsClusterDefaultCapacityProviderStrategyDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17893,6 +17933,7 @@ const deserializeAws_restJson1AwsEcsClusterDefaultCapacityProviderStrategyList = } return deserializeAws_restJson1AwsEcsClusterDefaultCapacityProviderStrategyDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsClusterDetails = (output: any, context: __SerdeContext): AwsEcsClusterDetails => { @@ -17934,7 +17975,7 @@ const deserializeAws_restJson1AwsEcsServiceCapacityProviderStrategyList = ( output: any, context: __SerdeContext ): AwsEcsServiceCapacityProviderStrategyDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17942,6 +17983,7 @@ const deserializeAws_restJson1AwsEcsServiceCapacityProviderStrategyList = ( } return deserializeAws_restJson1AwsEcsServiceCapacityProviderStrategyDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails = ( @@ -18047,7 +18089,7 @@ const deserializeAws_restJson1AwsEcsServiceLoadBalancersList = ( output: any, context: __SerdeContext ): AwsEcsServiceLoadBalancersDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18055,6 +18097,7 @@ const deserializeAws_restJson1AwsEcsServiceLoadBalancersList = ( } return deserializeAws_restJson1AwsEcsServiceLoadBalancersDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails = ( @@ -18103,7 +18146,7 @@ const deserializeAws_restJson1AwsEcsServicePlacementConstraintsList = ( output: any, context: __SerdeContext ): AwsEcsServicePlacementConstraintsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18111,6 +18154,7 @@ const deserializeAws_restJson1AwsEcsServicePlacementConstraintsList = ( } return deserializeAws_restJson1AwsEcsServicePlacementConstraintsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsServicePlacementStrategiesDetails = ( @@ -18127,7 +18171,7 @@ const deserializeAws_restJson1AwsEcsServicePlacementStrategiesList = ( output: any, context: __SerdeContext ): AwsEcsServicePlacementStrategiesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18135,6 +18179,7 @@ const deserializeAws_restJson1AwsEcsServicePlacementStrategiesList = ( } return deserializeAws_restJson1AwsEcsServicePlacementStrategiesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsServiceServiceRegistriesDetails = ( @@ -18153,7 +18198,7 @@ const deserializeAws_restJson1AwsEcsServiceServiceRegistriesList = ( output: any, context: __SerdeContext ): AwsEcsServiceServiceRegistriesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18161,6 +18206,7 @@ const deserializeAws_restJson1AwsEcsServiceServiceRegistriesList = ( } return deserializeAws_restJson1AwsEcsServiceServiceRegistriesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails = ( @@ -18177,7 +18223,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDependsOnL output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18185,6 +18231,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDependsOnL } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDetails = ( @@ -18351,7 +18398,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsEnvironmen output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18359,13 +18406,14 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsEnvironmen } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsEnvironmentList = ( output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18373,6 +18421,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsEnvironmen } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails = ( @@ -18389,7 +18438,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsExtraHosts output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18397,6 +18446,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsExtraHosts } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails = ( @@ -18495,7 +18545,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLinuxParam output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18506,6 +18556,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLinuxParam context ); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails = ( @@ -18526,7 +18577,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLinuxParam output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18537,13 +18588,14 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLinuxParam context ); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsList = ( output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18551,6 +18603,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsList = ( } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails = ( @@ -18587,7 +18640,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLogConfigu output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18598,6 +18651,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLogConfigu context ); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails = ( @@ -18615,7 +18669,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsMountPoint output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18623,6 +18677,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsMountPoint } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails = ( @@ -18640,7 +18695,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsPortMappin output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18648,6 +18703,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsPortMappin } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails = ( @@ -18673,7 +18729,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsResourceRe output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18684,6 +18740,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsResourceRe context ); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails = ( @@ -18700,7 +18757,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSecretsLis output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18708,6 +18765,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSecretsLis } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails = ( @@ -18724,7 +18782,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSystemCont output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18732,6 +18790,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSystemCont } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails = ( @@ -18749,7 +18808,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsUlimitsLis output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18757,6 +18816,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsUlimitsLis } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails = ( @@ -18773,7 +18833,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsVolumesFro output: any, context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18781,6 +18841,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsVolumesFro } return deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionDetails = ( @@ -18837,7 +18898,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionInferenceAcceleratorsList = ( output: any, context: __SerdeContext ): AwsEcsTaskDefinitionInferenceAcceleratorsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18845,6 +18906,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionInferenceAcceleratorsList = ( } return deserializeAws_restJson1AwsEcsTaskDefinitionInferenceAcceleratorsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionPlacementConstraintsDetails = ( @@ -18861,7 +18923,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionPlacementConstraintsList = ( output: any, context: __SerdeContext ): AwsEcsTaskDefinitionPlacementConstraintsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18869,6 +18931,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionPlacementConstraintsList = ( } return deserializeAws_restJson1AwsEcsTaskDefinitionPlacementConstraintsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionProxyConfigurationDetails = ( @@ -18902,7 +18965,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionProxyConfigurationProxyConfigu output: any, context: __SerdeContext ): AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18913,6 +18976,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionProxyConfigurationProxyConfigu context ); }); + return retVal; }; const deserializeAws_restJson1AwsEcsTaskDefinitionVolumesDetails = ( @@ -19003,7 +19067,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionVolumesList = ( output: any, context: __SerdeContext ): AwsEcsTaskDefinitionVolumesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19011,6 +19075,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionVolumesList = ( } return deserializeAws_restJson1AwsEcsTaskDefinitionVolumesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEksClusterDetails = (output: any, context: __SerdeContext): AwsEksClusterDetails => { @@ -19050,7 +19115,7 @@ const deserializeAws_restJson1AwsEksClusterLoggingClusterLoggingList = ( output: any, context: __SerdeContext ): AwsEksClusterLoggingClusterLoggingDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19058,6 +19123,7 @@ const deserializeAws_restJson1AwsEksClusterLoggingClusterLoggingList = ( } return deserializeAws_restJson1AwsEksClusterLoggingClusterLoggingDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsEksClusterLoggingDetails = ( @@ -19135,7 +19201,7 @@ const deserializeAws_restJson1AwsElasticBeanstalkEnvironmentEnvironmentLinks = ( output: any, context: __SerdeContext ): AwsElasticBeanstalkEnvironmentEnvironmentLink[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19143,6 +19209,7 @@ const deserializeAws_restJson1AwsElasticBeanstalkEnvironmentEnvironmentLinks = ( } return deserializeAws_restJson1AwsElasticBeanstalkEnvironmentEnvironmentLink(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsElasticBeanstalkEnvironmentOptionSetting = ( @@ -19161,7 +19228,7 @@ const deserializeAws_restJson1AwsElasticBeanstalkEnvironmentOptionSettings = ( output: any, context: __SerdeContext ): AwsElasticBeanstalkEnvironmentOptionSetting[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19169,6 +19236,7 @@ const deserializeAws_restJson1AwsElasticBeanstalkEnvironmentOptionSettings = ( } return deserializeAws_restJson1AwsElasticBeanstalkEnvironmentOptionSetting(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsElasticBeanstalkEnvironmentTier = ( @@ -19362,7 +19430,7 @@ const deserializeAws_restJson1AwsElbAppCookieStickinessPolicies = ( output: any, context: __SerdeContext ): AwsElbAppCookieStickinessPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19370,6 +19438,7 @@ const deserializeAws_restJson1AwsElbAppCookieStickinessPolicies = ( } return deserializeAws_restJson1AwsElbAppCookieStickinessPolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsElbAppCookieStickinessPolicy = ( @@ -19386,7 +19455,7 @@ const deserializeAws_restJson1AwsElbLbCookieStickinessPolicies = ( output: any, context: __SerdeContext ): AwsElbLbCookieStickinessPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19394,6 +19463,7 @@ const deserializeAws_restJson1AwsElbLbCookieStickinessPolicies = ( } return deserializeAws_restJson1AwsElbLbCookieStickinessPolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsElbLbCookieStickinessPolicy = ( @@ -19459,7 +19529,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerBackendServerDescriptions = ( output: any, context: __SerdeContext ): AwsElbLoadBalancerBackendServerDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19467,6 +19537,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerBackendServerDescriptions = ( } return deserializeAws_restJson1AwsElbLoadBalancerBackendServerDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsElbLoadBalancerConnectionDraining = ( @@ -19578,7 +19649,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerInstances = ( output: any, context: __SerdeContext ): AwsElbLoadBalancerInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19586,6 +19657,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerInstances = ( } return deserializeAws_restJson1AwsElbLoadBalancerInstance(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsElbLoadBalancerListener = ( @@ -19621,7 +19693,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerListenerDescriptions = ( output: any, context: __SerdeContext ): AwsElbLoadBalancerListenerDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19629,6 +19701,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerListenerDescriptions = ( } return deserializeAws_restJson1AwsElbLoadBalancerListenerDescription(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsElbLoadBalancerPolicies = ( @@ -19675,7 +19748,7 @@ const deserializeAws_restJson1AwsElbv2LoadBalancerAttributes = ( output: any, context: __SerdeContext ): AwsElbv2LoadBalancerAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19683,6 +19756,7 @@ const deserializeAws_restJson1AwsElbv2LoadBalancerAttributes = ( } return deserializeAws_restJson1AwsElbv2LoadBalancerAttribute(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsElbv2LoadBalancerDetails = ( @@ -19789,7 +19863,7 @@ const deserializeAws_restJson1AwsIamAttachedManagedPolicyList = ( output: any, context: __SerdeContext ): AwsIamAttachedManagedPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19797,6 +19871,7 @@ const deserializeAws_restJson1AwsIamAttachedManagedPolicyList = ( } return deserializeAws_restJson1AwsIamAttachedManagedPolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsIamGroupDetails = (output: any, context: __SerdeContext): AwsIamGroupDetails => { @@ -19823,7 +19898,7 @@ const deserializeAws_restJson1AwsIamGroupPolicy = (output: any, context: __Serde }; const deserializeAws_restJson1AwsIamGroupPolicyList = (output: any, context: __SerdeContext): AwsIamGroupPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19831,6 +19906,7 @@ const deserializeAws_restJson1AwsIamGroupPolicyList = (output: any, context: __S } return deserializeAws_restJson1AwsIamGroupPolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsIamInstanceProfile = (output: any, context: __SerdeContext): AwsIamInstanceProfile => { @@ -19851,7 +19927,7 @@ const deserializeAws_restJson1AwsIamInstanceProfileList = ( output: any, context: __SerdeContext ): AwsIamInstanceProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19859,6 +19935,7 @@ const deserializeAws_restJson1AwsIamInstanceProfileList = ( } return deserializeAws_restJson1AwsIamInstanceProfile(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsIamInstanceProfileRole = ( @@ -19879,7 +19956,7 @@ const deserializeAws_restJson1AwsIamInstanceProfileRoles = ( output: any, context: __SerdeContext ): AwsIamInstanceProfileRole[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19887,6 +19964,7 @@ const deserializeAws_restJson1AwsIamInstanceProfileRoles = ( } return deserializeAws_restJson1AwsIamInstanceProfileRole(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsIamPermissionsBoundary = ( @@ -19930,7 +20008,7 @@ const deserializeAws_restJson1AwsIamPolicyVersionList = ( output: any, context: __SerdeContext ): AwsIamPolicyVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19938,6 +20016,7 @@ const deserializeAws_restJson1AwsIamPolicyVersionList = ( } return deserializeAws_restJson1AwsIamPolicyVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsIamRoleDetails = (output: any, context: __SerdeContext): AwsIamRoleDetails => { @@ -19974,7 +20053,7 @@ const deserializeAws_restJson1AwsIamRolePolicy = (output: any, context: __SerdeC }; const deserializeAws_restJson1AwsIamRolePolicyList = (output: any, context: __SerdeContext): AwsIamRolePolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19982,6 +20061,7 @@ const deserializeAws_restJson1AwsIamRolePolicyList = (output: any, context: __Se } return deserializeAws_restJson1AwsIamRolePolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsIamUserDetails = (output: any, context: __SerdeContext): AwsIamUserDetails => { @@ -20016,7 +20096,7 @@ const deserializeAws_restJson1AwsIamUserPolicy = (output: any, context: __SerdeC }; const deserializeAws_restJson1AwsIamUserPolicyList = (output: any, context: __SerdeContext): AwsIamUserPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20024,6 +20104,7 @@ const deserializeAws_restJson1AwsIamUserPolicyList = (output: any, context: __Se } return deserializeAws_restJson1AwsIamUserPolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsKmsKeyDetails = (output: any, context: __SerdeContext): AwsKmsKeyDetails => { @@ -20141,7 +20222,7 @@ const deserializeAws_restJson1AwsLambdaFunctionLayerList = ( output: any, context: __SerdeContext ): AwsLambdaFunctionLayer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20149,6 +20230,7 @@ const deserializeAws_restJson1AwsLambdaFunctionLayerList = ( } return deserializeAws_restJson1AwsLambdaFunctionLayer(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsLambdaFunctionTracingConfig = ( @@ -20241,7 +20323,7 @@ const deserializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsList = ( output: any, context: __SerdeContext ): AwsNetworkFirewallFirewallSubnetMappingsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20249,6 +20331,7 @@ const deserializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsList = ( } return deserializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsNetworkFirewallRuleGroupDetails = ( @@ -20471,7 +20554,7 @@ const deserializeAws_restJson1AwsRdsDbClusterAssociatedRoles = ( output: any, context: __SerdeContext ): AwsRdsDbClusterAssociatedRole[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20479,6 +20562,7 @@ const deserializeAws_restJson1AwsRdsDbClusterAssociatedRoles = ( } return deserializeAws_restJson1AwsRdsDbClusterAssociatedRole(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbClusterDetails = ( @@ -20566,7 +20650,7 @@ const deserializeAws_restJson1AwsRdsDbClusterMembers = ( output: any, context: __SerdeContext ): AwsRdsDbClusterMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20574,6 +20658,7 @@ const deserializeAws_restJson1AwsRdsDbClusterMembers = ( } return deserializeAws_restJson1AwsRdsDbClusterMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbClusterOptionGroupMembership = ( @@ -20590,7 +20675,7 @@ const deserializeAws_restJson1AwsRdsDbClusterOptionGroupMemberships = ( output: any, context: __SerdeContext ): AwsRdsDbClusterOptionGroupMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20598,6 +20683,7 @@ const deserializeAws_restJson1AwsRdsDbClusterOptionGroupMemberships = ( } return deserializeAws_restJson1AwsRdsDbClusterOptionGroupMembership(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbClusterSnapshotDetails = ( @@ -20645,7 +20731,7 @@ const deserializeAws_restJson1AwsRdsDbDomainMemberships = ( output: any, context: __SerdeContext ): AwsRdsDbDomainMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20653,6 +20739,7 @@ const deserializeAws_restJson1AwsRdsDbDomainMemberships = ( } return deserializeAws_restJson1AwsRdsDbDomainMembership(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbInstanceAssociatedRole = ( @@ -20670,7 +20757,7 @@ const deserializeAws_restJson1AwsRdsDbInstanceAssociatedRoles = ( output: any, context: __SerdeContext ): AwsRdsDbInstanceAssociatedRole[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20678,6 +20765,7 @@ const deserializeAws_restJson1AwsRdsDbInstanceAssociatedRoles = ( } return deserializeAws_restJson1AwsRdsDbInstanceAssociatedRole(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbInstanceDetails = ( @@ -20815,7 +20903,7 @@ const deserializeAws_restJson1AwsRdsDbInstanceVpcSecurityGroups = ( output: any, context: __SerdeContext ): AwsRdsDbInstanceVpcSecurityGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20823,6 +20911,7 @@ const deserializeAws_restJson1AwsRdsDbInstanceVpcSecurityGroups = ( } return deserializeAws_restJson1AwsRdsDbInstanceVpcSecurityGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbOptionGroupMembership = ( @@ -20839,7 +20928,7 @@ const deserializeAws_restJson1AwsRdsDbOptionGroupMemberships = ( output: any, context: __SerdeContext ): AwsRdsDbOptionGroupMembership[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20847,6 +20936,7 @@ const deserializeAws_restJson1AwsRdsDbOptionGroupMemberships = ( } return deserializeAws_restJson1AwsRdsDbOptionGroupMembership(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbParameterGroup = ( @@ -20863,7 +20953,7 @@ const deserializeAws_restJson1AwsRdsDbParameterGroups = ( output: any, context: __SerdeContext ): AwsRdsDbParameterGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20871,6 +20961,7 @@ const deserializeAws_restJson1AwsRdsDbParameterGroups = ( } return deserializeAws_restJson1AwsRdsDbParameterGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbPendingModifiedValues = ( @@ -20916,7 +21007,7 @@ const deserializeAws_restJson1AwsRdsDbProcessorFeatures = ( output: any, context: __SerdeContext ): AwsRdsDbProcessorFeature[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20924,6 +21015,7 @@ const deserializeAws_restJson1AwsRdsDbProcessorFeatures = ( } return deserializeAws_restJson1AwsRdsDbProcessorFeature(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbSnapshotDetails = ( @@ -20974,7 +21066,7 @@ const deserializeAws_restJson1AwsRdsDbStatusInfo = (output: any, context: __Serd }; const deserializeAws_restJson1AwsRdsDbStatusInfos = (output: any, context: __SerdeContext): AwsRdsDbStatusInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20982,6 +21074,7 @@ const deserializeAws_restJson1AwsRdsDbStatusInfos = (output: any, context: __Ser } return deserializeAws_restJson1AwsRdsDbStatusInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsDbSubnetGroup = (output: any, context: __SerdeContext): AwsRdsDbSubnetGroup => { @@ -21025,7 +21118,7 @@ const deserializeAws_restJson1AwsRdsDbSubnetGroupSubnets = ( output: any, context: __SerdeContext ): AwsRdsDbSubnetGroupSubnet[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21033,6 +21126,7 @@ const deserializeAws_restJson1AwsRdsDbSubnetGroupSubnets = ( } return deserializeAws_restJson1AwsRdsDbSubnetGroupSubnet(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRdsEventSubscriptionDetails = ( @@ -21090,7 +21184,7 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterNodes = ( output: any, context: __SerdeContext ): AwsRedshiftClusterClusterNode[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21098,6 +21192,7 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterNodes = ( } return deserializeAws_restJson1AwsRedshiftClusterClusterNode(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRedshiftClusterClusterParameterGroup = ( @@ -21121,7 +21216,7 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterParameterGroups = ( output: any, context: __SerdeContext ): AwsRedshiftClusterClusterParameterGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21129,6 +21224,7 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterParameterGroups = ( } return deserializeAws_restJson1AwsRedshiftClusterClusterParameterGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRedshiftClusterClusterParameterStatus = ( @@ -21146,7 +21242,7 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterParameterStatusList = ( output: any, context: __SerdeContext ): AwsRedshiftClusterClusterParameterStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21154,6 +21250,7 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterParameterStatusList = ( } return deserializeAws_restJson1AwsRedshiftClusterClusterParameterStatus(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRedshiftClusterClusterSecurityGroup = ( @@ -21170,7 +21267,7 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterSecurityGroups = ( output: any, context: __SerdeContext ): AwsRedshiftClusterClusterSecurityGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21178,6 +21275,7 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterSecurityGroups = ( } return deserializeAws_restJson1AwsRedshiftClusterClusterSecurityGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRedshiftClusterClusterSnapshotCopyStatus = ( @@ -21207,7 +21305,7 @@ const deserializeAws_restJson1AwsRedshiftClusterDeferredMaintenanceWindows = ( output: any, context: __SerdeContext ): AwsRedshiftClusterDeferredMaintenanceWindow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21215,6 +21313,7 @@ const deserializeAws_restJson1AwsRedshiftClusterDeferredMaintenanceWindows = ( } return deserializeAws_restJson1AwsRedshiftClusterDeferredMaintenanceWindow(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRedshiftClusterDetails = ( @@ -21358,7 +21457,7 @@ const deserializeAws_restJson1AwsRedshiftClusterIamRoles = ( output: any, context: __SerdeContext ): AwsRedshiftClusterIamRole[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21366,6 +21465,7 @@ const deserializeAws_restJson1AwsRedshiftClusterIamRoles = ( } return deserializeAws_restJson1AwsRedshiftClusterIamRole(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsRedshiftClusterPendingModifiedValues = ( @@ -21425,7 +21525,7 @@ const deserializeAws_restJson1AwsRedshiftClusterVpcSecurityGroups = ( output: any, context: __SerdeContext ): AwsRedshiftClusterVpcSecurityGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21433,6 +21533,7 @@ const deserializeAws_restJson1AwsRedshiftClusterVpcSecurityGroups = ( } return deserializeAws_restJson1AwsRedshiftClusterVpcSecurityGroup(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsS3AccountPublicAccessBlockDetails = ( @@ -21568,7 +21669,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesFilter output: any, context: __SerdeContext ): AwsS3BucketBucketLifecycleConfigurationRulesFilterPredicateOperandsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21579,6 +21680,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesFilter context ); }); + return retVal; }; const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesFilterPredicateOperandsTagDetails = ( @@ -21605,7 +21707,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesList = output: any, context: __SerdeContext ): AwsS3BucketBucketLifecycleConfigurationRulesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21613,6 +21715,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesList = } return deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails = ( @@ -21629,7 +21732,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesNoncur output: any, context: __SerdeContext ): AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21640,6 +21743,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesNoncur context ); }); + return retVal; }; const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails = ( @@ -21657,7 +21761,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransi output: any, context: __SerdeContext ): AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21665,6 +21769,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransi } return deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsS3BucketBucketVersioningConfiguration = ( @@ -21768,7 +21873,7 @@ const deserializeAws_restJson1AwsS3BucketNotificationConfigurationDetails = ( output: any, context: __SerdeContext ): AwsS3BucketNotificationConfigurationDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21776,13 +21881,14 @@ const deserializeAws_restJson1AwsS3BucketNotificationConfigurationDetails = ( } return deserializeAws_restJson1AwsS3BucketNotificationConfigurationDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsS3BucketNotificationConfigurationEvents = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21790,6 +21896,7 @@ const deserializeAws_restJson1AwsS3BucketNotificationConfigurationEvents = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AwsS3BucketNotificationConfigurationFilter = ( @@ -21830,7 +21937,7 @@ const deserializeAws_restJson1AwsS3BucketNotificationConfigurationS3KeyFilterRul output: any, context: __SerdeContext ): AwsS3BucketNotificationConfigurationS3KeyFilterRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21838,6 +21945,7 @@ const deserializeAws_restJson1AwsS3BucketNotificationConfigurationS3KeyFilterRul } return deserializeAws_restJson1AwsS3BucketNotificationConfigurationS3KeyFilterRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsS3BucketServerSideEncryptionByDefault = ( @@ -21881,7 +21989,7 @@ const deserializeAws_restJson1AwsS3BucketServerSideEncryptionRules = ( output: any, context: __SerdeContext ): AwsS3BucketServerSideEncryptionRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21889,6 +21997,7 @@ const deserializeAws_restJson1AwsS3BucketServerSideEncryptionRules = ( } return deserializeAws_restJson1AwsS3BucketServerSideEncryptionRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsS3BucketWebsiteConfiguration = ( @@ -21962,7 +22071,7 @@ const deserializeAws_restJson1AwsS3BucketWebsiteConfigurationRoutingRules = ( output: any, context: __SerdeContext ): AwsS3BucketWebsiteConfigurationRoutingRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21970,6 +22079,7 @@ const deserializeAws_restJson1AwsS3BucketWebsiteConfigurationRoutingRules = ( } return deserializeAws_restJson1AwsS3BucketWebsiteConfigurationRoutingRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsS3ObjectDetails = (output: any, context: __SerdeContext): AwsS3ObjectDetails => { @@ -22519,7 +22629,7 @@ const deserializeAws_restJson1AwsSecurityFindingIdentifierList = ( output: any, context: __SerdeContext ): AwsSecurityFindingIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22527,10 +22637,11 @@ const deserializeAws_restJson1AwsSecurityFindingIdentifierList = ( } return deserializeAws_restJson1AwsSecurityFindingIdentifier(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsSecurityFindingList = (output: any, context: __SerdeContext): AwsSecurityFinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22538,6 +22649,7 @@ const deserializeAws_restJson1AwsSecurityFindingList = (output: any, context: __ } return deserializeAws_restJson1AwsSecurityFinding(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsSnsTopicDetails = (output: any, context: __SerdeContext): AwsSnsTopicDetails => { @@ -22566,7 +22678,7 @@ const deserializeAws_restJson1AwsSnsTopicSubscriptionList = ( output: any, context: __SerdeContext ): AwsSnsTopicSubscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22574,6 +22686,7 @@ const deserializeAws_restJson1AwsSnsTopicSubscriptionList = ( } return deserializeAws_restJson1AwsSnsTopicSubscription(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsSqsQueueDetails = (output: any, context: __SerdeContext): AwsSqsQueueDetails => { @@ -22664,7 +22777,7 @@ const deserializeAws_restJson1AwsWafRateBasedRuleMatchPredicateList = ( output: any, context: __SerdeContext ): AwsWafRateBasedRuleMatchPredicate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22672,6 +22785,7 @@ const deserializeAws_restJson1AwsWafRateBasedRuleMatchPredicateList = ( } return deserializeAws_restJson1AwsWafRateBasedRuleMatchPredicate(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsWafRegionalRateBasedRuleDetails = ( @@ -22706,7 +22820,7 @@ const deserializeAws_restJson1AwsWafRegionalRateBasedRuleMatchPredicateList = ( output: any, context: __SerdeContext ): AwsWafRegionalRateBasedRuleMatchPredicate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22714,6 +22828,7 @@ const deserializeAws_restJson1AwsWafRegionalRateBasedRuleMatchPredicateList = ( } return deserializeAws_restJson1AwsWafRegionalRateBasedRuleMatchPredicate(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsWafWebAclDetails = (output: any, context: __SerdeContext): AwsWafWebAclDetails => { @@ -22749,7 +22864,7 @@ const deserializeAws_restJson1AwsWafWebAclRule = (output: any, context: __SerdeC }; const deserializeAws_restJson1AwsWafWebAclRuleList = (output: any, context: __SerdeContext): AwsWafWebAclRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22757,6 +22872,7 @@ const deserializeAws_restJson1AwsWafWebAclRuleList = (output: any, context: __Se } return deserializeAws_restJson1AwsWafWebAclRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1AwsXrayEncryptionConfigDetails = ( @@ -22788,7 +22904,7 @@ const deserializeAws_restJson1BatchUpdateFindingsUnprocessedFindingsList = ( output: any, context: __SerdeContext ): BatchUpdateFindingsUnprocessedFinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22796,6 +22912,7 @@ const deserializeAws_restJson1BatchUpdateFindingsUnprocessedFindingsList = ( } return deserializeAws_restJson1BatchUpdateFindingsUnprocessedFinding(entry, context); }); + return retVal; }; const deserializeAws_restJson1BooleanFilter = (output: any, context: __SerdeContext): BooleanFilter => { @@ -22805,7 +22922,7 @@ const deserializeAws_restJson1BooleanFilter = (output: any, context: __SerdeCont }; const deserializeAws_restJson1BooleanFilterList = (output: any, context: __SerdeContext): BooleanFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22813,10 +22930,11 @@ const deserializeAws_restJson1BooleanFilterList = (output: any, context: __Serde } return deserializeAws_restJson1BooleanFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1CategoryList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22824,6 +22942,7 @@ const deserializeAws_restJson1CategoryList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Cell = (output: any, context: __SerdeContext): Cell => { @@ -22836,7 +22955,7 @@ const deserializeAws_restJson1Cell = (output: any, context: __SerdeContext): Cel }; const deserializeAws_restJson1Cells = (output: any, context: __SerdeContext): Cell[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22844,6 +22963,7 @@ const deserializeAws_restJson1Cells = (output: any, context: __SerdeContext): Ce } return deserializeAws_restJson1Cell(entry, context); }); + return retVal; }; const deserializeAws_restJson1CidrBlockAssociation = (output: any, context: __SerdeContext): CidrBlockAssociation => { @@ -22858,7 +22978,7 @@ const deserializeAws_restJson1CidrBlockAssociationList = ( output: any, context: __SerdeContext ): CidrBlockAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22866,6 +22986,7 @@ const deserializeAws_restJson1CidrBlockAssociationList = ( } return deserializeAws_restJson1CidrBlockAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1City = (output: any, context: __SerdeContext): City => { @@ -22950,7 +23071,7 @@ const deserializeAws_restJson1CustomDataIdentifiersDetectionsList = ( output: any, context: __SerdeContext ): CustomDataIdentifiersDetections[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22958,6 +23079,7 @@ const deserializeAws_restJson1CustomDataIdentifiersDetectionsList = ( } return deserializeAws_restJson1CustomDataIdentifiersDetections(entry, context); }); + return retVal; }; const deserializeAws_restJson1CustomDataIdentifiersResult = ( @@ -22987,7 +23109,7 @@ const deserializeAws_restJson1Cvss = (output: any, context: __SerdeContext): Cvs }; const deserializeAws_restJson1CvssList = (output: any, context: __SerdeContext): Cvss[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -22995,6 +23117,7 @@ const deserializeAws_restJson1CvssList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Cvss(entry, context); }); + return retVal; }; const deserializeAws_restJson1DataClassificationDetails = ( @@ -23022,7 +23145,7 @@ const deserializeAws_restJson1DateFilter = (output: any, context: __SerdeContext }; const deserializeAws_restJson1DateFilterList = (output: any, context: __SerdeContext): DateFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23030,6 +23153,7 @@ const deserializeAws_restJson1DateFilterList = (output: any, context: __SerdeCon } return deserializeAws_restJson1DateFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1DateRange = (output: any, context: __SerdeContext): DateRange => { @@ -23066,7 +23190,7 @@ const deserializeAws_restJson1FindingAggregator = (output: any, context: __Serde }; const deserializeAws_restJson1FindingAggregatorList = (output: any, context: __SerdeContext): FindingAggregator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23074,6 +23198,7 @@ const deserializeAws_restJson1FindingAggregatorList = (output: any, context: __S } return deserializeAws_restJson1FindingAggregator(entry, context); }); + return retVal; }; const deserializeAws_restJson1FindingProviderFields = (output: any, context: __SerdeContext): FindingProviderFields => { @@ -23149,7 +23274,7 @@ const deserializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesList = ( output: any, context: __SerdeContext ): FirewallPolicyStatefulRuleGroupReferencesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23157,6 +23282,7 @@ const deserializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesList = ( } return deserializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1FirewallPolicyStatelessCustomActionsDetails = ( @@ -23176,7 +23302,7 @@ const deserializeAws_restJson1FirewallPolicyStatelessCustomActionsList = ( output: any, context: __SerdeContext ): FirewallPolicyStatelessCustomActionsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23184,6 +23310,7 @@ const deserializeAws_restJson1FirewallPolicyStatelessCustomActionsList = ( } return deserializeAws_restJson1FirewallPolicyStatelessCustomActionsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesDetails = ( @@ -23200,7 +23327,7 @@ const deserializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesList = ( output: any, context: __SerdeContext ): FirewallPolicyStatelessRuleGroupReferencesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23208,6 +23335,7 @@ const deserializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesList = ( } return deserializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1GeoLocation = (output: any, context: __SerdeContext): GeoLocation => { @@ -23236,7 +23364,7 @@ const deserializeAws_restJson1ImportFindingsErrorList = ( output: any, context: __SerdeContext ): ImportFindingsError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23244,6 +23372,7 @@ const deserializeAws_restJson1ImportFindingsErrorList = ( } return deserializeAws_restJson1ImportFindingsError(entry, context); }); + return retVal; }; const deserializeAws_restJson1Insight = (output: any, context: __SerdeContext): Insight => { @@ -23259,7 +23388,7 @@ const deserializeAws_restJson1Insight = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1InsightList = (output: any, context: __SerdeContext): Insight[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23267,6 +23396,7 @@ const deserializeAws_restJson1InsightList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Insight(entry, context); }); + return retVal; }; const deserializeAws_restJson1InsightResults = (output: any, context: __SerdeContext): InsightResults => { @@ -23288,7 +23418,7 @@ const deserializeAws_restJson1InsightResultValue = (output: any, context: __Serd }; const deserializeAws_restJson1InsightResultValueList = (output: any, context: __SerdeContext): InsightResultValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23296,10 +23426,11 @@ const deserializeAws_restJson1InsightResultValueList = (output: any, context: __ } return deserializeAws_restJson1InsightResultValue(entry, context); }); + return retVal; }; const deserializeAws_restJson1IntegerList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23307,13 +23438,14 @@ const deserializeAws_restJson1IntegerList = (output: any, context: __SerdeContex } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IntegrationTypeList = ( output: any, context: __SerdeContext ): (IntegrationType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23321,6 +23453,7 @@ const deserializeAws_restJson1IntegrationTypeList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Invitation = (output: any, context: __SerdeContext): Invitation => { @@ -23336,7 +23469,7 @@ const deserializeAws_restJson1Invitation = (output: any, context: __SerdeContext }; const deserializeAws_restJson1InvitationList = (output: any, context: __SerdeContext): Invitation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23344,6 +23477,7 @@ const deserializeAws_restJson1InvitationList = (output: any, context: __SerdeCon } return deserializeAws_restJson1Invitation(entry, context); }); + return retVal; }; const deserializeAws_restJson1IpFilter = (output: any, context: __SerdeContext): IpFilter => { @@ -23353,7 +23487,7 @@ const deserializeAws_restJson1IpFilter = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1IpFilterList = (output: any, context: __SerdeContext): IpFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23361,6 +23495,7 @@ const deserializeAws_restJson1IpFilterList = (output: any, context: __SerdeConte } return deserializeAws_restJson1IpFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1IpOrganizationDetails = (output: any, context: __SerdeContext): IpOrganizationDetails => { @@ -23387,7 +23522,7 @@ const deserializeAws_restJson1Ipv6CidrBlockAssociationList = ( output: any, context: __SerdeContext ): Ipv6CidrBlockAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23395,6 +23530,7 @@ const deserializeAws_restJson1Ipv6CidrBlockAssociationList = ( } return deserializeAws_restJson1Ipv6CidrBlockAssociation(entry, context); }); + return retVal; }; const deserializeAws_restJson1KeywordFilter = (output: any, context: __SerdeContext): KeywordFilter => { @@ -23404,7 +23540,7 @@ const deserializeAws_restJson1KeywordFilter = (output: any, context: __SerdeCont }; const deserializeAws_restJson1KeywordFilterList = (output: any, context: __SerdeContext): KeywordFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23412,6 +23548,7 @@ const deserializeAws_restJson1KeywordFilterList = (output: any, context: __Serde } return deserializeAws_restJson1KeywordFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1LoadBalancerState = (output: any, context: __SerdeContext): LoadBalancerState => { @@ -23431,7 +23568,7 @@ const deserializeAws_restJson1Malware = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1MalwareList = (output: any, context: __SerdeContext): Malware[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23439,6 +23576,7 @@ const deserializeAws_restJson1MalwareList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Malware(entry, context); }); + return retVal; }; const deserializeAws_restJson1MapFilter = (output: any, context: __SerdeContext): MapFilter => { @@ -23450,7 +23588,7 @@ const deserializeAws_restJson1MapFilter = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1MapFilterList = (output: any, context: __SerdeContext): MapFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23458,6 +23596,7 @@ const deserializeAws_restJson1MapFilterList = (output: any, context: __SerdeCont } return deserializeAws_restJson1MapFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1Member = (output: any, context: __SerdeContext): Member => { @@ -23479,7 +23618,7 @@ const deserializeAws_restJson1Member = (output: any, context: __SerdeContext): M }; const deserializeAws_restJson1MemberList = (output: any, context: __SerdeContext): Member[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23487,6 +23626,7 @@ const deserializeAws_restJson1MemberList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Member(entry, context); }); + return retVal; }; const deserializeAws_restJson1Network = (output: any, context: __SerdeContext): Network => { @@ -23578,7 +23718,7 @@ const deserializeAws_restJson1NetworkPathComponentDetails = ( }; const deserializeAws_restJson1NetworkPathList = (output: any, context: __SerdeContext): NetworkPathComponent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23586,10 +23726,11 @@ const deserializeAws_restJson1NetworkPathList = (output: any, context: __SerdeCo } return deserializeAws_restJson1NetworkPathComponent(entry, context); }); + return retVal; }; const deserializeAws_restJson1NonEmptyStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23597,6 +23738,7 @@ const deserializeAws_restJson1NonEmptyStringList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Note = (output: any, context: __SerdeContext): Note => { @@ -23616,7 +23758,7 @@ const deserializeAws_restJson1NumberFilter = (output: any, context: __SerdeConte }; const deserializeAws_restJson1NumberFilterList = (output: any, context: __SerdeContext): NumberFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23624,6 +23766,7 @@ const deserializeAws_restJson1NumberFilterList = (output: any, context: __SerdeC } return deserializeAws_restJson1NumberFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1Occurrences = (output: any, context: __SerdeContext): Occurrences => { @@ -23666,7 +23809,7 @@ const deserializeAws_restJson1Page = (output: any, context: __SerdeContext): Pag }; const deserializeAws_restJson1Pages = (output: any, context: __SerdeContext): Page[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23674,6 +23817,7 @@ const deserializeAws_restJson1Pages = (output: any, context: __SerdeContext): Pa } return deserializeAws_restJson1Page(entry, context); }); + return retVal; }; const deserializeAws_restJson1PatchSummary = (output: any, context: __SerdeContext): PatchSummary => { @@ -23720,7 +23864,7 @@ const deserializeAws_restJson1PortProbeDetail = (output: any, context: __SerdeCo }; const deserializeAws_restJson1PortProbeDetailList = (output: any, context: __SerdeContext): PortProbeDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23728,6 +23872,7 @@ const deserializeAws_restJson1PortProbeDetailList = (output: any, context: __Ser } return deserializeAws_restJson1PortProbeDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1PortRange = (output: any, context: __SerdeContext): PortRange => { @@ -23745,7 +23890,7 @@ const deserializeAws_restJson1PortRangeFromTo = (output: any, context: __SerdeCo }; const deserializeAws_restJson1PortRangeList = (output: any, context: __SerdeContext): PortRange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23753,6 +23898,7 @@ const deserializeAws_restJson1PortRangeList = (output: any, context: __SerdeCont } return deserializeAws_restJson1PortRange(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProcessDetails = (output: any, context: __SerdeContext): ProcessDetails => { @@ -23787,7 +23933,7 @@ const deserializeAws_restJson1Product = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1ProductsList = (output: any, context: __SerdeContext): Product[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23795,10 +23941,11 @@ const deserializeAws_restJson1ProductsList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Product(entry, context); }); + return retVal; }; const deserializeAws_restJson1ProductSubscriptionArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23806,6 +23953,7 @@ const deserializeAws_restJson1ProductSubscriptionArnList = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Range = (output: any, context: __SerdeContext): Range => { @@ -23817,7 +23965,7 @@ const deserializeAws_restJson1Range = (output: any, context: __SerdeContext): Ra }; const deserializeAws_restJson1Ranges = (output: any, context: __SerdeContext): Range[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23825,6 +23973,7 @@ const deserializeAws_restJson1Ranges = (output: any, context: __SerdeContext): R } return deserializeAws_restJson1Range(entry, context); }); + return retVal; }; const deserializeAws_restJson1Recommendation = (output: any, context: __SerdeContext): Recommendation => { @@ -23842,7 +23991,7 @@ const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Records = (output: any, context: __SerdeContext): _Record[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23850,6 +23999,7 @@ const deserializeAws_restJson1Records = (output: any, context: __SerdeContext): } return deserializeAws_restJson1_Record(entry, context); }); + return retVal; }; const deserializeAws_restJson1RelatedFinding = (output: any, context: __SerdeContext): RelatedFinding => { @@ -23860,7 +24010,7 @@ const deserializeAws_restJson1RelatedFinding = (output: any, context: __SerdeCon }; const deserializeAws_restJson1RelatedFindingList = (output: any, context: __SerdeContext): RelatedFinding[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23868,10 +24018,11 @@ const deserializeAws_restJson1RelatedFindingList = (output: any, context: __Serd } return deserializeAws_restJson1RelatedFinding(entry, context); }); + return retVal; }; const deserializeAws_restJson1RelatedRequirementsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -23879,6 +24030,7 @@ const deserializeAws_restJson1RelatedRequirementsList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Remediation = (output: any, context: __SerdeContext): Remediation => { @@ -24175,7 +24327,7 @@ const deserializeAws_restJson1ResourceDetails = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ResourceList = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24183,6 +24335,7 @@ const deserializeAws_restJson1ResourceList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Resource(entry, context); }); + return retVal; }; const deserializeAws_restJson1Result = (output: any, context: __SerdeContext): Result => { @@ -24193,7 +24346,7 @@ const deserializeAws_restJson1Result = (output: any, context: __SerdeContext): R }; const deserializeAws_restJson1ResultList = (output: any, context: __SerdeContext): Result[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24201,6 +24354,7 @@ const deserializeAws_restJson1ResultList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Result(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupDetails = (output: any, context: __SerdeContext): RuleGroupDetails => { @@ -24254,7 +24408,7 @@ const deserializeAws_restJson1RuleGroupSourceCustomActionsList = ( output: any, context: __SerdeContext ): RuleGroupSourceCustomActionsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24262,6 +24416,7 @@ const deserializeAws_restJson1RuleGroupSourceCustomActionsList = ( } return deserializeAws_restJson1RuleGroupSourceCustomActionsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceListDetails = ( @@ -24316,7 +24471,7 @@ const deserializeAws_restJson1RuleGroupSourceStatefulRulesList = ( output: any, context: __SerdeContext ): RuleGroupSourceStatefulRulesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24324,6 +24479,7 @@ const deserializeAws_restJson1RuleGroupSourceStatefulRulesList = ( } return deserializeAws_restJson1RuleGroupSourceStatefulRulesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatefulRulesOptionsDetails = ( @@ -24343,7 +24499,7 @@ const deserializeAws_restJson1RuleGroupSourceStatefulRulesOptionsList = ( output: any, context: __SerdeContext ): RuleGroupSourceStatefulRulesOptionsDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24351,13 +24507,14 @@ const deserializeAws_restJson1RuleGroupSourceStatefulRulesOptionsList = ( } return deserializeAws_restJson1RuleGroupSourceStatefulRulesOptionsDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatefulRulesRuleOptionsSettingsList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24365,6 +24522,7 @@ const deserializeAws_restJson1RuleGroupSourceStatefulRulesRuleOptionsSettingsLis } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatelessRuleDefinition = ( @@ -24438,7 +24596,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestina output: any, context: __SerdeContext ): RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24446,6 +24604,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestina } return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinations = ( @@ -24461,7 +24620,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestina output: any, context: __SerdeContext ): RuleGroupSourceStatelessRuleMatchAttributesDestinations[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24469,13 +24628,14 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestina } return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinations(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesProtocolsList = ( output: any, context: __SerdeContext ): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24483,6 +24643,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesProtoco } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePorts = ( @@ -24499,7 +24660,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourceP output: any, context: __SerdeContext ): RuleGroupSourceStatelessRuleMatchAttributesSourcePorts[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24507,6 +24668,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourceP } return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePorts(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSources = ( @@ -24522,7 +24684,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSources output: any, context: __SerdeContext ): RuleGroupSourceStatelessRuleMatchAttributesSources[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24530,6 +24692,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSources } return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSources(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlags = ( @@ -24552,7 +24715,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlag output: any, context: __SerdeContext ): RuleGroupSourceStatelessRuleMatchAttributesTcpFlags[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24560,6 +24723,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlag } return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlags(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupSourceStatelessRulesAndCustomActionsDetails = ( @@ -24595,7 +24759,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRulesList = ( output: any, context: __SerdeContext ): RuleGroupSourceStatelessRulesDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24603,6 +24767,7 @@ const deserializeAws_restJson1RuleGroupSourceStatelessRulesList = ( } return deserializeAws_restJson1RuleGroupSourceStatelessRulesDetails(entry, context); }); + return retVal; }; const deserializeAws_restJson1RuleGroupVariables = (output: any, context: __SerdeContext): RuleGroupVariables => { @@ -24643,7 +24808,7 @@ const deserializeAws_restJson1RuleGroupVariablesPortSetsDetails = ( }; const deserializeAws_restJson1SecurityGroups = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24651,6 +24816,7 @@ const deserializeAws_restJson1SecurityGroups = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SensitiveDataDetections = ( @@ -24671,7 +24837,7 @@ const deserializeAws_restJson1SensitiveDataDetectionsList = ( output: any, context: __SerdeContext ): SensitiveDataDetections[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24679,6 +24845,7 @@ const deserializeAws_restJson1SensitiveDataDetectionsList = ( } return deserializeAws_restJson1SensitiveDataDetections(entry, context); }); + return retVal; }; const deserializeAws_restJson1SensitiveDataResult = (output: any, context: __SerdeContext): SensitiveDataResult => { @@ -24696,7 +24863,7 @@ const deserializeAws_restJson1SensitiveDataResultList = ( output: any, context: __SerdeContext ): SensitiveDataResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24704,6 +24871,7 @@ const deserializeAws_restJson1SensitiveDataResultList = ( } return deserializeAws_restJson1SensitiveDataResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1Severity = (output: any, context: __SerdeContext): Severity => { @@ -24728,7 +24896,7 @@ const deserializeAws_restJson1SoftwarePackage = (output: any, context: __SerdeCo }; const deserializeAws_restJson1SoftwarePackageList = (output: any, context: __SerdeContext): SoftwarePackage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24736,6 +24904,7 @@ const deserializeAws_restJson1SoftwarePackageList = (output: any, context: __Ser } return deserializeAws_restJson1SoftwarePackage(entry, context); }); + return retVal; }; const deserializeAws_restJson1Standard = (output: any, context: __SerdeContext): Standard => { @@ -24748,7 +24917,7 @@ const deserializeAws_restJson1Standard = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1Standards = (output: any, context: __SerdeContext): Standard[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24756,6 +24925,7 @@ const deserializeAws_restJson1Standards = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Standard(entry, context); }); + return retVal; }; const deserializeAws_restJson1StandardsControl = (output: any, context: __SerdeContext): StandardsControl => { @@ -24780,7 +24950,7 @@ const deserializeAws_restJson1StandardsControl = (output: any, context: __SerdeC }; const deserializeAws_restJson1StandardsControls = (output: any, context: __SerdeContext): StandardsControl[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24788,6 +24958,7 @@ const deserializeAws_restJson1StandardsControls = (output: any, context: __Serde } return deserializeAws_restJson1StandardsControl(entry, context); }); + return retVal; }; const deserializeAws_restJson1StandardsInputParameterMap = ( @@ -24831,7 +25002,7 @@ const deserializeAws_restJson1StandardsSubscriptions = ( output: any, context: __SerdeContext ): StandardsSubscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24839,6 +25010,7 @@ const deserializeAws_restJson1StandardsSubscriptions = ( } return deserializeAws_restJson1StandardsSubscription(entry, context); }); + return retVal; }; const deserializeAws_restJson1StatelessCustomActionDefinition = ( @@ -24878,7 +25050,7 @@ const deserializeAws_restJson1StatelessCustomPublishMetricActionDimensionsList = output: any, context: __SerdeContext ): StatelessCustomPublishMetricActionDimension[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24886,6 +25058,7 @@ const deserializeAws_restJson1StatelessCustomPublishMetricActionDimensionsList = } return deserializeAws_restJson1StatelessCustomPublishMetricActionDimension(entry, context); }); + return retVal; }; const deserializeAws_restJson1StatusReason = (output: any, context: __SerdeContext): StatusReason => { @@ -24896,7 +25069,7 @@ const deserializeAws_restJson1StatusReason = (output: any, context: __SerdeConte }; const deserializeAws_restJson1StatusReasonsList = (output: any, context: __SerdeContext): StatusReason[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24904,6 +25077,7 @@ const deserializeAws_restJson1StatusReasonsList = (output: any, context: __Serde } return deserializeAws_restJson1StatusReason(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringFilter = (output: any, context: __SerdeContext): StringFilter => { @@ -24914,7 +25088,7 @@ const deserializeAws_restJson1StringFilter = (output: any, context: __SerdeConte }; const deserializeAws_restJson1StringFilterList = (output: any, context: __SerdeContext): StringFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24922,10 +25096,11 @@ const deserializeAws_restJson1StringFilterList = (output: any, context: __SerdeC } return deserializeAws_restJson1StringFilter(entry, context); }); + return retVal; }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24933,6 +25108,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -24962,7 +25138,7 @@ const deserializeAws_restJson1ThreatIntelIndicatorList = ( output: any, context: __SerdeContext ): ThreatIntelIndicator[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24970,10 +25146,11 @@ const deserializeAws_restJson1ThreatIntelIndicatorList = ( } return deserializeAws_restJson1ThreatIntelIndicator(entry, context); }); + return retVal; }; const deserializeAws_restJson1TypeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -24981,6 +25158,7 @@ const deserializeAws_restJson1TypeList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Vulnerability = (output: any, context: __SerdeContext): Vulnerability => { @@ -25010,7 +25188,7 @@ const deserializeAws_restJson1Vulnerability = (output: any, context: __SerdeCont }; const deserializeAws_restJson1VulnerabilityList = (output: any, context: __SerdeContext): Vulnerability[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25018,6 +25196,7 @@ const deserializeAws_restJson1VulnerabilityList = (output: any, context: __Serde } return deserializeAws_restJson1Vulnerability(entry, context); }); + return retVal; }; const deserializeAws_restJson1VulnerabilityVendor = (output: any, context: __SerdeContext): VulnerabilityVendor => { @@ -25043,7 +25222,7 @@ const deserializeAws_restJson1WafExcludedRule = (output: any, context: __SerdeCo }; const deserializeAws_restJson1WafExcludedRuleList = (output: any, context: __SerdeContext): WafExcludedRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -25051,6 +25230,7 @@ const deserializeAws_restJson1WafExcludedRuleList = (output: any, context: __Ser } return deserializeAws_restJson1WafExcludedRule(entry, context); }); + return retVal; }; const deserializeAws_restJson1WafOverrideAction = (output: any, context: __SerdeContext): WafOverrideAction => { diff --git a/clients/client-serverlessapplicationrepository/src/protocols/Aws_restJson1.ts b/clients/client-serverlessapplicationrepository/src/protocols/Aws_restJson1.ts index fd560940857e..b5c1f5ecb2ed 100644 --- a/clients/client-serverlessapplicationrepository/src/protocols/Aws_restJson1.ts +++ b/clients/client-serverlessapplicationrepository/src/protocols/Aws_restJson1.ts @@ -1844,7 +1844,7 @@ const serializeAws_restJson1Tag = (input: Tag, context: __SerdeContext): any => }; const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1852,13 +1852,14 @@ const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfApplicationDependencySummary = ( output: any, context: __SerdeContext ): ApplicationDependencySummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1866,13 +1867,14 @@ const deserializeAws_restJson1__listOfApplicationDependencySummary = ( } return deserializeAws_restJson1ApplicationDependencySummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfApplicationPolicyStatement = ( output: any, context: __SerdeContext ): ApplicationPolicyStatement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1880,13 +1882,14 @@ const deserializeAws_restJson1__listOfApplicationPolicyStatement = ( } return deserializeAws_restJson1ApplicationPolicyStatement(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfApplicationSummary = ( output: any, context: __SerdeContext ): ApplicationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1894,10 +1897,11 @@ const deserializeAws_restJson1__listOfApplicationSummary = ( } return deserializeAws_restJson1ApplicationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfCapability = (output: any, context: __SerdeContext): (Capability | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1905,13 +1909,14 @@ const deserializeAws_restJson1__listOfCapability = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1__listOfParameterDefinition = ( output: any, context: __SerdeContext ): ParameterDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1919,10 +1924,11 @@ const deserializeAws_restJson1__listOfParameterDefinition = ( } return deserializeAws_restJson1ParameterDefinition(entry, context); }); + return retVal; }; const deserializeAws_restJson1__listOfVersionSummary = (output: any, context: __SerdeContext): VersionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1930,6 +1936,7 @@ const deserializeAws_restJson1__listOfVersionSummary = (output: any, context: __ } return deserializeAws_restJson1VersionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ApplicationDependencySummary = ( diff --git a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts index 715319290330..8b44ddf785f3 100644 --- a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts +++ b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts @@ -2058,7 +2058,7 @@ const deserializeAws_restJson1Application = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ApplicationSummaries = (output: any, context: __SerdeContext): ApplicationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2066,6 +2066,7 @@ const deserializeAws_restJson1ApplicationSummaries = (output: any, context: __Se } return deserializeAws_restJson1ApplicationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ApplicationSummary = (output: any, context: __SerdeContext): ApplicationSummary => { @@ -2107,7 +2108,7 @@ const deserializeAws_restJson1AttributeGroup = (output: any, context: __SerdeCon }; const deserializeAws_restJson1AttributeGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2115,13 +2116,14 @@ const deserializeAws_restJson1AttributeGroupIds = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1AttributeGroupSummaries = ( output: any, context: __SerdeContext ): AttributeGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2129,6 +2131,7 @@ const deserializeAws_restJson1AttributeGroupSummaries = ( } return deserializeAws_restJson1AttributeGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AttributeGroupSummary = (output: any, context: __SerdeContext): AttributeGroupSummary => { @@ -2197,7 +2200,7 @@ const deserializeAws_restJson1ResourceIntegrations = (output: any, context: __Se }; const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext): ResourceInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2205,6 +2208,7 @@ const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext) } return deserializeAws_restJson1ResourceInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-service-catalog/src/protocols/Aws_json1_1.ts b/clients/client-service-catalog/src/protocols/Aws_json1_1.ts index fab4fe5241a8..fc4b2040fac3 100644 --- a/clients/client-service-catalog/src/protocols/Aws_json1_1.ts +++ b/clients/client-service-catalog/src/protocols/Aws_json1_1.ts @@ -7512,7 +7512,7 @@ const deserializeAws_json1_1AcceptPortfolioShareOutput = ( }; const deserializeAws_json1_1AccountIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7520,10 +7520,11 @@ const deserializeAws_json1_1AccountIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AllowedValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7531,6 +7532,7 @@ const deserializeAws_json1_1AllowedValues = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AssociateBudgetWithResourceOutput = ( @@ -7599,7 +7601,7 @@ const deserializeAws_json1_1BudgetDetail = (output: any, context: __SerdeContext }; const deserializeAws_json1_1Budgets = (output: any, context: __SerdeContext): BudgetDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7607,6 +7609,7 @@ const deserializeAws_json1_1Budgets = (output: any, context: __SerdeContext): Bu } return deserializeAws_json1_1BudgetDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1CloudWatchDashboard = (output: any, context: __SerdeContext): CloudWatchDashboard => { @@ -7616,7 +7619,7 @@ const deserializeAws_json1_1CloudWatchDashboard = (output: any, context: __Serde }; const deserializeAws_json1_1CloudWatchDashboards = (output: any, context: __SerdeContext): CloudWatchDashboard[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7624,6 +7627,7 @@ const deserializeAws_json1_1CloudWatchDashboards = (output: any, context: __Serd } return deserializeAws_json1_1CloudWatchDashboard(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConstraintDetail = (output: any, context: __SerdeContext): ConstraintDetail => { @@ -7638,7 +7642,7 @@ const deserializeAws_json1_1ConstraintDetail = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ConstraintDetails = (output: any, context: __SerdeContext): ConstraintDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7646,10 +7650,11 @@ const deserializeAws_json1_1ConstraintDetails = (output: any, context: __SerdeCo } return deserializeAws_json1_1ConstraintDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConstraintSummaries = (output: any, context: __SerdeContext): ConstraintSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7657,6 +7662,7 @@ const deserializeAws_json1_1ConstraintSummaries = (output: any, context: __Serde } return deserializeAws_json1_1ConstraintSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConstraintSummary = (output: any, context: __SerdeContext): ConstraintSummary => { @@ -8180,7 +8186,7 @@ const deserializeAws_json1_1ExecutionParameter = (output: any, context: __SerdeC }; const deserializeAws_json1_1ExecutionParameters = (output: any, context: __SerdeContext): ExecutionParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8188,10 +8194,11 @@ const deserializeAws_json1_1ExecutionParameters = (output: any, context: __Serde } return deserializeAws_json1_1ExecutionParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExecutionParameterValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8199,6 +8206,7 @@ const deserializeAws_json1_1ExecutionParameterValueList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FailedServiceActionAssociation = ( @@ -8218,7 +8226,7 @@ const deserializeAws_json1_1FailedServiceActionAssociations = ( output: any, context: __SerdeContext ): FailedServiceActionAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8226,6 +8234,7 @@ const deserializeAws_json1_1FailedServiceActionAssociations = ( } return deserializeAws_json1_1FailedServiceActionAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetAWSOrganizationsAccessStatusOutput = ( @@ -8285,7 +8294,7 @@ const deserializeAws_json1_1LaunchPath = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1LaunchPaths = (output: any, context: __SerdeContext): LaunchPath[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8293,10 +8302,11 @@ const deserializeAws_json1_1LaunchPaths = (output: any, context: __SerdeContext) } return deserializeAws_json1_1LaunchPath(entry, context); }); + return retVal; }; const deserializeAws_json1_1LaunchPathSummaries = (output: any, context: __SerdeContext): LaunchPathSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8304,6 +8314,7 @@ const deserializeAws_json1_1LaunchPathSummaries = (output: any, context: __Serde } return deserializeAws_json1_1LaunchPathSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1LaunchPathSummary = (output: any, context: __SerdeContext): LaunchPathSummary => { @@ -8551,7 +8562,7 @@ const deserializeAws_json1_1ListTagOptionsOutput = (output: any, context: __Serd }; const deserializeAws_json1_1Namespaces = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8559,10 +8570,11 @@ const deserializeAws_json1_1Namespaces = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1NotificationArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8570,6 +8582,7 @@ const deserializeAws_json1_1NotificationArns = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OperationNotSupportedException = ( @@ -8589,7 +8602,7 @@ const deserializeAws_json1_1OrganizationNode = (output: any, context: __SerdeCon }; const deserializeAws_json1_1OrganizationNodes = (output: any, context: __SerdeContext): OrganizationNode[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8597,6 +8610,7 @@ const deserializeAws_json1_1OrganizationNodes = (output: any, context: __SerdeCo } return deserializeAws_json1_1OrganizationNode(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterConstraints = (output: any, context: __SerdeContext): ParameterConstraints => { @@ -8629,7 +8643,7 @@ const deserializeAws_json1_1PortfolioDetail = (output: any, context: __SerdeCont }; const deserializeAws_json1_1PortfolioDetails = (output: any, context: __SerdeContext): PortfolioDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8637,6 +8651,7 @@ const deserializeAws_json1_1PortfolioDetails = (output: any, context: __SerdeCon } return deserializeAws_json1_1PortfolioDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1PortfolioShareDetail = (output: any, context: __SerdeContext): PortfolioShareDetail => { @@ -8649,7 +8664,7 @@ const deserializeAws_json1_1PortfolioShareDetail = (output: any, context: __Serd }; const deserializeAws_json1_1PortfolioShareDetails = (output: any, context: __SerdeContext): PortfolioShareDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8657,6 +8672,7 @@ const deserializeAws_json1_1PortfolioShareDetails = (output: any, context: __Ser } return deserializeAws_json1_1PortfolioShareDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1Principal = (output: any, context: __SerdeContext): Principal => { @@ -8667,7 +8683,7 @@ const deserializeAws_json1_1Principal = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Principals = (output: any, context: __SerdeContext): Principal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8675,6 +8691,7 @@ const deserializeAws_json1_1Principals = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Principal(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProductViewAggregations = ( @@ -8709,7 +8726,7 @@ const deserializeAws_json1_1ProductViewAggregationValues = ( output: any, context: __SerdeContext ): ProductViewAggregationValue[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8717,6 +8734,7 @@ const deserializeAws_json1_1ProductViewAggregationValues = ( } return deserializeAws_json1_1ProductViewAggregationValue(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProductViewDetail = (output: any, context: __SerdeContext): ProductViewDetail => { @@ -8735,7 +8753,7 @@ const deserializeAws_json1_1ProductViewDetail = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ProductViewDetails = (output: any, context: __SerdeContext): ProductViewDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8743,10 +8761,11 @@ const deserializeAws_json1_1ProductViewDetails = (output: any, context: __SerdeC } return deserializeAws_json1_1ProductViewDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProductViewSummaries = (output: any, context: __SerdeContext): ProductViewSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8754,6 +8773,7 @@ const deserializeAws_json1_1ProductViewSummaries = (output: any, context: __Serd } return deserializeAws_json1_1ProductViewSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProductViewSummary = (output: any, context: __SerdeContext): ProductViewSummary => { @@ -8807,7 +8827,7 @@ const deserializeAws_json1_1ProvisionedProductAttributes = ( output: any, context: __SerdeContext ): ProvisionedProductAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8815,6 +8835,7 @@ const deserializeAws_json1_1ProvisionedProductAttributes = ( } return deserializeAws_json1_1ProvisionedProductAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisionedProductDetail = ( @@ -8846,7 +8867,7 @@ const deserializeAws_json1_1ProvisionedProductDetails = ( output: any, context: __SerdeContext ): ProvisionedProductDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8854,6 +8875,7 @@ const deserializeAws_json1_1ProvisionedProductDetails = ( } return deserializeAws_json1_1ProvisionedProductDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisionedProductPlanDetails = ( @@ -8896,7 +8918,7 @@ const deserializeAws_json1_1ProvisionedProductPlans = ( output: any, context: __SerdeContext ): ProvisionedProductPlanSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8904,6 +8926,7 @@ const deserializeAws_json1_1ProvisionedProductPlans = ( } return deserializeAws_json1_1ProvisionedProductPlanSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisionedProductPlanSummary = ( @@ -8970,7 +8993,7 @@ const deserializeAws_json1_1ProvisioningArtifactDetails = ( output: any, context: __SerdeContext ): ProvisioningArtifactDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8978,6 +9001,7 @@ const deserializeAws_json1_1ProvisioningArtifactDetails = ( } return deserializeAws_json1_1ProvisioningArtifactDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisioningArtifactInfo = ( @@ -9009,7 +9033,7 @@ const deserializeAws_json1_1ProvisioningArtifactOutputs = ( output: any, context: __SerdeContext ): ProvisioningArtifactOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9017,6 +9041,7 @@ const deserializeAws_json1_1ProvisioningArtifactOutputs = ( } return deserializeAws_json1_1ProvisioningArtifactOutput(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisioningArtifactParameter = ( @@ -9040,7 +9065,7 @@ const deserializeAws_json1_1ProvisioningArtifactParameters = ( output: any, context: __SerdeContext ): ProvisioningArtifactParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9048,6 +9073,7 @@ const deserializeAws_json1_1ProvisioningArtifactParameters = ( } return deserializeAws_json1_1ProvisioningArtifactParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisioningArtifactPreferences = ( @@ -9067,7 +9093,7 @@ const deserializeAws_json1_1ProvisioningArtifactPreferences = ( }; const deserializeAws_json1_1ProvisioningArtifacts = (output: any, context: __SerdeContext): ProvisioningArtifact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9075,13 +9101,14 @@ const deserializeAws_json1_1ProvisioningArtifacts = (output: any, context: __Ser } return deserializeAws_json1_1ProvisioningArtifact(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisioningArtifactSummaries = ( output: any, context: __SerdeContext ): ProvisioningArtifactSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9089,6 +9116,7 @@ const deserializeAws_json1_1ProvisioningArtifactSummaries = ( } return deserializeAws_json1_1ProvisioningArtifactSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisioningArtifactSummary = ( @@ -9130,7 +9158,7 @@ const deserializeAws_json1_1ProvisioningArtifactViews = ( output: any, context: __SerdeContext ): ProvisioningArtifactView[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9138,6 +9166,7 @@ const deserializeAws_json1_1ProvisioningArtifactViews = ( } return deserializeAws_json1_1ProvisioningArtifactView(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisionProductOutput = (output: any, context: __SerdeContext): ProvisionProductOutput => { @@ -9181,7 +9210,7 @@ const deserializeAws_json1_1RecordDetail = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RecordDetails = (output: any, context: __SerdeContext): RecordDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9189,6 +9218,7 @@ const deserializeAws_json1_1RecordDetails = (output: any, context: __SerdeContex } return deserializeAws_json1_1RecordDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecordError = (output: any, context: __SerdeContext): RecordError => { @@ -9199,7 +9229,7 @@ const deserializeAws_json1_1RecordError = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1RecordErrors = (output: any, context: __SerdeContext): RecordError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9207,6 +9237,7 @@ const deserializeAws_json1_1RecordErrors = (output: any, context: __SerdeContext } return deserializeAws_json1_1RecordError(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecordOutput = (output: any, context: __SerdeContext): RecordOutput => { @@ -9218,7 +9249,7 @@ const deserializeAws_json1_1RecordOutput = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RecordOutputs = (output: any, context: __SerdeContext): RecordOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9226,6 +9257,7 @@ const deserializeAws_json1_1RecordOutputs = (output: any, context: __SerdeContex } return deserializeAws_json1_1RecordOutput(entry, context); }); + return retVal; }; const deserializeAws_json1_1RecordTag = (output: any, context: __SerdeContext): RecordTag => { @@ -9236,7 +9268,7 @@ const deserializeAws_json1_1RecordTag = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1RecordTags = (output: any, context: __SerdeContext): RecordTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9244,6 +9276,7 @@ const deserializeAws_json1_1RecordTags = (output: any, context: __SerdeContext): } return deserializeAws_json1_1RecordTag(entry, context); }); + return retVal; }; const deserializeAws_json1_1RejectPortfolioShareOutput = ( @@ -9283,7 +9316,7 @@ const deserializeAws_json1_1ResourceChangeDetail = (output: any, context: __Serd }; const deserializeAws_json1_1ResourceChangeDetails = (output: any, context: __SerdeContext): ResourceChangeDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9291,10 +9324,11 @@ const deserializeAws_json1_1ResourceChangeDetails = (output: any, context: __Ser } return deserializeAws_json1_1ResourceChangeDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceChanges = (output: any, context: __SerdeContext): ResourceChange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9302,6 +9336,7 @@ const deserializeAws_json1_1ResourceChanges = (output: any, context: __SerdeCont } return deserializeAws_json1_1ResourceChange(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceDetail = (output: any, context: __SerdeContext): ResourceDetail => { @@ -9318,7 +9353,7 @@ const deserializeAws_json1_1ResourceDetail = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ResourceDetails = (output: any, context: __SerdeContext): ResourceDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9326,6 +9361,7 @@ const deserializeAws_json1_1ResourceDetails = (output: any, context: __SerdeCont } return deserializeAws_json1_1ResourceDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => { @@ -9368,7 +9404,7 @@ const deserializeAws_json1_1ScanProvisionedProductsOutput = ( }; const deserializeAws_json1_1Scope = (output: any, context: __SerdeContext): (ResourceAttribute | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9376,6 +9412,7 @@ const deserializeAws_json1_1Scope = (output: any, context: __SerdeContext): (Res } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SearchProductsAsAdminOutput = ( @@ -9451,7 +9488,7 @@ const deserializeAws_json1_1ServiceActionDetail = (output: any, context: __Serde }; const deserializeAws_json1_1ServiceActionSummaries = (output: any, context: __SerdeContext): ServiceActionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9459,6 +9496,7 @@ const deserializeAws_json1_1ServiceActionSummaries = (output: any, context: __Se } return deserializeAws_json1_1ServiceActionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceActionSummary = (output: any, context: __SerdeContext): ServiceActionSummary => { @@ -9495,7 +9533,7 @@ const deserializeAws_json1_1ShareError = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ShareErrors = (output: any, context: __SerdeContext): ShareError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9503,6 +9541,7 @@ const deserializeAws_json1_1ShareErrors = (output: any, context: __SerdeContext) } return deserializeAws_json1_1ShareError(entry, context); }); + return retVal; }; const deserializeAws_json1_1StackInstance = (output: any, context: __SerdeContext): StackInstance => { @@ -9514,7 +9553,7 @@ const deserializeAws_json1_1StackInstance = (output: any, context: __SerdeContex }; const deserializeAws_json1_1StackInstances = (output: any, context: __SerdeContext): StackInstance[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9522,10 +9561,11 @@ const deserializeAws_json1_1StackInstances = (output: any, context: __SerdeConte } return deserializeAws_json1_1StackInstance(entry, context); }); + return retVal; }; const deserializeAws_json1_1StackSetAccounts = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9533,10 +9573,11 @@ const deserializeAws_json1_1StackSetAccounts = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1StackSetRegions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9544,10 +9585,11 @@ const deserializeAws_json1_1StackSetRegions = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SuccessfulShares = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9555,6 +9597,7 @@ const deserializeAws_json1_1SuccessfulShares = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -9575,7 +9618,7 @@ const deserializeAws_json1_1TagOptionDetail = (output: any, context: __SerdeCont }; const deserializeAws_json1_1TagOptionDetails = (output: any, context: __SerdeContext): TagOptionDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9583,6 +9626,7 @@ const deserializeAws_json1_1TagOptionDetails = (output: any, context: __SerdeCon } return deserializeAws_json1_1TagOptionDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagOptionNotMigratedException = ( @@ -9595,7 +9639,7 @@ const deserializeAws_json1_1TagOptionNotMigratedException = ( }; const deserializeAws_json1_1TagOptionSummaries = (output: any, context: __SerdeContext): TagOptionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9603,6 +9647,7 @@ const deserializeAws_json1_1TagOptionSummaries = (output: any, context: __SerdeC } return deserializeAws_json1_1TagOptionSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagOptionSummary = (output: any, context: __SerdeContext): TagOptionSummary => { @@ -9616,7 +9661,7 @@ const deserializeAws_json1_1TagOptionSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_1TagOptionValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9624,10 +9669,11 @@ const deserializeAws_json1_1TagOptionValues = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9635,6 +9681,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TerminateProvisionedProductOutput = ( @@ -9751,7 +9798,7 @@ const deserializeAws_json1_1UpdateProvisioningParameters = ( output: any, context: __SerdeContext ): UpdateProvisioningParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9759,6 +9806,7 @@ const deserializeAws_json1_1UpdateProvisioningParameters = ( } return deserializeAws_json1_1UpdateProvisioningParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1UpdateServiceActionOutput = ( @@ -9790,7 +9838,7 @@ const deserializeAws_json1_1UsageInstruction = (output: any, context: __SerdeCon }; const deserializeAws_json1_1UsageInstructions = (output: any, context: __SerdeContext): UsageInstruction[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9798,6 +9846,7 @@ const deserializeAws_json1_1UsageInstructions = (output: any, context: __SerdeCo } return deserializeAws_json1_1UsageInstruction(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-service-quotas/src/protocols/Aws_json1_1.ts b/clients/client-service-quotas/src/protocols/Aws_json1_1.ts index 2868d0044c7a..191bffc3cce4 100644 --- a/clients/client-service-quotas/src/protocols/Aws_json1_1.ts +++ b/clients/client-service-quotas/src/protocols/Aws_json1_1.ts @@ -2263,7 +2263,7 @@ const deserializeAws_json1_1OrganizationNotInAllFeaturesModeException = ( }; const deserializeAws_json1_1OutputTags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2271,6 +2271,7 @@ const deserializeAws_json1_1OutputTags = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateResponse = ( @@ -2334,7 +2335,7 @@ const deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition = ( output: any, context: __SerdeContext ): RequestedServiceQuotaChange[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2342,6 +2343,7 @@ const deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition = ( } return deserializeAws_json1_1RequestedServiceQuotaChange(entry, context); }); + return retVal; }; const deserializeAws_json1_1RequestServiceQuotaIncreaseResponse = ( @@ -2379,7 +2381,7 @@ const deserializeAws_json1_1ServiceInfo = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ServiceInfoListDefinition = (output: any, context: __SerdeContext): ServiceInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2387,6 +2389,7 @@ const deserializeAws_json1_1ServiceInfoListDefinition = (output: any, context: _ } return deserializeAws_json1_1ServiceInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceQuota = (output: any, context: __SerdeContext): ServiceQuota => { @@ -2435,7 +2438,7 @@ const deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplateList = ( output: any, context: __SerdeContext ): ServiceQuotaIncreaseRequestInTemplate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2443,10 +2446,11 @@ const deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplateList = ( } return deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceQuotaListDefinition = (output: any, context: __SerdeContext): ServiceQuota[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2454,6 +2458,7 @@ const deserializeAws_json1_1ServiceQuotaListDefinition = (output: any, context: } return deserializeAws_json1_1ServiceQuota(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceQuotaTemplateNotInUseException = ( diff --git a/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts b/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts index d63692706add..ecb9ab732b62 100644 --- a/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts +++ b/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts @@ -2696,7 +2696,7 @@ const deserializeAws_json1_1DnsRecord = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1DnsRecordList = (output: any, context: __SerdeContext): DnsRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2704,6 +2704,7 @@ const deserializeAws_json1_1DnsRecordList = (output: any, context: __SerdeContex } return deserializeAws_json1_1DnsRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1DuplicateRequest = (output: any, context: __SerdeContext): DuplicateRequest => { @@ -2793,7 +2794,7 @@ const deserializeAws_json1_1HttpInstanceSummary = (output: any, context: __Serde }; const deserializeAws_json1_1HttpInstanceSummaryList = (output: any, context: __SerdeContext): HttpInstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2801,6 +2802,7 @@ const deserializeAws_json1_1HttpInstanceSummaryList = (output: any, context: __S } return deserializeAws_json1_1HttpInstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1HttpProperties = (output: any, context: __SerdeContext): HttpProperties => { @@ -2852,7 +2854,7 @@ const deserializeAws_json1_1InstanceSummary = (output: any, context: __SerdeCont }; const deserializeAws_json1_1InstanceSummaryList = (output: any, context: __SerdeContext): InstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2860,6 +2862,7 @@ const deserializeAws_json1_1InstanceSummaryList = (output: any, context: __Serde } return deserializeAws_json1_1InstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidInput = (output: any, context: __SerdeContext): InvalidInput => { @@ -2968,7 +2971,7 @@ const deserializeAws_json1_1NamespaceProperties = (output: any, context: __Serde }; const deserializeAws_json1_1NamespaceSummariesList = (output: any, context: __SerdeContext): NamespaceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2976,6 +2979,7 @@ const deserializeAws_json1_1NamespaceSummariesList = (output: any, context: __Se } return deserializeAws_json1_1NamespaceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1NamespaceSummary = (output: any, context: __SerdeContext): NamespaceSummary => { @@ -3033,7 +3037,7 @@ const deserializeAws_json1_1OperationSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_1OperationSummaryList = (output: any, context: __SerdeContext): OperationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3041,6 +3045,7 @@ const deserializeAws_json1_1OperationSummaryList = (output: any, context: __Serd } return deserializeAws_json1_1OperationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1OperationTargetsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3138,7 +3143,7 @@ const deserializeAws_json1_1ServiceNotFound = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ServiceSummariesList = (output: any, context: __SerdeContext): ServiceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3146,6 +3151,7 @@ const deserializeAws_json1_1ServiceSummariesList = (output: any, context: __Serd } return deserializeAws_json1_1ServiceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServiceSummary = (output: any, context: __SerdeContext): ServiceSummary => { @@ -3189,7 +3195,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3197,6 +3203,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-sesv2/src/protocols/Aws_restJson1.ts b/clients/client-sesv2/src/protocols/Aws_restJson1.ts index d8f7cafb352b..d7f3dcc29a11 100644 --- a/clients/client-sesv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-sesv2/src/protocols/Aws_restJson1.ts @@ -8043,7 +8043,7 @@ const deserializeAws_restJson1AccountDetails = (output: any, context: __SerdeCon }; const deserializeAws_restJson1AdditionalContactEmailAddresses = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8051,10 +8051,11 @@ const deserializeAws_restJson1AdditionalContactEmailAddresses = (output: any, co } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BlacklistEntries = (output: any, context: __SerdeContext): BlacklistEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8062,6 +8063,7 @@ const deserializeAws_restJson1BlacklistEntries = (output: any, context: __SerdeC } return deserializeAws_restJson1BlacklistEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1BlacklistEntry = (output: any, context: __SerdeContext): BlacklistEntry => { @@ -8102,7 +8104,7 @@ const deserializeAws_restJson1BulkEmailEntryResultList = ( output: any, context: __SerdeContext ): BulkEmailEntryResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8110,6 +8112,7 @@ const deserializeAws_restJson1BulkEmailEntryResultList = ( } return deserializeAws_restJson1BulkEmailEntryResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1CloudWatchDestination = (output: any, context: __SerdeContext): CloudWatchDestination => { @@ -8136,7 +8139,7 @@ const deserializeAws_restJson1CloudWatchDimensionConfigurations = ( output: any, context: __SerdeContext ): CloudWatchDimensionConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8144,10 +8147,11 @@ const deserializeAws_restJson1CloudWatchDimensionConfigurations = ( } return deserializeAws_restJson1CloudWatchDimensionConfiguration(entry, context); }); + return retVal; }; const deserializeAws_restJson1ConfigurationSetNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8155,6 +8159,7 @@ const deserializeAws_restJson1ConfigurationSetNameList = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Contact = (output: any, context: __SerdeContext): Contact => { @@ -8213,7 +8218,7 @@ const deserializeAws_restJson1CustomVerificationEmailTemplatesList = ( output: any, context: __SerdeContext ): CustomVerificationEmailTemplateMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8221,6 +8226,7 @@ const deserializeAws_restJson1CustomVerificationEmailTemplatesList = ( } return deserializeAws_restJson1CustomVerificationEmailTemplateMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1DailyVolume = (output: any, context: __SerdeContext): DailyVolume => { @@ -8241,7 +8247,7 @@ const deserializeAws_restJson1DailyVolume = (output: any, context: __SerdeContex }; const deserializeAws_restJson1DailyVolumes = (output: any, context: __SerdeContext): DailyVolume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8249,6 +8255,7 @@ const deserializeAws_restJson1DailyVolumes = (output: any, context: __SerdeConte } return deserializeAws_restJson1DailyVolume(entry, context); }); + return retVal; }; const deserializeAws_restJson1DedicatedIp = (output: any, context: __SerdeContext): DedicatedIp => { @@ -8261,7 +8268,7 @@ const deserializeAws_restJson1DedicatedIp = (output: any, context: __SerdeContex }; const deserializeAws_restJson1DedicatedIpList = (output: any, context: __SerdeContext): DedicatedIp[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8269,6 +8276,7 @@ const deserializeAws_restJson1DedicatedIpList = (output: any, context: __SerdeCo } return deserializeAws_restJson1DedicatedIp(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeliverabilityTestReport = ( @@ -8292,7 +8300,7 @@ const deserializeAws_restJson1DeliverabilityTestReports = ( output: any, context: __SerdeContext ): DeliverabilityTestReport[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8300,6 +8308,7 @@ const deserializeAws_restJson1DeliverabilityTestReports = ( } return deserializeAws_restJson1DeliverabilityTestReport(entry, context); }); + return retVal; }; const deserializeAws_restJson1DeliveryOptions = (output: any, context: __SerdeContext): DeliveryOptions => { @@ -8328,7 +8337,7 @@ const deserializeAws_restJson1DkimAttributes = (output: any, context: __SerdeCon }; const deserializeAws_restJson1DnsTokenList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8336,6 +8345,7 @@ const deserializeAws_restJson1DnsTokenList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1DomainDeliverabilityCampaign = ( @@ -8376,7 +8386,7 @@ const deserializeAws_restJson1DomainDeliverabilityCampaignList = ( output: any, context: __SerdeContext ): DomainDeliverabilityCampaign[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8384,6 +8394,7 @@ const deserializeAws_restJson1DomainDeliverabilityCampaignList = ( } return deserializeAws_restJson1DomainDeliverabilityCampaign(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainDeliverabilityTrackingOption = ( @@ -8407,7 +8418,7 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOptions = ( output: any, context: __SerdeContext ): DomainDeliverabilityTrackingOption[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8415,6 +8426,7 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOptions = ( } return deserializeAws_restJson1DomainDeliverabilityTrackingOption(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainIspPlacement = (output: any, context: __SerdeContext): DomainIspPlacement => { @@ -8428,7 +8440,7 @@ const deserializeAws_restJson1DomainIspPlacement = (output: any, context: __Serd }; const deserializeAws_restJson1DomainIspPlacements = (output: any, context: __SerdeContext): DomainIspPlacement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8436,6 +8448,7 @@ const deserializeAws_restJson1DomainIspPlacements = (output: any, context: __Ser } return deserializeAws_restJson1DomainIspPlacement(entry, context); }); + return retVal; }; const deserializeAws_restJson1EmailTemplateContent = (output: any, context: __SerdeContext): EmailTemplateContent => { @@ -8460,7 +8473,7 @@ const deserializeAws_restJson1EmailTemplateMetadataList = ( output: any, context: __SerdeContext ): EmailTemplateMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8468,10 +8481,11 @@ const deserializeAws_restJson1EmailTemplateMetadataList = ( } return deserializeAws_restJson1EmailTemplateMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1Esps = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8479,6 +8493,7 @@ const deserializeAws_restJson1Esps = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EventDestination = (output: any, context: __SerdeContext): EventDestination => { @@ -8509,7 +8524,7 @@ const deserializeAws_restJson1EventDestination = (output: any, context: __SerdeC }; const deserializeAws_restJson1EventDestinations = (output: any, context: __SerdeContext): EventDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8517,10 +8532,11 @@ const deserializeAws_restJson1EventDestinations = (output: any, context: __Serde } return deserializeAws_restJson1EventDestination(entry, context); }); + return retVal; }; const deserializeAws_restJson1EventTypes = (output: any, context: __SerdeContext): (EventType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8528,6 +8544,7 @@ const deserializeAws_restJson1EventTypes = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FailureInfo = (output: any, context: __SerdeContext): FailureInfo => { @@ -8546,7 +8563,7 @@ const deserializeAws_restJson1IdentityInfo = (output: any, context: __SerdeConte }; const deserializeAws_restJson1IdentityInfoList = (output: any, context: __SerdeContext): IdentityInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8554,6 +8571,7 @@ const deserializeAws_restJson1IdentityInfoList = (output: any, context: __SerdeC } return deserializeAws_restJson1IdentityInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1ImportDataSource = (output: any, context: __SerdeContext): ImportDataSource => { @@ -8592,7 +8610,7 @@ const deserializeAws_restJson1ImportJobSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1ImportJobSummaryList = (output: any, context: __SerdeContext): ImportJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8600,6 +8618,7 @@ const deserializeAws_restJson1ImportJobSummaryList = (output: any, context: __Se } return deserializeAws_restJson1ImportJobSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1InboxPlacementTrackingOption = ( @@ -8616,7 +8635,7 @@ const deserializeAws_restJson1InboxPlacementTrackingOption = ( }; const deserializeAws_restJson1IpList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8624,10 +8643,11 @@ const deserializeAws_restJson1IpList = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IspNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8635,6 +8655,7 @@ const deserializeAws_restJson1IspNameList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1IspPlacement = (output: any, context: __SerdeContext): IspPlacement => { @@ -8648,7 +8669,7 @@ const deserializeAws_restJson1IspPlacement = (output: any, context: __SerdeConte }; const deserializeAws_restJson1IspPlacements = (output: any, context: __SerdeContext): IspPlacement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8656,6 +8677,7 @@ const deserializeAws_restJson1IspPlacements = (output: any, context: __SerdeCont } return deserializeAws_restJson1IspPlacement(entry, context); }); + return retVal; }; const deserializeAws_restJson1KinesisFirehoseDestination = ( @@ -8669,7 +8691,7 @@ const deserializeAws_restJson1KinesisFirehoseDestination = ( }; const deserializeAws_restJson1ListOfContactLists = (output: any, context: __SerdeContext): ContactList[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8677,10 +8699,11 @@ const deserializeAws_restJson1ListOfContactLists = (output: any, context: __Serd } return deserializeAws_restJson1ContactList(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfContacts = (output: any, context: __SerdeContext): Contact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8688,10 +8711,11 @@ const deserializeAws_restJson1ListOfContacts = (output: any, context: __SerdeCon } return deserializeAws_restJson1Contact(entry, context); }); + return retVal; }; const deserializeAws_restJson1ListOfDedicatedIpPools = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8699,6 +8723,7 @@ const deserializeAws_restJson1ListOfDedicatedIpPools = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1MailFromAttributes = (output: any, context: __SerdeContext): MailFromAttributes => { @@ -8817,7 +8842,7 @@ const deserializeAws_restJson1SuppressedDestinationSummaries = ( output: any, context: __SerdeContext ): SuppressedDestinationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8825,6 +8850,7 @@ const deserializeAws_restJson1SuppressedDestinationSummaries = ( } return deserializeAws_restJson1SuppressedDestinationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SuppressedDestinationSummary = ( @@ -8863,7 +8889,7 @@ const deserializeAws_restJson1SuppressionListReasons = ( output: any, context: __SerdeContext ): (SuppressionListReason | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8871,6 +8897,7 @@ const deserializeAws_restJson1SuppressionListReasons = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SuppressionOptions = (output: any, context: __SerdeContext): SuppressionOptions => { @@ -8890,7 +8917,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8898,6 +8925,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1Topic = (output: any, context: __SerdeContext): Topic => { @@ -8917,7 +8945,7 @@ const deserializeAws_restJson1TopicPreference = (output: any, context: __SerdeCo }; const deserializeAws_restJson1TopicPreferenceList = (output: any, context: __SerdeContext): TopicPreference[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8925,10 +8953,11 @@ const deserializeAws_restJson1TopicPreferenceList = (output: any, context: __Ser } return deserializeAws_restJson1TopicPreference(entry, context); }); + return retVal; }; const deserializeAws_restJson1Topics = (output: any, context: __SerdeContext): Topic[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8936,6 +8965,7 @@ const deserializeAws_restJson1Topics = (output: any, context: __SerdeContext): T } return deserializeAws_restJson1Topic(entry, context); }); + return retVal; }; const deserializeAws_restJson1TrackingOptions = (output: any, context: __SerdeContext): TrackingOptions => { diff --git a/clients/client-sfn/src/protocols/Aws_json1_0.ts b/clients/client-sfn/src/protocols/Aws_json1_0.ts index 000e8e8ab684..0e891590ab41 100644 --- a/clients/client-sfn/src/protocols/Aws_json1_0.ts +++ b/clients/client-sfn/src/protocols/Aws_json1_0.ts @@ -2230,7 +2230,7 @@ const deserializeAws_json1_0ActivityLimitExceeded = (output: any, context: __Ser }; const deserializeAws_json1_0ActivityList = (output: any, context: __SerdeContext): ActivityListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2238,6 +2238,7 @@ const deserializeAws_json1_0ActivityList = (output: any, context: __SerdeContext } return deserializeAws_json1_0ActivityListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_0ActivityListItem = (output: any, context: __SerdeContext): ActivityListItem => { @@ -2505,7 +2506,7 @@ const deserializeAws_json1_0ExecutionLimitExceeded = (output: any, context: __Se }; const deserializeAws_json1_0ExecutionList = (output: any, context: __SerdeContext): ExecutionListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2513,6 +2514,7 @@ const deserializeAws_json1_0ExecutionList = (output: any, context: __SerdeContex } return deserializeAws_json1_0ExecutionListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_0ExecutionListItem = (output: any, context: __SerdeContext): ExecutionListItem => { @@ -2747,7 +2749,7 @@ const deserializeAws_json1_0HistoryEventExecutionDataDetails = ( }; const deserializeAws_json1_0HistoryEventList = (output: any, context: __SerdeContext): HistoryEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2755,6 +2757,7 @@ const deserializeAws_json1_0HistoryEventList = (output: any, context: __SerdeCon } return deserializeAws_json1_0HistoryEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_0InvalidArn = (output: any, context: __SerdeContext): InvalidArn => { @@ -2934,7 +2937,7 @@ const deserializeAws_json1_0LogDestination = (output: any, context: __SerdeConte }; const deserializeAws_json1_0LogDestinationList = (output: any, context: __SerdeContext): LogDestination[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2942,6 +2945,7 @@ const deserializeAws_json1_0LogDestinationList = (output: any, context: __SerdeC } return deserializeAws_json1_0LogDestination(entry, context); }); + return retVal; }; const deserializeAws_json1_0LoggingConfiguration = (output: any, context: __SerdeContext): LoggingConfiguration => { @@ -3114,7 +3118,7 @@ const deserializeAws_json1_0StateMachineLimitExceeded = ( }; const deserializeAws_json1_0StateMachineList = (output: any, context: __SerdeContext): StateMachineListItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3122,6 +3126,7 @@ const deserializeAws_json1_0StateMachineList = (output: any, context: __SerdeCon } return deserializeAws_json1_0StateMachineListItem(entry, context); }); + return retVal; }; const deserializeAws_json1_0StateMachineListItem = (output: any, context: __SerdeContext): StateMachineListItem => { @@ -3162,7 +3167,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3170,6 +3175,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceOutput = (output: any, context: __SerdeContext): TagResourceOutput => { diff --git a/clients/client-shield/src/protocols/Aws_json1_1.ts b/clients/client-shield/src/protocols/Aws_json1_1.ts index 650fe7e39ade..dec3fd4f502a 100644 --- a/clients/client-shield/src/protocols/Aws_json1_1.ts +++ b/clients/client-shield/src/protocols/Aws_json1_1.ts @@ -3255,7 +3255,7 @@ const deserializeAws_json1_1AttackDetail = (output: any, context: __SerdeContext }; const deserializeAws_json1_1AttackProperties = (output: any, context: __SerdeContext): AttackProperty[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3263,6 +3263,7 @@ const deserializeAws_json1_1AttackProperties = (output: any, context: __SerdeCon } return deserializeAws_json1_1AttackProperty(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttackProperty = (output: any, context: __SerdeContext): AttackProperty => { @@ -3295,7 +3296,7 @@ const deserializeAws_json1_1AttackStatisticsDataList = ( output: any, context: __SerdeContext ): AttackStatisticsDataItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3303,10 +3304,11 @@ const deserializeAws_json1_1AttackStatisticsDataList = ( } return deserializeAws_json1_1AttackStatisticsDataItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttackSummaries = (output: any, context: __SerdeContext): AttackSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3314,6 +3316,7 @@ const deserializeAws_json1_1AttackSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_1AttackSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttackSummary = (output: any, context: __SerdeContext): AttackSummary => { @@ -3348,7 +3351,7 @@ const deserializeAws_json1_1AttackVectorDescriptionList = ( output: any, context: __SerdeContext ): AttackVectorDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3356,6 +3359,7 @@ const deserializeAws_json1_1AttackVectorDescriptionList = ( } return deserializeAws_json1_1AttackVectorDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttackVolume = (output: any, context: __SerdeContext): AttackVolume => { @@ -3570,7 +3574,7 @@ const deserializeAws_json1_1EmergencyContact = (output: any, context: __SerdeCon }; const deserializeAws_json1_1EmergencyContactList = (output: any, context: __SerdeContext): EmergencyContact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3578,6 +3582,7 @@ const deserializeAws_json1_1EmergencyContactList = (output: any, context: __Serd } return deserializeAws_json1_1EmergencyContact(entry, context); }); + return retVal; }; const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseResponse = ( @@ -3604,7 +3609,7 @@ const deserializeAws_json1_1GetSubscriptionStateResponse = ( }; const deserializeAws_json1_1HealthCheckIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3612,6 +3617,7 @@ const deserializeAws_json1_1HealthCheckIds = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InternalErrorException = (output: any, context: __SerdeContext): InternalErrorException => { @@ -3669,7 +3675,7 @@ const deserializeAws_json1_1Limit = (output: any, context: __SerdeContext): Limi }; const deserializeAws_json1_1Limits = (output: any, context: __SerdeContext): Limit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3677,6 +3683,7 @@ const deserializeAws_json1_1Limits = (output: any, context: __SerdeContext): Lim } return deserializeAws_json1_1Limit(entry, context); }); + return retVal; }; const deserializeAws_json1_1LimitsExceededException = ( @@ -3761,7 +3768,7 @@ const deserializeAws_json1_1LockedSubscriptionException = ( }; const deserializeAws_json1_1LogBucketList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3769,6 +3776,7 @@ const deserializeAws_json1_1LogBucketList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Mitigation = (output: any, context: __SerdeContext): Mitigation => { @@ -3778,7 +3786,7 @@ const deserializeAws_json1_1Mitigation = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1MitigationList = (output: any, context: __SerdeContext): Mitigation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3786,6 +3794,7 @@ const deserializeAws_json1_1MitigationList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Mitigation(entry, context); }); + return retVal; }; const deserializeAws_json1_1NoAssociatedRoleException = ( @@ -3861,7 +3870,7 @@ const deserializeAws_json1_1ProtectionGroupLimits = (output: any, context: __Ser }; const deserializeAws_json1_1ProtectionGroupMembers = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3869,6 +3878,7 @@ const deserializeAws_json1_1ProtectionGroupMembers = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ProtectionGroupPatternTypeLimits = ( @@ -3884,7 +3894,7 @@ const deserializeAws_json1_1ProtectionGroupPatternTypeLimits = ( }; const deserializeAws_json1_1ProtectionGroups = (output: any, context: __SerdeContext): ProtectionGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3892,6 +3902,7 @@ const deserializeAws_json1_1ProtectionGroups = (output: any, context: __SerdeCon } return deserializeAws_json1_1ProtectionGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProtectionLimits = (output: any, context: __SerdeContext): ProtectionLimits => { @@ -3904,7 +3915,7 @@ const deserializeAws_json1_1ProtectionLimits = (output: any, context: __SerdeCon }; const deserializeAws_json1_1Protections = (output: any, context: __SerdeContext): Protection[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3912,6 +3923,7 @@ const deserializeAws_json1_1Protections = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Protection(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceAlreadyExistsException = ( @@ -3925,7 +3937,7 @@ const deserializeAws_json1_1ResourceAlreadyExistsException = ( }; const deserializeAws_json1_1ResourceArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3933,6 +3945,7 @@ const deserializeAws_json1_1ResourceArnList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceNotFoundException = ( @@ -3974,7 +3987,7 @@ const deserializeAws_json1_1SubResourceSummary = (output: any, context: __SerdeC }; const deserializeAws_json1_1SubResourceSummaryList = (output: any, context: __SerdeContext): SubResourceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3982,6 +3995,7 @@ const deserializeAws_json1_1SubResourceSummaryList = (output: any, context: __Se } return deserializeAws_json1_1SubResourceSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1Subscription = (output: any, context: __SerdeContext): Subscription => { @@ -4036,7 +4050,7 @@ const deserializeAws_json1_1SummarizedAttackVectorList = ( output: any, context: __SerdeContext ): SummarizedAttackVector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4044,6 +4058,7 @@ const deserializeAws_json1_1SummarizedAttackVectorList = ( } return deserializeAws_json1_1SummarizedAttackVector(entry, context); }); + return retVal; }; const deserializeAws_json1_1SummarizedCounter = (output: any, context: __SerdeContext): SummarizedCounter => { @@ -4058,7 +4073,7 @@ const deserializeAws_json1_1SummarizedCounter = (output: any, context: __SerdeCo }; const deserializeAws_json1_1SummarizedCounterList = (output: any, context: __SerdeContext): SummarizedCounter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4066,6 +4081,7 @@ const deserializeAws_json1_1SummarizedCounterList = (output: any, context: __Ser } return deserializeAws_json1_1SummarizedCounter(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -4076,7 +4092,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4084,6 +4100,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -4104,7 +4121,7 @@ const deserializeAws_json1_1TimeRange = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1TopContributors = (output: any, context: __SerdeContext): Contributor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4112,6 +4129,7 @@ const deserializeAws_json1_1TopContributors = (output: any, context: __SerdeCont } return deserializeAws_json1_1Contributor(entry, context); }); + return retVal; }; const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => { @@ -4160,7 +4178,7 @@ const deserializeAws_json1_1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4168,6 +4186,7 @@ const deserializeAws_json1_1ValidationExceptionFieldList = ( } return deserializeAws_json1_1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-signer/src/protocols/Aws_restJson1.ts b/clients/client-signer/src/protocols/Aws_restJson1.ts index d2a3b49453a2..4df5924299c0 100644 --- a/clients/client-signer/src/protocols/Aws_restJson1.ts +++ b/clients/client-signer/src/protocols/Aws_restJson1.ts @@ -2073,7 +2073,7 @@ const deserializeAws_restJson1EncryptionAlgorithms = ( output: any, context: __SerdeContext ): (EncryptionAlgorithm | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2081,6 +2081,7 @@ const deserializeAws_restJson1EncryptionAlgorithms = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1HashAlgorithmOptions = (output: any, context: __SerdeContext): HashAlgorithmOptions => { @@ -2094,7 +2095,7 @@ const deserializeAws_restJson1HashAlgorithmOptions = (output: any, context: __Se }; const deserializeAws_restJson1HashAlgorithms = (output: any, context: __SerdeContext): (HashAlgorithm | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2102,10 +2103,11 @@ const deserializeAws_restJson1HashAlgorithms = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ImageFormats = (output: any, context: __SerdeContext): (ImageFormat | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2113,6 +2115,7 @@ const deserializeAws_restJson1ImageFormats = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Permission = (output: any, context: __SerdeContext): Permission => { @@ -2125,7 +2128,7 @@ const deserializeAws_restJson1Permission = (output: any, context: __SerdeContext }; const deserializeAws_restJson1Permissions = (output: any, context: __SerdeContext): Permission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2133,6 +2136,7 @@ const deserializeAws_restJson1Permissions = (output: any, context: __SerdeContex } return deserializeAws_restJson1Permission(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3SignedObject = (output: any, context: __SerdeContext): S3SignedObject => { @@ -2251,7 +2255,7 @@ const deserializeAws_restJson1SigningJobRevocationRecord = ( }; const deserializeAws_restJson1SigningJobs = (output: any, context: __SerdeContext): SigningJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2259,6 +2263,7 @@ const deserializeAws_restJson1SigningJobs = (output: any, context: __SerdeContex } return deserializeAws_restJson1SigningJob(entry, context); }); + return retVal; }; const deserializeAws_restJson1SigningMaterial = (output: any, context: __SerdeContext): SigningMaterial => { @@ -2313,7 +2318,7 @@ const deserializeAws_restJson1SigningPlatformOverrides = ( }; const deserializeAws_restJson1SigningPlatforms = (output: any, context: __SerdeContext): SigningPlatform[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2321,6 +2326,7 @@ const deserializeAws_restJson1SigningPlatforms = (output: any, context: __SerdeC } return deserializeAws_restJson1SigningPlatform(entry, context); }); + return retVal; }; const deserializeAws_restJson1SigningProfile = (output: any, context: __SerdeContext): SigningProfile => { @@ -2369,7 +2375,7 @@ const deserializeAws_restJson1SigningProfileRevocationRecord = ( }; const deserializeAws_restJson1SigningProfiles = (output: any, context: __SerdeContext): SigningProfile[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2377,6 +2383,7 @@ const deserializeAws_restJson1SigningProfiles = (output: any, context: __SerdeCo } return deserializeAws_restJson1SigningProfile(entry, context); }); + return retVal; }; const deserializeAws_restJson1Source = (output: any, context: __SerdeContext): Source => { diff --git a/clients/client-sms/src/protocols/Aws_json1_1.ts b/clients/client-sms/src/protocols/Aws_json1_1.ts index 3b1a0252c2d6..07569dff8b09 100644 --- a/clients/client-sms/src/protocols/Aws_json1_1.ts +++ b/clients/client-sms/src/protocols/Aws_json1_1.ts @@ -3535,7 +3535,7 @@ const serializeAws_json1_1VmServerAddressList = (input: VmServerAddress[], conte }; const deserializeAws_json1_1Apps = (output: any, context: __SerdeContext): AppSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3543,6 +3543,7 @@ const deserializeAws_json1_1Apps = (output: any, context: __SerdeContext): AppSu } return deserializeAws_json1_1AppSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1AppSummary = (output: any, context: __SerdeContext): AppSummary => { @@ -3600,7 +3601,7 @@ const deserializeAws_json1_1AppValidationConfigurations = ( output: any, context: __SerdeContext ): AppValidationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3608,6 +3609,7 @@ const deserializeAws_json1_1AppValidationConfigurations = ( } return deserializeAws_json1_1AppValidationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1AppValidationOutput = (output: any, context: __SerdeContext): AppValidationOutput => { @@ -3644,7 +3646,7 @@ const deserializeAws_json1_1ConnectorCapabilityList = ( output: any, context: __SerdeContext ): (ConnectorCapability | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3652,10 +3654,11 @@ const deserializeAws_json1_1ConnectorCapabilityList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ConnectorList = (output: any, context: __SerdeContext): Connector[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3663,6 +3666,7 @@ const deserializeAws_json1_1ConnectorList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Connector(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateAppResponse = (output: any, context: __SerdeContext): CreateAppResponse => { @@ -4048,7 +4052,7 @@ const deserializeAws_json1_1ReplicationJobAlreadyExistsException = ( }; const deserializeAws_json1_1ReplicationJobList = (output: any, context: __SerdeContext): ReplicationJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4056,6 +4060,7 @@ const deserializeAws_json1_1ReplicationJobList = (output: any, context: __SerdeC } return deserializeAws_json1_1ReplicationJob(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationJobNotFoundException = ( @@ -4102,7 +4107,7 @@ const deserializeAws_json1_1ReplicationRunLimitExceededException = ( }; const deserializeAws_json1_1ReplicationRunList = (output: any, context: __SerdeContext): ReplicationRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4110,6 +4115,7 @@ const deserializeAws_json1_1ReplicationRunList = (output: any, context: __SerdeC } return deserializeAws_json1_1ReplicationRun(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReplicationRunStageDetails = ( @@ -4180,7 +4186,7 @@ const deserializeAws_json1_1ServerGroupLaunchConfigurations = ( output: any, context: __SerdeContext ): ServerGroupLaunchConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4188,6 +4194,7 @@ const deserializeAws_json1_1ServerGroupLaunchConfigurations = ( } return deserializeAws_json1_1ServerGroupLaunchConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerGroupReplicationConfiguration = ( @@ -4207,7 +4214,7 @@ const deserializeAws_json1_1ServerGroupReplicationConfigurations = ( output: any, context: __SerdeContext ): ServerGroupReplicationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4215,10 +4222,11 @@ const deserializeAws_json1_1ServerGroupReplicationConfigurations = ( } return deserializeAws_json1_1ServerGroupReplicationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerGroups = (output: any, context: __SerdeContext): ServerGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4226,6 +4234,7 @@ const deserializeAws_json1_1ServerGroups = (output: any, context: __SerdeContext } return deserializeAws_json1_1ServerGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerGroupValidationConfiguration = ( @@ -4245,7 +4254,7 @@ const deserializeAws_json1_1ServerGroupValidationConfigurations = ( output: any, context: __SerdeContext ): ServerGroupValidationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4253,6 +4262,7 @@ const deserializeAws_json1_1ServerGroupValidationConfigurations = ( } return deserializeAws_json1_1ServerGroupValidationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerLaunchConfiguration = ( @@ -4288,7 +4298,7 @@ const deserializeAws_json1_1ServerLaunchConfigurations = ( output: any, context: __SerdeContext ): ServerLaunchConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4296,10 +4306,11 @@ const deserializeAws_json1_1ServerLaunchConfigurations = ( } return deserializeAws_json1_1ServerLaunchConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerList = (output: any, context: __SerdeContext): Server[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4307,6 +4318,7 @@ const deserializeAws_json1_1ServerList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Server(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerReplicationConfiguration = ( @@ -4329,7 +4341,7 @@ const deserializeAws_json1_1ServerReplicationConfigurations = ( output: any, context: __SerdeContext ): ServerReplicationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4337,6 +4349,7 @@ const deserializeAws_json1_1ServerReplicationConfigurations = ( } return deserializeAws_json1_1ServerReplicationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerReplicationParameters = ( @@ -4380,7 +4393,7 @@ const deserializeAws_json1_1ServerValidationConfigurations = ( output: any, context: __SerdeContext ): ServerValidationConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4388,6 +4401,7 @@ const deserializeAws_json1_1ServerValidationConfigurations = ( } return deserializeAws_json1_1ServerValidationConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ServerValidationOutput = (output: any, context: __SerdeContext): ServerValidationOutput => { @@ -4472,7 +4486,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4480,6 +4494,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TemporarilyUnavailableException = ( @@ -4568,7 +4583,7 @@ const deserializeAws_json1_1ValidationOutput = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ValidationOutputList = (output: any, context: __SerdeContext): ValidationOutput[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4576,6 +4591,7 @@ const deserializeAws_json1_1ValidationOutputList = (output: any, context: __Serd } return deserializeAws_json1_1ValidationOutput(entry, context); }); + return retVal; }; const deserializeAws_json1_1VmServer = (output: any, context: __SerdeContext): VmServer => { diff --git a/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts b/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts index 6d8d596d2ecb..295f5cd5c8df 100644 --- a/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts +++ b/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts @@ -1434,7 +1434,7 @@ const deserializeAws_restJson1Capacity = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1CapacityList = (output: any, context: __SerdeContext): Capacity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1442,6 +1442,7 @@ const deserializeAws_restJson1CapacityList = (output: any, context: __SerdeConte } return deserializeAws_restJson1Capacity(entry, context); }); + return retVal; }; const deserializeAws_restJson1CpuOptions = (output: any, context: __SerdeContext): CpuOptions => { @@ -1464,7 +1465,7 @@ const deserializeAws_restJson1DeviceSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DeviceSummaryList = (output: any, context: __SerdeContext): DeviceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1472,6 +1473,7 @@ const deserializeAws_restJson1DeviceSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1DeviceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1EbsInstanceBlockDevice = ( @@ -1499,7 +1501,7 @@ const deserializeAws_restJson1ExecutionSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1ExecutionSummaryList = (output: any, context: __SerdeContext): ExecutionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1507,6 +1509,7 @@ const deserializeAws_restJson1ExecutionSummaryList = (output: any, context: __Se } return deserializeAws_restJson1ExecutionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Instance = (output: any, context: __SerdeContext): Instance => { @@ -1562,7 +1565,7 @@ const deserializeAws_restJson1InstanceBlockDeviceMappingList = ( output: any, context: __SerdeContext ): InstanceBlockDeviceMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1570,6 +1573,7 @@ const deserializeAws_restJson1InstanceBlockDeviceMappingList = ( } return deserializeAws_restJson1InstanceBlockDeviceMapping(entry, context); }); + return retVal; }; const deserializeAws_restJson1InstanceState = (output: any, context: __SerdeContext): InstanceState => { @@ -1593,7 +1597,7 @@ const deserializeAws_restJson1InstanceSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1InstanceSummaryList = (output: any, context: __SerdeContext): InstanceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1601,6 +1605,7 @@ const deserializeAws_restJson1InstanceSummaryList = (output: any, context: __Ser } return deserializeAws_restJson1InstanceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1PhysicalNetworkInterface = ( @@ -1622,7 +1627,7 @@ const deserializeAws_restJson1PhysicalNetworkInterfaceList = ( output: any, context: __SerdeContext ): PhysicalNetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1630,6 +1635,7 @@ const deserializeAws_restJson1PhysicalNetworkInterfaceList = ( } return deserializeAws_restJson1PhysicalNetworkInterface(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceSummary = (output: any, context: __SerdeContext): ResourceSummary => { @@ -1641,7 +1647,7 @@ const deserializeAws_restJson1ResourceSummary = (output: any, context: __SerdeCo }; const deserializeAws_restJson1ResourceSummaryList = (output: any, context: __SerdeContext): ResourceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1649,6 +1655,7 @@ const deserializeAws_restJson1ResourceSummaryList = (output: any, context: __Ser } return deserializeAws_restJson1ResourceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SecurityGroupIdentifier = ( @@ -1665,7 +1672,7 @@ const deserializeAws_restJson1SecurityGroupIdentifierList = ( output: any, context: __SerdeContext ): SecurityGroupIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1673,6 +1680,7 @@ const deserializeAws_restJson1SecurityGroupIdentifierList = ( } return deserializeAws_restJson1SecurityGroupIdentifier(entry, context); }); + return retVal; }; const deserializeAws_restJson1SoftwareInformation = (output: any, context: __SerdeContext): SoftwareInformation => { @@ -1696,7 +1704,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { }; const deserializeAws_restJson1TargetList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1704,6 +1712,7 @@ const deserializeAws_restJson1TargetList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TaskSummary = (output: any, context: __SerdeContext): TaskSummary => { @@ -1719,7 +1728,7 @@ const deserializeAws_restJson1TaskSummary = (output: any, context: __SerdeContex }; const deserializeAws_restJson1TaskSummaryList = (output: any, context: __SerdeContext): TaskSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1727,6 +1736,7 @@ const deserializeAws_restJson1TaskSummaryList = (output: any, context: __SerdeCo } return deserializeAws_restJson1TaskSummary(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-snowball/src/protocols/Aws_json1_1.ts b/clients/client-snowball/src/protocols/Aws_json1_1.ts index a2678e6c760d..5fe688d45bac 100644 --- a/clients/client-snowball/src/protocols/Aws_json1_1.ts +++ b/clients/client-snowball/src/protocols/Aws_json1_1.ts @@ -2359,7 +2359,7 @@ const deserializeAws_json1_1Address = (output: any, context: __SerdeContext): Ad }; const deserializeAws_json1_1AddressList = (output: any, context: __SerdeContext): Address[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2367,6 +2367,7 @@ const deserializeAws_json1_1AddressList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Address(entry, context); }); + return retVal; }; const deserializeAws_json1_1CancelClusterResult = (output: any, context: __SerdeContext): CancelClusterResult => { @@ -2399,7 +2400,7 @@ const deserializeAws_json1_1ClusterListEntry = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ClusterListEntryList = (output: any, context: __SerdeContext): ClusterListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2407,6 +2408,7 @@ const deserializeAws_json1_1ClusterListEntryList = (output: any, context: __Serd } return deserializeAws_json1_1ClusterListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClusterMetadata = (output: any, context: __SerdeContext): ClusterMetadata => { @@ -2452,7 +2454,7 @@ const deserializeAws_json1_1CompatibleImage = (output: any, context: __SerdeCont }; const deserializeAws_json1_1CompatibleImageList = (output: any, context: __SerdeContext): CompatibleImage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2460,6 +2462,7 @@ const deserializeAws_json1_1CompatibleImageList = (output: any, context: __Serde } return deserializeAws_json1_1CompatibleImage(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => { @@ -2589,7 +2592,7 @@ const deserializeAws_json1_1Ec2AmiResource = (output: any, context: __SerdeConte }; const deserializeAws_json1_1Ec2AmiResourceList = (output: any, context: __SerdeContext): Ec2AmiResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2597,6 +2600,7 @@ const deserializeAws_json1_1Ec2AmiResourceList = (output: any, context: __SerdeC } return deserializeAws_json1_1Ec2AmiResource(entry, context); }); + return retVal; }; const deserializeAws_json1_1Ec2RequestFailedException = ( @@ -2618,7 +2622,7 @@ const deserializeAws_json1_1EventTriggerDefinitionList = ( output: any, context: __SerdeContext ): EventTriggerDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2626,6 +2630,7 @@ const deserializeAws_json1_1EventTriggerDefinitionList = ( } return deserializeAws_json1_1EventTriggerDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetJobManifestResult = (output: any, context: __SerdeContext): GetJobManifestResult => { @@ -2724,7 +2729,7 @@ const deserializeAws_json1_1JobListEntry = (output: any, context: __SerdeContext }; const deserializeAws_json1_1JobListEntryList = (output: any, context: __SerdeContext): JobListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2732,6 +2737,7 @@ const deserializeAws_json1_1JobListEntryList = (output: any, context: __SerdeCon } return deserializeAws_json1_1JobListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1JobLogs = (output: any, context: __SerdeContext): JobLogs => { @@ -2797,7 +2803,7 @@ const deserializeAws_json1_1JobMetadata = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1JobMetadataList = (output: any, context: __SerdeContext): JobMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2805,6 +2811,7 @@ const deserializeAws_json1_1JobMetadataList = (output: any, context: __SerdeCont } return deserializeAws_json1_1JobMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1JobResource = (output: any, context: __SerdeContext): JobResource => { @@ -2825,7 +2832,7 @@ const deserializeAws_json1_1JobResource = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1JobStateList = (output: any, context: __SerdeContext): (JobState | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2833,6 +2840,7 @@ const deserializeAws_json1_1JobStateList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1KeyRange = (output: any, context: __SerdeContext): KeyRange => { @@ -2862,7 +2870,7 @@ const deserializeAws_json1_1LambdaResource = (output: any, context: __SerdeConte }; const deserializeAws_json1_1LambdaResourceList = (output: any, context: __SerdeContext): LambdaResource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2870,6 +2878,7 @@ const deserializeAws_json1_1LambdaResourceList = (output: any, context: __SerdeC } return deserializeAws_json1_1LambdaResource(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListClusterJobsResult = (output: any, context: __SerdeContext): ListClusterJobsResult => { @@ -2929,7 +2938,7 @@ const deserializeAws_json1_1ListLongTermPricingResult = ( }; const deserializeAws_json1_1LongTermPricingAssociatedJobIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2937,13 +2946,14 @@ const deserializeAws_json1_1LongTermPricingAssociatedJobIdList = (output: any, c } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LongTermPricingEntryList = ( output: any, context: __SerdeContext ): LongTermPricingListEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2951,6 +2961,7 @@ const deserializeAws_json1_1LongTermPricingEntryList = ( } return deserializeAws_json1_1LongTermPricingListEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1LongTermPricingListEntry = ( @@ -3041,7 +3052,7 @@ const deserializeAws_json1_1S3Resource = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1S3ResourceList = (output: any, context: __SerdeContext): S3Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3049,6 +3060,7 @@ const deserializeAws_json1_1S3ResourceList = (output: any, context: __SerdeConte } return deserializeAws_json1_1S3Resource(entry, context); }); + return retVal; }; const deserializeAws_json1_1Shipment = (output: any, context: __SerdeContext): Shipment => { @@ -3095,7 +3107,7 @@ const deserializeAws_json1_1TargetOnDeviceServiceList = ( output: any, context: __SerdeContext ): TargetOnDeviceService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3103,6 +3115,7 @@ const deserializeAws_json1_1TargetOnDeviceServiceList = ( } return deserializeAws_json1_1TargetOnDeviceService(entry, context); }); + return retVal; }; const deserializeAws_json1_1TaxDocuments = (output: any, context: __SerdeContext): TaxDocuments => { diff --git a/clients/client-ssm-contacts/src/protocols/Aws_json1_1.ts b/clients/client-ssm-contacts/src/protocols/Aws_json1_1.ts index 06dca9d3b86d..415e3154b22a 100644 --- a/clients/client-ssm-contacts/src/protocols/Aws_json1_1.ts +++ b/clients/client-ssm-contacts/src/protocols/Aws_json1_1.ts @@ -2568,7 +2568,7 @@ const deserializeAws_json1_1ContactChannelAddress = (output: any, context: __Ser }; const deserializeAws_json1_1ContactChannelList = (output: any, context: __SerdeContext): ContactChannel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2576,10 +2576,11 @@ const deserializeAws_json1_1ContactChannelList = (output: any, context: __SerdeC } return deserializeAws_json1_1ContactChannel(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContactsList = (output: any, context: __SerdeContext): Contact[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2587,6 +2588,7 @@ const deserializeAws_json1_1ContactsList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Contact(entry, context); }); + return retVal; }; const deserializeAws_json1_1ContactTargetInfo = (output: any, context: __SerdeContext): ContactTargetInfo => { @@ -2706,7 +2708,7 @@ const deserializeAws_json1_1Engagement = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1EngagementsList = (output: any, context: __SerdeContext): Engagement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2714,6 +2716,7 @@ const deserializeAws_json1_1EngagementsList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Engagement(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetContactChannelResult = ( @@ -2865,7 +2868,7 @@ const deserializeAws_json1_1Page = (output: any, context: __SerdeContext): Page }; const deserializeAws_json1_1PagesList = (output: any, context: __SerdeContext): Page[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2873,6 +2876,7 @@ const deserializeAws_json1_1PagesList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Page(entry, context); }); + return retVal; }; const deserializeAws_json1_1Plan = (output: any, context: __SerdeContext): Plan => { @@ -2901,7 +2905,7 @@ const deserializeAws_json1_1Receipt = (output: any, context: __SerdeContext): Re }; const deserializeAws_json1_1ReceiptsList = (output: any, context: __SerdeContext): Receipt[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2909,6 +2913,7 @@ const deserializeAws_json1_1ReceiptsList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Receipt(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceNotFoundException = ( @@ -2953,7 +2958,7 @@ const deserializeAws_json1_1Stage = (output: any, context: __SerdeContext): Stag }; const deserializeAws_json1_1StagesList = (output: any, context: __SerdeContext): Stage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2961,6 +2966,7 @@ const deserializeAws_json1_1StagesList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Stage(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartEngagementResult = (output: any, context: __SerdeContext): StartEngagementResult => { @@ -2985,7 +2991,7 @@ const deserializeAws_json1_1TagResourceResult = (output: any, context: __SerdeCo }; const deserializeAws_json1_1TagsList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2993,6 +2999,7 @@ const deserializeAws_json1_1TagsList = (output: any, context: __SerdeContext): T } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1Target = (output: any, context: __SerdeContext): Target => { @@ -3009,7 +3016,7 @@ const deserializeAws_json1_1Target = (output: any, context: __SerdeContext): Tar }; const deserializeAws_json1_1TargetsList = (output: any, context: __SerdeContext): Target[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3017,6 +3024,7 @@ const deserializeAws_json1_1TargetsList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Target(entry, context); }); + return retVal; }; const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { @@ -3068,7 +3076,7 @@ const deserializeAws_json1_1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3076,6 +3084,7 @@ const deserializeAws_json1_1ValidationExceptionFieldList = ( } return deserializeAws_json1_1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts b/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts index 01f6685c5a43..ba1e1aacf94e 100644 --- a/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts +++ b/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts @@ -3046,7 +3046,7 @@ const deserializeAws_restJson1Action = (output: any, context: __SerdeContext): A }; const deserializeAws_restJson1ActionsList = (output: any, context: __SerdeContext): Action[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3054,6 +3054,7 @@ const deserializeAws_restJson1ActionsList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Action(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1AutomationExecution = (output: any, context: __SerdeContext): AutomationExecution => { @@ -3067,43 +3068,27 @@ const deserializeAws_restJson1AutomationExecutionSet = ( output: any, context: __SerdeContext ): AutomationExecution[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = deserializeAws_restJson1AutomationExecution(__expectUnion(entry), context); - if (uniqueValues.has(parsedEntry)) { - throw new TypeError( - 'All elements of the set "com.amazonaws.ssmincidents#AutomationExecutionSet" must be unique.' - ); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return deserializeAws_restJson1AutomationExecution(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1ChatbotSnsConfigurationSet = (output: any, context: __SerdeContext): string[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = __expectString(entry) as any; - if (uniqueValues.has(parsedEntry)) { - throw new TypeError( - 'All elements of the set "com.amazonaws.ssmincidents#ChatbotSnsConfigurationSet" must be unique.' - ); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ChatChannel = (output: any, context: __SerdeContext): ChatChannel => { @@ -3125,21 +3110,15 @@ const deserializeAws_restJson1EmptyChatChannel = (output: any, context: __SerdeC }; const deserializeAws_restJson1EngagementSet = (output: any, context: __SerdeContext): string[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = __expectString(entry) as any; - if (uniqueValues.has(parsedEntry)) { - throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#EngagementSet" must be unique.'); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1EventSummary = (output: any, context: __SerdeContext): EventSummary => { @@ -3159,7 +3138,7 @@ const deserializeAws_restJson1EventSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1EventSummaryList = (output: any, context: __SerdeContext): EventSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3167,6 +3146,7 @@ const deserializeAws_restJson1EventSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1EventSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1IncidentRecord = (output: any, context: __SerdeContext): IncidentRecord => { @@ -3243,7 +3223,7 @@ const deserializeAws_restJson1IncidentRecordSummaryList = ( output: any, context: __SerdeContext ): IncidentRecordSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3251,6 +3231,7 @@ const deserializeAws_restJson1IncidentRecordSummaryList = ( } return deserializeAws_restJson1IncidentRecordSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1IncidentTemplate = (output: any, context: __SerdeContext): IncidentTemplate => { @@ -3303,23 +3284,15 @@ const deserializeAws_restJson1NotificationTargetSet = ( output: any, context: __SerdeContext ): NotificationTargetItem[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = deserializeAws_restJson1NotificationTargetItem(__expectUnion(entry), context); - if (uniqueValues.has(parsedEntry)) { - throw new TypeError( - 'All elements of the set "com.amazonaws.ssmincidents#NotificationTargetSet" must be unique.' - ); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return deserializeAws_restJson1NotificationTargetItem(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_restJson1RegionInfo = (output: any, context: __SerdeContext): RegionInfo => { @@ -3357,7 +3330,7 @@ const deserializeAws_restJson1RelatedItem = (output: any, context: __SerdeContex }; const deserializeAws_restJson1RelatedItemList = (output: any, context: __SerdeContext): RelatedItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3365,6 +3338,7 @@ const deserializeAws_restJson1RelatedItemList = (output: any, context: __SerdeCo } return deserializeAws_restJson1RelatedItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1ReplicationSet = (output: any, context: __SerdeContext): ReplicationSet => { @@ -3390,7 +3364,7 @@ const deserializeAws_restJson1ReplicationSet = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ReplicationSetArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3398,6 +3372,7 @@ const deserializeAws_restJson1ReplicationSetArnList = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ResourcePolicy = (output: any, context: __SerdeContext): ResourcePolicy => { @@ -3409,7 +3384,7 @@ const deserializeAws_restJson1ResourcePolicy = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ResourcePolicyList = (output: any, context: __SerdeContext): ResourcePolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3417,6 +3392,7 @@ const deserializeAws_restJson1ResourcePolicyList = (output: any, context: __Serd } return deserializeAws_restJson1ResourcePolicy(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResponsePlanSummary = (output: any, context: __SerdeContext): ResponsePlanSummary => { @@ -3431,7 +3407,7 @@ const deserializeAws_restJson1ResponsePlanSummaryList = ( output: any, context: __SerdeContext ): ResponsePlanSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3439,6 +3415,7 @@ const deserializeAws_restJson1ResponsePlanSummaryList = ( } return deserializeAws_restJson1ResponsePlanSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SsmAutomation = (output: any, context: __SerdeContext): SsmAutomation => { @@ -3467,7 +3444,7 @@ const deserializeAws_restJson1SsmParameters = (output: any, context: __SerdeCont }; const deserializeAws_restJson1SsmParameterValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3475,6 +3452,7 @@ const deserializeAws_restJson1SsmParameterValues = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-ssm/src/protocols/Aws_json1_1.ts b/clients/client-ssm/src/protocols/Aws_json1_1.ts index e8d83dd37b74..98a83a151874 100644 --- a/clients/client-ssm/src/protocols/Aws_json1_1.ts +++ b/clients/client-ssm/src/protocols/Aws_json1_1.ts @@ -15138,7 +15138,7 @@ const serializeAws_json1_1UpdateServiceSettingRequest = ( }; const deserializeAws_json1_1AccountIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15146,10 +15146,11 @@ const deserializeAws_json1_1AccountIdList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Accounts = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15157,6 +15158,7 @@ const deserializeAws_json1_1Accounts = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AccountSharingInfo = (output: any, context: __SerdeContext): AccountSharingInfo => { @@ -15167,7 +15169,7 @@ const deserializeAws_json1_1AccountSharingInfo = (output: any, context: __SerdeC }; const deserializeAws_json1_1AccountSharingInfoList = (output: any, context: __SerdeContext): AccountSharingInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15175,6 +15177,7 @@ const deserializeAws_json1_1AccountSharingInfoList = (output: any, context: __Se } return deserializeAws_json1_1AccountSharingInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1Activation = (output: any, context: __SerdeContext): Activation => { @@ -15202,7 +15205,7 @@ const deserializeAws_json1_1Activation = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ActivationList = (output: any, context: __SerdeContext): Activation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15210,6 +15213,7 @@ const deserializeAws_json1_1ActivationList = (output: any, context: __SerdeConte } return deserializeAws_json1_1Activation(entry, context); }); + return retVal; }; const deserializeAws_json1_1AddTagsToResourceResult = ( @@ -15335,7 +15339,7 @@ const deserializeAws_json1_1AssociationDescriptionList = ( output: any, context: __SerdeContext ): AssociationDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15343,6 +15347,7 @@ const deserializeAws_json1_1AssociationDescriptionList = ( } return deserializeAws_json1_1AssociationDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociationDoesNotExist = ( @@ -15386,7 +15391,7 @@ const deserializeAws_json1_1AssociationExecutionsList = ( output: any, context: __SerdeContext ): AssociationExecution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15394,6 +15399,7 @@ const deserializeAws_json1_1AssociationExecutionsList = ( } return deserializeAws_json1_1AssociationExecution(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociationExecutionTarget = ( @@ -15423,7 +15429,7 @@ const deserializeAws_json1_1AssociationExecutionTargetsList = ( output: any, context: __SerdeContext ): AssociationExecutionTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15431,6 +15437,7 @@ const deserializeAws_json1_1AssociationExecutionTargetsList = ( } return deserializeAws_json1_1AssociationExecutionTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociationLimitExceeded = ( @@ -15441,7 +15448,7 @@ const deserializeAws_json1_1AssociationLimitExceeded = ( }; const deserializeAws_json1_1AssociationList = (output: any, context: __SerdeContext): Association[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15449,6 +15456,7 @@ const deserializeAws_json1_1AssociationList = (output: any, context: __SerdeCont } return deserializeAws_json1_1Association(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociationOverview = (output: any, context: __SerdeContext): AssociationOverview => { @@ -15542,7 +15550,7 @@ const deserializeAws_json1_1AssociationVersionList = ( output: any, context: __SerdeContext ): AssociationVersionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15550,6 +15558,7 @@ const deserializeAws_json1_1AssociationVersionList = ( } return deserializeAws_json1_1AssociationVersionInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttachmentContent = (output: any, context: __SerdeContext): AttachmentContent => { @@ -15563,7 +15572,7 @@ const deserializeAws_json1_1AttachmentContent = (output: any, context: __SerdeCo }; const deserializeAws_json1_1AttachmentContentList = (output: any, context: __SerdeContext): AttachmentContent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15571,6 +15580,7 @@ const deserializeAws_json1_1AttachmentContentList = (output: any, context: __Ser } return deserializeAws_json1_1AttachmentContent(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttachmentInformation = (output: any, context: __SerdeContext): AttachmentInformation => { @@ -15583,7 +15593,7 @@ const deserializeAws_json1_1AttachmentInformationList = ( output: any, context: __SerdeContext ): AttachmentInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15591,6 +15601,7 @@ const deserializeAws_json1_1AttachmentInformationList = ( } return deserializeAws_json1_1AttachmentInformation(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutomationDefinitionNotApprovedException = ( @@ -15765,7 +15776,7 @@ const deserializeAws_json1_1AutomationExecutionMetadataList = ( output: any, context: __SerdeContext ): AutomationExecutionMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15773,6 +15784,7 @@ const deserializeAws_json1_1AutomationExecutionMetadataList = ( } return deserializeAws_json1_1AutomationExecutionMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutomationExecutionNotFoundException = ( @@ -15800,7 +15812,7 @@ const deserializeAws_json1_1AutomationParameterMap = ( }; const deserializeAws_json1_1AutomationParameterValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15808,6 +15820,7 @@ const deserializeAws_json1_1AutomationParameterValueList = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AutomationStepNotFoundException = ( @@ -15820,7 +15833,7 @@ const deserializeAws_json1_1AutomationStepNotFoundException = ( }; const deserializeAws_json1_1CalendarNameOrARNList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15828,6 +15841,7 @@ const deserializeAws_json1_1CalendarNameOrARNList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CancelCommandResult = (output: any, context: __SerdeContext): CancelCommandResult => { @@ -15844,7 +15858,7 @@ const deserializeAws_json1_1CancelMaintenanceWindowExecutionResult = ( }; const deserializeAws_json1_1CategoryEnumList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15852,10 +15866,11 @@ const deserializeAws_json1_1CategoryEnumList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CategoryList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15863,6 +15878,7 @@ const deserializeAws_json1_1CategoryList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CloudWatchOutputConfig = (output: any, context: __SerdeContext): CloudWatchOutputConfig => { @@ -15956,7 +15972,7 @@ const deserializeAws_json1_1CommandInvocation = (output: any, context: __SerdeCo }; const deserializeAws_json1_1CommandInvocationList = (output: any, context: __SerdeContext): CommandInvocation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15964,10 +15980,11 @@ const deserializeAws_json1_1CommandInvocationList = (output: any, context: __Ser } return deserializeAws_json1_1CommandInvocation(entry, context); }); + return retVal; }; const deserializeAws_json1_1CommandList = (output: any, context: __SerdeContext): Command[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -15975,6 +15992,7 @@ const deserializeAws_json1_1CommandList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Command(entry, context); }); + return retVal; }; const deserializeAws_json1_1CommandPlugin = (output: any, context: __SerdeContext): CommandPlugin => { @@ -16001,7 +16019,7 @@ const deserializeAws_json1_1CommandPlugin = (output: any, context: __SerdeContex }; const deserializeAws_json1_1CommandPluginList = (output: any, context: __SerdeContext): CommandPlugin[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16009,6 +16027,7 @@ const deserializeAws_json1_1CommandPluginList = (output: any, context: __SerdeCo } return deserializeAws_json1_1CommandPlugin(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComplianceExecutionSummary = ( @@ -16061,7 +16080,7 @@ const deserializeAws_json1_1ComplianceItemDetails = ( }; const deserializeAws_json1_1ComplianceItemList = (output: any, context: __SerdeContext): ComplianceItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16069,6 +16088,7 @@ const deserializeAws_json1_1ComplianceItemList = (output: any, context: __SerdeC } return deserializeAws_json1_1ComplianceItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComplianceSummaryItem = (output: any, context: __SerdeContext): ComplianceSummaryItem => { @@ -16089,7 +16109,7 @@ const deserializeAws_json1_1ComplianceSummaryItemList = ( output: any, context: __SerdeContext ): ComplianceSummaryItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16097,6 +16117,7 @@ const deserializeAws_json1_1ComplianceSummaryItemList = ( } return deserializeAws_json1_1ComplianceSummaryItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1ComplianceTypeCountLimitExceededException = ( @@ -16910,7 +16931,7 @@ const deserializeAws_json1_1DocumentIdentifier = (output: any, context: __SerdeC }; const deserializeAws_json1_1DocumentIdentifierList = (output: any, context: __SerdeContext): DocumentIdentifier[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16918,6 +16939,7 @@ const deserializeAws_json1_1DocumentIdentifierList = (output: any, context: __Se } return deserializeAws_json1_1DocumentIdentifier(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentLimitExceeded = (output: any, context: __SerdeContext): DocumentLimitExceeded => { @@ -16948,7 +16970,7 @@ const deserializeAws_json1_1DocumentParameter = (output: any, context: __SerdeCo }; const deserializeAws_json1_1DocumentParameterList = (output: any, context: __SerdeContext): DocumentParameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16956,6 +16978,7 @@ const deserializeAws_json1_1DocumentParameterList = (output: any, context: __Ser } return deserializeAws_json1_1DocumentParameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentPermissionLimit = ( @@ -16975,7 +16998,7 @@ const deserializeAws_json1_1DocumentRequires = (output: any, context: __SerdeCon }; const deserializeAws_json1_1DocumentRequiresList = (output: any, context: __SerdeContext): DocumentRequires[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16983,13 +17006,14 @@ const deserializeAws_json1_1DocumentRequiresList = (output: any, context: __Serd } return deserializeAws_json1_1DocumentRequires(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentReviewCommentList = ( output: any, context: __SerdeContext ): DocumentReviewCommentSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -16997,6 +17021,7 @@ const deserializeAws_json1_1DocumentReviewCommentList = ( } return deserializeAws_json1_1DocumentReviewCommentSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentReviewCommentSource = ( @@ -17013,7 +17038,7 @@ const deserializeAws_json1_1DocumentReviewerResponseList = ( output: any, context: __SerdeContext ): DocumentReviewerResponseSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17021,6 +17046,7 @@ const deserializeAws_json1_1DocumentReviewerResponseList = ( } return deserializeAws_json1_1DocumentReviewerResponseSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1DocumentReviewerResponseSource = ( @@ -17073,7 +17099,7 @@ const deserializeAws_json1_1DocumentVersionLimitExceeded = ( }; const deserializeAws_json1_1DocumentVersionList = (output: any, context: __SerdeContext): DocumentVersionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17081,6 +17107,7 @@ const deserializeAws_json1_1DocumentVersionList = (output: any, context: __Serde } return deserializeAws_json1_1DocumentVersionInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1DoesNotExistException = (output: any, context: __SerdeContext): DoesNotExistException => { @@ -17125,7 +17152,7 @@ const deserializeAws_json1_1EffectivePatch = (output: any, context: __SerdeConte }; const deserializeAws_json1_1EffectivePatchList = (output: any, context: __SerdeContext): EffectivePatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17133,6 +17160,7 @@ const deserializeAws_json1_1EffectivePatchList = (output: any, context: __SerdeC } return deserializeAws_json1_1EffectivePatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedCreateAssociation = ( @@ -17153,7 +17181,7 @@ const deserializeAws_json1_1FailedCreateAssociationList = ( output: any, context: __SerdeContext ): FailedCreateAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17161,6 +17189,7 @@ const deserializeAws_json1_1FailedCreateAssociationList = ( } return deserializeAws_json1_1FailedCreateAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailureDetails = (output: any, context: __SerdeContext): FailureDetails => { @@ -17667,7 +17696,7 @@ const deserializeAws_json1_1InstanceAssociation = (output: any, context: __Serde }; const deserializeAws_json1_1InstanceAssociationList = (output: any, context: __SerdeContext): InstanceAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17675,6 +17704,7 @@ const deserializeAws_json1_1InstanceAssociationList = (output: any, context: __S } return deserializeAws_json1_1InstanceAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceAssociationOutputLocation = ( @@ -17746,7 +17776,7 @@ const deserializeAws_json1_1InstanceAssociationStatusInfos = ( output: any, context: __SerdeContext ): InstanceAssociationStatusInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17754,10 +17784,11 @@ const deserializeAws_json1_1InstanceAssociationStatusInfos = ( } return deserializeAws_json1_1InstanceAssociationStatusInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17765,6 +17796,7 @@ const deserializeAws_json1_1InstanceIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InstanceInformation = (output: any, context: __SerdeContext): InstanceInformation => { @@ -17810,7 +17842,7 @@ const deserializeAws_json1_1InstanceInformation = (output: any, context: __Serde }; const deserializeAws_json1_1InstanceInformationList = (output: any, context: __SerdeContext): InstanceInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17818,6 +17850,7 @@ const deserializeAws_json1_1InstanceInformationList = (output: any, context: __S } return deserializeAws_json1_1InstanceInformation(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstancePatchState = (output: any, context: __SerdeContext): InstancePatchState => { @@ -17857,7 +17890,7 @@ const deserializeAws_json1_1InstancePatchState = (output: any, context: __SerdeC }; const deserializeAws_json1_1InstancePatchStateList = (output: any, context: __SerdeContext): InstancePatchState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17865,10 +17898,11 @@ const deserializeAws_json1_1InstancePatchStateList = (output: any, context: __Se } return deserializeAws_json1_1InstancePatchState(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstancePatchStatesList = (output: any, context: __SerdeContext): InstancePatchState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -17876,6 +17910,7 @@ const deserializeAws_json1_1InstancePatchStatesList = (output: any, context: __S } return deserializeAws_json1_1InstancePatchState(entry, context); }); + return retVal; }; const deserializeAws_json1_1InternalServerError = (output: any, context: __SerdeContext): InternalServerError => { @@ -18217,7 +18252,7 @@ const deserializeAws_json1_1InventoryDeletionsList = ( output: any, context: __SerdeContext ): InventoryDeletionStatusItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18225,6 +18260,7 @@ const deserializeAws_json1_1InventoryDeletionsList = ( } return deserializeAws_json1_1InventoryDeletionStatusItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1InventoryDeletionStatusItem = ( @@ -18280,7 +18316,7 @@ const deserializeAws_json1_1InventoryDeletionSummaryItems = ( output: any, context: __SerdeContext ): InventoryDeletionSummaryItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18288,6 +18324,7 @@ const deserializeAws_json1_1InventoryDeletionSummaryItems = ( } return deserializeAws_json1_1InventoryDeletionSummaryItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1InventoryItemAttribute = (output: any, context: __SerdeContext): InventoryItemAttribute => { @@ -18301,7 +18338,7 @@ const deserializeAws_json1_1InventoryItemAttributeList = ( output: any, context: __SerdeContext ): InventoryItemAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18309,6 +18346,7 @@ const deserializeAws_json1_1InventoryItemAttributeList = ( } return deserializeAws_json1_1InventoryItemAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1InventoryItemEntry = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -18327,7 +18365,7 @@ const deserializeAws_json1_1InventoryItemEntryList = ( output: any, context: __SerdeContext ): { [key: string]: string }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18335,6 +18373,7 @@ const deserializeAws_json1_1InventoryItemEntryList = ( } return deserializeAws_json1_1InventoryItemEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1InventoryItemSchema = (output: any, context: __SerdeContext): InventoryItemSchema => { @@ -18353,7 +18392,7 @@ const deserializeAws_json1_1InventoryItemSchemaResultList = ( output: any, context: __SerdeContext ): InventoryItemSchema[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18361,6 +18400,7 @@ const deserializeAws_json1_1InventoryItemSchemaResultList = ( } return deserializeAws_json1_1InventoryItemSchema(entry, context); }); + return retVal; }; const deserializeAws_json1_1InventoryResultEntity = (output: any, context: __SerdeContext): InventoryResultEntity => { @@ -18377,7 +18417,7 @@ const deserializeAws_json1_1InventoryResultEntityList = ( output: any, context: __SerdeContext ): InventoryResultEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18385,6 +18425,7 @@ const deserializeAws_json1_1InventoryResultEntityList = ( } return deserializeAws_json1_1InventoryResultEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1InventoryResultItem = (output: any, context: __SerdeContext): InventoryResultItem => { @@ -18699,7 +18740,7 @@ const deserializeAws_json1_1MaintenanceWindowExecutionList = ( output: any, context: __SerdeContext ): MaintenanceWindowExecution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18707,6 +18748,7 @@ const deserializeAws_json1_1MaintenanceWindowExecutionList = ( } return deserializeAws_json1_1MaintenanceWindowExecution(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentity = ( @@ -18735,7 +18777,7 @@ const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentityList = ( output: any, context: __SerdeContext ): MaintenanceWindowExecutionTaskIdentity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18743,10 +18785,11 @@ const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentityList = ( } return deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentity(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18754,6 +18797,7 @@ const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdList = (output: any, } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentity = ( @@ -18786,7 +18830,7 @@ const deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentityList output: any, context: __SerdeContext ): MaintenanceWindowExecutionTaskInvocationIdentity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18794,6 +18838,7 @@ const deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentityList } return deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentity(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowIdentity = ( @@ -18830,7 +18875,7 @@ const deserializeAws_json1_1MaintenanceWindowIdentityList = ( output: any, context: __SerdeContext ): MaintenanceWindowIdentity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18838,6 +18883,7 @@ const deserializeAws_json1_1MaintenanceWindowIdentityList = ( } return deserializeAws_json1_1MaintenanceWindowIdentity(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowLambdaParameters = ( @@ -18884,7 +18930,7 @@ const deserializeAws_json1_1MaintenanceWindowsForTargetList = ( output: any, context: __SerdeContext ): MaintenanceWindowIdentityForTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18892,6 +18938,7 @@ const deserializeAws_json1_1MaintenanceWindowsForTargetList = ( } return deserializeAws_json1_1MaintenanceWindowIdentityForTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowStepFunctionsParameters = ( @@ -18926,7 +18973,7 @@ const deserializeAws_json1_1MaintenanceWindowTargetList = ( output: any, context: __SerdeContext ): MaintenanceWindowTarget[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -18934,6 +18981,7 @@ const deserializeAws_json1_1MaintenanceWindowTargetList = ( } return deserializeAws_json1_1MaintenanceWindowTarget(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowTask = (output: any, context: __SerdeContext): MaintenanceWindowTask => { @@ -18992,7 +19040,7 @@ const deserializeAws_json1_1MaintenanceWindowTaskList = ( output: any, context: __SerdeContext ): MaintenanceWindowTask[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19000,6 +19048,7 @@ const deserializeAws_json1_1MaintenanceWindowTaskList = ( } return deserializeAws_json1_1MaintenanceWindowTask(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowTaskParameters = ( @@ -19024,7 +19073,7 @@ const deserializeAws_json1_1MaintenanceWindowTaskParametersList = ( output: any, context: __SerdeContext ): { [key: string]: MaintenanceWindowTaskParameterValueExpression }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19032,6 +19081,7 @@ const deserializeAws_json1_1MaintenanceWindowTaskParametersList = ( } return deserializeAws_json1_1MaintenanceWindowTaskParameters(entry, context); }); + return retVal; }; const deserializeAws_json1_1MaintenanceWindowTaskParameterValueExpression = ( @@ -19050,7 +19100,7 @@ const deserializeAws_json1_1MaintenanceWindowTaskParameterValueList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19058,6 +19108,7 @@ const deserializeAws_json1_1MaintenanceWindowTaskParameterValueList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1MaxDocumentSizeExceeded = ( @@ -19131,7 +19182,7 @@ const deserializeAws_json1_1NotificationEventList = ( output: any, context: __SerdeContext ): (NotificationEvent | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19139,6 +19190,7 @@ const deserializeAws_json1_1NotificationEventList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OpsEntity = (output: any, context: __SerdeContext): OpsEntity => { @@ -19177,7 +19229,7 @@ const deserializeAws_json1_1OpsEntityItemEntryList = ( output: any, context: __SerdeContext ): { [key: string]: string }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19185,6 +19237,7 @@ const deserializeAws_json1_1OpsEntityItemEntryList = ( } return deserializeAws_json1_1OpsEntityItemEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpsEntityItemMap = ( @@ -19203,7 +19256,7 @@ const deserializeAws_json1_1OpsEntityItemMap = ( }; const deserializeAws_json1_1OpsEntityList = (output: any, context: __SerdeContext): OpsEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19211,6 +19264,7 @@ const deserializeAws_json1_1OpsEntityList = (output: any, context: __SerdeContex } return deserializeAws_json1_1OpsEntity(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpsItem = (output: any, context: __SerdeContext): OpsItem => { @@ -19284,7 +19338,7 @@ const deserializeAws_json1_1OpsItemDataValue = (output: any, context: __SerdeCon }; const deserializeAws_json1_1OpsItemEventSummaries = (output: any, context: __SerdeContext): OpsItemEventSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19292,6 +19346,7 @@ const deserializeAws_json1_1OpsItemEventSummaries = (output: any, context: __Ser } return deserializeAws_json1_1OpsItemEventSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpsItemEventSummary = (output: any, context: __SerdeContext): OpsItemEventSummary => { @@ -19362,7 +19417,7 @@ const deserializeAws_json1_1OpsItemNotification = (output: any, context: __Serde }; const deserializeAws_json1_1OpsItemNotifications = (output: any, context: __SerdeContext): OpsItemNotification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19370,6 +19425,7 @@ const deserializeAws_json1_1OpsItemNotifications = (output: any, context: __Serd } return deserializeAws_json1_1OpsItemNotification(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpsItemOperationalData = ( @@ -19388,7 +19444,7 @@ const deserializeAws_json1_1OpsItemOperationalData = ( }; const deserializeAws_json1_1OpsItemParameterNamesList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19396,6 +19452,7 @@ const deserializeAws_json1_1OpsItemParameterNamesList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsException = ( @@ -19422,7 +19479,7 @@ const deserializeAws_json1_1OpsItemRelatedItemSummaries = ( output: any, context: __SerdeContext ): OpsItemRelatedItemSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19430,6 +19487,7 @@ const deserializeAws_json1_1OpsItemRelatedItemSummaries = ( } return deserializeAws_json1_1OpsItemRelatedItemSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpsItemRelatedItemSummary = ( @@ -19462,7 +19520,7 @@ const deserializeAws_json1_1OpsItemRelatedItemSummary = ( }; const deserializeAws_json1_1OpsItemSummaries = (output: any, context: __SerdeContext): OpsItemSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19470,6 +19528,7 @@ const deserializeAws_json1_1OpsItemSummaries = (output: any, context: __SerdeCon } return deserializeAws_json1_1OpsItemSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpsItemSummary = (output: any, context: __SerdeContext): OpsItemSummary => { @@ -19568,7 +19627,7 @@ const deserializeAws_json1_1OpsMetadataLimitExceededException = ( }; const deserializeAws_json1_1OpsMetadataList = (output: any, context: __SerdeContext): OpsMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19576,6 +19635,7 @@ const deserializeAws_json1_1OpsMetadataList = (output: any, context: __SerdeCont } return deserializeAws_json1_1OpsMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1OpsMetadataNotFoundException = ( @@ -19654,7 +19714,7 @@ const deserializeAws_json1_1ParameterHistory = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ParameterHistoryList = (output: any, context: __SerdeContext): ParameterHistory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19662,6 +19722,7 @@ const deserializeAws_json1_1ParameterHistoryList = (output: any, context: __Serd } return deserializeAws_json1_1ParameterHistory(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterInlinePolicy = (output: any, context: __SerdeContext): ParameterInlinePolicy => { @@ -19673,7 +19734,7 @@ const deserializeAws_json1_1ParameterInlinePolicy = (output: any, context: __Ser }; const deserializeAws_json1_1ParameterLabelList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19681,6 +19742,7 @@ const deserializeAws_json1_1ParameterLabelList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ParameterLimitExceeded = (output: any, context: __SerdeContext): ParameterLimitExceeded => { @@ -19690,7 +19752,7 @@ const deserializeAws_json1_1ParameterLimitExceeded = (output: any, context: __Se }; const deserializeAws_json1_1ParameterList = (output: any, context: __SerdeContext): Parameter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19698,6 +19760,7 @@ const deserializeAws_json1_1ParameterList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Parameter(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterMaxVersionLimitExceeded = ( @@ -19732,7 +19795,7 @@ const deserializeAws_json1_1ParameterMetadata = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ParameterMetadataList = (output: any, context: __SerdeContext): ParameterMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19740,10 +19803,11 @@ const deserializeAws_json1_1ParameterMetadataList = (output: any, context: __Ser } return deserializeAws_json1_1ParameterMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1ParameterNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19751,6 +19815,7 @@ const deserializeAws_json1_1ParameterNameList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ParameterNotFound = (output: any, context: __SerdeContext): ParameterNotFound => { @@ -19769,7 +19834,7 @@ const deserializeAws_json1_1ParameterPatternMismatchException = ( }; const deserializeAws_json1_1ParameterPolicyList = (output: any, context: __SerdeContext): ParameterInlinePolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19777,6 +19842,7 @@ const deserializeAws_json1_1ParameterPolicyList = (output: any, context: __Serde } return deserializeAws_json1_1ParameterInlinePolicy(entry, context); }); + return retVal; }; const deserializeAws_json1_1Parameters = (output: any, context: __SerdeContext): { [key: string]: string[] } => { @@ -19792,7 +19858,7 @@ const deserializeAws_json1_1Parameters = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ParameterValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19800,6 +19866,7 @@ const deserializeAws_json1_1ParameterValueList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ParameterVersionLabelLimitExceeded = ( @@ -19861,7 +19928,7 @@ const deserializeAws_json1_1Patch = (output: any, context: __SerdeContext): Patc }; const deserializeAws_json1_1PatchAdvisoryIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19869,6 +19936,7 @@ const deserializeAws_json1_1PatchAdvisoryIdList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PatchBaselineIdentity = (output: any, context: __SerdeContext): PatchBaselineIdentity => { @@ -19885,7 +19953,7 @@ const deserializeAws_json1_1PatchBaselineIdentityList = ( output: any, context: __SerdeContext ): PatchBaselineIdentity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19893,10 +19961,11 @@ const deserializeAws_json1_1PatchBaselineIdentityList = ( } return deserializeAws_json1_1PatchBaselineIdentity(entry, context); }); + return retVal; }; const deserializeAws_json1_1PatchBugzillaIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19904,6 +19973,7 @@ const deserializeAws_json1_1PatchBugzillaIdList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PatchComplianceData = (output: any, context: __SerdeContext): PatchComplianceData => { @@ -19922,7 +19992,7 @@ const deserializeAws_json1_1PatchComplianceData = (output: any, context: __Serde }; const deserializeAws_json1_1PatchComplianceDataList = (output: any, context: __SerdeContext): PatchComplianceData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19930,10 +20000,11 @@ const deserializeAws_json1_1PatchComplianceDataList = (output: any, context: __S } return deserializeAws_json1_1PatchComplianceData(entry, context); }); + return retVal; }; const deserializeAws_json1_1PatchCVEIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19941,6 +20012,7 @@ const deserializeAws_json1_1PatchCVEIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PatchFilter = (output: any, context: __SerdeContext): PatchFilter => { @@ -19963,7 +20035,7 @@ const deserializeAws_json1_1PatchFilterGroup = (output: any, context: __SerdeCon }; const deserializeAws_json1_1PatchFilterList = (output: any, context: __SerdeContext): PatchFilter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19971,10 +20043,11 @@ const deserializeAws_json1_1PatchFilterList = (output: any, context: __SerdeCont } return deserializeAws_json1_1PatchFilter(entry, context); }); + return retVal; }; const deserializeAws_json1_1PatchFilterValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19982,10 +20055,11 @@ const deserializeAws_json1_1PatchFilterValueList = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PatchGroupList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -19993,6 +20067,7 @@ const deserializeAws_json1_1PatchGroupList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PatchGroupPatchBaselineMapping = ( @@ -20012,7 +20087,7 @@ const deserializeAws_json1_1PatchGroupPatchBaselineMappingList = ( output: any, context: __SerdeContext ): PatchGroupPatchBaselineMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20020,10 +20095,11 @@ const deserializeAws_json1_1PatchGroupPatchBaselineMappingList = ( } return deserializeAws_json1_1PatchGroupPatchBaselineMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_1PatchIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20031,10 +20107,11 @@ const deserializeAws_json1_1PatchIdList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PatchList = (output: any, context: __SerdeContext): Patch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20042,13 +20119,14 @@ const deserializeAws_json1_1PatchList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Patch(entry, context); }); + return retVal; }; const deserializeAws_json1_1PatchPropertiesList = ( output: any, context: __SerdeContext ): { [key: string]: string }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20056,6 +20134,7 @@ const deserializeAws_json1_1PatchPropertiesList = ( } return deserializeAws_json1_1PatchPropertyEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1PatchPropertyEntry = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -20093,7 +20172,7 @@ const deserializeAws_json1_1PatchRuleGroup = (output: any, context: __SerdeConte }; const deserializeAws_json1_1PatchRuleList = (output: any, context: __SerdeContext): PatchRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20101,6 +20180,7 @@ const deserializeAws_json1_1PatchRuleList = (output: any, context: __SerdeContex } return deserializeAws_json1_1PatchRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1PatchSource = (output: any, context: __SerdeContext): PatchSource => { @@ -20115,7 +20195,7 @@ const deserializeAws_json1_1PatchSource = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1PatchSourceList = (output: any, context: __SerdeContext): PatchSource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20123,10 +20203,11 @@ const deserializeAws_json1_1PatchSourceList = (output: any, context: __SerdeCont } return deserializeAws_json1_1PatchSource(entry, context); }); + return retVal; }; const deserializeAws_json1_1PatchSourceProductList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20134,6 +20215,7 @@ const deserializeAws_json1_1PatchSourceProductList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PatchStatus = (output: any, context: __SerdeContext): PatchStatus => { @@ -20148,7 +20230,7 @@ const deserializeAws_json1_1PatchStatus = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1PlatformTypeList = (output: any, context: __SerdeContext): (PlatformType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20156,6 +20238,7 @@ const deserializeAws_json1_1PlatformTypeList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PoliciesLimitExceededException = ( @@ -20198,7 +20281,7 @@ const deserializeAws_json1_1PutParameterResult = (output: any, context: __SerdeC }; const deserializeAws_json1_1Regions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20206,6 +20289,7 @@ const deserializeAws_json1_1Regions = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RegisterDefaultPatchBaselineResult = ( @@ -20252,7 +20336,7 @@ const deserializeAws_json1_1RelatedOpsItem = (output: any, context: __SerdeConte }; const deserializeAws_json1_1RelatedOpsItems = (output: any, context: __SerdeContext): RelatedOpsItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20260,6 +20344,7 @@ const deserializeAws_json1_1RelatedOpsItems = (output: any, context: __SerdeCont } return deserializeAws_json1_1RelatedOpsItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1RemoveTagsFromResourceResult = ( @@ -20320,7 +20405,7 @@ const deserializeAws_json1_1ResourceComplianceSummaryItemList = ( output: any, context: __SerdeContext ): ResourceComplianceSummaryItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20328,6 +20413,7 @@ const deserializeAws_json1_1ResourceComplianceSummaryItemList = ( } return deserializeAws_json1_1ResourceComplianceSummaryItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceDataSyncAlreadyExistsException = ( @@ -20425,7 +20511,7 @@ const deserializeAws_json1_1ResourceDataSyncItemList = ( output: any, context: __SerdeContext ): ResourceDataSyncItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20433,6 +20519,7 @@ const deserializeAws_json1_1ResourceDataSyncItemList = ( } return deserializeAws_json1_1ResourceDataSyncItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceDataSyncNotFoundException = ( @@ -20459,7 +20546,7 @@ const deserializeAws_json1_1ResourceDataSyncOrganizationalUnitList = ( output: any, context: __SerdeContext ): ResourceDataSyncOrganizationalUnit[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20467,6 +20554,7 @@ const deserializeAws_json1_1ResourceDataSyncOrganizationalUnitList = ( } return deserializeAws_json1_1ResourceDataSyncOrganizationalUnit(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceDataSyncS3Destination = ( @@ -20487,7 +20575,7 @@ const deserializeAws_json1_1ResourceDataSyncS3Destination = ( }; const deserializeAws_json1_1ResourceDataSyncSourceRegionList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20495,6 +20583,7 @@ const deserializeAws_json1_1ResourceDataSyncSourceRegionList = (output: any, con } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceDataSyncSourceWithState = ( @@ -20552,7 +20641,7 @@ const deserializeAws_json1_1ReviewInformation = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ReviewInformationList = (output: any, context: __SerdeContext): ReviewInformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20560,6 +20649,7 @@ const deserializeAws_json1_1ReviewInformationList = (output: any, context: __Ser } return deserializeAws_json1_1ReviewInformation(entry, context); }); + return retVal; }; const deserializeAws_json1_1Runbook = (output: any, context: __SerdeContext): Runbook => { @@ -20585,7 +20675,7 @@ const deserializeAws_json1_1Runbook = (output: any, context: __SerdeContext): Ru }; const deserializeAws_json1_1Runbooks = (output: any, context: __SerdeContext): Runbook[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20593,6 +20683,7 @@ const deserializeAws_json1_1Runbooks = (output: any, context: __SerdeContext): R } return deserializeAws_json1_1Runbook(entry, context); }); + return retVal; }; const deserializeAws_json1_1S3OutputLocation = (output: any, context: __SerdeContext): S3OutputLocation => { @@ -20624,7 +20715,7 @@ const deserializeAws_json1_1ScheduledWindowExecutionList = ( output: any, context: __SerdeContext ): ScheduledWindowExecution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20632,6 +20723,7 @@ const deserializeAws_json1_1ScheduledWindowExecutionList = ( } return deserializeAws_json1_1ScheduledWindowExecution(entry, context); }); + return retVal; }; const deserializeAws_json1_1SendAutomationSignalResult = ( @@ -20696,7 +20788,7 @@ const deserializeAws_json1_1Session = (output: any, context: __SerdeContext): Se }; const deserializeAws_json1_1SessionList = (output: any, context: __SerdeContext): Session[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20704,6 +20796,7 @@ const deserializeAws_json1_1SessionList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Session(entry, context); }); + return retVal; }; const deserializeAws_json1_1SessionManagerOutputUrl = ( @@ -20819,7 +20912,7 @@ const deserializeAws_json1_1StepExecution = (output: any, context: __SerdeContex }; const deserializeAws_json1_1StepExecutionList = (output: any, context: __SerdeContext): StepExecution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20827,6 +20920,7 @@ const deserializeAws_json1_1StepExecutionList = (output: any, context: __SerdeCo } return deserializeAws_json1_1StepExecution(entry, context); }); + return retVal; }; const deserializeAws_json1_1StopAutomationExecutionResult = ( @@ -20853,7 +20947,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20861,6 +20955,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1Target = (output: any, context: __SerdeContext): Target => { @@ -20896,7 +20991,7 @@ const deserializeAws_json1_1TargetLocation = (output: any, context: __SerdeConte }; const deserializeAws_json1_1TargetLocations = (output: any, context: __SerdeContext): TargetLocation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20904,6 +20999,7 @@ const deserializeAws_json1_1TargetLocations = (output: any, context: __SerdeCont } return deserializeAws_json1_1TargetLocation(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetMap = (output: any, context: __SerdeContext): { [key: string]: string[] } => { @@ -20919,7 +21015,7 @@ const deserializeAws_json1_1TargetMap = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1TargetMaps = (output: any, context: __SerdeContext): { [key: string]: string[] }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20927,10 +21023,11 @@ const deserializeAws_json1_1TargetMaps = (output: any, context: __SerdeContext): } return deserializeAws_json1_1TargetMap(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetMapValueList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20938,6 +21035,7 @@ const deserializeAws_json1_1TargetMapValueList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TargetNotConnected = (output: any, context: __SerdeContext): TargetNotConnected => { @@ -20947,7 +21045,7 @@ const deserializeAws_json1_1TargetNotConnected = (output: any, context: __SerdeC }; const deserializeAws_json1_1TargetParameterList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20955,10 +21053,11 @@ const deserializeAws_json1_1TargetParameterList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Targets = (output: any, context: __SerdeContext): Target[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20966,10 +21065,11 @@ const deserializeAws_json1_1Targets = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Target(entry, context); }); + return retVal; }; const deserializeAws_json1_1TargetValues = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -20977,6 +21077,7 @@ const deserializeAws_json1_1TargetValues = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TerminateSessionResponse = ( @@ -21288,7 +21389,7 @@ const deserializeAws_json1_1UpdateServiceSettingResult = ( }; const deserializeAws_json1_1ValidNextStepList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -21296,6 +21397,7 @@ const deserializeAws_json1_1ValidNextStepList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-sso-admin/src/protocols/Aws_json1_1.ts b/clients/client-sso-admin/src/protocols/Aws_json1_1.ts index 3aa6288f1275..ba7e61eb15b3 100644 --- a/clients/client-sso-admin/src/protocols/Aws_json1_1.ts +++ b/clients/client-sso-admin/src/protocols/Aws_json1_1.ts @@ -2958,7 +2958,7 @@ const deserializeAws_json1_1AccessControlAttributeList = ( output: any, context: __SerdeContext ): AccessControlAttribute[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2966,6 +2966,7 @@ const deserializeAws_json1_1AccessControlAttributeList = ( } return deserializeAws_json1_1AccessControlAttribute(entry, context); }); + return retVal; }; const deserializeAws_json1_1AccessControlAttributeValue = ( @@ -2984,7 +2985,7 @@ const deserializeAws_json1_1AccessControlAttributeValueSourceList = ( output: any, context: __SerdeContext ): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2992,6 +2993,7 @@ const deserializeAws_json1_1AccessControlAttributeValueSourceList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AccessDeniedException = (output: any, context: __SerdeContext): AccessDeniedException => { @@ -3010,7 +3012,7 @@ const deserializeAws_json1_1AccountAssignment = (output: any, context: __SerdeCo }; const deserializeAws_json1_1AccountAssignmentList = (output: any, context: __SerdeContext): AccountAssignment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3018,6 +3020,7 @@ const deserializeAws_json1_1AccountAssignmentList = (output: any, context: __Ser } return deserializeAws_json1_1AccountAssignment(entry, context); }); + return retVal; }; const deserializeAws_json1_1AccountAssignmentOperationStatus = ( @@ -3044,7 +3047,7 @@ const deserializeAws_json1_1AccountAssignmentOperationStatusList = ( output: any, context: __SerdeContext ): AccountAssignmentOperationStatusMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3052,6 +3055,7 @@ const deserializeAws_json1_1AccountAssignmentOperationStatusList = ( } return deserializeAws_json1_1AccountAssignmentOperationStatusMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1AccountAssignmentOperationStatusMetadata = ( @@ -3069,7 +3073,7 @@ const deserializeAws_json1_1AccountAssignmentOperationStatusMetadata = ( }; const deserializeAws_json1_1AccountList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3077,6 +3081,7 @@ const deserializeAws_json1_1AccountList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AttachedManagedPolicy = (output: any, context: __SerdeContext): AttachedManagedPolicy => { @@ -3090,7 +3095,7 @@ const deserializeAws_json1_1AttachedManagedPolicyList = ( output: any, context: __SerdeContext ): AttachedManagedPolicy[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3098,6 +3103,7 @@ const deserializeAws_json1_1AttachedManagedPolicyList = ( } return deserializeAws_json1_1AttachedManagedPolicy(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttachManagedPolicyToPermissionSetResponse = ( @@ -3272,7 +3278,7 @@ const deserializeAws_json1_1InstanceAccessControlAttributeConfiguration = ( }; const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext): InstanceMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3280,6 +3286,7 @@ const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext } return deserializeAws_json1_1InstanceMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1InstanceMetadata = (output: any, context: __SerdeContext): InstanceMetadata => { @@ -3440,7 +3447,7 @@ const deserializeAws_json1_1PermissionSet = (output: any, context: __SerdeContex }; const deserializeAws_json1_1PermissionSetList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3448,6 +3455,7 @@ const deserializeAws_json1_1PermissionSetList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PermissionSetProvisioningStatus = ( @@ -3471,7 +3479,7 @@ const deserializeAws_json1_1PermissionSetProvisioningStatusList = ( output: any, context: __SerdeContext ): PermissionSetProvisioningStatusMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3479,6 +3487,7 @@ const deserializeAws_json1_1PermissionSetProvisioningStatusList = ( } return deserializeAws_json1_1PermissionSetProvisioningStatusMetadata(entry, context); }); + return retVal; }; const deserializeAws_json1_1PermissionSetProvisioningStatusMetadata = ( @@ -3540,7 +3549,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3548,6 +3557,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-sso/src/protocols/Aws_restJson1.ts b/clients/client-sso/src/protocols/Aws_restJson1.ts index 10ec82ad876a..a367830be033 100644 --- a/clients/client-sso/src/protocols/Aws_restJson1.ts +++ b/clients/client-sso/src/protocols/Aws_restJson1.ts @@ -415,7 +415,7 @@ const deserializeAws_restJson1AccountInfo = (output: any, context: __SerdeContex }; const deserializeAws_restJson1AccountListType = (output: any, context: __SerdeContext): AccountInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -423,6 +423,7 @@ const deserializeAws_restJson1AccountListType = (output: any, context: __SerdeCo } return deserializeAws_restJson1AccountInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1RoleCredentials = (output: any, context: __SerdeContext): RoleCredentials => { @@ -442,7 +443,7 @@ const deserializeAws_restJson1RoleInfo = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1RoleListType = (output: any, context: __SerdeContext): RoleInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -450,6 +451,7 @@ const deserializeAws_restJson1RoleListType = (output: any, context: __SerdeConte } return deserializeAws_restJson1RoleInfo(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-storage-gateway/src/protocols/Aws_json1_1.ts b/clients/client-storage-gateway/src/protocols/Aws_json1_1.ts index 5553b552dff9..e3344b1b0405 100644 --- a/clients/client-storage-gateway/src/protocols/Aws_json1_1.ts +++ b/clients/client-storage-gateway/src/protocols/Aws_json1_1.ts @@ -7245,7 +7245,7 @@ const deserializeAws_json1_1AutomaticTapeCreationPolicyInfos = ( output: any, context: __SerdeContext ): AutomaticTapeCreationPolicyInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7253,6 +7253,7 @@ const deserializeAws_json1_1AutomaticTapeCreationPolicyInfos = ( } return deserializeAws_json1_1AutomaticTapeCreationPolicyInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1AutomaticTapeCreationRule = ( @@ -7272,7 +7273,7 @@ const deserializeAws_json1_1AutomaticTapeCreationRules = ( output: any, context: __SerdeContext ): AutomaticTapeCreationRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7280,6 +7281,7 @@ const deserializeAws_json1_1AutomaticTapeCreationRules = ( } return deserializeAws_json1_1AutomaticTapeCreationRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1BandwidthRateLimitInterval = ( @@ -7304,7 +7306,7 @@ const deserializeAws_json1_1BandwidthRateLimitIntervals = ( output: any, context: __SerdeContext ): BandwidthRateLimitInterval[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7312,6 +7314,7 @@ const deserializeAws_json1_1BandwidthRateLimitIntervals = ( } return deserializeAws_json1_1BandwidthRateLimitInterval(entry, context); }); + return retVal; }; const deserializeAws_json1_1CacheAttributes = (output: any, context: __SerdeContext): CacheAttributes => { @@ -7345,7 +7348,7 @@ const deserializeAws_json1_1CachediSCSIVolume = (output: any, context: __SerdeCo }; const deserializeAws_json1_1CachediSCSIVolumes = (output: any, context: __SerdeContext): CachediSCSIVolume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7353,6 +7356,7 @@ const deserializeAws_json1_1CachediSCSIVolumes = (output: any, context: __SerdeC } return deserializeAws_json1_1CachediSCSIVolume(entry, context); }); + return retVal; }; const deserializeAws_json1_1CancelArchivalOutput = (output: any, context: __SerdeContext): CancelArchivalOutput => { @@ -7368,7 +7372,7 @@ const deserializeAws_json1_1CancelRetrievalOutput = (output: any, context: __Ser }; const deserializeAws_json1_1ChapCredentials = (output: any, context: __SerdeContext): ChapInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7376,6 +7380,7 @@ const deserializeAws_json1_1ChapCredentials = (output: any, context: __SerdeCont } return deserializeAws_json1_1ChapInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1ChapInfo = (output: any, context: __SerdeContext): ChapInfo => { @@ -7469,7 +7474,7 @@ const deserializeAws_json1_1CreateTapeWithBarcodeOutput = ( }; const deserializeAws_json1_1DaysOfWeek = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7477,6 +7482,7 @@ const deserializeAws_json1_1DaysOfWeek = (output: any, context: __SerdeContext): } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeleteAutomaticTapeCreationPolicyOutput = ( @@ -7891,7 +7897,7 @@ const deserializeAws_json1_1Disk = (output: any, context: __SerdeContext): Disk }; const deserializeAws_json1_1DiskAttributeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7899,10 +7905,11 @@ const deserializeAws_json1_1DiskAttributeList = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DiskIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7910,10 +7917,11 @@ const deserializeAws_json1_1DiskIds = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Disks = (output: any, context: __SerdeContext): Disk[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7921,6 +7929,7 @@ const deserializeAws_json1_1Disks = (output: any, context: __SerdeContext): Disk } return deserializeAws_json1_1Disk(entry, context); }); + return retVal; }; const deserializeAws_json1_1EndpointNetworkConfiguration = ( @@ -7948,7 +7957,7 @@ const deserializeAws_json1_1errorDetails = (output: any, context: __SerdeContext }; const deserializeAws_json1_1FileShareClientList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7956,6 +7965,7 @@ const deserializeAws_json1_1FileShareClientList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FileShareInfo = (output: any, context: __SerdeContext): FileShareInfo => { @@ -7969,7 +7979,7 @@ const deserializeAws_json1_1FileShareInfo = (output: any, context: __SerdeContex }; const deserializeAws_json1_1FileShareInfoList = (output: any, context: __SerdeContext): FileShareInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7977,6 +7987,7 @@ const deserializeAws_json1_1FileShareInfoList = (output: any, context: __SerdeCo } return deserializeAws_json1_1FileShareInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1FileSystemAssociationInfo = ( @@ -8010,7 +8021,7 @@ const deserializeAws_json1_1FileSystemAssociationInfoList = ( output: any, context: __SerdeContext ): FileSystemAssociationInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8018,6 +8029,7 @@ const deserializeAws_json1_1FileSystemAssociationInfoList = ( } return deserializeAws_json1_1FileSystemAssociationInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1FileSystemAssociationStatusDetail = ( @@ -8033,7 +8045,7 @@ const deserializeAws_json1_1FileSystemAssociationStatusDetails = ( output: any, context: __SerdeContext ): FileSystemAssociationStatusDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8041,6 +8053,7 @@ const deserializeAws_json1_1FileSystemAssociationStatusDetails = ( } return deserializeAws_json1_1FileSystemAssociationStatusDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1FileSystemAssociationSummary = ( @@ -8059,7 +8072,7 @@ const deserializeAws_json1_1FileSystemAssociationSummaryList = ( output: any, context: __SerdeContext ): FileSystemAssociationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8067,6 +8080,7 @@ const deserializeAws_json1_1FileSystemAssociationSummaryList = ( } return deserializeAws_json1_1FileSystemAssociationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1GatewayInfo = (output: any, context: __SerdeContext): GatewayInfo => { @@ -8084,7 +8098,7 @@ const deserializeAws_json1_1GatewayInfo = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1GatewayNetworkInterfaces = (output: any, context: __SerdeContext): NetworkInterface[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8092,10 +8106,11 @@ const deserializeAws_json1_1GatewayNetworkInterfaces = (output: any, context: __ } return deserializeAws_json1_1NetworkInterface(entry, context); }); + return retVal; }; const deserializeAws_json1_1Gateways = (output: any, context: __SerdeContext): GatewayInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8103,10 +8118,11 @@ const deserializeAws_json1_1Gateways = (output: any, context: __SerdeContext): G } return deserializeAws_json1_1GatewayInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1Initiators = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8114,6 +8130,7 @@ const deserializeAws_json1_1Initiators = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InternalServerError = (output: any, context: __SerdeContext): InternalServerError => { @@ -8140,7 +8157,7 @@ const deserializeAws_json1_1InvalidGatewayRequestException = ( }; const deserializeAws_json1_1IpAddressList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8148,6 +8165,7 @@ const deserializeAws_json1_1IpAddressList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1JoinDomainOutput = (output: any, context: __SerdeContext): JoinDomainOutput => { @@ -8339,7 +8357,7 @@ const deserializeAws_json1_1NFSFileShareInfo = (output: any, context: __SerdeCon }; const deserializeAws_json1_1NFSFileShareInfoList = (output: any, context: __SerdeContext): NFSFileShareInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8347,6 +8365,7 @@ const deserializeAws_json1_1NFSFileShareInfoList = (output: any, context: __Serd } return deserializeAws_json1_1NFSFileShareInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1NotifyWhenUploadedOutput = ( @@ -8371,7 +8390,7 @@ const deserializeAws_json1_1PoolInfo = (output: any, context: __SerdeContext): P }; const deserializeAws_json1_1PoolInfos = (output: any, context: __SerdeContext): PoolInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8379,6 +8398,7 @@ const deserializeAws_json1_1PoolInfos = (output: any, context: __SerdeContext): } return deserializeAws_json1_1PoolInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1RefreshCacheOutput = (output: any, context: __SerdeContext): RefreshCacheOutput => { @@ -8506,7 +8526,7 @@ const deserializeAws_json1_1SMBFileShareInfo = (output: any, context: __SerdeCon }; const deserializeAws_json1_1SMBFileShareInfoList = (output: any, context: __SerdeContext): SMBFileShareInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8514,6 +8534,7 @@ const deserializeAws_json1_1SMBFileShareInfoList = (output: any, context: __Serd } return deserializeAws_json1_1SMBFileShareInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1SMBLocalGroups = (output: any, context: __SerdeContext): SMBLocalGroups => { @@ -8577,7 +8598,7 @@ const deserializeAws_json1_1StorediSCSIVolume = (output: any, context: __SerdeCo }; const deserializeAws_json1_1StorediSCSIVolumes = (output: any, context: __SerdeContext): StorediSCSIVolume[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8585,13 +8606,14 @@ const deserializeAws_json1_1StorediSCSIVolumes = (output: any, context: __SerdeC } return deserializeAws_json1_1StorediSCSIVolume(entry, context); }); + return retVal; }; const deserializeAws_json1_1SupportedGatewayCapacities = ( output: any, context: __SerdeContext ): (GatewayCapacity | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8599,6 +8621,7 @@ const deserializeAws_json1_1SupportedGatewayCapacities = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -8609,7 +8632,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8617,6 +8640,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tape = (output: any, context: __SerdeContext): Tape => { @@ -8677,7 +8701,7 @@ const deserializeAws_json1_1TapeArchive = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1TapeArchives = (output: any, context: __SerdeContext): TapeArchive[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8685,10 +8709,11 @@ const deserializeAws_json1_1TapeArchives = (output: any, context: __SerdeContext } return deserializeAws_json1_1TapeArchive(entry, context); }); + return retVal; }; const deserializeAws_json1_1TapeARNs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8696,6 +8721,7 @@ const deserializeAws_json1_1TapeARNs = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TapeInfo = (output: any, context: __SerdeContext): TapeInfo => { @@ -8718,7 +8744,7 @@ const deserializeAws_json1_1TapeInfo = (output: any, context: __SerdeContext): T }; const deserializeAws_json1_1TapeInfos = (output: any, context: __SerdeContext): TapeInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8726,6 +8752,7 @@ const deserializeAws_json1_1TapeInfos = (output: any, context: __SerdeContext): } return deserializeAws_json1_1TapeInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1TapeRecoveryPointInfo = (output: any, context: __SerdeContext): TapeRecoveryPointInfo => { @@ -8744,7 +8771,7 @@ const deserializeAws_json1_1TapeRecoveryPointInfos = ( output: any, context: __SerdeContext ): TapeRecoveryPointInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8752,10 +8779,11 @@ const deserializeAws_json1_1TapeRecoveryPointInfos = ( } return deserializeAws_json1_1TapeRecoveryPointInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tapes = (output: any, context: __SerdeContext): Tape[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8763,6 +8791,7 @@ const deserializeAws_json1_1Tapes = (output: any, context: __SerdeContext): Tape } return deserializeAws_json1_1Tape(entry, context); }); + return retVal; }; const deserializeAws_json1_1UpdateAutomaticTapeCreationPolicyOutput = ( @@ -8903,7 +8932,7 @@ const deserializeAws_json1_1UpdateVTLDeviceTypeOutput = ( }; const deserializeAws_json1_1UserList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8911,6 +8940,7 @@ const deserializeAws_json1_1UserList = (output: any, context: __SerdeContext): s } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1VolumeInfo = (output: any, context: __SerdeContext): VolumeInfo => { @@ -8926,7 +8956,7 @@ const deserializeAws_json1_1VolumeInfo = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1VolumeInfos = (output: any, context: __SerdeContext): VolumeInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8934,6 +8964,7 @@ const deserializeAws_json1_1VolumeInfos = (output: any, context: __SerdeContext) } return deserializeAws_json1_1VolumeInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1VolumeiSCSIAttributes = (output: any, context: __SerdeContext): VolumeiSCSIAttributes => { @@ -8962,7 +8993,7 @@ const deserializeAws_json1_1VolumeRecoveryPointInfos = ( output: any, context: __SerdeContext ): VolumeRecoveryPointInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8970,6 +9001,7 @@ const deserializeAws_json1_1VolumeRecoveryPointInfos = ( } return deserializeAws_json1_1VolumeRecoveryPointInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1VTLDevice = (output: any, context: __SerdeContext): VTLDevice => { @@ -8986,7 +9018,7 @@ const deserializeAws_json1_1VTLDevice = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1VTLDevices = (output: any, context: __SerdeContext): VTLDevice[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8994,6 +9026,7 @@ const deserializeAws_json1_1VTLDevices = (output: any, context: __SerdeContext): } return deserializeAws_json1_1VTLDevice(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-support/src/protocols/Aws_json1_1.ts b/clients/client-support/src/protocols/Aws_json1_1.ts index 7c30b2f2ecc4..c5350b5b67ec 100644 --- a/clients/client-support/src/protocols/Aws_json1_1.ts +++ b/clients/client-support/src/protocols/Aws_json1_1.ts @@ -1328,7 +1328,7 @@ const deserializeAws_json1_1AttachmentLimitExceeded = ( }; const deserializeAws_json1_1AttachmentSet = (output: any, context: __SerdeContext): AttachmentDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1336,6 +1336,7 @@ const deserializeAws_json1_1AttachmentSet = (output: any, context: __SerdeContex } return deserializeAws_json1_1AttachmentDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1AttachmentSetExpired = (output: any, context: __SerdeContext): AttachmentSetExpired => { @@ -1401,7 +1402,7 @@ const deserializeAws_json1_1CaseIdNotFound = (output: any, context: __SerdeConte }; const deserializeAws_json1_1CaseList = (output: any, context: __SerdeContext): CaseDetails[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1409,6 +1410,7 @@ const deserializeAws_json1_1CaseList = (output: any, context: __SerdeContext): C } return deserializeAws_json1_1CaseDetails(entry, context); }); + return retVal; }; const deserializeAws_json1_1Category = (output: any, context: __SerdeContext): Category => { @@ -1419,7 +1421,7 @@ const deserializeAws_json1_1Category = (output: any, context: __SerdeContext): C }; const deserializeAws_json1_1CategoryList = (output: any, context: __SerdeContext): Category[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1427,10 +1429,11 @@ const deserializeAws_json1_1CategoryList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Category(entry, context); }); + return retVal; }; const deserializeAws_json1_1CcEmailAddressList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1438,6 +1441,7 @@ const deserializeAws_json1_1CcEmailAddressList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Communication = (output: any, context: __SerdeContext): Communication => { @@ -1454,7 +1458,7 @@ const deserializeAws_json1_1Communication = (output: any, context: __SerdeContex }; const deserializeAws_json1_1CommunicationList = (output: any, context: __SerdeContext): Communication[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1462,6 +1466,7 @@ const deserializeAws_json1_1CommunicationList = (output: any, context: __SerdeCo } return deserializeAws_json1_1Communication(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateCaseResponse = (output: any, context: __SerdeContext): CreateCaseResponse => { @@ -1636,7 +1641,7 @@ const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Se }; const deserializeAws_json1_1ServiceList = (output: any, context: __SerdeContext): Service[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1644,6 +1649,7 @@ const deserializeAws_json1_1ServiceList = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Service(entry, context); }); + return retVal; }; const deserializeAws_json1_1SeverityLevel = (output: any, context: __SerdeContext): SeverityLevel => { @@ -1654,7 +1660,7 @@ const deserializeAws_json1_1SeverityLevel = (output: any, context: __SerdeContex }; const deserializeAws_json1_1SeverityLevelsList = (output: any, context: __SerdeContext): SeverityLevel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1662,10 +1668,11 @@ const deserializeAws_json1_1SeverityLevelsList = (output: any, context: __SerdeC } return deserializeAws_json1_1SeverityLevel(entry, context); }); + return retVal; }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1673,6 +1680,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary = ( @@ -1707,7 +1715,7 @@ const deserializeAws_json1_1TrustedAdvisorCheckList = ( output: any, context: __SerdeContext ): TrustedAdvisorCheckDescription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1715,6 +1723,7 @@ const deserializeAws_json1_1TrustedAdvisorCheckList = ( } return deserializeAws_json1_1TrustedAdvisorCheckDescription(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus = ( @@ -1732,7 +1741,7 @@ const deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList = ( output: any, context: __SerdeContext ): TrustedAdvisorCheckRefreshStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1740,6 +1749,7 @@ const deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList = ( } return deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrustedAdvisorCheckResult = ( @@ -1789,7 +1799,7 @@ const deserializeAws_json1_1TrustedAdvisorCheckSummaryList = ( output: any, context: __SerdeContext ): TrustedAdvisorCheckSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1797,6 +1807,7 @@ const deserializeAws_json1_1TrustedAdvisorCheckSummaryList = ( } return deserializeAws_json1_1TrustedAdvisorCheckSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary = ( @@ -1829,7 +1840,7 @@ const deserializeAws_json1_1TrustedAdvisorResourceDetailList = ( output: any, context: __SerdeContext ): TrustedAdvisorResourceDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1837,6 +1848,7 @@ const deserializeAws_json1_1TrustedAdvisorResourceDetailList = ( } return deserializeAws_json1_1TrustedAdvisorResourceDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1TrustedAdvisorResourcesSummary = ( diff --git a/clients/client-swf/src/protocols/Aws_json1_0.ts b/clients/client-swf/src/protocols/Aws_json1_0.ts index 4047c539d1cf..d144d97fa288 100644 --- a/clients/client-swf/src/protocols/Aws_json1_0.ts +++ b/clients/client-swf/src/protocols/Aws_json1_0.ts @@ -3702,7 +3702,7 @@ const deserializeAws_json1_0ActivityTypeInfo = (output: any, context: __SerdeCon }; const deserializeAws_json1_0ActivityTypeInfoList = (output: any, context: __SerdeContext): ActivityTypeInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3710,6 +3710,7 @@ const deserializeAws_json1_0ActivityTypeInfoList = (output: any, context: __Serd } return deserializeAws_json1_0ActivityTypeInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_0ActivityTypeInfos = (output: any, context: __SerdeContext): ActivityTypeInfos => { @@ -3992,7 +3993,7 @@ const deserializeAws_json1_0DomainInfo = (output: any, context: __SerdeContext): }; const deserializeAws_json1_0DomainInfoList = (output: any, context: __SerdeContext): DomainInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4000,6 +4001,7 @@ const deserializeAws_json1_0DomainInfoList = (output: any, context: __SerdeConte } return deserializeAws_json1_0DomainInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_0DomainInfos = (output: any, context: __SerdeContext): DomainInfos => { @@ -4441,7 +4443,7 @@ const deserializeAws_json1_0HistoryEvent = (output: any, context: __SerdeContext }; const deserializeAws_json1_0HistoryEventList = (output: any, context: __SerdeContext): HistoryEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4449,6 +4451,7 @@ const deserializeAws_json1_0HistoryEventList = (output: any, context: __SerdeCon } return deserializeAws_json1_0HistoryEvent(entry, context); }); + return retVal; }; const deserializeAws_json1_0LambdaFunctionCompletedEventAttributes = ( @@ -4609,7 +4612,7 @@ const deserializeAws_json1_0ResourceTag = (output: any, context: __SerdeContext) }; const deserializeAws_json1_0ResourceTagList = (output: any, context: __SerdeContext): ResourceTag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4617,6 +4620,7 @@ const deserializeAws_json1_0ResourceTagList = (output: any, context: __SerdeCont } return deserializeAws_json1_0ResourceTag(entry, context); }); + return retVal; }; const deserializeAws_json1_0Run = (output: any, context: __SerdeContext): Run => { @@ -4749,7 +4753,7 @@ const deserializeAws_json1_0StartTimerFailedEventAttributes = ( }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4757,6 +4761,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0TaskList = (output: any, context: __SerdeContext): TaskList => { @@ -4996,7 +5001,7 @@ const deserializeAws_json1_0WorkflowExecutionInfoList = ( output: any, context: __SerdeContext ): WorkflowExecutionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5004,6 +5009,7 @@ const deserializeAws_json1_0WorkflowExecutionInfoList = ( } return deserializeAws_json1_0WorkflowExecutionInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_0WorkflowExecutionInfos = (output: any, context: __SerdeContext): WorkflowExecutionInfos => { @@ -5155,7 +5161,7 @@ const deserializeAws_json1_0WorkflowTypeInfo = (output: any, context: __SerdeCon }; const deserializeAws_json1_0WorkflowTypeInfoList = (output: any, context: __SerdeContext): WorkflowTypeInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5163,6 +5169,7 @@ const deserializeAws_json1_0WorkflowTypeInfoList = (output: any, context: __Serd } return deserializeAws_json1_0WorkflowTypeInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_0WorkflowTypeInfos = (output: any, context: __SerdeContext): WorkflowTypeInfos => { diff --git a/clients/client-synthetics/src/protocols/Aws_restJson1.ts b/clients/client-synthetics/src/protocols/Aws_restJson1.ts index 0e08dede1f47..8e9bde00a9f2 100644 --- a/clients/client-synthetics/src/protocols/Aws_restJson1.ts +++ b/clients/client-synthetics/src/protocols/Aws_restJson1.ts @@ -1420,7 +1420,7 @@ const deserializeAws_restJson1BaseScreenshot = (output: any, context: __SerdeCon }; const deserializeAws_restJson1BaseScreenshotIgnoreCoordinates = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1428,10 +1428,11 @@ const deserializeAws_restJson1BaseScreenshotIgnoreCoordinates = (output: any, co } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BaseScreenshots = (output: any, context: __SerdeContext): BaseScreenshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1439,10 +1440,11 @@ const deserializeAws_restJson1BaseScreenshots = (output: any, context: __SerdeCo } return deserializeAws_restJson1BaseScreenshot(entry, context); }); + return retVal; }; const deserializeAws_restJson1Canaries = (output: any, context: __SerdeContext): Canary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1450,10 +1452,11 @@ const deserializeAws_restJson1Canaries = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Canary(entry, context); }); + return retVal; }; const deserializeAws_restJson1CanariesLastRun = (output: any, context: __SerdeContext): CanaryLastRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1461,6 +1464,7 @@ const deserializeAws_restJson1CanariesLastRun = (output: any, context: __SerdeCo } return deserializeAws_restJson1CanaryLastRun(entry, context); }); + return retVal; }; const deserializeAws_restJson1Canary = (output: any, context: __SerdeContext): Canary => { @@ -1554,7 +1558,7 @@ const deserializeAws_restJson1CanaryRunConfigOutput = (output: any, context: __S }; const deserializeAws_restJson1CanaryRuns = (output: any, context: __SerdeContext): CanaryRun[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1562,6 +1566,7 @@ const deserializeAws_restJson1CanaryRuns = (output: any, context: __SerdeContext } return deserializeAws_restJson1CanaryRun(entry, context); }); + return retVal; }; const deserializeAws_restJson1CanaryRunStatus = (output: any, context: __SerdeContext): CanaryRunStatus => { @@ -1637,7 +1642,7 @@ const deserializeAws_restJson1RuntimeVersion = (output: any, context: __SerdeCon }; const deserializeAws_restJson1RuntimeVersionList = (output: any, context: __SerdeContext): RuntimeVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1645,6 +1650,7 @@ const deserializeAws_restJson1RuntimeVersionList = (output: any, context: __Serd } return deserializeAws_restJson1RuntimeVersion(entry, context); }); + return retVal; }; const deserializeAws_restJson1S3EncryptionConfig = (output: any, context: __SerdeContext): S3EncryptionConfig => { @@ -1655,7 +1661,7 @@ const deserializeAws_restJson1S3EncryptionConfig = (output: any, context: __Serd }; const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1663,10 +1669,11 @@ const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1674,6 +1681,7 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/clients/client-textract/src/protocols/Aws_json1_1.ts b/clients/client-textract/src/protocols/Aws_json1_1.ts index 9b705ee2cabf..e467f2267ad6 100644 --- a/clients/client-textract/src/protocols/Aws_json1_1.ts +++ b/clients/client-textract/src/protocols/Aws_json1_1.ts @@ -1443,7 +1443,7 @@ const deserializeAws_json1_1Block = (output: any, context: __SerdeContext): Bloc }; const deserializeAws_json1_1BlockList = (output: any, context: __SerdeContext): Block[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1451,6 +1451,7 @@ const deserializeAws_json1_1BlockList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Block(entry, context); }); + return retVal; }; const deserializeAws_json1_1BoundingBox = (output: any, context: __SerdeContext): BoundingBox => { @@ -1496,7 +1497,7 @@ const deserializeAws_json1_1DocumentTooLargeException = ( }; const deserializeAws_json1_1EntityTypes = (output: any, context: __SerdeContext): (EntityType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1504,6 +1505,7 @@ const deserializeAws_json1_1EntityTypes = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ExpenseDetection = (output: any, context: __SerdeContext): ExpenseDetection => { @@ -1532,7 +1534,7 @@ const deserializeAws_json1_1ExpenseDocument = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ExpenseDocumentList = (output: any, context: __SerdeContext): ExpenseDocument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1540,6 +1542,7 @@ const deserializeAws_json1_1ExpenseDocumentList = (output: any, context: __Serde } return deserializeAws_json1_1ExpenseDocument(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExpenseField = (output: any, context: __SerdeContext): ExpenseField => { @@ -1561,7 +1564,7 @@ const deserializeAws_json1_1ExpenseField = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ExpenseFieldList = (output: any, context: __SerdeContext): ExpenseField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1569,6 +1572,7 @@ const deserializeAws_json1_1ExpenseFieldList = (output: any, context: __SerdeCon } return deserializeAws_json1_1ExpenseField(entry, context); }); + return retVal; }; const deserializeAws_json1_1ExpenseType = (output: any, context: __SerdeContext): ExpenseType => { @@ -1682,7 +1686,7 @@ const deserializeAws_json1_1HumanLoopActivationOutput = ( }; const deserializeAws_json1_1HumanLoopActivationReasons = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1690,6 +1694,7 @@ const deserializeAws_json1_1HumanLoopActivationReasons = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1HumanLoopQuotaExceededException = ( @@ -1742,7 +1747,7 @@ const deserializeAws_json1_1IdentityDocumentFieldList = ( output: any, context: __SerdeContext ): IdentityDocumentField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1750,10 +1755,11 @@ const deserializeAws_json1_1IdentityDocumentFieldList = ( } return deserializeAws_json1_1IdentityDocumentField(entry, context); }); + return retVal; }; const deserializeAws_json1_1IdentityDocumentList = (output: any, context: __SerdeContext): IdentityDocument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1761,10 +1767,11 @@ const deserializeAws_json1_1IdentityDocumentList = (output: any, context: __Serd } return deserializeAws_json1_1IdentityDocument(entry, context); }); + return retVal; }; const deserializeAws_json1_1IdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1772,6 +1779,7 @@ const deserializeAws_json1_1IdList = (output: any, context: __SerdeContext): str } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1InternalServerError = (output: any, context: __SerdeContext): InternalServerError => { @@ -1842,7 +1850,7 @@ const deserializeAws_json1_1LineItemGroup = (output: any, context: __SerdeContex }; const deserializeAws_json1_1LineItemGroupList = (output: any, context: __SerdeContext): LineItemGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1850,10 +1858,11 @@ const deserializeAws_json1_1LineItemGroupList = (output: any, context: __SerdeCo } return deserializeAws_json1_1LineItemGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1LineItemList = (output: any, context: __SerdeContext): LineItemFields[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1861,6 +1870,7 @@ const deserializeAws_json1_1LineItemList = (output: any, context: __SerdeContext } return deserializeAws_json1_1LineItemFields(entry, context); }); + return retVal; }; const deserializeAws_json1_1NormalizedValue = (output: any, context: __SerdeContext): NormalizedValue => { @@ -1871,7 +1881,7 @@ const deserializeAws_json1_1NormalizedValue = (output: any, context: __SerdeCont }; const deserializeAws_json1_1Pages = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1879,6 +1889,7 @@ const deserializeAws_json1_1Pages = (output: any, context: __SerdeContext): numb } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Point = (output: any, context: __SerdeContext): Point => { @@ -1889,7 +1900,7 @@ const deserializeAws_json1_1Point = (output: any, context: __SerdeContext): Poin }; const deserializeAws_json1_1Polygon = (output: any, context: __SerdeContext): Point[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1897,6 +1908,7 @@ const deserializeAws_json1_1Polygon = (output: any, context: __SerdeContext): Po } return deserializeAws_json1_1Point(entry, context); }); + return retVal; }; const deserializeAws_json1_1ProvisionedThroughputExceededException = ( @@ -1918,7 +1930,7 @@ const deserializeAws_json1_1Relationship = (output: any, context: __SerdeContext }; const deserializeAws_json1_1RelationshipList = (output: any, context: __SerdeContext): Relationship[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1926,6 +1938,7 @@ const deserializeAws_json1_1RelationshipList = (output: any, context: __SerdeCon } return deserializeAws_json1_1Relationship(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartDocumentAnalysisResponse = ( @@ -1983,7 +1996,7 @@ const deserializeAws_json1_1Warning = (output: any, context: __SerdeContext): Wa }; const deserializeAws_json1_1Warnings = (output: any, context: __SerdeContext): Warning[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1991,6 +2004,7 @@ const deserializeAws_json1_1Warnings = (output: any, context: __SerdeContext): W } return deserializeAws_json1_1Warning(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-timestream-query/src/protocols/Aws_json1_0.ts b/clients/client-timestream-query/src/protocols/Aws_json1_0.ts index a85118ce10d1..29313a386aef 100644 --- a/clients/client-timestream-query/src/protocols/Aws_json1_0.ts +++ b/clients/client-timestream-query/src/protocols/Aws_json1_0.ts @@ -1484,7 +1484,7 @@ const deserializeAws_json1_0ColumnInfo = (output: any, context: __SerdeContext): }; const deserializeAws_json1_0ColumnInfoList = (output: any, context: __SerdeContext): ColumnInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1492,6 +1492,7 @@ const deserializeAws_json1_0ColumnInfoList = (output: any, context: __SerdeConte } return deserializeAws_json1_0ColumnInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_0ConflictException = (output: any, context: __SerdeContext): ConflictException => { @@ -1529,7 +1530,7 @@ const deserializeAws_json1_0Datum = (output: any, context: __SerdeContext): Datu }; const deserializeAws_json1_0DatumList = (output: any, context: __SerdeContext): Datum[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1537,6 +1538,7 @@ const deserializeAws_json1_0DatumList = (output: any, context: __SerdeContext): } return deserializeAws_json1_0Datum(entry, context); }); + return retVal; }; const deserializeAws_json1_0DescribeEndpointsResponse = ( @@ -1571,7 +1573,7 @@ const deserializeAws_json1_0DimensionMapping = (output: any, context: __SerdeCon }; const deserializeAws_json1_0DimensionMappingList = (output: any, context: __SerdeContext): DimensionMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1579,6 +1581,7 @@ const deserializeAws_json1_0DimensionMappingList = (output: any, context: __Serd } return deserializeAws_json1_0DimensionMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_0Endpoint = (output: any, context: __SerdeContext): Endpoint => { @@ -1589,7 +1592,7 @@ const deserializeAws_json1_0Endpoint = (output: any, context: __SerdeContext): E }; const deserializeAws_json1_0Endpoints = (output: any, context: __SerdeContext): Endpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1597,6 +1600,7 @@ const deserializeAws_json1_0Endpoints = (output: any, context: __SerdeContext): } return deserializeAws_json1_0Endpoint(entry, context); }); + return retVal; }; const deserializeAws_json1_0ErrorReportConfiguration = ( @@ -1688,7 +1692,7 @@ const deserializeAws_json1_0MixedMeasureMapping = (output: any, context: __Serde }; const deserializeAws_json1_0MixedMeasureMappingList = (output: any, context: __SerdeContext): MixedMeasureMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1696,6 +1700,7 @@ const deserializeAws_json1_0MixedMeasureMappingList = (output: any, context: __S } return deserializeAws_json1_0MixedMeasureMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_0MultiMeasureAttributeMapping = ( @@ -1713,7 +1718,7 @@ const deserializeAws_json1_0MultiMeasureAttributeMappingList = ( output: any, context: __SerdeContext ): MultiMeasureAttributeMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1721,6 +1726,7 @@ const deserializeAws_json1_0MultiMeasureAttributeMappingList = ( } return deserializeAws_json1_0MultiMeasureAttributeMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_0MultiMeasureMappings = (output: any, context: __SerdeContext): MultiMeasureMappings => { @@ -1754,7 +1760,7 @@ const deserializeAws_json1_0ParameterMapping = (output: any, context: __SerdeCon }; const deserializeAws_json1_0ParameterMappingList = (output: any, context: __SerdeContext): ParameterMapping[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1762,6 +1768,7 @@ const deserializeAws_json1_0ParameterMappingList = (output: any, context: __Serd } return deserializeAws_json1_0ParameterMapping(entry, context); }); + return retVal; }; const deserializeAws_json1_0PrepareQueryResponse = (output: any, context: __SerdeContext): PrepareQueryResponse => { @@ -1834,7 +1841,7 @@ const deserializeAws_json1_0Row = (output: any, context: __SerdeContext): Row => }; const deserializeAws_json1_0RowList = (output: any, context: __SerdeContext): Row[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1842,6 +1849,7 @@ const deserializeAws_json1_0RowList = (output: any, context: __SerdeContext): Ro } return deserializeAws_json1_0Row(entry, context); }); + return retVal; }; const deserializeAws_json1_0S3Configuration = (output: any, context: __SerdeContext): S3Configuration => { @@ -1945,7 +1953,7 @@ const deserializeAws_json1_0ScheduledQueryDescription = ( }; const deserializeAws_json1_0ScheduledQueryList = (output: any, context: __SerdeContext): ScheduledQuery[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1953,6 +1961,7 @@ const deserializeAws_json1_0ScheduledQueryList = (output: any, context: __SerdeC } return deserializeAws_json1_0ScheduledQuery(entry, context); }); + return retVal; }; const deserializeAws_json1_0ScheduledQueryRunSummary = ( @@ -1985,7 +1994,7 @@ const deserializeAws_json1_0ScheduledQueryRunSummaryList = ( output: any, context: __SerdeContext ): ScheduledQueryRunSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1993,6 +2002,7 @@ const deserializeAws_json1_0ScheduledQueryRunSummaryList = ( } return deserializeAws_json1_0ScheduledQueryRunSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0SelectColumn = (output: any, context: __SerdeContext): SelectColumn => { @@ -2007,7 +2017,7 @@ const deserializeAws_json1_0SelectColumn = (output: any, context: __SerdeContext }; const deserializeAws_json1_0SelectColumnList = (output: any, context: __SerdeContext): SelectColumn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2015,6 +2025,7 @@ const deserializeAws_json1_0SelectColumnList = (output: any, context: __SerdeCon } return deserializeAws_json1_0SelectColumn(entry, context); }); + return retVal; }; const deserializeAws_json1_0ServiceQuotaExceededException = ( @@ -2040,7 +2051,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2048,6 +2059,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -2089,7 +2101,7 @@ const deserializeAws_json1_0TimeSeriesDataPoint = (output: any, context: __Serde }; const deserializeAws_json1_0TimeSeriesDataPointList = (output: any, context: __SerdeContext): TimeSeriesDataPoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2097,6 +2109,7 @@ const deserializeAws_json1_0TimeSeriesDataPointList = (output: any, context: __S } return deserializeAws_json1_0TimeSeriesDataPoint(entry, context); }); + return retVal; }; const deserializeAws_json1_0TimestreamConfiguration = ( diff --git a/clients/client-timestream-write/src/protocols/Aws_json1_0.ts b/clients/client-timestream-write/src/protocols/Aws_json1_0.ts index 0291ef1a04a8..5e133d5331bd 100644 --- a/clients/client-timestream-write/src/protocols/Aws_json1_0.ts +++ b/clients/client-timestream-write/src/protocols/Aws_json1_0.ts @@ -1590,7 +1590,7 @@ const deserializeAws_json1_0Database = (output: any, context: __SerdeContext): D }; const deserializeAws_json1_0DatabaseList = (output: any, context: __SerdeContext): Database[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1598,6 +1598,7 @@ const deserializeAws_json1_0DatabaseList = (output: any, context: __SerdeContext } return deserializeAws_json1_0Database(entry, context); }); + return retVal; }; const deserializeAws_json1_0DescribeDatabaseResponse = ( @@ -1641,7 +1642,7 @@ const deserializeAws_json1_0Endpoint = (output: any, context: __SerdeContext): E }; const deserializeAws_json1_0Endpoints = (output: any, context: __SerdeContext): Endpoint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1649,6 +1650,7 @@ const deserializeAws_json1_0Endpoints = (output: any, context: __SerdeContext): } return deserializeAws_json1_0Endpoint(entry, context); }); + return retVal; }; const deserializeAws_json1_0InternalServerException = ( @@ -1743,7 +1745,7 @@ const deserializeAws_json1_0RejectedRecord = (output: any, context: __SerdeConte }; const deserializeAws_json1_0RejectedRecords = (output: any, context: __SerdeContext): RejectedRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1751,6 +1753,7 @@ const deserializeAws_json1_0RejectedRecords = (output: any, context: __SerdeCont } return deserializeAws_json1_0RejectedRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_0RejectedRecordsException = ( @@ -1826,7 +1829,7 @@ const deserializeAws_json1_0Table = (output: any, context: __SerdeContext): Tabl }; const deserializeAws_json1_0TableList = (output: any, context: __SerdeContext): Table[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1834,6 +1837,7 @@ const deserializeAws_json1_0TableList = (output: any, context: __SerdeContext): } return deserializeAws_json1_0Table(entry, context); }); + return retVal; }; const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => { @@ -1844,7 +1848,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1852,6 +1856,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts index 59f5da3e4f76..7c6c3b4be1b5 100644 --- a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts +++ b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts @@ -740,7 +740,7 @@ const deserializeAws_restJson1Alternative = (output: any, context: __SerdeContex }; const deserializeAws_restJson1AlternativeList = (output: any, context: __SerdeContext): Alternative[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -748,6 +748,7 @@ const deserializeAws_restJson1AlternativeList = (output: any, context: __SerdeCo } return deserializeAws_restJson1Alternative(entry, context); }); + return retVal; }; const deserializeAws_restJson1BadRequestException = (output: any, context: __SerdeContext): BadRequestException => { @@ -774,7 +775,7 @@ const deserializeAws_restJson1Entity = (output: any, context: __SerdeContext): E }; const deserializeAws_restJson1EntityList = (output: any, context: __SerdeContext): Entity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -782,6 +783,7 @@ const deserializeAws_restJson1EntityList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Entity(entry, context); }); + return retVal; }; const deserializeAws_restJson1InternalFailureException = ( @@ -807,7 +809,7 @@ const deserializeAws_restJson1Item = (output: any, context: __SerdeContext): Ite }; const deserializeAws_restJson1ItemList = (output: any, context: __SerdeContext): Item[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -815,10 +817,11 @@ const deserializeAws_restJson1ItemList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Item(entry, context); }); + return retVal; }; const deserializeAws_restJson1LanguageIdentification = (output: any, context: __SerdeContext): LanguageWithScore[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -826,6 +829,7 @@ const deserializeAws_restJson1LanguageIdentification = (output: any, context: __ } return deserializeAws_restJson1LanguageWithScore(entry, context); }); + return retVal; }; const deserializeAws_restJson1LanguageWithScore = (output: any, context: __SerdeContext): LanguageWithScore => { @@ -859,7 +863,7 @@ const deserializeAws_restJson1MedicalAlternative = (output: any, context: __Serd }; const deserializeAws_restJson1MedicalAlternativeList = (output: any, context: __SerdeContext): MedicalAlternative[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -867,6 +871,7 @@ const deserializeAws_restJson1MedicalAlternativeList = (output: any, context: __ } return deserializeAws_restJson1MedicalAlternative(entry, context); }); + return retVal; }; const deserializeAws_restJson1MedicalEntity = (output: any, context: __SerdeContext): MedicalEntity => { @@ -880,7 +885,7 @@ const deserializeAws_restJson1MedicalEntity = (output: any, context: __SerdeCont }; const deserializeAws_restJson1MedicalEntityList = (output: any, context: __SerdeContext): MedicalEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -888,6 +893,7 @@ const deserializeAws_restJson1MedicalEntityList = (output: any, context: __Serde } return deserializeAws_restJson1MedicalEntity(entry, context); }); + return retVal; }; const deserializeAws_restJson1MedicalItem = (output: any, context: __SerdeContext): MedicalItem => { @@ -902,7 +908,7 @@ const deserializeAws_restJson1MedicalItem = (output: any, context: __SerdeContex }; const deserializeAws_restJson1MedicalItemList = (output: any, context: __SerdeContext): MedicalItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -910,6 +916,7 @@ const deserializeAws_restJson1MedicalItemList = (output: any, context: __SerdeCo } return deserializeAws_restJson1MedicalItem(entry, context); }); + return retVal; }; const deserializeAws_restJson1MedicalResult = (output: any, context: __SerdeContext): MedicalResult => { @@ -927,7 +934,7 @@ const deserializeAws_restJson1MedicalResult = (output: any, context: __SerdeCont }; const deserializeAws_restJson1MedicalResultList = (output: any, context: __SerdeContext): MedicalResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -935,6 +942,7 @@ const deserializeAws_restJson1MedicalResultList = (output: any, context: __Serde } return deserializeAws_restJson1MedicalResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1MedicalTranscript = (output: any, context: __SerdeContext): MedicalTranscript => { @@ -1021,7 +1029,7 @@ const deserializeAws_restJson1Result = (output: any, context: __SerdeContext): R }; const deserializeAws_restJson1ResultList = (output: any, context: __SerdeContext): Result[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1029,6 +1037,7 @@ const deserializeAws_restJson1ResultList = (output: any, context: __SerdeContext } return deserializeAws_restJson1Result(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServiceUnavailableException = ( diff --git a/clients/client-transcribe/src/protocols/Aws_json1_1.ts b/clients/client-transcribe/src/protocols/Aws_json1_1.ts index 3349e1316ac6..8b6771a1441b 100644 --- a/clients/client-transcribe/src/protocols/Aws_json1_1.ts +++ b/clients/client-transcribe/src/protocols/Aws_json1_1.ts @@ -3807,7 +3807,7 @@ const deserializeAws_json1_1CallAnalyticsJobSummaries = ( output: any, context: __SerdeContext ): CallAnalyticsJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3815,6 +3815,7 @@ const deserializeAws_json1_1CallAnalyticsJobSummaries = ( } return deserializeAws_json1_1CallAnalyticsJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1CallAnalyticsJobSummary = ( @@ -3860,7 +3861,7 @@ const deserializeAws_json1_1CategoryProperties = (output: any, context: __SerdeC }; const deserializeAws_json1_1CategoryPropertiesList = (output: any, context: __SerdeContext): CategoryProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3868,6 +3869,7 @@ const deserializeAws_json1_1CategoryPropertiesList = (output: any, context: __Se } return deserializeAws_json1_1CategoryProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1ChannelDefinition = (output: any, context: __SerdeContext): ChannelDefinition => { @@ -3878,7 +3880,7 @@ const deserializeAws_json1_1ChannelDefinition = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ChannelDefinitions = (output: any, context: __SerdeContext): ChannelDefinition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3886,6 +3888,7 @@ const deserializeAws_json1_1ChannelDefinitions = (output: any, context: __SerdeC } return deserializeAws_json1_1ChannelDefinition(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => { @@ -4189,7 +4192,7 @@ const deserializeAws_json1_1LanguageModel = (output: any, context: __SerdeContex }; const deserializeAws_json1_1LanguageOptions = (output: any, context: __SerdeContext): (LanguageCode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4197,6 +4200,7 @@ const deserializeAws_json1_1LanguageOptions = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -4389,7 +4393,7 @@ const deserializeAws_json1_1MedicalTranscriptionJobSummaries = ( output: any, context: __SerdeContext ): MedicalTranscriptionJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4397,6 +4401,7 @@ const deserializeAws_json1_1MedicalTranscriptionJobSummaries = ( } return deserializeAws_json1_1MedicalTranscriptionJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1MedicalTranscriptionJobSummary = ( @@ -4442,7 +4447,7 @@ const deserializeAws_json1_1MedicalTranscriptionSetting = ( }; const deserializeAws_json1_1Models = (output: any, context: __SerdeContext): LanguageModel[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4450,6 +4455,7 @@ const deserializeAws_json1_1Models = (output: any, context: __SerdeContext): Lan } return deserializeAws_json1_1LanguageModel(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModelSettings = (output: any, context: __SerdeContext): ModelSettings => { @@ -4480,7 +4486,7 @@ const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeCo }; const deserializeAws_json1_1PiiEntityTypes = (output: any, context: __SerdeContext): (PiiEntityType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4488,6 +4494,7 @@ const deserializeAws_json1_1PiiEntityTypes = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1RelativeTimeRange = (output: any, context: __SerdeContext): RelativeTimeRange => { @@ -4524,7 +4531,7 @@ const deserializeAws_json1_1Rule = (output: any, context: __SerdeContext): Rule }; const deserializeAws_json1_1RuleList = (output: any, context: __SerdeContext): Rule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4532,6 +4539,7 @@ const deserializeAws_json1_1RuleList = (output: any, context: __SerdeContext): R } return deserializeAws_json1_1Rule(__expectUnion(entry), context); }); + return retVal; }; const deserializeAws_json1_1SentimentFilter = (output: any, context: __SerdeContext): SentimentFilter => { @@ -4557,7 +4565,7 @@ const deserializeAws_json1_1SentimentValueList = ( output: any, context: __SerdeContext ): (SentimentValue | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4565,6 +4573,7 @@ const deserializeAws_json1_1SentimentValueList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Settings = (output: any, context: __SerdeContext): Settings => { @@ -4617,7 +4626,7 @@ const deserializeAws_json1_1StartTranscriptionJobResponse = ( }; const deserializeAws_json1_1StringTargetList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4625,10 +4634,11 @@ const deserializeAws_json1_1StringTargetList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SubtitleFileUris = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4636,10 +4646,11 @@ const deserializeAws_json1_1SubtitleFileUris = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SubtitleFormats = (output: any, context: __SerdeContext): (SubtitleFormat | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4647,6 +4658,7 @@ const deserializeAws_json1_1SubtitleFormats = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SubtitlesOutput = (output: any, context: __SerdeContext): SubtitlesOutput => { @@ -4670,7 +4682,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4678,6 +4690,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -4780,7 +4793,7 @@ const deserializeAws_json1_1TranscriptionJobSummaries = ( output: any, context: __SerdeContext ): TranscriptionJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4788,6 +4801,7 @@ const deserializeAws_json1_1TranscriptionJobSummaries = ( } return deserializeAws_json1_1TranscriptionJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1TranscriptionJobSummary = ( @@ -4886,7 +4900,7 @@ const deserializeAws_json1_1UpdateVocabularyResponse = ( }; const deserializeAws_json1_1Vocabularies = (output: any, context: __SerdeContext): VocabularyInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4894,6 +4908,7 @@ const deserializeAws_json1_1Vocabularies = (output: any, context: __SerdeContext } return deserializeAws_json1_1VocabularyInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1VocabularyFilterInfo = (output: any, context: __SerdeContext): VocabularyFilterInfo => { @@ -4908,7 +4923,7 @@ const deserializeAws_json1_1VocabularyFilterInfo = (output: any, context: __Serd }; const deserializeAws_json1_1VocabularyFilters = (output: any, context: __SerdeContext): VocabularyFilterInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4916,6 +4931,7 @@ const deserializeAws_json1_1VocabularyFilters = (output: any, context: __SerdeCo } return deserializeAws_json1_1VocabularyFilterInfo(entry, context); }); + return retVal; }; const deserializeAws_json1_1VocabularyInfo = (output: any, context: __SerdeContext): VocabularyInfo => { diff --git a/clients/client-transfer/src/protocols/Aws_json1_1.ts b/clients/client-transfer/src/protocols/Aws_json1_1.ts index f5324d90eba9..324b0f9c860d 100644 --- a/clients/client-transfer/src/protocols/Aws_json1_1.ts +++ b/clients/client-transfer/src/protocols/Aws_json1_1.ts @@ -3081,7 +3081,7 @@ const deserializeAws_json1_1AccessDeniedException = (output: any, context: __Ser }; const deserializeAws_json1_1AddressAllocationIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3089,6 +3089,7 @@ const deserializeAws_json1_1AddressAllocationIds = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => { @@ -3427,7 +3428,7 @@ const deserializeAws_json1_1ExecutionStepResult = (output: any, context: __Serde }; const deserializeAws_json1_1ExecutionStepResults = (output: any, context: __SerdeContext): ExecutionStepResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3435,6 +3436,7 @@ const deserializeAws_json1_1ExecutionStepResults = (output: any, context: __Serd } return deserializeAws_json1_1ExecutionStepResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1FileLocation = (output: any, context: __SerdeContext): FileLocation => { @@ -3458,7 +3460,7 @@ const deserializeAws_json1_1HomeDirectoryMapEntry = (output: any, context: __Ser }; const deserializeAws_json1_1HomeDirectoryMappings = (output: any, context: __SerdeContext): HomeDirectoryMapEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3466,6 +3468,7 @@ const deserializeAws_json1_1HomeDirectoryMappings = (output: any, context: __Ser } return deserializeAws_json1_1HomeDirectoryMapEntry(entry, context); }); + return retVal; }; const deserializeAws_json1_1IdentityProviderDetails = ( @@ -3549,7 +3552,7 @@ const deserializeAws_json1_1ListedAccess = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ListedAccesses = (output: any, context: __SerdeContext): ListedAccess[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3557,6 +3560,7 @@ const deserializeAws_json1_1ListedAccesses = (output: any, context: __SerdeConte } return deserializeAws_json1_1ListedAccess(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListedExecution = (output: any, context: __SerdeContext): ListedExecution => { @@ -3575,7 +3579,7 @@ const deserializeAws_json1_1ListedExecution = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ListedExecutions = (output: any, context: __SerdeContext): ListedExecution[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3583,6 +3587,7 @@ const deserializeAws_json1_1ListedExecutions = (output: any, context: __SerdeCon } return deserializeAws_json1_1ListedExecution(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListedServer = (output: any, context: __SerdeContext): ListedServer => { @@ -3599,7 +3604,7 @@ const deserializeAws_json1_1ListedServer = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ListedServers = (output: any, context: __SerdeContext): ListedServer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3607,6 +3612,7 @@ const deserializeAws_json1_1ListedServers = (output: any, context: __SerdeContex } return deserializeAws_json1_1ListedServer(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListedUser = (output: any, context: __SerdeContext): ListedUser => { @@ -3621,7 +3627,7 @@ const deserializeAws_json1_1ListedUser = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1ListedUsers = (output: any, context: __SerdeContext): ListedUser[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3629,6 +3635,7 @@ const deserializeAws_json1_1ListedUsers = (output: any, context: __SerdeContext) } return deserializeAws_json1_1ListedUser(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListedWorkflow = (output: any, context: __SerdeContext): ListedWorkflow => { @@ -3640,7 +3647,7 @@ const deserializeAws_json1_1ListedWorkflow = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ListedWorkflows = (output: any, context: __SerdeContext): ListedWorkflow[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3648,6 +3655,7 @@ const deserializeAws_json1_1ListedWorkflows = (output: any, context: __SerdeCont } return deserializeAws_json1_1ListedWorkflow(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListExecutionsResponse = (output: any, context: __SerdeContext): ListExecutionsResponse => { @@ -3725,7 +3733,7 @@ const deserializeAws_json1_1LoggingConfiguration = (output: any, context: __Serd }; const deserializeAws_json1_1OnUploadWorkflowDetails = (output: any, context: __SerdeContext): WorkflowDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3733,6 +3741,7 @@ const deserializeAws_json1_1OnUploadWorkflowDetails = (output: any, context: __S } return deserializeAws_json1_1WorkflowDetail(entry, context); }); + return retVal; }; const deserializeAws_json1_1PosixProfile = (output: any, context: __SerdeContext): PosixProfile => { @@ -3754,7 +3763,7 @@ const deserializeAws_json1_1ProtocolDetails = (output: any, context: __SerdeCont }; const deserializeAws_json1_1Protocols = (output: any, context: __SerdeContext): (Protocol | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3762,6 +3771,7 @@ const deserializeAws_json1_1Protocols = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceExistsException = ( @@ -3810,7 +3820,7 @@ const deserializeAws_json1_1S3Tag = (output: any, context: __SerdeContext): S3Ta }; const deserializeAws_json1_1S3Tags = (output: any, context: __SerdeContext): S3Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3818,10 +3828,11 @@ const deserializeAws_json1_1S3Tags = (output: any, context: __SerdeContext): S3T } return deserializeAws_json1_1S3Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1SecondaryGids = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3829,10 +3840,11 @@ const deserializeAws_json1_1SecondaryGids = (output: any, context: __SerdeContex } return __expectLong(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3840,10 +3852,11 @@ const deserializeAws_json1_1SecurityGroupIds = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SecurityPolicyNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3851,10 +3864,11 @@ const deserializeAws_json1_1SecurityPolicyNames = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SecurityPolicyOptions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3862,6 +3876,7 @@ const deserializeAws_json1_1SecurityPolicyOptions = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SendWorkflowStepStateResponse = ( @@ -3901,7 +3916,7 @@ const deserializeAws_json1_1SshPublicKey = (output: any, context: __SerdeContext }; const deserializeAws_json1_1SshPublicKeys = (output: any, context: __SerdeContext): SshPublicKey[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3909,10 +3924,11 @@ const deserializeAws_json1_1SshPublicKeys = (output: any, context: __SerdeContex } return deserializeAws_json1_1SshPublicKey(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3920,6 +3936,7 @@ const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -3930,7 +3947,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3938,6 +3955,7 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagStepDetails = (output: any, context: __SerdeContext): TagStepDetails => { @@ -4035,7 +4053,7 @@ const deserializeAws_json1_1WorkflowStep = (output: any, context: __SerdeContext }; const deserializeAws_json1_1WorkflowSteps = (output: any, context: __SerdeContext): WorkflowStep[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4043,6 +4061,7 @@ const deserializeAws_json1_1WorkflowSteps = (output: any, context: __SerdeContex } return deserializeAws_json1_1WorkflowStep(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-translate/src/protocols/Aws_json1_1.ts b/clients/client-translate/src/protocols/Aws_json1_1.ts index ce355bb30c4d..a33c9edfd774 100644 --- a/clients/client-translate/src/protocols/Aws_json1_1.ts +++ b/clients/client-translate/src/protocols/Aws_json1_1.ts @@ -1482,7 +1482,7 @@ const deserializeAws_json1_1AppliedTerminology = (output: any, context: __SerdeC }; const deserializeAws_json1_1AppliedTerminologyList = (output: any, context: __SerdeContext): AppliedTerminology[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1490,6 +1490,7 @@ const deserializeAws_json1_1AppliedTerminologyList = (output: any, context: __Se } return deserializeAws_json1_1AppliedTerminology(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConcurrentModificationException = ( @@ -1663,7 +1664,7 @@ const deserializeAws_json1_1JobDetails = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1LanguageCodeStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1671,6 +1672,7 @@ const deserializeAws_json1_1LanguageCodeStringList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -1789,7 +1791,7 @@ const deserializeAws_json1_1ParallelDataPropertiesList = ( output: any, context: __SerdeContext ): ParallelDataProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1797,10 +1799,11 @@ const deserializeAws_json1_1ParallelDataPropertiesList = ( } return deserializeAws_json1_1ParallelDataProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1808,6 +1811,7 @@ const deserializeAws_json1_1ResourceNameList = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceNotFoundException = ( @@ -1849,7 +1853,7 @@ const deserializeAws_json1_1StopTextTranslationJobResponse = ( }; const deserializeAws_json1_1TargetLanguageCodeStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1857,6 +1861,7 @@ const deserializeAws_json1_1TargetLanguageCodeStringList = (output: any, context } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Term = (output: any, context: __SerdeContext): Term => { @@ -1911,7 +1916,7 @@ const deserializeAws_json1_1TerminologyPropertiesList = ( output: any, context: __SerdeContext ): TerminologyProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1919,10 +1924,11 @@ const deserializeAws_json1_1TerminologyPropertiesList = ( } return deserializeAws_json1_1TerminologyProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1TermList = (output: any, context: __SerdeContext): Term[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1930,6 +1936,7 @@ const deserializeAws_json1_1TermList = (output: any, context: __SerdeContext): T } return deserializeAws_json1_1Term(entry, context); }); + return retVal; }; const deserializeAws_json1_1TextSizeLimitExceededException = ( @@ -1995,7 +2002,7 @@ const deserializeAws_json1_1TextTranslationJobPropertiesList = ( output: any, context: __SerdeContext ): TextTranslationJobProperties[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2003,6 +2010,7 @@ const deserializeAws_json1_1TextTranslationJobPropertiesList = ( } return deserializeAws_json1_1TextTranslationJobProperties(entry, context); }); + return retVal; }; const deserializeAws_json1_1TooManyRequestsException = ( diff --git a/clients/client-voice-id/src/protocols/Aws_json1_0.ts b/clients/client-voice-id/src/protocols/Aws_json1_0.ts index 56f24ea922f0..4da74b00f82b 100644 --- a/clients/client-voice-id/src/protocols/Aws_json1_0.ts +++ b/clients/client-voice-id/src/protocols/Aws_json1_0.ts @@ -2117,7 +2117,7 @@ const deserializeAws_json1_0Domain = (output: any, context: __SerdeContext): Dom }; const deserializeAws_json1_0DomainSummaries = (output: any, context: __SerdeContext): DomainSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2125,6 +2125,7 @@ const deserializeAws_json1_0DomainSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_0DomainSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0DomainSummary = (output: any, context: __SerdeContext): DomainSummary => { @@ -2209,7 +2210,7 @@ const deserializeAws_json1_0FraudDetectionReasons = ( output: any, context: __SerdeContext ): (FraudDetectionReason | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2217,6 +2218,7 @@ const deserializeAws_json1_0FraudDetectionReasons = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0FraudDetectionResult = (output: any, context: __SerdeContext): FraudDetectionResult => { @@ -2311,7 +2313,7 @@ const deserializeAws_json1_0FraudsterRegistrationJobSummaries = ( output: any, context: __SerdeContext ): FraudsterRegistrationJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2319,6 +2321,7 @@ const deserializeAws_json1_0FraudsterRegistrationJobSummaries = ( } return deserializeAws_json1_0FraudsterRegistrationJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0FraudsterRegistrationJobSummary = ( @@ -2545,7 +2548,7 @@ const deserializeAws_json1_0SpeakerEnrollmentJobSummaries = ( output: any, context: __SerdeContext ): SpeakerEnrollmentJobSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2553,6 +2556,7 @@ const deserializeAws_json1_0SpeakerEnrollmentJobSummaries = ( } return deserializeAws_json1_0SpeakerEnrollmentJobSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0SpeakerEnrollmentJobSummary = ( @@ -2584,7 +2588,7 @@ const deserializeAws_json1_0SpeakerEnrollmentJobSummary = ( }; const deserializeAws_json1_0SpeakerSummaries = (output: any, context: __SerdeContext): SpeakerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2592,6 +2596,7 @@ const deserializeAws_json1_0SpeakerSummaries = (output: any, context: __SerdeCon } return deserializeAws_json1_0SpeakerSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_0SpeakerSummary = (output: any, context: __SerdeContext): SpeakerSummary => { @@ -2643,7 +2648,7 @@ const deserializeAws_json1_0Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2651,6 +2656,7 @@ const deserializeAws_json1_0TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_0Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_0TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { diff --git a/clients/client-waf-regional/src/protocols/Aws_json1_1.ts b/clients/client-waf-regional/src/protocols/Aws_json1_1.ts index 567aca75010a..d530d7759de9 100644 --- a/clients/client-waf-regional/src/protocols/Aws_json1_1.ts +++ b/clients/client-waf-regional/src/protocols/Aws_json1_1.ts @@ -7395,7 +7395,7 @@ const deserializeAws_json1_1ActivatedRule = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ActivatedRules = (output: any, context: __SerdeContext): ActivatedRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7403,6 +7403,7 @@ const deserializeAws_json1_1ActivatedRules = (output: any, context: __SerdeConte } return deserializeAws_json1_1ActivatedRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociateWebACLResponse = ( @@ -7424,7 +7425,7 @@ const deserializeAws_json1_1ByteMatchSet = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ByteMatchSetSummaries = (output: any, context: __SerdeContext): ByteMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7432,6 +7433,7 @@ const deserializeAws_json1_1ByteMatchSetSummaries = (output: any, context: __Ser } return deserializeAws_json1_1ByteMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ByteMatchSetSummary = (output: any, context: __SerdeContext): ByteMatchSetSummary => { @@ -7457,7 +7459,7 @@ const deserializeAws_json1_1ByteMatchTuple = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ByteMatchTuples = (output: any, context: __SerdeContext): ByteMatchTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7465,6 +7467,7 @@ const deserializeAws_json1_1ByteMatchTuples = (output: any, context: __SerdeCont } return deserializeAws_json1_1ByteMatchTuple(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateByteMatchSetResponse = ( @@ -7748,7 +7751,7 @@ const deserializeAws_json1_1ExcludedRule = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ExcludedRules = (output: any, context: __SerdeContext): ExcludedRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7756,6 +7759,7 @@ const deserializeAws_json1_1ExcludedRules = (output: any, context: __SerdeContex } return deserializeAws_json1_1ExcludedRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1FieldToMatch = (output: any, context: __SerdeContext): FieldToMatch => { @@ -7773,7 +7777,7 @@ const deserializeAws_json1_1GeoMatchConstraint = (output: any, context: __SerdeC }; const deserializeAws_json1_1GeoMatchConstraints = (output: any, context: __SerdeContext): GeoMatchConstraint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7781,6 +7785,7 @@ const deserializeAws_json1_1GeoMatchConstraints = (output: any, context: __Serde } return deserializeAws_json1_1GeoMatchConstraint(entry, context); }); + return retVal; }; const deserializeAws_json1_1GeoMatchSet = (output: any, context: __SerdeContext): GeoMatchSet => { @@ -7795,7 +7800,7 @@ const deserializeAws_json1_1GeoMatchSet = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1GeoMatchSetSummaries = (output: any, context: __SerdeContext): GeoMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7803,6 +7808,7 @@ const deserializeAws_json1_1GeoMatchSetSummaries = (output: any, context: __Serd } return deserializeAws_json1_1GeoMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1GeoMatchSetSummary = (output: any, context: __SerdeContext): GeoMatchSetSummary => { @@ -8022,7 +8028,7 @@ const deserializeAws_json1_1HTTPHeader = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1HTTPHeaders = (output: any, context: __SerdeContext): HTTPHeader[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8030,6 +8036,7 @@ const deserializeAws_json1_1HTTPHeaders = (output: any, context: __SerdeContext) } return deserializeAws_json1_1HTTPHeader(entry, context); }); + return retVal; }; const deserializeAws_json1_1HTTPRequest = (output: any, context: __SerdeContext): HTTPRequest => { @@ -8065,7 +8072,7 @@ const deserializeAws_json1_1IPSetDescriptor = (output: any, context: __SerdeCont }; const deserializeAws_json1_1IPSetDescriptors = (output: any, context: __SerdeContext): IPSetDescriptor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8073,10 +8080,11 @@ const deserializeAws_json1_1IPSetDescriptors = (output: any, context: __SerdeCon } return deserializeAws_json1_1IPSetDescriptor(entry, context); }); + return retVal; }; const deserializeAws_json1_1IPSetSummaries = (output: any, context: __SerdeContext): IPSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8084,6 +8092,7 @@ const deserializeAws_json1_1IPSetSummaries = (output: any, context: __SerdeConte } return deserializeAws_json1_1IPSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1IPSetSummary = (output: any, context: __SerdeContext): IPSetSummary => { @@ -8302,7 +8311,7 @@ const deserializeAws_json1_1ListXssMatchSetsResponse = ( }; const deserializeAws_json1_1LogDestinationConfigs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8310,6 +8319,7 @@ const deserializeAws_json1_1LogDestinationConfigs = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LoggingConfiguration = (output: any, context: __SerdeContext): LoggingConfiguration => { @@ -8327,7 +8337,7 @@ const deserializeAws_json1_1LoggingConfiguration = (output: any, context: __Serd }; const deserializeAws_json1_1LoggingConfigurations = (output: any, context: __SerdeContext): LoggingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8335,10 +8345,11 @@ const deserializeAws_json1_1LoggingConfigurations = (output: any, context: __Ser } return deserializeAws_json1_1LoggingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ManagedKeys = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8346,6 +8357,7 @@ const deserializeAws_json1_1ManagedKeys = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Predicate = (output: any, context: __SerdeContext): Predicate => { @@ -8357,7 +8369,7 @@ const deserializeAws_json1_1Predicate = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Predicates = (output: any, context: __SerdeContext): Predicate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8365,6 +8377,7 @@ const deserializeAws_json1_1Predicates = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Predicate(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutLoggingConfigurationResponse = ( @@ -8401,7 +8414,7 @@ const deserializeAws_json1_1RateBasedRule = (output: any, context: __SerdeContex }; const deserializeAws_json1_1RedactedFields = (output: any, context: __SerdeContext): FieldToMatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8409,6 +8422,7 @@ const deserializeAws_json1_1RedactedFields = (output: any, context: __SerdeConte } return deserializeAws_json1_1FieldToMatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexMatchSet = (output: any, context: __SerdeContext): RegexMatchSet => { @@ -8423,7 +8437,7 @@ const deserializeAws_json1_1RegexMatchSet = (output: any, context: __SerdeContex }; const deserializeAws_json1_1RegexMatchSetSummaries = (output: any, context: __SerdeContext): RegexMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8431,6 +8445,7 @@ const deserializeAws_json1_1RegexMatchSetSummaries = (output: any, context: __Se } return deserializeAws_json1_1RegexMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexMatchSetSummary = (output: any, context: __SerdeContext): RegexMatchSetSummary => { @@ -8452,7 +8467,7 @@ const deserializeAws_json1_1RegexMatchTuple = (output: any, context: __SerdeCont }; const deserializeAws_json1_1RegexMatchTuples = (output: any, context: __SerdeContext): RegexMatchTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8460,6 +8475,7 @@ const deserializeAws_json1_1RegexMatchTuples = (output: any, context: __SerdeCon } return deserializeAws_json1_1RegexMatchTuple(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexPatternSet = (output: any, context: __SerdeContext): RegexPatternSet => { @@ -8477,7 +8493,7 @@ const deserializeAws_json1_1RegexPatternSetSummaries = ( output: any, context: __SerdeContext ): RegexPatternSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8485,6 +8501,7 @@ const deserializeAws_json1_1RegexPatternSetSummaries = ( } return deserializeAws_json1_1RegexPatternSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexPatternSetSummary = (output: any, context: __SerdeContext): RegexPatternSetSummary => { @@ -8495,7 +8512,7 @@ const deserializeAws_json1_1RegexPatternSetSummary = (output: any, context: __Se }; const deserializeAws_json1_1RegexPatternStrings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8503,10 +8520,11 @@ const deserializeAws_json1_1RegexPatternStrings = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ResourceArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8514,6 +8532,7 @@ const deserializeAws_json1_1ResourceArns = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Rule = (output: any, context: __SerdeContext): Rule => { @@ -8537,7 +8556,7 @@ const deserializeAws_json1_1RuleGroup = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1RuleGroupSummaries = (output: any, context: __SerdeContext): RuleGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8545,6 +8564,7 @@ const deserializeAws_json1_1RuleGroupSummaries = (output: any, context: __SerdeC } return deserializeAws_json1_1RuleGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleGroupSummary = (output: any, context: __SerdeContext): RuleGroupSummary => { @@ -8555,7 +8575,7 @@ const deserializeAws_json1_1RuleGroupSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_1RuleSummaries = (output: any, context: __SerdeContext): RuleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8563,6 +8583,7 @@ const deserializeAws_json1_1RuleSummaries = (output: any, context: __SerdeContex } return deserializeAws_json1_1RuleSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleSummary = (output: any, context: __SerdeContext): RuleSummary => { @@ -8589,7 +8610,7 @@ const deserializeAws_json1_1SampledHTTPRequest = (output: any, context: __SerdeC }; const deserializeAws_json1_1SampledHTTPRequests = (output: any, context: __SerdeContext): SampledHTTPRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8597,6 +8618,7 @@ const deserializeAws_json1_1SampledHTTPRequests = (output: any, context: __Serde } return deserializeAws_json1_1SampledHTTPRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1SizeConstraint = (output: any, context: __SerdeContext): SizeConstraint => { @@ -8612,7 +8634,7 @@ const deserializeAws_json1_1SizeConstraint = (output: any, context: __SerdeConte }; const deserializeAws_json1_1SizeConstraints = (output: any, context: __SerdeContext): SizeConstraint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8620,6 +8642,7 @@ const deserializeAws_json1_1SizeConstraints = (output: any, context: __SerdeCont } return deserializeAws_json1_1SizeConstraint(entry, context); }); + return retVal; }; const deserializeAws_json1_1SizeConstraintSet = (output: any, context: __SerdeContext): SizeConstraintSet => { @@ -8637,7 +8660,7 @@ const deserializeAws_json1_1SizeConstraintSetSummaries = ( output: any, context: __SerdeContext ): SizeConstraintSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8645,6 +8668,7 @@ const deserializeAws_json1_1SizeConstraintSetSummaries = ( } return deserializeAws_json1_1SizeConstraintSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SizeConstraintSetSummary = ( @@ -8672,7 +8696,7 @@ const deserializeAws_json1_1SqlInjectionMatchSetSummaries = ( output: any, context: __SerdeContext ): SqlInjectionMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8680,6 +8704,7 @@ const deserializeAws_json1_1SqlInjectionMatchSetSummaries = ( } return deserializeAws_json1_1SqlInjectionMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SqlInjectionMatchSetSummary = ( @@ -8706,7 +8731,7 @@ const deserializeAws_json1_1SqlInjectionMatchTuples = ( output: any, context: __SerdeContext ): SqlInjectionMatchTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8714,13 +8739,14 @@ const deserializeAws_json1_1SqlInjectionMatchTuples = ( } return deserializeAws_json1_1SqlInjectionMatchTuple(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubscribedRuleGroupSummaries = ( output: any, context: __SerdeContext ): SubscribedRuleGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8728,6 +8754,7 @@ const deserializeAws_json1_1SubscribedRuleGroupSummaries = ( } return deserializeAws_json1_1SubscribedRuleGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubscribedRuleGroupSummary = ( @@ -8759,7 +8786,7 @@ const deserializeAws_json1_1TagInfoForResource = (output: any, context: __SerdeC }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8767,6 +8794,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -9095,7 +9123,7 @@ const deserializeAws_json1_1WebACL = (output: any, context: __SerdeContext): Web }; const deserializeAws_json1_1WebACLSummaries = (output: any, context: __SerdeContext): WebACLSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9103,6 +9131,7 @@ const deserializeAws_json1_1WebACLSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_1WebACLSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1WebACLSummary = (output: any, context: __SerdeContext): WebACLSummary => { @@ -9124,7 +9153,7 @@ const deserializeAws_json1_1XssMatchSet = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1XssMatchSetSummaries = (output: any, context: __SerdeContext): XssMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9132,6 +9161,7 @@ const deserializeAws_json1_1XssMatchSetSummaries = (output: any, context: __Serd } return deserializeAws_json1_1XssMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1XssMatchSetSummary = (output: any, context: __SerdeContext): XssMatchSetSummary => { @@ -9152,7 +9182,7 @@ const deserializeAws_json1_1XssMatchTuple = (output: any, context: __SerdeContex }; const deserializeAws_json1_1XssMatchTuples = (output: any, context: __SerdeContext): XssMatchTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -9160,6 +9190,7 @@ const deserializeAws_json1_1XssMatchTuples = (output: any, context: __SerdeConte } return deserializeAws_json1_1XssMatchTuple(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-waf/src/protocols/Aws_json1_1.ts b/clients/client-waf/src/protocols/Aws_json1_1.ts index 5857b9df29b1..0c729d09d672 100644 --- a/clients/client-waf/src/protocols/Aws_json1_1.ts +++ b/clients/client-waf/src/protocols/Aws_json1_1.ts @@ -7062,7 +7062,7 @@ const deserializeAws_json1_1ActivatedRule = (output: any, context: __SerdeContex }; const deserializeAws_json1_1ActivatedRules = (output: any, context: __SerdeContext): ActivatedRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7070,6 +7070,7 @@ const deserializeAws_json1_1ActivatedRules = (output: any, context: __SerdeConte } return deserializeAws_json1_1ActivatedRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1ByteMatchSet = (output: any, context: __SerdeContext): ByteMatchSet => { @@ -7084,7 +7085,7 @@ const deserializeAws_json1_1ByteMatchSet = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ByteMatchSetSummaries = (output: any, context: __SerdeContext): ByteMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7092,6 +7093,7 @@ const deserializeAws_json1_1ByteMatchSetSummaries = (output: any, context: __Ser } return deserializeAws_json1_1ByteMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ByteMatchSetSummary = (output: any, context: __SerdeContext): ByteMatchSetSummary => { @@ -7117,7 +7119,7 @@ const deserializeAws_json1_1ByteMatchTuple = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ByteMatchTuples = (output: any, context: __SerdeContext): ByteMatchTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7125,6 +7127,7 @@ const deserializeAws_json1_1ByteMatchTuples = (output: any, context: __SerdeCont } return deserializeAws_json1_1ByteMatchTuple(entry, context); }); + return retVal; }; const deserializeAws_json1_1CreateByteMatchSetResponse = ( @@ -7401,7 +7404,7 @@ const deserializeAws_json1_1ExcludedRule = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ExcludedRules = (output: any, context: __SerdeContext): ExcludedRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7409,6 +7412,7 @@ const deserializeAws_json1_1ExcludedRules = (output: any, context: __SerdeContex } return deserializeAws_json1_1ExcludedRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1FieldToMatch = (output: any, context: __SerdeContext): FieldToMatch => { @@ -7426,7 +7430,7 @@ const deserializeAws_json1_1GeoMatchConstraint = (output: any, context: __SerdeC }; const deserializeAws_json1_1GeoMatchConstraints = (output: any, context: __SerdeContext): GeoMatchConstraint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7434,6 +7438,7 @@ const deserializeAws_json1_1GeoMatchConstraints = (output: any, context: __Serde } return deserializeAws_json1_1GeoMatchConstraint(entry, context); }); + return retVal; }; const deserializeAws_json1_1GeoMatchSet = (output: any, context: __SerdeContext): GeoMatchSet => { @@ -7448,7 +7453,7 @@ const deserializeAws_json1_1GeoMatchSet = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1GeoMatchSetSummaries = (output: any, context: __SerdeContext): GeoMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7456,6 +7461,7 @@ const deserializeAws_json1_1GeoMatchSetSummaries = (output: any, context: __Serd } return deserializeAws_json1_1GeoMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1GeoMatchSetSummary = (output: any, context: __SerdeContext): GeoMatchSetSummary => { @@ -7663,7 +7669,7 @@ const deserializeAws_json1_1HTTPHeader = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1HTTPHeaders = (output: any, context: __SerdeContext): HTTPHeader[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7671,6 +7677,7 @@ const deserializeAws_json1_1HTTPHeaders = (output: any, context: __SerdeContext) } return deserializeAws_json1_1HTTPHeader(entry, context); }); + return retVal; }; const deserializeAws_json1_1HTTPRequest = (output: any, context: __SerdeContext): HTTPRequest => { @@ -7706,7 +7713,7 @@ const deserializeAws_json1_1IPSetDescriptor = (output: any, context: __SerdeCont }; const deserializeAws_json1_1IPSetDescriptors = (output: any, context: __SerdeContext): IPSetDescriptor[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7714,10 +7721,11 @@ const deserializeAws_json1_1IPSetDescriptors = (output: any, context: __SerdeCon } return deserializeAws_json1_1IPSetDescriptor(entry, context); }); + return retVal; }; const deserializeAws_json1_1IPSetSummaries = (output: any, context: __SerdeContext): IPSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7725,6 +7733,7 @@ const deserializeAws_json1_1IPSetSummaries = (output: any, context: __SerdeConte } return deserializeAws_json1_1IPSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1IPSetSummary = (output: any, context: __SerdeContext): IPSetSummary => { @@ -7931,7 +7940,7 @@ const deserializeAws_json1_1ListXssMatchSetsResponse = ( }; const deserializeAws_json1_1LogDestinationConfigs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7939,6 +7948,7 @@ const deserializeAws_json1_1LogDestinationConfigs = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LoggingConfiguration = (output: any, context: __SerdeContext): LoggingConfiguration => { @@ -7956,7 +7966,7 @@ const deserializeAws_json1_1LoggingConfiguration = (output: any, context: __Serd }; const deserializeAws_json1_1LoggingConfigurations = (output: any, context: __SerdeContext): LoggingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7964,10 +7974,11 @@ const deserializeAws_json1_1LoggingConfigurations = (output: any, context: __Ser } return deserializeAws_json1_1LoggingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1ManagedKeys = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7975,6 +7986,7 @@ const deserializeAws_json1_1ManagedKeys = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Predicate = (output: any, context: __SerdeContext): Predicate => { @@ -7986,7 +7998,7 @@ const deserializeAws_json1_1Predicate = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Predicates = (output: any, context: __SerdeContext): Predicate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7994,6 +8006,7 @@ const deserializeAws_json1_1Predicates = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Predicate(entry, context); }); + return retVal; }; const deserializeAws_json1_1PutLoggingConfigurationResponse = ( @@ -8030,7 +8043,7 @@ const deserializeAws_json1_1RateBasedRule = (output: any, context: __SerdeContex }; const deserializeAws_json1_1RedactedFields = (output: any, context: __SerdeContext): FieldToMatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8038,6 +8051,7 @@ const deserializeAws_json1_1RedactedFields = (output: any, context: __SerdeConte } return deserializeAws_json1_1FieldToMatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexMatchSet = (output: any, context: __SerdeContext): RegexMatchSet => { @@ -8052,7 +8066,7 @@ const deserializeAws_json1_1RegexMatchSet = (output: any, context: __SerdeContex }; const deserializeAws_json1_1RegexMatchSetSummaries = (output: any, context: __SerdeContext): RegexMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8060,6 +8074,7 @@ const deserializeAws_json1_1RegexMatchSetSummaries = (output: any, context: __Se } return deserializeAws_json1_1RegexMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexMatchSetSummary = (output: any, context: __SerdeContext): RegexMatchSetSummary => { @@ -8081,7 +8096,7 @@ const deserializeAws_json1_1RegexMatchTuple = (output: any, context: __SerdeCont }; const deserializeAws_json1_1RegexMatchTuples = (output: any, context: __SerdeContext): RegexMatchTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8089,6 +8104,7 @@ const deserializeAws_json1_1RegexMatchTuples = (output: any, context: __SerdeCon } return deserializeAws_json1_1RegexMatchTuple(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexPatternSet = (output: any, context: __SerdeContext): RegexPatternSet => { @@ -8106,7 +8122,7 @@ const deserializeAws_json1_1RegexPatternSetSummaries = ( output: any, context: __SerdeContext ): RegexPatternSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8114,6 +8130,7 @@ const deserializeAws_json1_1RegexPatternSetSummaries = ( } return deserializeAws_json1_1RegexPatternSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexPatternSetSummary = (output: any, context: __SerdeContext): RegexPatternSetSummary => { @@ -8124,7 +8141,7 @@ const deserializeAws_json1_1RegexPatternSetSummary = (output: any, context: __Se }; const deserializeAws_json1_1RegexPatternStrings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8132,6 +8149,7 @@ const deserializeAws_json1_1RegexPatternStrings = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Rule = (output: any, context: __SerdeContext): Rule => { @@ -8155,7 +8173,7 @@ const deserializeAws_json1_1RuleGroup = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1RuleGroupSummaries = (output: any, context: __SerdeContext): RuleGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8163,6 +8181,7 @@ const deserializeAws_json1_1RuleGroupSummaries = (output: any, context: __SerdeC } return deserializeAws_json1_1RuleGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleGroupSummary = (output: any, context: __SerdeContext): RuleGroupSummary => { @@ -8173,7 +8192,7 @@ const deserializeAws_json1_1RuleGroupSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_1RuleSummaries = (output: any, context: __SerdeContext): RuleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8181,6 +8200,7 @@ const deserializeAws_json1_1RuleSummaries = (output: any, context: __SerdeContex } return deserializeAws_json1_1RuleSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleSummary = (output: any, context: __SerdeContext): RuleSummary => { @@ -8207,7 +8227,7 @@ const deserializeAws_json1_1SampledHTTPRequest = (output: any, context: __SerdeC }; const deserializeAws_json1_1SampledHTTPRequests = (output: any, context: __SerdeContext): SampledHTTPRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8215,6 +8235,7 @@ const deserializeAws_json1_1SampledHTTPRequests = (output: any, context: __Serde } return deserializeAws_json1_1SampledHTTPRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1SizeConstraint = (output: any, context: __SerdeContext): SizeConstraint => { @@ -8230,7 +8251,7 @@ const deserializeAws_json1_1SizeConstraint = (output: any, context: __SerdeConte }; const deserializeAws_json1_1SizeConstraints = (output: any, context: __SerdeContext): SizeConstraint[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8238,6 +8259,7 @@ const deserializeAws_json1_1SizeConstraints = (output: any, context: __SerdeCont } return deserializeAws_json1_1SizeConstraint(entry, context); }); + return retVal; }; const deserializeAws_json1_1SizeConstraintSet = (output: any, context: __SerdeContext): SizeConstraintSet => { @@ -8255,7 +8277,7 @@ const deserializeAws_json1_1SizeConstraintSetSummaries = ( output: any, context: __SerdeContext ): SizeConstraintSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8263,6 +8285,7 @@ const deserializeAws_json1_1SizeConstraintSetSummaries = ( } return deserializeAws_json1_1SizeConstraintSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SizeConstraintSetSummary = ( @@ -8290,7 +8313,7 @@ const deserializeAws_json1_1SqlInjectionMatchSetSummaries = ( output: any, context: __SerdeContext ): SqlInjectionMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8298,6 +8321,7 @@ const deserializeAws_json1_1SqlInjectionMatchSetSummaries = ( } return deserializeAws_json1_1SqlInjectionMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SqlInjectionMatchSetSummary = ( @@ -8324,7 +8348,7 @@ const deserializeAws_json1_1SqlInjectionMatchTuples = ( output: any, context: __SerdeContext ): SqlInjectionMatchTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8332,13 +8356,14 @@ const deserializeAws_json1_1SqlInjectionMatchTuples = ( } return deserializeAws_json1_1SqlInjectionMatchTuple(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubscribedRuleGroupSummaries = ( output: any, context: __SerdeContext ): SubscribedRuleGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8346,6 +8371,7 @@ const deserializeAws_json1_1SubscribedRuleGroupSummaries = ( } return deserializeAws_json1_1SubscribedRuleGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1SubscribedRuleGroupSummary = ( @@ -8377,7 +8403,7 @@ const deserializeAws_json1_1TagInfoForResource = (output: any, context: __SerdeC }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8385,6 +8411,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -8704,7 +8731,7 @@ const deserializeAws_json1_1WebACL = (output: any, context: __SerdeContext): Web }; const deserializeAws_json1_1WebACLSummaries = (output: any, context: __SerdeContext): WebACLSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8712,6 +8739,7 @@ const deserializeAws_json1_1WebACLSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_1WebACLSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1WebACLSummary = (output: any, context: __SerdeContext): WebACLSummary => { @@ -8733,7 +8761,7 @@ const deserializeAws_json1_1XssMatchSet = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1XssMatchSetSummaries = (output: any, context: __SerdeContext): XssMatchSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8741,6 +8769,7 @@ const deserializeAws_json1_1XssMatchSetSummaries = (output: any, context: __Serd } return deserializeAws_json1_1XssMatchSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1XssMatchSetSummary = (output: any, context: __SerdeContext): XssMatchSetSummary => { @@ -8761,7 +8790,7 @@ const deserializeAws_json1_1XssMatchTuple = (output: any, context: __SerdeContex }; const deserializeAws_json1_1XssMatchTuples = (output: any, context: __SerdeContext): XssMatchTuple[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -8769,6 +8798,7 @@ const deserializeAws_json1_1XssMatchTuples = (output: any, context: __SerdeConte } return deserializeAws_json1_1XssMatchTuple(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-wafv2/src/protocols/Aws_json1_1.ts b/clients/client-wafv2/src/protocols/Aws_json1_1.ts index b54ded03c5a8..92d2a0207dff 100644 --- a/clients/client-wafv2/src/protocols/Aws_json1_1.ts +++ b/clients/client-wafv2/src/protocols/Aws_json1_1.ts @@ -5429,7 +5429,7 @@ const deserializeAws_json1_1Condition = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Conditions = (output: any, context: __SerdeContext): Condition[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5437,6 +5437,7 @@ const deserializeAws_json1_1Conditions = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Condition(entry, context); }); + return retVal; }; const deserializeAws_json1_1CountAction = (output: any, context: __SerdeContext): CountAction => { @@ -5449,7 +5450,7 @@ const deserializeAws_json1_1CountAction = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1CountryCodes = (output: any, context: __SerdeContext): (CountryCode | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5457,6 +5458,7 @@ const deserializeAws_json1_1CountryCodes = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1CreateIPSetResponse = (output: any, context: __SerdeContext): CreateIPSetResponse => { @@ -5509,7 +5511,7 @@ const deserializeAws_json1_1CustomHTTPHeader = (output: any, context: __SerdeCon }; const deserializeAws_json1_1CustomHTTPHeaders = (output: any, context: __SerdeContext): CustomHTTPHeader[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5517,6 +5519,7 @@ const deserializeAws_json1_1CustomHTTPHeaders = (output: any, context: __SerdeCo } return deserializeAws_json1_1CustomHTTPHeader(entry, context); }); + return retVal; }; const deserializeAws_json1_1CustomRequestHandling = (output: any, context: __SerdeContext): CustomRequestHandling => { @@ -5657,7 +5660,7 @@ const deserializeAws_json1_1ExcludedRule = (output: any, context: __SerdeContext }; const deserializeAws_json1_1ExcludedRules = (output: any, context: __SerdeContext): ExcludedRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5665,6 +5668,7 @@ const deserializeAws_json1_1ExcludedRules = (output: any, context: __SerdeContex } return deserializeAws_json1_1ExcludedRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1FieldToMatch = (output: any, context: __SerdeContext): FieldToMatch => { @@ -5714,7 +5718,7 @@ const deserializeAws_json1_1Filter = (output: any, context: __SerdeContext): Fil }; const deserializeAws_json1_1Filters = (output: any, context: __SerdeContext): Filter[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5722,6 +5726,7 @@ const deserializeAws_json1_1Filters = (output: any, context: __SerdeContext): Fi } return deserializeAws_json1_1Filter(entry, context); }); + return retVal; }; const deserializeAws_json1_1FirewallManagerRuleGroup = ( @@ -5750,7 +5755,7 @@ const deserializeAws_json1_1FirewallManagerRuleGroups = ( output: any, context: __SerdeContext ): FirewallManagerRuleGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5758,6 +5763,7 @@ const deserializeAws_json1_1FirewallManagerRuleGroups = ( } return deserializeAws_json1_1FirewallManagerRuleGroup(entry, context); }); + return retVal; }; const deserializeAws_json1_1FirewallManagerStatement = ( @@ -5948,7 +5954,7 @@ const deserializeAws_json1_1HTTPHeader = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1HTTPHeaders = (output: any, context: __SerdeContext): HTTPHeader[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5956,6 +5962,7 @@ const deserializeAws_json1_1HTTPHeaders = (output: any, context: __SerdeContext) } return deserializeAws_json1_1HTTPHeader(entry, context); }); + return retVal; }; const deserializeAws_json1_1HTTPRequest = (output: any, context: __SerdeContext): HTTPRequest => { @@ -5979,7 +5986,7 @@ const deserializeAws_json1_1ImmunityTimeProperty = (output: any, context: __Serd }; const deserializeAws_json1_1IPAddresses = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5987,6 +5994,7 @@ const deserializeAws_json1_1IPAddresses = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1IPSet = (output: any, context: __SerdeContext): IPSet => { @@ -6025,7 +6033,7 @@ const deserializeAws_json1_1IPSetReferenceStatement = ( }; const deserializeAws_json1_1IPSetSummaries = (output: any, context: __SerdeContext): IPSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6033,6 +6041,7 @@ const deserializeAws_json1_1IPSetSummaries = (output: any, context: __SerdeConte } return deserializeAws_json1_1IPSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1IPSetSummary = (output: any, context: __SerdeContext): IPSetSummary => { @@ -6067,7 +6076,7 @@ const deserializeAws_json1_1JsonMatchPattern = (output: any, context: __SerdeCon }; const deserializeAws_json1_1JsonPointerPaths = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6075,6 +6084,7 @@ const deserializeAws_json1_1JsonPointerPaths = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Label = (output: any, context: __SerdeContext): Label => { @@ -6097,7 +6107,7 @@ const deserializeAws_json1_1LabelNameCondition = (output: any, context: __SerdeC }; const deserializeAws_json1_1Labels = (output: any, context: __SerdeContext): Label[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6105,10 +6115,11 @@ const deserializeAws_json1_1Labels = (output: any, context: __SerdeContext): Lab } return deserializeAws_json1_1Label(entry, context); }); + return retVal; }; const deserializeAws_json1_1LabelSummaries = (output: any, context: __SerdeContext): LabelSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6116,6 +6127,7 @@ const deserializeAws_json1_1LabelSummaries = (output: any, context: __SerdeConte } return deserializeAws_json1_1LabelSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1LabelSummary = (output: any, context: __SerdeContext): LabelSummary => { @@ -6258,7 +6270,7 @@ const deserializeAws_json1_1ListWebACLsResponse = (output: any, context: __Serde }; const deserializeAws_json1_1LogDestinationConfigs = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6266,6 +6278,7 @@ const deserializeAws_json1_1LogDestinationConfigs = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1LoggingConfiguration = (output: any, context: __SerdeContext): LoggingConfiguration => { @@ -6288,7 +6301,7 @@ const deserializeAws_json1_1LoggingConfiguration = (output: any, context: __Serd }; const deserializeAws_json1_1LoggingConfigurations = (output: any, context: __SerdeContext): LoggingConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6296,6 +6309,7 @@ const deserializeAws_json1_1LoggingConfigurations = (output: any, context: __Ser } return deserializeAws_json1_1LoggingConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1LoggingFilter = (output: any, context: __SerdeContext): LoggingFilter => { @@ -6327,7 +6341,7 @@ const deserializeAws_json1_1ManagedRuleGroupConfigs = ( output: any, context: __SerdeContext ): ManagedRuleGroupConfig[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6335,6 +6349,7 @@ const deserializeAws_json1_1ManagedRuleGroupConfigs = ( } return deserializeAws_json1_1ManagedRuleGroupConfig(entry, context); }); + return retVal; }; const deserializeAws_json1_1ManagedRuleGroupStatement = ( @@ -6364,7 +6379,7 @@ const deserializeAws_json1_1ManagedRuleGroupSummaries = ( output: any, context: __SerdeContext ): ManagedRuleGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6372,6 +6387,7 @@ const deserializeAws_json1_1ManagedRuleGroupSummaries = ( } return deserializeAws_json1_1ManagedRuleGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ManagedRuleGroupSummary = ( @@ -6402,7 +6418,7 @@ const deserializeAws_json1_1ManagedRuleGroupVersions = ( output: any, context: __SerdeContext ): ManagedRuleGroupVersion[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6410,6 +6426,7 @@ const deserializeAws_json1_1ManagedRuleGroupVersions = ( } return deserializeAws_json1_1ManagedRuleGroupVersion(entry, context); }); + return retVal; }; const deserializeAws_json1_1ManagedRuleSet = (output: any, context: __SerdeContext): ManagedRuleSet => { @@ -6431,7 +6448,7 @@ const deserializeAws_json1_1ManagedRuleSetSummaries = ( output: any, context: __SerdeContext ): ManagedRuleSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6439,6 +6456,7 @@ const deserializeAws_json1_1ManagedRuleSetSummaries = ( } return deserializeAws_json1_1ManagedRuleSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ManagedRuleSetSummary = (output: any, context: __SerdeContext): ManagedRuleSetSummary => { @@ -6608,7 +6626,7 @@ const deserializeAws_json1_1RateBasedStatementManagedKeysIPSet = ( }; const deserializeAws_json1_1RedactedFields = (output: any, context: __SerdeContext): FieldToMatch[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6616,6 +6634,7 @@ const deserializeAws_json1_1RedactedFields = (output: any, context: __SerdeConte } return deserializeAws_json1_1FieldToMatch(entry, context); }); + return retVal; }; const deserializeAws_json1_1Regex = (output: any, context: __SerdeContext): Regex => { @@ -6672,7 +6691,7 @@ const deserializeAws_json1_1RegexPatternSetSummaries = ( output: any, context: __SerdeContext ): RegexPatternSetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6680,6 +6699,7 @@ const deserializeAws_json1_1RegexPatternSetSummaries = ( } return deserializeAws_json1_1RegexPatternSetSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RegexPatternSetSummary = (output: any, context: __SerdeContext): RegexPatternSetSummary => { @@ -6693,7 +6713,7 @@ const deserializeAws_json1_1RegexPatternSetSummary = (output: any, context: __Se }; const deserializeAws_json1_1RegularExpressionList = (output: any, context: __SerdeContext): Regex[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6701,10 +6721,11 @@ const deserializeAws_json1_1RegularExpressionList = (output: any, context: __Ser } return deserializeAws_json1_1Regex(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReleaseSummaries = (output: any, context: __SerdeContext): ReleaseSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6712,6 +6733,7 @@ const deserializeAws_json1_1ReleaseSummaries = (output: any, context: __SerdeCon } return deserializeAws_json1_1ReleaseSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1ReleaseSummary = (output: any, context: __SerdeContext): ReleaseSummary => { @@ -6725,7 +6747,7 @@ const deserializeAws_json1_1ReleaseSummary = (output: any, context: __SerdeConte }; const deserializeAws_json1_1ResourceArns = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6733,6 +6755,7 @@ const deserializeAws_json1_1ResourceArns = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Rule = (output: any, context: __SerdeContext): Rule => { @@ -6832,7 +6855,7 @@ const deserializeAws_json1_1RuleGroupReferenceStatement = ( }; const deserializeAws_json1_1RuleGroupSummaries = (output: any, context: __SerdeContext): RuleGroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6840,6 +6863,7 @@ const deserializeAws_json1_1RuleGroupSummaries = (output: any, context: __SerdeC } return deserializeAws_json1_1RuleGroupSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleGroupSummary = (output: any, context: __SerdeContext): RuleGroupSummary => { @@ -6853,7 +6877,7 @@ const deserializeAws_json1_1RuleGroupSummary = (output: any, context: __SerdeCon }; const deserializeAws_json1_1Rules = (output: any, context: __SerdeContext): Rule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6861,10 +6885,11 @@ const deserializeAws_json1_1Rules = (output: any, context: __SerdeContext): Rule } return deserializeAws_json1_1Rule(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleSummaries = (output: any, context: __SerdeContext): RuleSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6872,6 +6897,7 @@ const deserializeAws_json1_1RuleSummaries = (output: any, context: __SerdeContex } return deserializeAws_json1_1RuleSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1RuleSummary = (output: any, context: __SerdeContext): RuleSummary => { @@ -6914,7 +6940,7 @@ const deserializeAws_json1_1SampledHTTPRequest = (output: any, context: __SerdeC }; const deserializeAws_json1_1SampledHTTPRequests = (output: any, context: __SerdeContext): SampledHTTPRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6922,6 +6948,7 @@ const deserializeAws_json1_1SampledHTTPRequests = (output: any, context: __Serde } return deserializeAws_json1_1SampledHTTPRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1SingleHeader = (output: any, context: __SerdeContext): SingleHeader => { @@ -7033,7 +7060,7 @@ const deserializeAws_json1_1Statement = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Statements = (output: any, context: __SerdeContext): Statement[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7041,6 +7068,7 @@ const deserializeAws_json1_1Statements = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Statement(entry, context); }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -7061,7 +7089,7 @@ const deserializeAws_json1_1TagInfoForResource = (output: any, context: __SerdeC }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7069,6 +7097,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -7083,7 +7112,7 @@ const deserializeAws_json1_1TextTransformation = (output: any, context: __SerdeC }; const deserializeAws_json1_1TextTransformations = (output: any, context: __SerdeContext): TextTransformation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7091,6 +7120,7 @@ const deserializeAws_json1_1TextTransformations = (output: any, context: __Serde } return deserializeAws_json1_1TextTransformation(entry, context); }); + return retVal; }; const deserializeAws_json1_1TimeWindow = (output: any, context: __SerdeContext): TimeWindow => { @@ -7369,7 +7399,7 @@ const deserializeAws_json1_1WebACL = (output: any, context: __SerdeContext): Web }; const deserializeAws_json1_1WebACLSummaries = (output: any, context: __SerdeContext): WebACLSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7377,6 +7407,7 @@ const deserializeAws_json1_1WebACLSummaries = (output: any, context: __SerdeCont } return deserializeAws_json1_1WebACLSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1WebACLSummary = (output: any, context: __SerdeContext): WebACLSummary => { diff --git a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts index 52a8db430e32..7d6001a82a7f 100644 --- a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts +++ b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts @@ -4260,7 +4260,7 @@ const deserializeAws_restJson1Answer = (output: any, context: __SerdeContext): A }; const deserializeAws_restJson1AnswerSummaries = (output: any, context: __SerdeContext): AnswerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4268,6 +4268,7 @@ const deserializeAws_restJson1AnswerSummaries = (output: any, context: __SerdeCo } return deserializeAws_restJson1AnswerSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AnswerSummary = (output: any, context: __SerdeContext): AnswerSummary => { @@ -4319,7 +4320,7 @@ const deserializeAws_restJson1ChoiceAnswer = (output: any, context: __SerdeConte }; const deserializeAws_restJson1ChoiceAnswers = (output: any, context: __SerdeContext): ChoiceAnswer[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4327,10 +4328,11 @@ const deserializeAws_restJson1ChoiceAnswers = (output: any, context: __SerdeCont } return deserializeAws_restJson1ChoiceAnswer(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChoiceAnswerSummaries = (output: any, context: __SerdeContext): ChoiceAnswerSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4338,6 +4340,7 @@ const deserializeAws_restJson1ChoiceAnswerSummaries = (output: any, context: __S } return deserializeAws_restJson1ChoiceAnswerSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ChoiceAnswerSummary = (output: any, context: __SerdeContext): ChoiceAnswerSummary => { @@ -4367,7 +4370,7 @@ const deserializeAws_restJson1ChoiceImprovementPlans = ( output: any, context: __SerdeContext ): ChoiceImprovementPlan[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4375,10 +4378,11 @@ const deserializeAws_restJson1ChoiceImprovementPlans = ( } return deserializeAws_restJson1ChoiceImprovementPlan(entry, context); }); + return retVal; }; const deserializeAws_restJson1Choices = (output: any, context: __SerdeContext): Choice[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4386,10 +4390,11 @@ const deserializeAws_restJson1Choices = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Choice(entry, context); }); + return retVal; }; const deserializeAws_restJson1ImprovementSummaries = (output: any, context: __SerdeContext): ImprovementSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4397,6 +4402,7 @@ const deserializeAws_restJson1ImprovementSummaries = (output: any, context: __Se } return deserializeAws_restJson1ImprovementSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ImprovementSummary = (output: any, context: __SerdeContext): ImprovementSummary => { @@ -4457,7 +4463,7 @@ const deserializeAws_restJson1LensReviewReport = (output: any, context: __SerdeC }; const deserializeAws_restJson1LensReviewSummaries = (output: any, context: __SerdeContext): LensReviewSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4465,6 +4471,7 @@ const deserializeAws_restJson1LensReviewSummaries = (output: any, context: __Ser } return deserializeAws_restJson1LensReviewSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1LensReviewSummary = (output: any, context: __SerdeContext): LensReviewSummary => { @@ -4486,7 +4493,7 @@ const deserializeAws_restJson1LensReviewSummary = (output: any, context: __Serde }; const deserializeAws_restJson1LensShareSummaries = (output: any, context: __SerdeContext): LensShareSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4494,6 +4501,7 @@ const deserializeAws_restJson1LensShareSummaries = (output: any, context: __Serd } return deserializeAws_restJson1LensShareSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1LensShareSummary = (output: any, context: __SerdeContext): LensShareSummary => { @@ -4505,7 +4513,7 @@ const deserializeAws_restJson1LensShareSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1LensSummaries = (output: any, context: __SerdeContext): LensSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4513,6 +4521,7 @@ const deserializeAws_restJson1LensSummaries = (output: any, context: __SerdeCont } return deserializeAws_restJson1LensSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1LensSummary = (output: any, context: __SerdeContext): LensSummary => { @@ -4563,7 +4572,7 @@ const deserializeAws_restJson1Milestone = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1MilestoneSummaries = (output: any, context: __SerdeContext): MilestoneSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4571,6 +4580,7 @@ const deserializeAws_restJson1MilestoneSummaries = (output: any, context: __Serd } return deserializeAws_restJson1MilestoneSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1MilestoneSummary = (output: any, context: __SerdeContext): MilestoneSummary => { @@ -4589,7 +4599,7 @@ const deserializeAws_restJson1MilestoneSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1NotificationSummaries = (output: any, context: __SerdeContext): NotificationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4597,6 +4607,7 @@ const deserializeAws_restJson1NotificationSummaries = (output: any, context: __S } return deserializeAws_restJson1NotificationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1NotificationSummary = (output: any, context: __SerdeContext): NotificationSummary => { @@ -4622,7 +4633,7 @@ const deserializeAws_restJson1PillarDifference = (output: any, context: __SerdeC }; const deserializeAws_restJson1PillarDifferences = (output: any, context: __SerdeContext): PillarDifference[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4630,10 +4641,11 @@ const deserializeAws_restJson1PillarDifferences = (output: any, context: __Serde } return deserializeAws_restJson1PillarDifference(entry, context); }); + return retVal; }; const deserializeAws_restJson1PillarReviewSummaries = (output: any, context: __SerdeContext): PillarReviewSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4641,6 +4653,7 @@ const deserializeAws_restJson1PillarReviewSummaries = (output: any, context: __S } return deserializeAws_restJson1PillarReviewSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1PillarReviewSummary = (output: any, context: __SerdeContext): PillarReviewSummary => { @@ -4664,7 +4677,7 @@ const deserializeAws_restJson1QuestionDifference = (output: any, context: __Serd }; const deserializeAws_restJson1QuestionDifferences = (output: any, context: __SerdeContext): QuestionDifference[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4672,6 +4685,7 @@ const deserializeAws_restJson1QuestionDifferences = (output: any, context: __Ser } return deserializeAws_restJson1QuestionDifference(entry, context); }); + return retVal; }; const deserializeAws_restJson1RiskCounts = (output: any, context: __SerdeContext): { [key: string]: number } => { @@ -4687,7 +4701,7 @@ const deserializeAws_restJson1RiskCounts = (output: any, context: __SerdeContext }; const deserializeAws_restJson1SelectedChoices = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4695,6 +4709,7 @@ const deserializeAws_restJson1SelectedChoices = (output: any, context: __SerdeCo } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ShareInvitation = (output: any, context: __SerdeContext): ShareInvitation => { @@ -4711,7 +4726,7 @@ const deserializeAws_restJson1ShareInvitationSummaries = ( output: any, context: __SerdeContext ): ShareInvitationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4719,6 +4734,7 @@ const deserializeAws_restJson1ShareInvitationSummaries = ( } return deserializeAws_restJson1ShareInvitationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1ShareInvitationSummary = ( @@ -4764,7 +4780,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4772,6 +4788,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeAws_restJson1VersionDifferences = (output: any, context: __SerdeContext): VersionDifferences => { @@ -4839,7 +4856,7 @@ const deserializeAws_restJson1Workload = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1WorkloadAccountIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4847,10 +4864,11 @@ const deserializeAws_restJson1WorkloadAccountIds = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1WorkloadAwsRegions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4858,10 +4876,11 @@ const deserializeAws_restJson1WorkloadAwsRegions = (output: any, context: __Serd } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1WorkloadLenses = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4869,10 +4888,11 @@ const deserializeAws_restJson1WorkloadLenses = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1WorkloadNonAwsRegions = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4880,10 +4900,11 @@ const deserializeAws_restJson1WorkloadNonAwsRegions = (output: any, context: __S } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1WorkloadPillarPriorities = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4891,6 +4912,7 @@ const deserializeAws_restJson1WorkloadPillarPriorities = (output: any, context: } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1WorkloadShare = (output: any, context: __SerdeContext): WorkloadShare => { @@ -4909,7 +4931,7 @@ const deserializeAws_restJson1WorkloadShareSummaries = ( output: any, context: __SerdeContext ): WorkloadShareSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4917,6 +4939,7 @@ const deserializeAws_restJson1WorkloadShareSummaries = ( } return deserializeAws_restJson1WorkloadShareSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorkloadShareSummary = (output: any, context: __SerdeContext): WorkloadShareSummary => { @@ -4929,7 +4952,7 @@ const deserializeAws_restJson1WorkloadShareSummary = (output: any, context: __Se }; const deserializeAws_restJson1WorkloadSummaries = (output: any, context: __SerdeContext): WorkloadSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4937,6 +4960,7 @@ const deserializeAws_restJson1WorkloadSummaries = (output: any, context: __Serde } return deserializeAws_restJson1WorkloadSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1WorkloadSummary = (output: any, context: __SerdeContext): WorkloadSummary => { diff --git a/clients/client-wisdom/src/protocols/Aws_restJson1.ts b/clients/client-wisdom/src/protocols/Aws_restJson1.ts index 72590cc28df9..daec7cfeb27e 100644 --- a/clients/client-wisdom/src/protocols/Aws_restJson1.ts +++ b/clients/client-wisdom/src/protocols/Aws_restJson1.ts @@ -3125,7 +3125,7 @@ const deserializeAws_restJson1AssistantAssociationSummaryList = ( output: any, context: __SerdeContext ): AssistantAssociationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3133,6 +3133,7 @@ const deserializeAws_restJson1AssistantAssociationSummaryList = ( } return deserializeAws_restJson1AssistantAssociationSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssistantData = (output: any, context: __SerdeContext): AssistantData => { @@ -3155,7 +3156,7 @@ const deserializeAws_restJson1AssistantData = (output: any, context: __SerdeCont }; const deserializeAws_restJson1AssistantList = (output: any, context: __SerdeContext): AssistantSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3163,6 +3164,7 @@ const deserializeAws_restJson1AssistantList = (output: any, context: __SerdeCont } return deserializeAws_restJson1AssistantSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1AssistantSummary = (output: any, context: __SerdeContext): AssistantSummary => { @@ -3256,7 +3258,7 @@ const deserializeAws_restJson1ContentSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1ContentSummaryList = (output: any, context: __SerdeContext): ContentSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3264,6 +3266,7 @@ const deserializeAws_restJson1ContentSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1ContentSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Document = (output: any, context: __SerdeContext): Document => { @@ -3313,7 +3316,7 @@ const deserializeAws_restJson1Highlight = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1Highlights = (output: any, context: __SerdeContext): Highlight[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3321,6 +3324,7 @@ const deserializeAws_restJson1Highlights = (output: any, context: __SerdeContext } return deserializeAws_restJson1Highlight(entry, context); }); + return retVal; }; const deserializeAws_restJson1KnowledgeBaseAssociationData = ( @@ -3365,7 +3369,7 @@ const deserializeAws_restJson1KnowledgeBaseData = (output: any, context: __Serde }; const deserializeAws_restJson1KnowledgeBaseList = (output: any, context: __SerdeContext): KnowledgeBaseSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3373,6 +3377,7 @@ const deserializeAws_restJson1KnowledgeBaseList = (output: any, context: __Serde } return deserializeAws_restJson1KnowledgeBaseSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1KnowledgeBaseSummary = (output: any, context: __SerdeContext): KnowledgeBaseSummary => { @@ -3416,7 +3421,7 @@ const deserializeAws_restJson1NotifyRecommendationsReceivedErrorList = ( output: any, context: __SerdeContext ): NotifyRecommendationsReceivedError[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3424,10 +3429,11 @@ const deserializeAws_restJson1NotifyRecommendationsReceivedErrorList = ( } return deserializeAws_restJson1NotifyRecommendationsReceivedError(entry, context); }); + return retVal; }; const deserializeAws_restJson1ObjectFieldsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3435,10 +3441,11 @@ const deserializeAws_restJson1ObjectFieldsList = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1QueryResultsList = (output: any, context: __SerdeContext): ResultData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3446,6 +3453,7 @@ const deserializeAws_restJson1QueryResultsList = (output: any, context: __SerdeC } return deserializeAws_restJson1ResultData(entry, context); }); + return retVal; }; const deserializeAws_restJson1RecommendationData = (output: any, context: __SerdeContext): RecommendationData => { @@ -3461,7 +3469,7 @@ const deserializeAws_restJson1RecommendationData = (output: any, context: __Serd }; const deserializeAws_restJson1RecommendationIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3469,10 +3477,11 @@ const deserializeAws_restJson1RecommendationIdList = (output: any, context: __Se } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1RecommendationList = (output: any, context: __SerdeContext): RecommendationData[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3480,6 +3489,7 @@ const deserializeAws_restJson1RecommendationList = (output: any, context: __Serd } return deserializeAws_restJson1RecommendationData(entry, context); }); + return retVal; }; const deserializeAws_restJson1RenderingConfiguration = ( @@ -3525,7 +3535,7 @@ const deserializeAws_restJson1SessionData = (output: any, context: __SerdeContex }; const deserializeAws_restJson1SessionSummaries = (output: any, context: __SerdeContext): SessionSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3533,6 +3543,7 @@ const deserializeAws_restJson1SessionSummaries = (output: any, context: __SerdeC } return deserializeAws_restJson1SessionSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SessionSummary = (output: any, context: __SerdeContext): SessionSummary => { diff --git a/clients/client-workdocs/src/protocols/Aws_restJson1.ts b/clients/client-workdocs/src/protocols/Aws_restJson1.ts index 9ac87451e6d9..473b8f93c37d 100644 --- a/clients/client-workdocs/src/protocols/Aws_restJson1.ts +++ b/clients/client-workdocs/src/protocols/Aws_restJson1.ts @@ -4606,7 +4606,7 @@ const deserializeAws_restJson1Comment = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1CommentList = (output: any, context: __SerdeContext): Comment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4614,6 +4614,7 @@ const deserializeAws_restJson1CommentList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Comment(entry, context); }); + return retVal; }; const deserializeAws_restJson1CommentMetadata = (output: any, context: __SerdeContext): CommentMetadata => { @@ -4670,7 +4671,7 @@ const deserializeAws_restJson1DocumentMetadata = (output: any, context: __SerdeC }; const deserializeAws_restJson1DocumentMetadataList = (output: any, context: __SerdeContext): DocumentMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4678,6 +4679,7 @@ const deserializeAws_restJson1DocumentMetadataList = (output: any, context: __Se } return deserializeAws_restJson1DocumentMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1DocumentSourceUrlMap = ( @@ -4759,7 +4761,7 @@ const deserializeAws_restJson1DocumentVersionMetadataList = ( output: any, context: __SerdeContext ): DocumentVersionMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4767,10 +4769,11 @@ const deserializeAws_restJson1DocumentVersionMetadataList = ( } return deserializeAws_restJson1DocumentVersionMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1EntityIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4778,6 +4781,7 @@ const deserializeAws_restJson1EntityIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FolderMetadata = (output: any, context: __SerdeContext): FolderMetadata => { @@ -4806,7 +4810,7 @@ const deserializeAws_restJson1FolderMetadata = (output: any, context: __SerdeCon }; const deserializeAws_restJson1FolderMetadataList = (output: any, context: __SerdeContext): FolderMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4814,6 +4818,7 @@ const deserializeAws_restJson1FolderMetadataList = (output: any, context: __Serd } return deserializeAws_restJson1FolderMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1GroupMetadata = (output: any, context: __SerdeContext): GroupMetadata => { @@ -4824,7 +4829,7 @@ const deserializeAws_restJson1GroupMetadata = (output: any, context: __SerdeCont }; const deserializeAws_restJson1GroupMetadataList = (output: any, context: __SerdeContext): GroupMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4832,10 +4837,11 @@ const deserializeAws_restJson1GroupMetadataList = (output: any, context: __Serde } return deserializeAws_restJson1GroupMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1OrganizationUserList = (output: any, context: __SerdeContext): User[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4843,6 +4849,7 @@ const deserializeAws_restJson1OrganizationUserList = (output: any, context: __Se } return deserializeAws_restJson1User(entry, context); }); + return retVal; }; const deserializeAws_restJson1Participants = (output: any, context: __SerdeContext): Participants => { @@ -4866,7 +4873,7 @@ const deserializeAws_restJson1PermissionInfo = (output: any, context: __SerdeCon }; const deserializeAws_restJson1PermissionInfoList = (output: any, context: __SerdeContext): PermissionInfo[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4874,6 +4881,7 @@ const deserializeAws_restJson1PermissionInfoList = (output: any, context: __Serd } return deserializeAws_restJson1PermissionInfo(entry, context); }); + return retVal; }; const deserializeAws_restJson1Principal = (output: any, context: __SerdeContext): Principal => { @@ -4888,7 +4896,7 @@ const deserializeAws_restJson1Principal = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1PrincipalList = (output: any, context: __SerdeContext): Principal[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4896,6 +4904,7 @@ const deserializeAws_restJson1PrincipalList = (output: any, context: __SerdeCont } return deserializeAws_restJson1Principal(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResourceMetadata = (output: any, context: __SerdeContext): ResourceMetadata => { @@ -4933,7 +4942,7 @@ const deserializeAws_restJson1ResourcePathComponentList = ( output: any, context: __SerdeContext ): ResourcePathComponent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4941,10 +4950,11 @@ const deserializeAws_restJson1ResourcePathComponentList = ( } return deserializeAws_restJson1ResourcePathComponent(entry, context); }); + return retVal; }; const deserializeAws_restJson1SharedLabels = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4952,6 +4962,7 @@ const deserializeAws_restJson1SharedLabels = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ShareResult = (output: any, context: __SerdeContext): ShareResult => { @@ -4966,7 +4977,7 @@ const deserializeAws_restJson1ShareResult = (output: any, context: __SerdeContex }; const deserializeAws_restJson1ShareResultsList = (output: any, context: __SerdeContext): ShareResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4974,6 +4985,7 @@ const deserializeAws_restJson1ShareResultsList = (output: any, context: __SerdeC } return deserializeAws_restJson1ShareResult(entry, context); }); + return retVal; }; const deserializeAws_restJson1SignedHeaderMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -5004,7 +5016,7 @@ const deserializeAws_restJson1Subscription = (output: any, context: __SerdeConte }; const deserializeAws_restJson1SubscriptionList = (output: any, context: __SerdeContext): Subscription[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5012,6 +5024,7 @@ const deserializeAws_restJson1SubscriptionList = (output: any, context: __SerdeC } return deserializeAws_restJson1Subscription(entry, context); }); + return retVal; }; const deserializeAws_restJson1UploadMetadata = (output: any, context: __SerdeContext): UploadMetadata => { @@ -5054,7 +5067,7 @@ const deserializeAws_restJson1User = (output: any, context: __SerdeContext): Use }; const deserializeAws_restJson1UserActivities = (output: any, context: __SerdeContext): Activity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5062,6 +5075,7 @@ const deserializeAws_restJson1UserActivities = (output: any, context: __SerdeCon } return deserializeAws_restJson1Activity(entry, context); }); + return retVal; }; const deserializeAws_restJson1UserMetadata = (output: any, context: __SerdeContext): UserMetadata => { @@ -5075,7 +5089,7 @@ const deserializeAws_restJson1UserMetadata = (output: any, context: __SerdeConte }; const deserializeAws_restJson1UserMetadataList = (output: any, context: __SerdeContext): UserMetadata[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5083,6 +5097,7 @@ const deserializeAws_restJson1UserMetadataList = (output: any, context: __SerdeC } return deserializeAws_restJson1UserMetadata(entry, context); }); + return retVal; }; const deserializeAws_restJson1UserStorageMetadata = (output: any, context: __SerdeContext): UserStorageMetadata => { diff --git a/clients/client-worklink/src/protocols/Aws_restJson1.ts b/clients/client-worklink/src/protocols/Aws_restJson1.ts index 61ae85f63c19..5469c6dc2083 100644 --- a/clients/client-worklink/src/protocols/Aws_restJson1.ts +++ b/clients/client-worklink/src/protocols/Aws_restJson1.ts @@ -3026,7 +3026,7 @@ const deserializeAws_restJson1DeviceSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DeviceSummaryList = (output: any, context: __SerdeContext): DeviceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3034,6 +3034,7 @@ const deserializeAws_restJson1DeviceSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1DeviceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1DomainSummary = (output: any, context: __SerdeContext): DomainSummary => { @@ -3049,7 +3050,7 @@ const deserializeAws_restJson1DomainSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1DomainSummaryList = (output: any, context: __SerdeContext): DomainSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3057,6 +3058,7 @@ const deserializeAws_restJson1DomainSummaryList = (output: any, context: __Serde } return deserializeAws_restJson1DomainSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1FleetSummary = (output: any, context: __SerdeContext): FleetSummary => { @@ -3082,7 +3084,7 @@ const deserializeAws_restJson1FleetSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1FleetSummaryList = (output: any, context: __SerdeContext): FleetSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3090,10 +3092,11 @@ const deserializeAws_restJson1FleetSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1FleetSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3101,10 +3104,11 @@ const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeC } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3112,6 +3116,7 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -3130,7 +3135,7 @@ const deserializeAws_restJson1WebsiteAuthorizationProvidersSummaryList = ( output: any, context: __SerdeContext ): WebsiteAuthorizationProviderSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3138,6 +3143,7 @@ const deserializeAws_restJson1WebsiteAuthorizationProvidersSummaryList = ( } return deserializeAws_restJson1WebsiteAuthorizationProviderSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1WebsiteAuthorizationProviderSummary = ( @@ -3167,7 +3173,7 @@ const deserializeAws_restJson1WebsiteCaSummary = (output: any, context: __SerdeC }; const deserializeAws_restJson1WebsiteCaSummaryList = (output: any, context: __SerdeContext): WebsiteCaSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3175,6 +3181,7 @@ const deserializeAws_restJson1WebsiteCaSummaryList = (output: any, context: __Se } return deserializeAws_restJson1WebsiteCaSummary(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-workmail/src/protocols/Aws_json1_1.ts b/clients/client-workmail/src/protocols/Aws_json1_1.ts index 26af61f3a2f3..340b40e9676e 100644 --- a/clients/client-workmail/src/protocols/Aws_json1_1.ts +++ b/clients/client-workmail/src/protocols/Aws_json1_1.ts @@ -6258,7 +6258,7 @@ const deserializeAws_json1_1AccessControlRule = (output: any, context: __SerdeCo }; const deserializeAws_json1_1AccessControlRuleNameList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6266,10 +6266,11 @@ const deserializeAws_json1_1AccessControlRuleNameList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AccessControlRulesList = (output: any, context: __SerdeContext): AccessControlRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6277,10 +6278,11 @@ const deserializeAws_json1_1AccessControlRulesList = (output: any, context: __Se } return deserializeAws_json1_1AccessControlRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1ActionsList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6288,10 +6290,11 @@ const deserializeAws_json1_1ActionsList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Aliases = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6299,6 +6302,7 @@ const deserializeAws_json1_1Aliases = (output: any, context: __SerdeContext): st } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1AssociateDelegateToResourceResponse = ( @@ -6586,7 +6590,7 @@ const deserializeAws_json1_1DescribeUserResponse = (output: any, context: __Serd }; const deserializeAws_json1_1DeviceModelList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6594,10 +6598,11 @@ const deserializeAws_json1_1DeviceModelList = (output: any, context: __SerdeCont } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeviceOperatingSystemList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6605,10 +6610,11 @@ const deserializeAws_json1_1DeviceOperatingSystemList = (output: any, context: _ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeviceTypeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6616,10 +6622,11 @@ const deserializeAws_json1_1DeviceTypeList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DeviceUserAgentList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6627,6 +6634,7 @@ const deserializeAws_json1_1DeviceUserAgentList = (output: any, context: __Serde } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DirectoryInUseException = ( @@ -6679,7 +6687,7 @@ const deserializeAws_json1_1DnsRecord = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1DnsRecords = (output: any, context: __SerdeContext): DnsRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6687,6 +6695,7 @@ const deserializeAws_json1_1DnsRecords = (output: any, context: __SerdeContext): } return deserializeAws_json1_1DnsRecord(entry, context); }); + return retVal; }; const deserializeAws_json1_1EmailAddressInUseException = ( @@ -6731,7 +6740,7 @@ const deserializeAws_json1_1FolderConfiguration = (output: any, context: __Serde }; const deserializeAws_json1_1FolderConfigurations = (output: any, context: __SerdeContext): FolderConfiguration[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6739,6 +6748,7 @@ const deserializeAws_json1_1FolderConfigurations = (output: any, context: __Serd } return deserializeAws_json1_1FolderConfiguration(entry, context); }); + return retVal; }; const deserializeAws_json1_1GetAccessControlEffectResponse = ( @@ -6843,7 +6853,7 @@ const deserializeAws_json1_1Group = (output: any, context: __SerdeContext): Grou }; const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): Group[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6851,6 +6861,7 @@ const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): Gro } return deserializeAws_json1_1Group(entry, context); }); + return retVal; }; const deserializeAws_json1_1InvalidConfigurationException = ( @@ -6890,7 +6901,7 @@ const deserializeAws_json1_1InvalidPasswordException = ( }; const deserializeAws_json1_1IpRangeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6898,10 +6909,11 @@ const deserializeAws_json1_1IpRangeList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Jobs = (output: any, context: __SerdeContext): MailboxExportJob[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6909,6 +6921,7 @@ const deserializeAws_json1_1Jobs = (output: any, context: __SerdeContext): Mailb } return deserializeAws_json1_1MailboxExportJob(entry, context); }); + return retVal; }; const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { @@ -7121,7 +7134,7 @@ const deserializeAws_json1_1MailDomainNotFoundException = ( }; const deserializeAws_json1_1MailDomains = (output: any, context: __SerdeContext): MailDomainSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7129,6 +7142,7 @@ const deserializeAws_json1_1MailDomains = (output: any, context: __SerdeContext) } return deserializeAws_json1_1MailDomainSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1MailDomainStateException = ( @@ -7165,7 +7179,7 @@ const deserializeAws_json1_1Member = (output: any, context: __SerdeContext): Mem }; const deserializeAws_json1_1Members = (output: any, context: __SerdeContext): Member[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7173,6 +7187,7 @@ const deserializeAws_json1_1Members = (output: any, context: __SerdeContext): Me } return deserializeAws_json1_1Member(entry, context); }); + return retVal; }; const deserializeAws_json1_1MobileDeviceAccessMatchedRule = ( @@ -7189,7 +7204,7 @@ const deserializeAws_json1_1MobileDeviceAccessMatchedRuleList = ( output: any, context: __SerdeContext ): MobileDeviceAccessMatchedRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7197,6 +7212,7 @@ const deserializeAws_json1_1MobileDeviceAccessMatchedRuleList = ( } return deserializeAws_json1_1MobileDeviceAccessMatchedRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1MobileDeviceAccessOverride = ( @@ -7223,7 +7239,7 @@ const deserializeAws_json1_1MobileDeviceAccessOverridesList = ( output: any, context: __SerdeContext ): MobileDeviceAccessOverride[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7231,6 +7247,7 @@ const deserializeAws_json1_1MobileDeviceAccessOverridesList = ( } return deserializeAws_json1_1MobileDeviceAccessOverride(entry, context); }); + return retVal; }; const deserializeAws_json1_1MobileDeviceAccessRule = (output: any, context: __SerdeContext): MobileDeviceAccessRule => { @@ -7286,7 +7303,7 @@ const deserializeAws_json1_1MobileDeviceAccessRulesList = ( output: any, context: __SerdeContext ): MobileDeviceAccessRule[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7294,6 +7311,7 @@ const deserializeAws_json1_1MobileDeviceAccessRulesList = ( } return deserializeAws_json1_1MobileDeviceAccessRule(entry, context); }); + return retVal; }; const deserializeAws_json1_1NameAvailabilityException = ( @@ -7324,7 +7342,7 @@ const deserializeAws_json1_1OrganizationStateException = ( }; const deserializeAws_json1_1OrganizationSummaries = (output: any, context: __SerdeContext): OrganizationSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7332,6 +7350,7 @@ const deserializeAws_json1_1OrganizationSummaries = (output: any, context: __Ser } return deserializeAws_json1_1OrganizationSummary(entry, context); }); + return retVal; }; const deserializeAws_json1_1OrganizationSummary = (output: any, context: __SerdeContext): OrganizationSummary => { @@ -7356,7 +7375,7 @@ const deserializeAws_json1_1Permission = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1Permissions = (output: any, context: __SerdeContext): Permission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7364,10 +7383,11 @@ const deserializeAws_json1_1Permissions = (output: any, context: __SerdeContext) } return deserializeAws_json1_1Permission(entry, context); }); + return retVal; }; const deserializeAws_json1_1PermissionValues = (output: any, context: __SerdeContext): (PermissionType | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7375,6 +7395,7 @@ const deserializeAws_json1_1PermissionValues = (output: any, context: __SerdeCon } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1PutAccessControlRuleResponse = ( @@ -7462,7 +7483,7 @@ const deserializeAws_json1_1Resource = (output: any, context: __SerdeContext): R }; const deserializeAws_json1_1ResourceDelegates = (output: any, context: __SerdeContext): Delegate[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7470,6 +7491,7 @@ const deserializeAws_json1_1ResourceDelegates = (output: any, context: __SerdeCo } return deserializeAws_json1_1Delegate(entry, context); }); + return retVal; }; const deserializeAws_json1_1ResourceNotFoundException = ( @@ -7482,7 +7504,7 @@ const deserializeAws_json1_1ResourceNotFoundException = ( }; const deserializeAws_json1_1Resources = (output: any, context: __SerdeContext): Resource[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7490,6 +7512,7 @@ const deserializeAws_json1_1Resources = (output: any, context: __SerdeContext): } return deserializeAws_json1_1Resource(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartMailboxExportJobResponse = ( @@ -7509,7 +7532,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7517,6 +7540,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => { @@ -7594,7 +7618,7 @@ const deserializeAws_json1_1User = (output: any, context: __SerdeContext): User }; const deserializeAws_json1_1UserIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7602,10 +7626,11 @@ const deserializeAws_json1_1UserIdList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Users = (output: any, context: __SerdeContext): User[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7613,6 +7638,7 @@ const deserializeAws_json1_1Users = (output: any, context: __SerdeContext): User } return deserializeAws_json1_1User(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts b/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts index 6aac34f9ee7d..27cb74247058 100644 --- a/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts +++ b/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts @@ -4493,7 +4493,7 @@ const serializeAws_restJson1TagList = (input: Tag[], context: __SerdeContext): a }; const deserializeAws_restJson1ArnList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4501,6 +4501,7 @@ const deserializeAws_restJson1ArnList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1BrowserSettings = (output: any, context: __SerdeContext): BrowserSettings => { @@ -4518,7 +4519,7 @@ const deserializeAws_restJson1BrowserSettingsList = ( output: any, context: __SerdeContext ): BrowserSettingsSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4526,6 +4527,7 @@ const deserializeAws_restJson1BrowserSettingsList = ( } return deserializeAws_restJson1BrowserSettingsSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1BrowserSettingsSummary = ( @@ -4571,7 +4573,7 @@ const deserializeAws_restJson1CertificateSummary = (output: any, context: __Serd }; const deserializeAws_restJson1CertificateSummaryList = (output: any, context: __SerdeContext): CertificateSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4579,6 +4581,7 @@ const deserializeAws_restJson1CertificateSummaryList = (output: any, context: __ } return deserializeAws_restJson1CertificateSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1IdentityProvider = (output: any, context: __SerdeContext): IdentityProvider => { @@ -4612,7 +4615,7 @@ const deserializeAws_restJson1IdentityProviderList = ( output: any, context: __SerdeContext ): IdentityProviderSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4620,6 +4623,7 @@ const deserializeAws_restJson1IdentityProviderList = ( } return deserializeAws_restJson1IdentityProviderSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1IdentityProviderSummary = ( @@ -4656,7 +4660,7 @@ const deserializeAws_restJson1NetworkSettingsList = ( output: any, context: __SerdeContext ): NetworkSettingsSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4664,6 +4668,7 @@ const deserializeAws_restJson1NetworkSettingsList = ( } return deserializeAws_restJson1NetworkSettingsSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1NetworkSettingsSummary = ( @@ -4697,7 +4702,7 @@ const deserializeAws_restJson1Portal = (output: any, context: __SerdeContext): P }; const deserializeAws_restJson1PortalList = (output: any, context: __SerdeContext): PortalSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4705,6 +4710,7 @@ const deserializeAws_restJson1PortalList = (output: any, context: __SerdeContext } return deserializeAws_restJson1PortalSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1PortalSummary = (output: any, context: __SerdeContext): PortalSummary => { @@ -4727,7 +4733,7 @@ const deserializeAws_restJson1PortalSummary = (output: any, context: __SerdeCont }; const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4735,10 +4741,11 @@ const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __Ser } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4746,6 +4753,7 @@ const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag => { @@ -4756,7 +4764,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4764,6 +4772,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TrustStore = (output: any, context: __SerdeContext): TrustStore => { @@ -4783,7 +4792,7 @@ const deserializeAws_restJson1TrustStoreSummary = (output: any, context: __Serde }; const deserializeAws_restJson1TrustStoreSummaryList = (output: any, context: __SerdeContext): TrustStoreSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4791,6 +4800,7 @@ const deserializeAws_restJson1TrustStoreSummaryList = (output: any, context: __S } return deserializeAws_restJson1TrustStoreSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1UserSettings = (output: any, context: __SerdeContext): UserSettings => { @@ -4809,7 +4819,7 @@ const deserializeAws_restJson1UserSettings = (output: any, context: __SerdeConte }; const deserializeAws_restJson1UserSettingsList = (output: any, context: __SerdeContext): UserSettingsSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4817,6 +4827,7 @@ const deserializeAws_restJson1UserSettingsList = (output: any, context: __SerdeC } return deserializeAws_restJson1UserSettingsSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1UserSettingsSummary = (output: any, context: __SerdeContext): UserSettingsSummary => { @@ -4844,7 +4855,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( output: any, context: __SerdeContext ): ValidationExceptionField[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -4852,6 +4863,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( } return deserializeAws_restJson1ValidationExceptionField(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-workspaces/src/protocols/Aws_json1_1.ts b/clients/client-workspaces/src/protocols/Aws_json1_1.ts index e63b96ab73f7..8c6d322636d9 100644 --- a/clients/client-workspaces/src/protocols/Aws_json1_1.ts +++ b/clients/client-workspaces/src/protocols/Aws_json1_1.ts @@ -5271,7 +5271,7 @@ const deserializeAws_json1_1AccountModification = (output: any, context: __Serde }; const deserializeAws_json1_1AccountModificationList = (output: any, context: __SerdeContext): AccountModification[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5279,6 +5279,7 @@ const deserializeAws_json1_1AccountModificationList = (output: any, context: __S } return deserializeAws_json1_1AccountModification(entry, context); }); + return retVal; }; const deserializeAws_json1_1AssociateConnectionAliasResult = ( @@ -5302,7 +5303,7 @@ const deserializeAws_json1_1AuthorizeIpRulesResult = (output: any, context: __Se }; const deserializeAws_json1_1BundleList = (output: any, context: __SerdeContext): WorkspaceBundle[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5310,6 +5311,7 @@ const deserializeAws_json1_1BundleList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1WorkspaceBundle(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClientProperties = (output: any, context: __SerdeContext): ClientProperties => { @@ -5319,7 +5321,7 @@ const deserializeAws_json1_1ClientProperties = (output: any, context: __SerdeCon }; const deserializeAws_json1_1ClientPropertiesList = (output: any, context: __SerdeContext): ClientPropertiesResult[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5327,6 +5329,7 @@ const deserializeAws_json1_1ClientPropertiesList = (output: any, context: __Serd } return deserializeAws_json1_1ClientPropertiesResult(entry, context); }); + return retVal; }; const deserializeAws_json1_1ClientPropertiesResult = (output: any, context: __SerdeContext): ClientPropertiesResult => { @@ -5355,7 +5358,7 @@ const deserializeAws_json1_1ConnectClientAddIn = (output: any, context: __SerdeC }; const deserializeAws_json1_1ConnectClientAddInList = (output: any, context: __SerdeContext): ConnectClientAddIn[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5363,6 +5366,7 @@ const deserializeAws_json1_1ConnectClientAddInList = (output: any, context: __Se } return deserializeAws_json1_1ConnectClientAddIn(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionAlias = (output: any, context: __SerdeContext): ConnectionAlias => { @@ -5394,7 +5398,7 @@ const deserializeAws_json1_1ConnectionAliasAssociationList = ( output: any, context: __SerdeContext ): ConnectionAliasAssociation[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5402,10 +5406,11 @@ const deserializeAws_json1_1ConnectionAliasAssociationList = ( } return deserializeAws_json1_1ConnectionAliasAssociation(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionAliasList = (output: any, context: __SerdeContext): ConnectionAlias[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5413,6 +5418,7 @@ const deserializeAws_json1_1ConnectionAliasList = (output: any, context: __Serde } return deserializeAws_json1_1ConnectionAlias(entry, context); }); + return retVal; }; const deserializeAws_json1_1ConnectionAliasPermission = ( @@ -5429,7 +5435,7 @@ const deserializeAws_json1_1ConnectionAliasPermissions = ( output: any, context: __SerdeContext ): ConnectionAliasPermission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5437,6 +5443,7 @@ const deserializeAws_json1_1ConnectionAliasPermissions = ( } return deserializeAws_json1_1ConnectionAliasPermission(entry, context); }); + return retVal; }; const deserializeAws_json1_1CopyWorkspaceImageResult = ( @@ -5511,7 +5518,7 @@ const deserializeAws_json1_1CreateWorkspacesResult = (output: any, context: __Se }; const deserializeAws_json1_1DedicatedTenancyCidrRangeList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5519,6 +5526,7 @@ const deserializeAws_json1_1DedicatedTenancyCidrRangeList = (output: any, contex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1DefaultWorkspaceCreationProperties = ( @@ -5765,7 +5773,7 @@ const deserializeAws_json1_1DescribeWorkspacesResult = ( }; const deserializeAws_json1_1DirectoryList = (output: any, context: __SerdeContext): WorkspaceDirectory[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5773,6 +5781,7 @@ const deserializeAws_json1_1DirectoryList = (output: any, context: __SerdeContex } return deserializeAws_json1_1WorkspaceDirectory(entry, context); }); + return retVal; }; const deserializeAws_json1_1DisassociateConnectionAliasResult = ( @@ -5790,7 +5799,7 @@ const deserializeAws_json1_1DisassociateIpGroupsResult = ( }; const deserializeAws_json1_1DnsIpAddresses = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5798,6 +5807,7 @@ const deserializeAws_json1_1DnsIpAddresses = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FailedCreateWorkspaceRequest = ( @@ -5818,7 +5828,7 @@ const deserializeAws_json1_1FailedCreateWorkspaceRequests = ( output: any, context: __SerdeContext ): FailedCreateWorkspaceRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5826,13 +5836,14 @@ const deserializeAws_json1_1FailedCreateWorkspaceRequests = ( } return deserializeAws_json1_1FailedCreateWorkspaceRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedRebootWorkspaceRequests = ( output: any, context: __SerdeContext ): FailedWorkspaceChangeRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5840,13 +5851,14 @@ const deserializeAws_json1_1FailedRebootWorkspaceRequests = ( } return deserializeAws_json1_1FailedWorkspaceChangeRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedRebuildWorkspaceRequests = ( output: any, context: __SerdeContext ): FailedWorkspaceChangeRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5854,13 +5866,14 @@ const deserializeAws_json1_1FailedRebuildWorkspaceRequests = ( } return deserializeAws_json1_1FailedWorkspaceChangeRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedStartWorkspaceRequests = ( output: any, context: __SerdeContext ): FailedWorkspaceChangeRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5868,13 +5881,14 @@ const deserializeAws_json1_1FailedStartWorkspaceRequests = ( } return deserializeAws_json1_1FailedWorkspaceChangeRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedStopWorkspaceRequests = ( output: any, context: __SerdeContext ): FailedWorkspaceChangeRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5882,13 +5896,14 @@ const deserializeAws_json1_1FailedStopWorkspaceRequests = ( } return deserializeAws_json1_1FailedWorkspaceChangeRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedTerminateWorkspaceRequests = ( output: any, context: __SerdeContext ): FailedWorkspaceChangeRequest[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5896,6 +5911,7 @@ const deserializeAws_json1_1FailedTerminateWorkspaceRequests = ( } return deserializeAws_json1_1FailedWorkspaceChangeRequest(entry, context); }); + return retVal; }; const deserializeAws_json1_1FailedWorkspaceChangeRequest = ( @@ -5916,7 +5932,7 @@ const deserializeAws_json1_1ImagePermission = (output: any, context: __SerdeCont }; const deserializeAws_json1_1ImagePermissions = (output: any, context: __SerdeContext): ImagePermission[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5924,6 +5940,7 @@ const deserializeAws_json1_1ImagePermissions = (output: any, context: __SerdeCon } return deserializeAws_json1_1ImagePermission(entry, context); }); + return retVal; }; const deserializeAws_json1_1ImportWorkspaceImageResult = ( @@ -5954,7 +5971,7 @@ const deserializeAws_json1_1InvalidResourceStateException = ( }; const deserializeAws_json1_1IpGroupIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5962,6 +5979,7 @@ const deserializeAws_json1_1IpGroupIdList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1IpRuleItem = (output: any, context: __SerdeContext): IpRuleItem => { @@ -5972,7 +5990,7 @@ const deserializeAws_json1_1IpRuleItem = (output: any, context: __SerdeContext): }; const deserializeAws_json1_1IpRuleList = (output: any, context: __SerdeContext): IpRuleItem[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -5980,6 +5998,7 @@ const deserializeAws_json1_1IpRuleList = (output: any, context: __SerdeContext): } return deserializeAws_json1_1IpRuleItem(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListAvailableManagementCidrRangesResult = ( @@ -6010,7 +6029,7 @@ const deserializeAws_json1_1ModificationState = (output: any, context: __SerdeCo }; const deserializeAws_json1_1ModificationStateList = (output: any, context: __SerdeContext): ModificationState[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6018,6 +6037,7 @@ const deserializeAws_json1_1ModificationStateList = (output: any, context: __Ser } return deserializeAws_json1_1ModificationState(entry, context); }); + return retVal; }; const deserializeAws_json1_1ModifyAccountResult = (output: any, context: __SerdeContext): ModifyAccountResult => { @@ -6208,7 +6228,7 @@ const deserializeAws_json1_1Snapshot = (output: any, context: __SerdeContext): S }; const deserializeAws_json1_1SnapshotList = (output: any, context: __SerdeContext): Snapshot[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6216,6 +6236,7 @@ const deserializeAws_json1_1SnapshotList = (output: any, context: __SerdeContext } return deserializeAws_json1_1Snapshot(entry, context); }); + return retVal; }; const deserializeAws_json1_1StartWorkspacesResult = (output: any, context: __SerdeContext): StartWorkspacesResult => { @@ -6237,7 +6258,7 @@ const deserializeAws_json1_1StopWorkspacesResult = (output: any, context: __Serd }; const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6245,6 +6266,7 @@ const deserializeAws_json1_1SubnetIds = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => { @@ -6255,7 +6277,7 @@ const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => }; const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6263,6 +6285,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta } return deserializeAws_json1_1Tag(entry, context); }); + return retVal; }; const deserializeAws_json1_1TerminateWorkspacesResult = ( @@ -6437,7 +6460,7 @@ const deserializeAws_json1_1WorkspaceConnectionStatusList = ( output: any, context: __SerdeContext ): WorkspaceConnectionStatus[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6445,6 +6468,7 @@ const deserializeAws_json1_1WorkspaceConnectionStatusList = ( } return deserializeAws_json1_1WorkspaceConnectionStatus(entry, context); }); + return retVal; }; const deserializeAws_json1_1WorkspaceDirectory = (output: any, context: __SerdeContext): WorkspaceDirectory => { @@ -6512,7 +6536,7 @@ const deserializeAws_json1_1WorkspaceImage = (output: any, context: __SerdeConte }; const deserializeAws_json1_1WorkspaceImageList = (output: any, context: __SerdeContext): WorkspaceImage[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6520,10 +6544,11 @@ const deserializeAws_json1_1WorkspaceImageList = (output: any, context: __SerdeC } return deserializeAws_json1_1WorkspaceImage(entry, context); }); + return retVal; }; const deserializeAws_json1_1WorkspaceList = (output: any, context: __SerdeContext): Workspace[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6531,6 +6556,7 @@ const deserializeAws_json1_1WorkspaceList = (output: any, context: __SerdeContex } return deserializeAws_json1_1Workspace(entry, context); }); + return retVal; }; const deserializeAws_json1_1WorkspaceProperties = (output: any, context: __SerdeContext): WorkspaceProperties => { @@ -6584,7 +6610,7 @@ const deserializeAws_json1_1WorkspacesIpGroup = (output: any, context: __SerdeCo }; const deserializeAws_json1_1WorkspacesIpGroupsList = (output: any, context: __SerdeContext): WorkspacesIpGroup[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -6592,6 +6618,7 @@ const deserializeAws_json1_1WorkspacesIpGroupsList = (output: any, context: __Se } return deserializeAws_json1_1WorkspacesIpGroup(entry, context); }); + return retVal; }; const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ diff --git a/clients/client-xray/src/protocols/Aws_restJson1.ts b/clients/client-xray/src/protocols/Aws_restJson1.ts index daf62b95ee5e..074cf7fdf937 100644 --- a/clients/client-xray/src/protocols/Aws_restJson1.ts +++ b/clients/client-xray/src/protocols/Aws_restJson1.ts @@ -2566,7 +2566,7 @@ const deserializeAws_restJson1Alias = (output: any, context: __SerdeContext): Al }; const deserializeAws_restJson1AliasList = (output: any, context: __SerdeContext): Alias[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2574,10 +2574,11 @@ const deserializeAws_restJson1AliasList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Alias(entry, context); }); + return retVal; }; const deserializeAws_restJson1AliasNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2585,6 +2586,7 @@ const deserializeAws_restJson1AliasNames = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1Annotations = ( @@ -2625,7 +2627,7 @@ const deserializeAws_restJson1AnomalousService = (output: any, context: __SerdeC }; const deserializeAws_restJson1AnomalousServiceList = (output: any, context: __SerdeContext): AnomalousService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2633,6 +2635,7 @@ const deserializeAws_restJson1AnomalousServiceList = (output: any, context: __Se } return deserializeAws_restJson1AnomalousService(entry, context); }); + return retVal; }; const deserializeAws_restJson1AttributeMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -2683,7 +2686,7 @@ const deserializeAws_restJson1Edge = (output: any, context: __SerdeContext): Edg }; const deserializeAws_restJson1EdgeList = (output: any, context: __SerdeContext): Edge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2691,6 +2694,7 @@ const deserializeAws_restJson1EdgeList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Edge(entry, context); }); + return retVal; }; const deserializeAws_restJson1EdgeStatistics = (output: any, context: __SerdeContext): EdgeStatistics => { @@ -2742,7 +2746,7 @@ const deserializeAws_restJson1ErrorRootCauseEntityPath = ( output: any, context: __SerdeContext ): ErrorRootCauseEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2750,10 +2754,11 @@ const deserializeAws_restJson1ErrorRootCauseEntityPath = ( } return deserializeAws_restJson1ErrorRootCauseEntity(entry, context); }); + return retVal; }; const deserializeAws_restJson1ErrorRootCauses = (output: any, context: __SerdeContext): ErrorRootCause[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2761,6 +2766,7 @@ const deserializeAws_restJson1ErrorRootCauses = (output: any, context: __SerdeCo } return deserializeAws_restJson1ErrorRootCause(entry, context); }); + return retVal; }; const deserializeAws_restJson1ErrorRootCauseService = (output: any, context: __SerdeContext): ErrorRootCauseService => { @@ -2784,7 +2790,7 @@ const deserializeAws_restJson1ErrorRootCauseServices = ( output: any, context: __SerdeContext ): ErrorRootCauseService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2792,6 +2798,7 @@ const deserializeAws_restJson1ErrorRootCauseServices = ( } return deserializeAws_restJson1ErrorRootCauseService(entry, context); }); + return retVal; }; const deserializeAws_restJson1ErrorStatistics = (output: any, context: __SerdeContext): ErrorStatistics => { @@ -2827,7 +2834,7 @@ const deserializeAws_restJson1FaultRootCauseEntityPath = ( output: any, context: __SerdeContext ): FaultRootCauseEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2835,10 +2842,11 @@ const deserializeAws_restJson1FaultRootCauseEntityPath = ( } return deserializeAws_restJson1FaultRootCauseEntity(entry, context); }); + return retVal; }; const deserializeAws_restJson1FaultRootCauses = (output: any, context: __SerdeContext): FaultRootCause[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2846,6 +2854,7 @@ const deserializeAws_restJson1FaultRootCauses = (output: any, context: __SerdeCo } return deserializeAws_restJson1FaultRootCause(entry, context); }); + return retVal; }; const deserializeAws_restJson1FaultRootCauseService = (output: any, context: __SerdeContext): FaultRootCauseService => { @@ -2869,7 +2878,7 @@ const deserializeAws_restJson1FaultRootCauseServices = ( output: any, context: __SerdeContext ): FaultRootCauseService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2877,6 +2886,7 @@ const deserializeAws_restJson1FaultRootCauseServices = ( } return deserializeAws_restJson1FaultRootCauseService(entry, context); }); + return retVal; }; const deserializeAws_restJson1FaultStatistics = (output: any, context: __SerdeContext): FaultStatistics => { @@ -2918,7 +2928,7 @@ const deserializeAws_restJson1GroupSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1GroupSummaryList = (output: any, context: __SerdeContext): GroupSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2926,10 +2936,11 @@ const deserializeAws_restJson1GroupSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1GroupSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1Histogram = (output: any, context: __SerdeContext): HistogramEntry[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -2937,6 +2948,7 @@ const deserializeAws_restJson1Histogram = (output: any, context: __SerdeContext) } return deserializeAws_restJson1HistogramEntry(entry, context); }); + return retVal; }; const deserializeAws_restJson1HistogramEntry = (output: any, context: __SerdeContext): HistogramEntry => { @@ -2999,7 +3011,7 @@ const deserializeAws_restJson1InsightCategoryList = ( output: any, context: __SerdeContext ): (InsightCategory | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3007,6 +3019,7 @@ const deserializeAws_restJson1InsightCategoryList = ( } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1InsightEvent = (output: any, context: __SerdeContext): InsightEvent => { @@ -3033,7 +3046,7 @@ const deserializeAws_restJson1InsightEvent = (output: any, context: __SerdeConte }; const deserializeAws_restJson1InsightEventList = (output: any, context: __SerdeContext): InsightEvent[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3041,6 +3054,7 @@ const deserializeAws_restJson1InsightEventList = (output: any, context: __SerdeC } return deserializeAws_restJson1InsightEvent(entry, context); }); + return retVal; }; const deserializeAws_restJson1InsightImpactGraphEdge = ( @@ -3056,7 +3070,7 @@ const deserializeAws_restJson1InsightImpactGraphEdgeList = ( output: any, context: __SerdeContext ): InsightImpactGraphEdge[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3064,6 +3078,7 @@ const deserializeAws_restJson1InsightImpactGraphEdgeList = ( } return deserializeAws_restJson1InsightImpactGraphEdge(entry, context); }); + return retVal; }; const deserializeAws_restJson1InsightImpactGraphService = ( @@ -3090,7 +3105,7 @@ const deserializeAws_restJson1InsightImpactGraphServiceList = ( output: any, context: __SerdeContext ): InsightImpactGraphService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3098,6 +3113,7 @@ const deserializeAws_restJson1InsightImpactGraphServiceList = ( } return deserializeAws_restJson1InsightImpactGraphService(entry, context); }); + return retVal; }; const deserializeAws_restJson1InsightsConfiguration = (output: any, context: __SerdeContext): InsightsConfiguration => { @@ -3151,7 +3167,7 @@ const deserializeAws_restJson1InsightSummary = (output: any, context: __SerdeCon }; const deserializeAws_restJson1InsightSummaryList = (output: any, context: __SerdeContext): InsightSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3159,6 +3175,7 @@ const deserializeAws_restJson1InsightSummaryList = (output: any, context: __Serd } return deserializeAws_restJson1InsightSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1InstanceIdDetail = (output: any, context: __SerdeContext): InstanceIdDetail => { @@ -3209,7 +3226,7 @@ const deserializeAws_restJson1ResponseTimeRootCauseEntityPath = ( output: any, context: __SerdeContext ): ResponseTimeRootCauseEntity[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3217,13 +3234,14 @@ const deserializeAws_restJson1ResponseTimeRootCauseEntityPath = ( } return deserializeAws_restJson1ResponseTimeRootCauseEntity(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResponseTimeRootCauses = ( output: any, context: __SerdeContext ): ResponseTimeRootCause[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3231,6 +3249,7 @@ const deserializeAws_restJson1ResponseTimeRootCauses = ( } return deserializeAws_restJson1ResponseTimeRootCause(entry, context); }); + return retVal; }; const deserializeAws_restJson1ResponseTimeRootCauseService = ( @@ -3257,7 +3276,7 @@ const deserializeAws_restJson1ResponseTimeRootCauseServices = ( output: any, context: __SerdeContext ): ResponseTimeRootCauseService[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3265,6 +3284,7 @@ const deserializeAws_restJson1ResponseTimeRootCauseServices = ( } return deserializeAws_restJson1ResponseTimeRootCauseService(entry, context); }); + return retVal; }; const deserializeAws_restJson1RootCauseException = (output: any, context: __SerdeContext): RootCauseException => { @@ -3275,7 +3295,7 @@ const deserializeAws_restJson1RootCauseException = (output: any, context: __Serd }; const deserializeAws_restJson1RootCauseExceptions = (output: any, context: __SerdeContext): RootCauseException[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3283,6 +3303,7 @@ const deserializeAws_restJson1RootCauseExceptions = (output: any, context: __Ser } return deserializeAws_restJson1RootCauseException(entry, context); }); + return retVal; }; const deserializeAws_restJson1SamplingRule = (output: any, context: __SerdeContext): SamplingRule => { @@ -3324,7 +3345,7 @@ const deserializeAws_restJson1SamplingRuleRecord = (output: any, context: __Serd }; const deserializeAws_restJson1SamplingRuleRecordList = (output: any, context: __SerdeContext): SamplingRuleRecord[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3332,6 +3353,7 @@ const deserializeAws_restJson1SamplingRuleRecordList = (output: any, context: __ } return deserializeAws_restJson1SamplingRuleRecord(entry, context); }); + return retVal; }; const deserializeAws_restJson1SamplingStatisticSummary = ( @@ -3354,7 +3376,7 @@ const deserializeAws_restJson1SamplingStatisticSummaryList = ( output: any, context: __SerdeContext ): SamplingStatisticSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3362,6 +3384,7 @@ const deserializeAws_restJson1SamplingStatisticSummaryList = ( } return deserializeAws_restJson1SamplingStatisticSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1SamplingTargetDocument = ( @@ -3384,7 +3407,7 @@ const deserializeAws_restJson1SamplingTargetDocumentList = ( output: any, context: __SerdeContext ): SamplingTargetDocument[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3392,6 +3415,7 @@ const deserializeAws_restJson1SamplingTargetDocumentList = ( } return deserializeAws_restJson1SamplingTargetDocument(entry, context); }); + return retVal; }; const deserializeAws_restJson1Segment = (output: any, context: __SerdeContext): Segment => { @@ -3402,7 +3426,7 @@ const deserializeAws_restJson1Segment = (output: any, context: __SerdeContext): }; const deserializeAws_restJson1SegmentList = (output: any, context: __SerdeContext): Segment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3410,6 +3434,7 @@ const deserializeAws_restJson1SegmentList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Segment(entry, context); }); + return retVal; }; const deserializeAws_restJson1Service = (output: any, context: __SerdeContext): Service => { @@ -3464,7 +3489,7 @@ const deserializeAws_restJson1ServiceId = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1ServiceIds = (output: any, context: __SerdeContext): ServiceId[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3472,10 +3497,11 @@ const deserializeAws_restJson1ServiceIds = (output: any, context: __SerdeContext } return deserializeAws_restJson1ServiceId(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServiceList = (output: any, context: __SerdeContext): Service[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3483,10 +3509,11 @@ const deserializeAws_restJson1ServiceList = (output: any, context: __SerdeContex } return deserializeAws_restJson1Service(entry, context); }); + return retVal; }; const deserializeAws_restJson1ServiceNames = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3494,6 +3521,7 @@ const deserializeAws_restJson1ServiceNames = (output: any, context: __SerdeConte } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1ServiceStatistics = (output: any, context: __SerdeContext): ServiceStatistics => { @@ -3520,7 +3548,7 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag }; const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3528,6 +3556,7 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): } return deserializeAws_restJson1Tag(entry, context); }); + return retVal; }; const deserializeAws_restJson1TimeSeriesServiceStatistics = ( @@ -3562,7 +3591,7 @@ const deserializeAws_restJson1TimeSeriesServiceStatisticsList = ( output: any, context: __SerdeContext ): TimeSeriesServiceStatistics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3570,6 +3599,7 @@ const deserializeAws_restJson1TimeSeriesServiceStatisticsList = ( } return deserializeAws_restJson1TimeSeriesServiceStatistics(entry, context); }); + return retVal; }; const deserializeAws_restJson1Trace = (output: any, context: __SerdeContext): Trace => { @@ -3588,7 +3618,7 @@ const deserializeAws_restJson1TraceAvailabilityZones = ( output: any, context: __SerdeContext ): AvailabilityZoneDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3596,10 +3626,11 @@ const deserializeAws_restJson1TraceAvailabilityZones = ( } return deserializeAws_restJson1AvailabilityZoneDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1TraceInstanceIds = (output: any, context: __SerdeContext): InstanceIdDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3607,10 +3638,11 @@ const deserializeAws_restJson1TraceInstanceIds = (output: any, context: __SerdeC } return deserializeAws_restJson1InstanceIdDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1TraceList = (output: any, context: __SerdeContext): Trace[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3618,10 +3650,11 @@ const deserializeAws_restJson1TraceList = (output: any, context: __SerdeContext) } return deserializeAws_restJson1Trace(entry, context); }); + return retVal; }; const deserializeAws_restJson1TraceResourceARNs = (output: any, context: __SerdeContext): ResourceARNDetail[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3629,6 +3662,7 @@ const deserializeAws_restJson1TraceResourceARNs = (output: any, context: __Serde } return deserializeAws_restJson1ResourceARNDetail(entry, context); }); + return retVal; }; const deserializeAws_restJson1TraceSummary = (output: any, context: __SerdeContext): TraceSummary => { @@ -3693,7 +3727,7 @@ const deserializeAws_restJson1TraceSummary = (output: any, context: __SerdeConte }; const deserializeAws_restJson1TraceSummaryList = (output: any, context: __SerdeContext): TraceSummary[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3701,6 +3735,7 @@ const deserializeAws_restJson1TraceSummaryList = (output: any, context: __SerdeC } return deserializeAws_restJson1TraceSummary(entry, context); }); + return retVal; }; const deserializeAws_restJson1TraceUser = (output: any, context: __SerdeContext): TraceUser => { @@ -3714,7 +3749,7 @@ const deserializeAws_restJson1TraceUser = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1TraceUsers = (output: any, context: __SerdeContext): TraceUser[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3722,6 +3757,7 @@ const deserializeAws_restJson1TraceUsers = (output: any, context: __SerdeContext } return deserializeAws_restJson1TraceUser(entry, context); }); + return retVal; }; const deserializeAws_restJson1UnprocessedStatistics = (output: any, context: __SerdeContext): UnprocessedStatistics => { @@ -3736,7 +3772,7 @@ const deserializeAws_restJson1UnprocessedStatisticsList = ( output: any, context: __SerdeContext ): UnprocessedStatistics[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3744,10 +3780,11 @@ const deserializeAws_restJson1UnprocessedStatisticsList = ( } return deserializeAws_restJson1UnprocessedStatistics(entry, context); }); + return retVal; }; const deserializeAws_restJson1UnprocessedTraceIdList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3755,6 +3792,7 @@ const deserializeAws_restJson1UnprocessedTraceIdList = (output: any, context: __ } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1UnprocessedTraceSegment = ( @@ -3772,7 +3810,7 @@ const deserializeAws_restJson1UnprocessedTraceSegmentList = ( output: any, context: __SerdeContext ): UnprocessedTraceSegment[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3780,10 +3818,11 @@ const deserializeAws_restJson1UnprocessedTraceSegmentList = ( } return deserializeAws_restJson1UnprocessedTraceSegment(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValuesWithServiceIds = (output: any, context: __SerdeContext): ValueWithServiceIds[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -3791,6 +3830,7 @@ const deserializeAws_restJson1ValuesWithServiceIds = (output: any, context: __Se } return deserializeAws_restJson1ValueWithServiceIds(entry, context); }); + return retVal; }; const deserializeAws_restJson1ValueWithServiceIds = (output: any, context: __SerdeContext): ValueWithServiceIds => { diff --git a/private/aws-protocoltests-json-10/src/protocols/Aws_json1_0.ts b/private/aws-protocoltests-json-10/src/protocols/Aws_json1_0.ts index e57e40eeae5b..35696b1ffa46 100644 --- a/private/aws-protocoltests-json-10/src/protocols/Aws_json1_0.ts +++ b/private/aws-protocoltests-json-10/src/protocols/Aws_json1_0.ts @@ -790,7 +790,7 @@ const deserializeAws_json1_0GreetingStruct = (output: any, context: __SerdeConte }; const deserializeAws_json1_0StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -798,6 +798,7 @@ const deserializeAws_json1_0StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_0StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/private/aws-protocoltests-json/src/protocols/Aws_json1_1.ts b/private/aws-protocoltests-json/src/protocols/Aws_json1_1.ts index d43bee493799..1ff57c1d86c1 100644 --- a/private/aws-protocoltests-json/src/protocols/Aws_json1_1.ts +++ b/private/aws-protocoltests-json/src/protocols/Aws_json1_1.ts @@ -1361,7 +1361,7 @@ const deserializeAws_json1_1KitchenSink = (output: any, context: __SerdeContext) }; const deserializeAws_json1_1ListOfKitchenSinks = (output: any, context: __SerdeContext): KitchenSink[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1369,10 +1369,11 @@ const deserializeAws_json1_1ListOfKitchenSinks = (output: any, context: __SerdeC } return deserializeAws_json1_1KitchenSink(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfListOfStrings = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1380,13 +1381,14 @@ const deserializeAws_json1_1ListOfListOfStrings = (output: any, context: __Serde } return deserializeAws_json1_1ListOfStrings(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfMapsOfStrings = ( output: any, context: __SerdeContext ): { [key: string]: string }[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1394,10 +1396,11 @@ const deserializeAws_json1_1ListOfMapsOfStrings = ( } return deserializeAws_json1_1MapOfStrings(entry, context); }); + return retVal; }; const deserializeAws_json1_1ListOfStrings = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1405,10 +1408,11 @@ const deserializeAws_json1_1ListOfStrings = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1ListOfStructs = (output: any, context: __SerdeContext): SimpleStruct[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1416,6 +1420,7 @@ const deserializeAws_json1_1ListOfStructs = (output: any, context: __SerdeContex } return deserializeAws_json1_1SimpleStruct(entry, context); }); + return retVal; }; const deserializeAws_json1_1MapOfKitchenSinks = ( @@ -1601,7 +1606,7 @@ const deserializeAws_json1_1UnionInputOutput = (output: any, context: __SerdeCon }; const deserializeAws_json1_1FooEnumList = (output: any, context: __SerdeContext): (FooEnum | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1609,6 +1614,7 @@ const deserializeAws_json1_1FooEnumList = (output: any, context: __SerdeContext) } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1FooEnumMap = ( @@ -1627,21 +1633,15 @@ const deserializeAws_json1_1FooEnumMap = ( }; const deserializeAws_json1_1FooEnumSet = (output: any, context: __SerdeContext): (FooEnum | string)[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = __expectString(entry) as any; - if (uniqueValues.has(parsedEntry)) { - throw new TypeError('All elements of the set "aws.protocoltests.shared#FooEnumSet" must be unique.'); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1GreetingStruct = (output: any, context: __SerdeContext): GreetingStruct => { @@ -1651,12 +1651,13 @@ const deserializeAws_json1_1GreetingStruct = (output: any, context: __SerdeConte }; const deserializeAws_json1_1SparseStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []).map((entry: any) => { + const retVal = (output || []).map((entry: any) => { if (entry === null) { return null as any; } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1SparseStringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -1672,7 +1673,7 @@ const deserializeAws_json1_1SparseStringMap = (output: any, context: __SerdeCont }; const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -1680,6 +1681,7 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { diff --git a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts index fedcfc929333..10e7e5061cf8 100644 --- a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts +++ b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts @@ -7166,7 +7166,7 @@ const deserializeAws_restJson1SparseStructMap = ( }; const deserializeAws_restJson1StructureList = (output: any, context: __SerdeContext): StructureListMember[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7174,6 +7174,7 @@ const deserializeAws_restJson1StructureList = (output: any, context: __SerdeCont } return deserializeAws_restJson1StructureListMember(entry, context); }); + return retVal; }; const deserializeAws_restJson1StructureListMember = (output: any, context: __SerdeContext): StructureListMember => { @@ -7196,7 +7197,7 @@ const deserializeAws_restJson1RenamedGreeting = (output: any, context: __SerdeCo }; const deserializeAws_restJson1BooleanList = (output: any, context: __SerdeContext): boolean[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7204,10 +7205,11 @@ const deserializeAws_restJson1BooleanList = (output: any, context: __SerdeContex } return __expectBoolean(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FooEnumList = (output: any, context: __SerdeContext): (FooEnum | string)[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7215,6 +7217,7 @@ const deserializeAws_restJson1FooEnumList = (output: any, context: __SerdeContex } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1FooEnumMap = ( @@ -7233,21 +7236,15 @@ const deserializeAws_restJson1FooEnumMap = ( }; const deserializeAws_restJson1FooEnumSet = (output: any, context: __SerdeContext): (FooEnum | string)[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = __expectString(entry) as any; - if (uniqueValues.has(parsedEntry)) { - throw new TypeError('All elements of the set "aws.protocoltests.shared#FooEnumSet" must be unique.'); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1GreetingStruct = (output: any, context: __SerdeContext): GreetingStruct => { @@ -7257,7 +7254,7 @@ const deserializeAws_restJson1GreetingStruct = (output: any, context: __SerdeCon }; const deserializeAws_restJson1IntegerList = (output: any, context: __SerdeContext): number[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7265,10 +7262,11 @@ const deserializeAws_restJson1IntegerList = (output: any, context: __SerdeContex } return __expectInt32(entry) as any; }); + return retVal; }; const deserializeAws_restJson1NestedStringList = (output: any, context: __SerdeContext): string[][] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7276,15 +7274,17 @@ const deserializeAws_restJson1NestedStringList = (output: any, context: __SerdeC } return deserializeAws_restJson1StringList(entry, context); }); + return retVal; }; const deserializeAws_restJson1SparseStringList = (output: any, context: __SerdeContext): string[] => { - return (output || []).map((entry: any) => { + const retVal = (output || []).map((entry: any) => { if (entry === null) { return null as any; } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1SparseStringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -7300,7 +7300,7 @@ const deserializeAws_restJson1SparseStringMap = (output: any, context: __SerdeCo }; const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext): string[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7308,6 +7308,7 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext } return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { @@ -7323,25 +7324,19 @@ const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext) }; const deserializeAws_restJson1StringSet = (output: any, context: __SerdeContext): string[] => { - const uniqueValues = new Set(); - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { return null as any; } - const parsedEntry = __expectString(entry) as any; - if (uniqueValues.has(parsedEntry)) { - throw new TypeError('All elements of the set "aws.protocoltests.shared#StringSet" must be unique.'); - } else { - uniqueValues.add(parsedEntry); - return parsedEntry; - } + return __expectString(entry) as any; }); + return retVal; }; const deserializeAws_restJson1TimestampList = (output: any, context: __SerdeContext): Date[] => { - return (output || []) + const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { if (entry === null) { @@ -7349,6 +7344,7 @@ const deserializeAws_restJson1TimestampList = (output: any, context: __SerdeCont } return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry))); }); + return retVal; }; const deserializeAws_restJson1Unit = (output: any, context: __SerdeContext): Unit => { diff --git a/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts b/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts index 1abe4790a87a..6feb1b25bc29 100644 --- a/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts +++ b/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts @@ -3378,8 +3378,8 @@ it("RestJsonInputAndOutputWithNumericHeaders:Response", async () => { ...clientParams, requestHandler: new ResponseDeserializationTestHandler(true, 200, { "x-float": "1.1", - "x-long": "123", "x-byte": "1", + "x-long": "123", "x-integer": "123", "x-integerlist": "1, 2, 3", "x-double": "1.1", @@ -8038,8 +8038,8 @@ it("RestJsonTimestampFormatHeaders:Response", async () => { requestHandler: new ResponseDeserializationTestHandler(true, 200, { "x-targetepochseconds": "1576540098", "x-memberdatetime": "2019-12-16T23:48:18Z", - "x-memberepochseconds": "1576540098", "x-defaultformat": "Mon, 16 Dec 2019 23:48:18 GMT", + "x-memberepochseconds": "1576540098", "x-targethttpdate": "Mon, 16 Dec 2019 23:48:18 GMT", "x-memberhttpdate": "Mon, 16 Dec 2019 23:48:18 GMT", "x-targetdatetime": "2019-12-16T23:48:18Z", diff --git a/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts b/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts index 6b8773637b6b..374769c694b1 100644 --- a/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts +++ b/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts @@ -2650,8 +2650,8 @@ it("InputAndOutputWithNumericHeaders:Response", async () => { 200, { "x-float": "1.1", - "x-long": "123", "x-byte": "1", + "x-long": "123", "x-integer": "123", "x-integerlist": "1, 2, 3", "x-double": "1.1", @@ -4445,8 +4445,8 @@ it("TimestampFormatHeaders:Response", async () => { { "x-targetepochseconds": "1576540098", "x-memberdatetime": "2019-12-16T23:48:18Z", - "x-memberepochseconds": "1576540098", "x-defaultformat": "Mon, 16 Dec 2019 23:48:18 GMT", + "x-memberepochseconds": "1576540098", "x-targethttpdate": "Mon, 16 Dec 2019 23:48:18 GMT", "x-memberhttpdate": "Mon, 16 Dec 2019 23:48:18 GMT", "x-targetdatetime": "2019-12-16T23:48:18Z",