@aws-sdk/client-lakeformation 3.312.0 → 3.315.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.
@@ -13,11 +13,11 @@ const se_AddLFTagsToResourceCommand = async (input, context) => {
13
13
  };
14
14
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AddLFTagsToResource";
15
15
  let body;
16
- body = JSON.stringify({
17
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
18
- ...(input.LFTags != null && { LFTags: se_LFTagsList(input.LFTags, context) }),
19
- ...(input.Resource != null && { Resource: se_Resource(input.Resource, context) }),
20
- });
16
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
17
+ CatalogId: [],
18
+ LFTags: (_) => (0, smithy_client_1._json)(_),
19
+ Resource: (_) => (0, smithy_client_1._json)(_),
20
+ }));
21
21
  return new protocol_http_1.HttpRequest({
22
22
  protocol,
23
23
  hostname,
@@ -36,12 +36,12 @@ const se_AssumeDecoratedRoleWithSAMLCommand = async (input, context) => {
36
36
  };
37
37
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssumeDecoratedRoleWithSAML";
38
38
  let body;
39
- body = JSON.stringify({
40
- ...(input.DurationSeconds != null && { DurationSeconds: input.DurationSeconds }),
41
- ...(input.PrincipalArn != null && { PrincipalArn: input.PrincipalArn }),
42
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
43
- ...(input.SAMLAssertion != null && { SAMLAssertion: input.SAMLAssertion }),
44
- });
39
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
40
+ DurationSeconds: [],
41
+ PrincipalArn: [],
42
+ RoleArn: [],
43
+ SAMLAssertion: [],
44
+ }));
45
45
  return new protocol_http_1.HttpRequest({
46
46
  protocol,
47
47
  hostname,
@@ -60,10 +60,10 @@ const se_BatchGrantPermissionsCommand = async (input, context) => {
60
60
  };
61
61
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGrantPermissions";
62
62
  let body;
63
- body = JSON.stringify({
64
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
65
- ...(input.Entries != null && { Entries: se_BatchPermissionsRequestEntryList(input.Entries, context) }),
66
- });
63
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
64
+ CatalogId: [],
65
+ Entries: (_) => (0, smithy_client_1._json)(_),
66
+ }));
67
67
  return new protocol_http_1.HttpRequest({
68
68
  protocol,
69
69
  hostname,
@@ -82,10 +82,10 @@ const se_BatchRevokePermissionsCommand = async (input, context) => {
82
82
  };
83
83
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchRevokePermissions";
84
84
  let body;
85
- body = JSON.stringify({
86
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
87
- ...(input.Entries != null && { Entries: se_BatchPermissionsRequestEntryList(input.Entries, context) }),
88
- });
85
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
86
+ CatalogId: [],
87
+ Entries: (_) => (0, smithy_client_1._json)(_),
88
+ }));
89
89
  return new protocol_http_1.HttpRequest({
90
90
  protocol,
91
91
  hostname,
@@ -104,9 +104,9 @@ const se_CancelTransactionCommand = async (input, context) => {
104
104
  };
105
105
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelTransaction";
106
106
  let body;
107
- body = JSON.stringify({
108
- ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
109
- });
107
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
108
+ TransactionId: [],
109
+ }));
110
110
  return new protocol_http_1.HttpRequest({
111
111
  protocol,
112
112
  hostname,
@@ -125,9 +125,9 @@ const se_CommitTransactionCommand = async (input, context) => {
125
125
  };
126
126
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CommitTransaction";
127
127
  let body;
128
- body = JSON.stringify({
129
- ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
130
- });
128
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
129
+ TransactionId: [],
130
+ }));
131
131
  return new protocol_http_1.HttpRequest({
132
132
  protocol,
133
133
  hostname,
@@ -146,9 +146,9 @@ const se_CreateDataCellsFilterCommand = async (input, context) => {
146
146
  };
147
147
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateDataCellsFilter";
148
148
  let body;
149
- body = JSON.stringify({
150
- ...(input.TableData != null && { TableData: se_DataCellsFilter(input.TableData, context) }),
151
- });
149
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
150
+ TableData: (_) => (0, smithy_client_1._json)(_),
151
+ }));
152
152
  return new protocol_http_1.HttpRequest({
153
153
  protocol,
154
154
  hostname,
@@ -167,11 +167,11 @@ const se_CreateLFTagCommand = async (input, context) => {
167
167
  };
168
168
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLFTag";
169
169
  let body;
170
- body = JSON.stringify({
171
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
172
- ...(input.TagKey != null && { TagKey: input.TagKey }),
173
- ...(input.TagValues != null && { TagValues: se_TagValueList(input.TagValues, context) }),
174
- });
170
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
171
+ CatalogId: [],
172
+ TagKey: [],
173
+ TagValues: (_) => (0, smithy_client_1._json)(_),
174
+ }));
175
175
  return new protocol_http_1.HttpRequest({
176
176
  protocol,
177
177
  hostname,
@@ -190,12 +190,12 @@ const se_DeleteDataCellsFilterCommand = async (input, context) => {
190
190
  };
191
191
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteDataCellsFilter";
192
192
  let body;
193
- body = JSON.stringify({
194
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
195
- ...(input.Name != null && { Name: input.Name }),
196
- ...(input.TableCatalogId != null && { TableCatalogId: input.TableCatalogId }),
197
- ...(input.TableName != null && { TableName: input.TableName }),
198
- });
193
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
194
+ DatabaseName: [],
195
+ Name: [],
196
+ TableCatalogId: [],
197
+ TableName: [],
198
+ }));
199
199
  return new protocol_http_1.HttpRequest({
200
200
  protocol,
201
201
  hostname,
@@ -214,10 +214,10 @@ const se_DeleteLFTagCommand = async (input, context) => {
214
214
  };
215
215
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLFTag";
216
216
  let body;
217
- body = JSON.stringify({
218
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
219
- ...(input.TagKey != null && { TagKey: input.TagKey }),
220
- });
217
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
218
+ CatalogId: [],
219
+ TagKey: [],
220
+ }));
221
221
  return new protocol_http_1.HttpRequest({
222
222
  protocol,
223
223
  hostname,
@@ -236,13 +236,13 @@ const se_DeleteObjectsOnCancelCommand = async (input, context) => {
236
236
  };
237
237
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteObjectsOnCancel";
238
238
  let body;
239
- body = JSON.stringify({
240
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
241
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
242
- ...(input.Objects != null && { Objects: se_VirtualObjectList(input.Objects, context) }),
243
- ...(input.TableName != null && { TableName: input.TableName }),
244
- ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
245
- });
239
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
240
+ CatalogId: [],
241
+ DatabaseName: [],
242
+ Objects: (_) => (0, smithy_client_1._json)(_),
243
+ TableName: [],
244
+ TransactionId: [],
245
+ }));
246
246
  return new protocol_http_1.HttpRequest({
247
247
  protocol,
248
248
  hostname,
@@ -261,9 +261,9 @@ const se_DeregisterResourceCommand = async (input, context) => {
261
261
  };
262
262
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeregisterResource";
263
263
  let body;
264
- body = JSON.stringify({
265
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
266
- });
264
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
265
+ ResourceArn: [],
266
+ }));
267
267
  return new protocol_http_1.HttpRequest({
268
268
  protocol,
269
269
  hostname,
@@ -282,9 +282,9 @@ const se_DescribeResourceCommand = async (input, context) => {
282
282
  };
283
283
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeResource";
284
284
  let body;
285
- body = JSON.stringify({
286
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
287
- });
285
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
286
+ ResourceArn: [],
287
+ }));
288
288
  return new protocol_http_1.HttpRequest({
289
289
  protocol,
290
290
  hostname,
@@ -303,9 +303,9 @@ const se_DescribeTransactionCommand = async (input, context) => {
303
303
  };
304
304
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeTransaction";
305
305
  let body;
306
- body = JSON.stringify({
307
- ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
308
- });
306
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
307
+ TransactionId: [],
308
+ }));
309
309
  return new protocol_http_1.HttpRequest({
310
310
  protocol,
311
311
  hostname,
@@ -324,9 +324,9 @@ const se_ExtendTransactionCommand = async (input, context) => {
324
324
  };
325
325
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ExtendTransaction";
326
326
  let body;
327
- body = JSON.stringify({
328
- ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
329
- });
327
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
328
+ TransactionId: [],
329
+ }));
330
330
  return new protocol_http_1.HttpRequest({
331
331
  protocol,
332
332
  hostname,
@@ -345,12 +345,12 @@ const se_GetDataCellsFilterCommand = async (input, context) => {
345
345
  };
346
346
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDataCellsFilter";
347
347
  let body;
348
- body = JSON.stringify({
349
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
350
- ...(input.Name != null && { Name: input.Name }),
351
- ...(input.TableCatalogId != null && { TableCatalogId: input.TableCatalogId }),
352
- ...(input.TableName != null && { TableName: input.TableName }),
353
- });
348
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
349
+ DatabaseName: [],
350
+ Name: [],
351
+ TableCatalogId: [],
352
+ TableName: [],
353
+ }));
354
354
  return new protocol_http_1.HttpRequest({
355
355
  protocol,
356
356
  hostname,
@@ -369,9 +369,9 @@ const se_GetDataLakeSettingsCommand = async (input, context) => {
369
369
  };
370
370
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDataLakeSettings";
371
371
  let body;
372
- body = JSON.stringify({
373
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
374
- });
372
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
373
+ CatalogId: [],
374
+ }));
375
375
  return new protocol_http_1.HttpRequest({
376
376
  protocol,
377
377
  hostname,
@@ -390,12 +390,12 @@ const se_GetEffectivePermissionsForPathCommand = async (input, context) => {
390
390
  };
391
391
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetEffectivePermissionsForPath";
392
392
  let body;
393
- body = JSON.stringify({
394
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
395
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
396
- ...(input.NextToken != null && { NextToken: input.NextToken }),
397
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
398
- });
393
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
394
+ CatalogId: [],
395
+ MaxResults: [],
396
+ NextToken: [],
397
+ ResourceArn: [],
398
+ }));
399
399
  return new protocol_http_1.HttpRequest({
400
400
  protocol,
401
401
  hostname,
@@ -414,10 +414,10 @@ const se_GetLFTagCommand = async (input, context) => {
414
414
  };
415
415
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLFTag";
416
416
  let body;
417
- body = JSON.stringify({
418
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
419
- ...(input.TagKey != null && { TagKey: input.TagKey }),
420
- });
417
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
418
+ CatalogId: [],
419
+ TagKey: [],
420
+ }));
421
421
  return new protocol_http_1.HttpRequest({
422
422
  protocol,
423
423
  hostname,
@@ -436,9 +436,9 @@ const se_GetQueryStateCommand = async (input, context) => {
436
436
  };
437
437
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetQueryState";
438
438
  let body;
439
- body = JSON.stringify({
440
- ...(input.QueryId != null && { QueryId: input.QueryId }),
441
- });
439
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
440
+ QueryId: [],
441
+ }));
442
442
  let { hostname: resolvedHostname } = await context.endpoint();
443
443
  if (context.disableHostPrefix !== true) {
444
444
  resolvedHostname = "query-" + resolvedHostname;
@@ -464,9 +464,9 @@ const se_GetQueryStatisticsCommand = async (input, context) => {
464
464
  };
465
465
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetQueryStatistics";
466
466
  let body;
467
- body = JSON.stringify({
468
- ...(input.QueryId != null && { QueryId: input.QueryId }),
469
- });
467
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
468
+ QueryId: [],
469
+ }));
470
470
  let { hostname: resolvedHostname } = await context.endpoint();
471
471
  if (context.disableHostPrefix !== true) {
472
472
  resolvedHostname = "query-" + resolvedHostname;
@@ -492,11 +492,11 @@ const se_GetResourceLFTagsCommand = async (input, context) => {
492
492
  };
493
493
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetResourceLFTags";
494
494
  let body;
495
- body = JSON.stringify({
496
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
497
- ...(input.Resource != null && { Resource: se_Resource(input.Resource, context) }),
498
- ...(input.ShowAssignedLFTags != null && { ShowAssignedLFTags: input.ShowAssignedLFTags }),
499
- });
495
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
496
+ CatalogId: [],
497
+ Resource: (_) => (0, smithy_client_1._json)(_),
498
+ ShowAssignedLFTags: [],
499
+ }));
500
500
  return new protocol_http_1.HttpRequest({
501
501
  protocol,
502
502
  hostname,
@@ -515,16 +515,16 @@ const se_GetTableObjectsCommand = async (input, context) => {
515
515
  };
516
516
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTableObjects";
517
517
  let body;
518
- body = JSON.stringify({
519
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
520
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
521
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
522
- ...(input.NextToken != null && { NextToken: input.NextToken }),
523
- ...(input.PartitionPredicate != null && { PartitionPredicate: input.PartitionPredicate }),
524
- ...(input.QueryAsOfTime != null && { QueryAsOfTime: Math.round(input.QueryAsOfTime.getTime() / 1000) }),
525
- ...(input.TableName != null && { TableName: input.TableName }),
526
- ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
527
- });
518
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
519
+ CatalogId: [],
520
+ DatabaseName: [],
521
+ MaxResults: [],
522
+ NextToken: [],
523
+ PartitionPredicate: [],
524
+ QueryAsOfTime: (_) => Math.round(_.getTime() / 1000),
525
+ TableName: [],
526
+ TransactionId: [],
527
+ }));
528
528
  return new protocol_http_1.HttpRequest({
529
529
  protocol,
530
530
  hostname,
@@ -543,16 +543,14 @@ const se_GetTemporaryGluePartitionCredentialsCommand = async (input, context) =>
543
543
  };
544
544
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGluePartitionCredentials";
545
545
  let body;
546
- body = JSON.stringify({
547
- ...(input.AuditContext != null && { AuditContext: se_AuditContext(input.AuditContext, context) }),
548
- ...(input.DurationSeconds != null && { DurationSeconds: input.DurationSeconds }),
549
- ...(input.Partition != null && { Partition: se_PartitionValueList(input.Partition, context) }),
550
- ...(input.Permissions != null && { Permissions: se_PermissionList(input.Permissions, context) }),
551
- ...(input.SupportedPermissionTypes != null && {
552
- SupportedPermissionTypes: se_PermissionTypeList(input.SupportedPermissionTypes, context),
553
- }),
554
- ...(input.TableArn != null && { TableArn: input.TableArn }),
555
- });
546
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
547
+ AuditContext: (_) => (0, smithy_client_1._json)(_),
548
+ DurationSeconds: [],
549
+ Partition: (_) => (0, smithy_client_1._json)(_),
550
+ Permissions: (_) => (0, smithy_client_1._json)(_),
551
+ SupportedPermissionTypes: (_) => (0, smithy_client_1._json)(_),
552
+ TableArn: [],
553
+ }));
556
554
  return new protocol_http_1.HttpRequest({
557
555
  protocol,
558
556
  hostname,
@@ -571,15 +569,13 @@ const se_GetTemporaryGlueTableCredentialsCommand = async (input, context) => {
571
569
  };
572
570
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGlueTableCredentials";
573
571
  let body;
574
- body = JSON.stringify({
575
- ...(input.AuditContext != null && { AuditContext: se_AuditContext(input.AuditContext, context) }),
576
- ...(input.DurationSeconds != null && { DurationSeconds: input.DurationSeconds }),
577
- ...(input.Permissions != null && { Permissions: se_PermissionList(input.Permissions, context) }),
578
- ...(input.SupportedPermissionTypes != null && {
579
- SupportedPermissionTypes: se_PermissionTypeList(input.SupportedPermissionTypes, context),
580
- }),
581
- ...(input.TableArn != null && { TableArn: input.TableArn }),
582
- });
572
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
573
+ AuditContext: (_) => (0, smithy_client_1._json)(_),
574
+ DurationSeconds: [],
575
+ Permissions: (_) => (0, smithy_client_1._json)(_),
576
+ SupportedPermissionTypes: (_) => (0, smithy_client_1._json)(_),
577
+ TableArn: [],
578
+ }));
583
579
  return new protocol_http_1.HttpRequest({
584
580
  protocol,
585
581
  hostname,
@@ -598,11 +594,11 @@ const se_GetWorkUnitResultsCommand = async (input, context) => {
598
594
  };
599
595
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkUnitResults";
600
596
  let body;
601
- body = JSON.stringify({
602
- ...(input.QueryId != null && { QueryId: input.QueryId }),
603
- ...(input.WorkUnitId != null && { WorkUnitId: input.WorkUnitId }),
604
- ...(input.WorkUnitToken != null && { WorkUnitToken: input.WorkUnitToken }),
605
- });
597
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
598
+ QueryId: [],
599
+ WorkUnitId: [],
600
+ WorkUnitToken: [],
601
+ }));
606
602
  let { hostname: resolvedHostname } = await context.endpoint();
607
603
  if (context.disableHostPrefix !== true) {
608
604
  resolvedHostname = "data-" + resolvedHostname;
@@ -628,11 +624,11 @@ const se_GetWorkUnitsCommand = async (input, context) => {
628
624
  };
629
625
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkUnits";
630
626
  let body;
631
- body = JSON.stringify({
632
- ...(input.NextToken != null && { NextToken: input.NextToken }),
633
- ...(input.PageSize != null && { PageSize: input.PageSize }),
634
- ...(input.QueryId != null && { QueryId: input.QueryId }),
635
- });
627
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
628
+ NextToken: [],
629
+ PageSize: [],
630
+ QueryId: [],
631
+ }));
636
632
  let { hostname: resolvedHostname } = await context.endpoint();
