@aws-sdk/client-lakeformation 3.476.0 → 3.477.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.
@@ -3,39 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
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
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
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");
6
7
  const protocol_http_1 = require("@smithy/protocol-http");
7
8
  const smithy_client_1 = require("@smithy/smithy-client");
8
9
  const LakeFormationServiceException_1 = require("../models/LakeFormationServiceException");
9
10
  const models_0_1 = require("../models/models_0");
10
11
  const se_AddLFTagsToResourceCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
12
13
  const headers = {
13
14
  "content-type": "application/json",
14
15
  };
15
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AddLFTagsToResource";
16
+ b.bp("/AddLFTagsToResource");
16
17
  let body;
17
18
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
19
  CatalogId: [],
19
20
  LFTags: (_) => (0, smithy_client_1._json)(_),
20
21
  Resource: (_) => (0, smithy_client_1._json)(_),
21
22
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "POST",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
23
+ b.m("POST").h(headers).b(body);
24
+ return b.build();
31
25
  };
32
26
  exports.se_AddLFTagsToResourceCommand = se_AddLFTagsToResourceCommand;
33
27
  const se_AssumeDecoratedRoleWithSAMLCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
+ const b = (0, core_1.requestBuilder)(input, context);
35
29
  const headers = {
36
30
  "content-type": "application/json",
37
31
  };
38
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssumeDecoratedRoleWithSAML";
32
+ b.bp("/AssumeDecoratedRoleWithSAML");
39
33
  let body;
40
34
  body = JSON.stringify((0, smithy_client_1.take)(input, {
41
35
  DurationSeconds: [],
@@ -43,199 +37,135 @@ const se_AssumeDecoratedRoleWithSAMLCommand = async (input, context) => {
43
37
  RoleArn: [],
44
38
  SAMLAssertion: [],
45
39
  }));
46
- return new protocol_http_1.HttpRequest({
47
- protocol,
48
- hostname,
49
- port,
50
- method: "POST",
51
- headers,
52
- path: resolvedPath,
53
- body,
54
- });
40
+ b.m("POST").h(headers).b(body);
41
+ return b.build();
55
42
  };
56
43
  exports.se_AssumeDecoratedRoleWithSAMLCommand = se_AssumeDecoratedRoleWithSAMLCommand;
57
44
  const se_BatchGrantPermissionsCommand = async (input, context) => {
58
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = (0, core_1.requestBuilder)(input, context);
59
46
  const headers = {
60
47
  "content-type": "application/json",
61
48
  };
62
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGrantPermissions";
49
+ b.bp("/BatchGrantPermissions");
63
50
  let body;
64
51
  body = JSON.stringify((0, smithy_client_1.take)(input, {
65
52
  CatalogId: [],
66
53
  Entries: (_) => (0, smithy_client_1._json)(_),
67
54
  }));
68
- return new protocol_http_1.HttpRequest({
69
- protocol,
70
- hostname,
71
- port,
72
- method: "POST",
73
- headers,
74
- path: resolvedPath,
75
- body,
76
- });
55
+ b.m("POST").h(headers).b(body);
56
+ return b.build();
77
57
  };
78
58
  exports.se_BatchGrantPermissionsCommand = se_BatchGrantPermissionsCommand;
79
59
  const se_BatchRevokePermissionsCommand = async (input, context) => {
80
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
60
+ const b = (0, core_1.requestBuilder)(input, context);
81
61
  const headers = {
82
62
  "content-type": "application/json",
83
63
  };
84
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchRevokePermissions";
64
+ b.bp("/BatchRevokePermissions");
85
65
  let body;
86
66
  body = JSON.stringify((0, smithy_client_1.take)(input, {
87
67
  CatalogId: [],
88
68
  Entries: (_) => (0, smithy_client_1._json)(_),
89
69
  }));
90
- return new protocol_http_1.HttpRequest({
91
- protocol,
92
- hostname,
93
- port,
94
- method: "POST",
95
- headers,
96
- path: resolvedPath,
97
- body,
98
- });
70
+ b.m("POST").h(headers).b(body);
71
+ return b.build();
99
72
  };
100
73
  exports.se_BatchRevokePermissionsCommand = se_BatchRevokePermissionsCommand;
101
74
  const se_CancelTransactionCommand = async (input, context) => {
102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = (0, core_1.requestBuilder)(input, context);
103
76
  const headers = {
104
77
  "content-type": "application/json",
105
78
  };
106
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelTransaction";
79
+ b.bp("/CancelTransaction");
107
80
  let body;
108
81
  body = JSON.stringify((0, smithy_client_1.take)(input, {
109
82
  TransactionId: [],
110
83
  }));
111
- return new protocol_http_1.HttpRequest({
112
- protocol,
113
- hostname,
114
- port,
115
- method: "POST",
116
- headers,
117
- path: resolvedPath,
118
- body,
119
- });
84
+ b.m("POST").h(headers).b(body);
85
+ return b.build();
120
86
  };
121
87
  exports.se_CancelTransactionCommand = se_CancelTransactionCommand;
122
88
  const se_CommitTransactionCommand = async (input, context) => {
123
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = (0, core_1.requestBuilder)(input, context);
124
90
  const headers = {
125
91
  "content-type": "application/json",
126
92
  };
127
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CommitTransaction";
93
+ b.bp("/CommitTransaction");
128
94
  let body;
129
95
  body = JSON.stringify((0, smithy_client_1.take)(input, {
130
96
  TransactionId: [],
131
97
  }));
132
- return new protocol_http_1.HttpRequest({
133
- protocol,
134
- hostname,
135
- port,
136
- method: "POST",
137
- headers,
138
- path: resolvedPath,
139
- body,
140
- });
98
+ b.m("POST").h(headers).b(body);
99
+ return b.build();
141
100
  };
142
101
  exports.se_CommitTransactionCommand = se_CommitTransactionCommand;
143
102
  const se_CreateDataCellsFilterCommand = async (input, context) => {
144
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
+ const b = (0, core_1.requestBuilder)(input, context);
145
104
  const headers = {
146
105
  "content-type": "application/json",
147
106
  };
148
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateDataCellsFilter";
107
+ b.bp("/CreateDataCellsFilter");
149
108
  let body;
150
109
  body = JSON.stringify((0, smithy_client_1.take)(input, {
151
110
  TableData: (_) => (0, smithy_client_1._json)(_),
152
111
  }));
153
- return new protocol_http_1.HttpRequest({
154
- protocol,
155
- hostname,
156
- port,
157
- method: "POST",
158
- headers,
159
- path: resolvedPath,
160
- body,
161
- });
112
+ b.m("POST").h(headers).b(body);
113
+ return b.build();
162
114
  };
163
115
  exports.se_CreateDataCellsFilterCommand = se_CreateDataCellsFilterCommand;
