@aws-sdk/client-lambda 3.121.0 → 3.130.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 +214 -345
- package/dist-es/protocols/Aws_restJson1.js +123 -254
- 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,
|
|
@@ -7234,16 +7163,14 @@ const serializeAws_restJson1AdditionalVersionWeights = (input, context) => {
|
|
|
7234
7163
|
};
|
|
7235
7164
|
const serializeAws_restJson1AliasRoutingConfiguration = (input, context) => {
|
|
7236
7165
|
return {
|
|
7237
|
-
...(input.AdditionalVersionWeights
|
|
7238
|
-
input.AdditionalVersionWeights !== null && {
|
|
7166
|
+
...(input.AdditionalVersionWeights != null && {
|
|
7239
7167
|
AdditionalVersionWeights: serializeAws_restJson1AdditionalVersionWeights(input.AdditionalVersionWeights, context),
|
|
7240
7168
|
}),
|
|
7241
7169
|
};
|
|
7242
7170
|
};
|
|
7243
7171
|
const serializeAws_restJson1AllowedPublishers = (input, context) => {
|
|
7244
7172
|
return {
|
|
7245
|
-
...(input.SigningProfileVersionArns
|
|
7246
|
-
input.SigningProfileVersionArns !== null && {
|
|
7173
|
+
...(input.SigningProfileVersionArns != null && {
|
|
7247
7174
|
SigningProfileVersionArns: serializeAws_restJson1SigningProfileVersionArns(input.SigningProfileVersionArns, context),
|
|
7248
7175
|
}),
|
|
7249
7176
|
};
|
|
@@ -7280,8 +7207,7 @@ const serializeAws_restJson1ArchitecturesList = (input, context) => {
|
|
|
7280
7207
|
};
|
|
7281
7208
|
const serializeAws_restJson1CodeSigningPolicies = (input, context) => {
|
|
7282
7209
|
return {
|
|
7283
|
-
...(input.UntrustedArtifactOnDeployment
|
|
7284
|
-
input.UntrustedArtifactOnDeployment !== null && {
|
|
7210
|
+
...(input.UntrustedArtifactOnDeployment != null && {
|
|
7285
7211
|
UntrustedArtifactOnDeployment: input.UntrustedArtifactOnDeployment,
|
|
7286
7212
|
}),
|
|
7287
7213
|
};
|
|
@@ -7308,36 +7234,29 @@ const serializeAws_restJson1CompatibleRuntimes = (input, context) => {
|
|
|
7308
7234
|
};
|
|
7309
7235
|
const serializeAws_restJson1Cors = (input, context) => {
|
|
7310
7236
|
return {
|
|
7311
|
-
...(input.AllowCredentials
|
|
7312
|
-
|
|
7313
|
-
...(input.
|
|
7314
|
-
input.AllowHeaders !== null && { AllowHeaders: serializeAws_restJson1HeadersList(input.AllowHeaders, context) }),
|
|
7315
|
-
...(input.AllowMethods !== undefined &&
|
|
7316
|
-
input.AllowMethods !== null && {
|
|
7237
|
+
...(input.AllowCredentials != null && { AllowCredentials: input.AllowCredentials }),
|
|
7238
|
+
...(input.AllowHeaders != null && { AllowHeaders: serializeAws_restJson1HeadersList(input.AllowHeaders, context) }),
|
|
7239
|
+
...(input.AllowMethods != null && {
|
|
7317
7240
|
AllowMethods: serializeAws_restJson1AllowMethodsList(input.AllowMethods, context),
|
|
7318
7241
|
}),
|
|
7319
|
-
...(input.AllowOrigins
|
|
7320
|
-
input.AllowOrigins !== null && {
|
|
7242
|
+
...(input.AllowOrigins != null && {
|
|
7321
7243
|
AllowOrigins: serializeAws_restJson1AllowOriginsList(input.AllowOrigins, context),
|
|
7322
7244
|
}),
|
|
7323
|
-
...(input.ExposeHeaders
|
|
7324
|
-
input.ExposeHeaders !== null && {
|
|
7245
|
+
...(input.ExposeHeaders != null && {
|
|
7325
7246
|
ExposeHeaders: serializeAws_restJson1HeadersList(input.ExposeHeaders, context),
|
|
7326
7247
|
}),
|
|
7327
|
-
...(input.MaxAge
|
|
7248
|
+
...(input.MaxAge != null && { MaxAge: input.MaxAge }),
|
|
7328
7249
|
};
|
|
7329
7250
|
};
|
|
7330
7251
|
const serializeAws_restJson1DeadLetterConfig = (input, context) => {
|
|
7331
7252
|
return {
|
|
7332
|
-
...(input.TargetArn
|
|
7253
|
+
...(input.TargetArn != null && { TargetArn: input.TargetArn }),
|
|
7333
7254
|
};
|
|
7334
7255
|
};
|
|
7335
7256
|
const serializeAws_restJson1DestinationConfig = (input, context) => {
|
|
7336
7257
|
return {
|
|
7337
|
-
...(input.OnFailure
|
|
7338
|
-
|
|
7339
|
-
...(input.OnSuccess !== undefined &&
|
|
7340
|
-
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) }),
|
|
7341
7260
|
};
|
|
7342
7261
|
};
|
|
7343
7262
|
const serializeAws_restJson1EndpointLists = (input, context) => {
|
|
@@ -7363,8 +7282,7 @@ const serializeAws_restJson1Endpoints = (input, context) => {
|
|
|
7363
7282
|
};
|
|
7364
7283
|
const serializeAws_restJson1Environment = (input, context) => {
|
|
7365
7284
|
return {
|
|
7366
|
-
...(input.Variables
|
|
7367
|
-
input.Variables !== null && { Variables: serializeAws_restJson1EnvironmentVariables(input.Variables, context) }),
|
|
7285
|
+
...(input.Variables != null && { Variables: serializeAws_restJson1EnvironmentVariables(input.Variables, context) }),
|
|
7368
7286
|
};
|
|
7369
7287
|
};
|
|
7370
7288
|
const serializeAws_restJson1EnvironmentVariables = (input, context) => {
|
|
@@ -7380,14 +7298,13 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
|
|
|
7380
7298
|
};
|
|
7381
7299
|
const serializeAws_restJson1EphemeralStorage = (input, context) => {
|
|
7382
7300
|
return {
|
|
7383
|
-
...(input.Size
|
|
7301
|
+
...(input.Size != null && { Size: input.Size }),
|
|
7384
7302
|
};
|
|
7385
7303
|
};
|
|
7386
7304
|
const serializeAws_restJson1FileSystemConfig = (input, context) => {
|
|
7387
7305
|
return {
|
|
7388
|
-
...(input.Arn
|
|
7389
|
-
...(input.LocalMountPath
|
|
7390
|
-
input.LocalMountPath !== null && { LocalMountPath: input.LocalMountPath }),
|
|
7306
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
7307
|
+
...(input.LocalMountPath != null && { LocalMountPath: input.LocalMountPath }),
|
|
7391
7308
|
};
|
|
7392
7309
|
};
|
|
7393
7310
|
const serializeAws_restJson1FileSystemConfigList = (input, context) => {
|
|
@@ -7402,13 +7319,12 @@ const serializeAws_restJson1FileSystemConfigList = (input, context) => {
|
|
|
7402
7319
|
};
|
|
7403
7320
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
7404
7321
|
return {
|
|
7405
|
-
...(input.Pattern
|
|
7322
|
+
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
7406
7323
|
};
|
|
7407
7324
|
};
|
|
7408
7325
|
const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
7409
7326
|
return {
|
|
7410
|
-
...(input.Filters
|
|
7411
|
-
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
7327
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
7412
7328
|
};
|
|
7413
7329
|
};
|
|
7414
7330
|
const serializeAws_restJson1FilterList = (input, context) => {
|
|
@@ -7423,12 +7339,11 @@ const serializeAws_restJson1FilterList = (input, context) => {
|
|
|
7423
7339
|
};
|
|
7424
7340
|
const serializeAws_restJson1FunctionCode = (input, context) => {
|
|
7425
7341
|
return {
|
|
7426
|
-
...(input.ImageUri
|
|
7427
|
-
...(input.S3Bucket
|
|
7428
|
-
...(input.S3Key
|
|
7429
|
-
...(input.S3ObjectVersion
|
|
7430
|
-
|
|
7431
|
-
...(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) }),
|
|
7432
7347
|
};
|
|
7433
7348
|
};
|
|
7434
7349
|
const serializeAws_restJson1FunctionResponseTypeList = (input, context) => {
|
|
@@ -7453,12 +7368,9 @@ const serializeAws_restJson1HeadersList = (input, context) => {
|
|
|
7453
7368
|
};
|
|
7454
7369
|
const serializeAws_restJson1ImageConfig = (input, context) => {
|
|
7455
7370
|
return {
|
|
7456
|
-
...(input.Command
|
|
7457
|
-
|
|
7458
|
-
...(input.
|
|
7459
|
-
input.EntryPoint !== null && { EntryPoint: serializeAws_restJson1StringList(input.EntryPoint, context) }),
|
|
7460
|
-
...(input.WorkingDirectory !== undefined &&
|
|
7461
|
-
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 }),
|
|
7462
7374
|
};
|
|
7463
7375
|
};
|
|
7464
7376
|
const serializeAws_restJson1LayerList = (input, context) => {
|
|
@@ -7473,21 +7385,20 @@ const serializeAws_restJson1LayerList = (input, context) => {
|
|
|
7473
7385
|
};
|
|
7474
7386
|
const serializeAws_restJson1LayerVersionContentInput = (input, context) => {
|
|
7475
7387
|
return {
|
|
7476
|
-
...(input.S3Bucket
|
|
7477
|
-
...(input.S3Key
|
|
7478
|
-
...(input.S3ObjectVersion
|
|
7479
|
-
|
|
7480
|
-
...(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) }),
|
|
7481
7392
|
};
|
|
7482
7393
|
};
|
|
7483
7394
|
const serializeAws_restJson1OnFailure = (input, context) => {
|
|
7484
7395
|
return {
|
|
7485
|
-
...(input.Destination
|
|
7396
|
+
...(input.Destination != null && { Destination: input.Destination }),
|
|
7486
7397
|
};
|
|
7487
7398
|
};
|
|
7488
7399
|
const serializeAws_restJson1OnSuccess = (input, context) => {
|
|
7489
7400
|
return {
|
|
7490
|
-
...(input.Destination
|
|
7401
|
+
...(input.Destination != null && { Destination: input.Destination }),
|
|
7491
7402
|
};
|
|
7492
7403
|
};
|
|
7493
7404
|
const serializeAws_restJson1Queues = (input, context) => {
|
|
@@ -7512,8 +7423,7 @@ const serializeAws_restJson1SecurityGroupIds = (input, context) => {
|
|
|
7512
7423
|
};
|
|
7513
7424
|
const serializeAws_restJson1SelfManagedEventSource = (input, context) => {
|
|
7514
7425
|
return {
|
|
7515
|
-
...(input.Endpoints
|
|
7516
|
-
input.Endpoints !== null && { Endpoints: serializeAws_restJson1Endpoints(input.Endpoints, context) }),
|
|
7426
|
+
...(input.Endpoints != null && { Endpoints: serializeAws_restJson1Endpoints(input.Endpoints, context) }),
|
|
7517
7427
|
};
|
|
7518
7428
|
};
|
|
7519
7429
|
const serializeAws_restJson1SigningProfileVersionArns = (input, context) => {
|
|
@@ -7528,8 +7438,8 @@ const serializeAws_restJson1SigningProfileVersionArns = (input, context) => {
|
|
|
7528
7438
|
};
|
|
7529
7439
|
const serializeAws_restJson1SourceAccessConfiguration = (input, context) => {
|
|
7530
7440
|
return {
|
|
7531
|
-
...(input.Type
|
|
7532
|
-
...(input.URI
|
|
7441
|
+
...(input.Type != null && { Type: input.Type }),
|
|
7442
|
+
...(input.URI != null && { URI: input.URI }),
|
|
7533
7443
|
};
|
|
7534
7444
|
};
|
|
7535
7445
|
const serializeAws_restJson1SourceAccessConfigurations = (input, context) => {
|
|
@@ -7585,17 +7495,15 @@ const serializeAws_restJson1Topics = (input, context) => {
|
|
|
7585
7495
|
};
|
|
7586
7496
|
const serializeAws_restJson1TracingConfig = (input, context) => {
|
|
7587
7497
|
return {
|
|
7588
|
-
...(input.Mode
|
|
7498
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
7589
7499
|
};
|
|
7590
7500
|
};
|
|
7591
7501
|
const serializeAws_restJson1VpcConfig = (input, context) => {
|
|
7592
7502
|
return {
|
|
7593
|
-
...(input.SecurityGroupIds
|
|
7594
|
-
input.SecurityGroupIds !== null && {
|
|
7503
|
+
...(input.SecurityGroupIds != null && {
|
|
7595
7504
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
7596
7505
|
}),
|
|
7597
|
-
...(input.SubnetIds
|
|
7598
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }),
|
|
7506
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }),
|
|
7599
7507
|
};
|
|
7600
7508
|
};
|
|
7601
7509
|
const deserializeAws_restJson1AccountLimit = (output, context) => {
|
|
@@ -7631,7 +7539,7 @@ const deserializeAws_restJson1AliasConfiguration = (output, context) => {
|
|
|
7631
7539
|
FunctionVersion: (0, smithy_client_1.expectString)(output.FunctionVersion),
|
|
7632
7540
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
7633
7541
|
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
7634
|
-
RoutingConfig: output.RoutingConfig
|
|
7542
|
+
RoutingConfig: output.RoutingConfig != null
|
|
7635
7543
|
? deserializeAws_restJson1AliasRoutingConfiguration(output.RoutingConfig, context)
|
|
7636
7544
|
: undefined,
|
|
7637
7545
|
};
|
|
@@ -7649,14 +7557,14 @@ const deserializeAws_restJson1AliasList = (output, context) => {
|
|
|
7649
7557
|
};
|
|
7650
7558
|
const deserializeAws_restJson1AliasRoutingConfiguration = (output, context) => {
|
|
7651
7559
|
return {
|
|
7652
|
-
AdditionalVersionWeights: output.AdditionalVersionWeights
|
|
7560
|
+
AdditionalVersionWeights: output.AdditionalVersionWeights != null
|
|
7653
7561
|
? deserializeAws_restJson1AdditionalVersionWeights(output.AdditionalVersionWeights, context)
|
|
7654
7562
|
: undefined,
|
|
7655
7563
|
};
|
|
7656
7564
|
};
|
|
7657
7565
|
const deserializeAws_restJson1AllowedPublishers = (output, context) => {
|
|
7658
7566
|
return {
|
|
7659
|
-
SigningProfileVersionArns: output.SigningProfileVersionArns
|
|
7567
|
+
SigningProfileVersionArns: output.SigningProfileVersionArns != null
|
|
7660
7568
|
? deserializeAws_restJson1SigningProfileVersionArns(output.SigningProfileVersionArns, context)
|
|
7661
7569
|
: undefined,
|
|
7662
7570
|
};
|
|
@@ -7696,12 +7604,12 @@ const deserializeAws_restJson1ArchitecturesList = (output, context) => {
|
|
|
7696
7604
|
};
|
|
7697
7605
|
const deserializeAws_restJson1CodeSigningConfig = (output, context) => {
|
|
7698
7606
|
return {
|
|
7699
|
-
AllowedPublishers: output.AllowedPublishers
|
|
7607
|
+
AllowedPublishers: output.AllowedPublishers != null
|
|
7700
7608
|
? deserializeAws_restJson1AllowedPublishers(output.AllowedPublishers, context)
|
|
7701
7609
|
: undefined,
|
|
7702
7610
|
CodeSigningConfigArn: (0, smithy_client_1.expectString)(output.CodeSigningConfigArn),
|
|
7703
7611
|
CodeSigningConfigId: (0, smithy_client_1.expectString)(output.CodeSigningConfigId),
|
|
7704
|
-
CodeSigningPolicies: output.CodeSigningPolicies
|
|
7612
|
+
CodeSigningPolicies: output.CodeSigningPolicies != null
|
|
7705
7613
|
? deserializeAws_restJson1CodeSigningPolicies(output.CodeSigningPolicies, context)
|
|
7706
7614
|
: undefined,
|
|
7707
7615
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -7754,18 +7662,10 @@ const deserializeAws_restJson1Concurrency = (output, context) => {
|
|
|
7754
7662
|
const deserializeAws_restJson1Cors = (output, context) => {
|
|
7755
7663
|
return {
|
|
7756
7664
|
AllowCredentials: (0, smithy_client_1.expectBoolean)(output.AllowCredentials),
|
|
7757
|
-
AllowHeaders: output.AllowHeaders
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
? deserializeAws_restJson1AllowMethodsList(output.AllowMethods, context)
|
|
7762
|
-
: undefined,
|
|
7763
|
-
AllowOrigins: output.AllowOrigins !== undefined && output.AllowOrigins !== null
|
|
7764
|
-
? deserializeAws_restJson1AllowOriginsList(output.AllowOrigins, context)
|
|
7765
|
-
: undefined,
|
|
7766
|
-
ExposeHeaders: output.ExposeHeaders !== undefined && output.ExposeHeaders !== null
|
|
7767
|
-
? deserializeAws_restJson1HeadersList(output.ExposeHeaders, context)
|
|
7768
|
-
: 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,
|
|
7769
7669
|
MaxAge: (0, smithy_client_1.expectInt32)(output.MaxAge),
|
|
7770
7670
|
};
|
|
7771
7671
|
};
|
|
@@ -7776,12 +7676,8 @@ const deserializeAws_restJson1DeadLetterConfig = (output, context) => {
|
|
|
7776
7676
|
};
|
|
7777
7677
|
const deserializeAws_restJson1DestinationConfig = (output, context) => {
|
|
7778
7678
|
return {
|
|
7779
|
-
OnFailure: output.OnFailure
|
|
7780
|
-
|
|
7781
|
-
: undefined,
|
|
7782
|
-
OnSuccess: output.OnSuccess !== undefined && output.OnSuccess !== null
|
|
7783
|
-
? deserializeAws_restJson1OnSuccess(output.OnSuccess, context)
|
|
7784
|
-
: undefined,
|
|
7679
|
+
OnFailure: output.OnFailure != null ? deserializeAws_restJson1OnFailure(output.OnFailure, context) : undefined,
|
|
7680
|
+
OnSuccess: output.OnSuccess != null ? deserializeAws_restJson1OnSuccess(output.OnSuccess, context) : undefined,
|
|
7785
7681
|
};
|
|
7786
7682
|
};
|
|
7787
7683
|
const deserializeAws_restJson1EndpointLists = (output, context) => {
|
|
@@ -7814,12 +7710,8 @@ const deserializeAws_restJson1EnvironmentError = (output, context) => {
|
|
|
7814
7710
|
};
|
|
7815
7711
|
const deserializeAws_restJson1EnvironmentResponse = (output, context) => {
|
|
7816
7712
|
return {
|
|
7817
|
-
Error: output.Error
|
|
7818
|
-
|
|
7819
|
-
: undefined,
|
|
7820
|
-
Variables: output.Variables !== undefined && output.Variables !== null
|
|
7821
|
-
? deserializeAws_restJson1EnvironmentVariables(output.Variables, context)
|
|
7822
|
-
: undefined,
|
|
7713
|
+
Error: output.Error != null ? deserializeAws_restJson1EnvironmentError(output.Error, context) : undefined,
|
|
7714
|
+
Variables: output.Variables != null ? deserializeAws_restJson1EnvironmentVariables(output.Variables, context) : undefined,
|
|
7823
7715
|
};
|
|
7824
7716
|
};
|
|
7825
7717
|
const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
|
|
@@ -7842,18 +7734,18 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
|
|
|
7842
7734
|
return {
|
|
7843
7735
|
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
7844
7736
|
BisectBatchOnFunctionError: (0, smithy_client_1.expectBoolean)(output.BisectBatchOnFunctionError),
|
|
7845
|
-
DestinationConfig: output.DestinationConfig
|
|
7737
|
+
DestinationConfig: output.DestinationConfig != null
|
|
7846
7738
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
7847
7739
|
: undefined,
|
|
7848
7740
|
EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
|
|
7849
|
-
FilterCriteria: output.FilterCriteria
|
|
7741
|
+
FilterCriteria: output.FilterCriteria != null
|
|
7850
7742
|
? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
|
|
7851
7743
|
: undefined,
|
|
7852
7744
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
7853
|
-
FunctionResponseTypes: output.FunctionResponseTypes
|
|
7745
|
+
FunctionResponseTypes: output.FunctionResponseTypes != null
|
|
7854
7746
|
? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
|
|
7855
7747
|
: undefined,
|
|
7856
|
-
LastModified: output.LastModified
|
|
7748
|
+
LastModified: output.LastModified != null
|
|
7857
7749
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
|
|
7858
7750
|
: undefined,
|
|
7859
7751
|
LastProcessingResult: (0, smithy_client_1.expectString)(output.LastProcessingResult),
|
|
@@ -7861,24 +7753,20 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
|
|
|
7861
7753
|
MaximumRecordAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumRecordAgeInSeconds),
|
|
7862
7754
|
MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
|
|
7863
7755
|
ParallelizationFactor: (0, smithy_client_1.expectInt32)(output.ParallelizationFactor),
|
|
7864
|
-
Queues: output.Queues
|
|
7865
|
-
|
|
7866
|
-
: undefined,
|
|
7867
|
-
SelfManagedEventSource: output.SelfManagedEventSource !== undefined && output.SelfManagedEventSource !== null
|
|
7756
|
+
Queues: output.Queues != null ? deserializeAws_restJson1Queues(output.Queues, context) : undefined,
|
|
7757
|
+
SelfManagedEventSource: output.SelfManagedEventSource != null
|
|
7868
7758
|
? deserializeAws_restJson1SelfManagedEventSource(output.SelfManagedEventSource, context)
|
|
7869
7759
|
: undefined,
|
|
7870
|
-
SourceAccessConfigurations: output.SourceAccessConfigurations
|
|
7760
|
+
SourceAccessConfigurations: output.SourceAccessConfigurations != null
|
|
7871
7761
|
? deserializeAws_restJson1SourceAccessConfigurations(output.SourceAccessConfigurations, context)
|
|
7872
7762
|
: undefined,
|
|
7873
7763
|
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
7874
|
-
StartingPositionTimestamp: output.StartingPositionTimestamp
|
|
7764
|
+
StartingPositionTimestamp: output.StartingPositionTimestamp != null
|
|
7875
7765
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartingPositionTimestamp)))
|
|
7876
7766
|
: undefined,
|
|
7877
7767
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7878
7768
|
StateTransitionReason: (0, smithy_client_1.expectString)(output.StateTransitionReason),
|
|
7879
|
-
Topics: output.Topics
|
|
7880
|
-
? deserializeAws_restJson1Topics(output.Topics, context)
|
|
7881
|
-
: undefined,
|
|
7769
|
+
Topics: output.Topics != null ? deserializeAws_restJson1Topics(output.Topics, context) : undefined,
|
|
7882
7770
|
TumblingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.TumblingWindowInSeconds),
|
|
7883
7771
|
UUID: (0, smithy_client_1.expectString)(output.UUID),
|
|
7884
7772
|
};
|
|
@@ -7918,9 +7806,7 @@ const deserializeAws_restJson1Filter = (output, context) => {
|
|
|
7918
7806
|
};
|
|
7919
7807
|
const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
7920
7808
|
return {
|
|
7921
|
-
Filters: output.Filters
|
|
7922
|
-
? deserializeAws_restJson1FilterList(output.Filters, context)
|
|
7923
|
-
: undefined,
|
|
7809
|
+
Filters: output.Filters != null ? deserializeAws_restJson1FilterList(output.Filters, context) : undefined,
|
|
7924
7810
|
};
|
|
7925
7811
|
};
|
|
7926
7812
|
const deserializeAws_restJson1FilterList = (output, context) => {
|
|
@@ -7955,28 +7841,26 @@ const deserializeAws_restJson1FunctionCodeLocation = (output, context) => {
|
|
|
7955
7841
|
};
|
|
7956
7842
|
const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
7957
7843
|
return {
|
|
7958
|
-
Architectures: output.Architectures
|
|
7844
|
+
Architectures: output.Architectures != null
|
|
7959
7845
|
? deserializeAws_restJson1ArchitecturesList(output.Architectures, context)
|
|
7960
7846
|
: undefined,
|
|
7961
7847
|
CodeSha256: (0, smithy_client_1.expectString)(output.CodeSha256),
|
|
7962
7848
|
CodeSize: (0, smithy_client_1.expectLong)(output.CodeSize),
|
|
7963
|
-
DeadLetterConfig: output.DeadLetterConfig
|
|
7849
|
+
DeadLetterConfig: output.DeadLetterConfig != null
|
|
7964
7850
|
? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
|
|
7965
7851
|
: undefined,
|
|
7966
7852
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7967
|
-
Environment: output.Environment
|
|
7968
|
-
|
|
7969
|
-
: undefined,
|
|
7970
|
-
EphemeralStorage: output.EphemeralStorage !== undefined && output.EphemeralStorage !== null
|
|
7853
|
+
Environment: output.Environment != null ? deserializeAws_restJson1EnvironmentResponse(output.Environment, context) : undefined,
|
|
7854
|
+
EphemeralStorage: output.EphemeralStorage != null
|
|
7971
7855
|
? deserializeAws_restJson1EphemeralStorage(output.EphemeralStorage, context)
|
|
7972
7856
|
: undefined,
|
|
7973
|
-
FileSystemConfigs: output.FileSystemConfigs
|
|
7857
|
+
FileSystemConfigs: output.FileSystemConfigs != null
|
|
7974
7858
|
? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
|
|
7975
7859
|
: undefined,
|
|
7976
7860
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
7977
7861
|
FunctionName: (0, smithy_client_1.expectString)(output.FunctionName),
|
|
7978
7862
|
Handler: (0, smithy_client_1.expectString)(output.Handler),
|
|
7979
|
-
ImageConfigResponse: output.ImageConfigResponse
|
|
7863
|
+
ImageConfigResponse: output.ImageConfigResponse != null
|
|
7980
7864
|
? deserializeAws_restJson1ImageConfigResponse(output.ImageConfigResponse, context)
|
|
7981
7865
|
: undefined,
|
|
7982
7866
|
KMSKeyArn: (0, smithy_client_1.expectString)(output.KMSKeyArn),
|
|
@@ -7984,9 +7868,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
7984
7868
|
LastUpdateStatus: (0, smithy_client_1.expectString)(output.LastUpdateStatus),
|
|
7985
7869
|
LastUpdateStatusReason: (0, smithy_client_1.expectString)(output.LastUpdateStatusReason),
|
|
7986
7870
|
LastUpdateStatusReasonCode: (0, smithy_client_1.expectString)(output.LastUpdateStatusReasonCode),
|
|
7987
|
-
Layers: output.Layers
|
|
7988
|
-
? deserializeAws_restJson1LayersReferenceList(output.Layers, context)
|
|
7989
|
-
: undefined,
|
|
7871
|
+
Layers: output.Layers != null ? deserializeAws_restJson1LayersReferenceList(output.Layers, context) : undefined,
|
|
7990
7872
|
MasterArn: (0, smithy_client_1.expectString)(output.MasterArn),
|
|
7991
7873
|
MemorySize: (0, smithy_client_1.expectInt32)(output.MemorySize),
|
|
7992
7874
|
PackageType: (0, smithy_client_1.expectString)(output.PackageType),
|
|
@@ -7999,22 +7881,20 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
7999
7881
|
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
8000
7882
|
StateReasonCode: (0, smithy_client_1.expectString)(output.StateReasonCode),
|
|
8001
7883
|
Timeout: (0, smithy_client_1.expectInt32)(output.Timeout),
|
|
8002
|
-
TracingConfig: output.TracingConfig
|
|
7884
|
+
TracingConfig: output.TracingConfig != null
|
|
8003
7885
|
? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context)
|
|
8004
7886
|
: undefined,
|
|
8005
7887
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
8006
|
-
VpcConfig: output.VpcConfig
|
|
8007
|
-
? deserializeAws_restJson1VpcConfigResponse(output.VpcConfig, context)
|
|
8008
|
-
: undefined,
|
|
7888
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_restJson1VpcConfigResponse(output.VpcConfig, context) : undefined,
|
|
8009
7889
|
};
|
|
8010
7890
|
};
|
|
8011
7891
|
const deserializeAws_restJson1FunctionEventInvokeConfig = (output, context) => {
|
|
8012
7892
|
return {
|
|
8013
|
-
DestinationConfig: output.DestinationConfig
|
|
7893
|
+
DestinationConfig: output.DestinationConfig != null
|
|
8014
7894
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
8015
7895
|
: undefined,
|
|
8016
7896
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
8017
|
-
LastModified: output.LastModified
|
|
7897
|
+
LastModified: output.LastModified != null
|
|
8018
7898
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
|
|
8019
7899
|
: undefined,
|
|
8020
7900
|
MaximumEventAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumEventAgeInSeconds),
|
|
@@ -8057,9 +7937,7 @@ const deserializeAws_restJson1FunctionResponseTypeList = (output, context) => {
|
|
|
8057
7937
|
const deserializeAws_restJson1FunctionUrlConfig = (output, context) => {
|
|
8058
7938
|
return {
|
|
8059
7939
|
AuthType: (0, smithy_client_1.expectString)(output.AuthType),
|
|
8060
|
-
Cors: output.Cors
|
|
8061
|
-
? deserializeAws_restJson1Cors(output.Cors, context)
|
|
8062
|
-
: undefined,
|
|
7940
|
+
Cors: output.Cors != null ? deserializeAws_restJson1Cors(output.Cors, context) : undefined,
|
|
8063
7941
|
CreationTime: (0, smithy_client_1.expectString)(output.CreationTime),
|
|
8064
7942
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
8065
7943
|
FunctionUrl: (0, smithy_client_1.expectString)(output.FunctionUrl),
|
|
@@ -8090,12 +7968,8 @@ const deserializeAws_restJson1HeadersList = (output, context) => {
|
|
|
8090
7968
|
};
|
|
8091
7969
|
const deserializeAws_restJson1ImageConfig = (output, context) => {
|
|
8092
7970
|
return {
|
|
8093
|
-
Command: output.Command
|
|
8094
|
-
|
|
8095
|
-
: undefined,
|
|
8096
|
-
EntryPoint: output.EntryPoint !== undefined && output.EntryPoint !== null
|
|
8097
|
-
? deserializeAws_restJson1StringList(output.EntryPoint, context)
|
|
8098
|
-
: undefined,
|
|
7971
|
+
Command: output.Command != null ? deserializeAws_restJson1StringList(output.Command, context) : undefined,
|
|
7972
|
+
EntryPoint: output.EntryPoint != null ? deserializeAws_restJson1StringList(output.EntryPoint, context) : undefined,
|
|
8099
7973
|
WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
|
|
8100
7974
|
};
|
|
8101
7975
|
};
|
|
@@ -8107,12 +7981,8 @@ const deserializeAws_restJson1ImageConfigError = (output, context) => {
|
|
|
8107
7981
|
};
|
|
8108
7982
|
const deserializeAws_restJson1ImageConfigResponse = (output, context) => {
|
|
8109
7983
|
return {
|
|
8110
|
-
Error: output.Error
|
|
8111
|
-
|
|
8112
|
-
: undefined,
|
|
8113
|
-
ImageConfig: output.ImageConfig !== undefined && output.ImageConfig !== null
|
|
8114
|
-
? deserializeAws_restJson1ImageConfig(output.ImageConfig, context)
|
|
8115
|
-
: undefined,
|
|
7984
|
+
Error: output.Error != null ? deserializeAws_restJson1ImageConfigError(output.Error, context) : undefined,
|
|
7985
|
+
ImageConfig: output.ImageConfig != null ? deserializeAws_restJson1ImageConfig(output.ImageConfig, context) : undefined,
|
|
8116
7986
|
};
|
|
8117
7987
|
};
|
|
8118
7988
|
const deserializeAws_restJson1Layer = (output, context) => {
|
|
@@ -8136,7 +8006,7 @@ const deserializeAws_restJson1LayersList = (output, context) => {
|
|
|
8136
8006
|
};
|
|
8137
8007
|
const deserializeAws_restJson1LayersListItem = (output, context) => {
|
|
8138
8008
|
return {
|
|
8139
|
-
LatestMatchingVersion: output.LatestMatchingVersion
|
|
8009
|
+
LatestMatchingVersion: output.LatestMatchingVersion != null
|
|
8140
8010
|
? deserializeAws_restJson1LayerVersionsListItem(output.LatestMatchingVersion, context)
|
|
8141
8011
|
: undefined,
|
|
8142
8012
|
LayerArn: (0, smithy_client_1.expectString)(output.LayerArn),
|
|
@@ -8176,10 +8046,10 @@ const deserializeAws_restJson1LayerVersionsList = (output, context) => {
|
|
|
8176
8046
|
};
|
|
8177
8047
|
const deserializeAws_restJson1LayerVersionsListItem = (output, context) => {
|
|
8178
8048
|
return {
|
|
8179
|
-
CompatibleArchitectures: output.CompatibleArchitectures
|
|
8049
|
+
CompatibleArchitectures: output.CompatibleArchitectures != null
|
|
8180
8050
|
? deserializeAws_restJson1CompatibleArchitectures(output.CompatibleArchitectures, context)
|
|
8181
8051
|
: undefined,
|
|
8182
|
-
CompatibleRuntimes: output.CompatibleRuntimes
|
|
8052
|
+
CompatibleRuntimes: output.CompatibleRuntimes != null
|
|
8183
8053
|
? deserializeAws_restJson1CompatibleRuntimes(output.CompatibleRuntimes, context)
|
|
8184
8054
|
: undefined,
|
|
8185
8055
|
CreatedDate: (0, smithy_client_1.expectString)(output.CreatedDate),
|
|
@@ -8245,9 +8115,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
|
8245
8115
|
};
|
|
8246
8116
|
const deserializeAws_restJson1SelfManagedEventSource = (output, context) => {
|
|
8247
8117
|
return {
|
|
8248
|
-
Endpoints: output.Endpoints
|
|
8249
|
-
? deserializeAws_restJson1Endpoints(output.Endpoints, context)
|
|
8250
|
-
: undefined,
|
|
8118
|
+
Endpoints: output.Endpoints != null ? deserializeAws_restJson1Endpoints(output.Endpoints, context) : undefined,
|
|
8251
8119
|
};
|
|
8252
8120
|
};
|
|
8253
8121
|
const deserializeAws_restJson1SigningProfileVersionArns = (output, context) => {
|
|
@@ -8329,12 +8197,10 @@ const deserializeAws_restJson1TracingConfigResponse = (output, context) => {
|
|
|
8329
8197
|
};
|
|
8330
8198
|
const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
8331
8199
|
return {
|
|
8332
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
8200
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
8333
8201
|
? deserializeAws_restJson1SecurityGroupIds(output.SecurityGroupIds, context)
|
|
8334
8202
|
: undefined,
|
|
8335
|
-
SubnetIds: output.SubnetIds
|
|
8336
|
-
? deserializeAws_restJson1SubnetIds(output.SubnetIds, context)
|
|
8337
|
-
: undefined,
|
|
8203
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetIds(output.SubnetIds, context) : undefined,
|
|
8338
8204
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
8339
8205
|
};
|
|
8340
8206
|
};
|
|
@@ -8369,6 +8235,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
8369
8235
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
8370
8236
|
const sanitizeErrorCode = (rawValue) => {
|
|
8371
8237
|
let cleanValue = rawValue;
|
|
8238
|
+
if (typeof cleanValue === "number") {
|
|
8239
|
+
cleanValue = cleanValue.toString();
|
|
8240
|
+
}
|
|
8372
8241
|
if (cleanValue.indexOf(":") >= 0) {
|
|
8373
8242
|
cleanValue = cleanValue.split(":")[0];
|
|
8374
8243
|
}
|