637
633
  if (context.disableHostPrefix !== true) {
638
634
  resolvedHostname = "query-" + resolvedHostname;
@@ -658,15 +654,13 @@ const se_GrantPermissionsCommand = async (input, context) => {
658
654
  };
659
655
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GrantPermissions";
660
656
  let body;
661
- body = JSON.stringify({
662
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
663
- ...(input.Permissions != null && { Permissions: se_PermissionList(input.Permissions, context) }),
664
- ...(input.PermissionsWithGrantOption != null && {
665
- PermissionsWithGrantOption: se_PermissionList(input.PermissionsWithGrantOption, context),
666
- }),
667
- ...(input.Principal != null && { Principal: se_DataLakePrincipal(input.Principal, context) }),
668
- ...(input.Resource != null && { Resource: se_Resource(input.Resource, context) }),
669
- });
657
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
658
+ CatalogId: [],
659
+ Permissions: (_) => (0, smithy_client_1._json)(_),
660
+ PermissionsWithGrantOption: (_) => (0, smithy_client_1._json)(_),
661
+ Principal: (_) => (0, smithy_client_1._json)(_),
662
+ Resource: (_) => (0, smithy_client_1._json)(_),
663
+ }));
670
664
  return new protocol_http_1.HttpRequest({
671
665
  protocol,
672
666
  hostname,
@@ -685,11 +679,11 @@ const se_ListDataCellsFilterCommand = async (input, context) => {
685
679
  };
686
680
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListDataCellsFilter";
687
681
  let body;
688
- body = JSON.stringify({
689
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
690
- ...(input.NextToken != null && { NextToken: input.NextToken }),
691
- ...(input.Table != null && { Table: se_TableResource(input.Table, context) }),
692
- });
682
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
683
+ MaxResults: [],
684
+ NextToken: [],
685
+ Table: (_) => (0, smithy_client_1._json)(_),
686
+ }));
693
687
  return new protocol_http_1.HttpRequest({
694
688
  protocol,
695
689
  hostname,
@@ -708,12 +702,12 @@ const se_ListLFTagsCommand = async (input, context) => {
708
702
  };
709
703
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLFTags";
710
704
  let body;
711
- body = JSON.stringify({
712
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
713
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
714
- ...(input.NextToken != null && { NextToken: input.NextToken }),
715
- ...(input.ResourceShareType != null && { ResourceShareType: input.ResourceShareType }),
716
- });
705
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
706
+ CatalogId: [],
707
+ MaxResults: [],
708
+ NextToken: [],
709
+ ResourceShareType: [],
710
+ }));
717
711
  return new protocol_http_1.HttpRequest({
718
712
  protocol,
719
713
  hostname,
@@ -732,15 +726,15 @@ const se_ListPermissionsCommand = async (input, context) => {
732
726
  };
733
727
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListPermissions";
734
728
  let body;
735
- body = JSON.stringify({
736
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
737
- ...(input.IncludeRelated != null && { IncludeRelated: input.IncludeRelated }),
738
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
739
- ...(input.NextToken != null && { NextToken: input.NextToken }),
740
- ...(input.Principal != null && { Principal: se_DataLakePrincipal(input.Principal, context) }),
741
- ...(input.Resource != null && { Resource: se_Resource(input.Resource, context) }),
742
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
743
- });
729
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
730
+ CatalogId: [],
731
+ IncludeRelated: [],
732
+ MaxResults: [],
733
+ NextToken: [],
734
+ Principal: (_) => (0, smithy_client_1._json)(_),
735
+ Resource: (_) => (0, smithy_client_1._json)(_),
736
+ ResourceType: [],
737
+ }));
744
738
  return new protocol_http_1.HttpRequest({
745
739
  protocol,
746
740
  hostname,
@@ -759,13 +753,11 @@ const se_ListResourcesCommand = async (input, context) => {
759
753
  };
760
754
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListResources";
761
755
  let body;
762
- body = JSON.stringify({
763
- ...(input.FilterConditionList != null && {
764
- FilterConditionList: se_FilterConditionList(input.FilterConditionList, context),
765
- }),
766
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
767
- ...(input.NextToken != null && { NextToken: input.NextToken }),
768
- });
756
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
757
+ FilterConditionList: (_) => (0, smithy_client_1._json)(_),
758
+ MaxResults: [],
759
+ NextToken: [],
760
+ }));
769
761
  return new protocol_http_1.HttpRequest({
770
762
  protocol,
771
763
  hostname,
@@ -784,14 +776,14 @@ const se_ListTableStorageOptimizersCommand = async (input, context) => {
784
776
  };
785
777
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTableStorageOptimizers";
786
778
  let body;
787
- body = JSON.stringify({
788
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
789
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
790
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
791
- ...(input.NextToken != null && { NextToken: input.NextToken }),
792
- ...(input.StorageOptimizerType != null && { StorageOptimizerType: input.StorageOptimizerType }),
793
- ...(input.TableName != null && { TableName: input.TableName }),
794
- });
779
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
780
+ CatalogId: [],
781
+ DatabaseName: [],
782
+ MaxResults: [],
783
+ NextToken: [],
784
+ StorageOptimizerType: [],
785
+ TableName: [],
786
+ }));
795
787
  return new protocol_http_1.HttpRequest({
796
788
  protocol,
797
789
  hostname,
@@ -810,12 +802,12 @@ const se_ListTransactionsCommand = async (input, context) => {
810
802
  };
811
803
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTransactions";
812
804
  let body;
813
- body = JSON.stringify({
814
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
815
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
816
- ...(input.NextToken != null && { NextToken: input.NextToken }),
817
- ...(input.StatusFilter != null && { StatusFilter: input.StatusFilter }),
818
- });
805
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
806
+ CatalogId: [],
807
+ MaxResults: [],
808
+ NextToken: [],
809
+ StatusFilter: [],
810
+ }));
819
811
  return new protocol_http_1.HttpRequest({
820
812
  protocol,
821
813
  hostname,
@@ -834,10 +826,10 @@ const se_PutDataLakeSettingsCommand = async (input, context) => {
834
826
  };
835
827
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutDataLakeSettings";
836
828
  let body;
837
- body = JSON.stringify({
838
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
839
- ...(input.DataLakeSettings != null && { DataLakeSettings: se_DataLakeSettings(input.DataLakeSettings, context) }),
840
- });
829
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
830
+ CatalogId: [],
831
+ DataLakeSettings: (_) => (0, smithy_client_1._json)(_),
832
+ }));
841
833
  return new protocol_http_1.HttpRequest({
842
834
  protocol,
843
835
  hostname,
@@ -856,12 +848,12 @@ const se_RegisterResourceCommand = async (input, context) => {
856
848
  };
857
849
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RegisterResource";
858
850
  let body;
859
- body = JSON.stringify({
860
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
861
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
862
- ...(input.UseServiceLinkedRole != null && { UseServiceLinkedRole: input.UseServiceLinkedRole }),
863
- ...(input.WithFederation != null && { WithFederation: input.WithFederation }),
864
- });
851
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
852
+ ResourceArn: [],
853
+ RoleArn: [],
854
+ UseServiceLinkedRole: [],
855
+ WithFederation: [],
856
+ }));
865
857
  return new protocol_http_1.HttpRequest({
866
858
  protocol,
867
859
  hostname,
@@ -880,11 +872,11 @@ const se_RemoveLFTagsFromResourceCommand = async (input, context) => {
880
872
  };
881
873
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveLFTagsFromResource";
882
874
  let body;
883
- body = JSON.stringify({
884
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
885
- ...(input.LFTags != null && { LFTags: se_LFTagsList(input.LFTags, context) }),
886
- ...(input.Resource != null && { Resource: se_Resource(input.Resource, context) }),
887
- });
875
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
876
+ CatalogId: [],
877
+ LFTags: (_) => (0, smithy_client_1._json)(_),
878
+ Resource: (_) => (0, smithy_client_1._json)(_),
879
+ }));
888
880
  return new protocol_http_1.HttpRequest({
889
881
  protocol,
890
882
  hostname,
@@ -903,15 +895,13 @@ const se_RevokePermissionsCommand = async (input, context) => {
903
895
  };
904
896
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RevokePermissions";
905
897
  let body;
906
- body = JSON.stringify({
907
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
908
- ...(input.Permissions != null && { Permissions: se_PermissionList(input.Permissions, context) }),
909
- ...(input.PermissionsWithGrantOption != null && {
910
- PermissionsWithGrantOption: se_PermissionList(input.PermissionsWithGrantOption, context),
911
- }),
912
- ...(input.Principal != null && { Principal: se_DataLakePrincipal(input.Principal, context) }),
913
- ...(input.Resource != null && { Resource: se_Resource(input.Resource, context) }),
914
- });
898
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
899
+ CatalogId: [],
900
+ Permissions: (_) => (0, smithy_client_1._json)(_),
901
+ PermissionsWithGrantOption: (_) => (0, smithy_client_1._json)(_),
902
+ Principal: (_) => (0, smithy_client_1._json)(_),
903
+ Resource: (_) => (0, smithy_client_1._json)(_),
904
+ }));
915
905
  return new protocol_http_1.HttpRequest({
916
906
  protocol,
917
907
  hostname,
@@ -930,12 +920,12 @@ const se_SearchDatabasesByLFTagsCommand = async (input, context) => {
930
920
  };
931
921
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SearchDatabasesByLFTags";
932
922
  let body;
933
- body = JSON.stringify({
934
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
935
- ...(input.Expression != null && { Expression: se_Expression(input.Expression, context) }),
936
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
937
- ...(input.NextToken != null && { NextToken: input.NextToken }),
938
- });
923
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
924
+ CatalogId: [],
925
+ Expression: (_) => (0, smithy_client_1._json)(_),
926
+ MaxResults: [],
927
+ NextToken: [],
928
+ }));
939
929
  return new protocol_http_1.HttpRequest({
940
930
  protocol,
941
931
  hostname,
@@ -954,12 +944,12 @@ const se_SearchTablesByLFTagsCommand = async (input, context) => {
954
944
  };
955
945
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SearchTablesByLFTags";
956
946
  let body;
957
- body = JSON.stringify({
958
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
959
- ...(input.Expression != null && { Expression: se_Expression(input.Expression, context) }),
960
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
961
- ...(input.NextToken != null && { NextToken: input.NextToken }),
962
- });
947
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
948
+ CatalogId: [],
949
+ Expression: (_) => (0, smithy_client_1._json)(_),
950
+ MaxResults: [],
951
+ NextToken: [],
952
+ }));
963
953
  return new protocol_http_1.HttpRequest({
964
954
  protocol,
965
955
  hostname,
@@ -978,12 +968,10 @@ const se_StartQueryPlanningCommand = async (input, context) => {
978
968
  };
979
969
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartQueryPlanning";
980
970
  let body;
981
- body = JSON.stringify({
982
- ...(input.QueryPlanningContext != null && {
983
- QueryPlanningContext: se_QueryPlanningContext(input.QueryPlanningContext, context),
984
- }),
985
- ...(input.QueryString != null && { QueryString: input.QueryString }),
986
- });
971
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
972
+ QueryPlanningContext: (_) => se_QueryPlanningContext(_, context),
973
+ QueryString: [],
974
+ }));
987
975
  let { hostname: resolvedHostname } = await context.endpoint();