164
116
  const se_CreateLakeFormationIdentityCenterConfigurationCommand = async (input, context) => {
165
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
+ const b = (0, core_1.requestBuilder)(input, context);
166
118
  const headers = {
167
119
  "content-type": "application/json",
168
120
  };
169
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
170
- "/CreateLakeFormationIdentityCenterConfiguration";
121
+ b.bp("/CreateLakeFormationIdentityCenterConfiguration");
171
122
  let body;
172
123
  body = JSON.stringify((0, smithy_client_1.take)(input, {
173
124
  CatalogId: [],
174
125
  ExternalFiltering: (_) => (0, smithy_client_1._json)(_),
175
126
  InstanceArn: [],
176
127
  }));
177
- return new protocol_http_1.HttpRequest({
178
- protocol,
179
- hostname,
180
- port,
181
- method: "POST",
182
- headers,
183
- path: resolvedPath,
184
- body,
185
- });
128
+ b.m("POST").h(headers).b(body);
129
+ return b.build();
186
130
  };
187
131
  exports.se_CreateLakeFormationIdentityCenterConfigurationCommand = se_CreateLakeFormationIdentityCenterConfigurationCommand;
188
132
  const se_CreateLakeFormationOptInCommand = async (input, context) => {
189
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
+ const b = (0, core_1.requestBuilder)(input, context);
190
134
  const headers = {
191
135
  "content-type": "application/json",
192
136
  };
193
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLakeFormationOptIn";
137
+ b.bp("/CreateLakeFormationOptIn");
194
138
  let body;
195
139
  body = JSON.stringify((0, smithy_client_1.take)(input, {
196
140
  Principal: (_) => (0, smithy_client_1._json)(_),
197
141
  Resource: (_) => (0, smithy_client_1._json)(_),
198
142
  }));
199
- return new protocol_http_1.HttpRequest({
200
- protocol,
201
- hostname,
202
- port,
203
- method: "POST",
204
- headers,
205
- path: resolvedPath,
206
- body,
207
- });
143
+ b.m("POST").h(headers).b(body);
144
+ return b.build();
208
145
  };
209
146
  exports.se_CreateLakeFormationOptInCommand = se_CreateLakeFormationOptInCommand;
210
147
  const se_CreateLFTagCommand = async (input, context) => {
211
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = (0, core_1.requestBuilder)(input, context);
212
149
  const headers = {
213
150
  "content-type": "application/json",
214
151
  };
215
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLFTag";
152
+ b.bp("/CreateLFTag");
216
153
  let body;
217
154
  body = JSON.stringify((0, smithy_client_1.take)(input, {
218
155
  CatalogId: [],
219
156
  TagKey: [],
220
157
  TagValues: (_) => (0, smithy_client_1._json)(_),
221
158
  }));
222
- return new protocol_http_1.HttpRequest({
223
- protocol,
224
- hostname,
225
- port,
226
- method: "POST",
227
- headers,
228
- path: resolvedPath,
229
- body,
230
- });
159
+ b.m("POST").h(headers).b(body);
160
+ return b.build();
231
161
  };
232
162
  exports.se_CreateLFTagCommand = se_CreateLFTagCommand;
233
163
  const se_DeleteDataCellsFilterCommand = async (input, context) => {
234
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
+ const b = (0, core_1.requestBuilder)(input, context);
235
165
  const headers = {
236
166
  "content-type": "application/json",
237
167
  };
238
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteDataCellsFilter";
168
+ b.bp("/DeleteDataCellsFilter");
239
169
  let body;
240
170
  body = JSON.stringify((0, smithy_client_1.take)(input, {
241
171
  DatabaseName: [],
@@ -243,89 +173,60 @@ const se_DeleteDataCellsFilterCommand = async (input, context) => {
243
173
  TableCatalogId: [],
244
174
  TableName: [],
245
175
  }));
246
- return new protocol_http_1.HttpRequest({
247
- protocol,
248
- hostname,
249
- port,
250
- method: "POST",
251
- headers,
252
- path: resolvedPath,
253
- body,
254
- });
176
+ b.m("POST").h(headers).b(body);
177
+ return b.build();
255
178
  };
256
179
  exports.se_DeleteDataCellsFilterCommand = se_DeleteDataCellsFilterCommand;
257
180
  const se_DeleteLakeFormationIdentityCenterConfigurationCommand = async (input, context) => {
258
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const b = (0, core_1.requestBuilder)(input, context);
259
182
  const headers = {
260
183
  "content-type": "application/json",
261
184
  };
262
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
263
- "/DeleteLakeFormationIdentityCenterConfiguration";
185
+ b.bp("/DeleteLakeFormationIdentityCenterConfiguration");
264
186
  let body;
265
187
  body = JSON.stringify((0, smithy_client_1.take)(input, {
266
188
  CatalogId: [],
267
189
  }));
268
- return new protocol_http_1.HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "POST",
273
- headers,
274
- path: resolvedPath,
275
- body,
276
- });
190
+ b.m("POST").h(headers).b(body);
191
+ return b.build();
277
192
  };
278
193
  exports.se_DeleteLakeFormationIdentityCenterConfigurationCommand = se_DeleteLakeFormationIdentityCenterConfigurationCommand;
279
194
  const se_DeleteLakeFormationOptInCommand = async (input, context) => {
280
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
+ const b = (0, core_1.requestBuilder)(input, context);
281
196
  const headers = {
282
197
  "content-type": "application/json",
283
198
  };
284
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLakeFormationOptIn";
199
+ b.bp("/DeleteLakeFormationOptIn");
285
200
  let body;
286
201
  body = JSON.stringify((0, smithy_client_1.take)(input, {
287
202
  Principal: (_) => (0, smithy_client_1._json)(_),
288
203
  Resource: (_) => (0, smithy_client_1._json)(_),
289
204
  }));
290
- return new protocol_http_1.HttpRequest({
291
- protocol,
292
- hostname,
293
- port,
294
- method: "POST",
295
- headers,
296
- path: resolvedPath,
297
- body,
298
- });
205
+ b.m("POST").h(headers).b(body);
206
+ return b.build();
299
207
  };
300
208
  exports.se_DeleteLakeFormationOptInCommand = se_DeleteLakeFormationOptInCommand;
301
209
  const se_DeleteLFTagCommand = async (input, context) => {
302
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const b = (0, core_1.requestBuilder)(input, context);
303
211
  const headers = {
304
212
  "content-type": "application/json",
305
213
  };
306
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLFTag";
214
+ b.bp("/DeleteLFTag");
307
215
  let body;
308
216
  body = JSON.stringify((0, smithy_client_1.take)(input, {
309
217
  CatalogId: [],
310
218
  TagKey: [],
311
219
  }));
312
- return new protocol_http_1.HttpRequest({
313
- protocol,
314
- hostname,
315
- port,
316
- method: "POST",
317
- headers,
318
- path: resolvedPath,
319
- body,
320
- });
220
+ b.m("POST").h(headers).b(body);
221
+ return b.build();
321
222
  };
322
223
  exports.se_DeleteLFTagCommand = se_DeleteLFTagCommand;
