@aws-sdk/client-lambda 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +526 -598
- package/dist-es/protocols/Aws_restJson1.js +435 -507
- package/package.json +27 -27
|
@@ -39,11 +39,10 @@ const serializeAws_restJson1AddLayerVersionPermissionCommand = async (input, con
|
|
|
39
39
|
};
|
|
40
40
|
let body;
|
|
41
41
|
body = JSON.stringify({
|
|
42
|
-
...(input.Action
|
|
43
|
-
...(input.OrganizationId
|
|
44
|
-
|
|
45
|
-
...(input.
|
|
46
|
-
...(input.StatementId !== undefined && input.StatementId !== null && { StatementId: input.StatementId }),
|
|
42
|
+
...(input.Action != null && { Action: input.Action }),
|
|
43
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
44
|
+
...(input.Principal != null && { Principal: input.Principal }),
|
|
45
|
+
...(input.StatementId != null && { StatementId: input.StatementId }),
|
|
47
46
|
});
|
|
48
47
|
return new protocol_http_1.HttpRequest({
|
|
49
48
|
protocol,
|
|
@@ -79,18 +78,15 @@ const serializeAws_restJson1AddPermissionCommand = async (input, context) => {
|
|
|
79
78
|
};
|
|
80
79
|
let body;
|
|
81
80
|
body = JSON.stringify({
|
|
82
|
-
...(input.Action
|
|
83
|
-
...(input.EventSourceToken
|
|
84
|
-
|
|
85
|
-
...(input.
|
|
86
|
-
|
|
87
|
-
...(input.
|
|
88
|
-
...(input.
|
|
89
|
-
|
|
90
|
-
...(input.
|
|
91
|
-
...(input.SourceAccount !== undefined && input.SourceAccount !== null && { SourceAccount: input.SourceAccount }),
|
|
92
|
-
...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
|
|
93
|
-
...(input.StatementId !== undefined && input.StatementId !== null && { StatementId: input.StatementId }),
|
|
81
|
+
...(input.Action != null && { Action: input.Action }),
|
|
82
|
+
...(input.EventSourceToken != null && { EventSourceToken: input.EventSourceToken }),
|
|
83
|
+
...(input.FunctionUrlAuthType != null && { FunctionUrlAuthType: input.FunctionUrlAuthType }),
|
|
84
|
+
...(input.Principal != null && { Principal: input.Principal }),
|
|
85
|
+
...(input.PrincipalOrgID != null && { PrincipalOrgID: input.PrincipalOrgID }),
|
|
86
|
+
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
87
|
+
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
88
|
+
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
89
|
+
...(input.StatementId != null && { StatementId: input.StatementId }),
|
|
94
90
|
});
|
|
95
91
|
return new protocol_http_1.HttpRequest({
|
|
96
92
|
protocol,
|
|
@@ -123,12 +119,10 @@ const serializeAws_restJson1CreateAliasCommand = async (input, context) => {
|
|
|
123
119
|
}
|
|
124
120
|
let body;
|
|
125
121
|
body = JSON.stringify({
|
|
126
|
-
...(input.Description
|
|
127
|
-
...(input.FunctionVersion
|
|
128
|
-
|
|
129
|
-
...(input.
|
|
130
|
-
...(input.RoutingConfig !== undefined &&
|
|
131
|
-
input.RoutingConfig !== null && {
|
|
122
|
+
...(input.Description != null && { Description: input.Description }),
|
|
123
|
+
...(input.FunctionVersion != null && { FunctionVersion: input.FunctionVersion }),
|
|
124
|
+
...(input.Name != null && { Name: input.Name }),
|
|
125
|
+
...(input.RoutingConfig != null && {
|
|
132
126
|
RoutingConfig: serializeAws_restJson1AliasRoutingConfiguration(input.RoutingConfig, context),
|
|
133
127
|
}),
|
|
134
128
|
});
|
|
@@ -151,15 +145,13 @@ const serializeAws_restJson1CreateCodeSigningConfigCommand = async (input, conte
|
|
|
151
145
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-04-22/code-signing-configs";
|
|
152
146
|
let body;
|
|
153
147
|
body = JSON.stringify({
|
|
154
|
-
...(input.AllowedPublishers
|
|
155
|
-
input.AllowedPublishers !== null && {
|
|
148
|
+
...(input.AllowedPublishers != null && {
|
|
156
149
|
AllowedPublishers: serializeAws_restJson1AllowedPublishers(input.AllowedPublishers, context),
|
|
157
150
|
}),
|
|
158
|
-
...(input.CodeSigningPolicies
|
|
159
|
-
input.CodeSigningPolicies !== null && {
|
|
151
|
+
...(input.CodeSigningPolicies != null && {
|
|
160
152
|
CodeSigningPolicies: serializeAws_restJson1CodeSigningPolicies(input.CodeSigningPolicies, context),
|
|
161
153
|
}),
|
|
162
|
-
...(input.Description
|
|
154
|
+
...(input.Description != null && { Description: input.Description }),
|
|
163
155
|
});
|
|
164
156
|
return new protocol_http_1.HttpRequest({
|
|
165
157
|
protocol,
|
|
@@ -180,55 +172,39 @@ const serializeAws_restJson1CreateEventSourceMappingCommand = async (input, cont
|
|
|
180
172
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings";
|
|
181
173
|
let body;
|
|
182
174
|
body = JSON.stringify({
|
|
183
|
-
...(input.BatchSize
|
|
184
|
-
...(input.BisectBatchOnFunctionError
|
|
185
|
-
|
|
186
|
-
...(input.DestinationConfig !== undefined &&
|
|
187
|
-
input.DestinationConfig !== null && {
|
|
175
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
176
|
+
...(input.BisectBatchOnFunctionError != null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError }),
|
|
177
|
+
...(input.DestinationConfig != null && {
|
|
188
178
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
189
179
|
}),
|
|
190
|
-
...(input.Enabled
|
|
191
|
-
...(input.EventSourceArn
|
|
192
|
-
|
|
193
|
-
...(input.FilterCriteria !== undefined &&
|
|
194
|
-
input.FilterCriteria !== null && {
|
|
180
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
181
|
+
...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
|
|
182
|
+
...(input.FilterCriteria != null && {
|
|
195
183
|
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
196
184
|
}),
|
|
197
|
-
...(input.FunctionName
|
|
198
|
-
...(input.FunctionResponseTypes
|
|
199
|
-
input.FunctionResponseTypes !== null && {
|
|
185
|
+
...(input.FunctionName != null && { FunctionName: input.FunctionName }),
|
|
186
|
+
...(input.FunctionResponseTypes != null && {
|
|
200
187
|
FunctionResponseTypes: serializeAws_restJson1FunctionResponseTypeList(input.FunctionResponseTypes, context),
|
|
201
188
|
}),
|
|
202
|
-
...(input.MaximumBatchingWindowInSeconds
|
|
203
|
-
input.MaximumBatchingWindowInSeconds !== null && {
|
|
189
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
204
190
|
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
205
191
|
}),
|
|
206
|
-
...(input.MaximumRecordAgeInSeconds
|
|
207
|
-
|
|
208
|
-
...(input.
|
|
209
|
-
|
|
210
|
-
...(input.
|
|
211
|
-
input.ParallelizationFactor !== null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
212
|
-
...(input.Queues !== undefined &&
|
|
213
|
-
input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
|
|
214
|
-
...(input.SelfManagedEventSource !== undefined &&
|
|
215
|
-
input.SelfManagedEventSource !== null && {
|
|
192
|
+
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
193
|
+
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
194
|
+
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
195
|
+
...(input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
|
|
196
|
+
...(input.SelfManagedEventSource != null && {
|
|
216
197
|
SelfManagedEventSource: serializeAws_restJson1SelfManagedEventSource(input.SelfManagedEventSource, context),
|
|
217
198
|
}),
|
|
218
|
-
...(input.SourceAccessConfigurations
|
|
219
|
-
input.SourceAccessConfigurations !== null && {
|
|
199
|
+
...(input.SourceAccessConfigurations != null && {
|
|
220
200
|
SourceAccessConfigurations: serializeAws_restJson1SourceAccessConfigurations(input.SourceAccessConfigurations, context),
|
|
221
201
|
}),
|
|
222
|
-
...(input.StartingPosition
|
|
223
|
-
|
|
224
|
-
...(input.StartingPositionTimestamp !== undefined &&
|
|
225
|
-
input.StartingPositionTimestamp !== null && {
|
|
202
|
+
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
203
|
+
...(input.StartingPositionTimestamp != null && {
|
|
226
204
|
StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000),
|
|
227
205
|
}),
|
|
228
|
-
...(input.Topics
|
|
229
|
-
|
|
230
|
-
...(input.TumblingWindowInSeconds !== undefined &&
|
|
231
|
-
input.TumblingWindowInSeconds !== null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds }),
|
|
206
|
+
...(input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) }),
|
|
207
|
+
...(input.TumblingWindowInSeconds != null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds }),
|
|
232
208
|
});
|
|
233
209
|
return new protocol_http_1.HttpRequest({
|
|
234
210
|
protocol,
|
|
@@ -249,49 +225,38 @@ const serializeAws_restJson1CreateFunctionCommand = async (input, context) => {
|
|
|
249
225
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions";
|
|
250
226
|
let body;
|
|
251
227
|
body = JSON.stringify({
|
|
252
|
-
...(input.Architectures
|
|
253
|
-
input.Architectures !== null && {
|
|
228
|
+
...(input.Architectures != null && {
|
|
254
229
|
Architectures: serializeAws_restJson1ArchitecturesList(input.Architectures, context),
|
|
255
230
|
}),
|
|
256
|
-
...(input.Code
|
|
257
|
-
|
|
258
|
-
...(input.
|
|
259
|
-
input.CodeSigningConfigArn !== null && { CodeSigningConfigArn: input.CodeSigningConfigArn }),
|
|
260
|
-
...(input.DeadLetterConfig !== undefined &&
|
|
261
|
-
input.DeadLetterConfig !== null && {
|
|
231
|
+
...(input.Code != null && { Code: serializeAws_restJson1FunctionCode(input.Code, context) }),
|
|
232
|
+
...(input.CodeSigningConfigArn != null && { CodeSigningConfigArn: input.CodeSigningConfigArn }),
|
|
233
|
+
...(input.DeadLetterConfig != null && {
|
|
262
234
|
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
263
235
|
}),
|
|
264
|
-
...(input.Description
|
|
265
|
-
...(input.Environment
|
|
266
|
-
|
|
267
|
-
...(input.EphemeralStorage !== undefined &&
|
|
268
|
-
input.EphemeralStorage !== null && {
|
|
236
|
+
...(input.Description != null && { Description: input.Description }),
|
|
237
|
+
...(input.Environment != null && { Environment: serializeAws_restJson1Environment(input.Environment, context) }),
|
|
238
|
+
...(input.EphemeralStorage != null && {
|
|
269
239
|
EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
|
|
270
240
|
}),
|
|
271
|
-
...(input.FileSystemConfigs
|
|
272
|
-
input.FileSystemConfigs !== null && {
|
|
241
|
+
...(input.FileSystemConfigs != null && {
|
|
273
242
|
FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
|
|
274
243
|
}),
|
|
275
|
-
...(input.FunctionName
|
|
276
|
-
...(input.Handler
|
|
277
|
-
...(input.ImageConfig
|
|
278
|
-
|
|
279
|
-
...(input.
|
|
280
|
-
...(input.
|
|
281
|
-
|
|
282
|
-
...(input.
|
|
283
|
-
...(input.
|
|
284
|
-
...(input.
|
|
285
|
-
...(input.
|
|
286
|
-
...(input.
|
|
287
|
-
...(input.
|
|
288
|
-
...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
|
|
289
|
-
...(input.TracingConfig !== undefined &&
|
|
290
|
-
input.TracingConfig !== null && {
|
|
244
|
+
...(input.FunctionName != null && { FunctionName: input.FunctionName }),
|
|
245
|
+
...(input.Handler != null && { Handler: input.Handler }),
|
|
246
|
+
...(input.ImageConfig != null && { ImageConfig: serializeAws_restJson1ImageConfig(input.ImageConfig, context) }),
|
|
247
|
+
...(input.KMSKeyArn != null && { KMSKeyArn: input.KMSKeyArn }),
|
|
248
|
+
...(input.Layers != null && { Layers: serializeAws_restJson1LayerList(input.Layers, context) }),
|
|
249
|
+
...(input.MemorySize != null && { MemorySize: input.MemorySize }),
|
|
250
|
+
...(input.PackageType != null && { PackageType: input.PackageType }),
|
|
251
|
+
...(input.Publish != null && { Publish: input.Publish }),
|
|
252
|
+
...(input.Role != null && { Role: input.Role }),
|
|
253
|
+
...(input.Runtime != null && { Runtime: input.Runtime }),
|
|
254
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
255
|
+
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
256
|
+
...(input.TracingConfig != null && {
|
|
291
257
|
TracingConfig: serializeAws_restJson1TracingConfig(input.TracingConfig, context),
|
|
292
258
|
}),
|
|
293
|
-
...(input.VpcConfig
|
|
294
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_restJson1VpcConfig(input.VpcConfig, context) }),
|
|
259
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_restJson1VpcConfig(input.VpcConfig, context) }),
|
|
295
260
|
});
|
|
296
261
|
return new protocol_http_1.HttpRequest({
|
|
297
262
|
protocol,
|
|
@@ -325,8 +290,8 @@ const serializeAws_restJson1CreateFunctionUrlConfigCommand = async (input, conte
|
|
|
325
290
|
};
|
|
326
291
|
let body;
|
|
327
292
|
body = JSON.stringify({
|
|
328
|
-
...(input.AuthType
|
|
329
|
-
...(input.Cors
|
|
293
|
+
...(input.AuthType != null && { AuthType: input.AuthType }),
|
|
294
|
+
...(input.Cors != null && { Cors: serializeAws_restJson1Cors(input.Cors, context) }),
|
|
330
295
|
});
|
|
331
296
|
return new protocol_http_1.HttpRequest({
|
|
332
297
|
protocol,
|
|
@@ -1516,18 +1481,15 @@ const serializeAws_restJson1PublishLayerVersionCommand = async (input, context)
|
|
|
1516
1481
|
}
|
|
1517
1482
|
let body;
|
|
1518
1483
|
body = JSON.stringify({
|
|
1519
|
-
...(input.CompatibleArchitectures
|
|
1520
|
-
input.CompatibleArchitectures !== null && {
|
|
1484
|
+
...(input.CompatibleArchitectures != null && {
|
|
1521
1485
|
CompatibleArchitectures: serializeAws_restJson1CompatibleArchitectures(input.CompatibleArchitectures, context),
|
|
1522
1486
|
}),
|
|
1523
|
-
...(input.CompatibleRuntimes
|
|
1524
|
-
input.CompatibleRuntimes !== null && {
|
|
1487
|
+
...(input.CompatibleRuntimes != null && {
|
|
1525
1488
|
CompatibleRuntimes: serializeAws_restJson1CompatibleRuntimes(input.CompatibleRuntimes, context),
|
|
1526
1489
|
}),
|
|
1527
|
-
...(input.Content
|
|
1528
|
-
|
|
1529
|
-
...(input.
|
|
1530
|
-
...(input.LicenseInfo !== undefined && input.LicenseInfo !== null && { LicenseInfo: input.LicenseInfo }),
|
|
1490
|
+
...(input.Content != null && { Content: serializeAws_restJson1LayerVersionContentInput(input.Content, context) }),
|
|
1491
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1492
|
+
...(input.LicenseInfo != null && { LicenseInfo: input.LicenseInfo }),
|
|
1531
1493
|
});
|
|
1532
1494
|
return new protocol_http_1.HttpRequest({
|
|
1533
1495
|
protocol,
|
|
@@ -1559,9 +1521,9 @@ const serializeAws_restJson1PublishVersionCommand = async (input, context) => {
|
|
|
1559
1521
|
}
|
|
1560
1522
|
let body;
|
|
1561
1523
|
body = JSON.stringify({
|
|
1562
|
-
...(input.CodeSha256
|
|
1563
|
-
...(input.Description
|
|
1564
|
-
...(input.RevisionId
|
|
1524
|
+
...(input.CodeSha256 != null && { CodeSha256: input.CodeSha256 }),
|
|
1525
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1526
|
+
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
1565
1527
|
});
|
|
1566
1528
|
return new protocol_http_1.HttpRequest({
|
|
1567
1529
|
protocol,
|
|
@@ -1593,8 +1555,7 @@ const serializeAws_restJson1PutFunctionCodeSigningConfigCommand = async (input,
|
|
|
1593
1555
|
}
|
|
1594
1556
|
let body;
|
|
1595
1557
|
body = JSON.stringify({
|
|
1596
|
-
...(input.CodeSigningConfigArn
|
|
1597
|
-
input.CodeSigningConfigArn !== null && { CodeSigningConfigArn: input.CodeSigningConfigArn }),
|
|
1558
|
+
...(input.CodeSigningConfigArn != null && { CodeSigningConfigArn: input.CodeSigningConfigArn }),
|
|
1598
1559
|
});
|
|
1599
1560
|
return new protocol_http_1.HttpRequest({
|
|
1600
1561
|
protocol,
|
|
@@ -1626,8 +1587,7 @@ const serializeAws_restJson1PutFunctionConcurrencyCommand = async (input, contex
|
|
|
1626
1587
|
}
|
|
1627
1588
|
let body;
|
|
1628
1589
|
body = JSON.stringify({
|
|
1629
|
-
...(input.ReservedConcurrentExecutions
|
|
1630
|
-
input.ReservedConcurrentExecutions !== null && {
|
|
1590
|
+
...(input.ReservedConcurrentExecutions != null && {
|
|
1631
1591
|
ReservedConcurrentExecutions: input.ReservedConcurrentExecutions,
|
|
1632
1592
|
}),
|
|
1633
1593
|
});
|
|
@@ -1664,14 +1624,11 @@ const serializeAws_restJson1PutFunctionEventInvokeConfigCommand = async (input,
|
|
|
1664
1624
|
};
|
|
1665
1625
|
let body;
|
|
1666
1626
|
body = JSON.stringify({
|
|
1667
|
-
...(input.DestinationConfig
|
|
1668
|
-
input.DestinationConfig !== null && {
|
|
1627
|
+
...(input.DestinationConfig != null && {
|
|
1669
1628
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
1670
1629
|
}),
|
|
1671
|
-
...(input.MaximumEventAgeInSeconds
|
|
1672
|
-
|
|
1673
|
-
...(input.MaximumRetryAttempts !== undefined &&
|
|
1674
|
-
input.MaximumRetryAttempts !== null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1630
|
+
...(input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds }),
|
|
1631
|
+
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1675
1632
|
});
|
|
1676
1633
|
return new protocol_http_1.HttpRequest({
|
|
1677
1634
|
protocol,
|
|
@@ -1707,8 +1664,7 @@ const serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (inpu
|
|
|
1707
1664
|
};
|
|
1708
1665
|
let body;
|
|
1709
1666
|
body = JSON.stringify({
|
|
1710
|
-
...(input.ProvisionedConcurrentExecutions
|
|
1711
|
-
input.ProvisionedConcurrentExecutions !== null && {
|
|
1667
|
+
...(input.ProvisionedConcurrentExecutions != null && {
|
|
1712
1668
|
ProvisionedConcurrentExecutions: input.ProvisionedConcurrentExecutions,
|
|
1713
1669
|
}),
|
|
1714
1670
|
});
|
|
@@ -1835,7 +1791,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1835
1791
|
}
|
|
1836
1792
|
let body;
|
|
1837
1793
|
body = JSON.stringify({
|
|
1838
|
-
...(input.Tags
|
|
1794
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
1839
1795
|
});
|
|
1840
1796
|
return new protocol_http_1.HttpRequest({
|
|
1841
1797
|
protocol,
|
|
@@ -1907,12 +1863,10 @@ const serializeAws_restJson1UpdateAliasCommand = async (input, context) => {
|
|
|
1907
1863
|
}
|
|
1908
1864
|
let body;
|
|
1909
1865
|
body = JSON.stringify({
|
|
1910
|
-
...(input.Description
|
|
1911
|
-
...(input.FunctionVersion
|
|
1912
|
-
|
|
1913
|
-
...(input.
|
|
1914
|
-
...(input.RoutingConfig !== undefined &&
|
|
1915
|
-
input.RoutingConfig !== null && {
|
|
1866
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1867
|
+
...(input.FunctionVersion != null && { FunctionVersion: input.FunctionVersion }),
|
|
1868
|
+
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
1869
|
+
...(input.RoutingConfig != null && {
|
|
1916
1870
|
RoutingConfig: serializeAws_restJson1AliasRoutingConfiguration(input.RoutingConfig, context),
|
|
1917
1871
|
}),
|
|
1918
1872
|
});
|
|
@@ -1946,15 +1900,13 @@ const serializeAws_restJson1UpdateCodeSigningConfigCommand = async (input, conte
|
|
|
1946
1900
|
}
|
|
1947
1901
|
let body;
|
|
1948
1902
|
body = JSON.stringify({
|
|
1949
|
-
...(input.AllowedPublishers
|
|
1950
|
-
input.AllowedPublishers !== null && {
|
|
1903
|
+
...(input.AllowedPublishers != null && {
|
|
1951
1904
|
AllowedPublishers: serializeAws_restJson1AllowedPublishers(input.AllowedPublishers, context),
|
|
1952
1905
|
}),
|
|
1953
|
-
...(input.CodeSigningPolicies
|
|
1954
|
-
input.CodeSigningPolicies !== null && {
|
|
1906
|
+
...(input.CodeSigningPolicies != null && {
|
|
1955
1907
|
CodeSigningPolicies: serializeAws_restJson1CodeSigningPolicies(input.CodeSigningPolicies, context),
|
|
1956
1908
|
}),
|
|
1957
|
-
...(input.Description
|
|
1909
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1958
1910
|
});
|
|
1959
1911
|
return new protocol_http_1.HttpRequest({
|
|
1960
1912
|
protocol,
|
|
@@ -1985,39 +1937,29 @@ const serializeAws_restJson1UpdateEventSourceMappingCommand = async (input, cont
|
|
|
1985
1937
|
}
|
|
1986
1938
|
let body;
|
|
1987
1939
|
body = JSON.stringify({
|
|
1988
|
-
...(input.BatchSize
|
|
1989
|
-
...(input.BisectBatchOnFunctionError
|
|
1990
|
-
|
|
1991
|
-
...(input.DestinationConfig !== undefined &&
|
|
1992
|
-
input.DestinationConfig !== null && {
|
|
1940
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1941
|
+
...(input.BisectBatchOnFunctionError != null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError }),
|
|
1942
|
+
...(input.DestinationConfig != null && {
|
|
1993
1943
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
1994
1944
|
}),
|
|
1995
|
-
...(input.Enabled
|
|
1996
|
-
...(input.FilterCriteria
|
|
1997
|
-
input.FilterCriteria !== null && {
|
|
1945
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1946
|
+
...(input.FilterCriteria != null && {
|
|
1998
1947
|
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
1999
1948
|
}),
|
|
2000
|
-
...(input.FunctionName
|
|
2001
|
-
...(input.FunctionResponseTypes
|
|
2002
|
-
input.FunctionResponseTypes !== null && {
|
|
1949
|
+
...(input.FunctionName != null && { FunctionName: input.FunctionName }),
|
|
1950
|
+
...(input.FunctionResponseTypes != null && {
|
|
2003
1951
|
FunctionResponseTypes: serializeAws_restJson1FunctionResponseTypeList(input.FunctionResponseTypes, context),
|
|
2004
1952
|
}),
|
|
2005
|
-
...(input.MaximumBatchingWindowInSeconds
|
|
2006
|
-
input.MaximumBatchingWindowInSeconds !== null && {
|
|
1953
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
2007
1954
|
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
2008
1955
|
}),
|
|
2009
|
-
...(input.MaximumRecordAgeInSeconds
|
|
2010
|
-
|
|
2011
|
-
...(input.
|
|
2012
|
-
|
|
2013
|
-
...(input.ParallelizationFactor !== undefined &&
|
|
2014
|
-
input.ParallelizationFactor !== null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
2015
|
-
...(input.SourceAccessConfigurations !== undefined &&
|
|
2016
|
-
input.SourceAccessConfigurations !== null && {
|
|
1956
|
+
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
1957
|
+
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1958
|
+
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
1959
|
+
...(input.SourceAccessConfigurations != null && {
|
|
2017
1960
|
SourceAccessConfigurations: serializeAws_restJson1SourceAccessConfigurations(input.SourceAccessConfigurations, context),
|
|
2018
1961
|
}),
|
|
2019
|
-
...(input.TumblingWindowInSeconds
|
|
2020
|
-
input.TumblingWindowInSeconds !== null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds }),
|
|
1962
|
+
...(input.TumblingWindowInSeconds != null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds }),
|
|
2021
1963
|
});
|
|
2022
1964
|
return new protocol_http_1.HttpRequest({
|
|
2023
1965
|
protocol,
|
|
@@ -2048,19 +1990,17 @@ const serializeAws_restJson1UpdateFunctionCodeCommand = async (input, context) =
|
|
|
2048
1990
|
}
|
|
2049
1991
|
let body;
|
|
2050
1992
|
body = JSON.stringify({
|
|
2051
|
-
...(input.Architectures
|
|
2052
|
-
input.Architectures !== null && {
|
|
1993
|
+
...(input.Architectures != null && {
|
|
2053
1994
|
Architectures: serializeAws_restJson1ArchitecturesList(input.Architectures, context),
|
|
2054
1995
|
}),
|
|
2055
|
-
...(input.DryRun
|
|
2056
|
-
...(input.ImageUri
|
|
2057
|
-
...(input.Publish
|
|
2058
|
-
...(input.RevisionId
|
|
2059
|
-
...(input.S3Bucket
|
|
2060
|
-
...(input.S3Key
|
|
2061
|
-
...(input.S3ObjectVersion
|
|
2062
|
-
|
|
2063
|
-
...(input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }),
|
|
1996
|
+
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1997
|
+
...(input.ImageUri != null && { ImageUri: input.ImageUri }),
|
|
1998
|
+
...(input.Publish != null && { Publish: input.Publish }),
|
|
1999
|
+
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2000
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
2001
|
+
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
2002
|
+
...(input.S3ObjectVersion != null && { S3ObjectVersion: input.S3ObjectVersion }),
|
|
2003
|
+
...(input.ZipFile != null && { ZipFile: context.base64Encoder(input.ZipFile) }),
|
|
2064
2004
|
});
|
|
2065
2005
|
return new protocol_http_1.HttpRequest({
|
|
2066
2006
|
protocol,
|
|
@@ -2092,38 +2032,30 @@ const serializeAws_restJson1UpdateFunctionConfigurationCommand = async (input, c
|
|
|
2092
2032
|
}
|
|
2093
2033
|
let body;
|
|
2094
2034
|
body = JSON.stringify({
|
|
2095
|
-
...(input.DeadLetterConfig
|
|
2096
|
-
input.DeadLetterConfig !== null && {
|
|
2035
|
+
...(input.DeadLetterConfig != null && {
|
|
2097
2036
|
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
2098
2037
|
}),
|
|
2099
|
-
...(input.Description
|
|
2100
|
-
...(input.Environment
|
|
2101
|
-
|
|
2102
|
-
...(input.EphemeralStorage !== undefined &&
|
|
2103
|
-
input.EphemeralStorage !== null && {
|
|
2038
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2039
|
+
...(input.Environment != null && { Environment: serializeAws_restJson1Environment(input.Environment, context) }),
|
|
2040
|
+
...(input.EphemeralStorage != null && {
|
|
2104
2041
|
EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
|
|
2105
2042
|
}),
|
|
2106
|
-
...(input.FileSystemConfigs
|
|
2107
|
-
input.FileSystemConfigs !== null && {
|
|
2043
|
+
...(input.FileSystemConfigs != null && {
|
|
2108
2044
|
FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
|
|
2109
2045
|
}),
|
|
2110
|
-
...(input.Handler
|
|
2111
|
-
...(input.ImageConfig
|
|
2112
|
-
|
|
2113
|
-
...(input.
|
|
2114
|
-
...(input.
|
|
2115
|
-
|
|
2116
|
-
...(input.
|
|
2117
|
-
...(input.
|
|
2118
|
-
...(input.
|
|
2119
|
-
...(input.
|
|
2120
|
-
...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
|
|
2121
|
-
...(input.TracingConfig !== undefined &&
|
|
2122
|
-
input.TracingConfig !== null && {
|
|
2046
|
+
...(input.Handler != null && { Handler: input.Handler }),
|
|
2047
|
+
...(input.ImageConfig != null && { ImageConfig: serializeAws_restJson1ImageConfig(input.ImageConfig, context) }),
|
|
2048
|
+
...(input.KMSKeyArn != null && { KMSKeyArn: input.KMSKeyArn }),
|
|
2049
|
+
...(input.Layers != null && { Layers: serializeAws_restJson1LayerList(input.Layers, context) }),
|
|
2050
|
+
...(input.MemorySize != null && { MemorySize: input.MemorySize }),
|
|
2051
|
+
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2052
|
+
...(input.Role != null && { Role: input.Role }),
|
|
2053
|
+
...(input.Runtime != null && { Runtime: input.Runtime }),
|
|
2054
|
+
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
2055
|
+
...(input.TracingConfig != null && {
|
|
2123
2056
|
TracingConfig: serializeAws_restJson1TracingConfig(input.TracingConfig, context),
|
|
2124
2057
|
}),
|
|
2125
|
-
...(input.VpcConfig
|
|
2126
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_restJson1VpcConfig(input.VpcConfig, context) }),
|
|
2058
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_restJson1VpcConfig(input.VpcConfig, context) }),
|
|
2127
2059
|
});
|
|
2128
2060
|
return new protocol_http_1.HttpRequest({
|
|
2129
2061
|
protocol,
|
|
@@ -2158,14 +2090,11 @@ const serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = async (inpu
|
|
|
2158
2090
|
};
|
|
2159
2091
|
let body;
|
|
2160
2092
|
body = JSON.stringify({
|
|
2161
|
-
...(input.DestinationConfig
|
|
2162
|
-
input.DestinationConfig !== null && {
|
|
2093
|
+
...(input.DestinationConfig != null && {
|
|
2163
2094
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
2164
2095
|
}),
|
|
2165
|
-
...(input.MaximumEventAgeInSeconds
|
|
2166
|
-
|
|
2167
|
-
...(input.MaximumRetryAttempts !== undefined &&
|
|
2168
|
-
input.MaximumRetryAttempts !== null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
2096
|
+
...(input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds }),
|
|
2097
|
+
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
2169
2098
|
});
|
|
2170
2099
|
return new protocol_http_1.HttpRequest({
|
|
2171
2100
|
protocol,
|
|
@@ -2200,8 +2129,8 @@ const serializeAws_restJson1UpdateFunctionUrlConfigCommand = async (input, conte
|
|
|
2200
2129
|
};
|
|
2201
2130
|
let body;
|
|
2202
2131
|
body = JSON.stringify({
|
|
2203
|
-
...(input.AuthType
|
|
2204
|
-
...(input.Cors
|
|
2132
|
+
...(input.AuthType != null && { AuthType: input.AuthType }),
|
|
2133
|
+
...(input.Cors != null && { Cors: serializeAws_restJson1Cors(input.Cors, context) }),
|
|
2205
2134
|
});
|
|
2206
2135
|
return new protocol_http_1.HttpRequest({
|
|
2207
2136
|
protocol,
|
|
@@ -2240,8 +2169,7 @@ const deserializeAws_restJson1AddLayerVersionPermissionCommandError = async (out
|
|
|
2240
2169
|
body: await parseBody(output.body, context),
|
|
2241
2170
|
};
|
|
2242
2171
|
let response;
|
|
2243
|
-
|
|
2244
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
2173
|
switch (errorCode) {
|
|
2246
2174
|
case "InvalidParameterValueException":
|
|
2247
2175
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -2266,10 +2194,12 @@ const deserializeAws_restJson1AddLayerVersionPermissionCommandError = async (out
|
|
|
2266
2194
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2267
2195
|
default:
|
|
2268
2196
|
const parsedBody = parsedOutput.body;
|
|
2197
|
+
const $metadata = deserializeMetadata(output);
|
|
2198
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2269
2199
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2270
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2200
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2271
2201
|
$fault: "client",
|
|
2272
|
-
$metadata
|
|
2202
|
+
$metadata,
|
|
2273
2203
|
});
|
|
2274
2204
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2275
2205
|
}
|
|
@@ -2295,8 +2225,7 @@ const deserializeAws_restJson1AddPermissionCommandError = async (output, context
|
|
|
2295
2225
|
body: await parseBody(output.body, context),
|
|
2296
2226
|
};
|
|
2297
2227
|
let response;
|
|
2298
|
-
|
|
2299
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2300
2229
|
switch (errorCode) {
|
|
2301
2230
|
case "InvalidParameterValueException":
|
|
2302
2231
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -2321,10 +2250,12 @@ const deserializeAws_restJson1AddPermissionCommandError = async (output, context
|
|
|
2321
2250
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2322
2251
|
default:
|
|
2323
2252
|
const parsedBody = parsedOutput.body;
|
|
2253
|
+
const $metadata = deserializeMetadata(output);
|
|
2254
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2324
2255
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2256
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2326
2257
|
$fault: "client",
|
|
2327
|
-
$metadata
|
|
2258
|
+
$metadata,
|
|
2328
2259
|
});
|
|
2329
2260
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2330
2261
|
}
|
|
@@ -2370,8 +2301,7 @@ const deserializeAws_restJson1CreateAliasCommandError = async (output, context)
|
|
|
2370
2301
|
body: await parseBody(output.body, context),
|
|
2371
2302
|
};
|
|
2372
2303
|
let response;
|
|
2373
|
-
|
|
2374
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
2305
|
switch (errorCode) {
|
|
2376
2306
|
case "InvalidParameterValueException":
|
|
2377
2307
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -2390,10 +2320,12 @@ const deserializeAws_restJson1CreateAliasCommandError = async (output, context)
|
|
|
2390
2320
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2391
2321
|
default:
|
|
2392
2322
|
const parsedBody = parsedOutput.body;
|
|
2323
|
+
const $metadata = deserializeMetadata(output);
|
|
2324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2393
2325
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2394
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2395
2327
|
$fault: "client",
|
|
2396
|
-
$metadata
|
|
2328
|
+
$metadata,
|
|
2397
2329
|
});
|
|
2398
2330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2399
2331
|
}
|
|
@@ -2419,8 +2351,7 @@ const deserializeAws_restJson1CreateCodeSigningConfigCommandError = async (outpu
|
|
|
2419
2351
|
body: await parseBody(output.body, context),
|
|
2420
2352
|
};
|
|
2421
2353
|
let response;
|
|
2422
|
-
|
|
2423
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2355
|
switch (errorCode) {
|
|
2425
2356
|
case "InvalidParameterValueException":
|
|
2426
2357
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -2430,10 +2361,12 @@ const deserializeAws_restJson1CreateCodeSigningConfigCommandError = async (outpu
|
|
|
2430
2361
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
2431
2362
|
default:
|
|
2432
2363
|
const parsedBody = parsedOutput.body;
|
|
2364
|
+
const $metadata = deserializeMetadata(output);
|
|
2365
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2433
2366
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2434
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2367
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2435
2368
|
$fault: "client",
|
|
2436
|
-
$metadata
|
|
2369
|
+
$metadata,
|
|
2437
2370
|
});
|
|
2438
2371
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2439
2372
|
}
|
|
@@ -2547,8 +2480,7 @@ const deserializeAws_restJson1CreateEventSourceMappingCommandError = async (outp
|
|
|
2547
2480
|
body: await parseBody(output.body, context),
|
|
2548
2481
|
};
|
|
2549
2482
|
let response;
|
|
2550
|
-
|
|
2551
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2483
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
2484
|
switch (errorCode) {
|
|
2553
2485
|
case "InvalidParameterValueException":
|
|
2554
2486
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -2567,10 +2499,12 @@ const deserializeAws_restJson1CreateEventSourceMappingCommandError = async (outp
|
|
|
2567
2499
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2568
2500
|
default:
|
|
2569
2501
|
const parsedBody = parsedOutput.body;
|
|
2502
|
+
const $metadata = deserializeMetadata(output);
|
|
2503
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2570
2504
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2505
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2572
2506
|
$fault: "client",
|
|
2573
|
-
$metadata
|
|
2507
|
+
$metadata,
|
|
2574
2508
|
});
|
|
2575
2509
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2576
2510
|
}
|
|
@@ -2724,8 +2658,7 @@ const deserializeAws_restJson1CreateFunctionCommandError = async (output, contex
|
|
|
2724
2658
|
body: await parseBody(output.body, context),
|
|
2725
2659
|
};
|
|
2726
2660
|
let response;
|
|
2727
|
-
|
|
2728
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2661
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2729
2662
|
switch (errorCode) {
|
|
2730
2663
|
case "CodeSigningConfigNotFoundException":
|
|
2731
2664
|
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
@@ -2756,10 +2689,12 @@ const deserializeAws_restJson1CreateFunctionCommandError = async (output, contex
|
|
|
2756
2689
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2757
2690
|
default:
|
|
2758
2691
|
const parsedBody = parsedOutput.body;
|
|
2692
|
+
const $metadata = deserializeMetadata(output);
|
|
2693
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2759
2694
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2760
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2761
2696
|
$fault: "client",
|
|
2762
|
-
$metadata
|
|
2697
|
+
$metadata,
|
|
2763
2698
|
});
|
|
2764
2699
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2765
2700
|
}
|
|
@@ -2801,8 +2736,7 @@ const deserializeAws_restJson1CreateFunctionUrlConfigCommandError = async (outpu
|
|
|
2801
2736
|
body: await parseBody(output.body, context),
|
|
2802
2737
|
};
|
|
2803
2738
|
let response;
|
|
2804
|
-
|
|
2805
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
2740
|
switch (errorCode) {
|
|
2807
2741
|
case "InvalidParameterValueException":
|
|
2808
2742
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -2821,10 +2755,12 @@ const deserializeAws_restJson1CreateFunctionUrlConfigCommandError = async (outpu
|
|
|
2821
2755
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2822
2756
|
default:
|
|
2823
2757
|
const parsedBody = parsedOutput.body;
|
|
2758
|
+
const $metadata = deserializeMetadata(output);
|
|
2759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2824
2760
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2826
2762
|
$fault: "client",
|
|
2827
|
-
$metadata
|
|
2763
|
+
$metadata,
|
|
2828
2764
|
});
|
|
2829
2765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2830
2766
|
}
|
|
@@ -2846,8 +2782,7 @@ const deserializeAws_restJson1DeleteAliasCommandError = async (output, context)
|
|
|
2846
2782
|
body: await parseBody(output.body, context),
|
|
2847
2783
|
};
|
|
2848
2784
|
let response;
|
|
2849
|
-
|
|
2850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2785
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2851
2786
|
switch (errorCode) {
|
|
2852
2787
|
case "InvalidParameterValueException":
|
|
2853
2788
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -2863,10 +2798,12 @@ const deserializeAws_restJson1DeleteAliasCommandError = async (output, context)
|
|
|
2863
2798
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2864
2799
|
default:
|
|
2865
2800
|
const parsedBody = parsedOutput.body;
|
|
2801
|
+
const $metadata = deserializeMetadata(output);
|
|
2802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2866
2803
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2867
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2868
2805
|
$fault: "client",
|
|
2869
|
-
$metadata
|
|
2806
|
+
$metadata,
|
|
2870
2807
|
});
|
|
2871
2808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2872
2809
|
}
|
|
@@ -2888,8 +2825,7 @@ const deserializeAws_restJson1DeleteCodeSigningConfigCommandError = async (outpu
|
|
|
2888
2825
|
body: await parseBody(output.body, context),
|
|
2889
2826
|
};
|
|
2890
2827
|
let response;
|
|
2891
|
-
|
|
2892
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2893
2829
|
switch (errorCode) {
|
|
2894
2830
|
case "InvalidParameterValueException":
|
|
2895
2831
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -2905,10 +2841,12 @@ const deserializeAws_restJson1DeleteCodeSigningConfigCommandError = async (outpu
|
|
|
2905
2841
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
2906
2842
|
default:
|
|
2907
2843
|
const parsedBody = parsedOutput.body;
|
|
2844
|
+
const $metadata = deserializeMetadata(output);
|
|
2845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2908
2846
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
2909
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2910
2848
|
$fault: "client",
|
|
2911
|
-
$metadata
|
|
2849
|
+
$metadata,
|
|
2912
2850
|
});
|
|
2913
2851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2914
2852
|
}
|
|
@@ -3022,8 +2960,7 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommandError = async (outp
|
|
|
3022
2960
|
body: await parseBody(output.body, context),
|
|
3023
2961
|
};
|
|
3024
2962
|
let response;
|
|
3025
|
-
|
|
3026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3027
2964
|
switch (errorCode) {
|
|
3028
2965
|
case "InvalidParameterValueException":
|
|
3029
2966
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3042,10 +2979,12 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommandError = async (outp
|
|
|
3042
2979
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3043
2980
|
default:
|
|
3044
2981
|
const parsedBody = parsedOutput.body;
|
|
2982
|
+
const $metadata = deserializeMetadata(output);
|
|
2983
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3045
2984
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2985
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3047
2986
|
$fault: "client",
|
|
3048
|
-
$metadata
|
|
2987
|
+
$metadata,
|
|
3049
2988
|
});
|
|
3050
2989
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3051
2990
|
}
|
|
@@ -3067,8 +3006,7 @@ const deserializeAws_restJson1DeleteFunctionCommandError = async (output, contex
|
|
|
3067
3006
|
body: await parseBody(output.body, context),
|
|
3068
3007
|
};
|
|
3069
3008
|
let response;
|
|
3070
|
-
|
|
3071
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3072
3010
|
switch (errorCode) {
|
|
3073
3011
|
case "InvalidParameterValueException":
|
|
3074
3012
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3087,10 +3025,12 @@ const deserializeAws_restJson1DeleteFunctionCommandError = async (output, contex
|
|
|
3087
3025
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3088
3026
|
default:
|
|
3089
3027
|
const parsedBody = parsedOutput.body;
|
|
3028
|
+
const $metadata = deserializeMetadata(output);
|
|
3029
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3090
3030
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3091
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3031
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3092
3032
|
$fault: "client",
|
|
3093
|
-
$metadata
|
|
3033
|
+
$metadata,
|
|
3094
3034
|
});
|
|
3095
3035
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3096
3036
|
}
|
|
@@ -3112,8 +3052,7 @@ const deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommandError = asyn
|
|
|
3112
3052
|
body: await parseBody(output.body, context),
|
|
3113
3053
|
};
|
|
3114
3054
|
let response;
|
|
3115
|
-
|
|
3116
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3055
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3117
3056
|
switch (errorCode) {
|
|
3118
3057
|
case "CodeSigningConfigNotFoundException":
|
|
3119
3058
|
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
@@ -3135,10 +3074,12 @@ const deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommandError = asyn
|
|
|
3135
3074
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3136
3075
|
default:
|
|
3137
3076
|
const parsedBody = parsedOutput.body;
|
|
3077
|
+
const $metadata = deserializeMetadata(output);
|
|
3078
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3138
3079
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3080
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3140
3081
|
$fault: "client",
|
|
3141
|
-
$metadata
|
|
3082
|
+
$metadata,
|
|
3142
3083
|
});
|
|
3143
3084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3144
3085
|
}
|
|
@@ -3160,8 +3101,7 @@ const deserializeAws_restJson1DeleteFunctionConcurrencyCommandError = async (out
|
|
|
3160
3101
|
body: await parseBody(output.body, context),
|
|
3161
3102
|
};
|
|
3162
3103
|
let response;
|
|
3163
|
-
|
|
3164
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3165
3105
|
switch (errorCode) {
|
|
3166
3106
|
case "InvalidParameterValueException":
|
|
3167
3107
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3180,10 +3120,12 @@ const deserializeAws_restJson1DeleteFunctionConcurrencyCommandError = async (out
|
|
|
3180
3120
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3181
3121
|
default:
|
|
3182
3122
|
const parsedBody = parsedOutput.body;
|
|
3123
|
+
const $metadata = deserializeMetadata(output);
|
|
3124
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3183
3125
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3126
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3185
3127
|
$fault: "client",
|
|
3186
|
-
$metadata
|
|
3128
|
+
$metadata,
|
|
3187
3129
|
});
|
|
3188
3130
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3189
3131
|
}
|
|
@@ -3205,8 +3147,7 @@ const deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommandError = asyn
|
|
|
3205
3147
|
body: await parseBody(output.body, context),
|
|
3206
3148
|
};
|
|
3207
3149
|
let response;
|
|
3208
|
-
|
|
3209
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3210
3151
|
switch (errorCode) {
|
|
3211
3152
|
case "InvalidParameterValueException":
|
|
3212
3153
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3225,10 +3166,12 @@ const deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommandError = asyn
|
|
|
3225
3166
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3226
3167
|
default:
|
|
3227
3168
|
const parsedBody = parsedOutput.body;
|
|
3169
|
+
const $metadata = deserializeMetadata(output);
|
|
3170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3228
3171
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3230
3173
|
$fault: "client",
|
|
3231
|
-
$metadata
|
|
3174
|
+
$metadata,
|
|
3232
3175
|
});
|
|
3233
3176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3234
3177
|
}
|
|
@@ -3250,8 +3193,7 @@ const deserializeAws_restJson1DeleteFunctionUrlConfigCommandError = async (outpu
|
|
|
3250
3193
|
body: await parseBody(output.body, context),
|
|
3251
3194
|
};
|
|
3252
3195
|
let response;
|
|
3253
|
-
|
|
3254
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3196
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3255
3197
|
switch (errorCode) {
|
|
3256
3198
|
case "ResourceConflictException":
|
|
3257
3199
|
case "com.amazonaws.lambda#ResourceConflictException":
|
|
@@ -3267,10 +3209,12 @@ const deserializeAws_restJson1DeleteFunctionUrlConfigCommandError = async (outpu
|
|
|
3267
3209
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3268
3210
|
default:
|
|
3269
3211
|
const parsedBody = parsedOutput.body;
|
|
3212
|
+
const $metadata = deserializeMetadata(output);
|
|
3213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3270
3214
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3271
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3272
3216
|
$fault: "client",
|
|
3273
|
-
$metadata
|
|
3217
|
+
$metadata,
|
|
3274
3218
|
});
|
|
3275
3219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3276
3220
|
}
|
|
@@ -3292,8 +3236,7 @@ const deserializeAws_restJson1DeleteLayerVersionCommandError = async (output, co
|
|
|
3292
3236
|
body: await parseBody(output.body, context),
|
|
3293
3237
|
};
|
|
3294
3238
|
let response;
|
|
3295
|
-
|
|
3296
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3297
3240
|
switch (errorCode) {
|
|
3298
3241
|
case "ServiceException":
|
|
3299
3242
|
case "com.amazonaws.lambda#ServiceException":
|
|
@@ -3303,10 +3246,12 @@ const deserializeAws_restJson1DeleteLayerVersionCommandError = async (output, co
|
|
|
3303
3246
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3304
3247
|
default:
|
|
3305
3248
|
const parsedBody = parsedOutput.body;
|
|
3249
|
+
const $metadata = deserializeMetadata(output);
|
|
3250
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3306
3251
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3252
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3308
3253
|
$fault: "client",
|
|
3309
|
-
$metadata
|
|
3254
|
+
$metadata,
|
|
3310
3255
|
});
|
|
3311
3256
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3312
3257
|
}
|
|
@@ -3328,8 +3273,7 @@ const deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommandError = a
|
|
|
3328
3273
|
body: await parseBody(output.body, context),
|
|
3329
3274
|
};
|
|
3330
3275
|
let response;
|
|
3331
|
-
|
|
3332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3276
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3333
3277
|
switch (errorCode) {
|
|
3334
3278
|
case "InvalidParameterValueException":
|
|
3335
3279
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3348,10 +3292,12 @@ const deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommandError = a
|
|
|
3348
3292
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3349
3293
|
default:
|
|
3350
3294
|
const parsedBody = parsedOutput.body;
|
|
3295
|
+
const $metadata = deserializeMetadata(output);
|
|
3296
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3351
3297
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3352
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3298
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3353
3299
|
$fault: "client",
|
|
3354
|
-
$metadata
|
|
3300
|
+
$metadata,
|
|
3355
3301
|
});
|
|
3356
3302
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3357
3303
|
}
|
|
@@ -3381,8 +3327,7 @@ const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, co
|
|
|
3381
3327
|
body: await parseBody(output.body, context),
|
|
3382
3328
|
};
|
|
3383
3329
|
let response;
|
|
3384
|
-
|
|
3385
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3330
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3386
3331
|
switch (errorCode) {
|
|
3387
3332
|
case "ServiceException":
|
|
3388
3333
|
case "com.amazonaws.lambda#ServiceException":
|
|
@@ -3392,10 +3337,12 @@ const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, co
|
|
|
3392
3337
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3393
3338
|
default:
|
|
3394
3339
|
const parsedBody = parsedOutput.body;
|
|
3340
|
+
const $metadata = deserializeMetadata(output);
|
|
3341
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3395
3342
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3396
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3397
3344
|
$fault: "client",
|
|
3398
|
-
$metadata
|
|
3345
|
+
$metadata,
|
|
3399
3346
|
});
|
|
3400
3347
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3401
3348
|
}
|
|
@@ -3441,8 +3388,7 @@ const deserializeAws_restJson1GetAliasCommandError = async (output, context) =>
|
|
|
3441
3388
|
body: await parseBody(output.body, context),
|
|
3442
3389
|
};
|
|
3443
3390
|
let response;
|
|
3444
|
-
|
|
3445
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3446
3392
|
switch (errorCode) {
|
|
3447
3393
|
case "InvalidParameterValueException":
|
|
3448
3394
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3458,10 +3404,12 @@ const deserializeAws_restJson1GetAliasCommandError = async (output, context) =>
|
|
|
3458
3404
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3459
3405
|
default:
|
|
3460
3406
|
const parsedBody = parsedOutput.body;
|
|
3407
|
+
const $metadata = deserializeMetadata(output);
|
|
3408
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3461
3409
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3462
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3463
3411
|
$fault: "client",
|
|
3464
|
-
$metadata
|
|
3412
|
+
$metadata,
|
|
3465
3413
|
});
|
|
3466
3414
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3467
3415
|
}
|
|
@@ -3487,8 +3435,7 @@ const deserializeAws_restJson1GetCodeSigningConfigCommandError = async (output,
|
|
|
3487
3435
|
body: await parseBody(output.body, context),
|
|
3488
3436
|
};
|
|
3489
3437
|
let response;
|
|
3490
|
-
|
|
3491
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3438
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3492
3439
|
switch (errorCode) {
|
|
3493
3440
|
case "InvalidParameterValueException":
|
|
3494
3441
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3501,10 +3448,12 @@ const deserializeAws_restJson1GetCodeSigningConfigCommandError = async (output,
|
|
|
3501
3448
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
3502
3449
|
default:
|
|
3503
3450
|
const parsedBody = parsedOutput.body;
|
|
3451
|
+
const $metadata = deserializeMetadata(output);
|
|
3452
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3504
3453
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3505
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3454
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3506
3455
|
$fault: "client",
|
|
3507
|
-
$metadata
|
|
3456
|
+
$metadata,
|
|
3508
3457
|
});
|
|
3509
3458
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3510
3459
|
}
|
|
@@ -3618,8 +3567,7 @@ const deserializeAws_restJson1GetEventSourceMappingCommandError = async (output,
|
|
|
3618
3567
|
body: await parseBody(output.body, context),
|
|
3619
3568
|
};
|
|
3620
3569
|
let response;
|
|
3621
|
-
|
|
3622
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3623
3571
|
switch (errorCode) {
|
|
3624
3572
|
case "InvalidParameterValueException":
|
|
3625
3573
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3635,10 +3583,12 @@ const deserializeAws_restJson1GetEventSourceMappingCommandError = async (output,
|
|
|
3635
3583
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3636
3584
|
default:
|
|
3637
3585
|
const parsedBody = parsedOutput.body;
|
|
3586
|
+
const $metadata = deserializeMetadata(output);
|
|
3587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3638
3588
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3639
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3640
3590
|
$fault: "client",
|
|
3641
|
-
$metadata
|
|
3591
|
+
$metadata,
|
|
3642
3592
|
});
|
|
3643
3593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3644
3594
|
}
|
|
@@ -3676,8 +3626,7 @@ const deserializeAws_restJson1GetFunctionCommandError = async (output, context)
|
|
|
3676
3626
|
body: await parseBody(output.body, context),
|
|
3677
3627
|
};
|
|
3678
3628
|
let response;
|
|
3679
|
-
|
|
3680
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3681
3630
|
switch (errorCode) {
|
|
3682
3631
|
case "InvalidParameterValueException":
|
|
3683
3632
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3693,10 +3642,12 @@ const deserializeAws_restJson1GetFunctionCommandError = async (output, context)
|
|
|
3693
3642
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3694
3643
|
default:
|
|
3695
3644
|
const parsedBody = parsedOutput.body;
|
|
3645
|
+
const $metadata = deserializeMetadata(output);
|
|
3646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3696
3647
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3697
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3698
3649
|
$fault: "client",
|
|
3699
|
-
$metadata
|
|
3650
|
+
$metadata,
|
|
3700
3651
|
});
|
|
3701
3652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3702
3653
|
}
|
|
@@ -3726,8 +3677,7 @@ const deserializeAws_restJson1GetFunctionCodeSigningConfigCommandError = async (
|
|
|
3726
3677
|
body: await parseBody(output.body, context),
|
|
3727
3678
|
};
|
|
3728
3679
|
let response;
|
|
3729
|
-
|
|
3730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3731
3681
|
switch (errorCode) {
|
|
3732
3682
|
case "InvalidParameterValueException":
|
|
3733
3683
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3743,10 +3693,12 @@ const deserializeAws_restJson1GetFunctionCodeSigningConfigCommandError = async (
|
|
|
3743
3693
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3744
3694
|
default:
|
|
3745
3695
|
const parsedBody = parsedOutput.body;
|
|
3696
|
+
const $metadata = deserializeMetadata(output);
|
|
3697
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3746
3698
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3699
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3748
3700
|
$fault: "client",
|
|
3749
|
-
$metadata
|
|
3701
|
+
$metadata,
|
|
3750
3702
|
});
|
|
3751
3703
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3752
3704
|
}
|
|
@@ -3772,8 +3724,7 @@ const deserializeAws_restJson1GetFunctionConcurrencyCommandError = async (output
|
|
|
3772
3724
|
body: await parseBody(output.body, context),
|
|
3773
3725
|
};
|
|
3774
3726
|
let response;
|
|
3775
|
-
|
|
3776
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3727
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3777
3728
|
switch (errorCode) {
|
|
3778
3729
|
case "InvalidParameterValueException":
|
|
3779
3730
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3789,10 +3740,12 @@ const deserializeAws_restJson1GetFunctionConcurrencyCommandError = async (output
|
|
|
3789
3740
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3790
3741
|
default:
|
|
3791
3742
|
const parsedBody = parsedOutput.body;
|
|
3743
|
+
const $metadata = deserializeMetadata(output);
|
|
3744
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3792
3745
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3793
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3746
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3794
3747
|
$fault: "client",
|
|
3795
|
-
$metadata
|
|
3748
|
+
$metadata,
|
|
3796
3749
|
});
|
|
3797
3750
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3798
3751
|
}
|
|
@@ -3946,8 +3899,7 @@ const deserializeAws_restJson1GetFunctionConfigurationCommandError = async (outp
|
|
|
3946
3899
|
body: await parseBody(output.body, context),
|
|
3947
3900
|
};
|
|
3948
3901
|
let response;
|
|
3949
|
-
|
|
3950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3951
3903
|
switch (errorCode) {
|
|
3952
3904
|
case "InvalidParameterValueException":
|
|
3953
3905
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -3963,10 +3915,12 @@ const deserializeAws_restJson1GetFunctionConfigurationCommandError = async (outp
|
|
|
3963
3915
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3964
3916
|
default:
|
|
3965
3917
|
const parsedBody = parsedOutput.body;
|
|
3918
|
+
const $metadata = deserializeMetadata(output);
|
|
3919
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3966
3920
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
3967
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3921
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3968
3922
|
$fault: "client",
|
|
3969
|
-
$metadata
|
|
3923
|
+
$metadata,
|
|
3970
3924
|
});
|
|
3971
3925
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3972
3926
|
}
|
|
@@ -4008,8 +3962,7 @@ const deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError = async (
|
|
|
4008
3962
|
body: await parseBody(output.body, context),
|
|
4009
3963
|
};
|
|
4010
3964
|
let response;
|
|
4011
|
-
|
|
4012
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3965
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4013
3966
|
switch (errorCode) {
|
|
4014
3967
|
case "InvalidParameterValueException":
|
|
4015
3968
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4025,10 +3978,12 @@ const deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError = async (
|
|
|
4025
3978
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4026
3979
|
default:
|
|
4027
3980
|
const parsedBody = parsedOutput.body;
|
|
3981
|
+
const $metadata = deserializeMetadata(output);
|
|
3982
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4028
3983
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4029
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3984
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4030
3985
|
$fault: "client",
|
|
4031
|
-
$metadata
|
|
3986
|
+
$metadata,
|
|
4032
3987
|
});
|
|
4033
3988
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4034
3989
|
}
|
|
@@ -4074,8 +4029,7 @@ const deserializeAws_restJson1GetFunctionUrlConfigCommandError = async (output,
|
|
|
4074
4029
|
body: await parseBody(output.body, context),
|
|
4075
4030
|
};
|
|
4076
4031
|
let response;
|
|
4077
|
-
|
|
4078
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4032
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4079
4033
|
switch (errorCode) {
|
|
4080
4034
|
case "InvalidParameterValueException":
|
|
4081
4035
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4091,10 +4045,12 @@ const deserializeAws_restJson1GetFunctionUrlConfigCommandError = async (output,
|
|
|
4091
4045
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4092
4046
|
default:
|
|
4093
4047
|
const parsedBody = parsedOutput.body;
|
|
4048
|
+
const $metadata = deserializeMetadata(output);
|
|
4049
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4094
4050
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4095
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4051
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4096
4052
|
$fault: "client",
|
|
4097
|
-
$metadata
|
|
4053
|
+
$metadata,
|
|
4098
4054
|
});
|
|
4099
4055
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4100
4056
|
}
|
|
@@ -4152,8 +4108,7 @@ const deserializeAws_restJson1GetLayerVersionCommandError = async (output, conte
|
|
|
4152
4108
|
body: await parseBody(output.body, context),
|
|
4153
4109
|
};
|
|
4154
4110
|
let response;
|
|
4155
|
-
|
|
4156
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4111
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4157
4112
|
switch (errorCode) {
|
|
4158
4113
|
case "InvalidParameterValueException":
|
|
4159
4114
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4169,10 +4124,12 @@ const deserializeAws_restJson1GetLayerVersionCommandError = async (output, conte
|
|
|
4169
4124
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4170
4125
|
default:
|
|
4171
4126
|
const parsedBody = parsedOutput.body;
|
|
4127
|
+
const $metadata = deserializeMetadata(output);
|
|
4128
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4172
4129
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4173
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4130
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4174
4131
|
$fault: "client",
|
|
4175
|
-
$metadata
|
|
4132
|
+
$metadata,
|
|
4176
4133
|
});
|
|
4177
4134
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4178
4135
|
}
|
|
@@ -4230,8 +4187,7 @@ const deserializeAws_restJson1GetLayerVersionByArnCommandError = async (output,
|
|
|
4230
4187
|
body: await parseBody(output.body, context),
|
|
4231
4188
|
};
|
|
4232
4189
|
let response;
|
|
4233
|
-
|
|
4234
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4235
4191
|
switch (errorCode) {
|
|
4236
4192
|
case "InvalidParameterValueException":
|
|
4237
4193
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4247,10 +4203,12 @@ const deserializeAws_restJson1GetLayerVersionByArnCommandError = async (output,
|
|
|
4247
4203
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4248
4204
|
default:
|
|
4249
4205
|
const parsedBody = parsedOutput.body;
|
|
4206
|
+
const $metadata = deserializeMetadata(output);
|
|
4207
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4250
4208
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4251
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4252
4210
|
$fault: "client",
|
|
4253
|
-
$metadata
|
|
4211
|
+
$metadata,
|
|
4254
4212
|
});
|
|
4255
4213
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4256
4214
|
}
|
|
@@ -4280,8 +4238,7 @@ const deserializeAws_restJson1GetLayerVersionPolicyCommandError = async (output,
|
|
|
4280
4238
|
body: await parseBody(output.body, context),
|
|
4281
4239
|
};
|
|
4282
4240
|
let response;
|
|
4283
|
-
|
|
4284
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4285
4242
|
switch (errorCode) {
|
|
4286
4243
|
case "InvalidParameterValueException":
|
|
4287
4244
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4297,10 +4254,12 @@ const deserializeAws_restJson1GetLayerVersionPolicyCommandError = async (output,
|
|
|
4297
4254
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4298
4255
|
default:
|
|
4299
4256
|
const parsedBody = parsedOutput.body;
|
|
4257
|
+
const $metadata = deserializeMetadata(output);
|
|
4258
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4300
4259
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4301
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4260
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4302
4261
|
$fault: "client",
|
|
4303
|
-
$metadata
|
|
4262
|
+
$metadata,
|
|
4304
4263
|
});
|
|
4305
4264
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4306
4265
|
}
|
|
@@ -4330,8 +4289,7 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
|
|
|
4330
4289
|
body: await parseBody(output.body, context),
|
|
4331
4290
|
};
|
|
4332
4291
|
let response;
|
|
4333
|
-
|
|
4334
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4335
4293
|
switch (errorCode) {
|
|
4336
4294
|
case "InvalidParameterValueException":
|
|
4337
4295
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4347,10 +4305,12 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
|
|
|
4347
4305
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4348
4306
|
default:
|
|
4349
4307
|
const parsedBody = parsedOutput.body;
|
|
4308
|
+
const $metadata = deserializeMetadata(output);
|
|
4309
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4350
4310
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4311
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4352
4312
|
$fault: "client",
|
|
4353
|
-
$metadata
|
|
4313
|
+
$metadata,
|
|
4354
4314
|
});
|
|
4355
4315
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4356
4316
|
}
|
|
@@ -4399,8 +4359,7 @@ const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommandError = asyn
|
|
|
4399
4359
|
body: await parseBody(output.body, context),
|
|
4400
4360
|
};
|
|
4401
4361
|
let response;
|
|
4402
|
-
|
|
4403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4404
4363
|
switch (errorCode) {
|
|
4405
4364
|
case "InvalidParameterValueException":
|
|
4406
4365
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4419,10 +4378,12 @@ const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommandError = asyn
|
|
|
4419
4378
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4420
4379
|
default:
|
|
4421
4380
|
const parsedBody = parsedOutput.body;
|
|
4381
|
+
const $metadata = deserializeMetadata(output);
|
|
4382
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4422
4383
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4384
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4424
4385
|
$fault: "client",
|
|
4425
|
-
$metadata
|
|
4386
|
+
$metadata,
|
|
4426
4387
|
});
|
|
4427
4388
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4428
4389
|
}
|
|
@@ -4462,8 +4423,7 @@ const deserializeAws_restJson1InvokeCommandError = async (output, context) => {
|
|
|
4462
4423
|
body: await parseBody(output.body, context),
|
|
4463
4424
|
};
|
|
4464
4425
|
let response;
|
|
4465
|
-
|
|
4466
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4426
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4467
4427
|
switch (errorCode) {
|
|
4468
4428
|
case "EC2AccessDeniedException":
|
|
4469
4429
|
case "com.amazonaws.lambda#EC2AccessDeniedException":
|
|
@@ -4545,10 +4505,12 @@ const deserializeAws_restJson1InvokeCommandError = async (output, context) => {
|
|
|
4545
4505
|
throw await deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse(parsedOutput, context);
|
|
4546
4506
|
default:
|
|
4547
4507
|
const parsedBody = parsedOutput.body;
|
|
4508
|
+
const $metadata = deserializeMetadata(output);
|
|
4509
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4548
4510
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4550
4512
|
$fault: "client",
|
|
4551
|
-
$metadata
|
|
4513
|
+
$metadata,
|
|
4552
4514
|
});
|
|
4553
4515
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4554
4516
|
}
|
|
@@ -4574,8 +4536,7 @@ const deserializeAws_restJson1InvokeAsyncCommandError = async (output, context)
|
|
|
4574
4536
|
body: await parseBody(output.body, context),
|
|
4575
4537
|
};
|
|
4576
4538
|
let response;
|
|
4577
|
-
|
|
4578
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4539
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4579
4540
|
switch (errorCode) {
|
|
4580
4541
|
case "InvalidRequestContentException":
|
|
4581
4542
|
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
@@ -4594,10 +4555,12 @@ const deserializeAws_restJson1InvokeAsyncCommandError = async (output, context)
|
|
|
4594
4555
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
4595
4556
|
default:
|
|
4596
4557
|
const parsedBody = parsedOutput.body;
|
|
4558
|
+
const $metadata = deserializeMetadata(output);
|
|
4559
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4597
4560
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4598
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4561
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4599
4562
|
$fault: "client",
|
|
4600
|
-
$metadata
|
|
4563
|
+
$metadata,
|
|
4601
4564
|
});
|
|
4602
4565
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4603
4566
|
}
|
|
@@ -4627,8 +4590,7 @@ const deserializeAws_restJson1ListAliasesCommandError = async (output, context)
|
|
|
4627
4590
|
body: await parseBody(output.body, context),
|
|
4628
4591
|
};
|
|
4629
4592
|
let response;
|
|
4630
|
-
|
|
4631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4593
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4632
4594
|
switch (errorCode) {
|
|
4633
4595
|
case "InvalidParameterValueException":
|
|
4634
4596
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4644,10 +4606,12 @@ const deserializeAws_restJson1ListAliasesCommandError = async (output, context)
|
|
|
4644
4606
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4645
4607
|
default:
|
|
4646
4608
|
const parsedBody = parsedOutput.body;
|
|
4609
|
+
const $metadata = deserializeMetadata(output);
|
|
4610
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4647
4611
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4649
4613
|
$fault: "client",
|
|
4650
|
-
$metadata
|
|
4614
|
+
$metadata,
|
|
4651
4615
|
});
|
|
4652
4616
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4653
4617
|
}
|
|
@@ -4677,8 +4641,7 @@ const deserializeAws_restJson1ListCodeSigningConfigsCommandError = async (output
|
|
|
4677
4641
|
body: await parseBody(output.body, context),
|
|
4678
4642
|
};
|
|
4679
4643
|
let response;
|
|
4680
|
-
|
|
4681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4644
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4682
4645
|
switch (errorCode) {
|
|
4683
4646
|
case "InvalidParameterValueException":
|
|
4684
4647
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4688,10 +4651,12 @@ const deserializeAws_restJson1ListCodeSigningConfigsCommandError = async (output
|
|
|
4688
4651
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
4689
4652
|
default:
|
|
4690
4653
|
const parsedBody = parsedOutput.body;
|
|
4654
|
+
const $metadata = deserializeMetadata(output);
|
|
4655
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4691
4656
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4692
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4657
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4693
4658
|
$fault: "client",
|
|
4694
|
-
$metadata
|
|
4659
|
+
$metadata,
|
|
4695
4660
|
});
|
|
4696
4661
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4697
4662
|
}
|
|
@@ -4721,8 +4686,7 @@ const deserializeAws_restJson1ListEventSourceMappingsCommandError = async (outpu
|
|
|
4721
4686
|
body: await parseBody(output.body, context),
|
|
4722
4687
|
};
|
|
4723
4688
|
let response;
|
|
4724
|
-
|
|
4725
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4689
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4726
4690
|
switch (errorCode) {
|
|
4727
4691
|
case "InvalidParameterValueException":
|
|
4728
4692
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4738,10 +4702,12 @@ const deserializeAws_restJson1ListEventSourceMappingsCommandError = async (outpu
|
|
|
4738
4702
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4739
4703
|
default:
|
|
4740
4704
|
const parsedBody = parsedOutput.body;
|
|
4705
|
+
const $metadata = deserializeMetadata(output);
|
|
4706
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4741
4707
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4708
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4743
4709
|
$fault: "client",
|
|
4744
|
-
$metadata
|
|
4710
|
+
$metadata,
|
|
4745
4711
|
});
|
|
4746
4712
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4747
4713
|
}
|
|
@@ -4771,8 +4737,7 @@ const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommandError = async
|
|
|
4771
4737
|
body: await parseBody(output.body, context),
|
|
4772
4738
|
};
|
|
4773
4739
|
let response;
|
|
4774
|
-
|
|
4775
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4740
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4776
4741
|
switch (errorCode) {
|
|
4777
4742
|
case "InvalidParameterValueException":
|
|
4778
4743
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4788,10 +4753,12 @@ const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommandError = async
|
|
|
4788
4753
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4789
4754
|
default:
|
|
4790
4755
|
const parsedBody = parsedOutput.body;
|
|
4756
|
+
const $metadata = deserializeMetadata(output);
|
|
4757
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4791
4758
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4792
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4759
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4793
4760
|
$fault: "client",
|
|
4794
|
-
$metadata
|
|
4761
|
+
$metadata,
|
|
4795
4762
|
});
|
|
4796
4763
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4797
4764
|
}
|
|
@@ -4821,8 +4788,7 @@ const deserializeAws_restJson1ListFunctionsCommandError = async (output, context
|
|
|
4821
4788
|
body: await parseBody(output.body, context),
|
|
4822
4789
|
};
|
|
4823
4790
|
let response;
|
|
4824
|
-
|
|
4825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4791
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4826
4792
|
switch (errorCode) {
|
|
4827
4793
|
case "InvalidParameterValueException":
|
|
4828
4794
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4835,10 +4801,12 @@ const deserializeAws_restJson1ListFunctionsCommandError = async (output, context
|
|
|
4835
4801
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4836
4802
|
default:
|
|
4837
4803
|
const parsedBody = parsedOutput.body;
|
|
4804
|
+
const $metadata = deserializeMetadata(output);
|
|
4805
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4838
4806
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4839
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4807
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4840
4808
|
$fault: "client",
|
|
4841
|
-
$metadata
|
|
4809
|
+
$metadata,
|
|
4842
4810
|
});
|
|
4843
4811
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4844
4812
|
}
|
|
@@ -4868,8 +4836,7 @@ const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError = asy
|
|
|
4868
4836
|
body: await parseBody(output.body, context),
|
|
4869
4837
|
};
|
|
4870
4838
|
let response;
|
|
4871
|
-
|
|
4872
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4839
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4873
4840
|
switch (errorCode) {
|
|
4874
4841
|
case "InvalidParameterValueException":
|
|
4875
4842
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4882,10 +4849,12 @@ const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError = asy
|
|
|
4882
4849
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
4883
4850
|
default:
|
|
4884
4851
|
const parsedBody = parsedOutput.body;
|
|
4852
|
+
const $metadata = deserializeMetadata(output);
|
|
4853
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4885
4854
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4855
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4887
4856
|
$fault: "client",
|
|
4888
|
-
$metadata
|
|
4857
|
+
$metadata,
|
|
4889
4858
|
});
|
|
4890
4859
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4891
4860
|
}
|
|
@@ -4915,8 +4884,7 @@ const deserializeAws_restJson1ListFunctionUrlConfigsCommandError = async (output
|
|
|
4915
4884
|
body: await parseBody(output.body, context),
|
|
4916
4885
|
};
|
|
4917
4886
|
let response;
|
|
4918
|
-
|
|
4919
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4887
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4920
4888
|
switch (errorCode) {
|
|
4921
4889
|
case "InvalidParameterValueException":
|
|
4922
4890
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4932,10 +4900,12 @@ const deserializeAws_restJson1ListFunctionUrlConfigsCommandError = async (output
|
|
|
4932
4900
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4933
4901
|
default:
|
|
4934
4902
|
const parsedBody = parsedOutput.body;
|
|
4903
|
+
const $metadata = deserializeMetadata(output);
|
|
4904
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4935
4905
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4936
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4906
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4937
4907
|
$fault: "client",
|
|
4938
|
-
$metadata
|
|
4908
|
+
$metadata,
|
|
4939
4909
|
});
|
|
4940
4910
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4941
4911
|
}
|
|
@@ -4965,8 +4935,7 @@ const deserializeAws_restJson1ListLayersCommandError = async (output, context) =
|
|
|
4965
4935
|
body: await parseBody(output.body, context),
|
|
4966
4936
|
};
|
|
4967
4937
|
let response;
|
|
4968
|
-
|
|
4969
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4970
4939
|
switch (errorCode) {
|
|
4971
4940
|
case "InvalidParameterValueException":
|
|
4972
4941
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -4979,10 +4948,12 @@ const deserializeAws_restJson1ListLayersCommandError = async (output, context) =
|
|
|
4979
4948
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4980
4949
|
default:
|
|
4981
4950
|
const parsedBody = parsedOutput.body;
|
|
4951
|
+
const $metadata = deserializeMetadata(output);
|
|
4952
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4982
4953
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
4983
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4954
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4984
4955
|
$fault: "client",
|
|
4985
|
-
$metadata
|
|
4956
|
+
$metadata,
|
|
4986
4957
|
});
|
|
4987
4958
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4988
4959
|
}
|
|
@@ -5012,8 +4983,7 @@ const deserializeAws_restJson1ListLayerVersionsCommandError = async (output, con
|
|
|
5012
4983
|
body: await parseBody(output.body, context),
|
|
5013
4984
|
};
|
|
5014
4985
|
let response;
|
|
5015
|
-
|
|
5016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4986
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5017
4987
|
switch (errorCode) {
|
|
5018
4988
|
case "InvalidParameterValueException":
|
|
5019
4989
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5029,10 +4999,12 @@ const deserializeAws_restJson1ListLayerVersionsCommandError = async (output, con
|
|
|
5029
4999
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5030
5000
|
default:
|
|
5031
5001
|
const parsedBody = parsedOutput.body;
|
|
5002
|
+
const $metadata = deserializeMetadata(output);
|
|
5003
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5032
5004
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5033
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5005
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5034
5006
|
$fault: "client",
|
|
5035
|
-
$metadata
|
|
5007
|
+
$metadata,
|
|
5036
5008
|
});
|
|
5037
5009
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5038
5010
|
}
|
|
@@ -5062,8 +5034,7 @@ const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommandError = as
|
|
|
5062
5034
|
body: await parseBody(output.body, context),
|
|
5063
5035
|
};
|
|
5064
5036
|
let response;
|
|
5065
|
-
|
|
5066
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5067
5038
|
switch (errorCode) {
|
|
5068
5039
|
case "InvalidParameterValueException":
|
|
5069
5040
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5079,10 +5050,12 @@ const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommandError = as
|
|
|
5079
5050
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5080
5051
|
default:
|
|
5081
5052
|
const parsedBody = parsedOutput.body;
|
|
5053
|
+
const $metadata = deserializeMetadata(output);
|
|
5054
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5082
5055
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5083
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5056
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5084
5057
|
$fault: "client",
|
|
5085
|
-
$metadata
|
|
5058
|
+
$metadata,
|
|
5086
5059
|
});
|
|
5087
5060
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5088
5061
|
}
|
|
@@ -5108,8 +5081,7 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
5108
5081
|
body: await parseBody(output.body, context),
|
|
5109
5082
|
};
|
|
5110
5083
|
let response;
|
|
5111
|
-
|
|
5112
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5084
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5113
5085
|
switch (errorCode) {
|
|
5114
5086
|
case "InvalidParameterValueException":
|
|
5115
5087
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5125,10 +5097,12 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
5125
5097
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5126
5098
|
default:
|
|
5127
5099
|
const parsedBody = parsedOutput.body;
|
|
5100
|
+
const $metadata = deserializeMetadata(output);
|
|
5101
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5128
5102
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5129
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5130
5104
|
$fault: "client",
|
|
5131
|
-
$metadata
|
|
5105
|
+
$metadata,
|
|
5132
5106
|
});
|
|
5133
5107
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5134
5108
|
}
|
|
@@ -5158,8 +5132,7 @@ const deserializeAws_restJson1ListVersionsByFunctionCommandError = async (output
|
|
|
5158
5132
|
body: await parseBody(output.body, context),
|
|
5159
5133
|
};
|
|
5160
5134
|
let response;
|
|
5161
|
-
|
|
5162
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5163
5136
|
switch (errorCode) {
|
|
5164
5137
|
case "InvalidParameterValueException":
|
|
5165
5138
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5175,10 +5148,12 @@ const deserializeAws_restJson1ListVersionsByFunctionCommandError = async (output
|
|
|
5175
5148
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5176
5149
|
default:
|
|
5177
5150
|
const parsedBody = parsedOutput.body;
|
|
5151
|
+
const $metadata = deserializeMetadata(output);
|
|
5152
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5178
5153
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5154
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5180
5155
|
$fault: "client",
|
|
5181
|
-
$metadata
|
|
5156
|
+
$metadata,
|
|
5182
5157
|
});
|
|
5183
5158
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5184
5159
|
}
|
|
@@ -5236,8 +5211,7 @@ const deserializeAws_restJson1PublishLayerVersionCommandError = async (output, c
|
|
|
5236
5211
|
body: await parseBody(output.body, context),
|
|
5237
5212
|
};
|
|
5238
5213
|
let response;
|
|
5239
|
-
|
|
5240
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5214
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5241
5215
|
switch (errorCode) {
|
|
5242
5216
|
case "CodeStorageExceededException":
|
|
5243
5217
|
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
@@ -5256,10 +5230,12 @@ const deserializeAws_restJson1PublishLayerVersionCommandError = async (output, c
|
|
|
5256
5230
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5257
5231
|
default:
|
|
5258
5232
|
const parsedBody = parsedOutput.body;
|
|
5233
|
+
const $metadata = deserializeMetadata(output);
|
|
5234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5259
5235
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5260
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5261
5237
|
$fault: "client",
|
|
5262
|
-
$metadata
|
|
5238
|
+
$metadata,
|
|
5263
5239
|
});
|
|
5264
5240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5265
5241
|
}
|
|
@@ -5413,8 +5389,7 @@ const deserializeAws_restJson1PublishVersionCommandError = async (output, contex
|
|
|
5413
5389
|
body: await parseBody(output.body, context),
|
|
5414
5390
|
};
|
|
5415
5391
|
let response;
|
|
5416
|
-
|
|
5417
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5392
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5418
5393
|
switch (errorCode) {
|
|
5419
5394
|
case "CodeStorageExceededException":
|
|
5420
5395
|
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
@@ -5439,10 +5414,12 @@ const deserializeAws_restJson1PublishVersionCommandError = async (output, contex
|
|
|
5439
5414
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5440
5415
|
default:
|
|
5441
5416
|
const parsedBody = parsedOutput.body;
|
|
5417
|
+
const $metadata = deserializeMetadata(output);
|
|
5418
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5442
5419
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5443
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5444
5421
|
$fault: "client",
|
|
5445
|
-
$metadata
|
|
5422
|
+
$metadata,
|
|
5446
5423
|
});
|
|
5447
5424
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5448
5425
|
}
|
|
@@ -5472,8 +5449,7 @@ const deserializeAws_restJson1PutFunctionCodeSigningConfigCommandError = async (
|
|
|
5472
5449
|
body: await parseBody(output.body, context),
|
|
5473
5450
|
};
|
|
5474
5451
|
let response;
|
|
5475
|
-
|
|
5476
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5452
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5477
5453
|
switch (errorCode) {
|
|
5478
5454
|
case "CodeSigningConfigNotFoundException":
|
|
5479
5455
|
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
@@ -5495,10 +5471,12 @@ const deserializeAws_restJson1PutFunctionCodeSigningConfigCommandError = async (
|
|
|
5495
5471
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5496
5472
|
default:
|
|
5497
5473
|
const parsedBody = parsedOutput.body;
|
|
5474
|
+
const $metadata = deserializeMetadata(output);
|
|
5475
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5498
5476
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5499
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5477
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5500
5478
|
$fault: "client",
|
|
5501
|
-
$metadata
|
|
5479
|
+
$metadata,
|
|
5502
5480
|
});
|
|
5503
5481
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5504
5482
|
}
|
|
@@ -5524,8 +5502,7 @@ const deserializeAws_restJson1PutFunctionConcurrencyCommandError = async (output
|
|
|
5524
5502
|
body: await parseBody(output.body, context),
|
|
5525
5503
|
};
|
|
5526
5504
|
let response;
|
|
5527
|
-
|
|
5528
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5505
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5529
5506
|
switch (errorCode) {
|
|
5530
5507
|
case "InvalidParameterValueException":
|
|
5531
5508
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5544,10 +5521,12 @@ const deserializeAws_restJson1PutFunctionConcurrencyCommandError = async (output
|
|
|
5544
5521
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5545
5522
|
default:
|
|
5546
5523
|
const parsedBody = parsedOutput.body;
|
|
5524
|
+
const $metadata = deserializeMetadata(output);
|
|
5525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5547
5526
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5549
5528
|
$fault: "client",
|
|
5550
|
-
$metadata
|
|
5529
|
+
$metadata,
|
|
5551
5530
|
});
|
|
5552
5531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5553
5532
|
}
|
|
@@ -5589,8 +5568,7 @@ const deserializeAws_restJson1PutFunctionEventInvokeConfigCommandError = async (
|
|
|
5589
5568
|
body: await parseBody(output.body, context),
|
|
5590
5569
|
};
|
|
5591
5570
|
let response;
|
|
5592
|
-
|
|
5593
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5571
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5594
5572
|
switch (errorCode) {
|
|
5595
5573
|
case "InvalidParameterValueException":
|
|
5596
5574
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5609,10 +5587,12 @@ const deserializeAws_restJson1PutFunctionEventInvokeConfigCommandError = async (
|
|
|
5609
5587
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5610
5588
|
default:
|
|
5611
5589
|
const parsedBody = parsedOutput.body;
|
|
5590
|
+
const $metadata = deserializeMetadata(output);
|
|
5591
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5612
5592
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5613
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5593
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5614
5594
|
$fault: "client",
|
|
5615
|
-
$metadata
|
|
5595
|
+
$metadata,
|
|
5616
5596
|
});
|
|
5617
5597
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5618
5598
|
}
|
|
@@ -5661,8 +5641,7 @@ const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommandError = asyn
|
|
|
5661
5641
|
body: await parseBody(output.body, context),
|
|
5662
5642
|
};
|
|
5663
5643
|
let response;
|
|
5664
|
-
|
|
5665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5644
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5666
5645
|
switch (errorCode) {
|
|
5667
5646
|
case "InvalidParameterValueException":
|
|
5668
5647
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5681,10 +5660,12 @@ const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommandError = asyn
|
|
|
5681
5660
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5682
5661
|
default:
|
|
5683
5662
|
const parsedBody = parsedOutput.body;
|
|
5663
|
+
const $metadata = deserializeMetadata(output);
|
|
5664
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5684
5665
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5685
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5666
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5686
5667
|
$fault: "client",
|
|
5687
|
-
$metadata
|
|
5668
|
+
$metadata,
|
|
5688
5669
|
});
|
|
5689
5670
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5690
5671
|
}
|
|
@@ -5706,8 +5687,7 @@ const deserializeAws_restJson1RemoveLayerVersionPermissionCommandError = async (
|
|
|
5706
5687
|
body: await parseBody(output.body, context),
|
|
5707
5688
|
};
|
|
5708
5689
|
let response;
|
|
5709
|
-
|
|
5710
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5711
5691
|
switch (errorCode) {
|
|
5712
5692
|
case "InvalidParameterValueException":
|
|
5713
5693
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5726,10 +5706,12 @@ const deserializeAws_restJson1RemoveLayerVersionPermissionCommandError = async (
|
|
|
5726
5706
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5727
5707
|
default:
|
|
5728
5708
|
const parsedBody = parsedOutput.body;
|
|
5709
|
+
const $metadata = deserializeMetadata(output);
|
|
5710
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5729
5711
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5730
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5712
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5731
5713
|
$fault: "client",
|
|
5732
|
-
$metadata
|
|
5714
|
+
$metadata,
|
|
5733
5715
|
});
|
|
5734
5716
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5735
5717
|
}
|
|
@@ -5751,8 +5733,7 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
|
|
|
5751
5733
|
body: await parseBody(output.body, context),
|
|
5752
5734
|
};
|
|
5753
5735
|
let response;
|
|
5754
|
-
|
|
5755
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5756
5737
|
switch (errorCode) {
|
|
5757
5738
|
case "InvalidParameterValueException":
|
|
5758
5739
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5771,10 +5752,12 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
|
|
|
5771
5752
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5772
5753
|
default:
|
|
5773
5754
|
const parsedBody = parsedOutput.body;
|
|
5755
|
+
const $metadata = deserializeMetadata(output);
|
|
5756
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5774
5757
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5775
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5776
5759
|
$fault: "client",
|
|
5777
|
-
$metadata
|
|
5760
|
+
$metadata,
|
|
5778
5761
|
});
|
|
5779
5762
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5780
5763
|
}
|
|
@@ -5796,8 +5779,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5796
5779
|
body: await parseBody(output.body, context),
|
|
5797
5780
|
};
|
|
5798
5781
|
let response;
|
|
5799
|
-
|
|
5800
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5801
5783
|
switch (errorCode) {
|
|
5802
5784
|
case "InvalidParameterValueException":
|
|
5803
5785
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5816,10 +5798,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5816
5798
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5817
5799
|
default:
|
|
5818
5800
|
const parsedBody = parsedOutput.body;
|
|
5801
|
+
const $metadata = deserializeMetadata(output);
|
|
5802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5819
5803
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5821
5805
|
$fault: "client",
|
|
5822
|
-
$metadata
|
|
5806
|
+
$metadata,
|
|
5823
5807
|
});
|
|
5824
5808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5825
5809
|
}
|
|
@@ -5841,8 +5825,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5841
5825
|
body: await parseBody(output.body, context),
|
|
5842
5826
|
};
|
|
5843
5827
|
let response;
|
|
5844
|
-
|
|
5845
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5846
5829
|
switch (errorCode) {
|
|
5847
5830
|
case "InvalidParameterValueException":
|
|
5848
5831
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5861,10 +5844,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5861
5844
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5862
5845
|
default:
|
|
5863
5846
|
const parsedBody = parsedOutput.body;
|
|
5847
|
+
const $metadata = deserializeMetadata(output);
|
|
5848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5864
5849
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5865
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5866
5851
|
$fault: "client",
|
|
5867
|
-
$metadata
|
|
5852
|
+
$metadata,
|
|
5868
5853
|
});
|
|
5869
5854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5870
5855
|
}
|
|
@@ -5910,8 +5895,7 @@ const deserializeAws_restJson1UpdateAliasCommandError = async (output, context)
|
|
|
5910
5895
|
body: await parseBody(output.body, context),
|
|
5911
5896
|
};
|
|
5912
5897
|
let response;
|
|
5913
|
-
|
|
5914
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5915
5899
|
switch (errorCode) {
|
|
5916
5900
|
case "InvalidParameterValueException":
|
|
5917
5901
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5933,10 +5917,12 @@ const deserializeAws_restJson1UpdateAliasCommandError = async (output, context)
|
|
|
5933
5917
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5934
5918
|
default:
|
|
5935
5919
|
const parsedBody = parsedOutput.body;
|
|
5920
|
+
const $metadata = deserializeMetadata(output);
|
|
5921
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5936
5922
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5937
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5938
5924
|
$fault: "client",
|
|
5939
|
-
$metadata
|
|
5925
|
+
$metadata,
|
|
5940
5926
|
});
|
|
5941
5927
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5942
5928
|
}
|
|
@@ -5962,8 +5948,7 @@ const deserializeAws_restJson1UpdateCodeSigningConfigCommandError = async (outpu
|
|
|
5962
5948
|
body: await parseBody(output.body, context),
|
|
5963
5949
|
};
|
|
5964
5950
|
let response;
|
|
5965
|
-
|
|
5966
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5951
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5967
5952
|
switch (errorCode) {
|
|
5968
5953
|
case "InvalidParameterValueException":
|
|
5969
5954
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -5976,10 +5961,12 @@ const deserializeAws_restJson1UpdateCodeSigningConfigCommandError = async (outpu
|
|
|
5976
5961
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
5977
5962
|
default:
|
|
5978
5963
|
const parsedBody = parsedOutput.body;
|
|
5964
|
+
const $metadata = deserializeMetadata(output);
|
|
5965
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5979
5966
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
5980
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5981
5968
|
$fault: "client",
|
|
5982
|
-
$metadata
|
|
5969
|
+
$metadata,
|
|
5983
5970
|
});
|
|
5984
5971
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5985
5972
|
}
|
|
@@ -6093,8 +6080,7 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommandError = async (outp
|
|
|
6093
6080
|
body: await parseBody(output.body, context),
|
|
6094
6081
|
};
|
|
6095
6082
|
let response;
|
|
6096
|
-
|
|
6097
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6083
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6098
6084
|
switch (errorCode) {
|
|
6099
6085
|
case "InvalidParameterValueException":
|
|
6100
6086
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -6116,10 +6102,12 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommandError = async (outp
|
|
|
6116
6102
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6117
6103
|
default:
|
|
6118
6104
|
const parsedBody = parsedOutput.body;
|
|
6105
|
+
const $metadata = deserializeMetadata(output);
|
|
6106
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6119
6107
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
6120
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6108
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6121
6109
|
$fault: "client",
|
|
6122
|
-
$metadata
|
|
6110
|
+
$metadata,
|
|
6123
6111
|
});
|
|
6124
6112
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6125
6113
|
}
|
|
@@ -6273,8 +6261,7 @@ const deserializeAws_restJson1UpdateFunctionCodeCommandError = async (output, co
|
|
|
6273
6261
|
body: await parseBody(output.body, context),
|
|
6274
6262
|
};
|
|
6275
6263
|
let response;
|
|
6276
|
-
|
|
6277
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6264
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6278
6265
|
switch (errorCode) {
|
|
6279
6266
|
case "CodeSigningConfigNotFoundException":
|
|
6280
6267
|
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
@@ -6308,10 +6295,12 @@ const deserializeAws_restJson1UpdateFunctionCodeCommandError = async (output, co
|
|
|
6308
6295
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6309
6296
|
default:
|
|
6310
6297
|
const parsedBody = parsedOutput.body;
|
|
6298
|
+
const $metadata = deserializeMetadata(output);
|
|
6299
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6311
6300
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
6312
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6301
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6313
6302
|
$fault: "client",
|
|
6314
|
-
$metadata
|
|
6303
|
+
$metadata,
|
|
6315
6304
|
});
|
|
6316
6305
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6317
6306
|
}
|
|
@@ -6465,8 +6454,7 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommandError = async (o
|
|
|
6465
6454
|
body: await parseBody(output.body, context),
|
|
6466
6455
|
};
|
|
6467
6456
|
let response;
|
|
6468
|
-
|
|
6469
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6457
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6470
6458
|
switch (errorCode) {
|
|
6471
6459
|
case "CodeSigningConfigNotFoundException":
|
|
6472
6460
|
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
@@ -6497,10 +6485,12 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommandError = async (o
|
|
|
6497
6485
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6498
6486
|
default:
|
|
6499
6487
|
const parsedBody = parsedOutput.body;
|
|
6488
|
+
const $metadata = deserializeMetadata(output);
|
|
6489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6500
6490
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
6501
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6502
6492
|
$fault: "client",
|
|
6503
|
-
$metadata
|
|
6493
|
+
$metadata,
|
|
6504
6494
|
});
|
|
6505
6495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6506
6496
|
}
|
|
@@ -6542,8 +6532,7 @@ const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommandError = asyn
|
|
|
6542
6532
|
body: await parseBody(output.body, context),
|
|
6543
6533
|
};
|
|
6544
6534
|
let response;
|
|
6545
|
-
|
|
6546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6547
6536
|
switch (errorCode) {
|
|
6548
6537
|
case "InvalidParameterValueException":
|
|
6549
6538
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -6562,10 +6551,12 @@ const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommandError = asyn
|
|
|
6562
6551
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6563
6552
|
default:
|
|
6564
6553
|
const parsedBody = parsedOutput.body;
|
|
6554
|
+
const $metadata = deserializeMetadata(output);
|
|
6555
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6565
6556
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
6566
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6567
6558
|
$fault: "client",
|
|
6568
|
-
$metadata
|
|
6559
|
+
$metadata,
|
|
6569
6560
|
});
|
|
6570
6561
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6571
6562
|
}
|
|
@@ -6611,8 +6602,7 @@ const deserializeAws_restJson1UpdateFunctionUrlConfigCommandError = async (outpu
|
|
|
6611
6602
|
body: await parseBody(output.body, context),
|
|
6612
6603
|
};
|
|
6613
6604
|
let response;
|
|
6614
|
-
|
|
6615
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6605
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6616
6606
|
switch (errorCode) {
|
|
6617
6607
|
case "InvalidParameterValueException":
|
|
6618
6608
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
@@ -6631,10 +6621,12 @@ const deserializeAws_restJson1UpdateFunctionUrlConfigCommandError = async (outpu
|
|
|
6631
6621
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6632
6622
|
default:
|
|
6633
6623
|
const parsedBody = parsedOutput.body;
|
|
6624
|
+
const $metadata = deserializeMetadata(output);
|
|
6625
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6634
6626
|
response = new LambdaServiceException_1.LambdaServiceException({
|
|
6635
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6627
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6636
6628
|
$fault: "client",
|
|
6637
|
-
$metadata
|
|
6629
|
+
$metadata,
|
|
6638
6630
|
});
|
|
6639
6631
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6640
6632
|
}
|
|
@@ -7171,16 +7163,14 @@ const serializeAws_restJson1AdditionalVersionWeights = (input, context) => {
|
|
|
7171
7163
|
};
|
|
7172
7164
|
const serializeAws_restJson1AliasRoutingConfiguration = (input, context) => {
|
|
7173
7165
|
return {
|
|
7174
|
-
...(input.AdditionalVersionWeights
|
|
7175
|
-
input.AdditionalVersionWeights !== null && {
|
|
7166
|
+
...(input.AdditionalVersionWeights != null && {
|
|
7176
7167
|
AdditionalVersionWeights: serializeAws_restJson1AdditionalVersionWeights(input.AdditionalVersionWeights, context),
|
|
7177
7168
|
}),
|
|
7178
7169
|
};
|
|
7179
7170
|
};
|
|
7180
7171
|
const serializeAws_restJson1AllowedPublishers = (input, context) => {
|
|
7181
7172
|
return {
|
|
7182
|
-
...(input.SigningProfileVersionArns
|
|
7183
|
-
input.SigningProfileVersionArns !== null && {
|
|
7173
|
+
...(input.SigningProfileVersionArns != null && {
|
|
7184
7174
|
SigningProfileVersionArns: serializeAws_restJson1SigningProfileVersionArns(input.SigningProfileVersionArns, context),
|
|
7185
7175
|
}),
|
|
7186
7176
|
};
|
|
@@ -7217,8 +7207,7 @@ const serializeAws_restJson1ArchitecturesList = (input, context) => {
|
|
|
7217
7207
|
};
|
|
7218
7208
|
const serializeAws_restJson1CodeSigningPolicies = (input, context) => {
|
|
7219
7209
|
return {
|
|
7220
|
-
...(input.UntrustedArtifactOnDeployment
|
|
7221
|
-
input.UntrustedArtifactOnDeployment !== null && {
|
|
7210
|
+
...(input.UntrustedArtifactOnDeployment != null && {
|
|
7222
7211
|
UntrustedArtifactOnDeployment: input.UntrustedArtifactOnDeployment,
|
|
7223
7212
|
}),
|
|
7224
7213
|
};
|
|
@@ -7245,36 +7234,29 @@ const serializeAws_restJson1CompatibleRuntimes = (input, context) => {
|
|
|
7245
7234
|
};
|
|
7246
7235
|
const serializeAws_restJson1Cors = (input, context) => {
|
|
7247
7236
|
return {
|
|
7248
|
-
...(input.AllowCredentials
|
|
7249
|
-
|
|
7250
|
-
...(input.
|
|
7251
|
-
input.AllowHeaders !== null && { AllowHeaders: serializeAws_restJson1HeadersList(input.AllowHeaders, context) }),
|
|
7252
|
-
...(input.AllowMethods !== undefined &&
|
|
7253
|
-
input.AllowMethods !== null && {
|
|
7237
|
+
...(input.AllowCredentials != null && { AllowCredentials: input.AllowCredentials }),
|
|
7238
|
+
...(input.AllowHeaders != null && { AllowHeaders: serializeAws_restJson1HeadersList(input.AllowHeaders, context) }),
|
|
7239
|
+
...(input.AllowMethods != null && {
|
|
7254
7240
|
AllowMethods: serializeAws_restJson1AllowMethodsList(input.AllowMethods, context),
|
|
7255
7241
|
}),
|
|
7256
|
-
...(input.AllowOrigins
|
|
7257
|
-
input.AllowOrigins !== null && {
|
|
7242
|
+
...(input.AllowOrigins != null && {
|
|
7258
7243
|
AllowOrigins: serializeAws_restJson1AllowOriginsList(input.AllowOrigins, context),
|
|
7259
7244
|
}),
|
|
7260
|
-
...(input.ExposeHeaders
|
|
7261
|
-
input.ExposeHeaders !== null && {
|
|
7245
|
+
...(input.ExposeHeaders != null && {
|
|
7262
7246
|
ExposeHeaders: serializeAws_restJson1HeadersList(input.ExposeHeaders, context),
|
|
7263
7247
|
}),
|
|
7264
|
-
...(input.MaxAge
|
|
7248
|
+
...(input.MaxAge != null && { MaxAge: input.MaxAge }),
|
|
7265
7249
|
};
|
|
7266
7250
|
};
|
|
7267
7251
|
const serializeAws_restJson1DeadLetterConfig = (input, context) => {
|
|
7268
7252
|
return {
|
|
7269
|
-
...(input.TargetArn
|
|
7253
|
+
...(input.TargetArn != null && { TargetArn: input.TargetArn }),
|
|
7270
7254
|
};
|
|
7271
7255
|
};
|
|
7272
7256
|
const serializeAws_restJson1DestinationConfig = (input, context) => {
|
|
7273
7257
|
return {
|
|
7274
|
-
...(input.OnFailure
|
|
7275
|
-
|
|
7276
|
-
...(input.OnSuccess !== undefined &&
|
|
7277
|
-
input.OnSuccess !== null && { OnSuccess: serializeAws_restJson1OnSuccess(input.OnSuccess, context) }),
|
|
7258
|
+
...(input.OnFailure != null && { OnFailure: serializeAws_restJson1OnFailure(input.OnFailure, context) }),
|
|
7259
|
+
...(input.OnSuccess != null && { OnSuccess: serializeAws_restJson1OnSuccess(input.OnSuccess, context) }),
|
|
7278
7260
|
};
|
|
7279
7261
|
};
|
|
7280
7262
|
const serializeAws_restJson1EndpointLists = (input, context) => {
|
|
@@ -7300,8 +7282,7 @@ const serializeAws_restJson1Endpoints = (input, context) => {
|
|
|
7300
7282
|
};
|
|
7301
7283
|
const serializeAws_restJson1Environment = (input, context) => {
|
|
7302
7284
|
return {
|
|
7303
|
-
...(input.Variables
|
|
7304
|
-
input.Variables !== null && { Variables: serializeAws_restJson1EnvironmentVariables(input.Variables, context) }),
|
|
7285
|
+
...(input.Variables != null && { Variables: serializeAws_restJson1EnvironmentVariables(input.Variables, context) }),
|
|
7305
7286
|
};
|
|
7306
7287
|
};
|
|
7307
7288
|
const serializeAws_restJson1EnvironmentVariables = (input, context) => {
|
|
@@ -7317,14 +7298,13 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
|
|
|
7317
7298
|
};
|
|
7318
7299
|
const serializeAws_restJson1EphemeralStorage = (input, context) => {
|
|
7319
7300
|
return {
|
|
7320
|
-
...(input.Size
|
|
7301
|
+
...(input.Size != null && { Size: input.Size }),
|
|
7321
7302
|
};
|
|
7322
7303
|
};
|
|
7323
7304
|
const serializeAws_restJson1FileSystemConfig = (input, context) => {
|
|
7324
7305
|
return {
|
|
7325
|
-
...(input.Arn
|
|
7326
|
-
...(input.LocalMountPath
|
|
7327
|
-
input.LocalMountPath !== null && { LocalMountPath: input.LocalMountPath }),
|
|
7306
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
7307
|
+
...(input.LocalMountPath != null && { LocalMountPath: input.LocalMountPath }),
|
|
7328
7308
|
};
|
|
7329
7309
|
};
|
|
7330
7310
|
const serializeAws_restJson1FileSystemConfigList = (input, context) => {
|
|
@@ -7339,13 +7319,12 @@ const serializeAws_restJson1FileSystemConfigList = (input, context) => {
|
|
|
7339
7319
|
};
|
|
7340
7320
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
7341
7321
|
return {
|
|
7342
|
-
...(input.Pattern
|
|
7322
|
+
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
7343
7323
|
};
|
|
7344
7324
|
};
|
|
7345
7325
|
const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
7346
7326
|
return {
|
|
7347
|
-
...(input.Filters
|
|
7348
|
-
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
7327
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
7349
7328
|
};
|
|
7350
7329
|
};
|
|
7351
7330
|
const serializeAws_restJson1FilterList = (input, context) => {
|
|
@@ -7360,12 +7339,11 @@ const serializeAws_restJson1FilterList = (input, context) => {
|
|
|
7360
7339
|
};
|
|
7361
7340
|
const serializeAws_restJson1FunctionCode = (input, context) => {
|
|
7362
7341
|
return {
|
|
7363
|
-
...(input.ImageUri
|
|
7364
|
-
...(input.S3Bucket
|
|
7365
|
-
...(input.S3Key
|
|
7366
|
-
...(input.S3ObjectVersion
|
|
7367
|
-
|
|
7368
|
-
...(input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }),
|
|
7342
|
+
...(input.ImageUri != null && { ImageUri: input.ImageUri }),
|
|
7343
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
7344
|
+
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
7345
|
+
...(input.S3ObjectVersion != null && { S3ObjectVersion: input.S3ObjectVersion }),
|
|
7346
|
+
...(input.ZipFile != null && { ZipFile: context.base64Encoder(input.ZipFile) }),
|
|
7369
7347
|
};
|
|
7370
7348
|
};
|
|
7371
7349
|
const serializeAws_restJson1FunctionResponseTypeList = (input, context) => {
|
|
@@ -7390,12 +7368,9 @@ const serializeAws_restJson1HeadersList = (input, context) => {
|
|
|
7390
7368
|
};
|
|
7391
7369
|
const serializeAws_restJson1ImageConfig = (input, context) => {
|
|
7392
7370
|
return {
|
|
7393
|
-
...(input.Command
|
|
7394
|
-
|
|
7395
|
-
...(input.
|
|
7396
|
-
input.EntryPoint !== null && { EntryPoint: serializeAws_restJson1StringList(input.EntryPoint, context) }),
|
|
7397
|
-
...(input.WorkingDirectory !== undefined &&
|
|
7398
|
-
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
|
|
7371
|
+
...(input.Command != null && { Command: serializeAws_restJson1StringList(input.Command, context) }),
|
|
7372
|
+
...(input.EntryPoint != null && { EntryPoint: serializeAws_restJson1StringList(input.EntryPoint, context) }),
|
|
7373
|
+
...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
|
|
7399
7374
|
};
|
|
7400
7375
|
};
|
|
7401
7376
|
const serializeAws_restJson1LayerList = (input, context) => {
|
|
@@ -7410,21 +7385,20 @@ const serializeAws_restJson1LayerList = (input, context) => {
|
|
|
7410
7385
|
};
|
|
7411
7386
|
const serializeAws_restJson1LayerVersionContentInput = (input, context) => {
|
|
7412
7387
|
return {
|
|
7413
|
-
...(input.S3Bucket
|
|
7414
|
-
...(input.S3Key
|
|
7415
|
-
...(input.S3ObjectVersion
|
|
7416
|
-
|
|
7417
|
-
...(input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }),
|
|
7388
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
7389
|
+
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
7390
|
+
...(input.S3ObjectVersion != null && { S3ObjectVersion: input.S3ObjectVersion }),
|
|
7391
|
+
...(input.ZipFile != null && { ZipFile: context.base64Encoder(input.ZipFile) }),
|
|
7418
7392
|
};
|
|
7419
7393
|
};
|
|
7420
7394
|
const serializeAws_restJson1OnFailure = (input, context) => {
|
|
7421
7395
|
return {
|
|
7422
|
-
...(input.Destination
|
|
7396
|
+
...(input.Destination != null && { Destination: input.Destination }),
|
|
7423
7397
|
};
|
|
7424
7398
|
};
|
|
7425
7399
|
const serializeAws_restJson1OnSuccess = (input, context) => {
|
|
7426
7400
|
return {
|
|
7427
|
-
...(input.Destination
|
|
7401
|
+
...(input.Destination != null && { Destination: input.Destination }),
|
|
7428
7402
|
};
|
|
7429
7403
|
};
|
|
7430
7404
|
const serializeAws_restJson1Queues = (input, context) => {
|
|
@@ -7449,8 +7423,7 @@ const serializeAws_restJson1SecurityGroupIds = (input, context) => {
|
|
|
7449
7423
|
};
|
|
7450
7424
|
const serializeAws_restJson1SelfManagedEventSource = (input, context) => {
|
|
7451
7425
|
return {
|
|
7452
|
-
...(input.Endpoints
|
|
7453
|
-
input.Endpoints !== null && { Endpoints: serializeAws_restJson1Endpoints(input.Endpoints, context) }),
|
|
7426
|
+
...(input.Endpoints != null && { Endpoints: serializeAws_restJson1Endpoints(input.Endpoints, context) }),
|
|
7454
7427
|
};
|
|
7455
7428
|
};
|
|
7456
7429
|
const serializeAws_restJson1SigningProfileVersionArns = (input, context) => {
|
|
@@ -7465,8 +7438,8 @@ const serializeAws_restJson1SigningProfileVersionArns = (input, context) => {
|
|
|
7465
7438
|
};
|
|
7466
7439
|
const serializeAws_restJson1SourceAccessConfiguration = (input, context) => {
|
|
7467
7440
|
return {
|
|
7468
|
-
...(input.Type
|
|
7469
|
-
...(input.URI
|
|
7441
|
+
...(input.Type != null && { Type: input.Type }),
|
|
7442
|
+
...(input.URI != null && { URI: input.URI }),
|
|
7470
7443
|
};
|
|
7471
7444
|
};
|
|
7472
7445
|
const serializeAws_restJson1SourceAccessConfigurations = (input, context) => {
|
|
@@ -7522,17 +7495,15 @@ const serializeAws_restJson1Topics = (input, context) => {
|
|
|
7522
7495
|
};
|
|
7523
7496
|
const serializeAws_restJson1TracingConfig = (input, context) => {
|
|
7524
7497
|
return {
|
|
7525
|
-
...(input.Mode
|
|
7498
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
7526
7499
|
};
|
|
7527
7500
|
};
|
|
7528
7501
|
const serializeAws_restJson1VpcConfig = (input, context) => {
|
|
7529
7502
|
return {
|
|
7530
|
-
...(input.SecurityGroupIds
|
|
7531
|
-
input.SecurityGroupIds !== null && {
|
|
7503
|
+
...(input.SecurityGroupIds != null && {
|
|
7532
7504
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
7533
7505
|
}),
|
|
7534
|
-
...(input.SubnetIds
|
|
7535
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }),
|
|
7506
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }),
|
|
7536
7507
|
};
|
|
7537
7508
|
};
|
|
7538
7509
|
const deserializeAws_restJson1AccountLimit = (output, context) => {
|
|
@@ -7568,7 +7539,7 @@ const deserializeAws_restJson1AliasConfiguration = (output, context) => {
|
|
|
7568
7539
|
FunctionVersion: (0, smithy_client_1.expectString)(output.FunctionVersion),
|
|
7569
7540
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
7570
7541
|
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
7571
|
-
RoutingConfig: output.RoutingConfig
|
|
7542
|
+
RoutingConfig: output.RoutingConfig != null
|
|
7572
7543
|
? deserializeAws_restJson1AliasRoutingConfiguration(output.RoutingConfig, context)
|
|
7573
7544
|
: undefined,
|
|
7574
7545
|
};
|
|
@@ -7586,14 +7557,14 @@ const deserializeAws_restJson1AliasList = (output, context) => {
|
|
|
7586
7557
|
};
|
|
7587
7558
|
const deserializeAws_restJson1AliasRoutingConfiguration = (output, context) => {
|
|
7588
7559
|
return {
|
|
7589
|
-
AdditionalVersionWeights: output.AdditionalVersionWeights
|
|
7560
|
+
AdditionalVersionWeights: output.AdditionalVersionWeights != null
|
|
7590
7561
|
? deserializeAws_restJson1AdditionalVersionWeights(output.AdditionalVersionWeights, context)
|
|
7591
7562
|
: undefined,
|
|
7592
7563
|
};
|
|
7593
7564
|
};
|
|
7594
7565
|
const deserializeAws_restJson1AllowedPublishers = (output, context) => {
|
|
7595
7566
|
return {
|
|
7596
|
-
SigningProfileVersionArns: output.SigningProfileVersionArns
|
|
7567
|
+
SigningProfileVersionArns: output.SigningProfileVersionArns != null
|
|
7597
7568
|
? deserializeAws_restJson1SigningProfileVersionArns(output.SigningProfileVersionArns, context)
|
|
7598
7569
|
: undefined,
|
|
7599
7570
|
};
|
|
@@ -7633,12 +7604,12 @@ const deserializeAws_restJson1ArchitecturesList = (output, context) => {
|
|
|
7633
7604
|
};
|
|
7634
7605
|
const deserializeAws_restJson1CodeSigningConfig = (output, context) => {
|
|
7635
7606
|
return {
|
|
7636
|
-
AllowedPublishers: output.AllowedPublishers
|
|
7607
|
+
AllowedPublishers: output.AllowedPublishers != null
|
|
7637
7608
|
? deserializeAws_restJson1AllowedPublishers(output.AllowedPublishers, context)
|
|
7638
7609
|
: undefined,
|
|
7639
7610
|
CodeSigningConfigArn: (0, smithy_client_1.expectString)(output.CodeSigningConfigArn),
|
|
7640
7611
|
CodeSigningConfigId: (0, smithy_client_1.expectString)(output.CodeSigningConfigId),
|
|
7641
|
-
CodeSigningPolicies: output.CodeSigningPolicies
|
|
7612
|
+
CodeSigningPolicies: output.CodeSigningPolicies != null
|
|
7642
7613
|
? deserializeAws_restJson1CodeSigningPolicies(output.CodeSigningPolicies, context)
|
|
7643
7614
|
: undefined,
|
|
7644
7615
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -7691,18 +7662,10 @@ const deserializeAws_restJson1Concurrency = (output, context) => {
|
|
|
7691
7662
|
const deserializeAws_restJson1Cors = (output, context) => {
|
|
7692
7663
|
return {
|
|
7693
7664
|
AllowCredentials: (0, smithy_client_1.expectBoolean)(output.AllowCredentials),
|
|
7694
|
-
AllowHeaders: output.AllowHeaders
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
? deserializeAws_restJson1AllowMethodsList(output.AllowMethods, context)
|
|
7699
|
-
: undefined,
|
|
7700
|
-
AllowOrigins: output.AllowOrigins !== undefined && output.AllowOrigins !== null
|
|
7701
|
-
? deserializeAws_restJson1AllowOriginsList(output.AllowOrigins, context)
|
|
7702
|
-
: undefined,
|
|
7703
|
-
ExposeHeaders: output.ExposeHeaders !== undefined && output.ExposeHeaders !== null
|
|
7704
|
-
? deserializeAws_restJson1HeadersList(output.ExposeHeaders, context)
|
|
7705
|
-
: undefined,
|
|
7665
|
+
AllowHeaders: output.AllowHeaders != null ? deserializeAws_restJson1HeadersList(output.AllowHeaders, context) : undefined,
|
|
7666
|
+
AllowMethods: output.AllowMethods != null ? deserializeAws_restJson1AllowMethodsList(output.AllowMethods, context) : undefined,
|
|
7667
|
+
AllowOrigins: output.AllowOrigins != null ? deserializeAws_restJson1AllowOriginsList(output.AllowOrigins, context) : undefined,
|
|
7668
|
+
ExposeHeaders: output.ExposeHeaders != null ? deserializeAws_restJson1HeadersList(output.ExposeHeaders, context) : undefined,
|
|
7706
7669
|
MaxAge: (0, smithy_client_1.expectInt32)(output.MaxAge),
|
|
7707
7670
|
};
|
|
7708
7671
|
};
|
|
@@ -7713,12 +7676,8 @@ const deserializeAws_restJson1DeadLetterConfig = (output, context) => {
|
|
|
7713
7676
|
};
|
|
7714
7677
|
const deserializeAws_restJson1DestinationConfig = (output, context) => {
|
|
7715
7678
|
return {
|
|
7716
|
-
OnFailure: output.OnFailure
|
|
7717
|
-
|
|
7718
|
-
: undefined,
|
|
7719
|
-
OnSuccess: output.OnSuccess !== undefined && output.OnSuccess !== null
|
|
7720
|
-
? deserializeAws_restJson1OnSuccess(output.OnSuccess, context)
|
|
7721
|
-
: undefined,
|
|
7679
|
+
OnFailure: output.OnFailure != null ? deserializeAws_restJson1OnFailure(output.OnFailure, context) : undefined,
|
|
7680
|
+
OnSuccess: output.OnSuccess != null ? deserializeAws_restJson1OnSuccess(output.OnSuccess, context) : undefined,
|
|
7722
7681
|
};
|
|
7723
7682
|
};
|
|
7724
7683
|
const deserializeAws_restJson1EndpointLists = (output, context) => {
|
|
@@ -7751,12 +7710,8 @@ const deserializeAws_restJson1EnvironmentError = (output, context) => {
|
|
|
7751
7710
|
};
|
|
7752
7711
|
const deserializeAws_restJson1EnvironmentResponse = (output, context) => {
|
|
7753
7712
|
return {
|
|
7754
|
-
Error: output.Error
|
|
7755
|
-
|
|
7756
|
-
: undefined,
|
|
7757
|
-
Variables: output.Variables !== undefined && output.Variables !== null
|
|
7758
|
-
? deserializeAws_restJson1EnvironmentVariables(output.Variables, context)
|
|
7759
|
-
: undefined,
|
|
7713
|
+
Error: output.Error != null ? deserializeAws_restJson1EnvironmentError(output.Error, context) : undefined,
|
|
7714
|
+
Variables: output.Variables != null ? deserializeAws_restJson1EnvironmentVariables(output.Variables, context) : undefined,
|
|
7760
7715
|
};
|
|
7761
7716
|
};
|
|
7762
7717
|
const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
|
|
@@ -7779,18 +7734,18 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
|
|
|
7779
7734
|
return {
|
|
7780
7735
|
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
7781
7736
|
BisectBatchOnFunctionError: (0, smithy_client_1.expectBoolean)(output.BisectBatchOnFunctionError),
|
|
7782
|
-
DestinationConfig: output.DestinationConfig
|
|
7737
|
+
DestinationConfig: output.DestinationConfig != null
|
|
7783
7738
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
7784
7739
|
: undefined,
|
|
7785
7740
|
EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
|
|
7786
|
-
FilterCriteria: output.FilterCriteria
|
|
7741
|
+
FilterCriteria: output.FilterCriteria != null
|
|
7787
7742
|
? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
|
|
7788
7743
|
: undefined,
|
|
7789
7744
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
7790
|
-
FunctionResponseTypes: output.FunctionResponseTypes
|
|
7745
|
+
FunctionResponseTypes: output.FunctionResponseTypes != null
|
|
7791
7746
|
? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
|
|
7792
7747
|
: undefined,
|
|
7793
|
-
LastModified: output.LastModified
|
|
7748
|
+
LastModified: output.LastModified != null
|
|
7794
7749
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
|
|
7795
7750
|
: undefined,
|
|
7796
7751
|
LastProcessingResult: (0, smithy_client_1.expectString)(output.LastProcessingResult),
|
|
@@ -7798,24 +7753,20 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
|
|
|
7798
7753
|
MaximumRecordAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumRecordAgeInSeconds),
|
|
7799
7754
|
MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
|
|
7800
7755
|
ParallelizationFactor: (0, smithy_client_1.expectInt32)(output.ParallelizationFactor),
|
|
7801
|
-
Queues: output.Queues
|
|
7802
|
-
|
|
7803
|
-
: undefined,
|
|
7804
|
-
SelfManagedEventSource: output.SelfManagedEventSource !== undefined && output.SelfManagedEventSource !== null
|
|
7756
|
+
Queues: output.Queues != null ? deserializeAws_restJson1Queues(output.Queues, context) : undefined,
|
|
7757
|
+
SelfManagedEventSource: output.SelfManagedEventSource != null
|
|
7805
7758
|
? deserializeAws_restJson1SelfManagedEventSource(output.SelfManagedEventSource, context)
|
|
7806
7759
|
: undefined,
|
|
7807
|
-
SourceAccessConfigurations: output.SourceAccessConfigurations
|
|
7760
|
+
SourceAccessConfigurations: output.SourceAccessConfigurations != null
|
|
7808
7761
|
? deserializeAws_restJson1SourceAccessConfigurations(output.SourceAccessConfigurations, context)
|
|
7809
7762
|
: undefined,
|
|
7810
7763
|
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
7811
|
-
StartingPositionTimestamp: output.StartingPositionTimestamp
|
|
7764
|
+
StartingPositionTimestamp: output.StartingPositionTimestamp != null
|
|
7812
7765
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartingPositionTimestamp)))
|
|
7813
7766
|
: undefined,
|
|
7814
7767
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7815
7768
|
StateTransitionReason: (0, smithy_client_1.expectString)(output.StateTransitionReason),
|
|
7816
|
-
Topics: output.Topics
|
|
7817
|
-
? deserializeAws_restJson1Topics(output.Topics, context)
|
|
7818
|
-
: undefined,
|
|
7769
|
+
Topics: output.Topics != null ? deserializeAws_restJson1Topics(output.Topics, context) : undefined,
|
|
7819
7770
|
TumblingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.TumblingWindowInSeconds),
|
|
7820
7771
|
UUID: (0, smithy_client_1.expectString)(output.UUID),
|
|
7821
7772
|
};
|
|
@@ -7855,9 +7806,7 @@ const deserializeAws_restJson1Filter = (output, context) => {
|
|
|
7855
7806
|
};
|
|
7856
7807
|
const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
7857
7808
|
return {
|
|
7858
|
-
Filters: output.Filters
|
|
7859
|
-
? deserializeAws_restJson1FilterList(output.Filters, context)
|
|
7860
|
-
: undefined,
|
|
7809
|
+
Filters: output.Filters != null ? deserializeAws_restJson1FilterList(output.Filters, context) : undefined,
|
|
7861
7810
|
};
|
|
7862
7811
|
};
|
|
7863
7812
|
const deserializeAws_restJson1FilterList = (output, context) => {
|
|
@@ -7892,28 +7841,26 @@ const deserializeAws_restJson1FunctionCodeLocation = (output, context) => {
|
|
|
7892
7841
|
};
|
|
7893
7842
|
const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
7894
7843
|
return {
|
|
7895
|
-
Architectures: output.Architectures
|
|
7844
|
+
Architectures: output.Architectures != null
|
|
7896
7845
|
? deserializeAws_restJson1ArchitecturesList(output.Architectures, context)
|
|
7897
7846
|
: undefined,
|
|
7898
7847
|
CodeSha256: (0, smithy_client_1.expectString)(output.CodeSha256),
|
|
7899
7848
|
CodeSize: (0, smithy_client_1.expectLong)(output.CodeSize),
|
|
7900
|
-
DeadLetterConfig: output.DeadLetterConfig
|
|
7849
|
+
DeadLetterConfig: output.DeadLetterConfig != null
|
|
7901
7850
|
? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
|
|
7902
7851
|
: undefined,
|
|
7903
7852
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7904
|
-
Environment: output.Environment
|
|
7905
|
-
|
|
7906
|
-
: undefined,
|
|
7907
|
-
EphemeralStorage: output.EphemeralStorage !== undefined && output.EphemeralStorage !== null
|
|
7853
|
+
Environment: output.Environment != null ? deserializeAws_restJson1EnvironmentResponse(output.Environment, context) : undefined,
|
|
7854
|
+
EphemeralStorage: output.EphemeralStorage != null
|
|
7908
7855
|
? deserializeAws_restJson1EphemeralStorage(output.EphemeralStorage, context)
|
|
7909
7856
|
: undefined,
|
|
7910
|
-
FileSystemConfigs: output.FileSystemConfigs
|
|
7857
|
+
FileSystemConfigs: output.FileSystemConfigs != null
|
|
7911
7858
|
? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
|
|
7912
7859
|
: undefined,
|
|
7913
7860
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
7914
7861
|
FunctionName: (0, smithy_client_1.expectString)(output.FunctionName),
|
|
7915
7862
|
Handler: (0, smithy_client_1.expectString)(output.Handler),
|
|
7916
|
-
ImageConfigResponse: output.ImageConfigResponse
|
|
7863
|
+
ImageConfigResponse: output.ImageConfigResponse != null
|
|
7917
7864
|
? deserializeAws_restJson1ImageConfigResponse(output.ImageConfigResponse, context)
|
|
7918
7865
|
: undefined,
|
|
7919
7866
|
KMSKeyArn: (0, smithy_client_1.expectString)(output.KMSKeyArn),
|
|
@@ -7921,9 +7868,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
7921
7868
|
LastUpdateStatus: (0, smithy_client_1.expectString)(output.LastUpdateStatus),
|
|
7922
7869
|
LastUpdateStatusReason: (0, smithy_client_1.expectString)(output.LastUpdateStatusReason),
|
|
7923
7870
|
LastUpdateStatusReasonCode: (0, smithy_client_1.expectString)(output.LastUpdateStatusReasonCode),
|
|
7924
|
-
Layers: output.Layers
|
|
7925
|
-
? deserializeAws_restJson1LayersReferenceList(output.Layers, context)
|
|
7926
|
-
: undefined,
|
|
7871
|
+
Layers: output.Layers != null ? deserializeAws_restJson1LayersReferenceList(output.Layers, context) : undefined,
|
|
7927
7872
|
MasterArn: (0, smithy_client_1.expectString)(output.MasterArn),
|
|
7928
7873
|
MemorySize: (0, smithy_client_1.expectInt32)(output.MemorySize),
|
|
7929
7874
|
PackageType: (0, smithy_client_1.expectString)(output.PackageType),
|
|
@@ -7936,22 +7881,20 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
7936
7881
|
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
7937
7882
|
StateReasonCode: (0, smithy_client_1.expectString)(output.StateReasonCode),
|
|
7938
7883
|
Timeout: (0, smithy_client_1.expectInt32)(output.Timeout),
|
|
7939
|
-
TracingConfig: output.TracingConfig
|
|
7884
|
+
TracingConfig: output.TracingConfig != null
|
|
7940
7885
|
? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context)
|
|
7941
7886
|
: undefined,
|
|
7942
7887
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
7943
|
-
VpcConfig: output.VpcConfig
|
|
7944
|
-
? deserializeAws_restJson1VpcConfigResponse(output.VpcConfig, context)
|
|
7945
|
-
: undefined,
|
|
7888
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_restJson1VpcConfigResponse(output.VpcConfig, context) : undefined,
|
|
7946
7889
|
};
|
|
7947
7890
|
};
|
|
7948
7891
|
const deserializeAws_restJson1FunctionEventInvokeConfig = (output, context) => {
|
|
7949
7892
|
return {
|
|
7950
|
-
DestinationConfig: output.DestinationConfig
|
|
7893
|
+
DestinationConfig: output.DestinationConfig != null
|
|
7951
7894
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
7952
7895
|
: undefined,
|
|
7953
7896
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
7954
|
-
LastModified: output.LastModified
|
|
7897
|
+
LastModified: output.LastModified != null
|
|
7955
7898
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
|
|
7956
7899
|
: undefined,
|
|
7957
7900
|
MaximumEventAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumEventAgeInSeconds),
|
|
@@ -7994,9 +7937,7 @@ const deserializeAws_restJson1FunctionResponseTypeList = (output, context) => {
|
|
|
7994
7937
|
const deserializeAws_restJson1FunctionUrlConfig = (output, context) => {
|
|
7995
7938
|
return {
|
|
7996
7939
|
AuthType: (0, smithy_client_1.expectString)(output.AuthType),
|
|
7997
|
-
Cors: output.Cors
|
|
7998
|
-
? deserializeAws_restJson1Cors(output.Cors, context)
|
|
7999
|
-
: undefined,
|
|
7940
|
+
Cors: output.Cors != null ? deserializeAws_restJson1Cors(output.Cors, context) : undefined,
|
|
8000
7941
|
CreationTime: (0, smithy_client_1.expectString)(output.CreationTime),
|
|
8001
7942
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
8002
7943
|
FunctionUrl: (0, smithy_client_1.expectString)(output.FunctionUrl),
|
|
@@ -8027,12 +7968,8 @@ const deserializeAws_restJson1HeadersList = (output, context) => {
|
|
|
8027
7968
|
};
|
|
8028
7969
|
const deserializeAws_restJson1ImageConfig = (output, context) => {
|
|
8029
7970
|
return {
|
|
8030
|
-
Command: output.Command
|
|
8031
|
-
|
|
8032
|
-
: undefined,
|
|
8033
|
-
EntryPoint: output.EntryPoint !== undefined && output.EntryPoint !== null
|
|
8034
|
-
? deserializeAws_restJson1StringList(output.EntryPoint, context)
|
|
8035
|
-
: undefined,
|
|
7971
|
+
Command: output.Command != null ? deserializeAws_restJson1StringList(output.Command, context) : undefined,
|
|
7972
|
+
EntryPoint: output.EntryPoint != null ? deserializeAws_restJson1StringList(output.EntryPoint, context) : undefined,
|
|
8036
7973
|
WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
|
|
8037
7974
|
};
|
|
8038
7975
|
};
|
|
@@ -8044,12 +7981,8 @@ const deserializeAws_restJson1ImageConfigError = (output, context) => {
|
|
|
8044
7981
|
};
|
|
8045
7982
|
const deserializeAws_restJson1ImageConfigResponse = (output, context) => {
|
|
8046
7983
|
return {
|
|
8047
|
-
Error: output.Error
|
|
8048
|
-
|
|
8049
|
-
: undefined,
|
|
8050
|
-
ImageConfig: output.ImageConfig !== undefined && output.ImageConfig !== null
|
|
8051
|
-
? deserializeAws_restJson1ImageConfig(output.ImageConfig, context)
|
|
8052
|
-
: undefined,
|
|
7984
|
+
Error: output.Error != null ? deserializeAws_restJson1ImageConfigError(output.Error, context) : undefined,
|
|
7985
|
+
ImageConfig: output.ImageConfig != null ? deserializeAws_restJson1ImageConfig(output.ImageConfig, context) : undefined,
|
|
8053
7986
|
};
|
|
8054
7987
|
};
|
|
8055
7988
|
const deserializeAws_restJson1Layer = (output, context) => {
|
|
@@ -8073,7 +8006,7 @@ const deserializeAws_restJson1LayersList = (output, context) => {
|
|
|
8073
8006
|
};
|
|
8074
8007
|
const deserializeAws_restJson1LayersListItem = (output, context) => {
|
|
8075
8008
|
return {
|
|
8076
|
-
LatestMatchingVersion: output.LatestMatchingVersion
|
|
8009
|
+
LatestMatchingVersion: output.LatestMatchingVersion != null
|
|
8077
8010
|
? deserializeAws_restJson1LayerVersionsListItem(output.LatestMatchingVersion, context)
|
|
8078
8011
|
: undefined,
|
|
8079
8012
|
LayerArn: (0, smithy_client_1.expectString)(output.LayerArn),
|
|
@@ -8113,10 +8046,10 @@ const deserializeAws_restJson1LayerVersionsList = (output, context) => {
|
|
|
8113
8046
|
};
|
|
8114
8047
|
const deserializeAws_restJson1LayerVersionsListItem = (output, context) => {
|
|
8115
8048
|
return {
|
|
8116
|
-
CompatibleArchitectures: output.CompatibleArchitectures
|
|
8049
|
+
CompatibleArchitectures: output.CompatibleArchitectures != null
|
|
8117
8050
|
? deserializeAws_restJson1CompatibleArchitectures(output.CompatibleArchitectures, context)
|
|
8118
8051
|
: undefined,
|
|
8119
|
-
CompatibleRuntimes: output.CompatibleRuntimes
|
|
8052
|
+
CompatibleRuntimes: output.CompatibleRuntimes != null
|
|
8120
8053
|
? deserializeAws_restJson1CompatibleRuntimes(output.CompatibleRuntimes, context)
|
|
8121
8054
|
: undefined,
|
|
8122
8055
|
CreatedDate: (0, smithy_client_1.expectString)(output.CreatedDate),
|
|
@@ -8182,9 +8115,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
|
8182
8115
|
};
|
|
8183
8116
|
const deserializeAws_restJson1SelfManagedEventSource = (output, context) => {
|
|
8184
8117
|
return {
|
|
8185
|
-
Endpoints: output.Endpoints
|
|
8186
|
-
? deserializeAws_restJson1Endpoints(output.Endpoints, context)
|
|
8187
|
-
: undefined,
|
|
8118
|
+
Endpoints: output.Endpoints != null ? deserializeAws_restJson1Endpoints(output.Endpoints, context) : undefined,
|
|
8188
8119
|
};
|
|
8189
8120
|
};
|
|
8190
8121
|
const deserializeAws_restJson1SigningProfileVersionArns = (output, context) => {
|
|
@@ -8266,12 +8197,10 @@ const deserializeAws_restJson1TracingConfigResponse = (output, context) => {
|
|
|
8266
8197
|
};
|
|
8267
8198
|
const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
8268
8199
|
return {
|
|
8269
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
8200
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
8270
8201
|
? deserializeAws_restJson1SecurityGroupIds(output.SecurityGroupIds, context)
|
|
8271
8202
|
: undefined,
|
|
8272
|
-
SubnetIds: output.SubnetIds
|
|
8273
|
-
? deserializeAws_restJson1SubnetIds(output.SubnetIds, context)
|
|
8274
|
-
: undefined,
|
|
8203
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetIds(output.SubnetIds, context) : undefined,
|
|
8275
8204
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
8276
8205
|
};
|
|
8277
8206
|
};
|
|
@@ -8324,5 +8253,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
8324
8253
|
if (data["__type"] !== undefined) {
|
|
8325
8254
|
return sanitizeErrorCode(data["__type"]);
|
|
8326
8255
|
}
|
|
8327
|
-
return "";
|
|
8328
8256
|
};
|