988
976
  if (context.disableHostPrefix !== true) {
989
977
  resolvedHostname = "query-" + resolvedHostname;
@@ -1009,9 +997,9 @@ const se_StartTransactionCommand = async (input, context) => {
1009
997
  };
1010
998
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartTransaction";
1011
999
  let body;
1012
- body = JSON.stringify({
1013
- ...(input.TransactionType != null && { TransactionType: input.TransactionType }),
1014
- });
1000
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1001
+ TransactionType: [],
1002
+ }));
1015
1003
  return new protocol_http_1.HttpRequest({
1016
1004
  protocol,
1017
1005
  hostname,
@@ -1030,9 +1018,9 @@ const se_UpdateDataCellsFilterCommand = async (input, context) => {
1030
1018
  };
1031
1019
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateDataCellsFilter";
1032
1020
  let body;
1033
- body = JSON.stringify({
1034
- ...(input.TableData != null && { TableData: se_DataCellsFilter(input.TableData, context) }),
1035
- });
1021
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1022
+ TableData: (_) => (0, smithy_client_1._json)(_),
1023
+ }));
1036
1024
  return new protocol_http_1.HttpRequest({
1037
1025
  protocol,
1038
1026
  hostname,
@@ -1051,12 +1039,12 @@ const se_UpdateLFTagCommand = async (input, context) => {
1051
1039
  };
1052
1040
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLFTag";
1053
1041
  let body;
1054
- body = JSON.stringify({
1055
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
1056
- ...(input.TagKey != null && { TagKey: input.TagKey }),
1057
- ...(input.TagValuesToAdd != null && { TagValuesToAdd: se_TagValueList(input.TagValuesToAdd, context) }),
1058
- ...(input.TagValuesToDelete != null && { TagValuesToDelete: se_TagValueList(input.TagValuesToDelete, context) }),
1059
- });
1042
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1043
+ CatalogId: [],
1044
+ TagKey: [],
1045
+ TagValuesToAdd: (_) => (0, smithy_client_1._json)(_),
1046
+ TagValuesToDelete: (_) => (0, smithy_client_1._json)(_),
1047
+ }));
1060
1048
  return new protocol_http_1.HttpRequest({
1061
1049
  protocol,
1062
1050
  hostname,
@@ -1075,11 +1063,11 @@ const se_UpdateResourceCommand = async (input, context) => {
1075
1063
  };
1076
1064
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateResource";
1077
1065
  let body;
1078
- body = JSON.stringify({
1079
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1080
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1081
- ...(input.WithFederation != null && { WithFederation: input.WithFederation }),
1082
- });
1066
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1067
+ ResourceArn: [],
1068
+ RoleArn: [],
1069
+ WithFederation: [],
1070
+ }));
1083
1071
  return new protocol_http_1.HttpRequest({
1084
1072
  protocol,
1085
1073
  hostname,
@@ -1098,13 +1086,13 @@ const se_UpdateTableObjectsCommand = async (input, context) => {
1098
1086
  };
1099
1087
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateTableObjects";
1100
1088
  let body;
1101
- body = JSON.stringify({
1102
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
1103
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1104
- ...(input.TableName != null && { TableName: input.TableName }),
1105
- ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
1106
- ...(input.WriteOperations != null && { WriteOperations: se_WriteOperationList(input.WriteOperations, context) }),
1107
- });
1089
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1090
+ CatalogId: [],
1091
+ DatabaseName: [],
1092
+ TableName: [],
1093
+ TransactionId: [],
1094
+ WriteOperations: (_) => (0, smithy_client_1._json)(_),
1095
+ }));
1108
1096
  return new protocol_http_1.HttpRequest({
1109
1097
  protocol,
1110
1098
  hostname,
@@ -1123,14 +1111,12 @@ const se_UpdateTableStorageOptimizerCommand = async (input, context) => {
1123
1111
  };
1124
1112
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateTableStorageOptimizer";
1125
1113
  let body;
1126
- body = JSON.stringify({
1127
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
1128
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1129
- ...(input.StorageOptimizerConfig != null && {
1130
- StorageOptimizerConfig: se_StorageOptimizerConfigMap(input.StorageOptimizerConfig, context),
1131
- }),
1132
- ...(input.TableName != null && { TableName: input.TableName }),
1133
- });
1114
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1115
+ CatalogId: [],
1116
+ DatabaseName: [],
1117
+ StorageOptimizerConfig: (_) => (0, smithy_client_1._json)(_),
1118
+ TableName: [],
1119
+ }));
1134
1120
  return new protocol_http_1.HttpRequest({
1135
1121
  protocol,
1136
1122
  hostname,
@@ -1146,13 +1132,14 @@ const de_AddLFTagsToResourceCommand = async (output, context) => {
1146
1132
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1147
1133
  return de_AddLFTagsToResourceCommandError(output, context);
1148
1134
  }
1149
- const contents = map({
1135
+ const contents = (0, smithy_client_1.map)({
1150
1136
  $metadata: deserializeMetadata(output),
1151
1137
  });
1152
1138
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1153
- if (data.Failures != null) {
1154
- contents.Failures = de_LFTagErrors(data.Failures, context);
1155
- }
1139
+ const doc = (0, smithy_client_1.take)(data, {
1140
+ Failures: smithy_client_1._json,
1141
+ });
1142
+ Object.assign(contents, doc);
1156
1143
  return contents;
1157
1144
  };
1158
1145
  exports.de_AddLFTagsToResourceCommand = de_AddLFTagsToResourceCommand;
@@ -1183,10 +1170,9 @@ const de_AddLFTagsToResourceCommandError = async (output, context) => {
1183
1170
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1184
1171
  default:
1185
1172
  const parsedBody = parsedOutput.body;
1186
- (0, smithy_client_1.throwDefaultError)({
1173
+ return throwDefaultError({
1187
1174
  output,
1188
1175
  parsedBody,
1189
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1190
1176
  errorCode,
1191
1177
  });
1192
1178
  }
@@ -1195,22 +1181,17 @@ const de_AssumeDecoratedRoleWithSAMLCommand = async (output, context) => {
1195
1181
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1196
1182
  return de_AssumeDecoratedRoleWithSAMLCommandError(output, context);
1197
1183
  }
1198
- const contents = map({
1184
+ const contents = (0, smithy_client_1.map)({
1199
1185
  $metadata: deserializeMetadata(output),
1200
1186
  });
1201
1187
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1202
- if (data.AccessKeyId != null) {
1203
- contents.AccessKeyId = (0, smithy_client_1.expectString)(data.AccessKeyId);
1204
- }
1205
- if (data.Expiration != null) {
1206
- contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.Expiration)));
1207
- }
1208
- if (data.SecretAccessKey != null) {
1209
- contents.SecretAccessKey = (0, smithy_client_1.expectString)(data.SecretAccessKey);
1210
- }
1211
- if (data.SessionToken != null) {
1212
- contents.SessionToken = (0, smithy_client_1.expectString)(data.SessionToken);
1213
- }
1188
+ const doc = (0, smithy_client_1.take)(data, {
1189
+ AccessKeyId: smithy_client_1.expectString,
1190
+ Expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1191
+ SecretAccessKey: smithy_client_1.expectString,
1192
+ SessionToken: smithy_client_1.expectString,
1193
+ });
1194
+ Object.assign(contents, doc);
1214
1195
  return contents;
1215
1196
  };
1216
1197
  exports.de_AssumeDecoratedRoleWithSAMLCommand = de_AssumeDecoratedRoleWithSAMLCommand;
@@ -1238,10 +1219,9 @@ const de_AssumeDecoratedRoleWithSAMLCommandError = async (output, context) => {
1238
1219
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1239
1220
  default:
1240
1221
  const parsedBody = parsedOutput.body;
1241
- (0, smithy_client_1.throwDefaultError)({
1222
+ return throwDefaultError({
1242
1223
  output,
1243
1224
  parsedBody,
1244
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1245
1225
  errorCode,
1246
1226
  });
1247
1227
  }
@@ -1250,13 +1230,14 @@ const de_BatchGrantPermissionsCommand = async (output, context) => {
1250
1230
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1251
1231
  return de_BatchGrantPermissionsCommandError(output, context);
1252
1232
  }
1253
- const contents = map({
1233
+ const contents = (0, smithy_client_1.map)({
1254
1234
  $metadata: deserializeMetadata(output),
1255
1235
  });
1256
1236
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1257
- if (data.Failures != null) {
1258
- contents.Failures = de_BatchPermissionsFailureList(data.Failures, context);
1259
- }
1237
+ const doc = (0, smithy_client_1.take)(data, {
1238
+ Failures: smithy_client_1._json,
1239
+ });
1240
+ Object.assign(contents, doc);
1260
1241
  return contents;
1261
1242
  };
1262
1243
  exports.de_BatchGrantPermissionsCommand = de_BatchGrantPermissionsCommand;
@@ -1275,10 +1256,9 @@ const de_BatchGrantPermissionsCommandError = async (output, context) => {
1275
1256
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1276
1257
  default:
1277
1258
  const parsedBody = parsedOutput.body;
1278
- (0, smithy_client_1.throwDefaultError)({
1259
+ return throwDefaultError({
1279
1260
  output,
1280
1261
  parsedBody,
1281
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1282
1262
  errorCode,
1283
1263
  });
1284
1264
  }
@@ -1287,13 +1267,14 @@ const de_BatchRevokePermissionsCommand = async (output, context) => {
1287
1267
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1288
1268
  return de_BatchRevokePermissionsCommandError(output, context);
1289
1269
  }
1290
- const contents = map({
1270
+ const contents = (0, smithy_client_1.map)({
1291
1271
  $metadata: deserializeMetadata(output),
1292
1272
  });
1293
1273
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1294
- if (data.Failures != null) {
1295
- contents.Failures = de_BatchPermissionsFailureList(data.Failures, context);
1296
- }
1274
+ const doc = (0, smithy_client_1.take)(data, {
1275
+ Failures: smithy_client_1._json,
1276
+ });
1277
+ Object.assign(contents, doc);
1297
1278
  return contents;
1298
1279
  };
1299
1280
  exports.de_BatchRevokePermissionsCommand = de_BatchRevokePermissionsCommand;
@@ -1312,10 +1293,9 @@ const de_BatchRevokePermissionsCommandError = async (output, context) => {
1312
1293
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1313
1294
  default:
1314
1295
  const parsedBody = parsedOutput.body;
1315
- (0, smithy_client_1.throwDefaultError)({
1296
+ return throwDefaultError({
1316
1297
  output,
1317
1298
  parsedBody,
1318
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1319
1299
  errorCode,
1320
1300
  });
1321
1301
  }
@@ -1324,7 +1304,7 @@ const de_CancelTransactionCommand = async (output, context) => {
1324
1304
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1325
1305
  return de_CancelTransactionCommandError(output, context);
1326
1306
  }
1327
- const contents = map({
1307
+ const contents = (0, smithy_client_1.map)({
1328
1308
  $metadata: deserializeMetadata(output),
1329
1309
  });
1330
1310
  await collectBody(output.body, context);
@@ -1361,10 +1341,9 @@ const de_CancelTransactionCommandError = async (output, context) => {
1361
1341
  throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
1362
1342
  default:
1363
1343
  const parsedBody = parsedOutput.body;
1364
- (0, smithy_client_1.throwDefaultError)({
1344
+ return throwDefaultError({
1365
1345
  output,
1366
1346
  parsedBody,
1367
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1368
1347
  errorCode,
1369
1348
  });
1370
1349
  }
@@ -1373,13 +1352,14 @@ const de_CommitTransactionCommand = async (output, context) => {
1373
1352
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1374
1353
  return de_CommitTransactionCommandError(output, context);
1375
1354
  }
1376
- const contents = map({
1355
+ const contents = (0, smithy_client_1.map)({
1377
1356
  $metadata: deserializeMetadata(output),
1378
1357
  });
1379
1358
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1380
- if (data.TransactionStatus != null) {
1381
- contents.TransactionStatus = (0, smithy_client_1.expectString)(data.TransactionStatus);
1382
- }
1359
+ const doc = (0, smithy_client_1.take)(data, {
1360
+ TransactionStatus: smithy_client_1.expectString,
1361
+ });
1362
+ Object.assign(contents, doc);
1383
1363
  return contents;
1384
1364
  };
1385
1365
  exports.de_CommitTransactionCommand = de_CommitTransactionCommand;
@@ -1410,10 +1390,9 @@ const de_CommitTransactionCommandError = async (output, context) => {
1410
1390
  throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
1411
1391
  default:
1412
1392
  const parsedBody = parsedOutput.body;
1413
- (0, smithy_client_1.throwDefaultError)({
1393
+ return throwDefaultError({
1414
1394
  output,
1415
1395
  parsedBody,
1416
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1417
1396
  errorCode,
1418
1397
  });
1419
1398
  }
@@ -1422,7 +1401,7 @@ const de_CreateDataCellsFilterCommand = async (output, context) => {
1422
1401
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1423
1402
  return de_CreateDataCellsFilterCommandError(output, context);
1424
1403
  }
1425
- const contents = map({
1404
+ const contents = (0, smithy_client_1.map)({
1426
1405
  $metadata: deserializeMetadata(output),
1427
1406
  });
1428
1407
  await collectBody(output.body, context);
@@ -1459,10 +1438,9 @@ const de_CreateDataCellsFilterCommandError = async (output, context) => {
1459
1438
  throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
1460
1439
  default:
1461
1440
  const parsedBody = parsedOutput.body;
1462
- (0, smithy_client_1.throwDefaultError)({
1441
+ return throwDefaultError({
1463
1442
  output,
1464
1443
  parsedBody,
1465
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1466
1444
  errorCode,
1467
1445
  });
1468
1446
  }
@@ -1471,7 +1449,7 @@ const de_CreateLFTagCommand = async (output, context) => {
1471
1449
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1472
1450
  return de_CreateLFTagCommandError(output, context);
1473
1451
  }
1474
- const contents = map({
1452
+ const contents = (0, smithy_client_1.map)({
1475
1453
  $metadata: deserializeMetadata(output),
1476
1454
  });
1477
1455
  await collectBody(output.body, context);
@@ -1505,10 +1483,9 @@ const de_CreateLFTagCommandError = async (output, context) => {
1505
1483
  throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
1506
1484
  default:
1507
1485
  const parsedBody = parsedOutput.body;
1508
- (0, smithy_client_1.throwDefaultError)({
1486
+ return throwDefaultError({
1509
1487
  output,
1510
1488
  parsedBody,
1511
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1512
1489
  errorCode,
1513
1490
  });
1514
1491
  }
@@ -1517,7 +1494,7 @@ const de_DeleteDataCellsFilterCommand = async (output, context) => {
1517
1494
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1518
1495
  return de_DeleteDataCellsFilterCommandError(output, context);
1519
1496
  }
1520
- const contents = map({
1497
+ const contents = (0, smithy_client_1.map)({
1521
1498
  $metadata: deserializeMetadata(output),
1522
1499
  });
1523
1500
  await collectBody(output.body, context);
@@ -1548,10 +1525,9 @@ const de_DeleteDataCellsFilterCommandError = async (output, context) => {
1548
1525
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1549
1526
  default:
1550
1527
  const parsedBody = parsedOutput.body;
1551
- (0, smithy_client_1.throwDefaultError)({
1528
+ return throwDefaultError({
1552
1529
  output,
1553
1530
  parsedBody,
1554
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1555
1531
  errorCode,
1556
1532
  });
1557
1533
  }
@@ -1560,7 +1536,7 @@ const de_DeleteLFTagCommand = async (output, context) => {
1560
1536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1561
1537
  return de_DeleteLFTagCommandError(output, context);
1562
1538
  }
1563
- const contents = map({
1539
+ const contents = (0, smithy_client_1.map)({
1564
1540
  $metadata: deserializeMetadata(output),
1565
1541
  });
1566
1542
  await collectBody(output.body, context);
@@ -1591,10 +1567,9 @@ const de_DeleteLFTagCommandError = async (output, context) => {
1591
1567
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1592
1568
  default:
1593
1569
  const parsedBody = parsedOutput.body;
1594
- (0, smithy_client_1.throwDefaultError)({
1570
+ return throwDefaultError({
1595
1571
  output,
1596
1572
  parsedBody,
1597
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1598
1573
  errorCode,
1599
1574
  });
1600
1575
  }
@@ -1603,7 +1578,7 @@ const de_DeleteObjectsOnCancelCommand = async (output, context) => {
1603
1578
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1604
1579
  return de_DeleteObjectsOnCancelCommandError(output, context);
1605
1580
  }
1606
- const contents = map({
1581
+ const contents = (0, smithy_client_1.map)({
1607
1582
  $metadata: deserializeMetadata(output),
1608
1583
  });
1609
1584
  await collectBody(output.body, context);
@@ -1643,10 +1618,9 @@ const de_DeleteObjectsOnCancelCommandError = async (output, context) => {
1643
1618
  throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
1644
1619
  default:
1645
1620
  const parsedBody = parsedOutput.body;
1646
- (0, smithy_client_1.throwDefaultError)({
1621
+ return throwDefaultError({
1647
1622
  output,
1648
1623
  parsedBody,
1649
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1650
1624
  errorCode,
1651
1625
  });
1652
1626
  }
@@ -1655,7 +1629,7 @@ const de_DeregisterResourceCommand = async (output, context) => {
1655
1629
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1656
1630
  return de_DeregisterResourceCommandError(output, context);
1657
1631
  }
1658
- const contents = map({
1632
+ const contents = (0, smithy_client_1.map)({
1659
1633
  $metadata: deserializeMetadata(output),
1660
1634
  });
1661
1635
  await collectBody(output.body, context);
@@ -1683,10 +1657,9 @@ const de_DeregisterResourceCommandError = async (output, context) => {
1683
1657
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1684
1658
  default:
1685
1659
  const parsedBody = parsedOutput.body;
1686
- (0, smithy_client_1.throwDefaultError)({
1660
+ return throwDefaultError({
1687
1661
  output,
1688
1662
  parsedBody,
1689
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1690
1663
  errorCode,
1691
1664
  });
1692
1665
  }
@@ -1695,13 +1668,14 @@ const de_DescribeResourceCommand = async (output, context) => {
1695
1668
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1696
1669
  return de_DescribeResourceCommandError(output, context);
1697
1670
  }
1698
- const contents = map({
1671
+ const contents = (0, smithy_client_1.map)({
1699
1672
  $metadata: deserializeMetadata(output),
1700
1673
  });
1701
1674
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1702
- if (data.ResourceInfo != null) {
1703
- contents.ResourceInfo = de_ResourceInfo(data.ResourceInfo, context);
1704
- }
1675
+ const doc = (0, smithy_client_1.take)(data, {
1676
+ ResourceInfo: (_) => de_ResourceInfo(_, context),
1677
+ });
1678
+ Object.assign(contents, doc);
1705
1679
  return contents;
1706
1680
  };
1707
1681
  exports.de_DescribeResourceCommand = de_DescribeResourceCommand;
@@ -1726,10 +1700,9 @@ const de_DescribeResourceCommandError = async (output, context) => {
1726
1700
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1727
1701
  default:
1728
1702
  const parsedBody = parsedOutput.body;
1729
- (0, smithy_client_1.throwDefaultError)({
1703
+ return throwDefaultError({
1730
1704
  output,
1731
1705
  parsedBody,
1732
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1733
1706
  errorCode,
1734
1707
  });
1735
1708
  }
@@ -1738,13 +1711,14 @@ const de_DescribeTransactionCommand = async (output, context) => {
1738
1711
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1739
1712
  return de_DescribeTransactionCommandError(output, context);
1740
1713
  }
1741
- const contents = map({
1714
+ const contents = (0, smithy_client_1.map)({
1742
1715
  $metadata: deserializeMetadata(output),
1743
1716
  });
1744
1717
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1745
- if (data.TransactionDescription != null) {
1746
- contents.TransactionDescription = de_TransactionDescription(data.TransactionDescription, context);
1747
- }
1718
+ const doc = (0, smithy_client_1.take)(data, {
1719
+ TransactionDescription: (_) => de_TransactionDescription(_, context),
1720
+ });
1721
+ Object.assign(contents, doc);
1748
1722
  return contents;
1749
1723
  };
1750
1724
  exports.de_DescribeTransactionCommand = de_DescribeTransactionCommand;
@@ -1769,10 +1743,9 @@ const de_DescribeTransactionCommandError = async (output, context) => {
1769
1743
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1770
1744
  default:
1771
1745
  const parsedBody = parsedOutput.body;
1772
- (0, smithy_client_1.throwDefaultError)({
1746
+ return throwDefaultError({
1773
1747
  output,
1774
1748
  parsedBody,
1775
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1776
1749
  errorCode,
1777
1750
  });
1778
1751
  }
@@ -1781,7 +1754,7 @@ const de_ExtendTransactionCommand = async (output, context) => {
1781
1754
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1782
1755
  return de_ExtendTransactionCommandError(output, context);
1783
1756
  }
1784
- const contents = map({
1757
+ const contents = (0, smithy_client_1.map)({
1785
1758
  $metadata: deserializeMetadata(output),
1786
1759
  });
1787
1760
  await collectBody(output.body, context);
@@ -1818,10 +1791,9 @@ const de_ExtendTransactionCommandError = async (output, context) => {
1818
1791
  throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
1819
1792
  default:
1820
1793
  const parsedBody = parsedOutput.body;
1821
- (0, smithy_client_1.throwDefaultError)({
1794
+ return throwDefaultError({
1822
1795
  output,
1823
1796
  parsedBody,
1824
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1825
1797
  errorCode,
1826
1798
  });
1827
1799
  }
@@ -1830,13 +1802,14 @@ const de_GetDataCellsFilterCommand = async (output, context) => {
1830
1802
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1831
1803
  return de_GetDataCellsFilterCommandError(output, context);
1832
1804
  }
1833
- const contents = map({
1805
+ const contents = (0, smithy_client_1.map)({
1834
1806
  $metadata: deserializeMetadata(output),
1835
1807
  });
1836
1808
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1837
- if (data.DataCellsFilter != null) {
1838
- contents.DataCellsFilter = de_DataCellsFilter(data.DataCellsFilter, context);
1839
- }
1809
+ const doc = (0, smithy_client_1.take)(data, {
1810
+ DataCellsFilter: smithy_client_1._json,
1811
+ });
1812
+ Object.assign(contents, doc);
1840
1813
  return contents;
1841
1814
  };
1842
1815
  exports.de_GetDataCellsFilterCommand = de_GetDataCellsFilterCommand;
@@ -1864,10 +1837,9 @@ const de_GetDataCellsFilterCommandError = async (output, context) => {
1864
1837
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1865
1838
  default:
1866
1839
  const parsedBody = parsedOutput.body;
1867
- (0, smithy_client_1.throwDefaultError)({
1840
+ return throwDefaultError({
1868
1841
  output,
1869
1842
  parsedBody,
1870
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1871
1843
  errorCode,
1872
1844
  });
1873
1845
  }
@@ -1876,13 +1848,14 @@ const de_GetDataLakeSettingsCommand = async (output, context) => {
1876
1848
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1877
1849
  return de_GetDataLakeSettingsCommandError(output, context);
1878
1850
  }
1879
- const contents = map({
1851
+ const contents = (0, smithy_client_1.map)({
1880
1852
  $metadata: deserializeMetadata(output),
1881
1853
  });
1882
1854
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1883
- if (data.DataLakeSettings != null) {
1884
- contents.DataLakeSettings = de_DataLakeSettings(data.DataLakeSettings, context);
1885
- }
1855
+ const doc = (0, smithy_client_1.take)(data, {
1856
+ DataLakeSettings: smithy_client_1._json,
1857
+ });
1858
+ Object.assign(contents, doc);
1886
1859
  return contents;
1887
1860
  };
1888
1861
  exports.de_GetDataLakeSettingsCommand = de_GetDataLakeSettingsCommand;
@@ -1904,10 +1877,9 @@ const de_GetDataLakeSettingsCommandError = async (output, context) => {
1904
1877
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1905
1878
  default:
1906
1879
  const parsedBody = parsedOutput.body;
1907
- (0, smithy_client_1.throwDefaultError)({
1880
+ return throwDefaultError({
1908
1881
  output,
1909
1882
  parsedBody,
1910
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1911
1883
  errorCode,
1912
1884
  });
1913
1885
  }
@@ -1916,16 +1888,15 @@ const de_GetEffectivePermissionsForPathCommand = async (output, context) => {
1916
1888
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1917
1889
  return de_GetEffectivePermissionsForPathCommandError(output, context);
1918
1890
  }
1919
- const contents = map({
1891
+ const contents = (0, smithy_client_1.map)({
1920
1892
  $metadata: deserializeMetadata(output),
1921
1893
  });
1922
1894
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1923
- if (data.NextToken != null) {
1924
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1925
- }
1926
- if (data.Permissions != null) {
1927
- contents.Permissions = de_PrincipalResourcePermissionsList(data.Permissions, context);
1928
- }
1895
+ const doc = (0, smithy_client_1.take)(data, {
1896
+ NextToken: smithy_client_1.expectString,
1897
+ Permissions: smithy_client_1._json,
1898
+ });
1899
+ Object.assign(contents, doc);
1929
1900
  return contents;
1930
1901
  };
1931
1902
  exports.de_GetEffectivePermissionsForPathCommand = de_GetEffectivePermissionsForPathCommand;
@@ -1950,10 +1921,9 @@ const de_GetEffectivePermissionsForPathCommandError = async (output, context) =>
1950
1921
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1951
1922
  default:
1952
1923
  const parsedBody = parsedOutput.body;
1953
- (0, smithy_client_1.throwDefaultError)({
1924
+ return throwDefaultError({
1954
1925
  output,
1955
1926
  parsedBody,
1956
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
1957
1927
  errorCode,
1958
1928
  });
1959
1929
  }
@@ -1962,19 +1932,16 @@ const de_GetLFTagCommand = async (output, context) => {
1962
1932
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1963
1933
  return de_GetLFTagCommandError(output, context);
1964
1934
  }
1965
- const contents = map({
1935
+ const contents = (0, smithy_client_1.map)({
1966
1936
  $metadata: deserializeMetadata(output),
1967
1937
  });
1968
1938
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1969
- if (data.CatalogId != null) {
1970
- contents.CatalogId = (0, smithy_client_1.expectString)(data.CatalogId);
1971
- }
1972
- if (data.TagKey != null) {
1973
- contents.TagKey = (0, smithy_client_1.expectString)(data.TagKey);
1974
- }
1975
- if (data.TagValues != null) {
1976
- contents.TagValues = de_TagValueList(data.TagValues, context);
1977
- }
1939
+ const doc = (0, smithy_client_1.take)(data, {
1940
+ CatalogId: smithy_client_1.expectString,
1941
+ TagKey: smithy_client_1.expectString,
1942
+ TagValues: smithy_client_1._json,
1943
+ });
1944
+ Object.assign(contents, doc);
1978
1945
  return contents;
1979
1946
  };
1980
1947
  exports.de_GetLFTagCommand = de_GetLFTagCommand;
@@ -2002,10 +1969,9 @@ const de_GetLFTagCommandError = async (output, context) => {
2002
1969
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2003
1970
  default:
2004
1971
  const parsedBody = parsedOutput.body;
2005
- (0, smithy_client_1.throwDefaultError)({
1972
+ return throwDefaultError({
2006
1973
  output,
2007
1974
  parsedBody,
2008
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2009
1975
  errorCode,
2010
1976
  });
2011
1977
  }
@@ -2014,16 +1980,15 @@ const de_GetQueryStateCommand = async (output, context) => {
2014
1980
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2015
1981
  return de_GetQueryStateCommandError(output, context);
2016
1982
  }
2017
- const contents = map({
1983
+ const contents = (0, smithy_client_1.map)({
2018
1984
  $metadata: deserializeMetadata(output),
2019
1985
  });
2020
1986
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2021
- if (data.Error != null) {
2022
- contents.Error = (0, smithy_client_1.expectString)(data.Error);
2023
- }
2024
- if (data.State != null) {
2025
- contents.State = (0, smithy_client_1.expectString)(data.State);
2026
- }
1987
+ const doc = (0, smithy_client_1.take)(data, {
1988
+ Error: smithy_client_1.expectString,
1989
+ State: smithy_client_1.expectString,
1990
+ });
1991
+ Object.assign(contents, doc);
2027
1992
  return contents;
2028
1993
  };
2029
1994
  exports.de_GetQueryStateCommand = de_GetQueryStateCommand;
@@ -2045,10 +2010,9 @@ const de_GetQueryStateCommandError = async (output, context) => {
2045
2010
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
2046
2011
  default:
2047
2012
  const parsedBody = parsedOutput.body;
2048
- (0, smithy_client_1.throwDefaultError)({
2013
+ return throwDefaultError({
2049
2014
  output,
2050
2015
  parsedBody,
2051
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2052
2016
  errorCode,
2053
2017
  });
2054
2018
  }
@@ -2057,19 +2021,16 @@ const de_GetQueryStatisticsCommand = async (output, context) => {
2057
2021
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2058
2022
  return de_GetQueryStatisticsCommandError(output, context);
2059
2023
  }
2060
- const contents = map({
2024
+ const contents = (0, smithy_client_1.map)({
2061
2025
  $metadata: deserializeMetadata(output),
2062
2026
  });
2063
2027
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2064
- if (data.ExecutionStatistics != null) {
2065
- contents.ExecutionStatistics = de_ExecutionStatistics(data.ExecutionStatistics, context);
2066
- }
2067
- if (data.PlanningStatistics != null) {
2068
- contents.PlanningStatistics = de_PlanningStatistics(data.PlanningStatistics, context);
2069
- }
2070
- if (data.QuerySubmissionTime != null) {
2071
- contents.QuerySubmissionTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.QuerySubmissionTime));
2072
- }
2028
+ const doc = (0, smithy_client_1.take)(data, {
2029
+ ExecutionStatistics: smithy_client_1._json,
2030
+ PlanningStatistics: smithy_client_1._json,
2031
+ QuerySubmissionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2032
+ });
2033
+ Object.assign(contents, doc);
2073
2034
  return contents;
2074
2035
  };
2075
2036
  exports.de_GetQueryStatisticsCommand = de_GetQueryStatisticsCommand;
@@ -2100,10 +2061,9 @@ const de_GetQueryStatisticsCommandError = async (output, context) => {
2100
2061
  throw await de_ThrottledExceptionRes(parsedOutput, context);
2101
2062
  default:
2102
2063
  const parsedBody = parsedOutput.body;
2103
- (0, smithy_client_1.throwDefaultError)({
2064
+ return throwDefaultError({
2104
2065
  output,
2105
2066
  parsedBody,
2106
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2107
2067
  errorCode,
2108
2068
  });
2109
2069
  }
@@ -2112,19 +2072,16 @@ const de_GetResourceLFTagsCommand = async (output, context) => {
2112
2072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2113
2073
  return de_GetResourceLFTagsCommandError(output, context);
2114
2074
  }
2115
- const contents = map({
2075
+ const contents = (0, smithy_client_1.map)({
2116
2076
  $metadata: deserializeMetadata(output),
2117
2077
  });
2118
2078
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2119
- if (data.LFTagOnDatabase != null) {
2120
- contents.LFTagOnDatabase = de_LFTagsList(data.LFTagOnDatabase, context);
2121
- }
2122
- if (data.LFTagsOnColumns != null) {
2123
- contents.LFTagsOnColumns = de_ColumnLFTagsList(data.LFTagsOnColumns, context);
2124
- }
2125
- if (data.LFTagsOnTable != null) {
2126
- contents.LFTagsOnTable = de_LFTagsList(data.LFTagsOnTable, context);
2127
- }
2079
+ const doc = (0, smithy_client_1.take)(data, {
2080
+ LFTagOnDatabase: smithy_client_1._json,
2081
+ LFTagsOnColumns: smithy_client_1._json,
2082
+ LFTagsOnTable: smithy_client_1._json,
2083
+ });
2084
+ Object.assign(contents, doc);
2128
2085
  return contents;
2129
2086
  };
2130
2087
  exports.de_GetResourceLFTagsCommand = de_GetResourceLFTagsCommand;
@@ -2155,10 +2112,9 @@ const de_GetResourceLFTagsCommandError = async (output, context) => {
2155
2112
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2156
2113
  default:
2157
2114
  const parsedBody = parsedOutput.body;
2158
- (0, smithy_client_1.throwDefaultError)({
2115
+ return throwDefaultError({
2159
2116
  output,
2160
2117
  parsedBody,
2161
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2162
2118
  errorCode,
2163
2119
  });
2164
2120
  }
@@ -2167,16 +2123,15 @@ const de_GetTableObjectsCommand = async (output, context) => {
2167
2123
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2168
2124
  return de_GetTableObjectsCommandError(output, context);
2169
2125
  }
2170
- const contents = map({
2126
+ const contents = (0, smithy_client_1.map)({
2171
2127
  $metadata: deserializeMetadata(output),
2172
2128
  });
2173
2129
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2174
- if (data.NextToken != null) {
2175
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2176
- }
2177
- if (data.Objects != null) {
2178
- contents.Objects = de_PartitionedTableObjectsList(data.Objects, context);
2179
- }
2130
+ const doc = (0, smithy_client_1.take)(data, {
2131
+ NextToken: smithy_client_1.expectString,
2132
+ Objects: smithy_client_1._json,
2133
+ });
2134
+ Object.assign(contents, doc);
2180
2135
  return contents;
2181
2136
  };
2182
2137
  exports.de_GetTableObjectsCommand = de_GetTableObjectsCommand;
@@ -2210,10 +2165,9 @@ const de_GetTableObjectsCommandError = async (output, context) => {
2210
2165
  throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
2211
2166
  default:
2212
2167
  const parsedBody = parsedOutput.body;
2213
- (0, smithy_client_1.throwDefaultError)({
2168
+ return throwDefaultError({
2214
2169
  output,
2215
2170
  parsedBody,
2216
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2217
2171
  errorCode,
2218
2172
  });
2219
2173
  }
@@ -2222,22 +2176,17 @@ const de_GetTemporaryGluePartitionCredentialsCommand = async (output, context) =
2222
2176
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2223
2177
  return de_GetTemporaryGluePartitionCredentialsCommandError(output, context);
2224
2178
  }
2225
- const contents = map({
2179
+ const contents = (0, smithy_client_1.map)({
2226
2180
  $metadata: deserializeMetadata(output),
2227
2181
  });
2228
2182
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2229
- if (data.AccessKeyId != null) {
2230
- contents.AccessKeyId = (0, smithy_client_1.expectString)(data.AccessKeyId);
2231
- }
2232
- if (data.Expiration != null) {
2233
- contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.Expiration)));
2234
- }
2235
- if (data.SecretAccessKey != null) {
2236
- contents.SecretAccessKey = (0, smithy_client_1.expectString)(data.SecretAccessKey);
2237
- }
2238
- if (data.SessionToken != null) {
2239
- contents.SessionToken = (0, smithy_client_1.expectString)(data.SessionToken);
2240
- }
2183
+ const doc = (0, smithy_client_1.take)(data, {
2184
+ AccessKeyId: smithy_client_1.expectString,
2185
+ Expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2186
+ SecretAccessKey: smithy_client_1.expectString,
2187
+ SessionToken: smithy_client_1.expectString,
2188
+ });
2189
+ Object.assign(contents, doc);
2241
2190
  return contents;
2242
2191
  };
2243
2192
  exports.de_GetTemporaryGluePartitionCredentialsCommand = de_GetTemporaryGluePartitionCredentialsCommand;
@@ -2268,10 +2217,9 @@ const de_GetTemporaryGluePartitionCredentialsCommandError = async (output, conte
2268
2217
  throw await de_PermissionTypeMismatchExceptionRes(parsedOutput, context);
2269
2218
  default:
2270
2219
  const parsedBody = parsedOutput.body;
2271
- (0, smithy_client_1.throwDefaultError)({
2220
+ return throwDefaultError({
2272
2221
  output,
2273
2222
  parsedBody,
2274
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2275
2223
  errorCode,
2276
2224
  });
2277
2225
  }
@@ -2280,22 +2228,17 @@ const de_GetTemporaryGlueTableCredentialsCommand = async (output, context) => {
2280
2228
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2281
2229
  return de_GetTemporaryGlueTableCredentialsCommandError(output, context);
2282
2230
  }
2283
- const contents = map({
2231
+ const contents = (0, smithy_client_1.map)({
2284
2232
  $metadata: deserializeMetadata(output),
2285
2233
  });
2286
2234
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2287
- if (data.AccessKeyId != null) {
2288
- contents.AccessKeyId = (0, smithy_client_1.expectString)(data.AccessKeyId);
2289
- }
2290
- if (data.Expiration != null) {
2291
- contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.Expiration)));
2292
- }
2293
- if (data.SecretAccessKey != null) {
2294
- contents.SecretAccessKey = (0, smithy_client_1.expectString)(data.SecretAccessKey);
2295
- }
2296
- if (data.SessionToken != null) {
2297
- contents.SessionToken = (0, smithy_client_1.expectString)(data.SessionToken);
2298
- }
2235
+ const doc = (0, smithy_client_1.take)(data, {
2236
+ AccessKeyId: smithy_client_1.expectString,
2237
+ Expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2238
+ SecretAccessKey: smithy_client_1.expectString,
2239
+ SessionToken: smithy_client_1.expectString,
2240
+ });
2241
+ Object.assign(contents, doc);
2299
2242
  return contents;
2300
2243
  };
2301
2244
  exports.de_GetTemporaryGlueTableCredentialsCommand = de_GetTemporaryGlueTableCredentialsCommand;
@@ -2326,10 +2269,9 @@ const de_GetTemporaryGlueTableCredentialsCommandError = async (output, context)
2326
2269
  throw await de_PermissionTypeMismatchExceptionRes(parsedOutput, context);
2327
2270
  default:
2328
2271
  const parsedBody = parsedOutput.body;
2329
- (0, smithy_client_1.throwDefaultError)({
2272
+ return throwDefaultError({
2330
2273
  output,
2331
2274
  parsedBody,
2332
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2333
2275
  errorCode,
2334
2276
  });
2335
2277
  }
@@ -2338,7 +2280,7 @@ const de_GetWorkUnitResultsCommand = async (output, context) => {
2338
2280
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2339
2281
  return de_GetWorkUnitResultsCommandError(output, context);
2340
2282
  }
2341
- const contents = map({
2283
+ const contents = (0, smithy_client_1.map)({
2342
2284
  $metadata: deserializeMetadata(output),
2343
2285
  });
2344
2286
  const data = output.body;
@@ -2371,10 +2313,9 @@ const de_GetWorkUnitResultsCommandError = async (output, context) => {
2371
2313
  throw await de_ThrottledExceptionRes(parsedOutput, context);
2372
2314
  default:
2373
2315
  const parsedBody = parsedOutput.body;
2374
- (0, smithy_client_1.throwDefaultError)({
2316
+ return throwDefaultError({
2375
2317
  output,
2376
2318
  parsedBody,
2377
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2378
2319
  errorCode,
2379
2320
  });
2380
2321
  }
@@ -2383,19 +2324,16 @@ const de_GetWorkUnitsCommand = async (output, context) => {
2383
2324
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2384
2325
  return de_GetWorkUnitsCommandError(output, context);
2385
2326
  }
2386
- const contents = map({
2327
+ const contents = (0, smithy_client_1.map)({
2387
2328
  $metadata: deserializeMetadata(output),
2388
2329
  });
2389
2330
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2390
- if (data.NextToken != null) {
2391
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2392
- }
2393
- if (data.QueryId != null) {
2394
- contents.QueryId = (0, smithy_client_1.expectString)(data.QueryId);
2395
- }
2396
- if (data.WorkUnitRanges != null) {
2397
- contents.WorkUnitRanges = de_WorkUnitRangeList(data.WorkUnitRanges, context);
2398
- }
2331
+ const doc = (0, smithy_client_1.take)(data, {
2332
+ NextToken: smithy_client_1.expectString,
2333
+ QueryId: smithy_client_1.expectString,
2334
+ WorkUnitRanges: smithy_client_1._json,
2335
+ });
2336
+ Object.assign(contents, doc);
2399
2337
  return contents;
2400
2338
  };
2401
2339
  exports.de_GetWorkUnitsCommand = de_GetWorkUnitsCommand;
@@ -2423,10 +2361,9 @@ const de_GetWorkUnitsCommandError = async (output, context) => {
2423
2361
  throw await de_WorkUnitsNotReadyYetExceptionRes(parsedOutput, context);
2424
2362
  default:
2425
2363
  const parsedBody = parsedOutput.body;
2426
- (0, smithy_client_1.throwDefaultError)({
2364
+ return throwDefaultError({
2427
2365
  output,
2428
2366
  parsedBody,
2429
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2430
2367
  errorCode,
2431
2368
  });
2432
2369
  }
@@ -2435,7 +2372,7 @@ const de_GrantPermissionsCommand = async (output, context) => {
2435
2372
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2436
2373
  return de_GrantPermissionsCommandError(output, context);
2437
2374
  }
2438
- const contents = map({
2375
+ const contents = (0, smithy_client_1.map)({
2439
2376
  $metadata: deserializeMetadata(output),
2440
2377
  });
2441
2378
  await collectBody(output.body, context);
@@ -2460,10 +2397,9 @@ const de_GrantPermissionsCommandError = async (output, context) => {
2460
2397
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
2461
2398
  default:
2462
2399
  const parsedBody = parsedOutput.body;
2463
- (0, smithy_client_1.throwDefaultError)({
2400
+ return throwDefaultError({
2464
2401
  output,
2465
2402
  parsedBody,
2466
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2467
2403
  errorCode,
2468
2404
  });
2469
2405
  }
@@ -2472,16 +2408,15 @@ const de_ListDataCellsFilterCommand = async (output, context) => {
2472
2408
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2473
2409
  return de_ListDataCellsFilterCommandError(output, context);
2474
2410
  }
2475
- const contents = map({
2411
+ const contents = (0, smithy_client_1.map)({
2476
2412
  $metadata: deserializeMetadata(output),
2477
2413
  });
2478
2414
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2479
- if (data.DataCellsFilters != null) {
2480
- contents.DataCellsFilters = de_DataCellsFilterList(data.DataCellsFilters, context);
2481
- }
2482
- if (data.NextToken != null) {
2483
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2484
- }
2415
+ const doc = (0, smithy_client_1.take)(data, {
2416
+ DataCellsFilters: smithy_client_1._json,
2417
+ NextToken: smithy_client_1.expectString,
2418
+ });
2419
+ Object.assign(contents, doc);
2485
2420
  return contents;
2486
2421
  };
2487
2422
  exports.de_ListDataCellsFilterCommand = de_ListDataCellsFilterCommand;
@@ -2506,10 +2441,9 @@ const de_ListDataCellsFilterCommandError = async (output, context) => {
2506
2441
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2507
2442
  default:
2508
2443
  const parsedBody = parsedOutput.body;
2509
- (0, smithy_client_1.throwDefaultError)({
2444
+ return throwDefaultError({
2510
2445
  output,
2511
2446
  parsedBody,
2512
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2513
2447
  errorCode,
2514
2448
  });
2515
2449
  }
@@ -2518,16 +2452,15 @@ const de_ListLFTagsCommand = async (output, context) => {
2518
2452
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2519
2453
  return de_ListLFTagsCommandError(output, context);
2520
2454
  }
2521
- const contents = map({
2455
+ const contents = (0, smithy_client_1.map)({
2522
2456
  $metadata: deserializeMetadata(output),
2523
2457
  });
2524
2458
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2525
- if (data.LFTags != null) {
2526
- contents.LFTags = de_LFTagsList(data.LFTags, context);
2527
- }
2528
- if (data.NextToken != null) {
2529
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2530
- }
2459
+ const doc = (0, smithy_client_1.take)(data, {
2460
+ LFTags: smithy_client_1._json,
2461
+ NextToken: smithy_client_1.expectString,
2462
+ });
2463
+ Object.assign(contents, doc);
2531
2464
  return contents;
2532
2465
  };
2533
2466
  exports.de_ListLFTagsCommand = de_ListLFTagsCommand;
@@ -2555,10 +2488,9 @@ const de_ListLFTagsCommandError = async (output, context) => {
2555
2488
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2556
2489
  default:
2557
2490
  const parsedBody = parsedOutput.body;
2558
- (0, smithy_client_1.throwDefaultError)({
2491
+ return throwDefaultError({
2559
2492
  output,
2560
2493
  parsedBody,
2561
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2562
2494
  errorCode,
2563
2495
  });
2564
2496
  }
@@ -2567,16 +2499,15 @@ const de_ListPermissionsCommand = async (output, context) => {
2567
2499
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2568
2500
  return de_ListPermissionsCommandError(output, context);
2569
2501
  }
2570
- const contents = map({
2502
+ const contents = (0, smithy_client_1.map)({
2571
2503
  $metadata: deserializeMetadata(output),
2572
2504
  });
2573
2505
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2574
- if (data.NextToken != null) {
2575
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2576
- }
2577
- if (data.PrincipalResourcePermissions != null) {
2578
- contents.PrincipalResourcePermissions = de_PrincipalResourcePermissionsList(data.PrincipalResourcePermissions, context);
2579
- }
2506
+ const doc = (0, smithy_client_1.take)(data, {
2507
+ NextToken: smithy_client_1.expectString,
2508
+ PrincipalResourcePermissions: smithy_client_1._json,
2509
+ });
2510
+ Object.assign(contents, doc);
2580
2511
  return contents;
2581
2512
  };
2582
2513
  exports.de_ListPermissionsCommand = de_ListPermissionsCommand;
@@ -2598,10 +2529,9 @@ const de_ListPermissionsCommandError = async (output, context) => {
2598
2529
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2599
2530
  default:
2600
2531
  const parsedBody = parsedOutput.body;
2601
- (0, smithy_client_1.throwDefaultError)({
2532
+ return throwDefaultError({
2602
2533
  output,
2603
2534
  parsedBody,
2604
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2605
2535
  errorCode,
2606
2536
  });
2607
2537
  }
@@ -2610,16 +2540,15 @@ const de_ListResourcesCommand = async (output, context) => {
2610
2540
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2611
2541
  return de_ListResourcesCommandError(output, context);
2612
2542
  }
2613
- const contents = map({
2543
+ const contents = (0, smithy_client_1.map)({
2614
2544
  $metadata: deserializeMetadata(output),
2615
2545
  });
2616
2546
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2617
- if (data.NextToken != null) {
2618
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2619
- }
2620
- if (data.ResourceInfoList != null) {
2621
- contents.ResourceInfoList = de_ResourceInfoList(data.ResourceInfoList, context);
2622
- }
2547
+ const doc = (0, smithy_client_1.take)(data, {
2548
+ NextToken: smithy_client_1.expectString,
2549
+ ResourceInfoList: (_) => de_ResourceInfoList(_, context),
2550
+ });
2551
+ Object.assign(contents, doc);
2623
2552
  return contents;
2624
2553
  };
2625
2554
  exports.de_ListResourcesCommand = de_ListResourcesCommand;
@@ -2641,10 +2570,9 @@ const de_ListResourcesCommandError = async (output, context) => {
2641
2570
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2642
2571
  default:
2643
2572
  const parsedBody = parsedOutput.body;
2644
- (0, smithy_client_1.throwDefaultError)({
2573
+ return throwDefaultError({
2645
2574
  output,
2646
2575
  parsedBody,
2647
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2648
2576
  errorCode,
2649
2577
  });
2650
2578
  }
@@ -2653,16 +2581,15 @@ const de_ListTableStorageOptimizersCommand = async (output, context) => {
2653
2581
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2654
2582
  return de_ListTableStorageOptimizersCommandError(output, context);
2655
2583
  }
2656
- const contents = map({
2584
+ const contents = (0, smithy_client_1.map)({
2657
2585
  $metadata: deserializeMetadata(output),
2658
2586
  });
2659
2587
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2660
- if (data.NextToken != null) {
2661
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2662
- }
2663
- if (data.StorageOptimizerList != null) {
2664
- contents.StorageOptimizerList = de_StorageOptimizerList(data.StorageOptimizerList, context);
2665
- }
2588
+ const doc = (0, smithy_client_1.take)(data, {
2589
+ NextToken: smithy_client_1.expectString,
2590
+ StorageOptimizerList: smithy_client_1._json,
2591
+ });
2592
+ Object.assign(contents, doc);
2666
2593
  return contents;
2667
2594
  };
2668
2595
  exports.de_ListTableStorageOptimizersCommand = de_ListTableStorageOptimizersCommand;
@@ -2687,10 +2614,9 @@ const de_ListTableStorageOptimizersCommandError = async (output, context) => {
2687
2614
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
2688
2615
  default:
2689
2616
  const parsedBody = parsedOutput.body;
2690
- (0, smithy_client_1.throwDefaultError)({
2617
+ return throwDefaultError({
2691
2618
  output,
2692
2619
  parsedBody,
2693
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2694
2620
  errorCode,
2695
2621
  });
2696
2622
  }
@@ -2699,16 +2625,15 @@ const de_ListTransactionsCommand = async (output, context) => {
2699
2625
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2700
2626
  return de_ListTransactionsCommandError(output, context);
2701
2627
  }
2702
- const contents = map({
2628
+ const contents = (0, smithy_client_1.map)({
2703
2629
  $metadata: deserializeMetadata(output),
2704
2630
  });
2705
2631
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2706
- if (data.NextToken != null) {
2707
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2708
- }
2709
- if (data.Transactions != null) {
2710
- contents.Transactions = de_TransactionDescriptionList(data.Transactions, context);
2711
- }
2632
+ const doc = (0, smithy_client_1.take)(data, {
2633
+ NextToken: smithy_client_1.expectString,
2634
+ Transactions: (_) => de_TransactionDescriptionList(_, context),
2635
+ });
2636
+ Object.assign(contents, doc);
2712
2637
  return contents;
2713
2638
  };
2714
2639
  exports.de_ListTransactionsCommand = de_ListTransactionsCommand;
@@ -2730,10 +2655,9 @@ const de_ListTransactionsCommandError = async (output, context) => {
2730
2655
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2731
2656
  default:
2732
2657
  const parsedBody = parsedOutput.body;
2733
- (0, smithy_client_1.throwDefaultError)({
2658
+ return throwDefaultError({
2734
2659
  output,
2735
2660
  parsedBody,
2736
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2737
2661
  errorCode,
2738
2662
  });
2739
2663
  }
@@ -2742,7 +2666,7 @@ const de_PutDataLakeSettingsCommand = async (output, context) => {
2742
2666
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2743
2667
  return de_PutDataLakeSettingsCommandError(output, context);
2744
2668
  }
2745
- const contents = map({
2669
+ const contents = (0, smithy_client_1.map)({
2746
2670
  $metadata: deserializeMetadata(output),
2747
2671
  });
2748
2672
  await collectBody(output.body, context);
@@ -2764,10 +2688,9 @@ const de_PutDataLakeSettingsCommandError = async (output, context) => {
2764
2688
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
2765
2689
  default:
2766
2690
  const parsedBody = parsedOutput.body;
2767
- (0, smithy_client_1.throwDefaultError)({
2691
+ return throwDefaultError({
2768
2692
  output,
2769
2693
  parsedBody,
2770
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2771
2694
  errorCode,
2772
2695
  });
2773
2696
  }
@@ -2776,7 +2699,7 @@ const de_RegisterResourceCommand = async (output, context) => {
2776
2699
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2777
2700
  return de_RegisterResourceCommandError(output, context);
2778
2701
  }
2779
- const contents = map({
2702
+ const contents = (0, smithy_client_1.map)({
2780
2703
  $metadata: deserializeMetadata(output),
2781
2704
  });
2782
2705
  await collectBody(output.body, context);
@@ -2813,10 +2736,9 @@ const de_RegisterResourceCommandError = async (output, context) => {
2813
2736
  throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
2814
2737
  default:
2815
2738
  const parsedBody = parsedOutput.body;
2816
- (0, smithy_client_1.throwDefaultError)({
2739
+ return throwDefaultError({
2817
2740
  output,
2818
2741
  parsedBody,
2819
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2820
2742
  errorCode,
2821
2743
  });
2822
2744
  }
@@ -2825,13 +2747,14 @@ const de_RemoveLFTagsFromResourceCommand = async (output, context) => {
2825
2747
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2826
2748
  return de_RemoveLFTagsFromResourceCommandError(output, context);
2827
2749
  }
2828
- const contents = map({
2750
+ const contents = (0, smithy_client_1.map)({
2829
2751
  $metadata: deserializeMetadata(output),
2830
2752
  });
2831
2753
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2832
- if (data.Failures != null) {
2833
- contents.Failures = de_LFTagErrors(data.Failures, context);
2834
- }
2754
+ const doc = (0, smithy_client_1.take)(data, {
2755
+ Failures: smithy_client_1._json,
2756
+ });
2757
+ Object.assign(contents, doc);
2835
2758
  return contents;
2836
2759
  };
2837
2760
  exports.de_RemoveLFTagsFromResourceCommand = de_RemoveLFTagsFromResourceCommand;
@@ -2865,10 +2788,9 @@ const de_RemoveLFTagsFromResourceCommandError = async (output, context) => {
2865
2788
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2866
2789
  default:
2867
2790
  const parsedBody = parsedOutput.body;
2868
- (0, smithy_client_1.throwDefaultError)({
2791
+ return throwDefaultError({
2869
2792
  output,
2870
2793
  parsedBody,
2871
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2872
2794
  errorCode,
2873
2795
  });
2874
2796
  }
@@ -2877,7 +2799,7 @@ const de_RevokePermissionsCommand = async (output, context) => {
2877
2799
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2878
2800
  return de_RevokePermissionsCommandError(output, context);
2879
2801
  }
2880
- const contents = map({
2802
+ const contents = (0, smithy_client_1.map)({
2881
2803
  $metadata: deserializeMetadata(output),
2882
2804
  });
2883
2805
  await collectBody(output.body, context);
@@ -2902,10 +2824,9 @@ const de_RevokePermissionsCommandError = async (output, context) => {
2902
2824
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
2903
2825
  default:
2904
2826
  const parsedBody = parsedOutput.body;
2905
- (0, smithy_client_1.throwDefaultError)({
2827
+ return throwDefaultError({
2906
2828
  output,
2907
2829
  parsedBody,
2908
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2909
2830
  errorCode,
2910
2831
  });
2911
2832
  }
@@ -2914,16 +2835,15 @@ const de_SearchDatabasesByLFTagsCommand = async (output, context) => {
2914
2835
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2915
2836
  return de_SearchDatabasesByLFTagsCommandError(output, context);
2916
2837
  }
2917
- const contents = map({
2838
+ const contents = (0, smithy_client_1.map)({
2918
2839
  $metadata: deserializeMetadata(output),
2919
2840
  });
2920
2841
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2921
- if (data.DatabaseList != null) {
2922
- contents.DatabaseList = de_DatabaseLFTagsList(data.DatabaseList, context);
2923
- }
2924
- if (data.NextToken != null) {
2925
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2926
- }
2842
+ const doc = (0, smithy_client_1.take)(data, {
2843
+ DatabaseList: smithy_client_1._json,
2844
+ NextToken: smithy_client_1.expectString,
2845
+ });
2846
+ Object.assign(contents, doc);
2927
2847
  return contents;
2928
2848
  };
2929
2849
  exports.de_SearchDatabasesByLFTagsCommand = de_SearchDatabasesByLFTagsCommand;
@@ -2954,10 +2874,9 @@ const de_SearchDatabasesByLFTagsCommandError = async (output, context) => {
2954
2874
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2955
2875
  default:
2956
2876
  const parsedBody = parsedOutput.body;
2957
- (0, smithy_client_1.throwDefaultError)({
2877
+ return throwDefaultError({
2958
2878
  output,
2959
2879
  parsedBody,
2960
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
2961
2880
  errorCode,
2962
2881
  });
2963
2882
  }
@@ -2966,16 +2885,15 @@ const de_SearchTablesByLFTagsCommand = async (output, context) => {
2966
2885
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2967
2886
  return de_SearchTablesByLFTagsCommandError(output, context);
2968
2887
  }
2969
- const contents = map({
2888
+ const contents = (0, smithy_client_1.map)({
2970
2889
  $metadata: deserializeMetadata(output),
2971
2890
  });
2972
2891
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2973
- if (data.NextToken != null) {
2974
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2975
- }
2976
- if (data.TableList != null) {
2977
- contents.TableList = de_TableLFTagsList(data.TableList, context);
2978
- }
2892
+ const doc = (0, smithy_client_1.take)(data, {
2893
+ NextToken: smithy_client_1.expectString,
2894
+ TableList: smithy_client_1._json,
2895
+ });
2896
+ Object.assign(contents, doc);
2979
2897
  return contents;
2980
2898
  };
2981
2899
  exports.de_SearchTablesByLFTagsCommand = de_SearchTablesByLFTagsCommand;
@@ -3006,10 +2924,9 @@ const de_SearchTablesByLFTagsCommandError = async (output, context) => {
3006
2924
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3007
2925
  default:
3008
2926
  const parsedBody = parsedOutput.body;
3009
- (0, smithy_client_1.throwDefaultError)({
2927
+ return throwDefaultError({
3010
2928
  output,
3011
2929
  parsedBody,
3012
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
3013
2930
  errorCode,
3014
2931
  });
3015
2932
  }
@@ -3018,13 +2935,14 @@ const de_StartQueryPlanningCommand = async (output, context) => {
3018
2935
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3019
2936
  return de_StartQueryPlanningCommandError(output, context);
3020
2937
  }
3021
- const contents = map({
2938
+ const contents = (0, smithy_client_1.map)({
3022
2939
  $metadata: deserializeMetadata(output),
3023
2940
  });
3024
2941
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3025
- if (data.QueryId != null) {
3026
- contents.QueryId = (0, smithy_client_1.expectString)(data.QueryId);
3027
- }
2942
+ const doc = (0, smithy_client_1.take)(data, {
2943
+ QueryId: smithy_client_1.expectString,
2944
+ });
2945
+ Object.assign(contents, doc);
3028
2946
  return contents;
3029
2947
  };
3030
2948
  exports.de_StartQueryPlanningCommand = de_StartQueryPlanningCommand;
@@ -3049,10 +2967,9 @@ const de_StartQueryPlanningCommandError = async (output, context) => {
3049
2967
  throw await de_ThrottledExceptionRes(parsedOutput, context);
3050
2968
  default:
3051
2969
  const parsedBody = parsedOutput.body;
3052
- (0, smithy_client_1.throwDefaultError)({
2970
+ return throwDefaultError({
3053
2971
  output,
3054
2972
  parsedBody,
3055
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
3056
2973
  errorCode,
3057
2974
  });
3058
2975
  }
@@ -3061,13 +2978,14 @@ const de_StartTransactionCommand = async (output, context) => {
3061
2978
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3062
2979
  return de_StartTransactionCommandError(output, context);
3063
2980
  }
3064
- const contents = map({
2981
+ const contents = (0, smithy_client_1.map)({
3065
2982
  $metadata: deserializeMetadata(output),
3066
2983
  });
3067
2984
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3068
- if (data.TransactionId != null) {
3069
- contents.TransactionId = (0, smithy_client_1.expectString)(data.TransactionId);
3070
- }
2985
+ const doc = (0, smithy_client_1.take)(data, {
2986
+ TransactionId: smithy_client_1.expectString,
2987
+ });
2988
+ Object.assign(contents, doc);
3071
2989
  return contents;
3072
2990
  };
3073
2991
  exports.de_StartTransactionCommand = de_StartTransactionCommand;
@@ -3086,10 +3004,9 @@ const de_StartTransactionCommandError = async (output, context) => {
3086
3004
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3087
3005
  default:
3088
3006
  const parsedBody = parsedOutput.body;
3089
- (0, smithy_client_1.throwDefaultError)({
3007
+ return throwDefaultError({
3090
3008
  output,
3091
3009
  parsedBody,
3092
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
3093
3010
  errorCode,
3094
3011
  });
3095
3012
  }
@@ -3098,7 +3015,7 @@ const de_UpdateDataCellsFilterCommand = async (output, context) => {
3098
3015
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3099
3016
  return de_UpdateDataCellsFilterCommandError(output, context);
3100
3017
  }
3101
- const contents = map({
3018
+ const contents = (0, smithy_client_1.map)({
3102
3019
  $metadata: deserializeMetadata(output),
3103
3020
  });
3104
3021
  await collectBody(output.body, context);
@@ -3132,10 +3049,9 @@ const de_UpdateDataCellsFilterCommandError = async (output, context) => {
3132
3049
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3133
3050
  default:
3134
3051
  const parsedBody = parsedOutput.body;
3135
- (0, smithy_client_1.throwDefaultError)({
3052
+ return throwDefaultError({
3136
3053
  output,
3137
3054
  parsedBody,
3138
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
3139
3055
  errorCode,
3140
3056
  });
3141
3057
  }
@@ -3144,7 +3060,7 @@ const de_UpdateLFTagCommand = async (output, context) => {
3144
3060
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3145
3061
  return de_UpdateLFTagCommandError(output, context);
3146
3062
  }
3147
- const contents = map({
3063
+ const contents = (0, smithy_client_1.map)({
3148
3064
  $metadata: deserializeMetadata(output),
3149
3065
  });
3150
3066
  await collectBody(output.body, context);
@@ -3178,10 +3094,9 @@ const de_UpdateLFTagCommandError = async (output, context) => {
3178
3094
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3179
3095
  default:
3180
3096
  const parsedBody = parsedOutput.body;
3181
- (0, smithy_client_1.throwDefaultError)({
3097
+ return throwDefaultError({
3182
3098
  output,
3183
3099
  parsedBody,
3184
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
3185
3100
  errorCode,
3186
3101
  });
3187
3102
  }
@@ -3190,7 +3105,7 @@ const de_UpdateResourceCommand = async (output, context) => {
3190
3105
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3191
3106
  return de_UpdateResourceCommandError(output, context);
3192
3107
  }
3193
- const contents = map({
3108
+ const contents = (0, smithy_client_1.map)({
3194
3109
  $metadata: deserializeMetadata(output),
3195
3110
  });
3196
3111
  await collectBody(output.body, context);
@@ -3218,10 +3133,9 @@ const de_UpdateResourceCommandError = async (output, context) => {
3218
3133
  throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3219
3134
  default:
3220
3135
  const parsedBody = parsedOutput.body;
3221
- (0, smithy_client_1.throwDefaultError)({
3136
+ return throwDefaultError({
3222
3137
  output,
3223
3138
  parsedBody,
3224
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
3225
3139
  errorCode,
3226
3140
  });
3227
3141
  }
@@ -3230,7 +3144,7 @@ const de_UpdateTableObjectsCommand = async (output, context) => {
3230
3144
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3231
3145
  return de_UpdateTableObjectsCommandError(output, context);
3232
3146
  }
3233
- const contents = map({
3147
+ const contents = (0, smithy_client_1.map)({
3234
3148
  $metadata: deserializeMetadata(output),
3235
3149
  });
3236
3150
  await collectBody(output.body, context);
@@ -3273,10 +3187,9 @@ const de_UpdateTableObjectsCommandError = async (output, context) => {
3273
3187
  throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
3274
3188
  default:
3275
3189
  const parsedBody = parsedOutput.body;
3276
- (0, smithy_client_1.throwDefaultError)({
3190
+ return throwDefaultError({
3277
3191
  output,
3278
3192
  parsedBody,
3279
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
3280
3193
  errorCode,
3281
3194
  });
3282
3195
  }
@@ -3285,13 +3198,14 @@ const de_UpdateTableStorageOptimizerCommand = async (output, context) => {
3285
3198
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3286
3199
  return de_UpdateTableStorageOptimizerCommandError(output, context);
3287
3200
  }
3288
- const contents = map({
3201
+ const contents = (0, smithy_client_1.map)({
3289
3202
  $metadata: deserializeMetadata(output),
3290
3203
  });
3291
3204
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3292
- if (data.Result != null) {
3293
- contents.Result = (0, smithy_client_1.expectString)(data.Result);
3294
- }
3205
+ const doc = (0, smithy_client_1.take)(data, {
3206
+ Result: smithy_client_1.expectString,
3207
+ });
3208
+ Object.assign(contents, doc);
3295
3209
  return contents;
3296
3210
  };
3297
3211
  exports.de_UpdateTableStorageOptimizerCommand = de_UpdateTableStorageOptimizerCommand;
@@ -3316,21 +3230,21 @@ const de_UpdateTableStorageOptimizerCommandError = async (output, context) => {
3316
3230
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
3317
3231
  default:
3318
3232
  const parsedBody = parsedOutput.body;
3319
- (0, smithy_client_1.throwDefaultError)({
3233
+ return throwDefaultError({
3320
3234
  output,
3321
3235
  parsedBody,
3322
- exceptionCtor: LakeFormationServiceException_1.LakeFormationServiceException,
3323
3236
  errorCode,
3324
3237
  });
3325
3238
  }
3326
3239
  };
3327
- const map = smithy_client_1.map;
3240
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(LakeFormationServiceException_1.LakeFormationServiceException);
3328
3241
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3329
- const contents = map({});
3242
+ const contents = (0, smithy_client_1.map)({});
3330
3243
  const data = parsedOutput.body;
3331
- if (data.Message != null) {
3332
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3333
- }
3244
+ const doc = (0, smithy_client_1.take)(data, {
3245
+ Message: smithy_client_1.expectString,
3246
+ });
3247
+ Object.assign(contents, doc);
3334
3248
  const exception = new models_0_1.AccessDeniedException({
3335
3249
  $metadata: deserializeMetadata(parsedOutput),
3336
3250
  ...contents,
@@ -3338,11 +3252,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3338
3252
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3339
3253
  };
3340
3254
  const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
3341
- const contents = map({});
3255
+ const contents = (0, smithy_client_1.map)({});
3342
3256
  const data = parsedOutput.body;
3343
- if (data.Message != null) {
3344
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3345
- }
3257
+ const doc = (0, smithy_client_1.take)(data, {
3258
+ Message: smithy_client_1.expectString,
3259
+ });
3260
+ Object.assign(contents, doc);
3346
3261
  const exception = new models_0_1.AlreadyExistsException({
3347
3262
  $metadata: deserializeMetadata(parsedOutput),
3348
3263
  ...contents,
@@ -3350,11 +3265,12 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
3350
3265
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3351
3266
  };
3352
3267
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3353
- const contents = map({});
3268
+ const contents = (0, smithy_client_1.map)({});
3354
3269
  const data = parsedOutput.body;
3355
- if (data.Message != null) {
3356
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3357
- }
3270
+ const doc = (0, smithy_client_1.take)(data, {
3271
+ Message: smithy_client_1.expectString,
3272
+ });
3273
+ Object.assign(contents, doc);
3358
3274
  const exception = new models_0_1.ConcurrentModificationException({
3359
3275
  $metadata: deserializeMetadata(parsedOutput),
3360
3276
  ...contents,
@@ -3362,11 +3278,12 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3362
3278
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3363
3279
  };
3364
3280
  const de_EntityNotFoundExceptionRes = async (parsedOutput, context) => {
3365
- const contents = map({});
3281
+ const contents = (0, smithy_client_1.map)({});
3366
3282
  const data = parsedOutput.body;
3367
- if (data.Message != null) {
3368
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3369
- }
3283
+ const doc = (0, smithy_client_1.take)(data, {
3284
+ Message: smithy_client_1.expectString,
3285
+ });
3286
+ Object.assign(contents, doc);
3370
3287
  const exception = new models_0_1.EntityNotFoundException({
3371
3288
  $metadata: deserializeMetadata(parsedOutput),
3372
3289
  ...contents,
@@ -3374,11 +3291,12 @@ const de_EntityNotFoundExceptionRes = async (parsedOutput, context) => {
3374
3291
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3375
3292
  };
3376
3293
  const de_ExpiredExceptionRes = async (parsedOutput, context) => {
3377
- const contents = map({});
3294
+ const contents = (0, smithy_client_1.map)({});
3378
3295
  const data = parsedOutput.body;
3379
- if (data.Message != null) {
3380
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3381
- }
3296
+ const doc = (0, smithy_client_1.take)(data, {
3297
+ Message: smithy_client_1.expectString,
3298
+ });
3299
+ Object.assign(contents, doc);
3382
3300
  const exception = new models_0_1.ExpiredException({
3383
3301
  $metadata: deserializeMetadata(parsedOutput),
3384
3302
  ...contents,
@@ -3386,11 +3304,12 @@ const de_ExpiredExceptionRes = async (parsedOutput, context) => {
3386
3304
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3387
3305
  };
3388
3306
  const de_GlueEncryptionExceptionRes = async (parsedOutput, context) => {
3389
- const contents = map({});
3307
+ const contents = (0, smithy_client_1.map)({});
3390
3308
  const data = parsedOutput.body;
3391
- if (data.Message != null) {
3392
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3393
- }
3309
+ const doc = (0, smithy_client_1.take)(data, {
3310
+ Message: smithy_client_1.expectString,
3311
+ });
3312
+ Object.assign(contents, doc);
3394
3313
  const exception = new models_0_1.GlueEncryptionException({
3395
3314
  $metadata: deserializeMetadata(parsedOutput),
3396
3315
  ...contents,
@@ -3398,11 +3317,12 @@ const de_GlueEncryptionExceptionRes = async (parsedOutput, context) => {
3398
3317
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3399
3318
  };
3400
3319
  const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
3401
- const contents = map({});
3320
+ const contents = (0, smithy_client_1.map)({});
3402
3321
  const data = parsedOutput.body;
3403
- if (data.Message != null) {
3404
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3405
- }
3322
+ const doc = (0, smithy_client_1.take)(data, {
3323
+ Message: smithy_client_1.expectString,
3324
+ });
3325
+ Object.assign(contents, doc);
3406
3326
  const exception = new models_0_1.InternalServiceException({
3407
3327
  $metadata: deserializeMetadata(parsedOutput),
3408
3328
  ...contents,
@@ -3410,11 +3330,12 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
3410
3330
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3411
3331
  };
3412
3332
  const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
3413
- const contents = map({});
3333
+ const contents = (0, smithy_client_1.map)({});
3414
3334
  const data = parsedOutput.body;
3415
- if (data.Message != null) {
3416
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3417
- }
3335
+ const doc = (0, smithy_client_1.take)(data, {
3336
+ Message: smithy_client_1.expectString,
3337
+ });
3338
+ Object.assign(contents, doc);
3418
3339
  const exception = new models_0_1.InvalidInputException({
3419
3340
  $metadata: deserializeMetadata(parsedOutput),
3420
3341
  ...contents,
@@ -3422,11 +3343,12 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
3422
3343
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3423
3344
  };
3424
3345
  const de_OperationTimeoutExceptionRes = async (parsedOutput, context) => {
3425
- const contents = map({});
3346
+ const contents = (0, smithy_client_1.map)({});
3426
3347
  const data = parsedOutput.body;
3427
- if (data.Message != null) {
3428
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3429
- }
3348
+ const doc = (0, smithy_client_1.take)(data, {
3349
+ Message: smithy_client_1.expectString,
3350
+ });
3351
+ Object.assign(contents, doc);
3430
3352
  const exception = new models_0_1.OperationTimeoutException({
3431
3353
  $metadata: deserializeMetadata(parsedOutput),
3432
3354
  ...contents,
@@ -3434,11 +3356,12 @@ const de_OperationTimeoutExceptionRes = async (parsedOutput, context) => {
3434
3356
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3435
3357
  };
3436
3358
  const de_PermissionTypeMismatchExceptionRes = async (parsedOutput, context) => {
3437
- const contents = map({});
3359
+ const contents = (0, smithy_client_1.map)({});
3438
3360
  const data = parsedOutput.body;
3439
- if (data.Message != null) {
3440
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3441
- }
3361
+ const doc = (0, smithy_client_1.take)(data, {
3362
+ Message: smithy_client_1.expectString,
3363
+ });
3364
+ Object.assign(contents, doc);
3442
3365
  const exception = new models_0_1.PermissionTypeMismatchException({
3443
3366
  $metadata: deserializeMetadata(parsedOutput),
3444
3367
  ...contents,
@@ -3446,11 +3369,12 @@ const de_PermissionTypeMismatchExceptionRes = async (parsedOutput, context) => {
3446
3369
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3447
3370
  };
3448
3371
  const de_ResourceNotReadyExceptionRes = async (parsedOutput, context) => {
3449
- const contents = map({});
3372
+ const contents = (0, smithy_client_1.map)({});
3450
3373
  const data = parsedOutput.body;
3451
- if (data.Message != null) {
3452
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3453
- }
3374
+ const doc = (0, smithy_client_1.take)(data, {
3375
+ Message: smithy_client_1.expectString,
3376
+ });
3377
+ Object.assign(contents, doc);
3454
3378
  const exception = new models_0_1.ResourceNotReadyException({
3455
3379
  $metadata: deserializeMetadata(parsedOutput),
3456
3380
  ...contents,
@@ -3458,11 +3382,12 @@ const de_ResourceNotReadyExceptionRes = async (parsedOutput, context) => {
3458
3382
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3459
3383
  };
3460
3384
  const de_ResourceNumberLimitExceededExceptionRes = async (parsedOutput, context) => {
3461
- const contents = map({});
3385
+ const contents = (0, smithy_client_1.map)({});
3462
3386
  const data = parsedOutput.body;
3463
- if (data.Message != null) {
3464
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3465
- }
3387
+ const doc = (0, smithy_client_1.take)(data, {
3388
+ Message: smithy_client_1.expectString,
3389
+ });
3390
+ Object.assign(contents, doc);
3466
3391
  const exception = new models_0_1.ResourceNumberLimitExceededException({
3467
3392
  $metadata: deserializeMetadata(parsedOutput),
3468
3393
  ...contents,
@@ -3470,11 +3395,12 @@ const de_ResourceNumberLimitExceededExceptionRes = async (parsedOutput, context)
3470
3395
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3471
3396
  };
3472
3397
  const de_StatisticsNotReadyYetExceptionRes = async (parsedOutput, context) => {
3473
- const contents = map({});
3398
+ const contents = (0, smithy_client_1.map)({});
3474
3399
  const data = parsedOutput.body;
3475
- if (data.Message != null) {
3476
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3477
- }
3400
+ const doc = (0, smithy_client_1.take)(data, {
3401
+ Message: smithy_client_1.expectString,
3402
+ });
3403
+ Object.assign(contents, doc);
3478
3404
  const exception = new models_0_1.StatisticsNotReadyYetException({
3479
3405
  $metadata: deserializeMetadata(parsedOutput),
3480
3406
  ...contents,
@@ -3482,11 +3408,12 @@ const de_StatisticsNotReadyYetExceptionRes = async (parsedOutput, context) => {
3482
3408
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3483
3409
  };
3484
3410
  const de_ThrottledExceptionRes = async (parsedOutput, context) => {
3485
- const contents = map({});
3411
+ const contents = (0, smithy_client_1.map)({});
3486
3412
  const data = parsedOutput.body;
3487
- if (data.Message != null) {
3488
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3489
- }
3413
+ const doc = (0, smithy_client_1.take)(data, {
3414
+ Message: smithy_client_1.expectString,
3415
+ });
3416
+ Object.assign(contents, doc);
3490
3417
  const exception = new models_0_1.ThrottledException({
3491
3418
  $metadata: deserializeMetadata(parsedOutput),
3492
3419
  ...contents,
@@ -3494,11 +3421,12 @@ const de_ThrottledExceptionRes = async (parsedOutput, context) => {
3494
3421
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3495
3422
  };
3496
3423
  const de_TransactionCanceledExceptionRes = async (parsedOutput, context) => {
3497
- const contents = map({});
3424
+ const contents = (0, smithy_client_1.map)({});
3498
3425
  const data = parsedOutput.body;
3499
- if (data.Message != null) {
3500
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3501
- }
3426
+ const doc = (0, smithy_client_1.take)(data, {
3427
+ Message: smithy_client_1.expectString,
3428
+ });
3429
+ Object.assign(contents, doc);
3502
3430
  const exception = new models_0_1.TransactionCanceledException({
3503
3431
  $metadata: deserializeMetadata(parsedOutput),
3504
3432
  ...contents,
@@ -3506,11 +3434,12 @@ const de_TransactionCanceledExceptionRes = async (parsedOutput, context) => {
3506
3434
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3507
3435
  };
3508
3436
  const de_TransactionCommitInProgressExceptionRes = async (parsedOutput, context) => {
3509
- const contents = map({});
3437
+ const contents = (0, smithy_client_1.map)({});
3510
3438
  const data = parsedOutput.body;
3511
- if (data.Message != null) {
3512
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3513
- }
3439
+ const doc = (0, smithy_client_1.take)(data, {
3440
+ Message: smithy_client_1.expectString,
3441
+ });
3442
+ Object.assign(contents, doc);
3514
3443
  const exception = new models_0_1.TransactionCommitInProgressException({
3515
3444
  $metadata: deserializeMetadata(parsedOutput),
3516
3445
  ...contents,
@@ -3518,11 +3447,12 @@ const de_TransactionCommitInProgressExceptionRes = async (parsedOutput, context)
3518
3447
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3519
3448
  };
3520
3449
  const de_TransactionCommittedExceptionRes = async (parsedOutput, context) => {
3521
- const contents = map({});
3450
+ const contents = (0, smithy_client_1.map)({});
3522
3451
  const data = parsedOutput.body;
3523
- if (data.Message != null) {
3524
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3525
- }
3452
+ const doc = (0, smithy_client_1.take)(data, {
3453
+ Message: smithy_client_1.expectString,
3454
+ });
3455
+ Object.assign(contents, doc);
3526
3456
  const exception = new models_0_1.TransactionCommittedException({
3527
3457
  $metadata: deserializeMetadata(parsedOutput),
3528
3458
  ...contents,
@@ -3530,939 +3460,59 @@ const de_TransactionCommittedExceptionRes = async (parsedOutput, context) => {
3530
3460
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3531
3461
  };
3532
3462
  const de_WorkUnitsNotReadyYetExceptionRes = async (parsedOutput, context) => {
3533
- const contents = map({});
3463
+ const contents = (0, smithy_client_1.map)({});
3534
3464
  const data = parsedOutput.body;
3535
- if (data.Message != null) {
3536
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3537
- }
3465
+ const doc = (0, smithy_client_1.take)(data, {
3466
+ Message: smithy_client_1.expectString,
3467
+ });
3468
+ Object.assign(contents, doc);
3538
3469
  const exception = new models_0_1.WorkUnitsNotReadyYetException({
3539
3470
  $metadata: deserializeMetadata(parsedOutput),
3540
3471
  ...contents,
3541
3472
  });
3542
3473
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3543
3474
  };
3544
- const se_AddObjectInput = (input, context) => {
3545
- return {
3546
- ...(input.ETag != null && { ETag: input.ETag }),
3547
- ...(input.PartitionValues != null && { PartitionValues: se_PartitionValuesList(input.PartitionValues, context) }),
3548
- ...(input.Size != null && { Size: input.Size }),
3549
- ...(input.Uri != null && { Uri: input.Uri }),
3550
- };
3551
- };
3552
- const se_AllRowsWildcard = (input, context) => {
3553
- return {};
3554
- };
3555
- const se_AuditContext = (input, context) => {
3556
- return {
3557
- ...(input.AdditionalAuditContext != null && { AdditionalAuditContext: input.AdditionalAuditContext }),
3558
- };
3559
- };
3560
- const se_AuthorizedSessionTagValueList = (input, context) => {
3561
- return input
3562
- .filter((e) => e != null)
3563
- .map((entry) => {
3564
- return entry;
3565
- });
3566
- };
3567
- const se_BatchPermissionsRequestEntry = (input, context) => {
3568
- return {
3569
- ...(input.Id != null && { Id: input.Id }),
3570
- ...(input.Permissions != null && { Permissions: se_PermissionList(input.Permissions, context) }),
3571
- ...(input.PermissionsWithGrantOption != null && {
3572
- PermissionsWithGrantOption: se_PermissionList(input.PermissionsWithGrantOption, context),
3573
- }),
3574
- ...(input.Principal != null && { Principal: se_DataLakePrincipal(input.Principal, context) }),
3575
- ...(input.Resource != null && { Resource: se_Resource(input.Resource, context) }),
3576
- };
3577
- };
3578
- const se_BatchPermissionsRequestEntryList = (input, context) => {
3579
- return input
3580
- .filter((e) => e != null)
3581
- .map((entry) => {
3582
- return se_BatchPermissionsRequestEntry(entry, context);
3583
- });
3584
- };
3585
- const se_CatalogResource = (input, context) => {
3586
- return {};
3587
- };
3588
- const se_ColumnNames = (input, context) => {
3589
- return input
3590
- .filter((e) => e != null)
3591
- .map((entry) => {
3592
- return entry;
3593
- });
3594
- };
3595
- const se_ColumnWildcard = (input, context) => {
3596
- return {
3597
- ...(input.ExcludedColumnNames != null && {
3598
- ExcludedColumnNames: se_ColumnNames(input.ExcludedColumnNames, context),
3599
- }),
3600
- };
3601
- };
3602
- const se_DatabaseResource = (input, context) => {
3603
- return {
3604
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3605
- ...(input.Name != null && { Name: input.Name }),
3606
- };
3607
- };
3608
- const se_DataCellsFilter = (input, context) => {
3609
- return {
3610
- ...(input.ColumnNames != null && { ColumnNames: se_ColumnNames(input.ColumnNames, context) }),
3611
- ...(input.ColumnWildcard != null && { ColumnWildcard: se_ColumnWildcard(input.ColumnWildcard, context) }),
3612
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3613
- ...(input.Name != null && { Name: input.Name }),
3614
- ...(input.RowFilter != null && { RowFilter: se_RowFilter(input.RowFilter, context) }),
3615
- ...(input.TableCatalogId != null && { TableCatalogId: input.TableCatalogId }),
3616
- ...(input.TableName != null && { TableName: input.TableName }),
3617
- ...(input.VersionId != null && { VersionId: input.VersionId }),
3618
- };
3619
- };
3620
- const se_DataCellsFilterResource = (input, context) => {
3621
- return {
3622
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3623
- ...(input.Name != null && { Name: input.Name }),
3624
- ...(input.TableCatalogId != null && { TableCatalogId: input.TableCatalogId }),
3625
- ...(input.TableName != null && { TableName: input.TableName }),
3626
- };
3627
- };
3628
- const se_DataLakePrincipal = (input, context) => {
3629
- return {
3630
- ...(input.DataLakePrincipalIdentifier != null && {
3631
- DataLakePrincipalIdentifier: input.DataLakePrincipalIdentifier,
3632
- }),
3633
- };
3634
- };
3635
- const se_DataLakePrincipalList = (input, context) => {
3636
- return input
3637
- .filter((e) => e != null)
3638
- .map((entry) => {
3639
- return se_DataLakePrincipal(entry, context);
3640
- });
3641
- };
3642
- const se_DataLakeSettings = (input, context) => {
3643
- return {
3644
- ...(input.AllowExternalDataFiltering != null && { AllowExternalDataFiltering: input.AllowExternalDataFiltering }),
3645
- ...(input.AuthorizedSessionTagValueList != null && {
3646
- AuthorizedSessionTagValueList: se_AuthorizedSessionTagValueList(input.AuthorizedSessionTagValueList, context),
3647
- }),
3648
- ...(input.CreateDatabaseDefaultPermissions != null && {
3649
- CreateDatabaseDefaultPermissions: se_PrincipalPermissionsList(input.CreateDatabaseDefaultPermissions, context),
3650
- }),
3651
- ...(input.CreateTableDefaultPermissions != null && {
3652
- CreateTableDefaultPermissions: se_PrincipalPermissionsList(input.CreateTableDefaultPermissions, context),
3653
- }),
3654
- ...(input.DataLakeAdmins != null && { DataLakeAdmins: se_DataLakePrincipalList(input.DataLakeAdmins, context) }),
3655
- ...(input.ExternalDataFilteringAllowList != null && {
3656
- ExternalDataFilteringAllowList: se_DataLakePrincipalList(input.ExternalDataFilteringAllowList, context),
3657
- }),
3658
- ...(input.Parameters != null && { Parameters: se_ParametersMap(input.Parameters, context) }),
3659
- ...(input.TrustedResourceOwners != null && {
3660
- TrustedResourceOwners: se_TrustedResourceOwners(input.TrustedResourceOwners, context),
3661
- }),
3662
- };
3663
- };
3664
- const se_DataLocationResource = (input, context) => {
3665
- return {
3666
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3667
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3668
- };
3669
- };
3670
- const se_DeleteObjectInput = (input, context) => {
3671
- return {
3672
- ...(input.ETag != null && { ETag: input.ETag }),
3673
- ...(input.PartitionValues != null && { PartitionValues: se_PartitionValuesList(input.PartitionValues, context) }),
3674
- ...(input.Uri != null && { Uri: input.Uri }),
3675
- };
3676
- };
3677
- const se_Expression = (input, context) => {
3678
- return input
3679
- .filter((e) => e != null)
3680
- .map((entry) => {
3681
- return se_LFTag(entry, context);
3682
- });
3683
- };
3684
- const se_FilterCondition = (input, context) => {
3685
- return {
3686
- ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3687
- ...(input.Field != null && { Field: input.Field }),
3688
- ...(input.StringValueList != null && { StringValueList: se_StringValueList(input.StringValueList, context) }),
3689
- };
3690
- };
3691
- const se_FilterConditionList = (input, context) => {
3692
- return input
3693
- .filter((e) => e != null)
3694
- .map((entry) => {
3695
- return se_FilterCondition(entry, context);
3696
- });
3697
- };
3698
- const se_LFTag = (input, context) => {
3699
- return {
3700
- ...(input.TagKey != null && { TagKey: input.TagKey }),
3701
- ...(input.TagValues != null && { TagValues: se_TagValueList(input.TagValues, context) }),
3702
- };
3703
- };
3704
- const se_LFTagKeyResource = (input, context) => {
3705
- return {
3706
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3707
- ...(input.TagKey != null && { TagKey: input.TagKey }),
3708
- ...(input.TagValues != null && { TagValues: se_TagValueList(input.TagValues, context) }),
3709
- };
3710
- };
3711
- const se_LFTagPair = (input, context) => {
3712
- return {
3713
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3714
- ...(input.TagKey != null && { TagKey: input.TagKey }),
3715
- ...(input.TagValues != null && { TagValues: se_TagValueList(input.TagValues, context) }),
3716
- };
3717
- };
3718
- const se_LFTagPolicyResource = (input, context) => {
3719
- return {
3720
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3721
- ...(input.Expression != null && { Expression: se_Expression(input.Expression, context) }),
3722
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
3723
- };
3724
- };
3725
- const se_LFTagsList = (input, context) => {
3726
- return input
3727
- .filter((e) => e != null)
3728
- .map((entry) => {
3729
- return se_LFTagPair(entry, context);
3475
+ const se_QueryPlanningContext = (input, context) => {
3476
+ return (0, smithy_client_1.take)(input, {
3477
+ CatalogId: [],
3478
+ DatabaseName: [],
3479
+ QueryAsOfTime: (_) => Math.round(_.getTime() / 1000),
3480
+ QueryParameters: smithy_client_1._json,
3481
+ TransactionId: [],
3730
3482
  });
3731
3483
  };
3732
- const se_ParametersMap = (input, context) => {
3733
- return Object.entries(input).reduce((acc, [key, value]) => {
3734
- if (value === null) {
3735
- return acc;
3736
- }
3737
- acc[key] = value;
3738
- return acc;
3739
- }, {});
3740
- };
3741
- const se_PartitionValueList = (input, context) => {
3742
- return {
3743
- ...(input.Values != null && { Values: se_ValueStringList(input.Values, context) }),
3744
- };
3745
- };
3746
- const se_PartitionValuesList = (input, context) => {
3747
- return input
3748
- .filter((e) => e != null)
3749
- .map((entry) => {
3750
- return entry;
3484
+ const de_ResourceInfo = (output, context) => {
3485
+ return (0, smithy_client_1.take)(output, {
3486
+ LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3487
+ ResourceArn: smithy_client_1.expectString,
3488
+ RoleArn: smithy_client_1.expectString,
3489
+ WithFederation: smithy_client_1.expectBoolean,
3751
3490
  });
3752
3491
  };
3753
- const se_PermissionList = (input, context) => {
3754
- return input
3492
+ const de_ResourceInfoList = (output, context) => {
3493
+ const retVal = (output || [])
3755
3494
  .filter((e) => e != null)
3756
3495
  .map((entry) => {
3757
- return entry;
3496
+ return de_ResourceInfo(entry, context);
3758
3497
  });
3498
+ return retVal;
3759
3499
  };
3760
- const se_PermissionTypeList = (input, context) => {
3761
- return input
3762
- .filter((e) => e != null)
3763
- .map((entry) => {
3764
- return entry;
3500
+ const de_TransactionDescription = (output, context) => {
3501
+ return (0, smithy_client_1.take)(output, {
3502
+ TransactionEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3503
+ TransactionId: smithy_client_1.expectString,
3504
+ TransactionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3505
+ TransactionStatus: smithy_client_1.expectString,
3765
3506
  });
3766
3507
  };
3767
- const se_PrincipalPermissions = (input, context) => {
3768
- return {
3769
- ...(input.Permissions != null && { Permissions: se_PermissionList(input.Permissions, context) }),
3770
- ...(input.Principal != null && { Principal: se_DataLakePrincipal(input.Principal, context) }),
3771
- };
3772
- };
3773
- const se_PrincipalPermissionsList = (input, context) => {
3774
- return input
3508
+ const de_TransactionDescriptionList = (output, context) => {
3509
+ const retVal = (output || [])
3775
3510
  .filter((e) => e != null)
3776
3511
  .map((entry) => {
3777
- return se_PrincipalPermissions(entry, context);
3778
- });
3779
- };
3780
- const se_QueryParameterMap = (input, context) => {
3781
- return Object.entries(input).reduce((acc, [key, value]) => {
3782
- if (value === null) {
3783
- return acc;
3784
- }
3785
- acc[key] = value;
3786
- return acc;
3787
- }, {});
3788
- };
3789
- const se_QueryPlanningContext = (input, context) => {
3790
- return {
3791
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3792
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3793
- ...(input.QueryAsOfTime != null && { QueryAsOfTime: Math.round(input.QueryAsOfTime.getTime() / 1000) }),
3794
- ...(input.QueryParameters != null && { QueryParameters: se_QueryParameterMap(input.QueryParameters, context) }),
3795
- ...(input.TransactionId != null && { TransactionId: input.TransactionId }),
3796
- };
3797
- };
3798
- const se_Resource = (input, context) => {
3799
- return {
3800
- ...(input.Catalog != null && { Catalog: se_CatalogResource(input.Catalog, context) }),
3801
- ...(input.DataCellsFilter != null && {
3802
- DataCellsFilter: se_DataCellsFilterResource(input.DataCellsFilter, context),
3803
- }),
3804
- ...(input.DataLocation != null && { DataLocation: se_DataLocationResource(input.DataLocation, context) }),
3805
- ...(input.Database != null && { Database: se_DatabaseResource(input.Database, context) }),
3806
- ...(input.LFTag != null && { LFTag: se_LFTagKeyResource(input.LFTag, context) }),
3807
- ...(input.LFTagPolicy != null && { LFTagPolicy: se_LFTagPolicyResource(input.LFTagPolicy, context) }),
3808
- ...(input.Table != null && { Table: se_TableResource(input.Table, context) }),
3809
- ...(input.TableWithColumns != null && {
3810
- TableWithColumns: se_TableWithColumnsResource(input.TableWithColumns, context),
3811
- }),
3812
- };
3813
- };
3814
- const se_RowFilter = (input, context) => {
3815
- return {
3816
- ...(input.AllRowsWildcard != null && { AllRowsWildcard: se_AllRowsWildcard(input.AllRowsWildcard, context) }),
3817
- ...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
3818
- };
3819
- };
3820
- const se_StorageOptimizerConfig = (input, context) => {
3821
- return Object.entries(input).reduce((acc, [key, value]) => {
3822
- if (value === null) {
3823
- return acc;
3824
- }
3825
- acc[key] = value;
3826
- return acc;
3827
- }, {});
3828
- };
3829
- const se_StorageOptimizerConfigMap = (input, context) => {
3830
- return Object.entries(input).reduce((acc, [key, value]) => {
3831
- if (value === null) {
3832
- return acc;
3833
- }
3834
- acc[key] = se_StorageOptimizerConfig(value, context);
3835
- return acc;
3836
- }, {});
3837
- };
3838
- const se_StringValueList = (input, context) => {
3839
- return input
3840
- .filter((e) => e != null)
3841
- .map((entry) => {
3842
- return entry;
3843
- });
3844
- };
3845
- const se_TableResource = (input, context) => {
3846
- return {
3847
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3848
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3849
- ...(input.Name != null && { Name: input.Name }),
3850
- ...(input.TableWildcard != null && { TableWildcard: se_TableWildcard(input.TableWildcard, context) }),
3851
- };
3852
- };
3853
- const se_TableWildcard = (input, context) => {
3854
- return {};
3855
- };
3856
- const se_TableWithColumnsResource = (input, context) => {
3857
- return {
3858
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3859
- ...(input.ColumnNames != null && { ColumnNames: se_ColumnNames(input.ColumnNames, context) }),
3860
- ...(input.ColumnWildcard != null && { ColumnWildcard: se_ColumnWildcard(input.ColumnWildcard, context) }),
3861
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3862
- ...(input.Name != null && { Name: input.Name }),
3863
- };
3864
- };
3865
- const se_TagValueList = (input, context) => {
3866
- return input
3867
- .filter((e) => e != null)
3868
- .map((entry) => {
3869
- return entry;
3870
- });
3871
- };
3872
- const se_TrustedResourceOwners = (input, context) => {
3873
- return input
3874
- .filter((e) => e != null)
3875
- .map((entry) => {
3876
- return entry;
3877
- });
3878
- };
3879
- const se_ValueStringList = (input, context) => {
3880
- return input
3881
- .filter((e) => e != null)
3882
- .map((entry) => {
3883
- return entry;
3884
- });
3885
- };
3886
- const se_VirtualObject = (input, context) => {
3887
- return {
3888
- ...(input.ETag != null && { ETag: input.ETag }),
3889
- ...(input.Uri != null && { Uri: input.Uri }),
3890
- };
3891
- };
3892
- const se_VirtualObjectList = (input, context) => {
3893
- return input
3894
- .filter((e) => e != null)
3895
- .map((entry) => {
3896
- return se_VirtualObject(entry, context);
3897
- });
3898
- };
3899
- const se_WriteOperation = (input, context) => {
3900
- return {
3901
- ...(input.AddObject != null && { AddObject: se_AddObjectInput(input.AddObject, context) }),
3902
- ...(input.DeleteObject != null && { DeleteObject: se_DeleteObjectInput(input.DeleteObject, context) }),
3903
- };
3904
- };
3905
- const se_WriteOperationList = (input, context) => {
3906
- return input
3907
- .filter((e) => e != null)
3908
- .map((entry) => {
3909
- return se_WriteOperation(entry, context);
3910
- });
3911
- };
3912
- const de_AllRowsWildcard = (output, context) => {
3913
- return {};
3914
- };
3915
- const de_AuthorizedSessionTagValueList = (output, context) => {
3916
- const retVal = (output || [])
3917
- .filter((e) => e != null)
3918
- .map((entry) => {
3919
- if (entry === null) {
3920
- return null;
3921
- }
3922
- return (0, smithy_client_1.expectString)(entry);
3923
- });
3924
- return retVal;
3925
- };
3926
- const de_BatchPermissionsFailureEntry = (output, context) => {
3927
- return {
3928
- Error: output.Error != null ? de_ErrorDetail(output.Error, context) : undefined,
3929
- RequestEntry: output.RequestEntry != null ? de_BatchPermissionsRequestEntry(output.RequestEntry, context) : undefined,
3930
- };
3931
- };
3932
- const de_BatchPermissionsFailureList = (output, context) => {
3933
- const retVal = (output || [])
3934
- .filter((e) => e != null)
3935
- .map((entry) => {
3936
- if (entry === null) {
3937
- return null;
3938
- }
3939
- return de_BatchPermissionsFailureEntry(entry, context);
3940
- });
3941
- return retVal;
3942
- };
3943
- const de_BatchPermissionsRequestEntry = (output, context) => {
3944
- return {
3945
- Id: (0, smithy_client_1.expectString)(output.Id),
3946
- Permissions: output.Permissions != null ? de_PermissionList(output.Permissions, context) : undefined,
3947
- PermissionsWithGrantOption: output.PermissionsWithGrantOption != null
3948
- ? de_PermissionList(output.PermissionsWithGrantOption, context)
3949
- : undefined,
3950
- Principal: output.Principal != null ? de_DataLakePrincipal(output.Principal, context) : undefined,
3951
- Resource: output.Resource != null ? de_Resource(output.Resource, context) : undefined,
3952
- };
3953
- };
3954
- const de_CatalogResource = (output, context) => {
3955
- return {};
3956
- };
3957
- const de_ColumnLFTag = (output, context) => {
3958
- return {
3959
- LFTags: output.LFTags != null ? de_LFTagsList(output.LFTags, context) : undefined,
3960
- Name: (0, smithy_client_1.expectString)(output.Name),
3961
- };
3962
- };
3963
- const de_ColumnLFTagsList = (output, context) => {
3964
- const retVal = (output || [])
3965
- .filter((e) => e != null)
3966
- .map((entry) => {
3967
- if (entry === null) {
3968
- return null;
3969
- }
3970
- return de_ColumnLFTag(entry, context);
3971
- });
3972
- return retVal;
3973
- };
3974
- const de_ColumnNames = (output, context) => {
3975
- const retVal = (output || [])
3976
- .filter((e) => e != null)
3977
- .map((entry) => {
3978
- if (entry === null) {
3979
- return null;
3980
- }
3981
- return (0, smithy_client_1.expectString)(entry);
3982
- });
3983
- return retVal;
3984
- };
3985
- const de_ColumnWildcard = (output, context) => {
3986
- return {
3987
- ExcludedColumnNames: output.ExcludedColumnNames != null ? de_ColumnNames(output.ExcludedColumnNames, context) : undefined,
3988
- };
3989
- };
3990
- const de_DatabaseLFTagsList = (output, context) => {
3991
- const retVal = (output || [])
3992
- .filter((e) => e != null)
3993
- .map((entry) => {
3994
- if (entry === null) {
3995
- return null;
3996
- }
3997
- return de_TaggedDatabase(entry, context);
3998
- });
3999
- return retVal;
4000
- };
4001
- const de_DatabaseResource = (output, context) => {
4002
- return {
4003
- CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4004
- Name: (0, smithy_client_1.expectString)(output.Name),
4005
- };
4006
- };
4007
- const de_DataCellsFilter = (output, context) => {
4008
- return {
4009
- ColumnNames: output.ColumnNames != null ? de_ColumnNames(output.ColumnNames, context) : undefined,
4010
- ColumnWildcard: output.ColumnWildcard != null ? de_ColumnWildcard(output.ColumnWildcard, context) : undefined,
4011
- DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
4012
- Name: (0, smithy_client_1.expectString)(output.Name),
4013
- RowFilter: output.RowFilter != null ? de_RowFilter(output.RowFilter, context) : undefined,
4014
- TableCatalogId: (0, smithy_client_1.expectString)(output.TableCatalogId),
4015
- TableName: (0, smithy_client_1.expectString)(output.TableName),
4016
- VersionId: (0, smithy_client_1.expectString)(output.VersionId),
4017
- };
4018
- };
4019
- const de_DataCellsFilterList = (output, context) => {
4020
- const retVal = (output || [])
4021
- .filter((e) => e != null)
4022
- .map((entry) => {
4023
- if (entry === null) {
4024
- return null;
4025
- }
4026
- return de_DataCellsFilter(entry, context);
4027
- });
4028
- return retVal;
4029
- };
4030
- const de_DataCellsFilterResource = (output, context) => {
4031
- return {
4032
- DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
4033
- Name: (0, smithy_client_1.expectString)(output.Name),
4034
- TableCatalogId: (0, smithy_client_1.expectString)(output.TableCatalogId),
4035
- TableName: (0, smithy_client_1.expectString)(output.TableName),
4036
- };
4037
- };
4038
- const de_DataLakePrincipal = (output, context) => {
4039
- return {
4040
- DataLakePrincipalIdentifier: (0, smithy_client_1.expectString)(output.DataLakePrincipalIdentifier),
4041
- };
4042
- };
4043
- const de_DataLakePrincipalList = (output, context) => {
4044
- const retVal = (output || [])
4045
- .filter((e) => e != null)
4046
- .map((entry) => {
4047
- if (entry === null) {
4048
- return null;
4049
- }
4050
- return de_DataLakePrincipal(entry, context);
4051
- });
4052
- return retVal;
4053
- };
4054
- const de_DataLakeSettings = (output, context) => {
4055
- return {
4056
- AllowExternalDataFiltering: (0, smithy_client_1.expectBoolean)(output.AllowExternalDataFiltering),
4057
- AuthorizedSessionTagValueList: output.AuthorizedSessionTagValueList != null
4058
- ? de_AuthorizedSessionTagValueList(output.AuthorizedSessionTagValueList, context)
4059
- : undefined,
4060
- CreateDatabaseDefaultPermissions: output.CreateDatabaseDefaultPermissions != null
4061
- ? de_PrincipalPermissionsList(output.CreateDatabaseDefaultPermissions, context)
4062
- : undefined,
4063
- CreateTableDefaultPermissions: output.CreateTableDefaultPermissions != null
4064
- ? de_PrincipalPermissionsList(output.CreateTableDefaultPermissions, context)
4065
- : undefined,
4066
- DataLakeAdmins: output.DataLakeAdmins != null ? de_DataLakePrincipalList(output.DataLakeAdmins, context) : undefined,
4067
- ExternalDataFilteringAllowList: output.ExternalDataFilteringAllowList != null
4068
- ? de_DataLakePrincipalList(output.ExternalDataFilteringAllowList, context)
4069
- : undefined,
4070
- Parameters: output.Parameters != null ? de_ParametersMap(output.Parameters, context) : undefined,
4071
- TrustedResourceOwners: output.TrustedResourceOwners != null
4072
- ? de_TrustedResourceOwners(output.TrustedResourceOwners, context)
4073
- : undefined,
4074
- };
4075
- };
4076
- const de_DataLocationResource = (output, context) => {
4077
- return {
4078
- CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4079
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4080
- };
4081
- };
4082
- const de_DetailsMap = (output, context) => {
4083
- return {
4084
- ResourceShare: output.ResourceShare != null ? de_ResourceShareList(output.ResourceShare, context) : undefined,
4085
- };
4086
- };
4087
- const de_ErrorDetail = (output, context) => {
4088
- return {
4089
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4090
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4091
- };
4092
- };
4093
- const de_ExecutionStatistics = (output, context) => {
4094
- return {
4095
- AverageExecutionTimeMillis: (0, smithy_client_1.expectLong)(output.AverageExecutionTimeMillis),
4096
- DataScannedBytes: (0, smithy_client_1.expectLong)(output.DataScannedBytes),
4097
- WorkUnitsExecutedCount: (0, smithy_client_1.expectLong)(output.WorkUnitsExecutedCount),
4098
- };
4099
- };
4100
- const de_Expression = (output, context) => {
4101
- const retVal = (output || [])
4102
- .filter((e) => e != null)
4103
- .map((entry) => {
4104
- if (entry === null) {
4105
- return null;
4106
- }
4107
- return de_LFTag(entry, context);
4108
- });
4109
- return retVal;
4110
- };
4111
- const de_LFTag = (output, context) => {
4112
- return {
4113
- TagKey: (0, smithy_client_1.expectString)(output.TagKey),
4114
- TagValues: output.TagValues != null ? de_TagValueList(output.TagValues, context) : undefined,
4115
- };
4116
- };
4117
- const de_LFTagError = (output, context) => {
4118
- return {
4119
- Error: output.Error != null ? de_ErrorDetail(output.Error, context) : undefined,
4120
- LFTag: output.LFTag != null ? de_LFTagPair(output.LFTag, context) : undefined,
4121
- };
4122
- };
4123
- const de_LFTagErrors = (output, context) => {
4124
- const retVal = (output || [])
4125
- .filter((e) => e != null)
4126
- .map((entry) => {
4127
- if (entry === null) {
4128
- return null;
4129
- }
4130
- return de_LFTagError(entry, context);
4131
- });
4132
- return retVal;
4133
- };
4134
- const de_LFTagKeyResource = (output, context) => {
4135
- return {
4136
- CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4137
- TagKey: (0, smithy_client_1.expectString)(output.TagKey),
4138
- TagValues: output.TagValues != null ? de_TagValueList(output.TagValues, context) : undefined,
4139
- };
4140
- };
4141
- const de_LFTagPair = (output, context) => {
4142
- return {
4143
- CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4144
- TagKey: (0, smithy_client_1.expectString)(output.TagKey),
4145
- TagValues: output.TagValues != null ? de_TagValueList(output.TagValues, context) : undefined,
4146
- };
4147
- };
4148
- const de_LFTagPolicyResource = (output, context) => {
4149
- return {
4150
- CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4151
- Expression: output.Expression != null ? de_Expression(output.Expression, context) : undefined,
4152
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4153
- };
4154
- };
4155
- const de_LFTagsList = (output, context) => {
4156
- const retVal = (output || [])
4157
- .filter((e) => e != null)
4158
- .map((entry) => {
4159
- if (entry === null) {
4160
- return null;
4161
- }
4162
- return de_LFTagPair(entry, context);
4163
- });
4164
- return retVal;
4165
- };
4166
- const de_ParametersMap = (output, context) => {
4167
- return Object.entries(output).reduce((acc, [key, value]) => {
4168
- if (value === null) {
4169
- return acc;
4170
- }
4171
- acc[key] = (0, smithy_client_1.expectString)(value);
4172
- return acc;
4173
- }, {});
4174
- };
4175
- const de_PartitionedTableObjectsList = (output, context) => {
4176
- const retVal = (output || [])
4177
- .filter((e) => e != null)
4178
- .map((entry) => {
4179
- if (entry === null) {
4180
- return null;
4181
- }
4182
- return de_PartitionObjects(entry, context);
4183
- });
4184
- return retVal;
4185
- };
4186
- const de_PartitionObjects = (output, context) => {
4187
- return {
4188
- Objects: output.Objects != null ? de_TableObjectList(output.Objects, context) : undefined,
4189
- PartitionValues: output.PartitionValues != null ? de_PartitionValuesList(output.PartitionValues, context) : undefined,
4190
- };
4191
- };
4192
- const de_PartitionValuesList = (output, context) => {
4193
- const retVal = (output || [])
4194
- .filter((e) => e != null)
4195
- .map((entry) => {
4196
- if (entry === null) {
4197
- return null;
4198
- }
4199
- return (0, smithy_client_1.expectString)(entry);
4200
- });
4201
- return retVal;
4202
- };
4203
- const de_PermissionList = (output, context) => {
4204
- const retVal = (output || [])
4205
- .filter((e) => e != null)
4206
- .map((entry) => {
4207
- if (entry === null) {
4208
- return null;
4209
- }
4210
- return (0, smithy_client_1.expectString)(entry);
4211
- });
4212
- return retVal;
4213
- };
4214
- const de_PlanningStatistics = (output, context) => {
4215
- return {
4216
- EstimatedDataToScanBytes: (0, smithy_client_1.expectLong)(output.EstimatedDataToScanBytes),
4217
- PlanningTimeMillis: (0, smithy_client_1.expectLong)(output.PlanningTimeMillis),
4218
- QueueTimeMillis: (0, smithy_client_1.expectLong)(output.QueueTimeMillis),
4219
- WorkUnitsGeneratedCount: (0, smithy_client_1.expectLong)(output.WorkUnitsGeneratedCount),
4220
- };
4221
- };
4222
- const de_PrincipalPermissions = (output, context) => {
4223
- return {
4224
- Permissions: output.Permissions != null ? de_PermissionList(output.Permissions, context) : undefined,
4225
- Principal: output.Principal != null ? de_DataLakePrincipal(output.Principal, context) : undefined,
4226
- };
4227
- };
4228
- const de_PrincipalPermissionsList = (output, context) => {
4229
- const retVal = (output || [])
4230
- .filter((e) => e != null)
4231
- .map((entry) => {
4232
- if (entry === null) {
4233
- return null;
4234
- }
4235
- return de_PrincipalPermissions(entry, context);
4236
- });
4237
- return retVal;
4238
- };
4239
- const de_PrincipalResourcePermissions = (output, context) => {
4240
- return {
4241
- AdditionalDetails: output.AdditionalDetails != null ? de_DetailsMap(output.AdditionalDetails, context) : undefined,
4242
- Permissions: output.Permissions != null ? de_PermissionList(output.Permissions, context) : undefined,
4243
- PermissionsWithGrantOption: output.PermissionsWithGrantOption != null
4244
- ? de_PermissionList(output.PermissionsWithGrantOption, context)
4245
- : undefined,
4246
- Principal: output.Principal != null ? de_DataLakePrincipal(output.Principal, context) : undefined,
4247
- Resource: output.Resource != null ? de_Resource(output.Resource, context) : undefined,
4248
- };
4249
- };
4250
- const de_PrincipalResourcePermissionsList = (output, context) => {
4251
- const retVal = (output || [])
4252
- .filter((e) => e != null)
4253
- .map((entry) => {
4254
- if (entry === null) {
4255
- return null;
4256
- }
4257
- return de_PrincipalResourcePermissions(entry, context);
4258
- });
4259
- return retVal;
4260
- };
4261
- const de_Resource = (output, context) => {
4262
- return {
4263
- Catalog: output.Catalog != null ? de_CatalogResource(output.Catalog, context) : undefined,
4264
- DataCellsFilter: output.DataCellsFilter != null ? de_DataCellsFilterResource(output.DataCellsFilter, context) : undefined,
4265
- DataLocation: output.DataLocation != null ? de_DataLocationResource(output.DataLocation, context) : undefined,
4266
- Database: output.Database != null ? de_DatabaseResource(output.Database, context) : undefined,
4267
- LFTag: output.LFTag != null ? de_LFTagKeyResource(output.LFTag, context) : undefined,
4268
- LFTagPolicy: output.LFTagPolicy != null ? de_LFTagPolicyResource(output.LFTagPolicy, context) : undefined,
4269
- Table: output.Table != null ? de_TableResource(output.Table, context) : undefined,
4270
- TableWithColumns: output.TableWithColumns != null ? de_TableWithColumnsResource(output.TableWithColumns, context) : undefined,
4271
- };
4272
- };
4273
- const de_ResourceInfo = (output, context) => {
4274
- return {
4275
- LastModified: output.LastModified != null
4276
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
4277
- : undefined,
4278
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4279
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4280
- WithFederation: (0, smithy_client_1.expectBoolean)(output.WithFederation),
4281
- };
4282
- };
4283
- const de_ResourceInfoList = (output, context) => {
4284
- const retVal = (output || [])
4285
- .filter((e) => e != null)
4286
- .map((entry) => {
4287
- if (entry === null) {
4288
- return null;
4289
- }
4290
- return de_ResourceInfo(entry, context);
4291
- });
4292
- return retVal;
4293
- };
4294
- const de_ResourceShareList = (output, context) => {
4295
- const retVal = (output || [])
4296
- .filter((e) => e != null)
4297
- .map((entry) => {
4298
- if (entry === null) {
4299
- return null;
4300
- }
4301
- return (0, smithy_client_1.expectString)(entry);
4302
- });
4303
- return retVal;
4304
- };
4305
- const de_RowFilter = (output, context) => {
4306
- return {
4307
- AllRowsWildcard: output.AllRowsWildcard != null ? de_AllRowsWildcard(output.AllRowsWildcard, context) : undefined,
4308
- FilterExpression: (0, smithy_client_1.expectString)(output.FilterExpression),
4309
- };
4310
- };
4311
- const de_StorageOptimizer = (output, context) => {
4312
- return {
4313
- Config: output.Config != null ? de_StorageOptimizerConfig(output.Config, context) : undefined,
4314
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4315
- LastRunDetails: (0, smithy_client_1.expectString)(output.LastRunDetails),
4316
- StorageOptimizerType: (0, smithy_client_1.expectString)(output.StorageOptimizerType),
4317
- Warnings: (0, smithy_client_1.expectString)(output.Warnings),
4318
- };
4319
- };
4320
- const de_StorageOptimizerConfig = (output, context) => {
4321
- return Object.entries(output).reduce((acc, [key, value]) => {
4322
- if (value === null) {
4323
- return acc;
4324
- }
4325
- acc[key] = (0, smithy_client_1.expectString)(value);
4326
- return acc;
4327
- }, {});
4328
- };
4329
- const de_StorageOptimizerList = (output, context) => {
4330
- const retVal = (output || [])
4331
- .filter((e) => e != null)
4332
- .map((entry) => {
4333
- if (entry === null) {
4334
- return null;
4335
- }
4336
- return de_StorageOptimizer(entry, context);
4337
- });
4338
- return retVal;
4339
- };
4340
- const de_TableLFTagsList = (output, context) => {
4341
- const retVal = (output || [])
4342
- .filter((e) => e != null)
4343
- .map((entry) => {
4344
- if (entry === null) {
4345
- return null;
4346
- }
4347
- return de_TaggedTable(entry, context);
4348
- });
4349
- return retVal;
4350
- };
4351
- const de_TableObject = (output, context) => {
4352
- return {
4353
- ETag: (0, smithy_client_1.expectString)(output.ETag),
4354
- Size: (0, smithy_client_1.expectLong)(output.Size),
4355
- Uri: (0, smithy_client_1.expectString)(output.Uri),
4356
- };
4357
- };
4358
- const de_TableObjectList = (output, context) => {
4359
- const retVal = (output || [])
4360
- .filter((e) => e != null)
4361
- .map((entry) => {
4362
- if (entry === null) {
4363
- return null;
4364
- }
4365
- return de_TableObject(entry, context);
4366
- });
4367
- return retVal;
4368
- };
4369
- const de_TableResource = (output, context) => {
4370
- return {
4371
- CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4372
- DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
4373
- Name: (0, smithy_client_1.expectString)(output.Name),
4374
- TableWildcard: output.TableWildcard != null ? de_TableWildcard(output.TableWildcard, context) : undefined,
4375
- };
4376
- };
4377
- const de_TableWildcard = (output, context) => {
4378
- return {};
4379
- };
4380
- const de_TableWithColumnsResource = (output, context) => {
4381
- return {
4382
- CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4383
- ColumnNames: output.ColumnNames != null ? de_ColumnNames(output.ColumnNames, context) : undefined,
4384
- ColumnWildcard: output.ColumnWildcard != null ? de_ColumnWildcard(output.ColumnWildcard, context) : undefined,
4385
- DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
4386
- Name: (0, smithy_client_1.expectString)(output.Name),
4387
- };
4388
- };
4389
- const de_TaggedDatabase = (output, context) => {
4390
- return {
4391
- Database: output.Database != null ? de_DatabaseResource(output.Database, context) : undefined,
4392
- LFTags: output.LFTags != null ? de_LFTagsList(output.LFTags, context) : undefined,
4393
- };
4394
- };
4395
- const de_TaggedTable = (output, context) => {
4396
- return {
4397
- LFTagOnDatabase: output.LFTagOnDatabase != null ? de_LFTagsList(output.LFTagOnDatabase, context) : undefined,
4398
- LFTagsOnColumns: output.LFTagsOnColumns != null ? de_ColumnLFTagsList(output.LFTagsOnColumns, context) : undefined,
4399
- LFTagsOnTable: output.LFTagsOnTable != null ? de_LFTagsList(output.LFTagsOnTable, context) : undefined,
4400
- Table: output.Table != null ? de_TableResource(output.Table, context) : undefined,
4401
- };
4402
- };
4403
- const de_TagValueList = (output, context) => {
4404
- const retVal = (output || [])
4405
- .filter((e) => e != null)
4406
- .map((entry) => {
4407
- if (entry === null) {
4408
- return null;
4409
- }
4410
- return (0, smithy_client_1.expectString)(entry);
4411
- });
4412
- return retVal;
4413
- };
4414
- const de_TransactionDescription = (output, context) => {
4415
- return {
4416
- TransactionEndTime: output.TransactionEndTime != null
4417
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TransactionEndTime)))
4418
- : undefined,
4419
- TransactionId: (0, smithy_client_1.expectString)(output.TransactionId),
4420
- TransactionStartTime: output.TransactionStartTime != null
4421
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TransactionStartTime)))
4422
- : undefined,
4423
- TransactionStatus: (0, smithy_client_1.expectString)(output.TransactionStatus),
4424
- };
4425
- };
4426
- const de_TransactionDescriptionList = (output, context) => {
4427
- const retVal = (output || [])
4428
- .filter((e) => e != null)
4429
- .map((entry) => {
4430
- if (entry === null) {
4431
- return null;
4432
- }
4433
3512
  return de_TransactionDescription(entry, context);
4434
3513
  });
4435
3514
  return retVal;
4436
3515
  };
4437
- const de_TrustedResourceOwners = (output, context) => {
4438
- const retVal = (output || [])
4439
- .filter((e) => e != null)
4440
- .map((entry) => {
4441
- if (entry === null) {
4442
- return null;
4443
- }
4444
- return (0, smithy_client_1.expectString)(entry);
4445
- });
4446
- return retVal;
4447
- };
4448
- const de_WorkUnitRange = (output, context) => {
4449
- return {
4450
- WorkUnitIdMax: (0, smithy_client_1.expectLong)(output.WorkUnitIdMax),
4451
- WorkUnitIdMin: (0, smithy_client_1.expectLong)(output.WorkUnitIdMin),
4452
- WorkUnitToken: (0, smithy_client_1.expectString)(output.WorkUnitToken),
4453
- };
4454
- };
4455
- const de_WorkUnitRangeList = (output, context) => {
4456
- const retVal = (output || [])
4457
- .filter((e) => e != null)
4458
- .map((entry) => {
4459
- if (entry === null) {
4460
- return null;
4461
- }
4462
- return de_WorkUnitRange(entry, context);
4463
- });
4464
- return retVal;
4465
- };
4466
3516
  const deserializeMetadata = (output) => ({
4467
3517
  httpStatusCode: output.statusCode,
4468
3518
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],