323
224
  const se_DeleteObjectsOnCancelCommand = async (input, context) => {
324
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = (0, core_1.requestBuilder)(input, context);
325
226
  const headers = {
326
227
  "content-type": "application/json",
327
228
  };
328
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteObjectsOnCancel";
229
+ b.bp("/DeleteObjectsOnCancel");
329
230
  let body;
330
231
  body = JSON.stringify((0, smithy_client_1.take)(input, {
331
232
  CatalogId: [],
@@ -334,129 +235,86 @@ const se_DeleteObjectsOnCancelCommand = async (input, context) => {
334
235
  TableName: [],
335
236
  TransactionId: [],
336
237
  }));
337
- return new protocol_http_1.HttpRequest({
338
- protocol,
339
- hostname,
340
- port,
341
- method: "POST",
342
- headers,
343
- path: resolvedPath,
344
- body,
345
- });
238
+ b.m("POST").h(headers).b(body);
239
+ return b.build();
346
240
  };
347
241
  exports.se_DeleteObjectsOnCancelCommand = se_DeleteObjectsOnCancelCommand;
348
242
  const se_DeregisterResourceCommand = async (input, context) => {
349
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
+ const b = (0, core_1.requestBuilder)(input, context);
350
244
  const headers = {
351
245
  "content-type": "application/json",
352
246
  };
353
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeregisterResource";
247
+ b.bp("/DeregisterResource");
354
248
  let body;
355
249
  body = JSON.stringify((0, smithy_client_1.take)(input, {
356
250
  ResourceArn: [],
357
251
  }));
358
- return new protocol_http_1.HttpRequest({
359
- protocol,
360
- hostname,
361
- port,
362
- method: "POST",
363
- headers,
364
- path: resolvedPath,
365
- body,
366
- });
252
+ b.m("POST").h(headers).b(body);
253
+ return b.build();
367
254
  };
368
255
  exports.se_DeregisterResourceCommand = se_DeregisterResourceCommand;
369
256
  const se_DescribeLakeFormationIdentityCenterConfigurationCommand = async (input, context) => {
370
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
257
+ const b = (0, core_1.requestBuilder)(input, context);
371
258
  const headers = {
372
259
  "content-type": "application/json",
373
260
  };
374
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
375
- "/DescribeLakeFormationIdentityCenterConfiguration";
261
+ b.bp("/DescribeLakeFormationIdentityCenterConfiguration");
376
262
  let body;
377
263
  body = JSON.stringify((0, smithy_client_1.take)(input, {
378
264
  CatalogId: [],
379
265
  }));
380
- return new protocol_http_1.HttpRequest({
381
- protocol,
382
- hostname,
383
- port,
384
- method: "POST",
385
- headers,
386
- path: resolvedPath,
387
- body,
388
- });
266
+ b.m("POST").h(headers).b(body);
267
+ return b.build();
389
268
  };
390
269
  exports.se_DescribeLakeFormationIdentityCenterConfigurationCommand = se_DescribeLakeFormationIdentityCenterConfigurationCommand;
391
270
  const se_DescribeResourceCommand = async (input, context) => {
392
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
+ const b = (0, core_1.requestBuilder)(input, context);
393
272
  const headers = {
394
273
  "content-type": "application/json",
395
274
  };
396
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeResource";
275
+ b.bp("/DescribeResource");
397
276
  let body;
398
277
  body = JSON.stringify((0, smithy_client_1.take)(input, {
399
278
  ResourceArn: [],
400
279
  }));
401
- return new protocol_http_1.HttpRequest({
402
- protocol,
403
- hostname,
404
- port,
405
- method: "POST",
406
- headers,
407
- path: resolvedPath,
408
- body,
409
- });
280
+ b.m("POST").h(headers).b(body);
281
+ return b.build();
410
282
  };
411
283
  exports.se_DescribeResourceCommand = se_DescribeResourceCommand;
412
284
  const se_DescribeTransactionCommand = async (input, context) => {
413
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
285
+ const b = (0, core_1.requestBuilder)(input, context);
414
286
  const headers = {
415
287
  "content-type": "application/json",
416
288
  };
417
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeTransaction";
289
+ b.bp("/DescribeTransaction");
418
290
  let body;
419
291
  body = JSON.stringify((0, smithy_client_1.take)(input, {
420
292
  TransactionId: [],
421
293
  }));
422
- return new protocol_http_1.HttpRequest({
423
- protocol,
424
- hostname,
425
- port,
426
- method: "POST",
427
- headers,
428
- path: resolvedPath,
429
- body,
430
- });
294
+ b.m("POST").h(headers).b(body);
295
+ return b.build();
431
296
  };
432
297
  exports.se_DescribeTransactionCommand = se_DescribeTransactionCommand;
433
298
  const se_ExtendTransactionCommand = async (input, context) => {
434
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
+ const b = (0, core_1.requestBuilder)(input, context);
435
300
  const headers = {
436
301
  "content-type": "application/json",
437
302
  };
438
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ExtendTransaction";
303
+ b.bp("/ExtendTransaction");
439
304
  let body;
440
305
  body = JSON.stringify((0, smithy_client_1.take)(input, {
441
306
  TransactionId: [],
442
307
  }));
443
- return new protocol_http_1.HttpRequest({
444
- protocol,
445
- hostname,
446
- port,
447
- method: "POST",
448
- headers,
449
- path: resolvedPath,
450
- body,
451
- });
308
+ b.m("POST").h(headers).b(body);
309
+ return b.build();
452
310
  };
453
311
  exports.se_ExtendTransactionCommand = se_ExtendTransactionCommand;
454
312
  const se_GetDataCellsFilterCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
+ const b = (0, core_1.requestBuilder)(input, context);
456
314
  const headers = {
457
315
  "content-type": "application/json",
458
316
  };
459
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDataCellsFilter";
317
+ b.bp("/GetDataCellsFilter");
460
318
  let body;
461
319
  body = JSON.stringify((0, smithy_client_1.take)(input, {
462
320
  DatabaseName: [],
@@ -464,44 +322,30 @@ const se_GetDataCellsFilterCommand = async (input, context) => {
464
322
  TableCatalogId: [],
465
323
  TableName: [],
466
324
  }));
467
- return new protocol_http_1.HttpRequest({
468
- protocol,
469
- hostname,
470
- port,
471
- method: "POST",
472
- headers,
473
- path: resolvedPath,
474
- body,
475
- });
325
+ b.m("POST").h(headers).b(body);
326
+ return b.build();
476
327
  };
477
328
  exports.se_GetDataCellsFilterCommand = se_GetDataCellsFilterCommand;
478
329
  const se_GetDataLakeSettingsCommand = async (input, context) => {
479
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
330
+ const b = (0, core_1.requestBuilder)(input, context);
480
331
  const headers = {
481
332
  "content-type": "application/json",
482
333
  };
483
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDataLakeSettings";
334
+ b.bp("/GetDataLakeSettings");
484
335
  let body;
485
336
  body = JSON.stringify((0, smithy_client_1.take)(input, {
486
337
  CatalogId: [],
487
338
  }));
488
- return new protocol_http_1.HttpRequest({
489
- protocol,
490
- hostname,
491
- port,
492
- method: "POST",
493
- headers,
494
- path: resolvedPath,
495
- body,
496
- });
339
+ b.m("POST").h(headers).b(body);
340
+ return b.build();
497
341
  };
498
342
  exports.se_GetDataLakeSettingsCommand = se_GetDataLakeSettingsCommand;
499
343
  const se_GetEffectivePermissionsForPathCommand = async (input, context) => {
500
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
344
+ const b = (0, core_1.requestBuilder)(input, context);
501
345
  const headers = {
502
346
  "content-type": "application/json",
503
347
  };
504
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetEffectivePermissionsForPath";
348
+ b.bp("/GetEffectivePermissionsForPath");
505
349
  let body;
506
350
  body = JSON.stringify((0, smithy_client_1.take)(input, {
507
351
  CatalogId: [],
@@ -509,45 +353,31 @@ const se_GetEffectivePermissionsForPathCommand = async (input, context) => {
509
353
  NextToken: [],
510
354
  ResourceArn: [],
511
355
  }));
512
- return new protocol_http_1.HttpRequest({
513
- protocol,
514
- hostname,
515
- port,
516
- method: "POST",
517
- headers,
518
- path: resolvedPath,
519
- body,
520
- });
356
+ b.m("POST").h(headers).b(body);
357
+ return b.build();
521
358
  };
522
359
  exports.se_GetEffectivePermissionsForPathCommand = se_GetEffectivePermissionsForPathCommand;
523
360
  const se_GetLFTagCommand = async (input, context) => {
524
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
+ const b = (0, core_1.requestBuilder)(input, context);
525
362
  const headers = {
526
363
  "content-type": "application/json",
527
364
  };
528
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLFTag";
365
+ b.bp("/GetLFTag");
529
366
  let body;
530
367
  body = JSON.stringify((0, smithy_client_1.take)(input, {
531
368
  CatalogId: [],
532
369
  TagKey: [],
533
370
  }));
534
- return new protocol_http_1.HttpRequest({
535
- protocol,
536
- hostname,
537
- port,
538
- method: "POST",
539
- headers,
540
- path: resolvedPath,
541
- body,
542
- });
371
+ b.m("POST").h(headers).b(body);
372
+ return b.build();
543
373
  };
544
374
  exports.se_GetLFTagCommand = se_GetLFTagCommand;
545
375
  const se_GetQueryStateCommand = async (input, context) => {
546
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = (0, core_1.requestBuilder)(input, context);
547
377
  const headers = {
548
378
  "content-type": "application/json",
549
379
  };
550
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetQueryState";
380
+ b.bp("/GetQueryState");
551
381
  let body;
552
382
  body = JSON.stringify((0, smithy_client_1.take)(input, {
553
383
  QueryId: [],
@@ -559,23 +389,17 @@ const se_GetQueryStateCommand = async (input, context) => {
559
389
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
560
390
  }
561
391
  }
562
- return new protocol_http_1.HttpRequest({
563
- protocol,
564
- hostname: resolvedHostname,
565
- port,
566
- method: "POST",
567
- headers,
568
- path: resolvedPath,
569
- body,
570
- });
392
+ b.hn(resolvedHostname);
393
+ b.m("POST").h(headers).b(body);
394
+ return b.build();
571
395
  };
572
396
  exports.se_GetQueryStateCommand = se_GetQueryStateCommand;
573
397
  const se_GetQueryStatisticsCommand = async (input, context) => {
574
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
398
+ const b = (0, core_1.requestBuilder)(input, context);
575
399
  const headers = {
576
400
  "content-type": "application/json",
577
401
  };
578
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetQueryStatistics";
402
+ b.bp("/GetQueryStatistics");
579
403
  let body;
580
404
  body = JSON.stringify((0, smithy_client_1.take)(input, {
581
405
  QueryId: [],
@@ -587,46 +411,33 @@ const se_GetQueryStatisticsCommand = async (input, context) => {
587
411
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
588
412
  }
589
413
  }
590
- return new protocol_http_1.HttpRequest({
591
- protocol,
592
- hostname: resolvedHostname,
593
- port,
594
- method: "POST",
595
- headers,
596
- path: resolvedPath,
597
- body,
598
- });
414
+ b.hn(resolvedHostname);
415
+ b.m("POST").h(headers).b(body);
416
+ return b.build();
599
417
  };
600
418
  exports.se_GetQueryStatisticsCommand = se_GetQueryStatisticsCommand;
601
419
  const se_GetResourceLFTagsCommand = async (input, context) => {
602
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
420
+ const b = (0, core_1.requestBuilder)(input, context);
603
421
  const headers = {
604
422
  "content-type": "application/json",
605
423
  };
606
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetResourceLFTags";
424
+ b.bp("/GetResourceLFTags");
607
425
  let body;
608
426
  body = JSON.stringify((0, smithy_client_1.take)(input, {
609
427
  CatalogId: [],
610
428
  Resource: (_) => (0, smithy_client_1._json)(_),
611
429
  ShowAssignedLFTags: [],
612
430
  }));
613
- return new protocol_http_1.HttpRequest({
614
- protocol,
615
- hostname,
616
- port,
617
- method: "POST",
618
- headers,
619
- path: resolvedPath,
620
- body,
621
- });
431
+ b.m("POST").h(headers).b(body);
432
+ return b.build();
622
433
  };
623
434
  exports.se_GetResourceLFTagsCommand = se_GetResourceLFTagsCommand;
624
435
  const se_GetTableObjectsCommand = async (input, context) => {
625
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
436
+ const b = (0, core_1.requestBuilder)(input, context);
626
437
  const headers = {
627
438
  "content-type": "application/json",
628
439
  };
629
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTableObjects";
440
+ b.bp("/GetTableObjects");
630
441
  let body;
631
442
  body = JSON.stringify((0, smithy_client_1.take)(input, {
632
443
  CatalogId: [],
@@ -638,23 +449,16 @@ const se_GetTableObjectsCommand = async (input, context) => {
638
449
  TableName: [],
639
450
  TransactionId: [],
640
451
  }));
641
- return new protocol_http_1.HttpRequest({
642
- protocol,
643
- hostname,
644
- port,
645
- method: "POST",
646
- headers,
647
- path: resolvedPath,
648
- body,
649
- });
452
+ b.m("POST").h(headers).b(body);
453
+ return b.build();
650
454
  };
651
455
  exports.se_GetTableObjectsCommand = se_GetTableObjectsCommand;
652
456
  const se_GetTemporaryGluePartitionCredentialsCommand = async (input, context) => {
653
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
457
+ const b = (0, core_1.requestBuilder)(input, context);
654
458
  const headers = {
655
459
  "content-type": "application/json",
656
460
  };
657
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGluePartitionCredentials";
461
+ b.bp("/GetTemporaryGluePartitionCredentials");
658
462
  let body;
659
463
  body = JSON.stringify((0, smithy_client_1.take)(input, {
660
464
  AuditContext: (_) => (0, smithy_client_1._json)(_),
@@ -664,23 +468,16 @@ const se_GetTemporaryGluePartitionCredentialsCommand = async (input, context) =>
664
468
  SupportedPermissionTypes: (_) => (0, smithy_client_1._json)(_),
665
469
  TableArn: [],
666
470
  }));
667
- return new protocol_http_1.HttpRequest({
668
- protocol,
669
- hostname,
670
- port,
671
- method: "POST",
672
- headers,
673
- path: resolvedPath,
674
- body,
675
- });
471
+ b.m("POST").h(headers).b(body);
472
+ return b.build();
676
473
  };
677
474
  exports.se_GetTemporaryGluePartitionCredentialsCommand = se_GetTemporaryGluePartitionCredentialsCommand;
678
475
  const se_GetTemporaryGlueTableCredentialsCommand = async (input, context) => {
679
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
+ const b = (0, core_1.requestBuilder)(input, context);
680
477
  const headers = {
681
478
  "content-type": "application/json",
682
479
  };
683
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGlueTableCredentials";
480
+ b.bp("/GetTemporaryGlueTableCredentials");
684
481
  let body;
685
482
  body = JSON.stringify((0, smithy_client_1.take)(input, {
686
483
  AuditContext: (_) => (0, smithy_client_1._json)(_),
@@ -689,23 +486,16 @@ const se_GetTemporaryGlueTableCredentialsCommand = async (input, context) => {
689
486
  SupportedPermissionTypes: (_) => (0, smithy_client_1._json)(_),
690
487
  TableArn: [],
691
488
  }));
692
- return new protocol_http_1.HttpRequest({
693
- protocol,
694
- hostname,
695
- port,
696
- method: "POST",
697
- headers,
698
- path: resolvedPath,
699
- body,
700
- });
489
+ b.m("POST").h(headers).b(body);
490
+ return b.build();
701
491
  };
702
492
  exports.se_GetTemporaryGlueTableCredentialsCommand = se_GetTemporaryGlueTableCredentialsCommand;
703
493
  const se_GetWorkUnitResultsCommand = async (input, context) => {
704
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
494
+ const b = (0, core_1.requestBuilder)(input, context);
705
495
  const headers = {
706
496
  "content-type": "application/json",
707
497
  };
708
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkUnitResults";
498
+ b.bp("/GetWorkUnitResults");
709
499
  let body;
710
500
  body = JSON.stringify((0, smithy_client_1.take)(input, {
711
501
  QueryId: [],
@@ -719,23 +509,17 @@ const se_GetWorkUnitResultsCommand = async (input, context) => {
719
509
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
720
510
  }
721
511
  }
722
- return new protocol_http_1.HttpRequest({
723
- protocol,
724
- hostname: resolvedHostname,
725
- port,
726
- method: "POST",
727
- headers,
728
- path: resolvedPath,
729
- body,
730
- });
512
+ b.hn(resolvedHostname);
513
+ b.m("POST").h(headers).b(body);
514
+ return b.build();
731
515
  };
732
516
  exports.se_GetWorkUnitResultsCommand = se_GetWorkUnitResultsCommand;
733
517
  const se_GetWorkUnitsCommand = async (input, context) => {
734
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
518
+ const b = (0, core_1.requestBuilder)(input, context);
735
519
  const headers = {
736
520
  "content-type": "application/json",
737
521
  };
738
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkUnits";
522
+ b.bp("/GetWorkUnits");
739
523
  let body;
740
524
  body = JSON.stringify((0, smithy_client_1.take)(input, {
741
525
  NextToken: [],
@@ -749,23 +533,17 @@ const se_GetWorkUnitsCommand = async (input, context) => {
749
533
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
750
534
  }
751
535
  }
752
- return new protocol_http_1.HttpRequest({
753
- protocol,
754
- hostname: resolvedHostname,
755
- port,
756
- method: "POST",
757
- headers,
758
- path: resolvedPath,
759
- body,
760
- });
536
+ b.hn(resolvedHostname);
537
+ b.m("POST").h(headers).b(body);
538
+ return b.build();
761
539
  };
762
540
  exports.se_GetWorkUnitsCommand = se_GetWorkUnitsCommand;
763
541
  const se_GrantPermissionsCommand = async (input, context) => {
764
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
542
+ const b = (0, core_1.requestBuilder)(input, context);
765
543
  const headers = {
766
544
  "content-type": "application/json",
767
545
  };
768
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GrantPermissions";
546
+ b.bp("/GrantPermissions");
769
547
  let body;
770
548
  body = JSON.stringify((0, smithy_client_1.take)(input, {
771
549
  CatalogId: [],
@@ -774,46 +552,32 @@ const se_GrantPermissionsCommand = async (input, context) => {
774
552
  Principal: (_) => (0, smithy_client_1._json)(_),
775
553
  Resource: (_) => (0, smithy_client_1._json)(_),
776
554
  }));
777
- return new protocol_http_1.HttpRequest({
778
- protocol,
779
- hostname,
780
- port,
781
- method: "POST",
782
- headers,
783
- path: resolvedPath,
784
- body,
785
- });
555
+ b.m("POST").h(headers).b(body);
556
+ return b.build();
786
557
  };
787
558
  exports.se_GrantPermissionsCommand = se_GrantPermissionsCommand;
788
559
  const se_ListDataCellsFilterCommand = async (input, context) => {
789
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
560
+ const b = (0, core_1.requestBuilder)(input, context);
790
561
  const headers = {
791
562
  "content-type": "application/json",
792
563
  };
793
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListDataCellsFilter";
564
+ b.bp("/ListDataCellsFilter");
794
565
  let body;
795
566
  body = JSON.stringify((0, smithy_client_1.take)(input, {
796
567
  MaxResults: [],
797
568
  NextToken: [],
798
569
  Table: (_) => (0, smithy_client_1._json)(_),
799
570
  }));
800
- return new protocol_http_1.HttpRequest({
801
- protocol,
802
- hostname,
803
- port,
804
- method: "POST",
805
- headers,
806
- path: resolvedPath,
807
- body,
808
- });
571
+ b.m("POST").h(headers).b(body);
572
+ return b.build();
809
573
  };
810
574
  exports.se_ListDataCellsFilterCommand = se_ListDataCellsFilterCommand;
811
575
  const se_ListLakeFormationOptInsCommand = async (input, context) => {
812
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
576
+ const b = (0, core_1.requestBuilder)(input, context);
813
577
  const headers = {
814
578
  "content-type": "application/json",
815
579
  };
816
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLakeFormationOptIns";
580
+ b.bp("/ListLakeFormationOptIns");
817
581
  let body;
818
582
  body = JSON.stringify((0, smithy_client_1.take)(input, {
819
583
  MaxResults: [],
@@ -821,23 +585,16 @@ const se_ListLakeFormationOptInsCommand = async (input, context) => {
821
585
  Principal: (_) => (0, smithy_client_1._json)(_),
822
586
  Resource: (_) => (0, smithy_client_1._json)(_),
823
587
  }));
824
- return new protocol_http_1.HttpRequest({
825
- protocol,
826
- hostname,
827
- port,
828
- method: "POST",
829
- headers,
830
- path: resolvedPath,
831
- body,
832
- });
588
+ b.m("POST").h(headers).b(body);
589
+ return b.build();
833
590
  };
834
591
  exports.se_ListLakeFormationOptInsCommand = se_ListLakeFormationOptInsCommand;
835
592
  const se_ListLFTagsCommand = async (input, context) => {
836
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
593
+ const b = (0, core_1.requestBuilder)(input, context);
837
594
  const headers = {
838
595
  "content-type": "application/json",
839
596
  };
840
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLFTags";
597
+ b.bp("/ListLFTags");
841
598
  let body;
842
599
  body = JSON.stringify((0, smithy_client_1.take)(input, {
843
600
  CatalogId: [],
@@ -845,23 +602,16 @@ const se_ListLFTagsCommand = async (input, context) => {
845
602
  NextToken: [],
846
603
  ResourceShareType: [],
847
604
  }));
848
- return new protocol_http_1.HttpRequest({
849
- protocol,
850
- hostname,
851
- port,
852
- method: "POST",
853
- headers,
854
- path: resolvedPath,
855
- body,
856
- });
605
+ b.m("POST").h(headers).b(body);
606
+ return b.build();
857
607
  };
858
608
  exports.se_ListLFTagsCommand = se_ListLFTagsCommand;
859
609
  const se_ListPermissionsCommand = async (input, context) => {
860
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
610
+ const b = (0, core_1.requestBuilder)(input, context);
861
611
  const headers = {
862
612
  "content-type": "application/json",
863
613
  };
864
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListPermissions";
614
+ b.bp("/ListPermissions");
865
615
  let body;
866
616
  body = JSON.stringify((0, smithy_client_1.take)(input, {
867
617
  CatalogId: [],
@@ -872,46 +622,32 @@ const se_ListPermissionsCommand = async (input, context) => {
872
622
  Resource: (_) => (0, smithy_client_1._json)(_),
873
623
  ResourceType: [],
874
624
  }));
875
- return new protocol_http_1.HttpRequest({
876
- protocol,
877
- hostname,
878
- port,
879
- method: "POST",
880
- headers,
881
- path: resolvedPath,
882
- body,
883
- });
625
+ b.m("POST").h(headers).b(body);
626
+ return b.build();
884
627
  };
885
628
  exports.se_ListPermissionsCommand = se_ListPermissionsCommand;
886
629
  const se_ListResourcesCommand = async (input, context) => {
887
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
630
+ const b = (0, core_1.requestBuilder)(input, context);
888
631
  const headers = {
889
632
  "content-type": "application/json",
890
633
  };
891
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListResources";
634
+ b.bp("/ListResources");
892
635
  let body;
893
636
  body = JSON.stringify((0, smithy_client_1.take)(input, {
894
637
  FilterConditionList: (_) => (0, smithy_client_1._json)(_),
895
638
  MaxResults: [],
896
639
  NextToken: [],
897
640
  }));
898
- return new protocol_http_1.HttpRequest({
899
- protocol,
900
- hostname,
901
- port,
902
- method: "POST",
903
- headers,
904
- path: resolvedPath,
905
- body,
906
- });
641
+ b.m("POST").h(headers).b(body);
642
+ return b.build();
907
643
  };
908
644
  exports.se_ListResourcesCommand = se_ListResourcesCommand;
909
645
  const se_ListTableStorageOptimizersCommand = async (input, context) => {
910
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
646
+ const b = (0, core_1.requestBuilder)(input, context);
911
647
  const headers = {
912
648
  "content-type": "application/json",
913
649
  };
914
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTableStorageOptimizers";
650
+ b.bp("/ListTableStorageOptimizers");
915
651
  let body;
916
652
  body = JSON.stringify((0, smithy_client_1.take)(input, {
917
653
  CatalogId: [],
@@ -921,23 +657,16 @@ const se_ListTableStorageOptimizersCommand = async (input, context) => {
921
657
  StorageOptimizerType: [],
922
658
  TableName: [],
923
659
  }));
924
- return new protocol_http_1.HttpRequest({
925
- protocol,
926
- hostname,
927
- port,
928
- method: "POST",
929
- headers,
930
- path: resolvedPath,
931
- body,
932
- });
660
+ b.m("POST").h(headers).b(body);
661
+ return b.build();
933
662
  };
934
663
  exports.se_ListTableStorageOptimizersCommand = se_ListTableStorageOptimizersCommand;
935
664
  const se_ListTransactionsCommand = async (input, context) => {
936
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
665
+ const b = (0, core_1.requestBuilder)(input, context);
937
666
  const headers = {
938
667
  "content-type": "application/json",
939
668
  };
940
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTransactions";
669
+ b.bp("/ListTransactions");
941
670
  let body;
942
671
  body = JSON.stringify((0, smithy_client_1.take)(input, {
943
672
  CatalogId: [],
@@ -945,45 +674,31 @@ const se_ListTransactionsCommand = async (input, context) => {
945
674
  NextToken: [],
946
675
  StatusFilter: [],
947
676
  }));
948
- return new protocol_http_1.HttpRequest({
949
- protocol,
950
- hostname,
951
- port,
952
- method: "POST",
953
- headers,
954
- path: resolvedPath,
955
- body,
956
- });
677
+ b.m("POST").h(headers).b(body);
678
+ return b.build();
957
679
  };
958
680
  exports.se_ListTransactionsCommand = se_ListTransactionsCommand;
959
681
  const se_PutDataLakeSettingsCommand = async (input, context) => {
960
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
682
+ const b = (0, core_1.requestBuilder)(input, context);
961
683
  const headers = {
962
684
  "content-type": "application/json",
963
685
  };
964
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutDataLakeSettings";
686
+ b.bp("/PutDataLakeSettings");
965
687
  let body;
966
688
  body = JSON.stringify((0, smithy_client_1.take)(input, {
967
689
  CatalogId: [],
968
690
  DataLakeSettings: (_) => (0, smithy_client_1._json)(_),
969
691
  }));
970
- return new protocol_http_1.HttpRequest({
971
- protocol,
972
- hostname,
973
- port,
974
- method: "POST",
975
- headers,
976
- path: resolvedPath,
977
- body,
978
- });
692
+ b.m("POST").h(headers).b(body);
693
+ return b.build();
979
694
  };
980
695
  exports.se_PutDataLakeSettingsCommand = se_PutDataLakeSettingsCommand;
981
696
  const se_RegisterResourceCommand = async (input, context) => {
982
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
697
+ const b = (0, core_1.requestBuilder)(input, context);
983
698
  const headers = {
984
699
  "content-type": "application/json",
985
700
  };
986
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RegisterResource";
701
+ b.bp("/RegisterResource");
987
702
  let body;
988
703
  body = JSON.stringify((0, smithy_client_1.take)(input, {
989
704
  HybridAccessEnabled: [],
@@ -992,46 +707,32 @@ const se_RegisterResourceCommand = async (input, context) => {
992
707
  UseServiceLinkedRole: [],
993
708
  WithFederation: [],
994
709
  }));
995
- return new protocol_http_1.HttpRequest({
996
- protocol,
997
- hostname,
998
- port,
999
- method: "POST",
1000
- headers,
1001
- path: resolvedPath,
1002
- body,
1003
- });
710
+ b.m("POST").h(headers).b(body);
711
+ return b.build();
1004
712
  };
1005
713
  exports.se_RegisterResourceCommand = se_RegisterResourceCommand;
1006
714
  const se_RemoveLFTagsFromResourceCommand = async (input, context) => {
1007
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
715
+ const b = (0, core_1.requestBuilder)(input, context);
1008
716
  const headers = {
1009
717
  "content-type": "application/json",
1010
718
  };
1011
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveLFTagsFromResource";
719
+ b.bp("/RemoveLFTagsFromResource");
1012
720
  let body;
1013
721
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1014
722
  CatalogId: [],
1015
723
  LFTags: (_) => (0, smithy_client_1._json)(_),
1016
724
  Resource: (_) => (0, smithy_client_1._json)(_),
1017
725
  }));
1018
- return new protocol_http_1.HttpRequest({
1019
- protocol,
1020
- hostname,
1021
- port,
1022
- method: "POST",
1023
- headers,
1024
- path: resolvedPath,
1025
- body,
1026
- });
726
+ b.m("POST").h(headers).b(body);
727
+ return b.build();
1027
728
  };
1028
729
  exports.se_RemoveLFTagsFromResourceCommand = se_RemoveLFTagsFromResourceCommand;
1029
730
  const se_RevokePermissionsCommand = async (input, context) => {
1030
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
731
+ const b = (0, core_1.requestBuilder)(input, context);
1031
732
  const headers = {
1032
733
  "content-type": "application/json",
1033
734
  };
1034
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RevokePermissions";
735
+ b.bp("/RevokePermissions");
1035
736
  let body;
1036
737
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1037
738
  CatalogId: [],
@@ -1040,23 +741,16 @@ const se_RevokePermissionsCommand = async (input, context) => {
1040
741
  Principal: (_) => (0, smithy_client_1._json)(_),
1041
742
  Resource: (_) => (0, smithy_client_1._json)(_),
1042
743
  }));
1043
- return new protocol_http_1.HttpRequest({
1044
- protocol,
1045
- hostname,
1046
- port,
1047
- method: "POST",
1048
- headers,
1049
- path: resolvedPath,
1050
- body,
1051
- });
744
+ b.m("POST").h(headers).b(body);
745
+ return b.build();
1052
746
  };
1053
747
  exports.se_RevokePermissionsCommand = se_RevokePermissionsCommand;
1054
748
  const se_SearchDatabasesByLFTagsCommand = async (input, context) => {
1055
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
749
+ const b = (0, core_1.requestBuilder)(input, context);
1056
750
  const headers = {
1057
751
  "content-type": "application/json",
1058
752
  };
1059
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SearchDatabasesByLFTags";
753
+ b.bp("/SearchDatabasesByLFTags");
1060
754
  let body;
1061
755
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1062
756
  CatalogId: [],
@@ -1064,23 +758,16 @@ const se_SearchDatabasesByLFTagsCommand = async (input, context) => {
1064
758
  MaxResults: [],
1065
759
  NextToken: [],
1066
760
  }));
1067
- return new protocol_http_1.HttpRequest({
1068
- protocol,
1069
- hostname,
1070
- port,
1071
- method: "POST",
1072
- headers,
1073
- path: resolvedPath,
1074
- body,
1075
- });
761
+ b.m("POST").h(headers).b(body);
762
+ return b.build();
1076
763
  };
1077
764
  exports.se_SearchDatabasesByLFTagsCommand = se_SearchDatabasesByLFTagsCommand;
1078
765
  const se_SearchTablesByLFTagsCommand = async (input, context) => {
1079
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
766
+ const b = (0, core_1.requestBuilder)(input, context);
1080
767
  const headers = {
1081
768
  "content-type": "application/json",
1082
769
  };
1083
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SearchTablesByLFTags";
770
+ b.bp("/SearchTablesByLFTags");
1084
771
  let body;
1085
772
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1086
773
  CatalogId: [],
@@ -1088,23 +775,16 @@ const se_SearchTablesByLFTagsCommand = async (input, context) => {
1088
775
  MaxResults: [],
1089
776
  NextToken: [],
1090
777
  }));
1091
- return new protocol_http_1.HttpRequest({
1092
- protocol,
1093
- hostname,
1094
- port,
1095
- method: "POST",
1096
- headers,
1097
- path: resolvedPath,
1098
- body,
1099
- });
778
+ b.m("POST").h(headers).b(body);
779
+ return b.build();
1100
780
  };
1101
781
  exports.se_SearchTablesByLFTagsCommand = se_SearchTablesByLFTagsCommand;
1102
782
  const se_StartQueryPlanningCommand = async (input, context) => {
1103
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
783
+ const b = (0, core_1.requestBuilder)(input, context);
1104
784
  const headers = {
1105
785
  "content-type": "application/json",
1106
786
  };
1107
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartQueryPlanning";
787
+ b.bp("/StartQueryPlanning");
1108
788
  let body;
1109
789
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1110
790
  QueryPlanningContext: (_) => se_QueryPlanningContext(_, context),
@@ -1117,89 +797,61 @@ const se_StartQueryPlanningCommand = async (input, context) => {
1117
797
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1118
798
  }
1119
799
  }
1120
- return new protocol_http_1.HttpRequest({
1121
- protocol,
1122
- hostname: resolvedHostname,
1123
- port,
1124
- method: "POST",
1125
- headers,
1126
- path: resolvedPath,
1127
- body,
1128
- });
800
+ b.hn(resolvedHostname);
801
+ b.m("POST").h(headers).b(body);
802
+ return b.build();
1129
803
  };
1130
804
  exports.se_StartQueryPlanningCommand = se_StartQueryPlanningCommand;
1131
805
  const se_StartTransactionCommand = async (input, context) => {
1132
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
806
+ const b = (0, core_1.requestBuilder)(input, context);
1133
807
  const headers = {
1134
808
  "content-type": "application/json",
1135
809
  };
1136
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartTransaction";
810
+ b.bp("/StartTransaction");
1137
811
  let body;
1138
812
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1139
813
  TransactionType: [],
1140
814
  }));
1141
- return new protocol_http_1.HttpRequest({
1142
- protocol,
1143
- hostname,
1144
- port,
1145
- method: "POST",
1146
- headers,
1147
- path: resolvedPath,
1148
- body,
1149
- });
815
+ b.m("POST").h(headers).b(body);
816
+ return b.build();
1150
817
  };
1151
818
  exports.se_StartTransactionCommand = se_StartTransactionCommand;
1152
819
  const se_UpdateDataCellsFilterCommand = async (input, context) => {
1153
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
820
+ const b = (0, core_1.requestBuilder)(input, context);
1154
821
  const headers = {
1155
822
  "content-type": "application/json",
1156
823
  };
1157
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateDataCellsFilter";
824
+ b.bp("/UpdateDataCellsFilter");
1158
825
  let body;
1159
826
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1160
827
  TableData: (_) => (0, smithy_client_1._json)(_),
1161
828
  }));
1162
- return new protocol_http_1.HttpRequest({
1163
- protocol,
1164
- hostname,
1165
- port,
1166
- method: "POST",
1167
- headers,
1168
- path: resolvedPath,
1169
- body,
1170
- });
829
+ b.m("POST").h(headers).b(body);
830
+ return b.build();
1171
831
  };
1172
832
  exports.se_UpdateDataCellsFilterCommand = se_UpdateDataCellsFilterCommand;
1173
833
  const se_UpdateLakeFormationIdentityCenterConfigurationCommand = async (input, context) => {
1174
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
834
+ const b = (0, core_1.requestBuilder)(input, context);
1175
835
  const headers = {
1176
836
  "content-type": "application/json",
1177
837
  };
1178
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1179
- "/UpdateLakeFormationIdentityCenterConfiguration";
838
+ b.bp("/UpdateLakeFormationIdentityCenterConfiguration");
1180
839
  let body;
1181
840
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1182
841
  ApplicationStatus: [],
1183
842
  CatalogId: [],
1184
843
  ExternalFiltering: (_) => (0, smithy_client_1._json)(_),
1185
844
  }));
1186
- return new protocol_http_1.HttpRequest({
1187
- protocol,
1188
- hostname,
1189
- port,
1190
- method: "POST",
1191
- headers,
1192
- path: resolvedPath,
1193
- body,
1194
- });
845
+ b.m("POST").h(headers).b(body);
846
+ return b.build();
1195
847
  };
