@aws-sdk/client-lakeformation 3.489.0 → 3.495.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.
Files changed (80) hide show
  1. package/dist-cjs/LakeFormation.js +1 -119
  2. package/dist-cjs/LakeFormationClient.js +1 -43
  3. package/dist-cjs/commands/AddLFTagsToResourceCommand.js +1 -28
  4. package/dist-cjs/commands/AssumeDecoratedRoleWithSAMLCommand.js +1 -28
  5. package/dist-cjs/commands/BatchGrantPermissionsCommand.js +1 -28
  6. package/dist-cjs/commands/BatchRevokePermissionsCommand.js +1 -28
  7. package/dist-cjs/commands/CancelTransactionCommand.js +1 -28
  8. package/dist-cjs/commands/CommitTransactionCommand.js +1 -28
  9. package/dist-cjs/commands/CreateDataCellsFilterCommand.js +1 -28
  10. package/dist-cjs/commands/CreateLFTagCommand.js +1 -28
  11. package/dist-cjs/commands/CreateLakeFormationIdentityCenterConfigurationCommand.js +1 -28
  12. package/dist-cjs/commands/CreateLakeFormationOptInCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteDataCellsFilterCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteLFTagCommand.js +1 -28
  15. package/dist-cjs/commands/DeleteLakeFormationIdentityCenterConfigurationCommand.js +1 -28
  16. package/dist-cjs/commands/DeleteLakeFormationOptInCommand.js +1 -28
  17. package/dist-cjs/commands/DeleteObjectsOnCancelCommand.js +1 -28
  18. package/dist-cjs/commands/DeregisterResourceCommand.js +1 -28
  19. package/dist-cjs/commands/DescribeLakeFormationIdentityCenterConfigurationCommand.js +1 -28
  20. package/dist-cjs/commands/DescribeResourceCommand.js +1 -28
  21. package/dist-cjs/commands/DescribeTransactionCommand.js +1 -28
  22. package/dist-cjs/commands/ExtendTransactionCommand.js +1 -28
  23. package/dist-cjs/commands/GetDataCellsFilterCommand.js +1 -28
  24. package/dist-cjs/commands/GetDataLakeSettingsCommand.js +1 -28
  25. package/dist-cjs/commands/GetEffectivePermissionsForPathCommand.js +1 -28
  26. package/dist-cjs/commands/GetLFTagCommand.js +1 -28
  27. package/dist-cjs/commands/GetQueryStateCommand.js +1 -28
  28. package/dist-cjs/commands/GetQueryStatisticsCommand.js +1 -28
  29. package/dist-cjs/commands/GetResourceLFTagsCommand.js +1 -28
  30. package/dist-cjs/commands/GetTableObjectsCommand.js +1 -28
  31. package/dist-cjs/commands/GetTemporaryGluePartitionCredentialsCommand.js +1 -28
  32. package/dist-cjs/commands/GetTemporaryGlueTableCredentialsCommand.js +1 -28
  33. package/dist-cjs/commands/GetWorkUnitResultsCommand.js +1 -29
  34. package/dist-cjs/commands/GetWorkUnitsCommand.js +1 -28
  35. package/dist-cjs/commands/GrantPermissionsCommand.js +1 -28
  36. package/dist-cjs/commands/ListDataCellsFilterCommand.js +1 -28
  37. package/dist-cjs/commands/ListLFTagsCommand.js +1 -28
  38. package/dist-cjs/commands/ListLakeFormationOptInsCommand.js +1 -28
  39. package/dist-cjs/commands/ListPermissionsCommand.js +1 -28
  40. package/dist-cjs/commands/ListResourcesCommand.js +1 -28
  41. package/dist-cjs/commands/ListTableStorageOptimizersCommand.js +1 -28
  42. package/dist-cjs/commands/ListTransactionsCommand.js +1 -28
  43. package/dist-cjs/commands/PutDataLakeSettingsCommand.js +1 -28
  44. package/dist-cjs/commands/RegisterResourceCommand.js +1 -28
  45. package/dist-cjs/commands/RemoveLFTagsFromResourceCommand.js +1 -28
  46. package/dist-cjs/commands/RevokePermissionsCommand.js +1 -28
  47. package/dist-cjs/commands/SearchDatabasesByLFTagsCommand.js +1 -28
  48. package/dist-cjs/commands/SearchTablesByLFTagsCommand.js +1 -28
  49. package/dist-cjs/commands/StartQueryPlanningCommand.js +1 -29
  50. package/dist-cjs/commands/StartTransactionCommand.js +1 -28
  51. package/dist-cjs/commands/UpdateDataCellsFilterCommand.js +1 -28
  52. package/dist-cjs/commands/UpdateLFTagCommand.js +1 -28
  53. package/dist-cjs/commands/UpdateLakeFormationIdentityCenterConfigurationCommand.js +1 -28
  54. package/dist-cjs/commands/UpdateResourceCommand.js +1 -28
  55. package/dist-cjs/commands/UpdateTableObjectsCommand.js +1 -28
  56. package/dist-cjs/commands/UpdateTableStorageOptimizerCommand.js +1 -28
  57. package/dist-cjs/commands/index.js +1 -57
  58. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  59. package/dist-cjs/extensionConfiguration.js +1 -2
  60. package/dist-cjs/index.js +5516 -11
  61. package/dist-cjs/models/LakeFormationServiceException.js +1 -12
  62. package/dist-cjs/models/index.js +1 -4
  63. package/dist-cjs/models/models_0.js +1 -368
  64. package/dist-cjs/pagination/GetEffectivePermissionsForPathPaginator.js +1 -7
  65. package/dist-cjs/pagination/GetTableObjectsPaginator.js +1 -7
  66. package/dist-cjs/pagination/GetWorkUnitsPaginator.js +1 -7
  67. package/dist-cjs/pagination/Interfaces.js +1 -2
  68. package/dist-cjs/pagination/ListDataCellsFilterPaginator.js +1 -7
  69. package/dist-cjs/pagination/ListLFTagsPaginator.js +1 -7
  70. package/dist-cjs/pagination/ListLakeFormationOptInsPaginator.js +1 -7
  71. package/dist-cjs/pagination/ListPermissionsPaginator.js +1 -7
  72. package/dist-cjs/pagination/ListResourcesPaginator.js +1 -7
  73. package/dist-cjs/pagination/ListTableStorageOptimizersPaginator.js +1 -7
  74. package/dist-cjs/pagination/ListTransactionsPaginator.js +1 -7
  75. package/dist-cjs/pagination/SearchDatabasesByLFTagsPaginator.js +1 -7
  76. package/dist-cjs/pagination/SearchTablesByLFTagsPaginator.js +1 -7
  77. package/dist-cjs/pagination/index.js +1 -16
  78. package/dist-cjs/protocols/Aws_restJson1.js +1 -3724
  79. package/dist-cjs/runtimeExtensions.js +1 -22
  80. package/package.json +41 -41
