@aws-sdk/client-lakeformation 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.
@@ -14,11 +14,9 @@ const serializeAws_restJson1AddLFTagsToResourceCommand = async (input, context)
14
14
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/AddLFTagsToResource";
15
15
  let body;
16
16
  body = JSON.stringify({
17
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
18
- ...(input.LFTags !== undefined &&
19
- input.LFTags !== null && { LFTags: serializeAws_restJson1LFTagsList(input.LFTags, context) }),
20
- ...(input.Resource !== undefined &&
21
- input.Resource !== null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
17
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
18
+ ...(input.LFTags != null && { LFTags: serializeAws_restJson1LFTagsList(input.LFTags, context) }),
19
+ ...(input.Resource != null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
22
20
  });
23
21
  return new protocol_http_1.HttpRequest({
24
22
  protocol,
@@ -39,9 +37,8 @@ const serializeAws_restJson1BatchGrantPermissionsCommand = async (input, context
39
37
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGrantPermissions";
40
38
  let body;
41
39
  body = JSON.stringify({
42
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
43
- ...(input.Entries !== undefined &&
44
- input.Entries !== null && {
40
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
41
+ ...(input.Entries != null && {
45
42
  Entries: serializeAws_restJson1BatchPermissionsRequestEntryList(input.Entries, context),
46
43
  }),
47
44
  });
@@ -64,9 +61,8 @@ const serializeAws_restJson1BatchRevokePermissionsCommand = async (input, contex
64
61
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchRevokePermissions";
65
62
  let body;
66
63
  body = JSON.stringify({
67
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
68
- ...(input.Entries !== undefined &&
69
- input.Entries !== null && {
64
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
65
+ ...(input.Entries != null && {
70
66
  Entries: serializeAws_restJson1BatchPermissionsRequestEntryList(input.Entries, context),
71
67
  }),
72
68
  });
@@ -89,7 +85,7 @@ const serializeAws_restJson1CancelTransactionCommand = async (input, context) =>
89
85
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CancelTransaction";
90
86
  let body;
91
87
  body = JSON.stringify({
92
- ...(input.TransactionId !== undefined && input.TransactionId !== null && { TransactionId: input.TransactionId }),
88
+ ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
93
89
  });
94
90
  return new protocol_http_1.HttpRequest({
95
91
  protocol,
@@ -110,7 +106,7 @@ const serializeAws_restJson1CommitTransactionCommand = async (input, context) =>
110
106
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CommitTransaction";
111
107
  let body;
112
108
  body = JSON.stringify({
113
- ...(input.TransactionId !== undefined && input.TransactionId !== null && { TransactionId: input.TransactionId }),
109
+ ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
114
110
  });
115
111
  return new protocol_http_1.HttpRequest({
116
112
  protocol,
@@ -131,8 +127,7 @@ const serializeAws_restJson1CreateDataCellsFilterCommand = async (input, context
131
127
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateDataCellsFilter";
132
128
  let body;
133
129
  body = JSON.stringify({
134
- ...(input.TableData !== undefined &&
135
- input.TableData !== null && { TableData: serializeAws_restJson1DataCellsFilter(input.TableData, context) }),
130
+ ...(input.TableData != null && { TableData: serializeAws_restJson1DataCellsFilter(input.TableData, context) }),
136
131
  });
137
132
  return new protocol_http_1.HttpRequest({
138
133
  protocol,
@@ -153,10 +148,9 @@ const serializeAws_restJson1CreateLFTagCommand = async (input, context) => {
153
148
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLFTag";
154
149
  let body;
155
150
  body = JSON.stringify({
156
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
157
- ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
158
- ...(input.TagValues !== undefined &&
159
- input.TagValues !== null && { TagValues: serializeAws_restJson1TagValueList(input.TagValues, context) }),
151
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
152
+ ...(input.TagKey != null && { TagKey: input.TagKey }),
153
+ ...(input.TagValues != null && { TagValues: serializeAws_restJson1TagValueList(input.TagValues, context) }),
160
154
  });
161
155
  return new protocol_http_1.HttpRequest({
162
156
  protocol,
@@ -177,11 +171,10 @@ const serializeAws_restJson1DeleteDataCellsFilterCommand = async (input, context
177
171
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteDataCellsFilter";
178
172
  let body;
179
173
  body = JSON.stringify({
180
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
181
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
182
- ...(input.TableCatalogId !== undefined &&
183
- input.TableCatalogId !== null && { TableCatalogId: input.TableCatalogId }),
184
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
174
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
175
+ ...(input.Name != null && { Name: input.Name }),
176
+ ...(input.TableCatalogId != null && { TableCatalogId: input.TableCatalogId }),
177
+ ...(input.TableName != null && { TableName: input.TableName }),
185
178
  });
186
179
  return new protocol_http_1.HttpRequest({
187
180
  protocol,
@@ -202,8 +195,8 @@ const serializeAws_restJson1DeleteLFTagCommand = async (input, context) => {
202
195
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLFTag";
203
196
  let body;
204
197
  body = JSON.stringify({
205
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
206
- ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
198
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
199
+ ...(input.TagKey != null && { TagKey: input.TagKey }),
207
200
  });
208
201
  return new protocol_http_1.HttpRequest({
209
202
  protocol,
@@ -224,12 +217,11 @@ const serializeAws_restJson1DeleteObjectsOnCancelCommand = async (input, context
224
217
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteObjectsOnCancel";
225
218
  let body;
226
219
  body = JSON.stringify({
227
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
228
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
229
- ...(input.Objects !== undefined &&
230
- input.Objects !== null && { Objects: serializeAws_restJson1VirtualObjectList(input.Objects, context) }),
231
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
232
- ...(input.TransactionId !== undefined && input.TransactionId !== null && { TransactionId: input.TransactionId }),
220
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
221
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
222
+ ...(input.Objects != null && { Objects: serializeAws_restJson1VirtualObjectList(input.Objects, context) }),
223
+ ...(input.TableName != null && { TableName: input.TableName }),
224
+ ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
233
225
  });
234
226
  return new protocol_http_1.HttpRequest({
235
227
  protocol,
@@ -250,7 +242,7 @@ const serializeAws_restJson1DeregisterResourceCommand = async (input, context) =
250
242
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeregisterResource";
251
243
  let body;
252
244
  body = JSON.stringify({
253
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
245
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
254
246
  });
255
247
  return new protocol_http_1.HttpRequest({
256
248
  protocol,
@@ -271,7 +263,7 @@ const serializeAws_restJson1DescribeResourceCommand = async (input, context) =>
271
263
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeResource";
272
264
  let body;
273
265
  body = JSON.stringify({
274
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
266
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
275
267
  });
276
268
  return new protocol_http_1.HttpRequest({
277
269
  protocol,
@@ -292,7 +284,7 @@ const serializeAws_restJson1DescribeTransactionCommand = async (input, context)
292
284
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeTransaction";
293
285
  let body;
294
286
  body = JSON.stringify({
295
- ...(input.TransactionId !== undefined && input.TransactionId !== null && { TransactionId: input.TransactionId }),
287
+ ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
296
288
  });
297
289
  return new protocol_http_1.HttpRequest({
298
290
  protocol,
@@ -313,7 +305,7 @@ const serializeAws_restJson1ExtendTransactionCommand = async (input, context) =>
313
305
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ExtendTransaction";
314
306
  let body;
315
307
  body = JSON.stringify({
316
- ...(input.TransactionId !== undefined && input.TransactionId !== null && { TransactionId: input.TransactionId }),
308
+ ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
317
309
  });
318
310
  return new protocol_http_1.HttpRequest({
319
311
  protocol,
@@ -334,7 +326,7 @@ const serializeAws_restJson1GetDataLakeSettingsCommand = async (input, context)
334
326
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetDataLakeSettings";
335
327
  let body;
336
328
  body = JSON.stringify({
337
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
329
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
338
330
  });
339
331
  return new protocol_http_1.HttpRequest({
340
332
  protocol,
@@ -355,10 +347,10 @@ const serializeAws_restJson1GetEffectivePermissionsForPathCommand = async (input
355
347
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetEffectivePermissionsForPath";
356
348
  let body;
357
349
  body = JSON.stringify({
358
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
359
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
360
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
361
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
350
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
351
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
352
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
353
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
362
354
  });
363
355
  return new protocol_http_1.HttpRequest({
364
356
  protocol,
@@ -379,8 +371,8 @@ const serializeAws_restJson1GetLFTagCommand = async (input, context) => {
379
371
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetLFTag";
380
372
  let body;
381
373
  body = JSON.stringify({
382
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
383
- ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
374
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
375
+ ...(input.TagKey != null && { TagKey: input.TagKey }),
384
376
  });
385
377
  return new protocol_http_1.HttpRequest({
386
378
  protocol,
@@ -401,7 +393,7 @@ const serializeAws_restJson1GetQueryStateCommand = async (input, context) => {
401
393
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetQueryState";
402
394
  let body;
403
395
  body = JSON.stringify({
404
- ...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
396
+ ...(input.QueryId != null && { QueryId: input.QueryId }),
405
397
  });
406
398
  let { hostname: resolvedHostname } = await context.endpoint();
407
399
  if (context.disableHostPrefix !== true) {
@@ -429,7 +421,7 @@ const serializeAws_restJson1GetQueryStatisticsCommand = async (input, context) =
429
421
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetQueryStatistics";
430
422
  let body;
431
423
  body = JSON.stringify({
432
- ...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
424
+ ...(input.QueryId != null && { QueryId: input.QueryId }),
433
425
  });
434
426
  let { hostname: resolvedHostname } = await context.endpoint();
435
427
  if (context.disableHostPrefix !== true) {
@@ -457,11 +449,9 @@ const serializeAws_restJson1GetResourceLFTagsCommand = async (input, context) =>
457
449
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetResourceLFTags";
458
450
  let body;
459
451
  body = JSON.stringify({
460
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
461
- ...(input.Resource !== undefined &&
462
- input.Resource !== null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
463
- ...(input.ShowAssignedLFTags !== undefined &&
464
- input.ShowAssignedLFTags !== null && { ShowAssignedLFTags: input.ShowAssignedLFTags }),
452
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
453
+ ...(input.Resource != null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
454
+ ...(input.ShowAssignedLFTags != null && { ShowAssignedLFTags: input.ShowAssignedLFTags }),
465
455
  });
466
456
  return new protocol_http_1.HttpRequest({
467
457
  protocol,
@@ -482,16 +472,14 @@ const serializeAws_restJson1GetTableObjectsCommand = async (input, context) => {
482
472
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetTableObjects";
483
473
  let body;
484
474
  body = JSON.stringify({
485
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
486
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
487
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
488
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
489
- ...(input.PartitionPredicate !== undefined &&
490
- input.PartitionPredicate !== null && { PartitionPredicate: input.PartitionPredicate }),
491
- ...(input.QueryAsOfTime !== undefined &&
492
- input.QueryAsOfTime !== null && { QueryAsOfTime: Math.round(input.QueryAsOfTime.getTime() / 1000) }),
493
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
494
- ...(input.TransactionId !== undefined && input.TransactionId !== null && { TransactionId: input.TransactionId }),
475
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
476
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
477
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
478
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
479
+ ...(input.PartitionPredicate != null && { PartitionPredicate: input.PartitionPredicate }),
480
+ ...(input.QueryAsOfTime != null && { QueryAsOfTime: Math.round(input.QueryAsOfTime.getTime() / 1000) }),
481
+ ...(input.TableName != null && { TableName: input.TableName }),
482
+ ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
495
483
  });
496
484
  return new protocol_http_1.HttpRequest({
497
485
  protocol,
@@ -512,19 +500,16 @@ const serializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand = async
512
500
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGluePartitionCredentials";
513
501
  let body;
514
502
  body = JSON.stringify({
515
- ...(input.AuditContext !== undefined &&
516
- input.AuditContext !== null && { AuditContext: serializeAws_restJson1AuditContext(input.AuditContext, context) }),
517
- ...(input.DurationSeconds !== undefined &&
518
- input.DurationSeconds !== null && { DurationSeconds: input.DurationSeconds }),
519
- ...(input.Partition !== undefined &&
520
- input.Partition !== null && { Partition: serializeAws_restJson1PartitionValueList(input.Partition, context) }),
521
- ...(input.Permissions !== undefined &&
522
- input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
523
- ...(input.SupportedPermissionTypes !== undefined &&
524
- input.SupportedPermissionTypes !== null && {
503
+ ...(input.AuditContext != null && {
504
+ AuditContext: serializeAws_restJson1AuditContext(input.AuditContext, context),
505
+ }),
506
+ ...(input.DurationSeconds != null && { DurationSeconds: input.DurationSeconds }),
507
+ ...(input.Partition != null && { Partition: serializeAws_restJson1PartitionValueList(input.Partition, context) }),
508
+ ...(input.Permissions != null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
509
+ ...(input.SupportedPermissionTypes != null && {
525
510
  SupportedPermissionTypes: serializeAws_restJson1PermissionTypeList(input.SupportedPermissionTypes, context),
526
511
  }),
527
- ...(input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }),
512
+ ...(input.TableArn != null && { TableArn: input.TableArn }),
528
513
  });
529
514
  return new protocol_http_1.HttpRequest({
530
515
  protocol,
@@ -545,17 +530,15 @@ const serializeAws_restJson1GetTemporaryGlueTableCredentialsCommand = async (inp
545
530
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGlueTableCredentials";
546
531
  let body;
547
532
  body = JSON.stringify({
548
- ...(input.AuditContext !== undefined &&
549
- input.AuditContext !== null && { AuditContext: serializeAws_restJson1AuditContext(input.AuditContext, context) }),
550
- ...(input.DurationSeconds !== undefined &&
551
- input.DurationSeconds !== null && { DurationSeconds: input.DurationSeconds }),
552
- ...(input.Permissions !== undefined &&
553
- input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
554
- ...(input.SupportedPermissionTypes !== undefined &&
555
- input.SupportedPermissionTypes !== null && {
533
+ ...(input.AuditContext != null && {
534
+ AuditContext: serializeAws_restJson1AuditContext(input.AuditContext, context),
535
+ }),
536
+ ...(input.DurationSeconds != null && { DurationSeconds: input.DurationSeconds }),
537
+ ...(input.Permissions != null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
538
+ ...(input.SupportedPermissionTypes != null && {
556
539
  SupportedPermissionTypes: serializeAws_restJson1PermissionTypeList(input.SupportedPermissionTypes, context),
557
540
  }),
558
- ...(input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }),
541
+ ...(input.TableArn != null && { TableArn: input.TableArn }),
559
542
  });
560
543
  return new protocol_http_1.HttpRequest({
561
544
  protocol,
@@ -576,9 +559,9 @@ const serializeAws_restJson1GetWorkUnitResultsCommand = async (input, context) =
576
559
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkUnitResults";
577
560
  let body;
578
561
  body = JSON.stringify({
579
- ...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
580
- ...(input.WorkUnitId !== undefined && input.WorkUnitId !== null && { WorkUnitId: input.WorkUnitId }),
581
- ...(input.WorkUnitToken !== undefined && input.WorkUnitToken !== null && { WorkUnitToken: input.WorkUnitToken }),
562
+ ...(input.QueryId != null && { QueryId: input.QueryId }),
563
+ ...(input.WorkUnitId != null && { WorkUnitId: input.WorkUnitId }),
564
+ ...(input.WorkUnitToken != null && { WorkUnitToken: input.WorkUnitToken }),
582
565
  });
583
566
  let { hostname: resolvedHostname } = await context.endpoint();
584
567
  if (context.disableHostPrefix !== true) {
@@ -606,9 +589,9 @@ const serializeAws_restJson1GetWorkUnitsCommand = async (input, context) => {
606
589
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkUnits";
607
590
  let body;
608
591
  body = JSON.stringify({
609
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
610
- ...(input.PageSize !== undefined && input.PageSize !== null && { PageSize: input.PageSize }),
611
- ...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
592
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
593
+ ...(input.PageSize != null && { PageSize: input.PageSize }),
594
+ ...(input.QueryId != null && { QueryId: input.QueryId }),
612
595
  });
613
596
  let { hostname: resolvedHostname } = await context.endpoint();
614
597
  if (context.disableHostPrefix !== true) {
@@ -636,17 +619,13 @@ const serializeAws_restJson1GrantPermissionsCommand = async (input, context) =>
636
619
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GrantPermissions";
637
620
  let body;
638
621
  body = JSON.stringify({
639
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
640
- ...(input.Permissions !== undefined &&
641
- input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
642
- ...(input.PermissionsWithGrantOption !== undefined &&
643
- input.PermissionsWithGrantOption !== null && {
622
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
623
+ ...(input.Permissions != null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
624
+ ...(input.PermissionsWithGrantOption != null && {
644
625
  PermissionsWithGrantOption: serializeAws_restJson1PermissionList(input.PermissionsWithGrantOption, context),
645
626
  }),
646
- ...(input.Principal !== undefined &&
647
- input.Principal !== null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
648
- ...(input.Resource !== undefined &&
649
- input.Resource !== null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
627
+ ...(input.Principal != null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
628
+ ...(input.Resource != null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
650
629
  });
651
630
  return new protocol_http_1.HttpRequest({
652
631
  protocol,
@@ -667,10 +646,9 @@ const serializeAws_restJson1ListDataCellsFilterCommand = async (input, context)
667
646
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListDataCellsFilter";
668
647
  let body;
669
648
  body = JSON.stringify({
670
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
671
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
672
- ...(input.Table !== undefined &&
673
- input.Table !== null && { Table: serializeAws_restJson1TableResource(input.Table, context) }),
649
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
650
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
651
+ ...(input.Table != null && { Table: serializeAws_restJson1TableResource(input.Table, context) }),
674
652
  });
675
653
  return new protocol_http_1.HttpRequest({
676
654
  protocol,
@@ -691,11 +669,10 @@ const serializeAws_restJson1ListLFTagsCommand = async (input, context) => {
691
669
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListLFTags";
692
670
  let body;
693
671
  body = JSON.stringify({
694
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
695
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
696
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
697
- ...(input.ResourceShareType !== undefined &&
698
- input.ResourceShareType !== null && { ResourceShareType: input.ResourceShareType }),
672
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
673
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
674
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
675
+ ...(input.ResourceShareType != null && { ResourceShareType: input.ResourceShareType }),
699
676
  });
700
677
  return new protocol_http_1.HttpRequest({
701
678
  protocol,
@@ -716,16 +693,13 @@ const serializeAws_restJson1ListPermissionsCommand = async (input, context) => {
716
693
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListPermissions";
717
694
  let body;
718
695
  body = JSON.stringify({
719
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
720
- ...(input.IncludeRelated !== undefined &&
721
- input.IncludeRelated !== null && { IncludeRelated: input.IncludeRelated }),
722
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
723
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
724
- ...(input.Principal !== undefined &&
725
- input.Principal !== null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
726
- ...(input.Resource !== undefined &&
727
- input.Resource !== null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
728
- ...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
696
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
697
+ ...(input.IncludeRelated != null && { IncludeRelated: input.IncludeRelated }),
698
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
699
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
700
+ ...(input.Principal != null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
701
+ ...(input.Resource != null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
702
+ ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
729
703
  });
730
704
  return new protocol_http_1.HttpRequest({
731
705
  protocol,
@@ -746,12 +720,11 @@ const serializeAws_restJson1ListResourcesCommand = async (input, context) => {
746
720
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListResources";
747
721
  let body;
748
722
  body = JSON.stringify({
749
- ...(input.FilterConditionList !== undefined &&
750
- input.FilterConditionList !== null && {
723
+ ...(input.FilterConditionList != null && {
751
724
  FilterConditionList: serializeAws_restJson1FilterConditionList(input.FilterConditionList, context),
752
725
  }),
753
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
754
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
726
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
727
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
755
728
  });
756
729
  return new protocol_http_1.HttpRequest({
757
730
  protocol,
@@ -772,13 +745,12 @@ const serializeAws_restJson1ListTableStorageOptimizersCommand = async (input, co
772
745
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListTableStorageOptimizers";
773
746
  let body;
774
747
  body = JSON.stringify({
775
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
776
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
777
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
778
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
779
- ...(input.StorageOptimizerType !== undefined &&
780
- input.StorageOptimizerType !== null && { StorageOptimizerType: input.StorageOptimizerType }),
781
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
748
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
749
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
750
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
751
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
752
+ ...(input.StorageOptimizerType != null && { StorageOptimizerType: input.StorageOptimizerType }),
753
+ ...(input.TableName != null && { TableName: input.TableName }),
782
754
  });
783
755
  return new protocol_http_1.HttpRequest({
784
756
  protocol,
@@ -799,10 +771,10 @@ const serializeAws_restJson1ListTransactionsCommand = async (input, context) =>
799
771
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListTransactions";
800
772
  let body;
801
773
  body = JSON.stringify({
802
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
803
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
804
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
805
- ...(input.StatusFilter !== undefined && input.StatusFilter !== null && { StatusFilter: input.StatusFilter }),
774
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
775
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
776
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
777
+ ...(input.StatusFilter != null && { StatusFilter: input.StatusFilter }),
806
778
  });
807
779
  return new protocol_http_1.HttpRequest({
808
780
  protocol,
@@ -823,9 +795,8 @@ const serializeAws_restJson1PutDataLakeSettingsCommand = async (input, context)
823
795
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/PutDataLakeSettings";
824
796
  let body;
825
797
  body = JSON.stringify({
826
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
827
- ...(input.DataLakeSettings !== undefined &&
828
- input.DataLakeSettings !== null && {
798
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
799
+ ...(input.DataLakeSettings != null && {
829
800
  DataLakeSettings: serializeAws_restJson1DataLakeSettings(input.DataLakeSettings, context),
830
801
  }),
831
802
  });
@@ -848,10 +819,9 @@ const serializeAws_restJson1RegisterResourceCommand = async (input, context) =>
848
819
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/RegisterResource";
849
820
  let body;
850
821
  body = JSON.stringify({
851
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
852
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
853
- ...(input.UseServiceLinkedRole !== undefined &&
854
- input.UseServiceLinkedRole !== null && { UseServiceLinkedRole: input.UseServiceLinkedRole }),
822
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
823
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
824
+ ...(input.UseServiceLinkedRole != null && { UseServiceLinkedRole: input.UseServiceLinkedRole }),
855
825
  });
856
826
  return new protocol_http_1.HttpRequest({
857
827
  protocol,
@@ -872,11 +842,9 @@ const serializeAws_restJson1RemoveLFTagsFromResourceCommand = async (input, cont
872
842
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveLFTagsFromResource";
873
843
  let body;
874
844
  body = JSON.stringify({
875
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
876
- ...(input.LFTags !== undefined &&
877
- input.LFTags !== null && { LFTags: serializeAws_restJson1LFTagsList(input.LFTags, context) }),
878
- ...(input.Resource !== undefined &&
879
- input.Resource !== null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
845
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
846
+ ...(input.LFTags != null && { LFTags: serializeAws_restJson1LFTagsList(input.LFTags, context) }),
847
+ ...(input.Resource != null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
880
848
  });
881
849
  return new protocol_http_1.HttpRequest({
882
850
  protocol,
@@ -897,17 +865,13 @@ const serializeAws_restJson1RevokePermissionsCommand = async (input, context) =>
897
865
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/RevokePermissions";
898
866
  let body;
899
867
  body = JSON.stringify({
900
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
901
- ...(input.Permissions !== undefined &&
902
- input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
903
- ...(input.PermissionsWithGrantOption !== undefined &&
904
- input.PermissionsWithGrantOption !== null && {
868
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
869
+ ...(input.Permissions != null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
870
+ ...(input.PermissionsWithGrantOption != null && {
905
871
  PermissionsWithGrantOption: serializeAws_restJson1PermissionList(input.PermissionsWithGrantOption, context),
906
872
  }),
907
- ...(input.Principal !== undefined &&
908
- input.Principal !== null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
909
- ...(input.Resource !== undefined &&
910
- input.Resource !== null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
873
+ ...(input.Principal != null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
874
+ ...(input.Resource != null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
911
875
  });
912
876
  return new protocol_http_1.HttpRequest({
913
877
  protocol,
@@ -928,11 +892,10 @@ const serializeAws_restJson1SearchDatabasesByLFTagsCommand = async (input, conte
928
892
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/SearchDatabasesByLFTags";
929
893
  let body;
930
894
  body = JSON.stringify({
931
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
932
- ...(input.Expression !== undefined &&
933
- input.Expression !== null && { Expression: serializeAws_restJson1Expression(input.Expression, context) }),
934
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
935
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
895
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
896
+ ...(input.Expression != null && { Expression: serializeAws_restJson1Expression(input.Expression, context) }),
897
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
898
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
936
899
  });
937
900
  return new protocol_http_1.HttpRequest({
938
901
  protocol,
@@ -953,11 +916,10 @@ const serializeAws_restJson1SearchTablesByLFTagsCommand = async (input, context)
953
916
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/SearchTablesByLFTags";
954
917
  let body;
955
918
  body = JSON.stringify({
956
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
957
- ...(input.Expression !== undefined &&
958
- input.Expression !== null && { Expression: serializeAws_restJson1Expression(input.Expression, context) }),
959
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
960
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
919
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
920
+ ...(input.Expression != null && { Expression: serializeAws_restJson1Expression(input.Expression, context) }),
921
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
922
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
961
923
  });
962
924
  return new protocol_http_1.HttpRequest({
963
925
  protocol,
@@ -978,11 +940,10 @@ const serializeAws_restJson1StartQueryPlanningCommand = async (input, context) =
978
940
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartQueryPlanning";
979
941
  let body;
980
942
  body = JSON.stringify({
981
- ...(input.QueryPlanningContext !== undefined &&
982
- input.QueryPlanningContext !== null && {
943
+ ...(input.QueryPlanningContext != null && {
983
944
  QueryPlanningContext: serializeAws_restJson1QueryPlanningContext(input.QueryPlanningContext, context),
984
945
  }),
985
- ...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
946
+ ...(input.QueryString != null && { QueryString: input.QueryString }),
986
947
  });
987
948
  let { hostname: resolvedHostname } = await context.endpoint();
988
949
  if (context.disableHostPrefix !== true) {
@@ -1010,8 +971,7 @@ const serializeAws_restJson1StartTransactionCommand = async (input, context) =>
1010
971
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartTransaction";
1011
972
  let body;
1012
973
  body = JSON.stringify({
1013
- ...(input.TransactionType !== undefined &&
1014
- input.TransactionType !== null && { TransactionType: input.TransactionType }),
974
+ ...(input.TransactionType != null && { TransactionType: input.TransactionType }),
1015
975
  });
1016
976
  return new protocol_http_1.HttpRequest({
1017
977
  protocol,
@@ -1032,14 +992,12 @@ const serializeAws_restJson1UpdateLFTagCommand = async (input, context) => {
1032
992
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLFTag";
1033
993
  let body;
1034
994
  body = JSON.stringify({
1035
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
1036
- ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
1037
- ...(input.TagValuesToAdd !== undefined &&
1038
- input.TagValuesToAdd !== null && {
995
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
996
+ ...(input.TagKey != null && { TagKey: input.TagKey }),
997
+ ...(input.TagValuesToAdd != null && {
1039
998
  TagValuesToAdd: serializeAws_restJson1TagValueList(input.TagValuesToAdd, context),
1040
999
  }),
1041
- ...(input.TagValuesToDelete !== undefined &&
1042
- input.TagValuesToDelete !== null && {
1000
+ ...(input.TagValuesToDelete != null && {
1043
1001
  TagValuesToDelete: serializeAws_restJson1TagValueList(input.TagValuesToDelete, context),
1044
1002
  }),
1045
1003
  });
@@ -1062,8 +1020,8 @@ const serializeAws_restJson1UpdateResourceCommand = async (input, context) => {
1062
1020
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateResource";
1063
1021
  let body;
1064
1022
  body = JSON.stringify({
1065
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1066
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
1023
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1024
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1067
1025
  });
1068
1026
  return new protocol_http_1.HttpRequest({
1069
1027
  protocol,
@@ -1084,12 +1042,11 @@ const serializeAws_restJson1UpdateTableObjectsCommand = async (input, context) =
1084
1042
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateTableObjects";
1085
1043
  let body;
1086
1044
  body = JSON.stringify({
1087
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
1088
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
1089
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
1090
- ...(input.TransactionId !== undefined && input.TransactionId !== null && { TransactionId: input.TransactionId }),
1091
- ...(input.WriteOperations !== undefined &&
1092
- input.WriteOperations !== null && {
1045
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
1046
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1047
+ ...(input.TableName != null && { TableName: input.TableName }),
1048
+ ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
1049
+ ...(input.WriteOperations != null && {
1093
1050
  WriteOperations: serializeAws_restJson1WriteOperationList(input.WriteOperations, context),
1094
1051
  }),
1095
1052
  });
@@ -1112,13 +1069,12 @@ const serializeAws_restJson1UpdateTableStorageOptimizerCommand = async (input, c
1112
1069
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateTableStorageOptimizer";
1113
1070
  let body;
1114
1071
  body = JSON.stringify({
1115
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
1116
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
1117
- ...(input.StorageOptimizerConfig !== undefined &&
1118
- input.StorageOptimizerConfig !== null && {
1072
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
1073
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1074
+ ...(input.StorageOptimizerConfig != null && {
1119
1075
  StorageOptimizerConfig: serializeAws_restJson1StorageOptimizerConfigMap(input.StorageOptimizerConfig, context),
1120
1076
  }),
1121
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
1077
+ ...(input.TableName != null && { TableName: input.TableName }),
1122
1078
  });
1123
1079
  return new protocol_http_1.HttpRequest({
1124
1080
  protocol,
@@ -3569,13 +3525,12 @@ const deserializeAws_restJson1WorkUnitsNotReadyYetExceptionResponse = async (par
3569
3525
  };
3570
3526
  const serializeAws_restJson1AddObjectInput = (input, context) => {
3571
3527
  return {
3572
- ...(input.ETag !== undefined && input.ETag !== null && { ETag: input.ETag }),
3573
- ...(input.PartitionValues !== undefined &&
3574
- input.PartitionValues !== null && {
3528
+ ...(input.ETag != null && { ETag: input.ETag }),
3529
+ ...(input.PartitionValues != null && {
3575
3530
  PartitionValues: serializeAws_restJson1PartitionValuesList(input.PartitionValues, context),
3576
3531
  }),
3577
- ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
3578
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
3532
+ ...(input.Size != null && { Size: input.Size }),
3533
+ ...(input.Uri != null && { Uri: input.Uri }),
3579
3534
  };
3580
3535
  };
3581
3536
  const serializeAws_restJson1AllRowsWildcard = (input, context) => {
@@ -3583,8 +3538,7 @@ const serializeAws_restJson1AllRowsWildcard = (input, context) => {
3583
3538
  };
3584
3539
  const serializeAws_restJson1AuditContext = (input, context) => {
3585
3540
  return {
3586
- ...(input.AdditionalAuditContext !== undefined &&
3587
- input.AdditionalAuditContext !== null && { AdditionalAuditContext: input.AdditionalAuditContext }),
3541
+ ...(input.AdditionalAuditContext != null && { AdditionalAuditContext: input.AdditionalAuditContext }),
3588
3542
  };
3589
3543
  };
3590
3544
  const serializeAws_restJson1AuthorizedSessionTagValueList = (input, context) => {
@@ -3599,17 +3553,13 @@ const serializeAws_restJson1AuthorizedSessionTagValueList = (input, context) =>
3599
3553
  };
3600
3554
  const serializeAws_restJson1BatchPermissionsRequestEntry = (input, context) => {
3601
3555
  return {
3602
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3603
- ...(input.Permissions !== undefined &&
3604
- input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
3605
- ...(input.PermissionsWithGrantOption !== undefined &&
3606
- input.PermissionsWithGrantOption !== null && {
3556
+ ...(input.Id != null && { Id: input.Id }),
3557
+ ...(input.Permissions != null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
3558
+ ...(input.PermissionsWithGrantOption != null && {
3607
3559
  PermissionsWithGrantOption: serializeAws_restJson1PermissionList(input.PermissionsWithGrantOption, context),
3608
3560
  }),
3609
- ...(input.Principal !== undefined &&
3610
- input.Principal !== null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
3611
- ...(input.Resource !== undefined &&
3612
- input.Resource !== null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
3561
+ ...(input.Principal != null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
3562
+ ...(input.Resource != null && { Resource: serializeAws_restJson1Resource(input.Resource, context) }),
3613
3563
  };
3614
3564
  };
3615
3565
  const serializeAws_restJson1BatchPermissionsRequestEntryList = (input, context) => {
@@ -3637,48 +3587,43 @@ const serializeAws_restJson1ColumnNames = (input, context) => {
3637
3587
  };
3638
3588
  const serializeAws_restJson1ColumnWildcard = (input, context) => {
3639
3589
  return {
3640
- ...(input.ExcludedColumnNames !== undefined &&
3641
- input.ExcludedColumnNames !== null && {
3590
+ ...(input.ExcludedColumnNames != null && {
3642
3591
  ExcludedColumnNames: serializeAws_restJson1ColumnNames(input.ExcludedColumnNames, context),
3643
3592
  }),
3644
3593
  };
3645
3594
  };
3646
3595
  const serializeAws_restJson1DatabaseResource = (input, context) => {
3647
3596
  return {
3648
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3649
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3597
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3598
+ ...(input.Name != null && { Name: input.Name }),
3650
3599
  };
3651
3600
  };
3652
3601
  const serializeAws_restJson1DataCellsFilter = (input, context) => {
3653
3602
  return {
3654
- ...(input.ColumnNames !== undefined &&
3655
- input.ColumnNames !== null && { ColumnNames: serializeAws_restJson1ColumnNames(input.ColumnNames, context) }),
3656
- ...(input.ColumnWildcard !== undefined &&
3657
- input.ColumnWildcard !== null && {
3603
+ ...(input.ColumnNames != null && { ColumnNames: serializeAws_restJson1ColumnNames(input.ColumnNames, context) }),
3604
+ ...(input.ColumnWildcard != null && {
3658
3605
  ColumnWildcard: serializeAws_restJson1ColumnWildcard(input.ColumnWildcard, context),
3659
3606
  }),
3660
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
3661
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3662
- ...(input.RowFilter !== undefined &&
3663
- input.RowFilter !== null && { RowFilter: serializeAws_restJson1RowFilter(input.RowFilter, context) }),
3664
- ...(input.TableCatalogId !== undefined &&
3665
- input.TableCatalogId !== null && { TableCatalogId: input.TableCatalogId }),
3666
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3607
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3608
+ ...(input.Name != null && { Name: input.Name }),
3609
+ ...(input.RowFilter != null && { RowFilter: serializeAws_restJson1RowFilter(input.RowFilter, context) }),
3610
+ ...(input.TableCatalogId != null && { TableCatalogId: input.TableCatalogId }),
3611
+ ...(input.TableName != null && { TableName: input.TableName }),
3667
3612
  };
3668
3613
  };
3669
3614
  const serializeAws_restJson1DataCellsFilterResource = (input, context) => {
3670
3615
  return {
3671
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
3672
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3673
- ...(input.TableCatalogId !== undefined &&
3674
- input.TableCatalogId !== null && { TableCatalogId: input.TableCatalogId }),
3675
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3616
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3617
+ ...(input.Name != null && { Name: input.Name }),
3618
+ ...(input.TableCatalogId != null && { TableCatalogId: input.TableCatalogId }),
3619
+ ...(input.TableName != null && { TableName: input.TableName }),
3676
3620
  };
3677
3621
  };
3678
3622
  const serializeAws_restJson1DataLakePrincipal = (input, context) => {
3679
3623
  return {
3680
- ...(input.DataLakePrincipalIdentifier !== undefined &&
3681
- input.DataLakePrincipalIdentifier !== null && { DataLakePrincipalIdentifier: input.DataLakePrincipalIdentifier }),
3624
+ ...(input.DataLakePrincipalIdentifier != null && {
3625
+ DataLakePrincipalIdentifier: input.DataLakePrincipalIdentifier,
3626
+ }),
3682
3627
  };
3683
3628
  };
3684
3629
  const serializeAws_restJson1DataLakePrincipalList = (input, context) => {
@@ -3693,48 +3638,40 @@ const serializeAws_restJson1DataLakePrincipalList = (input, context) => {
3693
3638
  };
3694
3639
  const serializeAws_restJson1DataLakeSettings = (input, context) => {
3695
3640
  return {
3696
- ...(input.AllowExternalDataFiltering !== undefined &&
3697
- input.AllowExternalDataFiltering !== null && { AllowExternalDataFiltering: input.AllowExternalDataFiltering }),
3698
- ...(input.AuthorizedSessionTagValueList !== undefined &&
3699
- input.AuthorizedSessionTagValueList !== null && {
3641
+ ...(input.AllowExternalDataFiltering != null && { AllowExternalDataFiltering: input.AllowExternalDataFiltering }),
3642
+ ...(input.AuthorizedSessionTagValueList != null && {
3700
3643
  AuthorizedSessionTagValueList: serializeAws_restJson1AuthorizedSessionTagValueList(input.AuthorizedSessionTagValueList, context),
3701
3644
  }),
3702
- ...(input.CreateDatabaseDefaultPermissions !== undefined &&
3703
- input.CreateDatabaseDefaultPermissions !== null && {
3645
+ ...(input.CreateDatabaseDefaultPermissions != null && {
3704
3646
  CreateDatabaseDefaultPermissions: serializeAws_restJson1PrincipalPermissionsList(input.CreateDatabaseDefaultPermissions, context),
3705
3647
  }),
3706
- ...(input.CreateTableDefaultPermissions !== undefined &&
3707
- input.CreateTableDefaultPermissions !== null && {
3648
+ ...(input.CreateTableDefaultPermissions != null && {
3708
3649
  CreateTableDefaultPermissions: serializeAws_restJson1PrincipalPermissionsList(input.CreateTableDefaultPermissions, context),
3709
3650
  }),
3710
- ...(input.DataLakeAdmins !== undefined &&
3711
- input.DataLakeAdmins !== null && {
3651
+ ...(input.DataLakeAdmins != null && {
3712
3652
  DataLakeAdmins: serializeAws_restJson1DataLakePrincipalList(input.DataLakeAdmins, context),
3713
3653
  }),
3714
- ...(input.ExternalDataFilteringAllowList !== undefined &&
3715
- input.ExternalDataFilteringAllowList !== null && {
3654
+ ...(input.ExternalDataFilteringAllowList != null && {
3716
3655
  ExternalDataFilteringAllowList: serializeAws_restJson1DataLakePrincipalList(input.ExternalDataFilteringAllowList, context),
3717
3656
  }),
3718
- ...(input.TrustedResourceOwners !== undefined &&
3719
- input.TrustedResourceOwners !== null && {
3657
+ ...(input.TrustedResourceOwners != null && {
3720
3658
  TrustedResourceOwners: serializeAws_restJson1TrustedResourceOwners(input.TrustedResourceOwners, context),
3721
3659
  }),
3722
3660
  };
3723
3661
  };
3724
3662
  const serializeAws_restJson1DataLocationResource = (input, context) => {
3725
3663
  return {
3726
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3727
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3664
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3665
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3728
3666
  };
3729
3667
  };
3730
3668
  const serializeAws_restJson1DeleteObjectInput = (input, context) => {
3731
3669
  return {
3732
- ...(input.ETag !== undefined && input.ETag !== null && { ETag: input.ETag }),
3733
- ...(input.PartitionValues !== undefined &&
3734
- input.PartitionValues !== null && {
3670
+ ...(input.ETag != null && { ETag: input.ETag }),
3671
+ ...(input.PartitionValues != null && {
3735
3672
  PartitionValues: serializeAws_restJson1PartitionValuesList(input.PartitionValues, context),
3736
3673
  }),
3737
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
3674
+ ...(input.Uri != null && { Uri: input.Uri }),
3738
3675
  };
3739
3676
  };
3740
3677
  const serializeAws_restJson1Expression = (input, context) => {
@@ -3749,11 +3686,9 @@ const serializeAws_restJson1Expression = (input, context) => {
3749
3686
  };
3750
3687
  const serializeAws_restJson1FilterCondition = (input, context) => {
3751
3688
  return {
3752
- ...(input.ComparisonOperator !== undefined &&
3753
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
3754
- ...(input.Field !== undefined && input.Field !== null && { Field: input.Field }),
3755
- ...(input.StringValueList !== undefined &&
3756
- input.StringValueList !== null && {
3689
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3690
+ ...(input.Field != null && { Field: input.Field }),
3691
+ ...(input.StringValueList != null && {
3757
3692
  StringValueList: serializeAws_restJson1StringValueList(input.StringValueList, context),
3758
3693
  }),
3759
3694
  };
@@ -3770,33 +3705,29 @@ const serializeAws_restJson1FilterConditionList = (input, context) => {
3770
3705
  };
3771
3706
  const serializeAws_restJson1LFTag = (input, context) => {
3772
3707
  return {
3773
- ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
3774
- ...(input.TagValues !== undefined &&
3775
- input.TagValues !== null && { TagValues: serializeAws_restJson1TagValueList(input.TagValues, context) }),
3708
+ ...(input.TagKey != null && { TagKey: input.TagKey }),
3709
+ ...(input.TagValues != null && { TagValues: serializeAws_restJson1TagValueList(input.TagValues, context) }),
3776
3710
  };
3777
3711
  };
3778
3712
  const serializeAws_restJson1LFTagKeyResource = (input, context) => {
3779
3713
  return {
3780
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3781
- ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
3782
- ...(input.TagValues !== undefined &&
3783
- input.TagValues !== null && { TagValues: serializeAws_restJson1TagValueList(input.TagValues, context) }),
3714
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3715
+ ...(input.TagKey != null && { TagKey: input.TagKey }),
3716
+ ...(input.TagValues != null && { TagValues: serializeAws_restJson1TagValueList(input.TagValues, context) }),
3784
3717
  };
3785
3718
  };
3786
3719
  const serializeAws_restJson1LFTagPair = (input, context) => {
3787
3720
  return {
3788
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3789
- ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
3790
- ...(input.TagValues !== undefined &&
3791
- input.TagValues !== null && { TagValues: serializeAws_restJson1TagValueList(input.TagValues, context) }),
3721
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3722
+ ...(input.TagKey != null && { TagKey: input.TagKey }),
3723
+ ...(input.TagValues != null && { TagValues: serializeAws_restJson1TagValueList(input.TagValues, context) }),
3792
3724
  };
3793
3725
  };
3794
3726
  const serializeAws_restJson1LFTagPolicyResource = (input, context) => {
3795
3727
  return {
3796
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3797
- ...(input.Expression !== undefined &&
3798
- input.Expression !== null && { Expression: serializeAws_restJson1Expression(input.Expression, context) }),
3799
- ...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
3728
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3729
+ ...(input.Expression != null && { Expression: serializeAws_restJson1Expression(input.Expression, context) }),
3730
+ ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
3800
3731
  };
3801
3732
  };
3802
3733
  const serializeAws_restJson1LFTagsList = (input, context) => {
@@ -3811,8 +3742,7 @@ const serializeAws_restJson1LFTagsList = (input, context) => {
3811
3742
  };
3812
3743
  const serializeAws_restJson1PartitionValueList = (input, context) => {
3813
3744
  return {
3814
- ...(input.Values !== undefined &&
3815
- input.Values !== null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }),
3745
+ ...(input.Values != null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }),
3816
3746
  };
3817
3747
  };
3818
3748
  const serializeAws_restJson1PartitionValuesList = (input, context) => {
@@ -3847,10 +3777,8 @@ const serializeAws_restJson1PermissionTypeList = (input, context) => {
3847
3777
  };
3848
3778
  const serializeAws_restJson1PrincipalPermissions = (input, context) => {
3849
3779
  return {
3850
- ...(input.Permissions !== undefined &&
3851
- input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
3852
- ...(input.Principal !== undefined &&
3853
- input.Principal !== null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
3780
+ ...(input.Permissions != null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
3781
+ ...(input.Principal != null && { Principal: serializeAws_restJson1DataLakePrincipal(input.Principal, context) }),
3854
3782
  };
3855
3783
  };
3856
3784
  const serializeAws_restJson1PrincipalPermissionsList = (input, context) => {
@@ -3876,53 +3804,41 @@ const serializeAws_restJson1QueryParameterMap = (input, context) => {
3876
3804
  };
3877
3805
  const serializeAws_restJson1QueryPlanningContext = (input, context) => {
3878
3806
  return {
3879
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3880
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
3881
- ...(input.QueryAsOfTime !== undefined &&
3882
- input.QueryAsOfTime !== null && { QueryAsOfTime: Math.round(input.QueryAsOfTime.getTime() / 1000) }),
3883
- ...(input.QueryParameters !== undefined &&
3884
- input.QueryParameters !== null && {
3807
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3808
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3809
+ ...(input.QueryAsOfTime != null && { QueryAsOfTime: Math.round(input.QueryAsOfTime.getTime() / 1000) }),
3810
+ ...(input.QueryParameters != null && {
3885
3811
  QueryParameters: serializeAws_restJson1QueryParameterMap(input.QueryParameters, context),
3886
3812
  }),
3887
- ...(input.TransactionId !== undefined && input.TransactionId !== null && { TransactionId: input.TransactionId }),
3813
+ ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
3888
3814
  };
3889
3815
  };
3890
3816
  const serializeAws_restJson1Resource = (input, context) => {
3891
3817
  return {
3892
- ...(input.Catalog !== undefined &&
3893
- input.Catalog !== null && { Catalog: serializeAws_restJson1CatalogResource(input.Catalog, context) }),
3894
- ...(input.DataCellsFilter !== undefined &&
3895
- input.DataCellsFilter !== null && {
3818
+ ...(input.Catalog != null && { Catalog: serializeAws_restJson1CatalogResource(input.Catalog, context) }),
3819
+ ...(input.DataCellsFilter != null && {
3896
3820
  DataCellsFilter: serializeAws_restJson1DataCellsFilterResource(input.DataCellsFilter, context),
3897
3821
  }),
3898
- ...(input.DataLocation !== undefined &&
3899
- input.DataLocation !== null && {
3822
+ ...(input.DataLocation != null && {
3900
3823
  DataLocation: serializeAws_restJson1DataLocationResource(input.DataLocation, context),
3901
3824
  }),
3902
- ...(input.Database !== undefined &&
3903
- input.Database !== null && { Database: serializeAws_restJson1DatabaseResource(input.Database, context) }),
3904
- ...(input.LFTag !== undefined &&
3905
- input.LFTag !== null && { LFTag: serializeAws_restJson1LFTagKeyResource(input.LFTag, context) }),
3906
- ...(input.LFTagPolicy !== undefined &&
3907
- input.LFTagPolicy !== null && {
3825
+ ...(input.Database != null && { Database: serializeAws_restJson1DatabaseResource(input.Database, context) }),
3826
+ ...(input.LFTag != null && { LFTag: serializeAws_restJson1LFTagKeyResource(input.LFTag, context) }),
3827
+ ...(input.LFTagPolicy != null && {
3908
3828
  LFTagPolicy: serializeAws_restJson1LFTagPolicyResource(input.LFTagPolicy, context),
3909
3829
  }),
3910
- ...(input.Table !== undefined &&
3911
- input.Table !== null && { Table: serializeAws_restJson1TableResource(input.Table, context) }),
3912
- ...(input.TableWithColumns !== undefined &&
3913
- input.TableWithColumns !== null && {
3830
+ ...(input.Table != null && { Table: serializeAws_restJson1TableResource(input.Table, context) }),
3831
+ ...(input.TableWithColumns != null && {
3914
3832
  TableWithColumns: serializeAws_restJson1TableWithColumnsResource(input.TableWithColumns, context),
3915
3833
  }),
3916
3834
  };
3917
3835
  };
3918
3836
  const serializeAws_restJson1RowFilter = (input, context) => {
3919
3837
  return {
3920
- ...(input.AllRowsWildcard !== undefined &&
3921
- input.AllRowsWildcard !== null && {
3838
+ ...(input.AllRowsWildcard != null && {
3922
3839
  AllRowsWildcard: serializeAws_restJson1AllRowsWildcard(input.AllRowsWildcard, context),
3923
3840
  }),
3924
- ...(input.FilterExpression !== undefined &&
3925
- input.FilterExpression !== null && { FilterExpression: input.FilterExpression }),
3841
+ ...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
3926
3842
  };
3927
3843
  };
3928
3844
  const serializeAws_restJson1StorageOptimizerConfig = (input, context) => {
@@ -3959,11 +3875,10 @@ const serializeAws_restJson1StringValueList = (input, context) => {
3959
3875
  };
3960
3876
  const serializeAws_restJson1TableResource = (input, context) => {
3961
3877
  return {
3962
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3963
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
3964
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3965
- ...(input.TableWildcard !== undefined &&
3966
- input.TableWildcard !== null && {
3878
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3879
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3880
+ ...(input.Name != null && { Name: input.Name }),
3881
+ ...(input.TableWildcard != null && {
3967
3882
  TableWildcard: serializeAws_restJson1TableWildcard(input.TableWildcard, context),
3968
3883
  }),
3969
3884
  };
@@ -3973,15 +3888,13 @@ const serializeAws_restJson1TableWildcard = (input, context) => {
3973
3888
  };
3974
3889
  const serializeAws_restJson1TableWithColumnsResource = (input, context) => {
3975
3890
  return {
3976
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3977
- ...(input.ColumnNames !== undefined &&
3978
- input.ColumnNames !== null && { ColumnNames: serializeAws_restJson1ColumnNames(input.ColumnNames, context) }),
3979
- ...(input.ColumnWildcard !== undefined &&
3980
- input.ColumnWildcard !== null && {
3891
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3892
+ ...(input.ColumnNames != null && { ColumnNames: serializeAws_restJson1ColumnNames(input.ColumnNames, context) }),
3893
+ ...(input.ColumnWildcard != null && {
3981
3894
  ColumnWildcard: serializeAws_restJson1ColumnWildcard(input.ColumnWildcard, context),
3982
3895
  }),
3983
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
3984
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3896
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3897
+ ...(input.Name != null && { Name: input.Name }),
3985
3898
  };
3986
3899
  };
3987
3900
  const serializeAws_restJson1TagValueList = (input, context) => {
@@ -4016,8 +3929,8 @@ const serializeAws_restJson1ValueStringList = (input, context) => {
4016
3929
  };
4017
3930
  const serializeAws_restJson1VirtualObject = (input, context) => {
4018
3931
  return {
4019
- ...(input.ETag !== undefined && input.ETag !== null && { ETag: input.ETag }),
4020
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
3932
+ ...(input.ETag != null && { ETag: input.ETag }),
3933
+ ...(input.Uri != null && { Uri: input.Uri }),
4021
3934
  };
4022
3935
  };
4023
3936
  const serializeAws_restJson1VirtualObjectList = (input, context) => {
@@ -4032,10 +3945,8 @@ const serializeAws_restJson1VirtualObjectList = (input, context) => {
4032
3945
  };
4033
3946
  const serializeAws_restJson1WriteOperation = (input, context) => {
4034
3947
  return {
4035
- ...(input.AddObject !== undefined &&
4036
- input.AddObject !== null && { AddObject: serializeAws_restJson1AddObjectInput(input.AddObject, context) }),
4037
- ...(input.DeleteObject !== undefined &&
4038
- input.DeleteObject !== null && {
3948
+ ...(input.AddObject != null && { AddObject: serializeAws_restJson1AddObjectInput(input.AddObject, context) }),
3949
+ ...(input.DeleteObject != null && {
4039
3950
  DeleteObject: serializeAws_restJson1DeleteObjectInput(input.DeleteObject, context),
4040
3951
  }),
4041
3952
  };
@@ -4066,10 +3977,8 @@ const deserializeAws_restJson1AuthorizedSessionTagValueList = (output, context)
4066
3977
  };
4067
3978
  const deserializeAws_restJson1BatchPermissionsFailureEntry = (output, context) => {
4068
3979
  return {
4069
- Error: output.Error !== undefined && output.Error !== null
4070
- ? deserializeAws_restJson1ErrorDetail(output.Error, context)
4071
- : undefined,
4072
- RequestEntry: output.RequestEntry !== undefined && output.RequestEntry !== null
3980
+ Error: output.Error != null ? deserializeAws_restJson1ErrorDetail(output.Error, context) : undefined,
3981
+ RequestEntry: output.RequestEntry != null
4073
3982
  ? deserializeAws_restJson1BatchPermissionsRequestEntry(output.RequestEntry, context)
4074
3983
  : undefined,
4075
3984
  };
@@ -4088,18 +3997,12 @@ const deserializeAws_restJson1BatchPermissionsFailureList = (output, context) =>
4088
3997
  const deserializeAws_restJson1BatchPermissionsRequestEntry = (output, context) => {
4089
3998
  return {
4090
3999
  Id: (0, smithy_client_1.expectString)(output.Id),
4091
- Permissions: output.Permissions !== undefined && output.Permissions !== null
4092
- ? deserializeAws_restJson1PermissionList(output.Permissions, context)
4093
- : undefined,
4094
- PermissionsWithGrantOption: output.PermissionsWithGrantOption !== undefined && output.PermissionsWithGrantOption !== null
4000
+ Permissions: output.Permissions != null ? deserializeAws_restJson1PermissionList(output.Permissions, context) : undefined,
4001
+ PermissionsWithGrantOption: output.PermissionsWithGrantOption != null
4095
4002
  ? deserializeAws_restJson1PermissionList(output.PermissionsWithGrantOption, context)
4096
4003
  : undefined,
4097
- Principal: output.Principal !== undefined && output.Principal !== null
4098
- ? deserializeAws_restJson1DataLakePrincipal(output.Principal, context)
4099
- : undefined,
4100
- Resource: output.Resource !== undefined && output.Resource !== null
4101
- ? deserializeAws_restJson1Resource(output.Resource, context)
4102
- : undefined,
4004
+ Principal: output.Principal != null ? deserializeAws_restJson1DataLakePrincipal(output.Principal, context) : undefined,
4005
+ Resource: output.Resource != null ? deserializeAws_restJson1Resource(output.Resource, context) : undefined,
4103
4006
  };
4104
4007
  };
4105
4008
  const deserializeAws_restJson1CatalogResource = (output, context) => {
@@ -4107,9 +4010,7 @@ const deserializeAws_restJson1CatalogResource = (output, context) => {
4107
4010
  };
4108
4011
  const deserializeAws_restJson1ColumnLFTag = (output, context) => {
4109
4012
  return {
4110
- LFTags: output.LFTags !== undefined && output.LFTags !== null
4111
- ? deserializeAws_restJson1LFTagsList(output.LFTags, context)
4112
- : undefined,
4013
+ LFTags: output.LFTags != null ? deserializeAws_restJson1LFTagsList(output.LFTags, context) : undefined,
4113
4014
  Name: (0, smithy_client_1.expectString)(output.Name),
4114
4015
  };
4115
4016
  };
@@ -4137,7 +4038,7 @@ const deserializeAws_restJson1ColumnNames = (output, context) => {
4137
4038
  };
4138
4039
  const deserializeAws_restJson1ColumnWildcard = (output, context) => {
4139
4040
  return {
4140
- ExcludedColumnNames: output.ExcludedColumnNames !== undefined && output.ExcludedColumnNames !== null
4041
+ ExcludedColumnNames: output.ExcludedColumnNames != null
4141
4042
  ? deserializeAws_restJson1ColumnNames(output.ExcludedColumnNames, context)
4142
4043
  : undefined,
4143
4044
  };
@@ -4161,17 +4062,13 @@ const deserializeAws_restJson1DatabaseResource = (output, context) => {
4161
4062
  };
4162
4063
  const deserializeAws_restJson1DataCellsFilter = (output, context) => {
4163
4064
  return {
4164
- ColumnNames: output.ColumnNames !== undefined && output.ColumnNames !== null
4165
- ? deserializeAws_restJson1ColumnNames(output.ColumnNames, context)
4166
- : undefined,
4167
- ColumnWildcard: output.ColumnWildcard !== undefined && output.ColumnWildcard !== null
4065
+ ColumnNames: output.ColumnNames != null ? deserializeAws_restJson1ColumnNames(output.ColumnNames, context) : undefined,
4066
+ ColumnWildcard: output.ColumnWildcard != null
4168
4067
  ? deserializeAws_restJson1ColumnWildcard(output.ColumnWildcard, context)
4169
4068
  : undefined,
4170
4069
  DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
4171
4070
  Name: (0, smithy_client_1.expectString)(output.Name),
4172
- RowFilter: output.RowFilter !== undefined && output.RowFilter !== null
4173
- ? deserializeAws_restJson1RowFilter(output.RowFilter, context)
4174
- : undefined,
4071
+ RowFilter: output.RowFilter != null ? deserializeAws_restJson1RowFilter(output.RowFilter, context) : undefined,
4175
4072
  TableCatalogId: (0, smithy_client_1.expectString)(output.TableCatalogId),
4176
4073
  TableName: (0, smithy_client_1.expectString)(output.TableName),
4177
4074
  };
@@ -4214,22 +4111,22 @@ const deserializeAws_restJson1DataLakePrincipalList = (output, context) => {
4214
4111
  const deserializeAws_restJson1DataLakeSettings = (output, context) => {
4215
4112
  return {
4216
4113
  AllowExternalDataFiltering: (0, smithy_client_1.expectBoolean)(output.AllowExternalDataFiltering),
4217
- AuthorizedSessionTagValueList: output.AuthorizedSessionTagValueList !== undefined && output.AuthorizedSessionTagValueList !== null
4114
+ AuthorizedSessionTagValueList: output.AuthorizedSessionTagValueList != null
4218
4115
  ? deserializeAws_restJson1AuthorizedSessionTagValueList(output.AuthorizedSessionTagValueList, context)
4219
4116
  : undefined,
4220
- CreateDatabaseDefaultPermissions: output.CreateDatabaseDefaultPermissions !== undefined && output.CreateDatabaseDefaultPermissions !== null
4117
+ CreateDatabaseDefaultPermissions: output.CreateDatabaseDefaultPermissions != null
4221
4118
  ? deserializeAws_restJson1PrincipalPermissionsList(output.CreateDatabaseDefaultPermissions, context)
4222
4119
  : undefined,
4223
- CreateTableDefaultPermissions: output.CreateTableDefaultPermissions !== undefined && output.CreateTableDefaultPermissions !== null
4120
+ CreateTableDefaultPermissions: output.CreateTableDefaultPermissions != null
4224
4121
  ? deserializeAws_restJson1PrincipalPermissionsList(output.CreateTableDefaultPermissions, context)
4225
4122
  : undefined,
4226
- DataLakeAdmins: output.DataLakeAdmins !== undefined && output.DataLakeAdmins !== null
4123
+ DataLakeAdmins: output.DataLakeAdmins != null
4227
4124
  ? deserializeAws_restJson1DataLakePrincipalList(output.DataLakeAdmins, context)
4228
4125
  : undefined,
4229
- ExternalDataFilteringAllowList: output.ExternalDataFilteringAllowList !== undefined && output.ExternalDataFilteringAllowList !== null
4126
+ ExternalDataFilteringAllowList: output.ExternalDataFilteringAllowList != null
4230
4127
  ? deserializeAws_restJson1DataLakePrincipalList(output.ExternalDataFilteringAllowList, context)
4231
4128
  : undefined,
4232
- TrustedResourceOwners: output.TrustedResourceOwners !== undefined && output.TrustedResourceOwners !== null
4129
+ TrustedResourceOwners: output.TrustedResourceOwners != null
4233
4130
  ? deserializeAws_restJson1TrustedResourceOwners(output.TrustedResourceOwners, context)
4234
4131
  : undefined,
4235
4132
  };
@@ -4242,7 +4139,7 @@ const deserializeAws_restJson1DataLocationResource = (output, context) => {
4242
4139
  };
4243
4140
  const deserializeAws_restJson1DetailsMap = (output, context) => {
4244
4141
  return {
4245
- ResourceShare: output.ResourceShare !== undefined && output.ResourceShare !== null
4142
+ ResourceShare: output.ResourceShare != null
4246
4143
  ? deserializeAws_restJson1ResourceShareList(output.ResourceShare, context)
4247
4144
  : undefined,
4248
4145
  };
@@ -4274,19 +4171,13 @@ const deserializeAws_restJson1Expression = (output, context) => {
4274
4171
  const deserializeAws_restJson1LFTag = (output, context) => {
4275
4172
  return {
4276
4173
  TagKey: (0, smithy_client_1.expectString)(output.TagKey),
4277
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4278
- ? deserializeAws_restJson1TagValueList(output.TagValues, context)
4279
- : undefined,
4174
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValueList(output.TagValues, context) : undefined,
4280
4175
  };
4281
4176
  };
4282
4177
  const deserializeAws_restJson1LFTagError = (output, context) => {
4283
4178
  return {
4284
- Error: output.Error !== undefined && output.Error !== null
4285
- ? deserializeAws_restJson1ErrorDetail(output.Error, context)
4286
- : undefined,
4287
- LFTag: output.LFTag !== undefined && output.LFTag !== null
4288
- ? deserializeAws_restJson1LFTagPair(output.LFTag, context)
4289
- : undefined,
4179
+ Error: output.Error != null ? deserializeAws_restJson1ErrorDetail(output.Error, context) : undefined,
4180
+ LFTag: output.LFTag != null ? deserializeAws_restJson1LFTagPair(output.LFTag, context) : undefined,
4290
4181
  };
4291
4182
  };
4292
4183
  const deserializeAws_restJson1LFTagErrors = (output, context) => {
@@ -4304,26 +4195,20 @@ const deserializeAws_restJson1LFTagKeyResource = (output, context) => {
4304
4195
  return {
4305
4196
  CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4306
4197
  TagKey: (0, smithy_client_1.expectString)(output.TagKey),
4307
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4308
- ? deserializeAws_restJson1TagValueList(output.TagValues, context)
4309
- : undefined,
4198
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValueList(output.TagValues, context) : undefined,
4310
4199
  };
4311
4200
  };
4312
4201
  const deserializeAws_restJson1LFTagPair = (output, context) => {
4313
4202
  return {
4314
4203
  CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4315
4204
  TagKey: (0, smithy_client_1.expectString)(output.TagKey),
4316
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4317
- ? deserializeAws_restJson1TagValueList(output.TagValues, context)
4318
- : undefined,
4205
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValueList(output.TagValues, context) : undefined,
4319
4206
  };
4320
4207
  };
4321
4208
  const deserializeAws_restJson1LFTagPolicyResource = (output, context) => {
4322
4209
  return {
4323
4210
  CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4324
- Expression: output.Expression !== undefined && output.Expression !== null
4325
- ? deserializeAws_restJson1Expression(output.Expression, context)
4326
- : undefined,
4211
+ Expression: output.Expression != null ? deserializeAws_restJson1Expression(output.Expression, context) : undefined,
4327
4212
  ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4328
4213
  };
4329
4214
  };
@@ -4351,10 +4236,8 @@ const deserializeAws_restJson1PartitionedTableObjectsList = (output, context) =>
4351
4236
  };
4352
4237
  const deserializeAws_restJson1PartitionObjects = (output, context) => {
4353
4238
  return {
4354
- Objects: output.Objects !== undefined && output.Objects !== null
4355
- ? deserializeAws_restJson1TableObjectList(output.Objects, context)
4356
- : undefined,
4357
- PartitionValues: output.PartitionValues !== undefined && output.PartitionValues !== null
4239
+ Objects: output.Objects != null ? deserializeAws_restJson1TableObjectList(output.Objects, context) : undefined,
4240
+ PartitionValues: output.PartitionValues != null
4358
4241
  ? deserializeAws_restJson1PartitionValuesList(output.PartitionValues, context)
4359
4242
  : undefined,
4360
4243
  };
@@ -4391,12 +4274,8 @@ const deserializeAws_restJson1PlanningStatistics = (output, context) => {
4391
4274
  };
4392
4275
  const deserializeAws_restJson1PrincipalPermissions = (output, context) => {
4393
4276
  return {
4394
- Permissions: output.Permissions !== undefined && output.Permissions !== null
4395
- ? deserializeAws_restJson1PermissionList(output.Permissions, context)
4396
- : undefined,
4397
- Principal: output.Principal !== undefined && output.Principal !== null
4398
- ? deserializeAws_restJson1DataLakePrincipal(output.Principal, context)
4399
- : undefined,
4277
+ Permissions: output.Permissions != null ? deserializeAws_restJson1PermissionList(output.Permissions, context) : undefined,
4278
+ Principal: output.Principal != null ? deserializeAws_restJson1DataLakePrincipal(output.Principal, context) : undefined,
4400
4279
  };
4401
4280
  };
4402
4281
  const deserializeAws_restJson1PrincipalPermissionsList = (output, context) => {
@@ -4412,21 +4291,15 @@ const deserializeAws_restJson1PrincipalPermissionsList = (output, context) => {
4412
4291
  };
4413
4292
  const deserializeAws_restJson1PrincipalResourcePermissions = (output, context) => {
4414
4293
  return {
4415
- AdditionalDetails: output.AdditionalDetails !== undefined && output.AdditionalDetails !== null
4294
+ AdditionalDetails: output.AdditionalDetails != null
4416
4295
  ? deserializeAws_restJson1DetailsMap(output.AdditionalDetails, context)
4417
4296
  : undefined,
4418
- Permissions: output.Permissions !== undefined && output.Permissions !== null
4419
- ? deserializeAws_restJson1PermissionList(output.Permissions, context)
4420
- : undefined,
4421
- PermissionsWithGrantOption: output.PermissionsWithGrantOption !== undefined && output.PermissionsWithGrantOption !== null
4297
+ Permissions: output.Permissions != null ? deserializeAws_restJson1PermissionList(output.Permissions, context) : undefined,
4298
+ PermissionsWithGrantOption: output.PermissionsWithGrantOption != null
4422
4299
  ? deserializeAws_restJson1PermissionList(output.PermissionsWithGrantOption, context)
4423
4300
  : undefined,
4424
- Principal: output.Principal !== undefined && output.Principal !== null
4425
- ? deserializeAws_restJson1DataLakePrincipal(output.Principal, context)
4426
- : undefined,
4427
- Resource: output.Resource !== undefined && output.Resource !== null
4428
- ? deserializeAws_restJson1Resource(output.Resource, context)
4429
- : undefined,
4301
+ Principal: output.Principal != null ? deserializeAws_restJson1DataLakePrincipal(output.Principal, context) : undefined,
4302
+ Resource: output.Resource != null ? deserializeAws_restJson1Resource(output.Resource, context) : undefined,
4430
4303
  };
4431
4304
  };
4432
4305
  const deserializeAws_restJson1PrincipalResourcePermissionsList = (output, context) => {
@@ -4442,35 +4315,25 @@ const deserializeAws_restJson1PrincipalResourcePermissionsList = (output, contex
4442
4315
  };
4443
4316
  const deserializeAws_restJson1Resource = (output, context) => {
4444
4317
  return {
4445
- Catalog: output.Catalog !== undefined && output.Catalog !== null
4446
- ? deserializeAws_restJson1CatalogResource(output.Catalog, context)
4447
- : undefined,
4448
- DataCellsFilter: output.DataCellsFilter !== undefined && output.DataCellsFilter !== null
4318
+ Catalog: output.Catalog != null ? deserializeAws_restJson1CatalogResource(output.Catalog, context) : undefined,
4319
+ DataCellsFilter: output.DataCellsFilter != null
4449
4320
  ? deserializeAws_restJson1DataCellsFilterResource(output.DataCellsFilter, context)
4450
4321
  : undefined,
4451
- DataLocation: output.DataLocation !== undefined && output.DataLocation !== null
4322
+ DataLocation: output.DataLocation != null
4452
4323
  ? deserializeAws_restJson1DataLocationResource(output.DataLocation, context)
4453
4324
  : undefined,
4454
- Database: output.Database !== undefined && output.Database !== null
4455
- ? deserializeAws_restJson1DatabaseResource(output.Database, context)
4456
- : undefined,
4457
- LFTag: output.LFTag !== undefined && output.LFTag !== null
4458
- ? deserializeAws_restJson1LFTagKeyResource(output.LFTag, context)
4459
- : undefined,
4460
- LFTagPolicy: output.LFTagPolicy !== undefined && output.LFTagPolicy !== null
4461
- ? deserializeAws_restJson1LFTagPolicyResource(output.LFTagPolicy, context)
4462
- : undefined,
4463
- Table: output.Table !== undefined && output.Table !== null
4464
- ? deserializeAws_restJson1TableResource(output.Table, context)
4465
- : undefined,
4466
- TableWithColumns: output.TableWithColumns !== undefined && output.TableWithColumns !== null
4325
+ Database: output.Database != null ? deserializeAws_restJson1DatabaseResource(output.Database, context) : undefined,
4326
+ LFTag: output.LFTag != null ? deserializeAws_restJson1LFTagKeyResource(output.LFTag, context) : undefined,
4327
+ LFTagPolicy: output.LFTagPolicy != null ? deserializeAws_restJson1LFTagPolicyResource(output.LFTagPolicy, context) : undefined,
4328
+ Table: output.Table != null ? deserializeAws_restJson1TableResource(output.Table, context) : undefined,
4329
+ TableWithColumns: output.TableWithColumns != null
4467
4330
  ? deserializeAws_restJson1TableWithColumnsResource(output.TableWithColumns, context)
4468
4331
  : undefined,
4469
4332
  };
4470
4333
  };
4471
4334
  const deserializeAws_restJson1ResourceInfo = (output, context) => {
4472
4335
  return {
4473
- LastModified: output.LastModified !== undefined && output.LastModified !== null
4336
+ LastModified: output.LastModified != null
4474
4337
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
4475
4338
  : undefined,
4476
4339
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
@@ -4501,7 +4364,7 @@ const deserializeAws_restJson1ResourceShareList = (output, context) => {
4501
4364
  };
4502
4365
  const deserializeAws_restJson1RowFilter = (output, context) => {
4503
4366
  return {
4504
- AllRowsWildcard: output.AllRowsWildcard !== undefined && output.AllRowsWildcard !== null
4367
+ AllRowsWildcard: output.AllRowsWildcard != null
4505
4368
  ? deserializeAws_restJson1AllRowsWildcard(output.AllRowsWildcard, context)
4506
4369
  : undefined,
4507
4370
  FilterExpression: (0, smithy_client_1.expectString)(output.FilterExpression),
@@ -4509,9 +4372,7 @@ const deserializeAws_restJson1RowFilter = (output, context) => {
4509
4372
  };
4510
4373
  const deserializeAws_restJson1StorageOptimizer = (output, context) => {
4511
4374
  return {
4512
- Config: output.Config !== undefined && output.Config !== null
4513
- ? deserializeAws_restJson1StorageOptimizerConfig(output.Config, context)
4514
- : undefined,
4375
+ Config: output.Config != null ? deserializeAws_restJson1StorageOptimizerConfig(output.Config, context) : undefined,
4515
4376
  ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4516
4377
  LastRunDetails: (0, smithy_client_1.expectString)(output.LastRunDetails),
4517
4378
  StorageOptimizerType: (0, smithy_client_1.expectString)(output.StorageOptimizerType),
@@ -4574,9 +4435,7 @@ const deserializeAws_restJson1TableResource = (output, context) => {
4574
4435
  CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4575
4436
  DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
4576
4437
  Name: (0, smithy_client_1.expectString)(output.Name),
4577
- TableWildcard: output.TableWildcard !== undefined && output.TableWildcard !== null
4578
- ? deserializeAws_restJson1TableWildcard(output.TableWildcard, context)
4579
- : undefined,
4438
+ TableWildcard: output.TableWildcard != null ? deserializeAws_restJson1TableWildcard(output.TableWildcard, context) : undefined,
4580
4439
  };
4581
4440
  };
4582
4441
  const deserializeAws_restJson1TableWildcard = (output, context) => {
@@ -4585,10 +4444,8 @@ const deserializeAws_restJson1TableWildcard = (output, context) => {
4585
4444
  const deserializeAws_restJson1TableWithColumnsResource = (output, context) => {
4586
4445
  return {
4587
4446
  CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4588
- ColumnNames: output.ColumnNames !== undefined && output.ColumnNames !== null
4589
- ? deserializeAws_restJson1ColumnNames(output.ColumnNames, context)
4590
- : undefined,
4591
- ColumnWildcard: output.ColumnWildcard !== undefined && output.ColumnWildcard !== null
4447
+ ColumnNames: output.ColumnNames != null ? deserializeAws_restJson1ColumnNames(output.ColumnNames, context) : undefined,
4448
+ ColumnWildcard: output.ColumnWildcard != null
4592
4449
  ? deserializeAws_restJson1ColumnWildcard(output.ColumnWildcard, context)
4593
4450
  : undefined,
4594
4451
  DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
@@ -4597,28 +4454,18 @@ const deserializeAws_restJson1TableWithColumnsResource = (output, context) => {
4597
4454
  };
4598
4455
  const deserializeAws_restJson1TaggedDatabase = (output, context) => {
4599
4456
  return {
4600
- Database: output.Database !== undefined && output.Database !== null
4601
- ? deserializeAws_restJson1DatabaseResource(output.Database, context)
4602
- : undefined,
4603
- LFTags: output.LFTags !== undefined && output.LFTags !== null
4604
- ? deserializeAws_restJson1LFTagsList(output.LFTags, context)
4605
- : undefined,
4457
+ Database: output.Database != null ? deserializeAws_restJson1DatabaseResource(output.Database, context) : undefined,
4458
+ LFTags: output.LFTags != null ? deserializeAws_restJson1LFTagsList(output.LFTags, context) : undefined,
4606
4459
  };
4607
4460
  };
4608
4461
  const deserializeAws_restJson1TaggedTable = (output, context) => {
4609
4462
  return {
4610
- LFTagOnDatabase: output.LFTagOnDatabase !== undefined && output.LFTagOnDatabase !== null
4611
- ? deserializeAws_restJson1LFTagsList(output.LFTagOnDatabase, context)
4612
- : undefined,
4613
- LFTagsOnColumns: output.LFTagsOnColumns !== undefined && output.LFTagsOnColumns !== null
4463
+ LFTagOnDatabase: output.LFTagOnDatabase != null ? deserializeAws_restJson1LFTagsList(output.LFTagOnDatabase, context) : undefined,
4464
+ LFTagsOnColumns: output.LFTagsOnColumns != null
4614
4465
  ? deserializeAws_restJson1ColumnLFTagsList(output.LFTagsOnColumns, context)
4615
4466
  : undefined,
4616
- LFTagsOnTable: output.LFTagsOnTable !== undefined && output.LFTagsOnTable !== null
4617
- ? deserializeAws_restJson1LFTagsList(output.LFTagsOnTable, context)
4618
- : undefined,
4619
- Table: output.Table !== undefined && output.Table !== null
4620
- ? deserializeAws_restJson1TableResource(output.Table, context)
4621
- : undefined,
4467
+ LFTagsOnTable: output.LFTagsOnTable != null ? deserializeAws_restJson1LFTagsList(output.LFTagsOnTable, context) : undefined,
4468
+ Table: output.Table != null ? deserializeAws_restJson1TableResource(output.Table, context) : undefined,
4622
4469
  };
4623
4470
  };
4624
4471
  const deserializeAws_restJson1TagValueList = (output, context) => {
@@ -4634,11 +4481,11 @@ const deserializeAws_restJson1TagValueList = (output, context) => {
4634
4481
  };
4635
4482
  const deserializeAws_restJson1TransactionDescription = (output, context) => {
4636
4483
  return {
4637
- TransactionEndTime: output.TransactionEndTime !== undefined && output.TransactionEndTime !== null
4484
+ TransactionEndTime: output.TransactionEndTime != null
4638
4485
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TransactionEndTime)))
4639
4486
  : undefined,
4640
4487
  TransactionId: (0, smithy_client_1.expectString)(output.TransactionId),
4641
- TransactionStartTime: output.TransactionStartTime !== undefined && output.TransactionStartTime !== null
4488
+ TransactionStartTime: output.TransactionStartTime != null
4642
4489
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TransactionStartTime)))
4643
4490
  : undefined,
4644
4491
  TransactionStatus: (0, smithy_client_1.expectString)(output.TransactionStatus),
@@ -4715,6 +4562,9 @@ const loadRestJsonErrorCode = (output, data) => {
4715
4562
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4716
4563
  const sanitizeErrorCode = (rawValue) => {
4717
4564
  let cleanValue = rawValue;
4565
+ if (typeof cleanValue === "number") {
4566
+ cleanValue = cleanValue.toString();
4567
+ }
4718
4568
  if (cleanValue.indexOf(":") >= 0) {
4719
4569
  cleanValue = cleanValue.split(":")[0];
4720
4570
  }