1196
848
  exports.se_UpdateLakeFormationIdentityCenterConfigurationCommand = se_UpdateLakeFormationIdentityCenterConfigurationCommand;
1197
849
  const se_UpdateLFTagCommand = async (input, context) => {
1198
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
850
+ const b = (0, core_1.requestBuilder)(input, context);
1199
851
  const headers = {
1200
852
  "content-type": "application/json",
1201
853
  };
1202
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLFTag";
854
+ b.bp("/UpdateLFTag");
1203
855
  let body;
1204
856
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1205
857
  CatalogId: [],
@@ -1207,23 +859,16 @@ const se_UpdateLFTagCommand = async (input, context) => {
1207
859
  TagValuesToAdd: (_) => (0, smithy_client_1._json)(_),
1208
860
  TagValuesToDelete: (_) => (0, smithy_client_1._json)(_),
1209
861
  }));
1210
- return new protocol_http_1.HttpRequest({
1211
- protocol,
1212
- hostname,
1213
- port,
1214
- method: "POST",
1215
- headers,
1216
- path: resolvedPath,
1217
- body,
1218
- });
862
+ b.m("POST").h(headers).b(body);
863
+ return b.build();
1219
864
  };
1220
865
  exports.se_UpdateLFTagCommand = se_UpdateLFTagCommand;