@@ -1,3724 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateLakeFormationIdentityCenterConfigurationCommand = exports.se_UpdateDataCellsFilterCommand = exports.se_StartTransactionCommand = exports.se_StartQueryPlanningCommand = exports.se_SearchTablesByLFTagsCommand = exports.se_SearchDatabasesByLFTagsCommand = exports.se_RevokePermissionsCommand = exports.se_RemoveLFTagsFromResourceCommand = exports.se_RegisterResourceCommand = exports.se_PutDataLakeSettingsCommand = exports.se_ListTransactionsCommand = exports.se_ListTableStorageOptimizersCommand = exports.se_ListResourcesCommand = exports.se_ListPermissionsCommand = exports.se_ListLFTagsCommand = exports.se_ListLakeFormationOptInsCommand = exports.se_ListDataCellsFilterCommand = exports.se_GrantPermissionsCommand = exports.se_GetWorkUnitsCommand = exports.se_GetWorkUnitResultsCommand = exports.se_GetTemporaryGlueTableCredentialsCommand = exports.se_GetTemporaryGluePartitionCredentialsCommand = exports.se_GetTableObjectsCommand = exports.se_GetResourceLFTagsCommand = exports.se_GetQueryStatisticsCommand = exports.se_GetQueryStateCommand = exports.se_GetLFTagCommand = exports.se_GetEffectivePermissionsForPathCommand = exports.se_GetDataLakeSettingsCommand = exports.se_GetDataCellsFilterCommand = exports.se_ExtendTransactionCommand = exports.se_DescribeTransactionCommand = exports.se_DescribeResourceCommand = exports.se_DescribeLakeFormationIdentityCenterConfigurationCommand = exports.se_DeregisterResourceCommand = exports.se_DeleteObjectsOnCancelCommand = exports.se_DeleteLFTagCommand = exports.se_DeleteLakeFormationOptInCommand = exports.se_DeleteLakeFormationIdentityCenterConfigurationCommand = exports.se_DeleteDataCellsFilterCommand = exports.se_CreateLFTagCommand = exports.se_CreateLakeFormationOptInCommand = exports.se_CreateLakeFormationIdentityCenterConfigurationCommand = exports.se_CreateDataCellsFilterCommand = exports.se_CommitTransactionCommand = exports.se_CancelTransactionCommand = exports.se_BatchRevokePermissionsCommand = exports.se_BatchGrantPermissionsCommand = exports.se_AssumeDecoratedRoleWithSAMLCommand = exports.se_AddLFTagsToResourceCommand = void 0;
4
- exports.de_SearchTablesByLFTagsCommand = exports.de_SearchDatabasesByLFTagsCommand = exports.de_RevokePermissionsCommand = exports.de_RemoveLFTagsFromResourceCommand = exports.de_RegisterResourceCommand = exports.de_PutDataLakeSettingsCommand = exports.de_ListTransactionsCommand = exports.de_ListTableStorageOptimizersCommand = exports.de_ListResourcesCommand = exports.de_ListPermissionsCommand = exports.de_ListLFTagsCommand = exports.de_ListLakeFormationOptInsCommand = exports.de_ListDataCellsFilterCommand = exports.de_GrantPermissionsCommand = exports.de_GetWorkUnitsCommand = exports.de_GetWorkUnitResultsCommand = exports.de_GetTemporaryGlueTableCredentialsCommand = exports.de_GetTemporaryGluePartitionCredentialsCommand = exports.de_GetTableObjectsCommand = exports.de_GetResourceLFTagsCommand = exports.de_GetQueryStatisticsCommand = exports.de_GetQueryStateCommand = exports.de_GetLFTagCommand = exports.de_GetEffectivePermissionsForPathCommand = exports.de_GetDataLakeSettingsCommand = exports.de_GetDataCellsFilterCommand = exports.de_ExtendTransactionCommand = exports.de_DescribeTransactionCommand = exports.de_DescribeResourceCommand = exports.de_DescribeLakeFormationIdentityCenterConfigurationCommand = exports.de_DeregisterResourceCommand = exports.de_DeleteObjectsOnCancelCommand = exports.de_DeleteLFTagCommand = exports.de_DeleteLakeFormationOptInCommand = exports.de_DeleteLakeFormationIdentityCenterConfigurationCommand = exports.de_DeleteDataCellsFilterCommand = exports.de_CreateLFTagCommand = exports.de_CreateLakeFormationOptInCommand = exports.de_CreateLakeFormationIdentityCenterConfigurationCommand = exports.de_CreateDataCellsFilterCommand = exports.de_CommitTransactionCommand = exports.de_CancelTransactionCommand = exports.de_BatchRevokePermissionsCommand = exports.de_BatchGrantPermissionsCommand = exports.de_AssumeDecoratedRoleWithSAMLCommand = exports.de_AddLFTagsToResourceCommand = exports.se_UpdateTableStorageOptimizerCommand = exports.se_UpdateTableObjectsCommand = exports.se_UpdateResourceCommand = exports.se_UpdateLFTagCommand = void 0;
5
- exports.de_UpdateTableStorageOptimizerCommand = exports.de_UpdateTableObjectsCommand = exports.de_UpdateResourceCommand = exports.de_UpdateLFTagCommand = exports.de_UpdateLakeFormationIdentityCenterConfigurationCommand = exports.de_UpdateDataCellsFilterCommand = exports.de_StartTransactionCommand = exports.de_StartQueryPlanningCommand = void 0;
6
- const core_1 = require("@smithy/core");
7
- const protocol_http_1 = require("@smithy/protocol-http");
8
- const smithy_client_1 = require("@smithy/smithy-client");
9
- const LakeFormationServiceException_1 = require("../models/LakeFormationServiceException");
10
- const models_0_1 = require("../models/models_0");
11
- const se_AddLFTagsToResourceCommand = async (input, context) => {
12
- const b = (0, core_1.requestBuilder)(input, context);
13
- const headers = {
14
- "content-type": "application/json",
15
- };
16
- b.bp("/AddLFTagsToResource");
17
- let body;
18
- body = JSON.stringify((0, smithy_client_1.take)(input, {
19
- CatalogId: [],
20
- LFTags: (_) => (0, smithy_client_1._json)(_),
21
- Resource: (_) => (0, smithy_client_1._json)(_),
22
- }));
23
- b.m("POST").h(headers).b(body);
24
- return b.build();
25
- };
26
- exports.se_AddLFTagsToResourceCommand = se_AddLFTagsToResourceCommand;
27
- const se_AssumeDecoratedRoleWithSAMLCommand = async (input, context) => {
28
- const b = (0, core_1.requestBuilder)(input, context);
29
- const headers = {
30
- "content-type": "application/json",
31
- };
32
- b.bp("/AssumeDecoratedRoleWithSAML");
33
- let body;
34
- body = JSON.stringify((0, smithy_client_1.take)(input, {
35
- DurationSeconds: [],
36
- PrincipalArn: [],
37
- RoleArn: [],
38
- SAMLAssertion: [],
39
- }));
40
- b.m("POST").h(headers).b(body);
41
- return b.build();
42
- };
43
- exports.se_AssumeDecoratedRoleWithSAMLCommand = se_AssumeDecoratedRoleWithSAMLCommand;
44
- const se_BatchGrantPermissionsCommand = async (input, context) => {
45
- const b = (0, core_1.requestBuilder)(input, context);
46
- const headers = {
47
- "content-type": "application/json",
48
- };
49
- b.bp("/BatchGrantPermissions");
50
- let body;
51
- body = JSON.stringify((0, smithy_client_1.take)(input, {
52
- CatalogId: [],
53
- Entries: (_) => (0, smithy_client_1._json)(_),
54
- }));
55
- b.m("POST").h(headers).b(body);
56
- return b.build();
57
- };
58
- exports.se_BatchGrantPermissionsCommand = se_BatchGrantPermissionsCommand;
59
- const se_BatchRevokePermissionsCommand = async (input, context) => {
60
- const b = (0, core_1.requestBuilder)(input, context);
61
- const headers = {
62
- "content-type": "application/json",
63
- };
64
- b.bp("/BatchRevokePermissions");
65
- let body;
66
- body = JSON.stringify((0, smithy_client_1.take)(input, {
67
- CatalogId: [],
68
- Entries: (_) => (0, smithy_client_1._json)(_),
69
- }));
70
- b.m("POST").h(headers).b(body);
71
- return b.build();
72
- };
73
- exports.se_BatchRevokePermissionsCommand = se_BatchRevokePermissionsCommand;
74
- const se_CancelTransactionCommand = async (input, context) => {
75
- const b = (0, core_1.requestBuilder)(input, context);
76
- const headers = {
77
- "content-type": "application/json",
78
- };
79
- b.bp("/CancelTransaction");
80
- let body;
81
- body = JSON.stringify((0, smithy_client_1.take)(input, {
82
- TransactionId: [],
83
- }));
84
- b.m("POST").h(headers).b(body);
85
- return b.build();
86
- };
87
- exports.se_CancelTransactionCommand = se_CancelTransactionCommand;
88
- const se_CommitTransactionCommand = async (input, context) => {
89
- const b = (0, core_1.requestBuilder)(input, context);
90
- const headers = {
91
- "content-type": "application/json",
92
- };
93
- b.bp("/CommitTransaction");
94
- let body;
95
- body = JSON.stringify((0, smithy_client_1.take)(input, {
96
- TransactionId: [],
97
- }));
98
- b.m("POST").h(headers).b(body);
99
- return b.build();
100
- };
101
- exports.se_CommitTransactionCommand = se_CommitTransactionCommand;
102
- const se_CreateDataCellsFilterCommand = async (input, context) => {
103
- const b = (0, core_1.requestBuilder)(input, context);
104
- const headers = {
105
- "content-type": "application/json",
106
- };
107
- b.bp("/CreateDataCellsFilter");
108
- let body;
109
- body = JSON.stringify((0, smithy_client_1.take)(input, {
110
- TableData: (_) => (0, smithy_client_1._json)(_),
111
- }));
112
- b.m("POST").h(headers).b(body);
113
- return b.build();
114
- };
115
- exports.se_CreateDataCellsFilterCommand = se_CreateDataCellsFilterCommand;
116
- const se_CreateLakeFormationIdentityCenterConfigurationCommand = async (input, context) => {
117
- const b = (0, core_1.requestBuilder)(input, context);
118
- const headers = {
119
- "content-type": "application/json",
120
- };
121
- b.bp("/CreateLakeFormationIdentityCenterConfiguration");
122
- let body;
123
- body = JSON.stringify((0, smithy_client_1.take)(input, {
124
- CatalogId: [],
125
- ExternalFiltering: (_) => (0, smithy_client_1._json)(_),
126
- InstanceArn: [],
127
- }));
128
- b.m("POST").h(headers).b(body);
129
- return b.build();
130
- };
131
- exports.se_CreateLakeFormationIdentityCenterConfigurationCommand = se_CreateLakeFormationIdentityCenterConfigurationCommand;
132
- const se_CreateLakeFormationOptInCommand = async (input, context) => {
133
- const b = (0, core_1.requestBuilder)(input, context);
134
- const headers = {
135
- "content-type": "application/json",
136
- };
137
- b.bp("/CreateLakeFormationOptIn");
138
- let body;
139
- body = JSON.stringify((0, smithy_client_1.take)(input, {
140
- Principal: (_) => (0, smithy_client_1._json)(_),
141
- Resource: (_) => (0, smithy_client_1._json)(_),
142
- }));
143
- b.m("POST").h(headers).b(body);
144
- return b.build();
145
- };
146
- exports.se_CreateLakeFormationOptInCommand = se_CreateLakeFormationOptInCommand;
147
- const se_CreateLFTagCommand = async (input, context) => {
148
- const b = (0, core_1.requestBuilder)(input, context);
149
- const headers = {
150
- "content-type": "application/json",
151
- };
152
- b.bp("/CreateLFTag");
153
- let body;
154
- body = JSON.stringify((0, smithy_client_1.take)(input, {
155
- CatalogId: [],
156
- TagKey: [],
157
- TagValues: (_) => (0, smithy_client_1._json)(_),
158
- }));
159
- b.m("POST").h(headers).b(body);
160
- return b.build();
161
- };
162
- exports.se_CreateLFTagCommand = se_CreateLFTagCommand;
163
- const se_DeleteDataCellsFilterCommand = async (input, context) => {
164
- const b = (0, core_1.requestBuilder)(input, context);
165
- const headers = {
166
- "content-type": "application/json",
167
- };
168
- b.bp("/DeleteDataCellsFilter");
169
- let body;
170
- body = JSON.stringify((0, smithy_client_1.take)(input, {
171
- DatabaseName: [],
172
- Name: [],
173
- TableCatalogId: [],
174
- TableName: [],
175
- }));
176
- b.m("POST").h(headers).b(body);
177
- return b.build();
178
- };
179
- exports.se_DeleteDataCellsFilterCommand = se_DeleteDataCellsFilterCommand;
180
- const se_DeleteLakeFormationIdentityCenterConfigurationCommand = async (input, context) => {
181
- const b = (0, core_1.requestBuilder)(input, context);
182
- const headers = {
183
- "content-type": "application/json",
184
- };
185
- b.bp("/DeleteLakeFormationIdentityCenterConfiguration");
186
- let body;
187
- body = JSON.stringify((0, smithy_client_1.take)(input, {
188
- CatalogId: [],
189
- }));
190
- b.m("POST").h(headers).b(body);
191
- return b.build();
192
- };
193
- exports.se_DeleteLakeFormationIdentityCenterConfigurationCommand = se_DeleteLakeFormationIdentityCenterConfigurationCommand;
194
- const se_DeleteLakeFormationOptInCommand = async (input, context) => {
195
- const b = (0, core_1.requestBuilder)(input, context);
196
- const headers = {
197
- "content-type": "application/json",
198
- };
199
- b.bp("/DeleteLakeFormationOptIn");
200
- let body;
201
- body = JSON.stringify((0, smithy_client_1.take)(input, {
202
- Principal: (_) => (0, smithy_client_1._json)(_),
203
- Resource: (_) => (0, smithy_client_1._json)(_),
204
- }));
205
- b.m("POST").h(headers).b(body);
206
- return b.build();
207
- };
208
- exports.se_DeleteLakeFormationOptInCommand = se_DeleteLakeFormationOptInCommand;
209
- const se_DeleteLFTagCommand = async (input, context) => {
210
- const b = (0, core_1.requestBuilder)(input, context);
211
- const headers = {
212
- "content-type": "application/json",
213
- };
214
- b.bp("/DeleteLFTag");
215
- let body;
216
- body = JSON.stringify((0, smithy_client_1.take)(input, {
217
- CatalogId: [],
218
- TagKey: [],
219
- }));
220
- b.m("POST").h(headers).b(body);
221
- return b.build();
222
- };
223
- exports.se_DeleteLFTagCommand = se_DeleteLFTagCommand;
224
- const se_DeleteObjectsOnCancelCommand = async (input, context) => {
225
- const b = (0, core_1.requestBuilder)(input, context);
226
- const headers = {
227
- "content-type": "application/json",
228
- };
229
- b.bp("/DeleteObjectsOnCancel");
230
- let body;
231
- body = JSON.stringify((0, smithy_client_1.take)(input, {
232
- CatalogId: [],
233
- DatabaseName: [],
234
- Objects: (_) => (0, smithy_client_1._json)(_),
235
- TableName: [],
236
- TransactionId: [],
237
- }));
238
- b.m("POST").h(headers).b(body);
239
- return b.build();
240
- };
241
- exports.se_DeleteObjectsOnCancelCommand = se_DeleteObjectsOnCancelCommand;
242
- const se_DeregisterResourceCommand = async (input, context) => {
243
- const b = (0, core_1.requestBuilder)(input, context);
244
- const headers = {
245
- "content-type": "application/json",
246
- };
247
- b.bp("/DeregisterResource");
248
- let body;
249
- body = JSON.stringify((0, smithy_client_1.take)(input, {
250
- ResourceArn: [],
251
- }));
252
- b.m("POST").h(headers).b(body);
253
- return b.build();
254
- };
255
- exports.se_DeregisterResourceCommand = se_DeregisterResourceCommand;
256
- const se_DescribeLakeFormationIdentityCenterConfigurationCommand = async (input, context) => {
257
- const b = (0, core_1.requestBuilder)(input, context);
258
- const headers = {
259
- "content-type": "application/json",
260
- };
261
- b.bp("/DescribeLakeFormationIdentityCenterConfiguration");
262
- let body;
263
- body = JSON.stringify((0, smithy_client_1.take)(input, {
264
- CatalogId: [],
265
- }));
266
- b.m("POST").h(headers).b(body);
267
- return b.build();
268
- };
269
- exports.se_DescribeLakeFormationIdentityCenterConfigurationCommand = se_DescribeLakeFormationIdentityCenterConfigurationCommand;
270
- const se_DescribeResourceCommand = async (input, context) => {
271
- const b = (0, core_1.requestBuilder)(input, context);
272
- const headers = {
273
- "content-type": "application/json",
274
- };
275
- b.bp("/DescribeResource");
276
- let body;
277
- body = JSON.stringify((0, smithy_client_1.take)(input, {
278
- ResourceArn: [],
279
- }));
280
- b.m("POST").h(headers).b(body);
281
- return b.build();
282
- };
283
- exports.se_DescribeResourceCommand = se_DescribeResourceCommand;
284
- const se_DescribeTransactionCommand = async (input, context) => {
285
- const b = (0, core_1.requestBuilder)(input, context);
286
- const headers = {
287
- "content-type": "application/json",
288
- };
289
- b.bp("/DescribeTransaction");
290
- let body;
291
- body = JSON.stringify((0, smithy_client_1.take)(input, {
292
- TransactionId: [],
293
- }));
294
- b.m("POST").h(headers).b(body);
295
- return b.build();
296
- };
297
- exports.se_DescribeTransactionCommand = se_DescribeTransactionCommand;
298
- const se_ExtendTransactionCommand = async (input, context) => {
299
- const b = (0, core_1.requestBuilder)(input, context);
300
- const headers = {
301
- "content-type": "application/json",
302
- };
303
- b.bp("/ExtendTransaction");
304
- let body;
305
- body = JSON.stringify((0, smithy_client_1.take)(input, {
306
- TransactionId: [],
307
- }));
308
- b.m("POST").h(headers).b(body);
309
- return b.build();
310
- };
311
- exports.se_ExtendTransactionCommand = se_ExtendTransactionCommand;
312
- const se_GetDataCellsFilterCommand = async (input, context) => {
313
- const b = (0, core_1.requestBuilder)(input, context);
314
- const headers = {
315
- "content-type": "application/json",
316
- };
317
- b.bp("/GetDataCellsFilter");
318
- let body;
319
- body = JSON.stringify((0, smithy_client_1.take)(input, {
320
- DatabaseName: [],
321
- Name: [],
322
- TableCatalogId: [],
323
- TableName: [],
324
- }));
325
- b.m("POST").h(headers).b(body);
326
- return b.build();
327
- };
328
- exports.se_GetDataCellsFilterCommand = se_GetDataCellsFilterCommand;
329
- const se_GetDataLakeSettingsCommand = async (input, context) => {
330
- const b = (0, core_1.requestBuilder)(input, context);
331
- const headers = {
332
- "content-type": "application/json",
333
- };
334
- b.bp("/GetDataLakeSettings");
335
- let body;
336
- body = JSON.stringify((0, smithy_client_1.take)(input, {
337
- CatalogId: [],
338
- }));
339
- b.m("POST").h(headers).b(body);
340
- return b.build();
341
- };
342
- exports.se_GetDataLakeSettingsCommand = se_GetDataLakeSettingsCommand;
343
- const se_GetEffectivePermissionsForPathCommand = async (input, context) => {
344
- const b = (0, core_1.requestBuilder)(input, context);
345
- const headers = {
346
- "content-type": "application/json",
347
- };
348
- b.bp("/GetEffectivePermissionsForPath");
349
- let body;
350
- body = JSON.stringify((0, smithy_client_1.take)(input, {
351
- CatalogId: [],
352
- MaxResults: [],
353
- NextToken: [],
354
- ResourceArn: [],
355
- }));
356
- b.m("POST").h(headers).b(body);
357
- return b.build();
358
- };
359
- exports.se_GetEffectivePermissionsForPathCommand = se_GetEffectivePermissionsForPathCommand;
360
- const se_GetLFTagCommand = async (input, context) => {
361
- const b = (0, core_1.requestBuilder)(input, context);
362
- const headers = {
363
- "content-type": "application/json",
364
- };
365
- b.bp("/GetLFTag");
366
- let body;
367
- body = JSON.stringify((0, smithy_client_1.take)(input, {
368
- CatalogId: [],
369
- TagKey: [],
370
- }));
371
- b.m("POST").h(headers).b(body);
372
- return b.build();
373
- };
374
- exports.se_GetLFTagCommand = se_GetLFTagCommand;
375
- const se_GetQueryStateCommand = async (input, context) => {
376
- const b = (0, core_1.requestBuilder)(input, context);
377
- const headers = {
378
- "content-type": "application/json",
379
- };
380
- b.bp("/GetQueryState");
381
- let body;
382
- body = JSON.stringify((0, smithy_client_1.take)(input, {
383
- QueryId: [],
384
- }));
385
- let { hostname: resolvedHostname } = await context.endpoint();
386
- if (context.disableHostPrefix !== true) {
387
- resolvedHostname = "query-" + resolvedHostname;
388
- if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
389
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
390
- }
391
- }
392
- b.hn(resolvedHostname);
393
- b.m("POST").h(headers).b(body);
394
- return b.build();
395
- };
396
- exports.se_GetQueryStateCommand = se_GetQueryStateCommand;
397
- const se_GetQueryStatisticsCommand = async (input, context) => {
398
- const b = (0, core_1.requestBuilder)(input, context);
399
- const headers = {
400
- "content-type": "application/json",
401
- };
402
- b.bp("/GetQueryStatistics");
403
- let body;
404
- body = JSON.stringify((0, smithy_client_1.take)(input, {
405
- QueryId: [],
406
- }));
407
- let { hostname: resolvedHostname } = await context.endpoint();
408
- if (context.disableHostPrefix !== true) {
409
- resolvedHostname = "query-" + resolvedHostname;
410
- if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
411
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
412
- }
413
- }
414
- b.hn(resolvedHostname);
415
- b.m("POST").h(headers).b(body);
416
- return b.build();
417
- };
418
- exports.se_GetQueryStatisticsCommand = se_GetQueryStatisticsCommand;
419
- const se_GetResourceLFTagsCommand = async (input, context) => {
420
- const b = (0, core_1.requestBuilder)(input, context);
421
- const headers = {
422
- "content-type": "application/json",
423
- };
424
- b.bp("/GetResourceLFTags");
425
- let body;
426
- body = JSON.stringify((0, smithy_client_1.take)(input, {
427
- CatalogId: [],
428
- Resource: (_) => (0, smithy_client_1._json)(_),
429
- ShowAssignedLFTags: [],
430
- }));
431
- b.m("POST").h(headers).b(body);
432
- return b.build();
433
- };
434
- exports.se_GetResourceLFTagsCommand = se_GetResourceLFTagsCommand;
435
- const se_GetTableObjectsCommand = async (input, context) => {
436
- const b = (0, core_1.requestBuilder)(input, context);
437
- const headers = {
438
- "content-type": "application/json",
439
- };
440
- b.bp("/GetTableObjects");
441
- let body;
442
- body = JSON.stringify((0, smithy_client_1.take)(input, {
443
- CatalogId: [],
444
- DatabaseName: [],
445
- MaxResults: [],
446
- NextToken: [],
447
- PartitionPredicate: [],
448
- QueryAsOfTime: (_) => Math.round(_.getTime() / 1000),
449
- TableName: [],
450
- TransactionId: [],
451
- }));
452
- b.m("POST").h(headers).b(body);
453
- return b.build();
454
- };
455
- exports.se_GetTableObjectsCommand = se_GetTableObjectsCommand;
456
- const se_GetTemporaryGluePartitionCredentialsCommand = async (input, context) => {
457
- const b = (0, core_1.requestBuilder)(input, context);
458
- const headers = {
459
- "content-type": "application/json",
460
- };
461
- b.bp("/GetTemporaryGluePartitionCredentials");
462
- let body;
463
- body = JSON.stringify((0, smithy_client_1.take)(input, {
464
- AuditContext: (_) => (0, smithy_client_1._json)(_),
465
- DurationSeconds: [],
466
- Partition: (_) => (0, smithy_client_1._json)(_),
467
- Permissions: (_) => (0, smithy_client_1._json)(_),
468
- SupportedPermissionTypes: (_) => (0, smithy_client_1._json)(_),
469
- TableArn: [],
470
- }));
471
- b.m("POST").h(headers).b(body);
472
- return b.build();
473
- };
474
- exports.se_GetTemporaryGluePartitionCredentialsCommand = se_GetTemporaryGluePartitionCredentialsCommand;
475
- const se_GetTemporaryGlueTableCredentialsCommand = async (input, context) => {
476
- const b = (0, core_1.requestBuilder)(input, context);
477
- const headers = {
478
- "content-type": "application/json",
479
- };
480
- b.bp("/GetTemporaryGlueTableCredentials");
481
- let body;
482
- body = JSON.stringify((0, smithy_client_1.take)(input, {
483
- AuditContext: (_) => (0, smithy_client_1._json)(_),
484
- DurationSeconds: [],
485
- Permissions: (_) => (0, smithy_client_1._json)(_),
486
- QuerySessionContext: (_) => se_QuerySessionContext(_, context),
487
- S3Path: [],
488
- SupportedPermissionTypes: (_) => (0, smithy_client_1._json)(_),
489
- TableArn: [],
490
- }));
491
- b.m("POST").h(headers).b(body);
492
- return b.build();
493
- };
494
- exports.se_GetTemporaryGlueTableCredentialsCommand = se_GetTemporaryGlueTableCredentialsCommand;
495
- const se_GetWorkUnitResultsCommand = async (input, context) => {
496
- const b = (0, core_1.requestBuilder)(input, context);
497
- const headers = {
498
- "content-type": "application/json",
499
- };
500
- b.bp("/GetWorkUnitResults");
501
- let body;
502
- body = JSON.stringify((0, smithy_client_1.take)(input, {
503
- QueryId: [],
504
- WorkUnitId: [],
505
- WorkUnitToken: [],
506
- }));
507
- let { hostname: resolvedHostname } = await context.endpoint();
508
- if (context.disableHostPrefix !== true) {
509
- resolvedHostname = "data-" + resolvedHostname;
510
- if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
511
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
512
- }
513
- }
514
- b.hn(resolvedHostname);
515
- b.m("POST").h(headers).b(body);
516
- return b.build();
517
- };
518
- exports.se_GetWorkUnitResultsCommand = se_GetWorkUnitResultsCommand;
519
- const se_GetWorkUnitsCommand = async (input, context) => {
520
- const b = (0, core_1.requestBuilder)(input, context);
521
- const headers = {
522
- "content-type": "application/json",
523
- };
524
- b.bp("/GetWorkUnits");
525
- let body;
526
- body = JSON.stringify((0, smithy_client_1.take)(input, {
527
- NextToken: [],
528
- PageSize: [],
529
- QueryId: [],
530
- }));
531
- let { hostname: resolvedHostname } = await context.endpoint();
532
- if (context.disableHostPrefix !== true) {
533
- resolvedHostname = "query-" + resolvedHostname;
534
- if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
535
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
536
- }
537
- }
538
- b.hn(resolvedHostname);
539
- b.m("POST").h(headers).b(body);
540
- return b.build();
541
- };
542
- exports.se_GetWorkUnitsCommand = se_GetWorkUnitsCommand;
543
- const se_GrantPermissionsCommand = async (input, context) => {
544
- const b = (0, core_1.requestBuilder)(input, context);
545
- const headers = {
546
- "content-type": "application/json",
547
- };
548
- b.bp("/GrantPermissions");
549
- let body;
550
- body = JSON.stringify((0, smithy_client_1.take)(input, {
551
- CatalogId: [],
552
- Permissions: (_) => (0, smithy_client_1._json)(_),
553
- PermissionsWithGrantOption: (_) => (0, smithy_client_1._json)(_),
554
- Principal: (_) => (0, smithy_client_1._json)(_),
555
- Resource: (_) => (0, smithy_client_1._json)(_),
556
- }));
557
- b.m("POST").h(headers).b(body);
558
- return b.build();
559
- };
560
- exports.se_GrantPermissionsCommand = se_GrantPermissionsCommand;
561
- const se_ListDataCellsFilterCommand = async (input, context) => {
562
- const b = (0, core_1.requestBuilder)(input, context);
563
- const headers = {
564
- "content-type": "application/json",
565
- };
566
- b.bp("/ListDataCellsFilter");
567
- let body;
568
- body = JSON.stringify((0, smithy_client_1.take)(input, {
569
- MaxResults: [],
570
- NextToken: [],
571
- Table: (_) => (0, smithy_client_1._json)(_),
572
- }));
573
- b.m("POST").h(headers).b(body);
574
- return b.build();
575
- };
576
- exports.se_ListDataCellsFilterCommand = se_ListDataCellsFilterCommand;
577
- const se_ListLakeFormationOptInsCommand = async (input, context) => {
578
- const b = (0, core_1.requestBuilder)(input, context);
579
- const headers = {
580
- "content-type": "application/json",
581
- };
582
- b.bp("/ListLakeFormationOptIns");
583
- let body;
584
- body = JSON.stringify((0, smithy_client_1.take)(input, {
585
- MaxResults: [],
586
- NextToken: [],
587
- Principal: (_) => (0, smithy_client_1._json)(_),
588
- Resource: (_) => (0, smithy_client_1._json)(_),
589
- }));
590
- b.m("POST").h(headers).b(body);
591
- return b.build();
592
- };
593
- exports.se_ListLakeFormationOptInsCommand = se_ListLakeFormationOptInsCommand;
594
- const se_ListLFTagsCommand = async (input, context) => {
595
- const b = (0, core_1.requestBuilder)(input, context);
596
- const headers = {
597
- "content-type": "application/json",
598
- };
599
- b.bp("/ListLFTags");
600
- let body;
601
- body = JSON.stringify((0, smithy_client_1.take)(input, {
602
- CatalogId: [],
603
- MaxResults: [],
604
- NextToken: [],
605
- ResourceShareType: [],
606
- }));
607
- b.m("POST").h(headers).b(body);
608
- return b.build();
609
- };
610
- exports.se_ListLFTagsCommand = se_ListLFTagsCommand;
611
- const se_ListPermissionsCommand = async (input, context) => {
612
- const b = (0, core_1.requestBuilder)(input, context);
613
- const headers = {
614
- "content-type": "application/json",
615
- };
616
- b.bp("/ListPermissions");
617
- let body;
618
- body = JSON.stringify((0, smithy_client_1.take)(input, {
619
- CatalogId: [],
620
- IncludeRelated: [],
621
- MaxResults: [],
622
- NextToken: [],
623
- Principal: (_) => (0, smithy_client_1._json)(_),
624
- Resource: (_) => (0, smithy_client_1._json)(_),
625
- ResourceType: [],
626
- }));
627
- b.m("POST").h(headers).b(body);
628
- return b.build();
629
- };
630
- exports.se_ListPermissionsCommand = se_ListPermissionsCommand;
631
- const se_ListResourcesCommand = async (input, context) => {
632
- const b = (0, core_1.requestBuilder)(input, context);
633
- const headers = {
634
- "content-type": "application/json",
635
- };
636
- b.bp("/ListResources");
637
- let body;
638
- body = JSON.stringify((0, smithy_client_1.take)(input, {
639
- FilterConditionList: (_) => (0, smithy_client_1._json)(_),
640
- MaxResults: [],
641
- NextToken: [],
642
- }));
643
- b.m("POST").h(headers).b(body);
644
- return b.build();
645
- };
646
- exports.se_ListResourcesCommand = se_ListResourcesCommand;
647
- const se_ListTableStorageOptimizersCommand = async (input, context) => {
648
- const b = (0, core_1.requestBuilder)(input, context);
649
- const headers = {
650
- "content-type": "application/json",
651
- };
652
- b.bp("/ListTableStorageOptimizers");
653
- let body;
654
- body = JSON.stringify((0, smithy_client_1.take)(input, {
655
- CatalogId: [],
656
- DatabaseName: [],
657
- MaxResults: [],
658
- NextToken: [],
659
- StorageOptimizerType: [],
660
- TableName: [],
661
- }));
662
- b.m("POST").h(headers).b(body);
663
- return b.build();
664
- };
665
- exports.se_ListTableStorageOptimizersCommand = se_ListTableStorageOptimizersCommand;
666
- const se_ListTransactionsCommand = async (input, context) => {
667
- const b = (0, core_1.requestBuilder)(input, context);
668
- const headers = {
669
- "content-type": "application/json",
670
- };
671
- b.bp("/ListTransactions");
672
- let body;
673
- body = JSON.stringify((0, smithy_client_1.take)(input, {
674
- CatalogId: [],
675
- MaxResults: [],
676
- NextToken: [],
677
- StatusFilter: [],
678
- }));
679
- b.m("POST").h(headers).b(body);
680
- return b.build();
681
- };
682
- exports.se_ListTransactionsCommand = se_ListTransactionsCommand;
683
- const se_PutDataLakeSettingsCommand = async (input, context) => {
684
- const b = (0, core_1.requestBuilder)(input, context);
685
- const headers = {
686
- "content-type": "application/json",
687
- };
688
- b.bp("/PutDataLakeSettings");
689
- let body;
690
- body = JSON.stringify((0, smithy_client_1.take)(input, {
691
- CatalogId: [],
692
- DataLakeSettings: (_) => (0, smithy_client_1._json)(_),
693
- }));
694
- b.m("POST").h(headers).b(body);
695
- return b.build();
696
- };
697
- exports.se_PutDataLakeSettingsCommand = se_PutDataLakeSettingsCommand;
698
- const se_RegisterResourceCommand = async (input, context) => {
699
- const b = (0, core_1.requestBuilder)(input, context);
700
- const headers = {
701
- "content-type": "application/json",
702
- };
703
- b.bp("/RegisterResource");
704
- let body;
705
- body = JSON.stringify((0, smithy_client_1.take)(input, {
706
- HybridAccessEnabled: [],
707
- ResourceArn: [],
708
- RoleArn: [],
709
- UseServiceLinkedRole: [],
710
- WithFederation: [],
711
- }));
712
- b.m("POST").h(headers).b(body);
713
- return b.build();
714
- };
715
- exports.se_RegisterResourceCommand = se_RegisterResourceCommand;
716
- const se_RemoveLFTagsFromResourceCommand = async (input, context) => {
717
- const b = (0, core_1.requestBuilder)(input, context);
718
- const headers = {
719
- "content-type": "application/json",
720
- };
721
- b.bp("/RemoveLFTagsFromResource");
722
- let body;
723
- body = JSON.stringify((0, smithy_client_1.take)(input, {
724
- CatalogId: [],
725
- LFTags: (_) => (0, smithy_client_1._json)(_),
726
- Resource: (_) => (0, smithy_client_1._json)(_),
727
- }));
728
- b.m("POST").h(headers).b(body);
729
- return b.build();
730
- };
731
- exports.se_RemoveLFTagsFromResourceCommand = se_RemoveLFTagsFromResourceCommand;
732
- const se_RevokePermissionsCommand = async (input, context) => {
733
- const b = (0, core_1.requestBuilder)(input, context);
734
- const headers = {
735
- "content-type": "application/json",
736
- };
737
- b.bp("/RevokePermissions");
738
- let body;
739
- body = JSON.stringify((0, smithy_client_1.take)(input, {
740
- CatalogId: [],
741
- Permissions: (_) => (0, smithy_client_1._json)(_),
742
- PermissionsWithGrantOption: (_) => (0, smithy_client_1._json)(_),
743
- Principal: (_) => (0, smithy_client_1._json)(_),
744
- Resource: (_) => (0, smithy_client_1._json)(_),
745
- }));
746
- b.m("POST").h(headers).b(body);
747
- return b.build();
748
- };
749
- exports.se_RevokePermissionsCommand = se_RevokePermissionsCommand;
750
- const se_SearchDatabasesByLFTagsCommand = async (input, context) => {
751
- const b = (0, core_1.requestBuilder)(input, context);
752
- const headers = {
753
- "content-type": "application/json",
754
- };
755
- b.bp("/SearchDatabasesByLFTags");
756
- let body;
757
- body = JSON.stringify((0, smithy_client_1.take)(input, {
758
- CatalogId: [],
759
- Expression: (_) => (0, smithy_client_1._json)(_),
760
- MaxResults: [],
761
- NextToken: [],
762
- }));
763
- b.m("POST").h(headers).b(body);
764
- return b.build();
765
- };
766
- exports.se_SearchDatabasesByLFTagsCommand = se_SearchDatabasesByLFTagsCommand;
767
- const se_SearchTablesByLFTagsCommand = async (input, context) => {
768
- const b = (0, core_1.requestBuilder)(input, context);
769
- const headers = {
770
- "content-type": "application/json",
771
- };
772
- b.bp("/SearchTablesByLFTags");
773
- let body;
774
- body = JSON.stringify((0, smithy_client_1.take)(input, {
775
- CatalogId: [],
776
- Expression: (_) => (0, smithy_client_1._json)(_),
777
- MaxResults: [],
778
- NextToken: [],
779
- }));
780
- b.m("POST").h(headers).b(body);
781
- return b.build();
782
- };
783
- exports.se_SearchTablesByLFTagsCommand = se_SearchTablesByLFTagsCommand;
784
- const se_StartQueryPlanningCommand = async (input, context) => {
785
- const b = (0, core_1.requestBuilder)(input, context);
786
- const headers = {
787
- "content-type": "application/json",
788
- };
789
- b.bp("/StartQueryPlanning");
790
- let body;
791
- body = JSON.stringify((0, smithy_client_1.take)(input, {
792
- QueryPlanningContext: (_) => se_QueryPlanningContext(_, context),
793
- QueryString: [],
794
- }));
795
- let { hostname: resolvedHostname } = await context.endpoint();
796
- if (context.disableHostPrefix !== true) {
797
- resolvedHostname = "query-" + resolvedHostname;
798
- if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
799
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
800
- }
801
- }
802
- b.hn(resolvedHostname);
803
- b.m("POST").h(headers).b(body);
804
- return b.build();
805
- };
806
- exports.se_StartQueryPlanningCommand = se_StartQueryPlanningCommand;
807
- const se_StartTransactionCommand = async (input, context) => {
808
- const b = (0, core_1.requestBuilder)(input, context);
809
- const headers = {
810
- "content-type": "application/json",
811
- };
812
- b.bp("/StartTransaction");
813
- let body;
814
- body = JSON.stringify((0, smithy_client_1.take)(input, {
815
- TransactionType: [],
816
- }));
817
- b.m("POST").h(headers).b(body);
818
- return b.build();
819
- };
820
- exports.se_StartTransactionCommand = se_StartTransactionCommand;
821
- const se_UpdateDataCellsFilterCommand = async (input, context) => {
822
- const b = (0, core_1.requestBuilder)(input, context);
823
- const headers = {
824
- "content-type": "application/json",
825
- };
826
- b.bp("/UpdateDataCellsFilter");
827
- let body;
828
- body = JSON.stringify((0, smithy_client_1.take)(input, {
829
- TableData: (_) => (0, smithy_client_1._json)(_),
830
- }));
831
- b.m("POST").h(headers).b(body);
832
- return b.build();
833
- };
834
- exports.se_UpdateDataCellsFilterCommand = se_UpdateDataCellsFilterCommand;
835
- const se_UpdateLakeFormationIdentityCenterConfigurationCommand = async (input, context) => {
836
- const b = (0, core_1.requestBuilder)(input, context);
837
- const headers = {
838
- "content-type": "application/json",
839
- };
840
- b.bp("/UpdateLakeFormationIdentityCenterConfiguration");
841
- let body;
842
- body = JSON.stringify((0, smithy_client_1.take)(input, {
843
- ApplicationStatus: [],
844
- CatalogId: [],
845
- ExternalFiltering: (_) => (0, smithy_client_1._json)(_),
846
- }));
847
- b.m("POST").h(headers).b(body);
848
- return b.build();
849
- };
850
- exports.se_UpdateLakeFormationIdentityCenterConfigurationCommand = se_UpdateLakeFormationIdentityCenterConfigurationCommand;
851
- const se_UpdateLFTagCommand = async (input, context) => {
852
- const b = (0, core_1.requestBuilder)(input, context);
853
- const headers = {
854
- "content-type": "application/json",
855
- };
856
- b.bp("/UpdateLFTag");
857
- let body;
858
- body = JSON.stringify((0, smithy_client_1.take)(input, {
859
- CatalogId: [],
860
- TagKey: [],
861
- TagValuesToAdd: (_) => (0, smithy_client_1._json)(_),
862
- TagValuesToDelete: (_) => (0, smithy_client_1._json)(_),
863
- }));
864
- b.m("POST").h(headers).b(body);
865
- return b.build();
866
- };
867
- exports.se_UpdateLFTagCommand = se_UpdateLFTagCommand;
868
- const se_UpdateResourceCommand = async (input, context) => {
869
- const b = (0, core_1.requestBuilder)(input, context);
870
- const headers = {
871
- "content-type": "application/json",
872
- };
873
- b.bp("/UpdateResource");
874
- let body;
875
- body = JSON.stringify((0, smithy_client_1.take)(input, {
876
- HybridAccessEnabled: [],
877
- ResourceArn: [],
878
- RoleArn: [],
879
- WithFederation: [],
880
- }));
881
- b.m("POST").h(headers).b(body);
882
- return b.build();
883
- };
884
- exports.se_UpdateResourceCommand = se_UpdateResourceCommand;
885
- const se_UpdateTableObjectsCommand = async (input, context) => {
886
- const b = (0, core_1.requestBuilder)(input, context);
887
- const headers = {
888
- "content-type": "application/json",
889
- };
890
- b.bp("/UpdateTableObjects");
891
- let body;
892
- body = JSON.stringify((0, smithy_client_1.take)(input, {
893
- CatalogId: [],
894
- DatabaseName: [],
895
- TableName: [],
896
- TransactionId: [],
897
- WriteOperations: (_) => (0, smithy_client_1._json)(_),
898
- }));
899
- b.m("POST").h(headers).b(body);
900
- return b.build();
901
- };
902
- exports.se_UpdateTableObjectsCommand = se_UpdateTableObjectsCommand;
903
- const se_UpdateTableStorageOptimizerCommand = async (input, context) => {
904
- const b = (0, core_1.requestBuilder)(input, context);
905
- const headers = {
906
- "content-type": "application/json",
907
- };
908
- b.bp("/UpdateTableStorageOptimizer");
909
- let body;
910
- body = JSON.stringify((0, smithy_client_1.take)(input, {
911
- CatalogId: [],
912
- DatabaseName: [],
913
- StorageOptimizerConfig: (_) => (0, smithy_client_1._json)(_),
914
- TableName: [],
915
- }));
916
- b.m("POST").h(headers).b(body);
917
- return b.build();
918
- };
919
- exports.se_UpdateTableStorageOptimizerCommand = se_UpdateTableStorageOptimizerCommand;
920
- const de_AddLFTagsToResourceCommand = async (output, context) => {
921
- if (output.statusCode !== 200 && output.statusCode >= 300) {
922
- return de_AddLFTagsToResourceCommandError(output, context);
923
- }
924
- const contents = (0, smithy_client_1.map)({
925
- $metadata: deserializeMetadata(output),
926
- });
927
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
928
- const doc = (0, smithy_client_1.take)(data, {
929
- Failures: smithy_client_1._json,
930
- });
931
- Object.assign(contents, doc);
932
- return contents;
933
- };
934
- exports.de_AddLFTagsToResourceCommand = de_AddLFTagsToResourceCommand;
935
- const de_AddLFTagsToResourceCommandError = async (output, context) => {
936
- const parsedOutput = {
937
- ...output,
938
- body: await parseErrorBody(output.body, context),
939
- };
940
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
941
- switch (errorCode) {
942
- case "AccessDeniedException":
943
- case "com.amazonaws.lakeformation#AccessDeniedException":
944
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
945
- case "ConcurrentModificationException":
946
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
947
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
948
- case "EntityNotFoundException":
949
- case "com.amazonaws.lakeformation#EntityNotFoundException":
950
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
951
- case "InternalServiceException":
952
- case "com.amazonaws.lakeformation#InternalServiceException":
953
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
954
- case "InvalidInputException":
955
- case "com.amazonaws.lakeformation#InvalidInputException":
956
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
957
- case "OperationTimeoutException":
958
- case "com.amazonaws.lakeformation#OperationTimeoutException":
959
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
960
- default:
961
- const parsedBody = parsedOutput.body;
962
- return throwDefaultError({
963
- output,
964
- parsedBody,
965
- errorCode,
966
- });
967
- }
968
- };
969
- const de_AssumeDecoratedRoleWithSAMLCommand = async (output, context) => {
970
- if (output.statusCode !== 200 && output.statusCode >= 300) {
971
- return de_AssumeDecoratedRoleWithSAMLCommandError(output, context);
972
- }
973
- const contents = (0, smithy_client_1.map)({
974
- $metadata: deserializeMetadata(output),
975
- });
976
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
977
- const doc = (0, smithy_client_1.take)(data, {
978
- AccessKeyId: smithy_client_1.expectString,
979
- Expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
980
- SecretAccessKey: smithy_client_1.expectString,
981
- SessionToken: smithy_client_1.expectString,
982
- });
983
- Object.assign(contents, doc);
984
- return contents;
985
- };
986
- exports.de_AssumeDecoratedRoleWithSAMLCommand = de_AssumeDecoratedRoleWithSAMLCommand;
987
- const de_AssumeDecoratedRoleWithSAMLCommandError = async (output, context) => {
988
- const parsedOutput = {
989
- ...output,
990
- body: await parseErrorBody(output.body, context),
991
- };
992
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
993
- switch (errorCode) {
994
- case "AccessDeniedException":
995
- case "com.amazonaws.lakeformation#AccessDeniedException":
996
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
997
- case "EntityNotFoundException":
998
- case "com.amazonaws.lakeformation#EntityNotFoundException":
999
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1000
- case "InternalServiceException":
1001
- case "com.amazonaws.lakeformation#InternalServiceException":
1002
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1003
- case "InvalidInputException":
1004
- case "com.amazonaws.lakeformation#InvalidInputException":
1005
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1006
- case "OperationTimeoutException":
1007
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1008
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1009
- default:
1010
- const parsedBody = parsedOutput.body;
1011
- return throwDefaultError({
1012
- output,
1013
- parsedBody,
1014
- errorCode,
1015
- });
1016
- }
1017
- };
1018
- const de_BatchGrantPermissionsCommand = async (output, context) => {
1019
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1020
- return de_BatchGrantPermissionsCommandError(output, context);
1021
- }
1022
- const contents = (0, smithy_client_1.map)({
1023
- $metadata: deserializeMetadata(output),
1024
- });
1025
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1026
- const doc = (0, smithy_client_1.take)(data, {
1027
- Failures: smithy_client_1._json,
1028
- });
1029
- Object.assign(contents, doc);
1030
- return contents;
1031
- };
1032
- exports.de_BatchGrantPermissionsCommand = de_BatchGrantPermissionsCommand;
1033
- const de_BatchGrantPermissionsCommandError = async (output, context) => {
1034
- const parsedOutput = {
1035
- ...output,
1036
- body: await parseErrorBody(output.body, context),
1037
- };
1038
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1039
- switch (errorCode) {
1040
- case "InvalidInputException":
1041
- case "com.amazonaws.lakeformation#InvalidInputException":
1042
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1043
- case "OperationTimeoutException":
1044
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1045
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1046
- default:
1047
- const parsedBody = parsedOutput.body;
1048
- return throwDefaultError({
1049
- output,
1050
- parsedBody,
1051
- errorCode,
1052
- });
1053
- }
1054
- };
1055
- const de_BatchRevokePermissionsCommand = async (output, context) => {
1056
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1057
- return de_BatchRevokePermissionsCommandError(output, context);
1058
- }
1059
- const contents = (0, smithy_client_1.map)({
1060
- $metadata: deserializeMetadata(output),
1061
- });
1062
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1063
- const doc = (0, smithy_client_1.take)(data, {
1064
- Failures: smithy_client_1._json,
1065
- });
1066
- Object.assign(contents, doc);
1067
- return contents;
1068
- };
1069
- exports.de_BatchRevokePermissionsCommand = de_BatchRevokePermissionsCommand;
1070
- const de_BatchRevokePermissionsCommandError = async (output, context) => {
1071
- const parsedOutput = {
1072
- ...output,
1073
- body: await parseErrorBody(output.body, context),
1074
- };
1075
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1076
- switch (errorCode) {
1077
- case "InvalidInputException":
1078
- case "com.amazonaws.lakeformation#InvalidInputException":
1079
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1080
- case "OperationTimeoutException":
1081
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1082
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1083
- default:
1084
- const parsedBody = parsedOutput.body;
1085
- return throwDefaultError({
1086
- output,
1087
- parsedBody,
1088
- errorCode,
1089
- });
1090
- }
1091
- };
1092
- const de_CancelTransactionCommand = async (output, context) => {
1093
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1094
- return de_CancelTransactionCommandError(output, context);
1095
- }
1096
- const contents = (0, smithy_client_1.map)({
1097
- $metadata: deserializeMetadata(output),
1098
- });
1099
- await (0, smithy_client_1.collectBody)(output.body, context);
1100
- return contents;
1101
- };
1102
- exports.de_CancelTransactionCommand = de_CancelTransactionCommand;
1103
- const de_CancelTransactionCommandError = async (output, context) => {
1104
- const parsedOutput = {
1105
- ...output,
1106
- body: await parseErrorBody(output.body, context),
1107
- };
1108
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1109
- switch (errorCode) {
1110
- case "ConcurrentModificationException":
1111
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1112
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1113
- case "EntityNotFoundException":
1114
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1115
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1116
- case "InternalServiceException":
1117
- case "com.amazonaws.lakeformation#InternalServiceException":
1118
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1119
- case "InvalidInputException":
1120
- case "com.amazonaws.lakeformation#InvalidInputException":
1121
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1122
- case "OperationTimeoutException":
1123
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1124
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1125
- case "TransactionCommitInProgressException":
1126
- case "com.amazonaws.lakeformation#TransactionCommitInProgressException":
1127
- throw await de_TransactionCommitInProgressExceptionRes(parsedOutput, context);
1128
- case "TransactionCommittedException":
1129
- case "com.amazonaws.lakeformation#TransactionCommittedException":
1130
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
1131
- default:
1132
- const parsedBody = parsedOutput.body;
1133
- return throwDefaultError({
1134
- output,
1135
- parsedBody,
1136
- errorCode,
1137
- });
1138
- }
1139
- };
1140
- const de_CommitTransactionCommand = async (output, context) => {
1141
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1142
- return de_CommitTransactionCommandError(output, context);
1143
- }
1144
- const contents = (0, smithy_client_1.map)({
1145
- $metadata: deserializeMetadata(output),
1146
- });
1147
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1148
- const doc = (0, smithy_client_1.take)(data, {
1149
- TransactionStatus: smithy_client_1.expectString,
1150
- });
1151
- Object.assign(contents, doc);
1152
- return contents;
1153
- };
1154
- exports.de_CommitTransactionCommand = de_CommitTransactionCommand;
1155
- const de_CommitTransactionCommandError = async (output, context) => {
1156
- const parsedOutput = {
1157
- ...output,
1158
- body: await parseErrorBody(output.body, context),
1159
- };
1160
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1161
- switch (errorCode) {
1162
- case "ConcurrentModificationException":
1163
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1164
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1165
- case "EntityNotFoundException":
1166
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1167
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1168
- case "InternalServiceException":
1169
- case "com.amazonaws.lakeformation#InternalServiceException":
1170
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1171
- case "InvalidInputException":
1172
- case "com.amazonaws.lakeformation#InvalidInputException":
1173
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1174
- case "OperationTimeoutException":
1175
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1176
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1177
- case "TransactionCanceledException":
1178
- case "com.amazonaws.lakeformation#TransactionCanceledException":
1179
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
1180
- default:
1181
- const parsedBody = parsedOutput.body;
1182
- return throwDefaultError({
1183
- output,
1184
- parsedBody,
1185
- errorCode,
1186
- });
1187
- }
1188
- };
1189
- const de_CreateDataCellsFilterCommand = async (output, context) => {
1190
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1191
- return de_CreateDataCellsFilterCommandError(output, context);
1192
- }
1193
- const contents = (0, smithy_client_1.map)({
1194
- $metadata: deserializeMetadata(output),
1195
- });
1196
- await (0, smithy_client_1.collectBody)(output.body, context);
1197
- return contents;
1198
- };
1199
- exports.de_CreateDataCellsFilterCommand = de_CreateDataCellsFilterCommand;
1200
- const de_CreateDataCellsFilterCommandError = async (output, context) => {
1201
- const parsedOutput = {
1202
- ...output,
1203
- body: await parseErrorBody(output.body, context),
1204
- };
1205
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1206
- switch (errorCode) {
1207
- case "AccessDeniedException":
1208
- case "com.amazonaws.lakeformation#AccessDeniedException":
1209
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1210
- case "AlreadyExistsException":
1211
- case "com.amazonaws.lakeformation#AlreadyExistsException":
1212
- throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
1213
- case "EntityNotFoundException":
1214
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1215
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1216
- case "InternalServiceException":
1217
- case "com.amazonaws.lakeformation#InternalServiceException":
1218
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1219
- case "InvalidInputException":
1220
- case "com.amazonaws.lakeformation#InvalidInputException":
1221
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1222
- case "OperationTimeoutException":
1223
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1224
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1225
- case "ResourceNumberLimitExceededException":
1226
- case "com.amazonaws.lakeformation#ResourceNumberLimitExceededException":
1227
- throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
1228
- default:
1229
- const parsedBody = parsedOutput.body;
1230
- return throwDefaultError({
1231
- output,
1232
- parsedBody,
1233
- errorCode,
1234
- });
1235
- }
1236
- };
1237
- const de_CreateLakeFormationIdentityCenterConfigurationCommand = async (output, context) => {
1238
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1239
- return de_CreateLakeFormationIdentityCenterConfigurationCommandError(output, context);
1240
- }
1241
- const contents = (0, smithy_client_1.map)({
1242
- $metadata: deserializeMetadata(output),
1243
- });
1244
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1245
- const doc = (0, smithy_client_1.take)(data, {
1246
- ApplicationArn: smithy_client_1.expectString,
1247
- });
1248
- Object.assign(contents, doc);
1249
- return contents;
1250
- };
1251
- exports.de_CreateLakeFormationIdentityCenterConfigurationCommand = de_CreateLakeFormationIdentityCenterConfigurationCommand;
1252
- const de_CreateLakeFormationIdentityCenterConfigurationCommandError = async (output, context) => {
1253
- const parsedOutput = {
1254
- ...output,
1255
- body: await parseErrorBody(output.body, context),
1256
- };
1257
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1258
- switch (errorCode) {
1259
- case "AccessDeniedException":
1260
- case "com.amazonaws.lakeformation#AccessDeniedException":
1261
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1262
- case "AlreadyExistsException":
1263
- case "com.amazonaws.lakeformation#AlreadyExistsException":
1264
- throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
1265
- case "ConcurrentModificationException":
1266
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1267
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1268
- case "InternalServiceException":
1269
- case "com.amazonaws.lakeformation#InternalServiceException":
1270
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1271
- case "InvalidInputException":
1272
- case "com.amazonaws.lakeformation#InvalidInputException":
1273
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1274
- case "OperationTimeoutException":
1275
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1276
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1277
- default:
1278
- const parsedBody = parsedOutput.body;
1279
- return throwDefaultError({
1280
- output,
1281
- parsedBody,
1282
- errorCode,
1283
- });
1284
- }
1285
- };
1286
- const de_CreateLakeFormationOptInCommand = async (output, context) => {
1287
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1288
- return de_CreateLakeFormationOptInCommandError(output, context);
1289
- }
1290
- const contents = (0, smithy_client_1.map)({
1291
- $metadata: deserializeMetadata(output),
1292
- });
1293
- await (0, smithy_client_1.collectBody)(output.body, context);
1294
- return contents;
1295
- };
1296
- exports.de_CreateLakeFormationOptInCommand = de_CreateLakeFormationOptInCommand;
1297
- const de_CreateLakeFormationOptInCommandError = async (output, context) => {
1298
- const parsedOutput = {
1299
- ...output,
1300
- body: await parseErrorBody(output.body, context),
1301
- };
1302
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1303
- switch (errorCode) {
1304
- case "AccessDeniedException":
1305
- case "com.amazonaws.lakeformation#AccessDeniedException":
1306
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1307
- case "ConcurrentModificationException":
1308
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1309
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1310
- case "EntityNotFoundException":
1311
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1312
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1313
- case "InternalServiceException":
1314
- case "com.amazonaws.lakeformation#InternalServiceException":
1315
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1316
- case "InvalidInputException":
1317
- case "com.amazonaws.lakeformation#InvalidInputException":
1318
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1319
- case "OperationTimeoutException":
1320
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1321
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1322
- default:
1323
- const parsedBody = parsedOutput.body;
1324
- return throwDefaultError({
1325
- output,
1326
- parsedBody,
1327
- errorCode,
1328
- });
1329
- }
1330
- };
1331
- const de_CreateLFTagCommand = async (output, context) => {
1332
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1333
- return de_CreateLFTagCommandError(output, context);
1334
- }
1335
- const contents = (0, smithy_client_1.map)({
1336
- $metadata: deserializeMetadata(output),
1337
- });
1338
- await (0, smithy_client_1.collectBody)(output.body, context);
1339
- return contents;
1340
- };
1341
- exports.de_CreateLFTagCommand = de_CreateLFTagCommand;
1342
- const de_CreateLFTagCommandError = async (output, context) => {
1343
- const parsedOutput = {
1344
- ...output,
1345
- body: await parseErrorBody(output.body, context),
1346
- };
1347
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1348
- switch (errorCode) {
1349
- case "AccessDeniedException":
1350
- case "com.amazonaws.lakeformation#AccessDeniedException":
1351
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1352
- case "EntityNotFoundException":
1353
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1354
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1355
- case "InternalServiceException":
1356
- case "com.amazonaws.lakeformation#InternalServiceException":
1357
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1358
- case "InvalidInputException":
1359
- case "com.amazonaws.lakeformation#InvalidInputException":
1360
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1361
- case "OperationTimeoutException":
1362
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1363
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1364
- case "ResourceNumberLimitExceededException":
1365
- case "com.amazonaws.lakeformation#ResourceNumberLimitExceededException":
1366
- throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
1367
- default:
1368
- const parsedBody = parsedOutput.body;
1369
- return throwDefaultError({
1370
- output,
1371
- parsedBody,
1372
- errorCode,
1373
- });
1374
- }
1375
- };
1376
- const de_DeleteDataCellsFilterCommand = async (output, context) => {
1377
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1378
- return de_DeleteDataCellsFilterCommandError(output, context);
1379
- }
1380
- const contents = (0, smithy_client_1.map)({
1381
- $metadata: deserializeMetadata(output),
1382
- });
1383
- await (0, smithy_client_1.collectBody)(output.body, context);
1384
- return contents;
1385
- };
1386
- exports.de_DeleteDataCellsFilterCommand = de_DeleteDataCellsFilterCommand;
1387
- const de_DeleteDataCellsFilterCommandError = async (output, context) => {
1388
- const parsedOutput = {
1389
- ...output,
1390
- body: await parseErrorBody(output.body, context),
1391
- };
1392
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1393
- switch (errorCode) {
1394
- case "AccessDeniedException":
1395
- case "com.amazonaws.lakeformation#AccessDeniedException":
1396
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1397
- case "EntityNotFoundException":
1398
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1399
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1400
- case "InternalServiceException":
1401
- case "com.amazonaws.lakeformation#InternalServiceException":
1402
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1403
- case "InvalidInputException":
1404
- case "com.amazonaws.lakeformation#InvalidInputException":
1405
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1406
- case "OperationTimeoutException":
1407
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1408
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1409
- default:
1410
- const parsedBody = parsedOutput.body;
1411
- return throwDefaultError({
1412
- output,
1413
- parsedBody,
1414
- errorCode,
1415
- });
1416
- }
1417
- };
1418
- const de_DeleteLakeFormationIdentityCenterConfigurationCommand = async (output, context) => {
1419
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1420
- return de_DeleteLakeFormationIdentityCenterConfigurationCommandError(output, context);
1421
- }
1422
- const contents = (0, smithy_client_1.map)({
1423
- $metadata: deserializeMetadata(output),
1424
- });
1425
- await (0, smithy_client_1.collectBody)(output.body, context);
1426
- return contents;
1427
- };
1428
- exports.de_DeleteLakeFormationIdentityCenterConfigurationCommand = de_DeleteLakeFormationIdentityCenterConfigurationCommand;
1429
- const de_DeleteLakeFormationIdentityCenterConfigurationCommandError = async (output, context) => {
1430
- const parsedOutput = {
1431
- ...output,
1432
- body: await parseErrorBody(output.body, context),
1433
- };
1434
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1435
- switch (errorCode) {
1436
- case "AccessDeniedException":
1437
- case "com.amazonaws.lakeformation#AccessDeniedException":
1438
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1439
- case "ConcurrentModificationException":
1440
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1441
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1442
- case "EntityNotFoundException":
1443
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1444
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1445
- case "InternalServiceException":
1446
- case "com.amazonaws.lakeformation#InternalServiceException":
1447
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1448
- case "InvalidInputException":
1449
- case "com.amazonaws.lakeformation#InvalidInputException":
1450
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1451
- case "OperationTimeoutException":
1452
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1453
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1454
- default:
1455
- const parsedBody = parsedOutput.body;
1456
- return throwDefaultError({
1457
- output,
1458
- parsedBody,
1459
- errorCode,
1460
- });
1461
- }
1462
- };
1463
- const de_DeleteLakeFormationOptInCommand = async (output, context) => {
1464
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1465
- return de_DeleteLakeFormationOptInCommandError(output, context);
1466
- }
1467
- const contents = (0, smithy_client_1.map)({
1468
- $metadata: deserializeMetadata(output),
1469
- });
1470
- await (0, smithy_client_1.collectBody)(output.body, context);
1471
- return contents;
1472
- };
1473
- exports.de_DeleteLakeFormationOptInCommand = de_DeleteLakeFormationOptInCommand;
1474
- const de_DeleteLakeFormationOptInCommandError = async (output, context) => {
1475
- const parsedOutput = {
1476
- ...output,
1477
- body: await parseErrorBody(output.body, context),
1478
- };
1479
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1480
- switch (errorCode) {
1481
- case "AccessDeniedException":
1482
- case "com.amazonaws.lakeformation#AccessDeniedException":
1483
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1484
- case "ConcurrentModificationException":
1485
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1486
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1487
- case "EntityNotFoundException":
1488
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1489
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1490
- case "InternalServiceException":
1491
- case "com.amazonaws.lakeformation#InternalServiceException":
1492
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1493
- case "InvalidInputException":
1494
- case "com.amazonaws.lakeformation#InvalidInputException":
1495
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1496
- case "OperationTimeoutException":
1497
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1498
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1499
- default:
1500
- const parsedBody = parsedOutput.body;
1501
- return throwDefaultError({
1502
- output,
1503
- parsedBody,
1504
- errorCode,
1505
- });
1506
- }
1507
- };
1508
- const de_DeleteLFTagCommand = async (output, context) => {
1509
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1510
- return de_DeleteLFTagCommandError(output, context);
1511
- }
1512
- const contents = (0, smithy_client_1.map)({
1513
- $metadata: deserializeMetadata(output),
1514
- });
1515
- await (0, smithy_client_1.collectBody)(output.body, context);
1516
- return contents;
1517
- };
1518
- exports.de_DeleteLFTagCommand = de_DeleteLFTagCommand;
1519
- const de_DeleteLFTagCommandError = async (output, context) => {
1520
- const parsedOutput = {
1521
- ...output,
1522
- body: await parseErrorBody(output.body, context),
1523
- };
1524
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1525
- switch (errorCode) {
1526
- case "AccessDeniedException":
1527
- case "com.amazonaws.lakeformation#AccessDeniedException":
1528
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1529
- case "EntityNotFoundException":
1530
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1531
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1532
- case "InternalServiceException":
1533
- case "com.amazonaws.lakeformation#InternalServiceException":
1534
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1535
- case "InvalidInputException":
1536
- case "com.amazonaws.lakeformation#InvalidInputException":
1537
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1538
- case "OperationTimeoutException":
1539
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1540
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1541
- default:
1542
- const parsedBody = parsedOutput.body;
1543
- return throwDefaultError({
1544
- output,
1545
- parsedBody,
1546
- errorCode,
1547
- });
1548
- }
1549
- };
1550
- const de_DeleteObjectsOnCancelCommand = async (output, context) => {
1551
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1552
- return de_DeleteObjectsOnCancelCommandError(output, context);
1553
- }
1554
- const contents = (0, smithy_client_1.map)({
1555
- $metadata: deserializeMetadata(output),
1556
- });
1557
- await (0, smithy_client_1.collectBody)(output.body, context);
1558
- return contents;
1559
- };
1560
- exports.de_DeleteObjectsOnCancelCommand = de_DeleteObjectsOnCancelCommand;
1561
- const de_DeleteObjectsOnCancelCommandError = async (output, context) => {
1562
- const parsedOutput = {
1563
- ...output,
1564
- body: await parseErrorBody(output.body, context),
1565
- };
1566
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1567
- switch (errorCode) {
1568
- case "ConcurrentModificationException":
1569
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1570
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1571
- case "EntityNotFoundException":
1572
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1573
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1574
- case "InternalServiceException":
1575
- case "com.amazonaws.lakeformation#InternalServiceException":
1576
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1577
- case "InvalidInputException":
1578
- case "com.amazonaws.lakeformation#InvalidInputException":
1579
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1580
- case "OperationTimeoutException":
1581
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1582
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1583
- case "ResourceNotReadyException":
1584
- case "com.amazonaws.lakeformation#ResourceNotReadyException":
1585
- throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1586
- case "TransactionCanceledException":
1587
- case "com.amazonaws.lakeformation#TransactionCanceledException":
1588
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
1589
- case "TransactionCommittedException":
1590
- case "com.amazonaws.lakeformation#TransactionCommittedException":
1591
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
1592
- default:
1593
- const parsedBody = parsedOutput.body;
1594
- return throwDefaultError({
1595
- output,
1596
- parsedBody,
1597
- errorCode,
1598
- });
1599
- }
1600
- };
1601
- const de_DeregisterResourceCommand = async (output, context) => {
1602
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1603
- return de_DeregisterResourceCommandError(output, context);
1604
- }
1605
- const contents = (0, smithy_client_1.map)({
1606
- $metadata: deserializeMetadata(output),
1607
- });
1608
- await (0, smithy_client_1.collectBody)(output.body, context);
1609
- return contents;
1610
- };
1611
- exports.de_DeregisterResourceCommand = de_DeregisterResourceCommand;
1612
- const de_DeregisterResourceCommandError = async (output, context) => {
1613
- const parsedOutput = {
1614
- ...output,
1615
- body: await parseErrorBody(output.body, context),
1616
- };
1617
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1618
- switch (errorCode) {
1619
- case "EntityNotFoundException":
1620
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1621
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1622
- case "InternalServiceException":
1623
- case "com.amazonaws.lakeformation#InternalServiceException":
1624
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1625
- case "InvalidInputException":
1626
- case "com.amazonaws.lakeformation#InvalidInputException":
1627
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1628
- case "OperationTimeoutException":
1629
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1630
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1631
- default:
1632
- const parsedBody = parsedOutput.body;
1633
- return throwDefaultError({
1634
- output,
1635
- parsedBody,
1636
- errorCode,
1637
- });
1638
- }
1639
- };
1640
- const de_DescribeLakeFormationIdentityCenterConfigurationCommand = async (output, context) => {
1641
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1642
- return de_DescribeLakeFormationIdentityCenterConfigurationCommandError(output, context);
1643
- }
1644
- const contents = (0, smithy_client_1.map)({
1645
- $metadata: deserializeMetadata(output),
1646
- });
1647
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1648
- const doc = (0, smithy_client_1.take)(data, {
1649
- ApplicationArn: smithy_client_1.expectString,
1650
- CatalogId: smithy_client_1.expectString,
1651
- ExternalFiltering: smithy_client_1._json,
1652
- InstanceArn: smithy_client_1.expectString,
1653
- });
1654
- Object.assign(contents, doc);
1655
- return contents;
1656
- };
1657
- exports.de_DescribeLakeFormationIdentityCenterConfigurationCommand = de_DescribeLakeFormationIdentityCenterConfigurationCommand;
1658
- const de_DescribeLakeFormationIdentityCenterConfigurationCommandError = async (output, context) => {
1659
- const parsedOutput = {
1660
- ...output,
1661
- body: await parseErrorBody(output.body, context),
1662
- };
1663
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
- switch (errorCode) {
1665
- case "AccessDeniedException":
1666
- case "com.amazonaws.lakeformation#AccessDeniedException":
1667
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1668
- case "EntityNotFoundException":
1669
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1670
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1671
- case "InternalServiceException":
1672
- case "com.amazonaws.lakeformation#InternalServiceException":
1673
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1674
- case "InvalidInputException":
1675
- case "com.amazonaws.lakeformation#InvalidInputException":
1676
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1677
- case "OperationTimeoutException":
1678
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1679
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1680
- default:
1681
- const parsedBody = parsedOutput.body;
1682
- return throwDefaultError({
1683
- output,
1684
- parsedBody,
1685
- errorCode,
1686
- });
1687
- }
1688
- };
1689
- const de_DescribeResourceCommand = async (output, context) => {
1690
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1691
- return de_DescribeResourceCommandError(output, context);
1692
- }
1693
- const contents = (0, smithy_client_1.map)({
1694
- $metadata: deserializeMetadata(output),
1695
- });
1696
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1697
- const doc = (0, smithy_client_1.take)(data, {
1698
- ResourceInfo: (_) => de_ResourceInfo(_, context),
1699
- });
1700
- Object.assign(contents, doc);
1701
- return contents;
1702
- };
1703
- exports.de_DescribeResourceCommand = de_DescribeResourceCommand;
1704
- const de_DescribeResourceCommandError = async (output, context) => {
1705
- const parsedOutput = {
1706
- ...output,
1707
- body: await parseErrorBody(output.body, context),
1708
- };
1709
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1710
- switch (errorCode) {
1711
- case "EntityNotFoundException":
1712
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1713
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1714
- case "InternalServiceException":
1715
- case "com.amazonaws.lakeformation#InternalServiceException":
1716
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1717
- case "InvalidInputException":
1718
- case "com.amazonaws.lakeformation#InvalidInputException":
1719
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1720
- case "OperationTimeoutException":
1721
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1722
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1723
- default:
1724
- const parsedBody = parsedOutput.body;
1725
- return throwDefaultError({
1726
- output,
1727
- parsedBody,
1728
- errorCode,
1729
- });
1730
- }
1731
- };
1732
- const de_DescribeTransactionCommand = async (output, context) => {
1733
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1734
- return de_DescribeTransactionCommandError(output, context);
1735
- }
1736
- const contents = (0, smithy_client_1.map)({
1737
- $metadata: deserializeMetadata(output),
1738
- });
1739
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1740
- const doc = (0, smithy_client_1.take)(data, {
1741
- TransactionDescription: (_) => de_TransactionDescription(_, context),
1742
- });
1743
- Object.assign(contents, doc);
1744
- return contents;
1745
- };
1746
- exports.de_DescribeTransactionCommand = de_DescribeTransactionCommand;
1747
- const de_DescribeTransactionCommandError = async (output, context) => {
1748
- const parsedOutput = {
1749
- ...output,
1750
- body: await parseErrorBody(output.body, context),
1751
- };
1752
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1753
- switch (errorCode) {
1754
- case "EntityNotFoundException":
1755
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1756
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1757
- case "InternalServiceException":
1758
- case "com.amazonaws.lakeformation#InternalServiceException":
1759
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1760
- case "InvalidInputException":
1761
- case "com.amazonaws.lakeformation#InvalidInputException":
1762
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1763
- case "OperationTimeoutException":
1764
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1765
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1766
- default:
1767
- const parsedBody = parsedOutput.body;
1768
- return throwDefaultError({
1769
- output,
1770
- parsedBody,
1771
- errorCode,
1772
- });
1773
- }
1774
- };
1775
- const de_ExtendTransactionCommand = async (output, context) => {
1776
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1777
- return de_ExtendTransactionCommandError(output, context);
1778
- }
1779
- const contents = (0, smithy_client_1.map)({
1780
- $metadata: deserializeMetadata(output),
1781
- });
1782
- await (0, smithy_client_1.collectBody)(output.body, context);
1783
- return contents;
1784
- };
1785
- exports.de_ExtendTransactionCommand = de_ExtendTransactionCommand;
1786
- const de_ExtendTransactionCommandError = async (output, context) => {
1787
- const parsedOutput = {
1788
- ...output,
1789
- body: await parseErrorBody(output.body, context),
1790
- };
1791
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1792
- switch (errorCode) {
1793
- case "EntityNotFoundException":
1794
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1795
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1796
- case "InternalServiceException":
1797
- case "com.amazonaws.lakeformation#InternalServiceException":
1798
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1799
- case "InvalidInputException":
1800
- case "com.amazonaws.lakeformation#InvalidInputException":
1801
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1802
- case "OperationTimeoutException":
1803
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1804
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1805
- case "TransactionCanceledException":
1806
- case "com.amazonaws.lakeformation#TransactionCanceledException":
1807
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
1808
- case "TransactionCommitInProgressException":
1809
- case "com.amazonaws.lakeformation#TransactionCommitInProgressException":
1810
- throw await de_TransactionCommitInProgressExceptionRes(parsedOutput, context);
1811
- case "TransactionCommittedException":
1812
- case "com.amazonaws.lakeformation#TransactionCommittedException":
1813
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
1814
- default:
1815
- const parsedBody = parsedOutput.body;
1816
- return throwDefaultError({
1817
- output,
1818
- parsedBody,
1819
- errorCode,
1820
- });
1821
- }
1822
- };
1823
- const de_GetDataCellsFilterCommand = async (output, context) => {
1824
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1825
- return de_GetDataCellsFilterCommandError(output, context);
1826
- }
1827
- const contents = (0, smithy_client_1.map)({
1828
- $metadata: deserializeMetadata(output),
1829
- });
1830
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1831
- const doc = (0, smithy_client_1.take)(data, {
1832
- DataCellsFilter: smithy_client_1._json,
1833
- });
1834
- Object.assign(contents, doc);
1835
- return contents;
1836
- };
1837
- exports.de_GetDataCellsFilterCommand = de_GetDataCellsFilterCommand;
1838
- const de_GetDataCellsFilterCommandError = async (output, context) => {
1839
- const parsedOutput = {
1840
- ...output,
1841
- body: await parseErrorBody(output.body, context),
1842
- };
1843
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1844
- switch (errorCode) {
1845
- case "AccessDeniedException":
1846
- case "com.amazonaws.lakeformation#AccessDeniedException":
1847
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1848
- case "EntityNotFoundException":
1849
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1850
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1851
- case "InternalServiceException":
1852
- case "com.amazonaws.lakeformation#InternalServiceException":
1853
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1854
- case "InvalidInputException":
1855
- case "com.amazonaws.lakeformation#InvalidInputException":
1856
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1857
- case "OperationTimeoutException":
1858
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1859
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1860
- default:
1861
- const parsedBody = parsedOutput.body;
1862
- return throwDefaultError({
1863
- output,
1864
- parsedBody,
1865
- errorCode,
1866
- });
1867
- }
1868
- };
1869
- const de_GetDataLakeSettingsCommand = async (output, context) => {
1870
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1871
- return de_GetDataLakeSettingsCommandError(output, context);
1872
- }
1873
- const contents = (0, smithy_client_1.map)({
1874
- $metadata: deserializeMetadata(output),
1875
- });
1876
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1877
- const doc = (0, smithy_client_1.take)(data, {
1878
- DataLakeSettings: smithy_client_1._json,
1879
- });
1880
- Object.assign(contents, doc);
1881
- return contents;
1882
- };
1883
- exports.de_GetDataLakeSettingsCommand = de_GetDataLakeSettingsCommand;
1884
- const de_GetDataLakeSettingsCommandError = async (output, context) => {
1885
- const parsedOutput = {
1886
- ...output,
1887
- body: await parseErrorBody(output.body, context),
1888
- };
1889
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1890
- switch (errorCode) {
1891
- case "EntityNotFoundException":
1892
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1893
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1894
- case "InternalServiceException":
1895
- case "com.amazonaws.lakeformation#InternalServiceException":
1896
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1897
- case "InvalidInputException":
1898
- case "com.amazonaws.lakeformation#InvalidInputException":
1899
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1900
- default:
1901
- const parsedBody = parsedOutput.body;
1902
- return throwDefaultError({
1903
- output,
1904
- parsedBody,
1905
- errorCode,
1906
- });
1907
- }
1908
- };
1909
- const de_GetEffectivePermissionsForPathCommand = async (output, context) => {
1910
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1911
- return de_GetEffectivePermissionsForPathCommandError(output, context);
1912
- }
1913
- const contents = (0, smithy_client_1.map)({
1914
- $metadata: deserializeMetadata(output),
1915
- });
1916
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1917
- const doc = (0, smithy_client_1.take)(data, {
1918
- NextToken: smithy_client_1.expectString,
1919
- Permissions: (_) => de_PrincipalResourcePermissionsList(_, context),
1920
- });
1921
- Object.assign(contents, doc);
1922
- return contents;
1923
- };
1924
- exports.de_GetEffectivePermissionsForPathCommand = de_GetEffectivePermissionsForPathCommand;
1925
- const de_GetEffectivePermissionsForPathCommandError = async (output, context) => {
1926
- const parsedOutput = {
1927
- ...output,
1928
- body: await parseErrorBody(output.body, context),
1929
- };
1930
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1931
- switch (errorCode) {
1932
- case "EntityNotFoundException":
1933
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1934
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1935
- case "InternalServiceException":
1936
- case "com.amazonaws.lakeformation#InternalServiceException":
1937
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1938
- case "InvalidInputException":
1939
- case "com.amazonaws.lakeformation#InvalidInputException":
1940
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1941
- case "OperationTimeoutException":
1942
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1943
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1944
- default:
1945
- const parsedBody = parsedOutput.body;
1946
- return throwDefaultError({
1947
- output,
1948
- parsedBody,
1949
- errorCode,
1950
- });
1951
- }
1952
- };
1953
- const de_GetLFTagCommand = async (output, context) => {
1954
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1955
- return de_GetLFTagCommandError(output, context);
1956
- }
1957
- const contents = (0, smithy_client_1.map)({
1958
- $metadata: deserializeMetadata(output),
1959
- });
1960
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1961
- const doc = (0, smithy_client_1.take)(data, {
1962
- CatalogId: smithy_client_1.expectString,
1963
- TagKey: smithy_client_1.expectString,
1964
- TagValues: smithy_client_1._json,
1965
- });
1966
- Object.assign(contents, doc);
1967
- return contents;
1968
- };
1969
- exports.de_GetLFTagCommand = de_GetLFTagCommand;
1970
- const de_GetLFTagCommandError = async (output, context) => {
1971
- const parsedOutput = {
1972
- ...output,
1973
- body: await parseErrorBody(output.body, context),
1974
- };
1975
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1976
- switch (errorCode) {
1977
- case "AccessDeniedException":
1978
- case "com.amazonaws.lakeformation#AccessDeniedException":
1979
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1980
- case "EntityNotFoundException":
1981
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1982
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1983
- case "InternalServiceException":
1984
- case "com.amazonaws.lakeformation#InternalServiceException":
1985
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1986
- case "InvalidInputException":
1987
- case "com.amazonaws.lakeformation#InvalidInputException":
1988
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1989
- case "OperationTimeoutException":
1990
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1991
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1992
- default:
1993
- const parsedBody = parsedOutput.body;
1994
- return throwDefaultError({
1995
- output,
1996
- parsedBody,
1997
- errorCode,
1998
- });
1999
- }
2000
- };
2001
- const de_GetQueryStateCommand = async (output, context) => {
2002
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2003
- return de_GetQueryStateCommandError(output, context);
2004
- }
2005
- const contents = (0, smithy_client_1.map)({
2006
- $metadata: deserializeMetadata(output),
2007
- });
2008
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2009
- const doc = (0, smithy_client_1.take)(data, {
2010
- Error: smithy_client_1.expectString,
2011
- State: smithy_client_1.expectString,
2012
- });
2013
- Object.assign(contents, doc);
2014
- return contents;
2015
- };
2016
- exports.de_GetQueryStateCommand = de_GetQueryStateCommand;
2017
- const de_GetQueryStateCommandError = async (output, context) => {
2018
- const parsedOutput = {
2019
- ...output,
2020
- body: await parseErrorBody(output.body, context),
2021
- };
2022
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2023
- switch (errorCode) {
2024
- case "AccessDeniedException":
2025
- case "com.amazonaws.lakeformation#AccessDeniedException":
2026
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2027
- case "InternalServiceException":
2028
- case "com.amazonaws.lakeformation#InternalServiceException":
2029
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2030
- case "InvalidInputException":
2031
- case "com.amazonaws.lakeformation#InvalidInputException":
2032
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2033
- default:
2034
- const parsedBody = parsedOutput.body;
2035
- return throwDefaultError({
2036
- output,
2037
- parsedBody,
2038
- errorCode,
2039
- });
2040
- }
2041
- };
2042
- const de_GetQueryStatisticsCommand = async (output, context) => {
2043
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2044
- return de_GetQueryStatisticsCommandError(output, context);
2045
- }
2046
- const contents = (0, smithy_client_1.map)({
2047
- $metadata: deserializeMetadata(output),
2048
- });
2049
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2050
- const doc = (0, smithy_client_1.take)(data, {
2051
- ExecutionStatistics: smithy_client_1._json,
2052
- PlanningStatistics: smithy_client_1._json,
2053
- QuerySubmissionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2054
- });
2055
- Object.assign(contents, doc);
2056
- return contents;
2057
- };
2058
- exports.de_GetQueryStatisticsCommand = de_GetQueryStatisticsCommand;
2059
- const de_GetQueryStatisticsCommandError = async (output, context) => {
2060
- const parsedOutput = {
2061
- ...output,
2062
- body: await parseErrorBody(output.body, context),
2063
- };
2064
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2065
- switch (errorCode) {
2066
- case "AccessDeniedException":
2067
- case "com.amazonaws.lakeformation#AccessDeniedException":
2068
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2069
- case "ExpiredException":
2070
- case "com.amazonaws.lakeformation#ExpiredException":
2071
- throw await de_ExpiredExceptionRes(parsedOutput, context);
2072
- case "InternalServiceException":
2073
- case "com.amazonaws.lakeformation#InternalServiceException":
2074
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2075
- case "InvalidInputException":
2076
- case "com.amazonaws.lakeformation#InvalidInputException":
2077
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2078
- case "StatisticsNotReadyYetException":
2079
- case "com.amazonaws.lakeformation#StatisticsNotReadyYetException":
2080
- throw await de_StatisticsNotReadyYetExceptionRes(parsedOutput, context);
2081
- case "ThrottledException":
2082
- case "com.amazonaws.lakeformation#ThrottledException":
2083
- throw await de_ThrottledExceptionRes(parsedOutput, context);
2084
- default:
2085
- const parsedBody = parsedOutput.body;
2086
- return throwDefaultError({
2087
- output,
2088
- parsedBody,
2089
- errorCode,
2090
- });
2091
- }
2092
- };
2093
- const de_GetResourceLFTagsCommand = async (output, context) => {
2094
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2095
- return de_GetResourceLFTagsCommandError(output, context);
2096
- }
2097
- const contents = (0, smithy_client_1.map)({
2098
- $metadata: deserializeMetadata(output),
2099
- });
2100
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2101
- const doc = (0, smithy_client_1.take)(data, {
2102
- LFTagOnDatabase: smithy_client_1._json,
2103
- LFTagsOnColumns: smithy_client_1._json,
2104
- LFTagsOnTable: smithy_client_1._json,
2105
- });
2106
- Object.assign(contents, doc);
2107
- return contents;
2108
- };
2109
- exports.de_GetResourceLFTagsCommand = de_GetResourceLFTagsCommand;
2110
- const de_GetResourceLFTagsCommandError = async (output, context) => {
2111
- const parsedOutput = {
2112
- ...output,
2113
- body: await parseErrorBody(output.body, context),
2114
- };
2115
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2116
- switch (errorCode) {
2117
- case "AccessDeniedException":
2118
- case "com.amazonaws.lakeformation#AccessDeniedException":
2119
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2120
- case "EntityNotFoundException":
2121
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2122
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2123
- case "GlueEncryptionException":
2124
- case "com.amazonaws.lakeformation#GlueEncryptionException":
2125
- throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
2126
- case "InternalServiceException":
2127
- case "com.amazonaws.lakeformation#InternalServiceException":
2128
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2129
- case "InvalidInputException":
2130
- case "com.amazonaws.lakeformation#InvalidInputException":
2131
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2132
- case "OperationTimeoutException":
2133
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2134
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2135
- default:
2136
- const parsedBody = parsedOutput.body;
2137
- return throwDefaultError({
2138
- output,
2139
- parsedBody,
2140
- errorCode,
2141
- });
2142
- }
2143
- };
2144
- const de_GetTableObjectsCommand = async (output, context) => {
2145
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2146
- return de_GetTableObjectsCommandError(output, context);
2147
- }
2148
- const contents = (0, smithy_client_1.map)({
2149
- $metadata: deserializeMetadata(output),
2150
- });
2151
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2152
- const doc = (0, smithy_client_1.take)(data, {
2153
- NextToken: smithy_client_1.expectString,
2154
- Objects: smithy_client_1._json,
2155
- });
2156
- Object.assign(contents, doc);
2157
- return contents;
2158
- };
2159
- exports.de_GetTableObjectsCommand = de_GetTableObjectsCommand;
2160
- const de_GetTableObjectsCommandError = async (output, context) => {
2161
- const parsedOutput = {
2162
- ...output,
2163
- body: await parseErrorBody(output.body, context),
2164
- };
2165
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2166
- switch (errorCode) {
2167
- case "EntityNotFoundException":
2168
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2169
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2170
- case "InternalServiceException":
2171
- case "com.amazonaws.lakeformation#InternalServiceException":
2172
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2173
- case "InvalidInputException":
2174
- case "com.amazonaws.lakeformation#InvalidInputException":
2175
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2176
- case "OperationTimeoutException":
2177
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2178
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2179
- case "ResourceNotReadyException":
2180
- case "com.amazonaws.lakeformation#ResourceNotReadyException":
2181
- throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
2182
- case "TransactionCanceledException":
2183
- case "com.amazonaws.lakeformation#TransactionCanceledException":
2184
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
2185
- case "TransactionCommittedException":
2186
- case "com.amazonaws.lakeformation#TransactionCommittedException":
2187
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
2188
- default:
2189
- const parsedBody = parsedOutput.body;
2190
- return throwDefaultError({
2191
- output,
2192
- parsedBody,
2193
- errorCode,
2194
- });
2195
- }
2196
- };
2197
- const de_GetTemporaryGluePartitionCredentialsCommand = async (output, context) => {
2198
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2199
- return de_GetTemporaryGluePartitionCredentialsCommandError(output, context);
2200
- }
2201
- const contents = (0, smithy_client_1.map)({
2202
- $metadata: deserializeMetadata(output),
2203
- });
2204
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2205
- const doc = (0, smithy_client_1.take)(data, {
2206
- AccessKeyId: smithy_client_1.expectString,
2207
- Expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2208
- SecretAccessKey: smithy_client_1.expectString,
2209
- SessionToken: smithy_client_1.expectString,
2210
- });
2211
- Object.assign(contents, doc);
2212
- return contents;
2213
- };
2214
- exports.de_GetTemporaryGluePartitionCredentialsCommand = de_GetTemporaryGluePartitionCredentialsCommand;
2215
- const de_GetTemporaryGluePartitionCredentialsCommandError = async (output, context) => {
2216
- const parsedOutput = {
2217
- ...output,
2218
- body: await parseErrorBody(output.body, context),
2219
- };
2220
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2221
- switch (errorCode) {
2222
- case "AccessDeniedException":
2223
- case "com.amazonaws.lakeformation#AccessDeniedException":
2224
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2225
- case "EntityNotFoundException":
2226
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2227
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2228
- case "InternalServiceException":
2229
- case "com.amazonaws.lakeformation#InternalServiceException":
2230
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2231
- case "InvalidInputException":
2232
- case "com.amazonaws.lakeformation#InvalidInputException":
2233
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2234
- case "OperationTimeoutException":
2235
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2236
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2237
- case "PermissionTypeMismatchException":
2238
- case "com.amazonaws.lakeformation#PermissionTypeMismatchException":
2239
- throw await de_PermissionTypeMismatchExceptionRes(parsedOutput, context);
2240
- default:
2241
- const parsedBody = parsedOutput.body;
2242
- return throwDefaultError({
2243
- output,
2244
- parsedBody,
2245
- errorCode,
2246
- });
2247
- }
2248
- };
2249
- const de_GetTemporaryGlueTableCredentialsCommand = async (output, context) => {
2250
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2251
- return de_GetTemporaryGlueTableCredentialsCommandError(output, context);
2252
- }
2253
- const contents = (0, smithy_client_1.map)({
2254
- $metadata: deserializeMetadata(output),
2255
- });
2256
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2257
- const doc = (0, smithy_client_1.take)(data, {
2258
- AccessKeyId: smithy_client_1.expectString,
2259
- Expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2260
- SecretAccessKey: smithy_client_1.expectString,
2261
- SessionToken: smithy_client_1.expectString,
2262
- VendedS3Path: smithy_client_1._json,
2263
- });
2264
- Object.assign(contents, doc);
2265
- return contents;
2266
- };
2267
- exports.de_GetTemporaryGlueTableCredentialsCommand = de_GetTemporaryGlueTableCredentialsCommand;
2268
- const de_GetTemporaryGlueTableCredentialsCommandError = async (output, context) => {
2269
- const parsedOutput = {
2270
- ...output,
2271
- body: await parseErrorBody(output.body, context),
2272
- };
2273
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2274
- switch (errorCode) {
2275
- case "AccessDeniedException":
2276
- case "com.amazonaws.lakeformation#AccessDeniedException":
2277
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2278
- case "EntityNotFoundException":
2279
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2280
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2281
- case "InternalServiceException":
2282
- case "com.amazonaws.lakeformation#InternalServiceException":
2283
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2284
- case "InvalidInputException":
2285
- case "com.amazonaws.lakeformation#InvalidInputException":
2286
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2287
- case "OperationTimeoutException":
2288
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2289
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2290
- case "PermissionTypeMismatchException":
2291
- case "com.amazonaws.lakeformation#PermissionTypeMismatchException":
2292
- throw await de_PermissionTypeMismatchExceptionRes(parsedOutput, context);
2293
- default:
2294
- const parsedBody = parsedOutput.body;
2295
- return throwDefaultError({
2296
- output,
2297
- parsedBody,
2298
- errorCode,
2299
- });
2300
- }
2301
- };
2302
- const de_GetWorkUnitResultsCommand = async (output, context) => {
2303
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2304
- return de_GetWorkUnitResultsCommandError(output, context);
2305
- }
2306
- const contents = (0, smithy_client_1.map)({
2307
- $metadata: deserializeMetadata(output),
2308
- });
2309
- const data = output.body;
2310
- context.sdkStreamMixin(data);
2311
- contents.ResultStream = data;
2312
- return contents;
2313
- };
2314
- exports.de_GetWorkUnitResultsCommand = de_GetWorkUnitResultsCommand;
2315
- const de_GetWorkUnitResultsCommandError = async (output, context) => {
2316
- const parsedOutput = {
2317
- ...output,
2318
- body: await parseErrorBody(output.body, context),
2319
- };
2320
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2321
- switch (errorCode) {
2322
- case "AccessDeniedException":
2323
- case "com.amazonaws.lakeformation#AccessDeniedException":
2324
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2325
- case "ExpiredException":
2326
- case "com.amazonaws.lakeformation#ExpiredException":
2327
- throw await de_ExpiredExceptionRes(parsedOutput, context);
2328
- case "InternalServiceException":
2329
- case "com.amazonaws.lakeformation#InternalServiceException":
2330
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2331
- case "InvalidInputException":
2332
- case "com.amazonaws.lakeformation#InvalidInputException":
2333
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2334
- case "ThrottledException":
2335
- case "com.amazonaws.lakeformation#ThrottledException":
2336
- throw await de_ThrottledExceptionRes(parsedOutput, context);
2337
- default:
2338
- const parsedBody = parsedOutput.body;
2339
- return throwDefaultError({
2340
- output,
2341
- parsedBody,
2342
- errorCode,
2343
- });
2344
- }
2345
- };
2346
- const de_GetWorkUnitsCommand = async (output, context) => {
2347
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2348
- return de_GetWorkUnitsCommandError(output, context);
2349
- }
2350
- const contents = (0, smithy_client_1.map)({
2351
- $metadata: deserializeMetadata(output),
2352
- });
2353
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2354
- const doc = (0, smithy_client_1.take)(data, {
2355
- NextToken: smithy_client_1.expectString,
2356
- QueryId: smithy_client_1.expectString,
2357
- WorkUnitRanges: smithy_client_1._json,
2358
- });
2359
- Object.assign(contents, doc);
2360
- return contents;
2361
- };
2362
- exports.de_GetWorkUnitsCommand = de_GetWorkUnitsCommand;
2363
- const de_GetWorkUnitsCommandError = async (output, context) => {
2364
- const parsedOutput = {
2365
- ...output,
2366
- body: await parseErrorBody(output.body, context),
2367
- };
2368
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2369
- switch (errorCode) {
2370
- case "AccessDeniedException":
2371
- case "com.amazonaws.lakeformation#AccessDeniedException":
2372
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2373
- case "ExpiredException":
2374
- case "com.amazonaws.lakeformation#ExpiredException":
2375
- throw await de_ExpiredExceptionRes(parsedOutput, context);
2376
- case "InternalServiceException":
2377
- case "com.amazonaws.lakeformation#InternalServiceException":
2378
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2379
- case "InvalidInputException":
2380
- case "com.amazonaws.lakeformation#InvalidInputException":
2381
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2382
- case "WorkUnitsNotReadyYetException":
2383
- case "com.amazonaws.lakeformation#WorkUnitsNotReadyYetException":
2384
- throw await de_WorkUnitsNotReadyYetExceptionRes(parsedOutput, context);
2385
- default:
2386
- const parsedBody = parsedOutput.body;
2387
- return throwDefaultError({
2388
- output,
2389
- parsedBody,
2390
- errorCode,
2391
- });
2392
- }
2393
- };
2394
- const de_GrantPermissionsCommand = async (output, context) => {
2395
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2396
- return de_GrantPermissionsCommandError(output, context);
2397
- }
2398
- const contents = (0, smithy_client_1.map)({
2399
- $metadata: deserializeMetadata(output),
2400
- });
2401
- await (0, smithy_client_1.collectBody)(output.body, context);
2402
- return contents;
2403
- };
2404
- exports.de_GrantPermissionsCommand = de_GrantPermissionsCommand;
2405
- const de_GrantPermissionsCommandError = async (output, context) => {
2406
- const parsedOutput = {
2407
- ...output,
2408
- body: await parseErrorBody(output.body, context),
2409
- };
2410
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2411
- switch (errorCode) {
2412
- case "ConcurrentModificationException":
2413
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
2414
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2415
- case "EntityNotFoundException":
2416
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2417
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2418
- case "InvalidInputException":
2419
- case "com.amazonaws.lakeformation#InvalidInputException":
2420
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2421
- default:
2422
- const parsedBody = parsedOutput.body;
2423
- return throwDefaultError({
2424
- output,
2425
- parsedBody,
2426
- errorCode,
2427
- });
2428
- }
2429
- };
2430
- const de_ListDataCellsFilterCommand = async (output, context) => {
2431
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2432
- return de_ListDataCellsFilterCommandError(output, context);
2433
- }
2434
- const contents = (0, smithy_client_1.map)({
2435
- $metadata: deserializeMetadata(output),
2436
- });
2437
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2438
- const doc = (0, smithy_client_1.take)(data, {
2439
- DataCellsFilters: smithy_client_1._json,
2440
- NextToken: smithy_client_1.expectString,
2441
- });
2442
- Object.assign(contents, doc);
2443
- return contents;
2444
- };
2445
- exports.de_ListDataCellsFilterCommand = de_ListDataCellsFilterCommand;
2446
- const de_ListDataCellsFilterCommandError = async (output, context) => {
2447
- const parsedOutput = {
2448
- ...output,
2449
- body: await parseErrorBody(output.body, context),
2450
- };
2451
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2452
- switch (errorCode) {
2453
- case "AccessDeniedException":
2454
- case "com.amazonaws.lakeformation#AccessDeniedException":
2455
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2456
- case "InternalServiceException":
2457
- case "com.amazonaws.lakeformation#InternalServiceException":
2458
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2459
- case "InvalidInputException":
2460
- case "com.amazonaws.lakeformation#InvalidInputException":
2461
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2462
- case "OperationTimeoutException":
2463
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2464
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2465
- default:
2466
- const parsedBody = parsedOutput.body;
2467
- return throwDefaultError({
2468
- output,
2469
- parsedBody,
2470
- errorCode,
2471
- });
2472
- }
2473
- };
2474
- const de_ListLakeFormationOptInsCommand = async (output, context) => {
2475
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2476
- return de_ListLakeFormationOptInsCommandError(output, context);
2477
- }
2478
- const contents = (0, smithy_client_1.map)({
2479
- $metadata: deserializeMetadata(output),
2480
- });
2481
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2482
- const doc = (0, smithy_client_1.take)(data, {
2483
- LakeFormationOptInsInfoList: (_) => de_LakeFormationOptInsInfoList(_, context),
2484
- NextToken: smithy_client_1.expectString,
2485
- });
2486
- Object.assign(contents, doc);
2487
- return contents;
2488
- };
2489
- exports.de_ListLakeFormationOptInsCommand = de_ListLakeFormationOptInsCommand;
2490
- const de_ListLakeFormationOptInsCommandError = async (output, context) => {
2491
- const parsedOutput = {
2492
- ...output,
2493
- body: await parseErrorBody(output.body, context),
2494
- };
2495
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2496
- switch (errorCode) {
2497
- case "AccessDeniedException":
2498
- case "com.amazonaws.lakeformation#AccessDeniedException":
2499
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2500
- case "InternalServiceException":
2501
- case "com.amazonaws.lakeformation#InternalServiceException":
2502
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2503
- case "InvalidInputException":
2504
- case "com.amazonaws.lakeformation#InvalidInputException":
2505
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2506
- case "OperationTimeoutException":
2507
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2508
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2509
- default:
2510
- const parsedBody = parsedOutput.body;
2511
- return throwDefaultError({
2512
- output,
2513
- parsedBody,
2514
- errorCode,
2515
- });
2516
- }
2517
- };
2518
- const de_ListLFTagsCommand = async (output, context) => {
2519
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2520
- return de_ListLFTagsCommandError(output, context);
2521
- }
2522
- const contents = (0, smithy_client_1.map)({
2523
- $metadata: deserializeMetadata(output),
2524
- });
2525
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2526
- const doc = (0, smithy_client_1.take)(data, {
2527
- LFTags: smithy_client_1._json,
2528
- NextToken: smithy_client_1.expectString,
2529
- });
2530
- Object.assign(contents, doc);
2531
- return contents;
2532
- };
2533
- exports.de_ListLFTagsCommand = de_ListLFTagsCommand;
2534
- const de_ListLFTagsCommandError = async (output, context) => {
2535
- const parsedOutput = {
2536
- ...output,
2537
- body: await parseErrorBody(output.body, context),
2538
- };
2539
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2540
- switch (errorCode) {
2541
- case "AccessDeniedException":
2542
- case "com.amazonaws.lakeformation#AccessDeniedException":
2543
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2544
- case "EntityNotFoundException":
2545
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2546
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2547
- case "InternalServiceException":
2548
- case "com.amazonaws.lakeformation#InternalServiceException":
2549
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2550
- case "InvalidInputException":
2551
- case "com.amazonaws.lakeformation#InvalidInputException":
2552
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2553
- case "OperationTimeoutException":
2554
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2555
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2556
- default:
2557
- const parsedBody = parsedOutput.body;
2558
- return throwDefaultError({
2559
- output,
2560
- parsedBody,
2561
- errorCode,
2562
- });
2563
- }
2564
- };
2565
- const de_ListPermissionsCommand = async (output, context) => {
2566
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2567
- return de_ListPermissionsCommandError(output, context);
2568
- }
2569
- const contents = (0, smithy_client_1.map)({
2570
- $metadata: deserializeMetadata(output),
2571
- });
2572
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2573
- const doc = (0, smithy_client_1.take)(data, {
2574
- NextToken: smithy_client_1.expectString,
2575
- PrincipalResourcePermissions: (_) => de_PrincipalResourcePermissionsList(_, context),
2576
- });
2577
- Object.assign(contents, doc);
2578
- return contents;
2579
- };
2580
- exports.de_ListPermissionsCommand = de_ListPermissionsCommand;
2581
- const de_ListPermissionsCommandError = async (output, context) => {
2582
- const parsedOutput = {
2583
- ...output,
2584
- body: await parseErrorBody(output.body, context),
2585
- };
2586
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2587
- switch (errorCode) {
2588
- case "InternalServiceException":
2589
- case "com.amazonaws.lakeformation#InternalServiceException":
2590
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2591
- case "InvalidInputException":
2592
- case "com.amazonaws.lakeformation#InvalidInputException":
2593
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2594
- case "OperationTimeoutException":
2595
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2596
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2597
- default:
2598
- const parsedBody = parsedOutput.body;
2599
- return throwDefaultError({
2600
- output,
2601
- parsedBody,
2602
- errorCode,
2603
- });
2604
- }
2605
- };
2606
- const de_ListResourcesCommand = async (output, context) => {
2607
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2608
- return de_ListResourcesCommandError(output, context);
2609
- }
2610
- const contents = (0, smithy_client_1.map)({
2611
- $metadata: deserializeMetadata(output),
2612
- });
2613
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2614
- const doc = (0, smithy_client_1.take)(data, {
2615
- NextToken: smithy_client_1.expectString,
2616
- ResourceInfoList: (_) => de_ResourceInfoList(_, context),
2617
- });
2618
- Object.assign(contents, doc);
2619
- return contents;
2620
- };
2621
- exports.de_ListResourcesCommand = de_ListResourcesCommand;
2622
- const de_ListResourcesCommandError = async (output, context) => {
2623
- const parsedOutput = {
2624
- ...output,
2625
- body: await parseErrorBody(output.body, context),
2626
- };
2627
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2628
- switch (errorCode) {
2629
- case "InternalServiceException":
2630
- case "com.amazonaws.lakeformation#InternalServiceException":
2631
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2632
- case "InvalidInputException":
2633
- case "com.amazonaws.lakeformation#InvalidInputException":
2634
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2635
- case "OperationTimeoutException":
2636
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2637
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2638
- default:
2639
- const parsedBody = parsedOutput.body;
2640
- return throwDefaultError({
2641
- output,
2642
- parsedBody,
2643
- errorCode,
2644
- });
2645
- }
2646
- };
2647
- const de_ListTableStorageOptimizersCommand = async (output, context) => {
2648
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2649
- return de_ListTableStorageOptimizersCommandError(output, context);
2650
- }
2651
- const contents = (0, smithy_client_1.map)({
2652
- $metadata: deserializeMetadata(output),
2653
- });
2654
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2655
- const doc = (0, smithy_client_1.take)(data, {
2656
- NextToken: smithy_client_1.expectString,
2657
- StorageOptimizerList: smithy_client_1._json,
2658
- });
2659
- Object.assign(contents, doc);
2660
- return contents;
2661
- };
2662
- exports.de_ListTableStorageOptimizersCommand = de_ListTableStorageOptimizersCommand;
2663
- const de_ListTableStorageOptimizersCommandError = async (output, context) => {
2664
- const parsedOutput = {
2665
- ...output,
2666
- body: await parseErrorBody(output.body, context),
2667
- };
2668
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2669
- switch (errorCode) {
2670
- case "AccessDeniedException":
2671
- case "com.amazonaws.lakeformation#AccessDeniedException":
2672
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2673
- case "EntityNotFoundException":
2674
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2675
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2676
- case "InternalServiceException":
2677
- case "com.amazonaws.lakeformation#InternalServiceException":
2678
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2679
- case "InvalidInputException":
2680
- case "com.amazonaws.lakeformation#InvalidInputException":
2681
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2682
- default:
2683
- const parsedBody = parsedOutput.body;
2684
- return throwDefaultError({
2685
- output,
2686
- parsedBody,
2687
- errorCode,
2688
- });
2689
- }
2690
- };
2691
- const de_ListTransactionsCommand = async (output, context) => {
2692
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2693
- return de_ListTransactionsCommandError(output, context);
2694
- }
2695
- const contents = (0, smithy_client_1.map)({
2696
- $metadata: deserializeMetadata(output),
2697
- });
2698
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2699
- const doc = (0, smithy_client_1.take)(data, {
2700
- NextToken: smithy_client_1.expectString,
2701
- Transactions: (_) => de_TransactionDescriptionList(_, context),
2702
- });
2703
- Object.assign(contents, doc);
2704
- return contents;
2705
- };
2706
- exports.de_ListTransactionsCommand = de_ListTransactionsCommand;
2707
- const de_ListTransactionsCommandError = async (output, context) => {
2708
- const parsedOutput = {
2709
- ...output,
2710
- body: await parseErrorBody(output.body, context),
2711
- };
2712
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2713
- switch (errorCode) {
2714
- case "InternalServiceException":
2715
- case "com.amazonaws.lakeformation#InternalServiceException":
2716
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2717
- case "InvalidInputException":
2718
- case "com.amazonaws.lakeformation#InvalidInputException":
2719
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2720
- case "OperationTimeoutException":
2721
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2722
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2723
- default:
2724
- const parsedBody = parsedOutput.body;
2725
- return throwDefaultError({
2726
- output,
2727
- parsedBody,
2728
- errorCode,
2729
- });
2730
- }
2731
- };
2732
- const de_PutDataLakeSettingsCommand = async (output, context) => {
2733
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2734
- return de_PutDataLakeSettingsCommandError(output, context);
2735
- }
2736
- const contents = (0, smithy_client_1.map)({
2737
- $metadata: deserializeMetadata(output),
2738
- });
2739
- await (0, smithy_client_1.collectBody)(output.body, context);
2740
- return contents;
2741
- };
2742
- exports.de_PutDataLakeSettingsCommand = de_PutDataLakeSettingsCommand;
2743
- const de_PutDataLakeSettingsCommandError = async (output, context) => {
2744
- const parsedOutput = {
2745
- ...output,
2746
- body: await parseErrorBody(output.body, context),
2747
- };
2748
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2749
- switch (errorCode) {
2750
- case "InternalServiceException":
2751
- case "com.amazonaws.lakeformation#InternalServiceException":
2752
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2753
- case "InvalidInputException":
2754
- case "com.amazonaws.lakeformation#InvalidInputException":
2755
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2756
- default:
2757
- const parsedBody = parsedOutput.body;
2758
- return throwDefaultError({
2759
- output,
2760
- parsedBody,
2761
- errorCode,
2762
- });
2763
- }
2764
- };
2765
- const de_RegisterResourceCommand = async (output, context) => {
2766
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2767
- return de_RegisterResourceCommandError(output, context);
2768
- }
2769
- const contents = (0, smithy_client_1.map)({
2770
- $metadata: deserializeMetadata(output),
2771
- });
2772
- await (0, smithy_client_1.collectBody)(output.body, context);
2773
- return contents;
2774
- };
2775
- exports.de_RegisterResourceCommand = de_RegisterResourceCommand;
2776
- const de_RegisterResourceCommandError = async (output, context) => {
2777
- const parsedOutput = {
2778
- ...output,
2779
- body: await parseErrorBody(output.body, context),
2780
- };
2781
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2782
- switch (errorCode) {
2783
- case "AccessDeniedException":
2784
- case "com.amazonaws.lakeformation#AccessDeniedException":
2785
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2786
- case "AlreadyExistsException":
2787
- case "com.amazonaws.lakeformation#AlreadyExistsException":
2788
- throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
2789
- case "EntityNotFoundException":
2790
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2791
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2792
- case "InternalServiceException":
2793
- case "com.amazonaws.lakeformation#InternalServiceException":
2794
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2795
- case "InvalidInputException":
2796
- case "com.amazonaws.lakeformation#InvalidInputException":
2797
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2798
- case "OperationTimeoutException":
2799
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2800
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2801
- case "ResourceNumberLimitExceededException":
2802
- case "com.amazonaws.lakeformation#ResourceNumberLimitExceededException":
2803
- throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
2804
- default:
2805
- const parsedBody = parsedOutput.body;
2806
- return throwDefaultError({
2807
- output,
2808
- parsedBody,
2809
- errorCode,
2810
- });
2811
- }
2812
- };
2813
- const de_RemoveLFTagsFromResourceCommand = async (output, context) => {
2814
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2815
- return de_RemoveLFTagsFromResourceCommandError(output, context);
2816
- }
2817
- const contents = (0, smithy_client_1.map)({
2818
- $metadata: deserializeMetadata(output),
2819
- });
2820
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2821
- const doc = (0, smithy_client_1.take)(data, {
2822
- Failures: smithy_client_1._json,
2823
- });
2824
- Object.assign(contents, doc);
2825
- return contents;
2826
- };
2827
- exports.de_RemoveLFTagsFromResourceCommand = de_RemoveLFTagsFromResourceCommand;
2828
- const de_RemoveLFTagsFromResourceCommandError = async (output, context) => {
2829
- const parsedOutput = {
2830
- ...output,
2831
- body: await parseErrorBody(output.body, context),
2832
- };
2833
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2834
- switch (errorCode) {
2835
- case "AccessDeniedException":
2836
- case "com.amazonaws.lakeformation#AccessDeniedException":
2837
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2838
- case "ConcurrentModificationException":
2839
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
2840
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2841
- case "EntityNotFoundException":
2842
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2843
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2844
- case "GlueEncryptionException":
2845
- case "com.amazonaws.lakeformation#GlueEncryptionException":
2846
- throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
2847
- case "InternalServiceException":
2848
- case "com.amazonaws.lakeformation#InternalServiceException":
2849
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2850
- case "InvalidInputException":
2851
- case "com.amazonaws.lakeformation#InvalidInputException":
2852
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2853
- case "OperationTimeoutException":
2854
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2855
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2856
- default:
2857
- const parsedBody = parsedOutput.body;
2858
- return throwDefaultError({
2859
- output,
2860
- parsedBody,
2861
- errorCode,
2862
- });
2863
- }
2864
- };
2865
- const de_RevokePermissionsCommand = async (output, context) => {
2866
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2867
- return de_RevokePermissionsCommandError(output, context);
2868
- }
2869
- const contents = (0, smithy_client_1.map)({
2870
- $metadata: deserializeMetadata(output),
2871
- });
2872
- await (0, smithy_client_1.collectBody)(output.body, context);
2873
- return contents;
2874
- };
2875
- exports.de_RevokePermissionsCommand = de_RevokePermissionsCommand;
2876
- const de_RevokePermissionsCommandError = async (output, context) => {
2877
- const parsedOutput = {
2878
- ...output,
2879
- body: await parseErrorBody(output.body, context),
2880
- };
2881
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2882
- switch (errorCode) {
2883
- case "ConcurrentModificationException":
2884
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
2885
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2886
- case "EntityNotFoundException":
2887
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2888
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2889
- case "InvalidInputException":
2890
- case "com.amazonaws.lakeformation#InvalidInputException":
2891
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2892
- default:
2893
- const parsedBody = parsedOutput.body;
2894
- return throwDefaultError({
2895
- output,
2896
- parsedBody,
2897
- errorCode,
2898
- });
2899
- }
2900
- };
2901
- const de_SearchDatabasesByLFTagsCommand = async (output, context) => {
2902
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2903
- return de_SearchDatabasesByLFTagsCommandError(output, context);
2904
- }
2905
- const contents = (0, smithy_client_1.map)({
2906
- $metadata: deserializeMetadata(output),
2907
- });
2908
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2909
- const doc = (0, smithy_client_1.take)(data, {
2910
- DatabaseList: smithy_client_1._json,
2911
- NextToken: smithy_client_1.expectString,
2912
- });
2913
- Object.assign(contents, doc);
2914
- return contents;
2915
- };
2916
- exports.de_SearchDatabasesByLFTagsCommand = de_SearchDatabasesByLFTagsCommand;
2917
- const de_SearchDatabasesByLFTagsCommandError = async (output, context) => {
2918
- const parsedOutput = {
2919
- ...output,
2920
- body: await parseErrorBody(output.body, context),
2921
- };
2922
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2923
- switch (errorCode) {
2924
- case "AccessDeniedException":
2925
- case "com.amazonaws.lakeformation#AccessDeniedException":
2926
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2927
- case "EntityNotFoundException":
2928
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2929
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2930
- case "GlueEncryptionException":
2931
- case "com.amazonaws.lakeformation#GlueEncryptionException":
2932
- throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
2933
- case "InternalServiceException":
2934
- case "com.amazonaws.lakeformation#InternalServiceException":
2935
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2936
- case "InvalidInputException":
2937
- case "com.amazonaws.lakeformation#InvalidInputException":
2938
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2939
- case "OperationTimeoutException":
2940
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2941
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2942
- default:
2943
- const parsedBody = parsedOutput.body;
2944
- return throwDefaultError({
2945
- output,
2946
- parsedBody,
2947
- errorCode,
2948
- });
2949
- }
2950
- };
2951
- const de_SearchTablesByLFTagsCommand = async (output, context) => {
2952
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2953
- return de_SearchTablesByLFTagsCommandError(output, context);
2954
- }
2955
- const contents = (0, smithy_client_1.map)({
2956
- $metadata: deserializeMetadata(output),
2957
- });
2958
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2959
- const doc = (0, smithy_client_1.take)(data, {
2960
- NextToken: smithy_client_1.expectString,
2961
- TableList: smithy_client_1._json,
2962
- });
2963
- Object.assign(contents, doc);
2964
- return contents;
2965
- };
2966
- exports.de_SearchTablesByLFTagsCommand = de_SearchTablesByLFTagsCommand;
2967
- const de_SearchTablesByLFTagsCommandError = async (output, context) => {
2968
- const parsedOutput = {
2969
- ...output,
2970
- body: await parseErrorBody(output.body, context),
2971
- };
2972
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2973
- switch (errorCode) {
2974
- case "AccessDeniedException":
2975
- case "com.amazonaws.lakeformation#AccessDeniedException":
2976
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2977
- case "EntityNotFoundException":
2978
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2979
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2980
- case "GlueEncryptionException":
2981
- case "com.amazonaws.lakeformation#GlueEncryptionException":
2982
- throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
2983
- case "InternalServiceException":
2984
- case "com.amazonaws.lakeformation#InternalServiceException":
2985
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2986
- case "InvalidInputException":
2987
- case "com.amazonaws.lakeformation#InvalidInputException":
2988
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2989
- case "OperationTimeoutException":
2990
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2991
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2992
- default:
2993
- const parsedBody = parsedOutput.body;
2994
- return throwDefaultError({
2995
- output,
2996
- parsedBody,
2997
- errorCode,
2998
- });
2999
- }
3000
- };
3001
- const de_StartQueryPlanningCommand = async (output, context) => {
3002
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3003
- return de_StartQueryPlanningCommandError(output, context);
3004
- }
3005
- const contents = (0, smithy_client_1.map)({
3006
- $metadata: deserializeMetadata(output),
3007
- });
3008
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3009
- const doc = (0, smithy_client_1.take)(data, {
3010
- QueryId: smithy_client_1.expectString,
3011
- });
3012
- Object.assign(contents, doc);
3013
- return contents;
3014
- };
3015
- exports.de_StartQueryPlanningCommand = de_StartQueryPlanningCommand;
3016
- const de_StartQueryPlanningCommandError = async (output, context) => {
3017
- const parsedOutput = {
3018
- ...output,
3019
- body: await parseErrorBody(output.body, context),
3020
- };
3021
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3022
- switch (errorCode) {
3023
- case "AccessDeniedException":
3024
- case "com.amazonaws.lakeformation#AccessDeniedException":
3025
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3026
- case "InternalServiceException":
3027
- case "com.amazonaws.lakeformation#InternalServiceException":
3028
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3029
- case "InvalidInputException":
3030
- case "com.amazonaws.lakeformation#InvalidInputException":
3031
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3032
- case "ThrottledException":
3033
- case "com.amazonaws.lakeformation#ThrottledException":
3034
- throw await de_ThrottledExceptionRes(parsedOutput, context);
3035
- default:
3036
- const parsedBody = parsedOutput.body;
3037
- return throwDefaultError({
3038
- output,
3039
- parsedBody,
3040
- errorCode,
3041
- });
3042
- }
3043
- };
3044
- const de_StartTransactionCommand = async (output, context) => {
3045
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3046
- return de_StartTransactionCommandError(output, context);
3047
- }
3048
- const contents = (0, smithy_client_1.map)({
3049
- $metadata: deserializeMetadata(output),
3050
- });
3051
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3052
- const doc = (0, smithy_client_1.take)(data, {
3053
- TransactionId: smithy_client_1.expectString,
3054
- });
3055
- Object.assign(contents, doc);
3056
- return contents;
3057
- };
3058
- exports.de_StartTransactionCommand = de_StartTransactionCommand;
3059
- const de_StartTransactionCommandError = async (output, context) => {
3060
- const parsedOutput = {
3061
- ...output,
3062
- body: await parseErrorBody(output.body, context),
3063
- };
3064
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3065
- switch (errorCode) {
3066
- case "InternalServiceException":
3067
- case "com.amazonaws.lakeformation#InternalServiceException":
3068
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3069
- case "OperationTimeoutException":
3070
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3071
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3072
- default:
3073
- const parsedBody = parsedOutput.body;
3074
- return throwDefaultError({
3075
- output,
3076
- parsedBody,
3077
- errorCode,
3078
- });
3079
- }
3080
- };
3081
- const de_UpdateDataCellsFilterCommand = async (output, context) => {
3082
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3083
- return de_UpdateDataCellsFilterCommandError(output, context);
3084
- }
3085
- const contents = (0, smithy_client_1.map)({
3086
- $metadata: deserializeMetadata(output),
3087
- });
3088
- await (0, smithy_client_1.collectBody)(output.body, context);
3089
- return contents;
3090
- };
3091
- exports.de_UpdateDataCellsFilterCommand = de_UpdateDataCellsFilterCommand;
3092
- const de_UpdateDataCellsFilterCommandError = async (output, context) => {
3093
- const parsedOutput = {
3094
- ...output,
3095
- body: await parseErrorBody(output.body, context),
3096
- };
3097
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3098
- switch (errorCode) {
3099
- case "AccessDeniedException":
3100
- case "com.amazonaws.lakeformation#AccessDeniedException":
3101
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3102
- case "ConcurrentModificationException":
3103
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3104
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3105
- case "EntityNotFoundException":
3106
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3107
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3108
- case "InternalServiceException":
3109
- case "com.amazonaws.lakeformation#InternalServiceException":
3110
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3111
- case "InvalidInputException":
3112
- case "com.amazonaws.lakeformation#InvalidInputException":
3113
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3114
- case "OperationTimeoutException":
3115
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3116
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3117
- default:
3118
- const parsedBody = parsedOutput.body;
3119
- return throwDefaultError({
3120
- output,
3121
- parsedBody,
3122
- errorCode,
3123
- });
3124
- }
3125
- };
3126
- const de_UpdateLakeFormationIdentityCenterConfigurationCommand = async (output, context) => {
3127
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3128
- return de_UpdateLakeFormationIdentityCenterConfigurationCommandError(output, context);
3129
- }
3130
- const contents = (0, smithy_client_1.map)({
3131
- $metadata: deserializeMetadata(output),
3132
- });
3133
- await (0, smithy_client_1.collectBody)(output.body, context);
3134
- return contents;
3135
- };
3136
- exports.de_UpdateLakeFormationIdentityCenterConfigurationCommand = de_UpdateLakeFormationIdentityCenterConfigurationCommand;
3137
- const de_UpdateLakeFormationIdentityCenterConfigurationCommandError = async (output, context) => {
3138
- const parsedOutput = {
3139
- ...output,
3140
- body: await parseErrorBody(output.body, context),
3141
- };
3142
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3143
- switch (errorCode) {
3144
- case "AccessDeniedException":
3145
- case "com.amazonaws.lakeformation#AccessDeniedException":
3146
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3147
- case "ConcurrentModificationException":
3148
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3149
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3150
- case "EntityNotFoundException":
3151
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3152
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3153
- case "InternalServiceException":
3154
- case "com.amazonaws.lakeformation#InternalServiceException":
3155
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3156
- case "InvalidInputException":
3157
- case "com.amazonaws.lakeformation#InvalidInputException":
3158
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3159
- case "OperationTimeoutException":
3160
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3161
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3162
- default:
3163
- const parsedBody = parsedOutput.body;
3164
- return throwDefaultError({
3165
- output,
3166
- parsedBody,
3167
- errorCode,
3168
- });
3169
- }
3170
- };
3171
- const de_UpdateLFTagCommand = async (output, context) => {
3172
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3173
- return de_UpdateLFTagCommandError(output, context);
3174
- }
3175
- const contents = (0, smithy_client_1.map)({
3176
- $metadata: deserializeMetadata(output),
3177
- });
3178
- await (0, smithy_client_1.collectBody)(output.body, context);
3179
- return contents;
3180
- };
3181
- exports.de_UpdateLFTagCommand = de_UpdateLFTagCommand;
3182
- const de_UpdateLFTagCommandError = async (output, context) => {
3183
- const parsedOutput = {
3184
- ...output,
3185
- body: await parseErrorBody(output.body, context),
3186
- };
3187
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3188
- switch (errorCode) {
3189
- case "AccessDeniedException":
3190
- case "com.amazonaws.lakeformation#AccessDeniedException":
3191
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3192
- case "ConcurrentModificationException":
3193
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3194
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3195
- case "EntityNotFoundException":
3196
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3197
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3198
- case "InternalServiceException":
3199
- case "com.amazonaws.lakeformation#InternalServiceException":
3200
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3201
- case "InvalidInputException":
3202
- case "com.amazonaws.lakeformation#InvalidInputException":
3203
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3204
- case "OperationTimeoutException":
3205
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3206
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3207
- default:
3208
- const parsedBody = parsedOutput.body;
3209
- return throwDefaultError({
3210
- output,
3211
- parsedBody,
3212
- errorCode,
3213
- });
3214
- }
3215
- };
3216
- const de_UpdateResourceCommand = async (output, context) => {
3217
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3218
- return de_UpdateResourceCommandError(output, context);
3219
- }
3220
- const contents = (0, smithy_client_1.map)({
3221
- $metadata: deserializeMetadata(output),
3222
- });
3223
- await (0, smithy_client_1.collectBody)(output.body, context);
3224
- return contents;
3225
- };
3226
- exports.de_UpdateResourceCommand = de_UpdateResourceCommand;
3227
- const de_UpdateResourceCommandError = async (output, context) => {
3228
- const parsedOutput = {
3229
- ...output,
3230
- body: await parseErrorBody(output.body, context),
3231
- };
3232
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3233
- switch (errorCode) {
3234
- case "EntityNotFoundException":
3235
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3236
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3237
- case "InternalServiceException":
3238
- case "com.amazonaws.lakeformation#InternalServiceException":
3239
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3240
- case "InvalidInputException":
3241
- case "com.amazonaws.lakeformation#InvalidInputException":
3242
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3243
- case "OperationTimeoutException":
3244
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3245
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3246
- default:
3247
- const parsedBody = parsedOutput.body;
3248
- return throwDefaultError({
3249
- output,
3250
- parsedBody,
3251
- errorCode,
3252
- });
3253
- }
3254
- };
3255
- const de_UpdateTableObjectsCommand = async (output, context) => {
3256
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3257
- return de_UpdateTableObjectsCommandError(output, context);
3258
- }
3259
- const contents = (0, smithy_client_1.map)({
3260
- $metadata: deserializeMetadata(output),
3261
- });
3262
- await (0, smithy_client_1.collectBody)(output.body, context);
3263
- return contents;
3264
- };
3265
- exports.de_UpdateTableObjectsCommand = de_UpdateTableObjectsCommand;
3266
- const de_UpdateTableObjectsCommandError = async (output, context) => {
3267
- const parsedOutput = {
3268
- ...output,
3269
- body: await parseErrorBody(output.body, context),
3270
- };
3271
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3272
- switch (errorCode) {
3273
- case "ConcurrentModificationException":
3274
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3275
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3276
- case "EntityNotFoundException":
3277
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3278
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3279
- case "InternalServiceException":
3280
- case "com.amazonaws.lakeformation#InternalServiceException":
3281
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3282
- case "InvalidInputException":
3283
- case "com.amazonaws.lakeformation#InvalidInputException":
3284
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3285
- case "OperationTimeoutException":
3286
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3287
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3288
- case "ResourceNotReadyException":
3289
- case "com.amazonaws.lakeformation#ResourceNotReadyException":
3290
- throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
3291
- case "TransactionCanceledException":
3292
- case "com.amazonaws.lakeformation#TransactionCanceledException":
3293
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
3294
- case "TransactionCommitInProgressException":
3295
- case "com.amazonaws.lakeformation#TransactionCommitInProgressException":
3296
- throw await de_TransactionCommitInProgressExceptionRes(parsedOutput, context);
3297
- case "TransactionCommittedException":
3298
- case "com.amazonaws.lakeformation#TransactionCommittedException":
3299
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
3300
- default:
3301
- const parsedBody = parsedOutput.body;
3302
- return throwDefaultError({
3303
- output,
3304
- parsedBody,
3305
- errorCode,
3306
- });
3307
- }
3308
- };
3309
- const de_UpdateTableStorageOptimizerCommand = async (output, context) => {
3310
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3311
- return de_UpdateTableStorageOptimizerCommandError(output, context);
3312
- }
3313
- const contents = (0, smithy_client_1.map)({
3314
- $metadata: deserializeMetadata(output),
3315
- });
3316
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3317
- const doc = (0, smithy_client_1.take)(data, {
3318
- Result: smithy_client_1.expectString,
3319
- });
3320
- Object.assign(contents, doc);
3321
- return contents;
3322
- };
3323
- exports.de_UpdateTableStorageOptimizerCommand = de_UpdateTableStorageOptimizerCommand;
3324
- const de_UpdateTableStorageOptimizerCommandError = async (output, context) => {
3325
- const parsedOutput = {
3326
- ...output,
3327
- body: await parseErrorBody(output.body, context),
3328
- };
3329
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3330
- switch (errorCode) {
3331
- case "AccessDeniedException":
3332
- case "com.amazonaws.lakeformation#AccessDeniedException":
3333
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3334
- case "EntityNotFoundException":
3335
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3336
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3337
- case "InternalServiceException":
3338
- case "com.amazonaws.lakeformation#InternalServiceException":
3339
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3340
- case "InvalidInputException":
3341
- case "com.amazonaws.lakeformation#InvalidInputException":
3342
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3343
- default:
3344
- const parsedBody = parsedOutput.body;
3345
- return throwDefaultError({
3346
- output,
3347
- parsedBody,
3348
- errorCode,
3349
- });
3350
- }
3351
- };
3352
- const throwDefaultError = (0, smithy_client_1.withBaseException)(LakeFormationServiceException_1.LakeFormationServiceException);
3353
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3354
- const contents = (0, smithy_client_1.map)({});
3355
- const data = parsedOutput.body;
3356
- const doc = (0, smithy_client_1.take)(data, {
3357
- Message: smithy_client_1.expectString,
3358
- });
3359
- Object.assign(contents, doc);
3360
- const exception = new models_0_1.AccessDeniedException({
3361
- $metadata: deserializeMetadata(parsedOutput),
3362
- ...contents,
3363
- });
3364
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3365
- };
3366
- const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
3367
- const contents = (0, smithy_client_1.map)({});
3368
- const data = parsedOutput.body;
3369
- const doc = (0, smithy_client_1.take)(data, {
3370
- Message: smithy_client_1.expectString,
3371
- });
3372
- Object.assign(contents, doc);
3373
- const exception = new models_0_1.AlreadyExistsException({
3374
- $metadata: deserializeMetadata(parsedOutput),
3375
- ...contents,
3376
- });
3377
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3378
- };
3379
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3380
- const contents = (0, smithy_client_1.map)({});
3381
- const data = parsedOutput.body;
3382
- const doc = (0, smithy_client_1.take)(data, {
3383
- Message: smithy_client_1.expectString,
3384
- });
3385
- Object.assign(contents, doc);
3386
- const exception = new models_0_1.ConcurrentModificationException({
3387
- $metadata: deserializeMetadata(parsedOutput),
3388
- ...contents,
3389
- });
3390
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3391
- };
3392
- const de_EntityNotFoundExceptionRes = async (parsedOutput, context) => {
3393
- const contents = (0, smithy_client_1.map)({});
3394
- const data = parsedOutput.body;
3395
- const doc = (0, smithy_client_1.take)(data, {
3396
- Message: smithy_client_1.expectString,
3397
- });
3398
- Object.assign(contents, doc);
3399
- const exception = new models_0_1.EntityNotFoundException({
3400
- $metadata: deserializeMetadata(parsedOutput),
3401
- ...contents,
3402
- });
3403
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3404
- };
3405
- const de_ExpiredExceptionRes = async (parsedOutput, context) => {
3406
- const contents = (0, smithy_client_1.map)({});
3407
- const data = parsedOutput.body;
3408
- const doc = (0, smithy_client_1.take)(data, {
3409
- Message: smithy_client_1.expectString,
3410
- });
3411
- Object.assign(contents, doc);
3412
- const exception = new models_0_1.ExpiredException({
3413
- $metadata: deserializeMetadata(parsedOutput),
3414
- ...contents,
3415
- });
3416
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3417
- };
3418
- const de_GlueEncryptionExceptionRes = async (parsedOutput, context) => {
3419
- const contents = (0, smithy_client_1.map)({});
3420
- const data = parsedOutput.body;
3421
- const doc = (0, smithy_client_1.take)(data, {
3422
- Message: smithy_client_1.expectString,
3423
- });
3424
- Object.assign(contents, doc);
3425
- const exception = new models_0_1.GlueEncryptionException({
3426
- $metadata: deserializeMetadata(parsedOutput),
3427
- ...contents,
3428
- });
3429
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3430
- };
3431
- const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
3432
- const contents = (0, smithy_client_1.map)({});
3433
- const data = parsedOutput.body;
3434
- const doc = (0, smithy_client_1.take)(data, {
3435
- Message: smithy_client_1.expectString,
3436
- });
3437
- Object.assign(contents, doc);
3438
- const exception = new models_0_1.InternalServiceException({
3439
- $metadata: deserializeMetadata(parsedOutput),
3440
- ...contents,
3441
- });
3442
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3443
- };
3444
- const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
3445
- const contents = (0, smithy_client_1.map)({});
3446
- const data = parsedOutput.body;
3447
- const doc = (0, smithy_client_1.take)(data, {
3448
- Message: smithy_client_1.expectString,
3449
- });
3450
- Object.assign(contents, doc);
3451
- const exception = new models_0_1.InvalidInputException({
3452
- $metadata: deserializeMetadata(parsedOutput),
3453
- ...contents,
3454
- });
3455
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3456
- };
3457
- const de_OperationTimeoutExceptionRes = async (parsedOutput, context) => {
3458
- const contents = (0, smithy_client_1.map)({});
3459
- const data = parsedOutput.body;
3460
- const doc = (0, smithy_client_1.take)(data, {
3461
- Message: smithy_client_1.expectString,
3462
- });
3463
- Object.assign(contents, doc);
3464
- const exception = new models_0_1.OperationTimeoutException({
3465
- $metadata: deserializeMetadata(parsedOutput),
3466
- ...contents,
3467
- });
3468
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3469
- };
3470
- const de_PermissionTypeMismatchExceptionRes = async (parsedOutput, context) => {
3471
- const contents = (0, smithy_client_1.map)({});
3472
- const data = parsedOutput.body;
3473
- const doc = (0, smithy_client_1.take)(data, {
3474
- Message: smithy_client_1.expectString,
3475
- });
3476
- Object.assign(contents, doc);
3477
- const exception = new models_0_1.PermissionTypeMismatchException({
3478
- $metadata: deserializeMetadata(parsedOutput),
3479
- ...contents,
3480
- });
3481
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3482
- };
3483
- const de_ResourceNotReadyExceptionRes = async (parsedOutput, context) => {
3484
- const contents = (0, smithy_client_1.map)({});
3485
- const data = parsedOutput.body;
3486
- const doc = (0, smithy_client_1.take)(data, {
3487
- Message: smithy_client_1.expectString,
3488
- });
3489
- Object.assign(contents, doc);
3490
- const exception = new models_0_1.ResourceNotReadyException({
3491
- $metadata: deserializeMetadata(parsedOutput),
3492
- ...contents,
3493
- });
3494
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3495
- };
3496
- const de_ResourceNumberLimitExceededExceptionRes = async (parsedOutput, context) => {
3497
- const contents = (0, smithy_client_1.map)({});
3498
- const data = parsedOutput.body;
3499
- const doc = (0, smithy_client_1.take)(data, {
3500
- Message: smithy_client_1.expectString,
3501
- });
3502
- Object.assign(contents, doc);
3503
- const exception = new models_0_1.ResourceNumberLimitExceededException({
3504
- $metadata: deserializeMetadata(parsedOutput),
3505
- ...contents,
3506
- });
3507
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3508
- };
3509
- const de_StatisticsNotReadyYetExceptionRes = async (parsedOutput, context) => {
3510
- const contents = (0, smithy_client_1.map)({});
3511
- const data = parsedOutput.body;
3512
- const doc = (0, smithy_client_1.take)(data, {
3513
- Message: smithy_client_1.expectString,
3514
- });
3515
- Object.assign(contents, doc);
3516
- const exception = new models_0_1.StatisticsNotReadyYetException({
3517
- $metadata: deserializeMetadata(parsedOutput),
3518
- ...contents,
3519
- });
3520
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3521
- };
3522
- const de_ThrottledExceptionRes = async (parsedOutput, context) => {
3523
- const contents = (0, smithy_client_1.map)({});
3524
- const data = parsedOutput.body;
3525
- const doc = (0, smithy_client_1.take)(data, {
3526
- Message: smithy_client_1.expectString,
3527
- });
3528
- Object.assign(contents, doc);
3529
- const exception = new models_0_1.ThrottledException({
3530
- $metadata: deserializeMetadata(parsedOutput),
3531
- ...contents,
3532
- });
3533
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3534
- };
3535
- const de_TransactionCanceledExceptionRes = async (parsedOutput, context) => {
3536
- const contents = (0, smithy_client_1.map)({});
3537
- const data = parsedOutput.body;
3538
- const doc = (0, smithy_client_1.take)(data, {
3539
- Message: smithy_client_1.expectString,
3540
- });
3541
- Object.assign(contents, doc);
3542
- const exception = new models_0_1.TransactionCanceledException({
3543
- $metadata: deserializeMetadata(parsedOutput),
3544
- ...contents,
3545
- });
3546
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3547
- };
3548
- const de_TransactionCommitInProgressExceptionRes = async (parsedOutput, context) => {
3549
- const contents = (0, smithy_client_1.map)({});
3550
- const data = parsedOutput.body;
3551
- const doc = (0, smithy_client_1.take)(data, {
3552
- Message: smithy_client_1.expectString,
3553
- });
3554
- Object.assign(contents, doc);
3555
- const exception = new models_0_1.TransactionCommitInProgressException({
3556
- $metadata: deserializeMetadata(parsedOutput),
3557
- ...contents,
3558
- });
3559
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3560
- };
3561
- const de_TransactionCommittedExceptionRes = async (parsedOutput, context) => {
3562
- const contents = (0, smithy_client_1.map)({});
3563
- const data = parsedOutput.body;
3564
- const doc = (0, smithy_client_1.take)(data, {
3565
- Message: smithy_client_1.expectString,
3566
- });
3567
- Object.assign(contents, doc);
3568
- const exception = new models_0_1.TransactionCommittedException({
3569
- $metadata: deserializeMetadata(parsedOutput),
3570
- ...contents,
3571
- });
3572
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3573
- };
3574
- const de_WorkUnitsNotReadyYetExceptionRes = async (parsedOutput, context) => {
3575
- const contents = (0, smithy_client_1.map)({});
3576
- const data = parsedOutput.body;
3577
- const doc = (0, smithy_client_1.take)(data, {
3578
- Message: smithy_client_1.expectString,
3579
- });
3580
- Object.assign(contents, doc);
3581
- const exception = new models_0_1.WorkUnitsNotReadyYetException({
3582
- $metadata: deserializeMetadata(parsedOutput),
3583
- ...contents,
3584
- });
3585
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3586
- };
3587
- const se_QueryPlanningContext = (input, context) => {
3588
- return (0, smithy_client_1.take)(input, {
3589
- CatalogId: [],
3590
- DatabaseName: [],
3591
- QueryAsOfTime: (_) => Math.round(_.getTime() / 1000),
3592
- QueryParameters: smithy_client_1._json,
3593
- TransactionId: [],
3594
- });
3595
- };
3596
- const se_QuerySessionContext = (input, context) => {
3597
- return (0, smithy_client_1.take)(input, {
3598
- AdditionalContext: smithy_client_1._json,
3599
- ClusterId: [],
3600
- QueryAuthorizationId: [],
3601
- QueryId: [],
3602
- QueryStartTime: (_) => Math.round(_.getTime() / 1000),
3603
- });
3604
- };
3605
- const de_LakeFormationOptInsInfo = (output, context) => {
3606
- return (0, smithy_client_1.take)(output, {
3607
- LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3608
- LastUpdatedBy: smithy_client_1.expectString,
3609
- Principal: smithy_client_1._json,
3610
- Resource: smithy_client_1._json,
3611
- });
3612
- };
3613
- const de_LakeFormationOptInsInfoList = (output, context) => {
3614
- const retVal = (output || [])
3615
- .filter((e) => e != null)
3616
- .map((entry) => {
3617
- return de_LakeFormationOptInsInfo(entry, context);
3618
- });
3619
- return retVal;
3620
- };
3621
- const de_PrincipalResourcePermissions = (output, context) => {
3622
- return (0, smithy_client_1.take)(output, {
3623
- AdditionalDetails: smithy_client_1._json,
3624
- LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3625
- LastUpdatedBy: smithy_client_1.expectString,
3626
- Permissions: smithy_client_1._json,
3627
- PermissionsWithGrantOption: smithy_client_1._json,
3628
- Principal: smithy_client_1._json,
3629
- Resource: smithy_client_1._json,
3630
- });
3631
- };
3632
- const de_PrincipalResourcePermissionsList = (output, context) => {
3633
- const retVal = (output || [])
3634
- .filter((e) => e != null)
3635
- .map((entry) => {
3636
- return de_PrincipalResourcePermissions(entry, context);
3637
- });
3638
- return retVal;
3639
- };
3640
- const de_ResourceInfo = (output, context) => {
3641
- return (0, smithy_client_1.take)(output, {
3642
- HybridAccessEnabled: smithy_client_1.expectBoolean,
3643
- LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3644
- ResourceArn: smithy_client_1.expectString,
3645
- RoleArn: smithy_client_1.expectString,
3646
- WithFederation: smithy_client_1.expectBoolean,
3647
- });
3648
- };
3649
- const de_ResourceInfoList = (output, context) => {
3650
- const retVal = (output || [])
3651
- .filter((e) => e != null)
3652
- .map((entry) => {
3653
- return de_ResourceInfo(entry, context);
3654
- });
3655
- return retVal;
3656
- };
3657
- const de_TransactionDescription = (output, context) => {
3658
- return (0, smithy_client_1.take)(output, {
3659
- TransactionEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3660
- TransactionId: smithy_client_1.expectString,
3661
- TransactionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3662
- TransactionStatus: smithy_client_1.expectString,
3663
- });
3664
- };
3665
- const de_TransactionDescriptionList = (output, context) => {
3666
- const retVal = (output || [])
3667
- .filter((e) => e != null)
3668
- .map((entry) => {
3669
- return de_TransactionDescription(entry, context);
3670
- });
3671
- return retVal;
3672
- };
3673
- const deserializeMetadata = (output) => ({
3674
- httpStatusCode: output.statusCode,
3675
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3676
- extendedRequestId: output.headers["x-amz-id-2"],
3677
- cfId: output.headers["x-amz-cf-id"],
3678
- });
3679
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
3680
- const isSerializableHeaderValue = (value) => value !== undefined &&
3681
- value !== null &&
3682
- value !== "" &&
3683
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3684
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3685
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3686
- if (encoded.length) {
3687
- return JSON.parse(encoded);
3688
- }
3689
- return {};
3690
- });
3691
- const parseErrorBody = async (errorBody, context) => {
3692
- const value = await parseBody(errorBody, context);
3693
- value.message = value.message ?? value.Message;
3694
- return value;
3695
- };
3696
- const loadRestJsonErrorCode = (output, data) => {
3697
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3698
- const sanitizeErrorCode = (rawValue) => {
3699
- let cleanValue = rawValue;
3700
- if (typeof cleanValue === "number") {
3701
- cleanValue = cleanValue.toString();
3702
- }
3703
- if (cleanValue.indexOf(",") >= 0) {
3704
- cleanValue = cleanValue.split(",")[0];
3705
- }
3706
- if (cleanValue.indexOf(":") >= 0) {
3707
- cleanValue = cleanValue.split(":")[0];
3708
- }
3709
- if (cleanValue.indexOf("#") >= 0) {
3710
- cleanValue = cleanValue.split("#")[1];
3711
- }
3712
- return cleanValue;
3713
- };
3714
- const headerKey = findKey(output.headers, "x-amzn-errortype");
3715
- if (headerKey !== undefined) {
3716
- return sanitizeErrorCode(output.headers[headerKey]);
3717
- }
3718
- if (data.code !== undefined) {
3719
- return sanitizeErrorCode(data.code);
3720
- }
3721
- if (data["__type"] !== undefined) {
3722
- return sanitizeErrorCode(data["__type"]);
3723
- }
3724
- };
1
+ module.exports = require("../index.js");