1221
866
  const se_UpdateResourceCommand = async (input, context) => {
1222
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
867
+ const b = (0, core_1.requestBuilder)(input, context);
1223
868
  const headers = {
1224
869
  "content-type": "application/json",
1225
870
  };
1226
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateResource";
871
+ b.bp("/UpdateResource");
1227
872
  let body;
1228
873
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1229
874
  HybridAccessEnabled: [],
@@ -1231,23 +876,16 @@ const se_UpdateResourceCommand = async (input, context) => {
1231
876
  RoleArn: [],
1232
877
  WithFederation: [],
1233
878
  }));
1234
- return new protocol_http_1.HttpRequest({
1235
- protocol,
1236
- hostname,
1237
- port,
1238
- method: "POST",
1239
- headers,
1240
- path: resolvedPath,
1241
- body,
1242
- });
879
+ b.m("POST").h(headers).b(body);
880
+ return b.build();
1243
881
  };
1244
882
  exports.se_UpdateResourceCommand = se_UpdateResourceCommand;
1245
883
  const se_UpdateTableObjectsCommand = async (input, context) => {
1246
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
884
+ const b = (0, core_1.requestBuilder)(input, context);
1247
885
  const headers = {
1248
886
  "content-type": "application/json",
1249
887
  };
1250
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateTableObjects";
888
+ b.bp("/UpdateTableObjects");
1251
889
  let body;
1252
890
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1253
891
  CatalogId: [],
@@ -1256,23 +894,16 @@ const se_UpdateTableObjectsCommand = async (input, context) => {
1256
894
  TransactionId: [],
1257
895
  WriteOperations: (_) => (0, smithy_client_1._json)(_),
1258
896
  }));
1259
- return new protocol_http_1.HttpRequest({
1260
- protocol,
1261
- hostname,
1262
- port,
1263
- method: "POST",
1264
- headers,
1265
- path: resolvedPath,
1266
- body,
1267
- });
897
+ b.m("POST").h(headers).b(body);
898
+ return b.build();
1268
899
  };
1269
900
  exports.se_UpdateTableObjectsCommand = se_UpdateTableObjectsCommand;
1270
901
  const se_UpdateTableStorageOptimizerCommand = async (input, context) => {
1271
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
902
+ const b = (0, core_1.requestBuilder)(input, context);
1272
903
  const headers = {
1273
904
  "content-type": "application/json",
1274
905
  };
1275
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateTableStorageOptimizer";
906
+ b.bp("/UpdateTableStorageOptimizer");
1276
907
  let body;
1277
908
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1278
909
  CatalogId: [],
@@ -1280,15 +911,8 @@ const se_UpdateTableStorageOptimizerCommand = async (input, context) => {
1280
911
  StorageOptimizerConfig: (_) => (0, smithy_client_1._json)(_),
1281
912
  TableName: [],
1282
913
  }));
1283
- return new protocol_http_1.HttpRequest({
1284
- protocol,
1285
- hostname,
1286
- port,
1287
- method: "POST",
1288
- headers,
1289
- path: resolvedPath,
1290
- body,
1291
- });
914
+ b.m("POST").h(headers).b(body);
915
+ return b.build();
1292
916
  };
1293
917
  exports.se_UpdateTableStorageOptimizerCommand = se_UpdateTableStorageOptimizerCommand;
1294
918
  const de_AddLFTagsToResourceCommand = async (output, context) => {