@aws-sdk/client-glue 3.309.0 → 3.312.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.
@@ -16,2020 +16,1414 @@ const models_0_1 = require("../models/models_0");
16
16
  const models_1_1 = require("../models/models_1");
17
17
  const models_2_1 = require("../models/models_2");
18
18
  const se_BatchCreatePartitionCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-amz-json-1.1",
21
- "x-amz-target": "AWSGlue.BatchCreatePartition",
22
- };
19
+ const headers = sharedHeaders("BatchCreatePartition");
23
20
  let body;
24
21
  body = JSON.stringify(se_BatchCreatePartitionRequest(input, context));
25
22
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
23
  };
27
24
  exports.se_BatchCreatePartitionCommand = se_BatchCreatePartitionCommand;
28
25
  const se_BatchDeleteConnectionCommand = async (input, context) => {
29
- const headers = {
30
- "content-type": "application/x-amz-json-1.1",
31
- "x-amz-target": "AWSGlue.BatchDeleteConnection",
32
- };
26
+ const headers = sharedHeaders("BatchDeleteConnection");
33
27
  let body;
34
28
  body = JSON.stringify(se_BatchDeleteConnectionRequest(input, context));
35
29
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
30
  };
37
31
  exports.se_BatchDeleteConnectionCommand = se_BatchDeleteConnectionCommand;
38
32
  const se_BatchDeletePartitionCommand = async (input, context) => {
39
- const headers = {
40
- "content-type": "application/x-amz-json-1.1",
41
- "x-amz-target": "AWSGlue.BatchDeletePartition",
42
- };
33
+ const headers = sharedHeaders("BatchDeletePartition");
43
34
  let body;
44
35
  body = JSON.stringify(se_BatchDeletePartitionRequest(input, context));
45
36
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
37
  };
47
38
  exports.se_BatchDeletePartitionCommand = se_BatchDeletePartitionCommand;
48
39
  const se_BatchDeleteTableCommand = async (input, context) => {
49
- const headers = {
50
- "content-type": "application/x-amz-json-1.1",
51
- "x-amz-target": "AWSGlue.BatchDeleteTable",
52
- };
40
+ const headers = sharedHeaders("BatchDeleteTable");
53
41
  let body;
54
42
  body = JSON.stringify(se_BatchDeleteTableRequest(input, context));
55
43
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
44
  };
57
45
  exports.se_BatchDeleteTableCommand = se_BatchDeleteTableCommand;
58
46
  const se_BatchDeleteTableVersionCommand = async (input, context) => {
59
- const headers = {
60
- "content-type": "application/x-amz-json-1.1",
61
- "x-amz-target": "AWSGlue.BatchDeleteTableVersion",
62
- };
47
+ const headers = sharedHeaders("BatchDeleteTableVersion");
63
48
  let body;
64
49
  body = JSON.stringify(se_BatchDeleteTableVersionRequest(input, context));
65
50
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
51
  };
67
52
  exports.se_BatchDeleteTableVersionCommand = se_BatchDeleteTableVersionCommand;
68
53
  const se_BatchGetBlueprintsCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AWSGlue.BatchGetBlueprints",
72
- };
54
+ const headers = sharedHeaders("BatchGetBlueprints");
73
55
  let body;
74
56
  body = JSON.stringify(se_BatchGetBlueprintsRequest(input, context));
75
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
58
  };
77
59
  exports.se_BatchGetBlueprintsCommand = se_BatchGetBlueprintsCommand;
78
60
  const se_BatchGetCrawlersCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-amz-json-1.1",
81
- "x-amz-target": "AWSGlue.BatchGetCrawlers",
82
- };
61
+ const headers = sharedHeaders("BatchGetCrawlers");
83
62
  let body;
84
63
  body = JSON.stringify(se_BatchGetCrawlersRequest(input, context));
85
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
65
  };
87
66
  exports.se_BatchGetCrawlersCommand = se_BatchGetCrawlersCommand;
88
67
  const se_BatchGetCustomEntityTypesCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-amz-json-1.1",
91
- "x-amz-target": "AWSGlue.BatchGetCustomEntityTypes",
92
- };
68
+ const headers = sharedHeaders("BatchGetCustomEntityTypes");
93
69
  let body;
94
70
  body = JSON.stringify(se_BatchGetCustomEntityTypesRequest(input, context));
95
71
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
72
  };
97
73
  exports.se_BatchGetCustomEntityTypesCommand = se_BatchGetCustomEntityTypesCommand;
98
74
  const se_BatchGetDataQualityResultCommand = async (input, context) => {
99
- const headers = {
100
- "content-type": "application/x-amz-json-1.1",
101
- "x-amz-target": "AWSGlue.BatchGetDataQualityResult",
102
- };
75
+ const headers = sharedHeaders("BatchGetDataQualityResult");
103
76
  let body;
104
77
  body = JSON.stringify(se_BatchGetDataQualityResultRequest(input, context));
105
78
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
79
  };
107
80
  exports.se_BatchGetDataQualityResultCommand = se_BatchGetDataQualityResultCommand;
108
81
  const se_BatchGetDevEndpointsCommand = async (input, context) => {
109
- const headers = {
110
- "content-type": "application/x-amz-json-1.1",
111
- "x-amz-target": "AWSGlue.BatchGetDevEndpoints",
112
- };
82
+ const headers = sharedHeaders("BatchGetDevEndpoints");
113
83
  let body;
114
84
  body = JSON.stringify(se_BatchGetDevEndpointsRequest(input, context));
115
85
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
116
86
  };
117
87
  exports.se_BatchGetDevEndpointsCommand = se_BatchGetDevEndpointsCommand;
118
88
  const se_BatchGetJobsCommand = async (input, context) => {
119
- const headers = {
120
- "content-type": "application/x-amz-json-1.1",
121
- "x-amz-target": "AWSGlue.BatchGetJobs",
122
- };
89
+ const headers = sharedHeaders("BatchGetJobs");
123
90
  let body;
124
91
  body = JSON.stringify(se_BatchGetJobsRequest(input, context));
125
92
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
93
  };
127
94
  exports.se_BatchGetJobsCommand = se_BatchGetJobsCommand;
128
95
  const se_BatchGetPartitionCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-amz-json-1.1",
131
- "x-amz-target": "AWSGlue.BatchGetPartition",
132
- };
96
+ const headers = sharedHeaders("BatchGetPartition");
133
97
  let body;
134
98
  body = JSON.stringify(se_BatchGetPartitionRequest(input, context));
135
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
100
  };
137
101
  exports.se_BatchGetPartitionCommand = se_BatchGetPartitionCommand;
138
102
  const se_BatchGetTriggersCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-amz-json-1.1",
141
- "x-amz-target": "AWSGlue.BatchGetTriggers",
142
- };
103
+ const headers = sharedHeaders("BatchGetTriggers");
143
104
  let body;
144
105
  body = JSON.stringify(se_BatchGetTriggersRequest(input, context));
145
106
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
107
  };
147
108
  exports.se_BatchGetTriggersCommand = se_BatchGetTriggersCommand;
148
109
  const se_BatchGetWorkflowsCommand = async (input, context) => {
149
- const headers = {
150
- "content-type": "application/x-amz-json-1.1",
151
- "x-amz-target": "AWSGlue.BatchGetWorkflows",
152
- };
110
+ const headers = sharedHeaders("BatchGetWorkflows");
153
111
  let body;
154
112
  body = JSON.stringify(se_BatchGetWorkflowsRequest(input, context));
155
113
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
114
  };
157
115
  exports.se_BatchGetWorkflowsCommand = se_BatchGetWorkflowsCommand;
158
116
  const se_BatchStopJobRunCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "AWSGlue.BatchStopJobRun",
162
- };
117
+ const headers = sharedHeaders("BatchStopJobRun");
163
118
  let body;
164
119
  body = JSON.stringify(se_BatchStopJobRunRequest(input, context));
165
120
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
121
  };
167
122
  exports.se_BatchStopJobRunCommand = se_BatchStopJobRunCommand;
168
123
  const se_BatchUpdatePartitionCommand = async (input, context) => {
169
- const headers = {
170
- "content-type": "application/x-amz-json-1.1",
171
- "x-amz-target": "AWSGlue.BatchUpdatePartition",
172
- };
124
+ const headers = sharedHeaders("BatchUpdatePartition");
173
125
  let body;
174
126
  body = JSON.stringify(se_BatchUpdatePartitionRequest(input, context));
175
127
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
128
  };
177
129
  exports.se_BatchUpdatePartitionCommand = se_BatchUpdatePartitionCommand;
178
130
  const se_CancelDataQualityRuleRecommendationRunCommand = async (input, context) => {
179
- const headers = {
180
- "content-type": "application/x-amz-json-1.1",
181
- "x-amz-target": "AWSGlue.CancelDataQualityRuleRecommendationRun",
182
- };
131
+ const headers = sharedHeaders("CancelDataQualityRuleRecommendationRun");
183
132
  let body;
184
133
  body = JSON.stringify(se_CancelDataQualityRuleRecommendationRunRequest(input, context));
185
134
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
135
  };
187
136
  exports.se_CancelDataQualityRuleRecommendationRunCommand = se_CancelDataQualityRuleRecommendationRunCommand;
188
137
  const se_CancelDataQualityRulesetEvaluationRunCommand = async (input, context) => {
189
- const headers = {
190
- "content-type": "application/x-amz-json-1.1",
191
- "x-amz-target": "AWSGlue.CancelDataQualityRulesetEvaluationRun",
192
- };
138
+ const headers = sharedHeaders("CancelDataQualityRulesetEvaluationRun");
193
139
  let body;
194
140
  body = JSON.stringify(se_CancelDataQualityRulesetEvaluationRunRequest(input, context));
195
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
142
  };
197
143
  exports.se_CancelDataQualityRulesetEvaluationRunCommand = se_CancelDataQualityRulesetEvaluationRunCommand;
198
144
  const se_CancelMLTaskRunCommand = async (input, context) => {
199
- const headers = {
200
- "content-type": "application/x-amz-json-1.1",
201
- "x-amz-target": "AWSGlue.CancelMLTaskRun",
202
- };
145
+ const headers = sharedHeaders("CancelMLTaskRun");
203
146
  let body;
204
147
  body = JSON.stringify(se_CancelMLTaskRunRequest(input, context));
205
148
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
206
149
  };
207
150
  exports.se_CancelMLTaskRunCommand = se_CancelMLTaskRunCommand;
208
151
  const se_CancelStatementCommand = async (input, context) => {
209
- const headers = {
210
- "content-type": "application/x-amz-json-1.1",
211
- "x-amz-target": "AWSGlue.CancelStatement",
212
- };
152
+ const headers = sharedHeaders("CancelStatement");
213
153
  let body;
214
154
  body = JSON.stringify(se_CancelStatementRequest(input, context));
215
155
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
156
  };
217
157
  exports.se_CancelStatementCommand = se_CancelStatementCommand;
218
158
  const se_CheckSchemaVersionValidityCommand = async (input, context) => {
219
- const headers = {
220
- "content-type": "application/x-amz-json-1.1",
221
- "x-amz-target": "AWSGlue.CheckSchemaVersionValidity",
222
- };
159
+ const headers = sharedHeaders("CheckSchemaVersionValidity");
223
160
  let body;
224
161
  body = JSON.stringify(se_CheckSchemaVersionValidityInput(input, context));
225
162
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
226
163
  };
227
164
  exports.se_CheckSchemaVersionValidityCommand = se_CheckSchemaVersionValidityCommand;
228
165
  const se_CreateBlueprintCommand = async (input, context) => {
229
- const headers = {
230
- "content-type": "application/x-amz-json-1.1",
231
- "x-amz-target": "AWSGlue.CreateBlueprint",
232
- };
166
+ const headers = sharedHeaders("CreateBlueprint");
233
167
  let body;
234
168
  body = JSON.stringify(se_CreateBlueprintRequest(input, context));
235
169
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
236
170
  };
237
171
  exports.se_CreateBlueprintCommand = se_CreateBlueprintCommand;
238
172
  const se_CreateClassifierCommand = async (input, context) => {
239
- const headers = {
240
- "content-type": "application/x-amz-json-1.1",
241
- "x-amz-target": "AWSGlue.CreateClassifier",
242
- };
173
+ const headers = sharedHeaders("CreateClassifier");
243
174
  let body;
244
175
  body = JSON.stringify(se_CreateClassifierRequest(input, context));
245
176
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
177
  };
247
178
  exports.se_CreateClassifierCommand = se_CreateClassifierCommand;
248
179
  const se_CreateConnectionCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-amz-json-1.1",
251
- "x-amz-target": "AWSGlue.CreateConnection",
252
- };
180
+ const headers = sharedHeaders("CreateConnection");
253
181
  let body;
254
182
  body = JSON.stringify(se_CreateConnectionRequest(input, context));
255
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
184
  };
257
185
  exports.se_CreateConnectionCommand = se_CreateConnectionCommand;
258
186
  const se_CreateCrawlerCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-amz-json-1.1",
261
- "x-amz-target": "AWSGlue.CreateCrawler",
262
- };
187
+ const headers = sharedHeaders("CreateCrawler");
263
188
  let body;
264
189
  body = JSON.stringify(se_CreateCrawlerRequest(input, context));
265
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
266
191
  };
267
192
  exports.se_CreateCrawlerCommand = se_CreateCrawlerCommand;
268
193
  const se_CreateCustomEntityTypeCommand = async (input, context) => {
269
- const headers = {
270
- "content-type": "application/x-amz-json-1.1",
271
- "x-amz-target": "AWSGlue.CreateCustomEntityType",
272
- };
194
+ const headers = sharedHeaders("CreateCustomEntityType");
273
195
  let body;
274
196
  body = JSON.stringify(se_CreateCustomEntityTypeRequest(input, context));
275
197
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
198
  };
277
199
  exports.se_CreateCustomEntityTypeCommand = se_CreateCustomEntityTypeCommand;
278
200
  const se_CreateDatabaseCommand = async (input, context) => {
279
- const headers = {
280
- "content-type": "application/x-amz-json-1.1",
281
- "x-amz-target": "AWSGlue.CreateDatabase",
282
- };
201
+ const headers = sharedHeaders("CreateDatabase");
283
202
  let body;
284
203
  body = JSON.stringify(se_CreateDatabaseRequest(input, context));
285
204
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
205
  };
287
206
  exports.se_CreateDatabaseCommand = se_CreateDatabaseCommand;
288
207
  const se_CreateDataQualityRulesetCommand = async (input, context) => {
289
- const headers = {
290
- "content-type": "application/x-amz-json-1.1",
291
- "x-amz-target": "AWSGlue.CreateDataQualityRuleset",
292
- };
208
+ const headers = sharedHeaders("CreateDataQualityRuleset");
293
209
  let body;
294
210
  body = JSON.stringify(se_CreateDataQualityRulesetRequest(input, context));
295
211
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
296
212
  };
297
213
  exports.se_CreateDataQualityRulesetCommand = se_CreateDataQualityRulesetCommand;
298
214
  const se_CreateDevEndpointCommand = async (input, context) => {
299
- const headers = {
300
- "content-type": "application/x-amz-json-1.1",
301
- "x-amz-target": "AWSGlue.CreateDevEndpoint",
302
- };
215
+ const headers = sharedHeaders("CreateDevEndpoint");
303
216
  let body;
304
217
  body = JSON.stringify(se_CreateDevEndpointRequest(input, context));
305
218
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
219
  };
307
220
  exports.se_CreateDevEndpointCommand = se_CreateDevEndpointCommand;
308
221
  const se_CreateJobCommand = async (input, context) => {
309
- const headers = {
310
- "content-type": "application/x-amz-json-1.1",
311
- "x-amz-target": "AWSGlue.CreateJob",
312
- };
222
+ const headers = sharedHeaders("CreateJob");
313
223
  let body;
314
224
  body = JSON.stringify(se_CreateJobRequest(input, context));
315
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
226
  };
317
227
  exports.se_CreateJobCommand = se_CreateJobCommand;
318
228
  const se_CreateMLTransformCommand = async (input, context) => {
319
- const headers = {
320
- "content-type": "application/x-amz-json-1.1",
321
- "x-amz-target": "AWSGlue.CreateMLTransform",
322
- };
229
+ const headers = sharedHeaders("CreateMLTransform");
323
230
  let body;
324
231
  body = JSON.stringify(se_CreateMLTransformRequest(input, context));
325
232
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
326
233
  };
327
234
  exports.se_CreateMLTransformCommand = se_CreateMLTransformCommand;
328
235
  const se_CreatePartitionCommand = async (input, context) => {
329
- const headers = {
330
- "content-type": "application/x-amz-json-1.1",
331
- "x-amz-target": "AWSGlue.CreatePartition",
332
- };
236
+ const headers = sharedHeaders("CreatePartition");
333
237
  let body;
334
238
  body = JSON.stringify(se_CreatePartitionRequest(input, context));
335
239
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
240
  };
337
241
  exports.se_CreatePartitionCommand = se_CreatePartitionCommand;
338
242
  const se_CreatePartitionIndexCommand = async (input, context) => {
339
- const headers = {
340
- "content-type": "application/x-amz-json-1.1",
341
- "x-amz-target": "AWSGlue.CreatePartitionIndex",
342
- };
243
+ const headers = sharedHeaders("CreatePartitionIndex");
343
244
  let body;
344
245
  body = JSON.stringify(se_CreatePartitionIndexRequest(input, context));
345
246
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
247
  };
347
248
  exports.se_CreatePartitionIndexCommand = se_CreatePartitionIndexCommand;
348
249
  const se_CreateRegistryCommand = async (input, context) => {
349
- const headers = {
350
- "content-type": "application/x-amz-json-1.1",
351
- "x-amz-target": "AWSGlue.CreateRegistry",
352
- };
250
+ const headers = sharedHeaders("CreateRegistry");
353
251
  let body;
354
252
  body = JSON.stringify(se_CreateRegistryInput(input, context));
355
253
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
356
254
  };
357
255
  exports.se_CreateRegistryCommand = se_CreateRegistryCommand;
358
256
  const se_CreateSchemaCommand = async (input, context) => {
359
- const headers = {
360
- "content-type": "application/x-amz-json-1.1",
361
- "x-amz-target": "AWSGlue.CreateSchema",
362
- };
257
+ const headers = sharedHeaders("CreateSchema");
363
258
  let body;
364
259
  body = JSON.stringify(se_CreateSchemaInput(input, context));
365
260
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
261
  };
367
262
  exports.se_CreateSchemaCommand = se_CreateSchemaCommand;
368
263
  const se_CreateScriptCommand = async (input, context) => {
369
- const headers = {
370
- "content-type": "application/x-amz-json-1.1",
371
- "x-amz-target": "AWSGlue.CreateScript",
372
- };
264
+ const headers = sharedHeaders("CreateScript");
373
265
  let body;
374
266
  body = JSON.stringify(se_CreateScriptRequest(input, context));
375
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
376
268
  };
377
269
  exports.se_CreateScriptCommand = se_CreateScriptCommand;
378
270
  const se_CreateSecurityConfigurationCommand = async (input, context) => {
379
- const headers = {
380
- "content-type": "application/x-amz-json-1.1",
381
- "x-amz-target": "AWSGlue.CreateSecurityConfiguration",
382
- };
271
+ const headers = sharedHeaders("CreateSecurityConfiguration");
383
272
  let body;
384
273
  body = JSON.stringify(se_CreateSecurityConfigurationRequest(input, context));
385
274
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
386
275
  };
387
276
  exports.se_CreateSecurityConfigurationCommand = se_CreateSecurityConfigurationCommand;
388
277
  const se_CreateSessionCommand = async (input, context) => {
389
- const headers = {
390
- "content-type": "application/x-amz-json-1.1",
391
- "x-amz-target": "AWSGlue.CreateSession",
392
- };
278
+ const headers = sharedHeaders("CreateSession");
393
279
  let body;
394
280
  body = JSON.stringify(se_CreateSessionRequest(input, context));
395
281
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
396
282
  };
397
283
  exports.se_CreateSessionCommand = se_CreateSessionCommand;
398
284
  const se_CreateTableCommand = async (input, context) => {
399
- const headers = {
400
- "content-type": "application/x-amz-json-1.1",
401
- "x-amz-target": "AWSGlue.CreateTable",
402
- };
285
+ const headers = sharedHeaders("CreateTable");
403
286
  let body;
404
287
  body = JSON.stringify(se_CreateTableRequest(input, context));
405
288
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
406
289
  };
407
290
  exports.se_CreateTableCommand = se_CreateTableCommand;
408
291
  const se_CreateTriggerCommand = async (input, context) => {
409
- const headers = {
410
- "content-type": "application/x-amz-json-1.1",
411
- "x-amz-target": "AWSGlue.CreateTrigger",
412
- };
292
+ const headers = sharedHeaders("CreateTrigger");
413
293
  let body;
414
294
  body = JSON.stringify(se_CreateTriggerRequest(input, context));
415
295
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
416
296
  };
417
297
  exports.se_CreateTriggerCommand = se_CreateTriggerCommand;
418
298
  const se_CreateUserDefinedFunctionCommand = async (input, context) => {
419
- const headers = {
420
- "content-type": "application/x-amz-json-1.1",
421
- "x-amz-target": "AWSGlue.CreateUserDefinedFunction",
422
- };
299
+ const headers = sharedHeaders("CreateUserDefinedFunction");
423
300
  let body;
424
301
  body = JSON.stringify(se_CreateUserDefinedFunctionRequest(input, context));
425
302
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
303
  };
427
304
  exports.se_CreateUserDefinedFunctionCommand = se_CreateUserDefinedFunctionCommand;
428
305
  const se_CreateWorkflowCommand = async (input, context) => {
429
- const headers = {
430
- "content-type": "application/x-amz-json-1.1",
431
- "x-amz-target": "AWSGlue.CreateWorkflow",
432
- };
306
+ const headers = sharedHeaders("CreateWorkflow");
433
307
  let body;
434
308
  body = JSON.stringify(se_CreateWorkflowRequest(input, context));
435
309
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
436
310
  };
437
311
  exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
438
312
  const se_DeleteBlueprintCommand = async (input, context) => {
439
- const headers = {
440
- "content-type": "application/x-amz-json-1.1",
441
- "x-amz-target": "AWSGlue.DeleteBlueprint",
442
- };
313
+ const headers = sharedHeaders("DeleteBlueprint");
443
314
  let body;
444
315
  body = JSON.stringify(se_DeleteBlueprintRequest(input, context));
445
316
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
446
317
  };
447
318
  exports.se_DeleteBlueprintCommand = se_DeleteBlueprintCommand;
448
319
  const se_DeleteClassifierCommand = async (input, context) => {
449
- const headers = {
450
- "content-type": "application/x-amz-json-1.1",
451
- "x-amz-target": "AWSGlue.DeleteClassifier",
452
- };
320
+ const headers = sharedHeaders("DeleteClassifier");
453
321
  let body;
454
322
  body = JSON.stringify(se_DeleteClassifierRequest(input, context));
455
323
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
324
  };
457
325
  exports.se_DeleteClassifierCommand = se_DeleteClassifierCommand;
458
326
  const se_DeleteColumnStatisticsForPartitionCommand = async (input, context) => {
459
- const headers = {
460
- "content-type": "application/x-amz-json-1.1",
461
- "x-amz-target": "AWSGlue.DeleteColumnStatisticsForPartition",
462
- };
327
+ const headers = sharedHeaders("DeleteColumnStatisticsForPartition");
463
328
  let body;
464
329
  body = JSON.stringify(se_DeleteColumnStatisticsForPartitionRequest(input, context));
465
330
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
466
331
  };
467
332
  exports.se_DeleteColumnStatisticsForPartitionCommand = se_DeleteColumnStatisticsForPartitionCommand;
468
333
  const se_DeleteColumnStatisticsForTableCommand = async (input, context) => {
469
- const headers = {
470
- "content-type": "application/x-amz-json-1.1",
471
- "x-amz-target": "AWSGlue.DeleteColumnStatisticsForTable",
472
- };
334
+ const headers = sharedHeaders("DeleteColumnStatisticsForTable");
473
335
  let body;
474
336
  body = JSON.stringify(se_DeleteColumnStatisticsForTableRequest(input, context));
475
337
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
476
338
  };
477
339
  exports.se_DeleteColumnStatisticsForTableCommand = se_DeleteColumnStatisticsForTableCommand;
478
340
  const se_DeleteConnectionCommand = async (input, context) => {
479
- const headers = {
480
- "content-type": "application/x-amz-json-1.1",
481
- "x-amz-target": "AWSGlue.DeleteConnection",
482
- };
341
+ const headers = sharedHeaders("DeleteConnection");
483
342
  let body;
484
343
  body = JSON.stringify(se_DeleteConnectionRequest(input, context));
485
344
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
345
  };
487
346
  exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
488
347
  const se_DeleteCrawlerCommand = async (input, context) => {
489
- const headers = {
490
- "content-type": "application/x-amz-json-1.1",
491
- "x-amz-target": "AWSGlue.DeleteCrawler",
492
- };
348
+ const headers = sharedHeaders("DeleteCrawler");
493
349
  let body;
494
350
  body = JSON.stringify(se_DeleteCrawlerRequest(input, context));
495
351
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
496
352
  };
497
353
  exports.se_DeleteCrawlerCommand = se_DeleteCrawlerCommand;
498
354
  const se_DeleteCustomEntityTypeCommand = async (input, context) => {
499
- const headers = {
500
- "content-type": "application/x-amz-json-1.1",
501
- "x-amz-target": "AWSGlue.DeleteCustomEntityType",
502
- };
355
+ const headers = sharedHeaders("DeleteCustomEntityType");
503
356
  let body;
504
357
  body = JSON.stringify(se_DeleteCustomEntityTypeRequest(input, context));
505
358
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
506
359
  };
507
360
  exports.se_DeleteCustomEntityTypeCommand = se_DeleteCustomEntityTypeCommand;
508
361
  const se_DeleteDatabaseCommand = async (input, context) => {
509
- const headers = {
510
- "content-type": "application/x-amz-json-1.1",
511
- "x-amz-target": "AWSGlue.DeleteDatabase",
512
- };
362
+ const headers = sharedHeaders("DeleteDatabase");
513
363
  let body;
514
364
  body = JSON.stringify(se_DeleteDatabaseRequest(input, context));
515
365
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
516
366
  };
517
367
  exports.se_DeleteDatabaseCommand = se_DeleteDatabaseCommand;
518
368
  const se_DeleteDataQualityRulesetCommand = async (input, context) => {
519
- const headers = {
520
- "content-type": "application/x-amz-json-1.1",
521
- "x-amz-target": "AWSGlue.DeleteDataQualityRuleset",
522
- };
369
+ const headers = sharedHeaders("DeleteDataQualityRuleset");
523
370
  let body;
524
371
  body = JSON.stringify(se_DeleteDataQualityRulesetRequest(input, context));
525
372
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
526
373
  };
527
374
  exports.se_DeleteDataQualityRulesetCommand = se_DeleteDataQualityRulesetCommand;
528
375
  const se_DeleteDevEndpointCommand = async (input, context) => {
529
- const headers = {
530
- "content-type": "application/x-amz-json-1.1",
531
- "x-amz-target": "AWSGlue.DeleteDevEndpoint",
532
- };
376
+ const headers = sharedHeaders("DeleteDevEndpoint");
533
377
  let body;
534
378
  body = JSON.stringify(se_DeleteDevEndpointRequest(input, context));
535
379
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
536
380
  };
537
381
  exports.se_DeleteDevEndpointCommand = se_DeleteDevEndpointCommand;
538
382
  const se_DeleteJobCommand = async (input, context) => {
539
- const headers = {
540
- "content-type": "application/x-amz-json-1.1",
541
- "x-amz-target": "AWSGlue.DeleteJob",
542
- };
383
+ const headers = sharedHeaders("DeleteJob");
543
384
  let body;
544
385
  body = JSON.stringify(se_DeleteJobRequest(input, context));
545
386
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
387
  };
547
388
  exports.se_DeleteJobCommand = se_DeleteJobCommand;
548
389
  const se_DeleteMLTransformCommand = async (input, context) => {
549
- const headers = {
550
- "content-type": "application/x-amz-json-1.1",
551
- "x-amz-target": "AWSGlue.DeleteMLTransform",
552
- };
390
+ const headers = sharedHeaders("DeleteMLTransform");
553
391
  let body;
554
392
  body = JSON.stringify(se_DeleteMLTransformRequest(input, context));
555
393
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
556
394
  };
557
395
  exports.se_DeleteMLTransformCommand = se_DeleteMLTransformCommand;
558
396
  const se_DeletePartitionCommand = async (input, context) => {
559
- const headers = {
560
- "content-type": "application/x-amz-json-1.1",
561
- "x-amz-target": "AWSGlue.DeletePartition",
562
- };
397
+ const headers = sharedHeaders("DeletePartition");
563
398
  let body;
564
399
  body = JSON.stringify(se_DeletePartitionRequest(input, context));
565
400
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
566
401
  };
567
402
  exports.se_DeletePartitionCommand = se_DeletePartitionCommand;
568
403
  const se_DeletePartitionIndexCommand = async (input, context) => {
569
- const headers = {
570
- "content-type": "application/x-amz-json-1.1",
571
- "x-amz-target": "AWSGlue.DeletePartitionIndex",
572
- };
404
+ const headers = sharedHeaders("DeletePartitionIndex");
573
405
  let body;
574
406
  body = JSON.stringify(se_DeletePartitionIndexRequest(input, context));
575
407
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
576
408
  };
577
409
  exports.se_DeletePartitionIndexCommand = se_DeletePartitionIndexCommand;
578
410
  const se_DeleteRegistryCommand = async (input, context) => {
579
- const headers = {
580
- "content-type": "application/x-amz-json-1.1",
581
- "x-amz-target": "AWSGlue.DeleteRegistry",
582
- };
411
+ const headers = sharedHeaders("DeleteRegistry");
583
412
  let body;
584
413
  body = JSON.stringify(se_DeleteRegistryInput(input, context));
585
414
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
586
415
  };
587
416
  exports.se_DeleteRegistryCommand = se_DeleteRegistryCommand;
588
417
  const se_DeleteResourcePolicyCommand = async (input, context) => {
589
- const headers = {
590
- "content-type": "application/x-amz-json-1.1",
591
- "x-amz-target": "AWSGlue.DeleteResourcePolicy",
592
- };
418
+ const headers = sharedHeaders("DeleteResourcePolicy");
593
419
  let body;
594
420
  body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context));
595
421
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
596
422
  };
597
423
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
598
424
  const se_DeleteSchemaCommand = async (input, context) => {
599
- const headers = {
600
- "content-type": "application/x-amz-json-1.1",
601
- "x-amz-target": "AWSGlue.DeleteSchema",
602
- };
425
+ const headers = sharedHeaders("DeleteSchema");
603
426
  let body;
604
427
  body = JSON.stringify(se_DeleteSchemaInput(input, context));
605
428
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
606
429
  };
607
430
  exports.se_DeleteSchemaCommand = se_DeleteSchemaCommand;
608
431
  const se_DeleteSchemaVersionsCommand = async (input, context) => {
609
- const headers = {
610
- "content-type": "application/x-amz-json-1.1",
611
- "x-amz-target": "AWSGlue.DeleteSchemaVersions",
612
- };
432
+ const headers = sharedHeaders("DeleteSchemaVersions");
613
433
  let body;
614
434
  body = JSON.stringify(se_DeleteSchemaVersionsInput(input, context));
615
435
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
616
436
  };
617
437
  exports.se_DeleteSchemaVersionsCommand = se_DeleteSchemaVersionsCommand;
618
438
  const se_DeleteSecurityConfigurationCommand = async (input, context) => {
619
- const headers = {
620
- "content-type": "application/x-amz-json-1.1",
621
- "x-amz-target": "AWSGlue.DeleteSecurityConfiguration",
622
- };
439
+ const headers = sharedHeaders("DeleteSecurityConfiguration");
623
440
  let body;
624
441
  body = JSON.stringify(se_DeleteSecurityConfigurationRequest(input, context));
625
442
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
626
443
  };
627
444
  exports.se_DeleteSecurityConfigurationCommand = se_DeleteSecurityConfigurationCommand;
628
445
  const se_DeleteSessionCommand = async (input, context) => {
629
- const headers = {
630
- "content-type": "application/x-amz-json-1.1",
631
- "x-amz-target": "AWSGlue.DeleteSession",
632
- };
446
+ const headers = sharedHeaders("DeleteSession");
633
447
  let body;
634
448
  body = JSON.stringify(se_DeleteSessionRequest(input, context));
635
449
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
636
450
  };
637
451
  exports.se_DeleteSessionCommand = se_DeleteSessionCommand;
638
452
  const se_DeleteTableCommand = async (input, context) => {
639
- const headers = {
640
- "content-type": "application/x-amz-json-1.1",
641
- "x-amz-target": "AWSGlue.DeleteTable",
642
- };
453
+ const headers = sharedHeaders("DeleteTable");
643
454
  let body;
644
455
  body = JSON.stringify(se_DeleteTableRequest(input, context));
645
456
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
646
457
  };
647
458
  exports.se_DeleteTableCommand = se_DeleteTableCommand;
648
459
  const se_DeleteTableVersionCommand = async (input, context) => {
649
- const headers = {
650
- "content-type": "application/x-amz-json-1.1",
651
- "x-amz-target": "AWSGlue.DeleteTableVersion",
652
- };
460
+ const headers = sharedHeaders("DeleteTableVersion");
653
461
  let body;
654
462
  body = JSON.stringify(se_DeleteTableVersionRequest(input, context));
655
463
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
656
464
  };
657
465
  exports.se_DeleteTableVersionCommand = se_DeleteTableVersionCommand;
658
466
  const se_DeleteTriggerCommand = async (input, context) => {
659
- const headers = {
660
- "content-type": "application/x-amz-json-1.1",
661
- "x-amz-target": "AWSGlue.DeleteTrigger",
662
- };
467
+ const headers = sharedHeaders("DeleteTrigger");
663
468
  let body;
664
469
  body = JSON.stringify(se_DeleteTriggerRequest(input, context));
665
470
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
666
471
  };
667
472
  exports.se_DeleteTriggerCommand = se_DeleteTriggerCommand;
668
473
  const se_DeleteUserDefinedFunctionCommand = async (input, context) => {
669
- const headers = {
670
- "content-type": "application/x-amz-json-1.1",
671
- "x-amz-target": "AWSGlue.DeleteUserDefinedFunction",
672
- };
474
+ const headers = sharedHeaders("DeleteUserDefinedFunction");
673
475
  let body;
674
476
  body = JSON.stringify(se_DeleteUserDefinedFunctionRequest(input, context));
675
477
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
676
478
  };
677
479
  exports.se_DeleteUserDefinedFunctionCommand = se_DeleteUserDefinedFunctionCommand;
678
480
  const se_DeleteWorkflowCommand = async (input, context) => {
679
- const headers = {
680
- "content-type": "application/x-amz-json-1.1",
681
- "x-amz-target": "AWSGlue.DeleteWorkflow",
682
- };
481
+ const headers = sharedHeaders("DeleteWorkflow");
683
482
  let body;
684
483
  body = JSON.stringify(se_DeleteWorkflowRequest(input, context));
685
484
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
686
485
  };
687
486
  exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
688
487
  const se_GetBlueprintCommand = async (input, context) => {
689
- const headers = {
690
- "content-type": "application/x-amz-json-1.1",
691
- "x-amz-target": "AWSGlue.GetBlueprint",
692
- };
488
+ const headers = sharedHeaders("GetBlueprint");
693
489
  let body;
694
490
  body = JSON.stringify(se_GetBlueprintRequest(input, context));
695
491
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
696
492
  };
697
493
  exports.se_GetBlueprintCommand = se_GetBlueprintCommand;
698
494
  const se_GetBlueprintRunCommand = async (input, context) => {
699
- const headers = {
700
- "content-type": "application/x-amz-json-1.1",
701
- "x-amz-target": "AWSGlue.GetBlueprintRun",
702
- };
495
+ const headers = sharedHeaders("GetBlueprintRun");
703
496
  let body;
704
497
  body = JSON.stringify(se_GetBlueprintRunRequest(input, context));
705
498
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
706
499
  };
707
500
  exports.se_GetBlueprintRunCommand = se_GetBlueprintRunCommand;
708
501
  const se_GetBlueprintRunsCommand = async (input, context) => {
709
- const headers = {
710
- "content-type": "application/x-amz-json-1.1",
711
- "x-amz-target": "AWSGlue.GetBlueprintRuns",
712
- };
502
+ const headers = sharedHeaders("GetBlueprintRuns");
713
503
  let body;
714
504
  body = JSON.stringify(se_GetBlueprintRunsRequest(input, context));
715
505
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
716
506
  };
717
507
  exports.se_GetBlueprintRunsCommand = se_GetBlueprintRunsCommand;
718
508
  const se_GetCatalogImportStatusCommand = async (input, context) => {
719
- const headers = {
720
- "content-type": "application/x-amz-json-1.1",
721
- "x-amz-target": "AWSGlue.GetCatalogImportStatus",
722
- };
509
+ const headers = sharedHeaders("GetCatalogImportStatus");
723
510
  let body;
724
511
  body = JSON.stringify(se_GetCatalogImportStatusRequest(input, context));
725
512
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
726
513
  };
727
514
  exports.se_GetCatalogImportStatusCommand = se_GetCatalogImportStatusCommand;
728
515
  const se_GetClassifierCommand = async (input, context) => {
729
- const headers = {
730
- "content-type": "application/x-amz-json-1.1",
731
- "x-amz-target": "AWSGlue.GetClassifier",
732
- };
516
+ const headers = sharedHeaders("GetClassifier");
733
517
  let body;
734
518
  body = JSON.stringify(se_GetClassifierRequest(input, context));
735
519
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
736
520
  };
737
521
  exports.se_GetClassifierCommand = se_GetClassifierCommand;
738
522
  const se_GetClassifiersCommand = async (input, context) => {
739
- const headers = {
740
- "content-type": "application/x-amz-json-1.1",
741
- "x-amz-target": "AWSGlue.GetClassifiers",
742
- };
523
+ const headers = sharedHeaders("GetClassifiers");
743
524
  let body;
744
525
  body = JSON.stringify(se_GetClassifiersRequest(input, context));
745
526
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
746
527
  };
747
528
  exports.se_GetClassifiersCommand = se_GetClassifiersCommand;
748
529
  const se_GetColumnStatisticsForPartitionCommand = async (input, context) => {
749
- const headers = {
750
- "content-type": "application/x-amz-json-1.1",
751
- "x-amz-target": "AWSGlue.GetColumnStatisticsForPartition",
752
- };
530
+ const headers = sharedHeaders("GetColumnStatisticsForPartition");
753
531
  let body;
754
532
  body = JSON.stringify(se_GetColumnStatisticsForPartitionRequest(input, context));
755
533
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
756
534
  };
757
535
  exports.se_GetColumnStatisticsForPartitionCommand = se_GetColumnStatisticsForPartitionCommand;
758
536
  const se_GetColumnStatisticsForTableCommand = async (input, context) => {
759
- const headers = {
760
- "content-type": "application/x-amz-json-1.1",
761
- "x-amz-target": "AWSGlue.GetColumnStatisticsForTable",
762
- };
537
+ const headers = sharedHeaders("GetColumnStatisticsForTable");
763
538
  let body;
764
539
  body = JSON.stringify(se_GetColumnStatisticsForTableRequest(input, context));
765
540
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
766
541
  };
767
542
  exports.se_GetColumnStatisticsForTableCommand = se_GetColumnStatisticsForTableCommand;
768
543
  const se_GetConnectionCommand = async (input, context) => {
769
- const headers = {
770
- "content-type": "application/x-amz-json-1.1",
771
- "x-amz-target": "AWSGlue.GetConnection",
772
- };
544
+ const headers = sharedHeaders("GetConnection");
773
545
  let body;
774
546
  body = JSON.stringify(se_GetConnectionRequest(input, context));
775
547
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
776
548
  };
777
549
  exports.se_GetConnectionCommand = se_GetConnectionCommand;
778
550
  const se_GetConnectionsCommand = async (input, context) => {
779
- const headers = {
780
- "content-type": "application/x-amz-json-1.1",
781
- "x-amz-target": "AWSGlue.GetConnections",
782
- };
551
+ const headers = sharedHeaders("GetConnections");
783
552
  let body;
784
553
  body = JSON.stringify(se_GetConnectionsRequest(input, context));
785
554
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
786
555
  };
787
556
  exports.se_GetConnectionsCommand = se_GetConnectionsCommand;
788
557
  const se_GetCrawlerCommand = async (input, context) => {
789
- const headers = {
790
- "content-type": "application/x-amz-json-1.1",
791
- "x-amz-target": "AWSGlue.GetCrawler",
792
- };
558
+ const headers = sharedHeaders("GetCrawler");
793
559
  let body;
794
560
  body = JSON.stringify(se_GetCrawlerRequest(input, context));
795
561
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
796
562
  };
797
563
  exports.se_GetCrawlerCommand = se_GetCrawlerCommand;
798
564
  const se_GetCrawlerMetricsCommand = async (input, context) => {
799
- const headers = {
800
- "content-type": "application/x-amz-json-1.1",
801
- "x-amz-target": "AWSGlue.GetCrawlerMetrics",
802
- };
565
+ const headers = sharedHeaders("GetCrawlerMetrics");
803
566
  let body;
804
567
  body = JSON.stringify(se_GetCrawlerMetricsRequest(input, context));
805
568
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
806
569
  };
807
570
  exports.se_GetCrawlerMetricsCommand = se_GetCrawlerMetricsCommand;
808
571
  const se_GetCrawlersCommand = async (input, context) => {
809
- const headers = {
810
- "content-type": "application/x-amz-json-1.1",
811
- "x-amz-target": "AWSGlue.GetCrawlers",
812
- };
572
+ const headers = sharedHeaders("GetCrawlers");
813
573
  let body;
814
574
  body = JSON.stringify(se_GetCrawlersRequest(input, context));
815
575
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
816
576
  };
817
577
  exports.se_GetCrawlersCommand = se_GetCrawlersCommand;
818
578
  const se_GetCustomEntityTypeCommand = async (input, context) => {
819
- const headers = {
820
- "content-type": "application/x-amz-json-1.1",
821
- "x-amz-target": "AWSGlue.GetCustomEntityType",
822
- };
579
+ const headers = sharedHeaders("GetCustomEntityType");
823
580
  let body;
824
581
  body = JSON.stringify(se_GetCustomEntityTypeRequest(input, context));
825
582
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
826
583
  };
827
584
  exports.se_GetCustomEntityTypeCommand = se_GetCustomEntityTypeCommand;
828
585
  const se_GetDatabaseCommand = async (input, context) => {
829
- const headers = {
830
- "content-type": "application/x-amz-json-1.1",
831
- "x-amz-target": "AWSGlue.GetDatabase",
832
- };
586
+ const headers = sharedHeaders("GetDatabase");
833
587
  let body;
834
588
  body = JSON.stringify(se_GetDatabaseRequest(input, context));
835
589
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
836
590
  };
837
591
  exports.se_GetDatabaseCommand = se_GetDatabaseCommand;
838
592
  const se_GetDatabasesCommand = async (input, context) => {
839
- const headers = {
840
- "content-type": "application/x-amz-json-1.1",
841
- "x-amz-target": "AWSGlue.GetDatabases",
842
- };
593
+ const headers = sharedHeaders("GetDatabases");
843
594
  let body;
844
595
  body = JSON.stringify(se_GetDatabasesRequest(input, context));
845
596
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
846
597
  };
847
598
  exports.se_GetDatabasesCommand = se_GetDatabasesCommand;
848
599
  const se_GetDataCatalogEncryptionSettingsCommand = async (input, context) => {
849
- const headers = {
850
- "content-type": "application/x-amz-json-1.1",
851
- "x-amz-target": "AWSGlue.GetDataCatalogEncryptionSettings",
852
- };
600
+ const headers = sharedHeaders("GetDataCatalogEncryptionSettings");
853
601
  let body;
854
602
  body = JSON.stringify(se_GetDataCatalogEncryptionSettingsRequest(input, context));
855
603
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
856
604
  };
857
605
  exports.se_GetDataCatalogEncryptionSettingsCommand = se_GetDataCatalogEncryptionSettingsCommand;
858
606
  const se_GetDataflowGraphCommand = async (input, context) => {
859
- const headers = {
860
- "content-type": "application/x-amz-json-1.1",
861
- "x-amz-target": "AWSGlue.GetDataflowGraph",
862
- };
607
+ const headers = sharedHeaders("GetDataflowGraph");
863
608
  let body;
864
609
  body = JSON.stringify(se_GetDataflowGraphRequest(input, context));
865
610
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
866
611
  };
867
612
  exports.se_GetDataflowGraphCommand = se_GetDataflowGraphCommand;
868
613
  const se_GetDataQualityResultCommand = async (input, context) => {
869
- const headers = {
870
- "content-type": "application/x-amz-json-1.1",
871
- "x-amz-target": "AWSGlue.GetDataQualityResult",
872
- };
614
+ const headers = sharedHeaders("GetDataQualityResult");
873
615
  let body;
874
616
  body = JSON.stringify(se_GetDataQualityResultRequest(input, context));
875
617
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
876
618
  };
877
619
  exports.se_GetDataQualityResultCommand = se_GetDataQualityResultCommand;
878
620
  const se_GetDataQualityRuleRecommendationRunCommand = async (input, context) => {
879
- const headers = {
880
- "content-type": "application/x-amz-json-1.1",
881
- "x-amz-target": "AWSGlue.GetDataQualityRuleRecommendationRun",
882
- };
621
+ const headers = sharedHeaders("GetDataQualityRuleRecommendationRun");
883
622
  let body;
884
623
  body = JSON.stringify(se_GetDataQualityRuleRecommendationRunRequest(input, context));
885
624
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
886
625
  };
887
626
  exports.se_GetDataQualityRuleRecommendationRunCommand = se_GetDataQualityRuleRecommendationRunCommand;
888
627
  const se_GetDataQualityRulesetCommand = async (input, context) => {
889
- const headers = {
890
- "content-type": "application/x-amz-json-1.1",
891
- "x-amz-target": "AWSGlue.GetDataQualityRuleset",
892
- };
628
+ const headers = sharedHeaders("GetDataQualityRuleset");
893
629
  let body;
894
630
  body = JSON.stringify(se_GetDataQualityRulesetRequest(input, context));
895
631
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
896
632
  };
897
633
  exports.se_GetDataQualityRulesetCommand = se_GetDataQualityRulesetCommand;
898
634
  const se_GetDataQualityRulesetEvaluationRunCommand = async (input, context) => {
899
- const headers = {
900
- "content-type": "application/x-amz-json-1.1",
901
- "x-amz-target": "AWSGlue.GetDataQualityRulesetEvaluationRun",
902
- };
635
+ const headers = sharedHeaders("GetDataQualityRulesetEvaluationRun");
903
636
  let body;
904
637
  body = JSON.stringify(se_GetDataQualityRulesetEvaluationRunRequest(input, context));
905
638
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
906
639
  };
907
640
  exports.se_GetDataQualityRulesetEvaluationRunCommand = se_GetDataQualityRulesetEvaluationRunCommand;
908
641
  const se_GetDevEndpointCommand = async (input, context) => {
909
- const headers = {
910
- "content-type": "application/x-amz-json-1.1",
911
- "x-amz-target": "AWSGlue.GetDevEndpoint",
912
- };
642
+ const headers = sharedHeaders("GetDevEndpoint");
913
643
  let body;
914
644
  body = JSON.stringify(se_GetDevEndpointRequest(input, context));
915
645
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
916
646
  };
917
647
  exports.se_GetDevEndpointCommand = se_GetDevEndpointCommand;
918
648
  const se_GetDevEndpointsCommand = async (input, context) => {
919
- const headers = {
920
- "content-type": "application/x-amz-json-1.1",
921
- "x-amz-target": "AWSGlue.GetDevEndpoints",
922
- };
649
+ const headers = sharedHeaders("GetDevEndpoints");
923
650
  let body;
924
651
  body = JSON.stringify(se_GetDevEndpointsRequest(input, context));
925
652
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
926
653
  };
927
654
  exports.se_GetDevEndpointsCommand = se_GetDevEndpointsCommand;
928
655
  const se_GetJobCommand = async (input, context) => {
929
- const headers = {
930
- "content-type": "application/x-amz-json-1.1",
931
- "x-amz-target": "AWSGlue.GetJob",
932
- };
656
+ const headers = sharedHeaders("GetJob");
933
657
  let body;
934
658
  body = JSON.stringify(se_GetJobRequest(input, context));
935
659
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
936
660
  };
937
661
  exports.se_GetJobCommand = se_GetJobCommand;
938
662
  const se_GetJobBookmarkCommand = async (input, context) => {
939
- const headers = {
940
- "content-type": "application/x-amz-json-1.1",
941
- "x-amz-target": "AWSGlue.GetJobBookmark",
942
- };
663
+ const headers = sharedHeaders("GetJobBookmark");
943
664
  let body;
944
665
  body = JSON.stringify(se_GetJobBookmarkRequest(input, context));
945
666
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
946
667
  };
947
668
  exports.se_GetJobBookmarkCommand = se_GetJobBookmarkCommand;
948
669
  const se_GetJobRunCommand = async (input, context) => {
949
- const headers = {
950
- "content-type": "application/x-amz-json-1.1",
951
- "x-amz-target": "AWSGlue.GetJobRun",
952
- };
670
+ const headers = sharedHeaders("GetJobRun");
953
671
  let body;
954
672
  body = JSON.stringify(se_GetJobRunRequest(input, context));
955
673
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
956
674
  };
957
675
  exports.se_GetJobRunCommand = se_GetJobRunCommand;
958
676
  const se_GetJobRunsCommand = async (input, context) => {
959
- const headers = {
960
- "content-type": "application/x-amz-json-1.1",
961
- "x-amz-target": "AWSGlue.GetJobRuns",
962
- };
677
+ const headers = sharedHeaders("GetJobRuns");
963
678
  let body;
964
679
  body = JSON.stringify(se_GetJobRunsRequest(input, context));
965
680
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
966
681
  };
967
682
  exports.se_GetJobRunsCommand = se_GetJobRunsCommand;
968
683
  const se_GetJobsCommand = async (input, context) => {
969
- const headers = {
970
- "content-type": "application/x-amz-json-1.1",
971
- "x-amz-target": "AWSGlue.GetJobs",
972
- };
684
+ const headers = sharedHeaders("GetJobs");
973
685
  let body;
974
686
  body = JSON.stringify(se_GetJobsRequest(input, context));
975
687
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
976
688
  };
977
689
  exports.se_GetJobsCommand = se_GetJobsCommand;
978
690
  const se_GetMappingCommand = async (input, context) => {
979
- const headers = {
980
- "content-type": "application/x-amz-json-1.1",
981
- "x-amz-target": "AWSGlue.GetMapping",
982
- };
691
+ const headers = sharedHeaders("GetMapping");
983
692
  let body;
984
693
  body = JSON.stringify(se_GetMappingRequest(input, context));
985
694
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
986
695
  };
987
696
  exports.se_GetMappingCommand = se_GetMappingCommand;
988
697
  const se_GetMLTaskRunCommand = async (input, context) => {
989
- const headers = {
990
- "content-type": "application/x-amz-json-1.1",
991
- "x-amz-target": "AWSGlue.GetMLTaskRun",
992
- };
698
+ const headers = sharedHeaders("GetMLTaskRun");
993
699
  let body;
994
700
  body = JSON.stringify(se_GetMLTaskRunRequest(input, context));
995
701
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
996
702
  };
997
703
  exports.se_GetMLTaskRunCommand = se_GetMLTaskRunCommand;
998
704
  const se_GetMLTaskRunsCommand = async (input, context) => {
999
- const headers = {
1000
- "content-type": "application/x-amz-json-1.1",
1001
- "x-amz-target": "AWSGlue.GetMLTaskRuns",
1002
- };
705
+ const headers = sharedHeaders("GetMLTaskRuns");
1003
706
  let body;
1004
707
  body = JSON.stringify(se_GetMLTaskRunsRequest(input, context));
1005
708
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1006
709
  };
1007
710
  exports.se_GetMLTaskRunsCommand = se_GetMLTaskRunsCommand;
1008
711
  const se_GetMLTransformCommand = async (input, context) => {
1009
- const headers = {
1010
- "content-type": "application/x-amz-json-1.1",
1011
- "x-amz-target": "AWSGlue.GetMLTransform",
1012
- };
712
+ const headers = sharedHeaders("GetMLTransform");
1013
713
  let body;
1014
714
  body = JSON.stringify(se_GetMLTransformRequest(input, context));
1015
715
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1016
716
  };
1017
717
  exports.se_GetMLTransformCommand = se_GetMLTransformCommand;
1018
718
  const se_GetMLTransformsCommand = async (input, context) => {
1019
- const headers = {
1020
- "content-type": "application/x-amz-json-1.1",
1021
- "x-amz-target": "AWSGlue.GetMLTransforms",
1022
- };
719
+ const headers = sharedHeaders("GetMLTransforms");
1023
720
  let body;
1024
721
  body = JSON.stringify(se_GetMLTransformsRequest(input, context));
1025
722
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1026
723
  };
1027
724
  exports.se_GetMLTransformsCommand = se_GetMLTransformsCommand;
1028
725
  const se_GetPartitionCommand = async (input, context) => {
1029
- const headers = {
1030
- "content-type": "application/x-amz-json-1.1",
1031
- "x-amz-target": "AWSGlue.GetPartition",
1032
- };
726
+ const headers = sharedHeaders("GetPartition");
1033
727
  let body;
1034
728
  body = JSON.stringify(se_GetPartitionRequest(input, context));
1035
729
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1036
730
  };
1037
731
  exports.se_GetPartitionCommand = se_GetPartitionCommand;
1038
732
  const se_GetPartitionIndexesCommand = async (input, context) => {
1039
- const headers = {
1040
- "content-type": "application/x-amz-json-1.1",
1041
- "x-amz-target": "AWSGlue.GetPartitionIndexes",
1042
- };
733
+ const headers = sharedHeaders("GetPartitionIndexes");
1043
734
  let body;
1044
735
  body = JSON.stringify(se_GetPartitionIndexesRequest(input, context));
1045
736
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1046
737
  };
1047
738
  exports.se_GetPartitionIndexesCommand = se_GetPartitionIndexesCommand;
1048
739
  const se_GetPartitionsCommand = async (input, context) => {
1049
- const headers = {
1050
- "content-type": "application/x-amz-json-1.1",
1051
- "x-amz-target": "AWSGlue.GetPartitions",
1052
- };
740
+ const headers = sharedHeaders("GetPartitions");
1053
741
  let body;
1054
742
  body = JSON.stringify(se_GetPartitionsRequest(input, context));
1055
743
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1056
744
  };
1057
745
  exports.se_GetPartitionsCommand = se_GetPartitionsCommand;
1058
746
  const se_GetPlanCommand = async (input, context) => {
1059
- const headers = {
1060
- "content-type": "application/x-amz-json-1.1",
1061
- "x-amz-target": "AWSGlue.GetPlan",
1062
- };
747
+ const headers = sharedHeaders("GetPlan");
1063
748
  let body;
1064
749
  body = JSON.stringify(se_GetPlanRequest(input, context));
1065
750
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1066
751
  };
1067
752
  exports.se_GetPlanCommand = se_GetPlanCommand;
1068
753
  const se_GetRegistryCommand = async (input, context) => {
1069
- const headers = {
1070
- "content-type": "application/x-amz-json-1.1",
1071
- "x-amz-target": "AWSGlue.GetRegistry",
1072
- };
754
+ const headers = sharedHeaders("GetRegistry");
1073
755
  let body;
1074
756
  body = JSON.stringify(se_GetRegistryInput(input, context));
1075
757
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1076
758
  };
1077
759
  exports.se_GetRegistryCommand = se_GetRegistryCommand;
1078
760
  const se_GetResourcePoliciesCommand = async (input, context) => {
1079
- const headers = {
1080
- "content-type": "application/x-amz-json-1.1",
1081
- "x-amz-target": "AWSGlue.GetResourcePolicies",
1082
- };
761
+ const headers = sharedHeaders("GetResourcePolicies");
1083
762
  let body;
1084
763
  body = JSON.stringify(se_GetResourcePoliciesRequest(input, context));
1085
764
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1086
765
  };
1087
766
  exports.se_GetResourcePoliciesCommand = se_GetResourcePoliciesCommand;
1088
767
  const se_GetResourcePolicyCommand = async (input, context) => {
1089
- const headers = {
1090
- "content-type": "application/x-amz-json-1.1",
1091
- "x-amz-target": "AWSGlue.GetResourcePolicy",
1092
- };
768
+ const headers = sharedHeaders("GetResourcePolicy");
1093
769
  let body;
1094
770
  body = JSON.stringify(se_GetResourcePolicyRequest(input, context));
1095
771
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1096
772
  };
1097
773
  exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
1098
774
  const se_GetSchemaCommand = async (input, context) => {
1099
- const headers = {
1100
- "content-type": "application/x-amz-json-1.1",
1101
- "x-amz-target": "AWSGlue.GetSchema",
1102
- };
775
+ const headers = sharedHeaders("GetSchema");
1103
776
  let body;
1104
777
  body = JSON.stringify(se_GetSchemaInput(input, context));
1105
778
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1106
779
  };
1107
780
  exports.se_GetSchemaCommand = se_GetSchemaCommand;
1108
781
  const se_GetSchemaByDefinitionCommand = async (input, context) => {
1109
- const headers = {
1110
- "content-type": "application/x-amz-json-1.1",
1111
- "x-amz-target": "AWSGlue.GetSchemaByDefinition",
1112
- };
782
+ const headers = sharedHeaders("GetSchemaByDefinition");
1113
783
  let body;
1114
784
  body = JSON.stringify(se_GetSchemaByDefinitionInput(input, context));
1115
785
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1116
786
  };
1117
787
  exports.se_GetSchemaByDefinitionCommand = se_GetSchemaByDefinitionCommand;
1118
788
  const se_GetSchemaVersionCommand = async (input, context) => {
1119
- const headers = {
1120
- "content-type": "application/x-amz-json-1.1",
1121
- "x-amz-target": "AWSGlue.GetSchemaVersion",
1122
- };
789
+ const headers = sharedHeaders("GetSchemaVersion");
1123
790
  let body;
1124
791
  body = JSON.stringify(se_GetSchemaVersionInput(input, context));
1125
792
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1126
793
  };
1127
794
  exports.se_GetSchemaVersionCommand = se_GetSchemaVersionCommand;
1128
795
  const se_GetSchemaVersionsDiffCommand = async (input, context) => {
1129
- const headers = {
1130
- "content-type": "application/x-amz-json-1.1",
1131
- "x-amz-target": "AWSGlue.GetSchemaVersionsDiff",
1132
- };
796
+ const headers = sharedHeaders("GetSchemaVersionsDiff");
1133
797
  let body;
1134
798
  body = JSON.stringify(se_GetSchemaVersionsDiffInput(input, context));
1135
799
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1136
800
  };
1137
801
  exports.se_GetSchemaVersionsDiffCommand = se_GetSchemaVersionsDiffCommand;
1138
802
  const se_GetSecurityConfigurationCommand = async (input, context) => {
1139
- const headers = {
1140
- "content-type": "application/x-amz-json-1.1",
1141
- "x-amz-target": "AWSGlue.GetSecurityConfiguration",
1142
- };
803
+ const headers = sharedHeaders("GetSecurityConfiguration");
1143
804
  let body;
1144
805
  body = JSON.stringify(se_GetSecurityConfigurationRequest(input, context));
1145
806
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1146
807
  };
1147
808
  exports.se_GetSecurityConfigurationCommand = se_GetSecurityConfigurationCommand;
1148
809
  const se_GetSecurityConfigurationsCommand = async (input, context) => {
1149
- const headers = {
1150
- "content-type": "application/x-amz-json-1.1",
1151
- "x-amz-target": "AWSGlue.GetSecurityConfigurations",
1152
- };
810
+ const headers = sharedHeaders("GetSecurityConfigurations");
1153
811
  let body;
1154
812
  body = JSON.stringify(se_GetSecurityConfigurationsRequest(input, context));
1155
813
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1156
814
  };
1157
815
  exports.se_GetSecurityConfigurationsCommand = se_GetSecurityConfigurationsCommand;
1158
816
  const se_GetSessionCommand = async (input, context) => {
1159
- const headers = {
1160
- "content-type": "application/x-amz-json-1.1",
1161
- "x-amz-target": "AWSGlue.GetSession",
1162
- };
817
+ const headers = sharedHeaders("GetSession");
1163
818
  let body;
1164
819
  body = JSON.stringify(se_GetSessionRequest(input, context));
1165
820
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1166
821
  };
1167
822
  exports.se_GetSessionCommand = se_GetSessionCommand;
1168
823
  const se_GetStatementCommand = async (input, context) => {
1169
- const headers = {
1170
- "content-type": "application/x-amz-json-1.1",
1171
- "x-amz-target": "AWSGlue.GetStatement",
1172
- };
824
+ const headers = sharedHeaders("GetStatement");
1173
825
  let body;
1174
826
  body = JSON.stringify(se_GetStatementRequest(input, context));
1175
827
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1176
828
  };
1177
829
  exports.se_GetStatementCommand = se_GetStatementCommand;
1178
830
  const se_GetTableCommand = async (input, context) => {
1179
- const headers = {
1180
- "content-type": "application/x-amz-json-1.1",
1181
- "x-amz-target": "AWSGlue.GetTable",
1182
- };
831
+ const headers = sharedHeaders("GetTable");
1183
832
  let body;
1184
833
  body = JSON.stringify(se_GetTableRequest(input, context));
1185
834
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1186
835
  };
1187
836
  exports.se_GetTableCommand = se_GetTableCommand;
1188
837
  const se_GetTablesCommand = async (input, context) => {
1189
- const headers = {
1190
- "content-type": "application/x-amz-json-1.1",
1191
- "x-amz-target": "AWSGlue.GetTables",
1192
- };
838
+ const headers = sharedHeaders("GetTables");
1193
839
  let body;
1194
840
  body = JSON.stringify(se_GetTablesRequest(input, context));
1195
841
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1196
842
  };
1197
843
  exports.se_GetTablesCommand = se_GetTablesCommand;
1198
844
  const se_GetTableVersionCommand = async (input, context) => {
1199
- const headers = {
1200
- "content-type": "application/x-amz-json-1.1",
1201
- "x-amz-target": "AWSGlue.GetTableVersion",
1202
- };
845
+ const headers = sharedHeaders("GetTableVersion");
1203
846
  let body;
1204
847
  body = JSON.stringify(se_GetTableVersionRequest(input, context));
1205
848
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1206
849
  };
1207
850
  exports.se_GetTableVersionCommand = se_GetTableVersionCommand;
1208
851
  const se_GetTableVersionsCommand = async (input, context) => {
1209
- const headers = {
1210
- "content-type": "application/x-amz-json-1.1",
1211
- "x-amz-target": "AWSGlue.GetTableVersions",
1212
- };
852
+ const headers = sharedHeaders("GetTableVersions");
1213
853
  let body;
1214
854
  body = JSON.stringify(se_GetTableVersionsRequest(input, context));
1215
855
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1216
856
  };
1217
857
  exports.se_GetTableVersionsCommand = se_GetTableVersionsCommand;
1218
858
  const se_GetTagsCommand = async (input, context) => {
1219
- const headers = {
1220
- "content-type": "application/x-amz-json-1.1",
1221
- "x-amz-target": "AWSGlue.GetTags",
1222
- };
859
+ const headers = sharedHeaders("GetTags");
1223
860
  let body;
1224
861
  body = JSON.stringify(se_GetTagsRequest(input, context));
1225
862
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1226
863
  };
1227
864
  exports.se_GetTagsCommand = se_GetTagsCommand;
1228
865
  const se_GetTriggerCommand = async (input, context) => {
1229
- const headers = {
1230
- "content-type": "application/x-amz-json-1.1",
1231
- "x-amz-target": "AWSGlue.GetTrigger",
1232
- };
866
+ const headers = sharedHeaders("GetTrigger");
1233
867
  let body;
1234
868
  body = JSON.stringify(se_GetTriggerRequest(input, context));
1235
869
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1236
870
  };
1237
871
  exports.se_GetTriggerCommand = se_GetTriggerCommand;
1238
872
  const se_GetTriggersCommand = async (input, context) => {
1239
- const headers = {
1240
- "content-type": "application/x-amz-json-1.1",
1241
- "x-amz-target": "AWSGlue.GetTriggers",
1242
- };
873
+ const headers = sharedHeaders("GetTriggers");
1243
874
  let body;
1244
875
  body = JSON.stringify(se_GetTriggersRequest(input, context));
1245
876
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1246
877
  };
1247
878
  exports.se_GetTriggersCommand = se_GetTriggersCommand;
1248
879
  const se_GetUnfilteredPartitionMetadataCommand = async (input, context) => {
1249
- const headers = {
1250
- "content-type": "application/x-amz-json-1.1",
1251
- "x-amz-target": "AWSGlue.GetUnfilteredPartitionMetadata",
1252
- };
880
+ const headers = sharedHeaders("GetUnfilteredPartitionMetadata");
1253
881
  let body;
1254
882
  body = JSON.stringify(se_GetUnfilteredPartitionMetadataRequest(input, context));
1255
883
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1256
884
  };
1257
885
  exports.se_GetUnfilteredPartitionMetadataCommand = se_GetUnfilteredPartitionMetadataCommand;
1258
886
  const se_GetUnfilteredPartitionsMetadataCommand = async (input, context) => {
1259
- const headers = {
1260
- "content-type": "application/x-amz-json-1.1",
1261
- "x-amz-target": "AWSGlue.GetUnfilteredPartitionsMetadata",
1262
- };
887
+ const headers = sharedHeaders("GetUnfilteredPartitionsMetadata");
1263
888
  let body;
1264
889
  body = JSON.stringify(se_GetUnfilteredPartitionsMetadataRequest(input, context));
1265
890
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1266
891
  };
1267
892
  exports.se_GetUnfilteredPartitionsMetadataCommand = se_GetUnfilteredPartitionsMetadataCommand;
1268
893
  const se_GetUnfilteredTableMetadataCommand = async (input, context) => {
1269
- const headers = {
1270
- "content-type": "application/x-amz-json-1.1",
1271
- "x-amz-target": "AWSGlue.GetUnfilteredTableMetadata",
1272
- };
894
+ const headers = sharedHeaders("GetUnfilteredTableMetadata");
1273
895
  let body;
1274
896
  body = JSON.stringify(se_GetUnfilteredTableMetadataRequest(input, context));
1275
897
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1276
898
  };
1277
899
  exports.se_GetUnfilteredTableMetadataCommand = se_GetUnfilteredTableMetadataCommand;
1278
900
  const se_GetUserDefinedFunctionCommand = async (input, context) => {
1279
- const headers = {
1280
- "content-type": "application/x-amz-json-1.1",
1281
- "x-amz-target": "AWSGlue.GetUserDefinedFunction",
1282
- };
901
+ const headers = sharedHeaders("GetUserDefinedFunction");
1283
902
  let body;
1284
903
  body = JSON.stringify(se_GetUserDefinedFunctionRequest(input, context));
1285
904
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1286
905
  };
1287
906
  exports.se_GetUserDefinedFunctionCommand = se_GetUserDefinedFunctionCommand;
1288
907
  const se_GetUserDefinedFunctionsCommand = async (input, context) => {
1289
- const headers = {
1290
- "content-type": "application/x-amz-json-1.1",
1291
- "x-amz-target": "AWSGlue.GetUserDefinedFunctions",
1292
- };
908
+ const headers = sharedHeaders("GetUserDefinedFunctions");
1293
909
  let body;
1294
910
  body = JSON.stringify(se_GetUserDefinedFunctionsRequest(input, context));
1295
911
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1296
912
  };
1297
913
  exports.se_GetUserDefinedFunctionsCommand = se_GetUserDefinedFunctionsCommand;
1298
914
  const se_GetWorkflowCommand = async (input, context) => {
1299
- const headers = {
1300
- "content-type": "application/x-amz-json-1.1",
1301
- "x-amz-target": "AWSGlue.GetWorkflow",
1302
- };
915
+ const headers = sharedHeaders("GetWorkflow");
1303
916
  let body;
1304
917
  body = JSON.stringify(se_GetWorkflowRequest(input, context));
1305
918
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1306
919
  };
1307
920
  exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
1308
921
  const se_GetWorkflowRunCommand = async (input, context) => {
1309
- const headers = {
1310
- "content-type": "application/x-amz-json-1.1",
1311
- "x-amz-target": "AWSGlue.GetWorkflowRun",
1312
- };
922
+ const headers = sharedHeaders("GetWorkflowRun");
1313
923
  let body;
1314
924
  body = JSON.stringify(se_GetWorkflowRunRequest(input, context));
1315
925
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1316
926
  };
1317
927
  exports.se_GetWorkflowRunCommand = se_GetWorkflowRunCommand;
1318
928
  const se_GetWorkflowRunPropertiesCommand = async (input, context) => {
1319
- const headers = {
1320
- "content-type": "application/x-amz-json-1.1",
1321
- "x-amz-target": "AWSGlue.GetWorkflowRunProperties",
1322
- };
929
+ const headers = sharedHeaders("GetWorkflowRunProperties");
1323
930
  let body;
1324
931
  body = JSON.stringify(se_GetWorkflowRunPropertiesRequest(input, context));
1325
932
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1326
933
  };
1327
934
  exports.se_GetWorkflowRunPropertiesCommand = se_GetWorkflowRunPropertiesCommand;
1328
935
  const se_GetWorkflowRunsCommand = async (input, context) => {
1329
- const headers = {
1330
- "content-type": "application/x-amz-json-1.1",
1331
- "x-amz-target": "AWSGlue.GetWorkflowRuns",
1332
- };
936
+ const headers = sharedHeaders("GetWorkflowRuns");
1333
937
  let body;
1334
938
  body = JSON.stringify(se_GetWorkflowRunsRequest(input, context));
1335
939
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1336
940
  };
1337
941
  exports.se_GetWorkflowRunsCommand = se_GetWorkflowRunsCommand;
1338
942
  const se_ImportCatalogToGlueCommand = async (input, context) => {
1339
- const headers = {
1340
- "content-type": "application/x-amz-json-1.1",
1341
- "x-amz-target": "AWSGlue.ImportCatalogToGlue",
1342
- };
943
+ const headers = sharedHeaders("ImportCatalogToGlue");
1343
944
  let body;
1344
945
  body = JSON.stringify(se_ImportCatalogToGlueRequest(input, context));
1345
946
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1346
947
  };
1347
948
  exports.se_ImportCatalogToGlueCommand = se_ImportCatalogToGlueCommand;
1348
949
  const se_ListBlueprintsCommand = async (input, context) => {
1349
- const headers = {
1350
- "content-type": "application/x-amz-json-1.1",
1351
- "x-amz-target": "AWSGlue.ListBlueprints",
1352
- };
950
+ const headers = sharedHeaders("ListBlueprints");
1353
951
  let body;
1354
952
  body = JSON.stringify(se_ListBlueprintsRequest(input, context));
1355
953
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1356
954
  };
1357
955
  exports.se_ListBlueprintsCommand = se_ListBlueprintsCommand;
1358
956
  const se_ListCrawlersCommand = async (input, context) => {
1359
- const headers = {
1360
- "content-type": "application/x-amz-json-1.1",
1361
- "x-amz-target": "AWSGlue.ListCrawlers",
1362
- };
957
+ const headers = sharedHeaders("ListCrawlers");
1363
958
  let body;
1364
959
  body = JSON.stringify(se_ListCrawlersRequest(input, context));
1365
960
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1366
961
  };
1367
962
  exports.se_ListCrawlersCommand = se_ListCrawlersCommand;
1368
963
  const se_ListCrawlsCommand = async (input, context) => {
1369
- const headers = {
1370
- "content-type": "application/x-amz-json-1.1",
1371
- "x-amz-target": "AWSGlue.ListCrawls",
1372
- };
964
+ const headers = sharedHeaders("ListCrawls");
1373
965
  let body;
1374
966
  body = JSON.stringify(se_ListCrawlsRequest(input, context));
1375
967
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1376
968
  };
1377
969
  exports.se_ListCrawlsCommand = se_ListCrawlsCommand;
1378
970
  const se_ListCustomEntityTypesCommand = async (input, context) => {
1379
- const headers = {
1380
- "content-type": "application/x-amz-json-1.1",
1381
- "x-amz-target": "AWSGlue.ListCustomEntityTypes",
1382
- };
971
+ const headers = sharedHeaders("ListCustomEntityTypes");
1383
972
  let body;
1384
973
  body = JSON.stringify(se_ListCustomEntityTypesRequest(input, context));
1385
974
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1386
975
  };
1387
976
  exports.se_ListCustomEntityTypesCommand = se_ListCustomEntityTypesCommand;
1388
977
  const se_ListDataQualityResultsCommand = async (input, context) => {
1389
- const headers = {
1390
- "content-type": "application/x-amz-json-1.1",
1391
- "x-amz-target": "AWSGlue.ListDataQualityResults",
1392
- };
978
+ const headers = sharedHeaders("ListDataQualityResults");
1393
979
  let body;
1394
980
  body = JSON.stringify(se_ListDataQualityResultsRequest(input, context));
1395
981
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1396
982
  };
1397
983
  exports.se_ListDataQualityResultsCommand = se_ListDataQualityResultsCommand;
1398
984
  const se_ListDataQualityRuleRecommendationRunsCommand = async (input, context) => {
1399
- const headers = {
1400
- "content-type": "application/x-amz-json-1.1",
1401
- "x-amz-target": "AWSGlue.ListDataQualityRuleRecommendationRuns",
1402
- };
985
+ const headers = sharedHeaders("ListDataQualityRuleRecommendationRuns");
1403
986
  let body;
1404
987
  body = JSON.stringify(se_ListDataQualityRuleRecommendationRunsRequest(input, context));
1405
988
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1406
989
  };
1407
990
  exports.se_ListDataQualityRuleRecommendationRunsCommand = se_ListDataQualityRuleRecommendationRunsCommand;
1408
991
  const se_ListDataQualityRulesetEvaluationRunsCommand = async (input, context) => {
1409
- const headers = {
1410
- "content-type": "application/x-amz-json-1.1",
1411
- "x-amz-target": "AWSGlue.ListDataQualityRulesetEvaluationRuns",
1412
- };
992
+ const headers = sharedHeaders("ListDataQualityRulesetEvaluationRuns");
1413
993
  let body;
1414
994
  body = JSON.stringify(se_ListDataQualityRulesetEvaluationRunsRequest(input, context));
1415
995
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1416
996
  };
1417
997
  exports.se_ListDataQualityRulesetEvaluationRunsCommand = se_ListDataQualityRulesetEvaluationRunsCommand;
1418
998
  const se_ListDataQualityRulesetsCommand = async (input, context) => {
1419
- const headers = {
1420
- "content-type": "application/x-amz-json-1.1",
1421
- "x-amz-target": "AWSGlue.ListDataQualityRulesets",
1422
- };
999
+ const headers = sharedHeaders("ListDataQualityRulesets");
1423
1000
  let body;
1424
1001
  body = JSON.stringify(se_ListDataQualityRulesetsRequest(input, context));
1425
1002
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1426
1003
  };
1427
1004
  exports.se_ListDataQualityRulesetsCommand = se_ListDataQualityRulesetsCommand;
1428
1005
  const se_ListDevEndpointsCommand = async (input, context) => {
1429
- const headers = {
1430
- "content-type": "application/x-amz-json-1.1",
1431
- "x-amz-target": "AWSGlue.ListDevEndpoints",
1432
- };
1006
+ const headers = sharedHeaders("ListDevEndpoints");
1433
1007
  let body;
1434
1008
  body = JSON.stringify(se_ListDevEndpointsRequest(input, context));
1435
1009
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1436
1010
  };
1437
1011
  exports.se_ListDevEndpointsCommand = se_ListDevEndpointsCommand;
1438
1012
  const se_ListJobsCommand = async (input, context) => {
1439
- const headers = {
1440
- "content-type": "application/x-amz-json-1.1",
1441
- "x-amz-target": "AWSGlue.ListJobs",
1442
- };
1013
+ const headers = sharedHeaders("ListJobs");
1443
1014
  let body;
1444
1015
  body = JSON.stringify(se_ListJobsRequest(input, context));
1445
1016
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1446
1017
  };
1447
1018
  exports.se_ListJobsCommand = se_ListJobsCommand;
1448
1019
  const se_ListMLTransformsCommand = async (input, context) => {
1449
- const headers = {
1450
- "content-type": "application/x-amz-json-1.1",
1451
- "x-amz-target": "AWSGlue.ListMLTransforms",
1452
- };
1020
+ const headers = sharedHeaders("ListMLTransforms");
1453
1021
  let body;
1454
1022
  body = JSON.stringify(se_ListMLTransformsRequest(input, context));
1455
1023
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1456
1024
  };
1457
1025
  exports.se_ListMLTransformsCommand = se_ListMLTransformsCommand;
1458
1026
  const se_ListRegistriesCommand = async (input, context) => {
1459
- const headers = {
1460
- "content-type": "application/x-amz-json-1.1",
1461
- "x-amz-target": "AWSGlue.ListRegistries",
1462
- };
1027
+ const headers = sharedHeaders("ListRegistries");
1463
1028
  let body;
1464
1029
  body = JSON.stringify(se_ListRegistriesInput(input, context));
1465
1030
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1466
1031
  };
1467
1032
  exports.se_ListRegistriesCommand = se_ListRegistriesCommand;
1468
1033
  const se_ListSchemasCommand = async (input, context) => {
1469
- const headers = {
1470
- "content-type": "application/x-amz-json-1.1",
1471
- "x-amz-target": "AWSGlue.ListSchemas",
1472
- };
1034
+ const headers = sharedHeaders("ListSchemas");
1473
1035
  let body;
1474
1036
  body = JSON.stringify(se_ListSchemasInput(input, context));
1475
1037
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1476
1038
  };
1477
1039
  exports.se_ListSchemasCommand = se_ListSchemasCommand;
1478
1040
  const se_ListSchemaVersionsCommand = async (input, context) => {
1479
- const headers = {
1480
- "content-type": "application/x-amz-json-1.1",
1481
- "x-amz-target": "AWSGlue.ListSchemaVersions",
1482
- };
1041
+ const headers = sharedHeaders("ListSchemaVersions");
1483
1042
  let body;
1484
1043
  body = JSON.stringify(se_ListSchemaVersionsInput(input, context));
1485
1044
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1486
1045
  };
1487
1046
  exports.se_ListSchemaVersionsCommand = se_ListSchemaVersionsCommand;
1488
1047
  const se_ListSessionsCommand = async (input, context) => {
1489
- const headers = {
1490
- "content-type": "application/x-amz-json-1.1",
1491
- "x-amz-target": "AWSGlue.ListSessions",
1492
- };
1048
+ const headers = sharedHeaders("ListSessions");
1493
1049
  let body;
1494
1050
  body = JSON.stringify(se_ListSessionsRequest(input, context));
1495
1051
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1496
1052
  };
1497
1053
  exports.se_ListSessionsCommand = se_ListSessionsCommand;
1498
1054
  const se_ListStatementsCommand = async (input, context) => {
1499
- const headers = {
1500
- "content-type": "application/x-amz-json-1.1",
1501
- "x-amz-target": "AWSGlue.ListStatements",
1502
- };
1055
+ const headers = sharedHeaders("ListStatements");
1503
1056
  let body;
1504
1057
  body = JSON.stringify(se_ListStatementsRequest(input, context));
1505
1058
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1506
1059
  };
1507
1060
  exports.se_ListStatementsCommand = se_ListStatementsCommand;
1508
1061
  const se_ListTriggersCommand = async (input, context) => {
1509
- const headers = {
1510
- "content-type": "application/x-amz-json-1.1",
1511
- "x-amz-target": "AWSGlue.ListTriggers",
1512
- };
1062
+ const headers = sharedHeaders("ListTriggers");
1513
1063
  let body;
1514
1064
  body = JSON.stringify(se_ListTriggersRequest(input, context));
1515
1065
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1516
1066
  };
1517
1067
  exports.se_ListTriggersCommand = se_ListTriggersCommand;
1518
1068
  const se_ListWorkflowsCommand = async (input, context) => {
1519
- const headers = {
1520
- "content-type": "application/x-amz-json-1.1",
1521
- "x-amz-target": "AWSGlue.ListWorkflows",
1522
- };
1069
+ const headers = sharedHeaders("ListWorkflows");
1523
1070
  let body;
1524
1071
  body = JSON.stringify(se_ListWorkflowsRequest(input, context));
1525
1072
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1526
1073
  };
1527
1074
  exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
1528
1075
  const se_PutDataCatalogEncryptionSettingsCommand = async (input, context) => {
1529
- const headers = {
1530
- "content-type": "application/x-amz-json-1.1",
1531
- "x-amz-target": "AWSGlue.PutDataCatalogEncryptionSettings",
1532
- };
1076
+ const headers = sharedHeaders("PutDataCatalogEncryptionSettings");
1533
1077
  let body;
1534
1078
  body = JSON.stringify(se_PutDataCatalogEncryptionSettingsRequest(input, context));
1535
1079
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1536
1080
  };
1537
1081
  exports.se_PutDataCatalogEncryptionSettingsCommand = se_PutDataCatalogEncryptionSettingsCommand;
1538
1082
  const se_PutResourcePolicyCommand = async (input, context) => {
1539
- const headers = {
1540
- "content-type": "application/x-amz-json-1.1",
1541
- "x-amz-target": "AWSGlue.PutResourcePolicy",
1542
- };
1083
+ const headers = sharedHeaders("PutResourcePolicy");
1543
1084
  let body;
1544
1085
  body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
1545
1086
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1546
1087
  };
1547
1088
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
1548
1089
  const se_PutSchemaVersionMetadataCommand = async (input, context) => {
1549
- const headers = {
1550
- "content-type": "application/x-amz-json-1.1",
1551
- "x-amz-target": "AWSGlue.PutSchemaVersionMetadata",
1552
- };
1090
+ const headers = sharedHeaders("PutSchemaVersionMetadata");
1553
1091
  let body;
1554
1092
  body = JSON.stringify(se_PutSchemaVersionMetadataInput(input, context));
1555
1093
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1556
1094
  };
1557
1095
  exports.se_PutSchemaVersionMetadataCommand = se_PutSchemaVersionMetadataCommand;
1558
1096
  const se_PutWorkflowRunPropertiesCommand = async (input, context) => {
1559
- const headers = {
1560
- "content-type": "application/x-amz-json-1.1",
1561
- "x-amz-target": "AWSGlue.PutWorkflowRunProperties",
1562
- };
1097
+ const headers = sharedHeaders("PutWorkflowRunProperties");
1563
1098
  let body;
1564
1099
  body = JSON.stringify(se_PutWorkflowRunPropertiesRequest(input, context));
1565
1100
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1566
1101
  };
1567
1102
  exports.se_PutWorkflowRunPropertiesCommand = se_PutWorkflowRunPropertiesCommand;
1568
1103
  const se_QuerySchemaVersionMetadataCommand = async (input, context) => {
1569
- const headers = {
1570
- "content-type": "application/x-amz-json-1.1",
1571
- "x-amz-target": "AWSGlue.QuerySchemaVersionMetadata",
1572
- };
1104
+ const headers = sharedHeaders("QuerySchemaVersionMetadata");
1573
1105
  let body;
1574
1106
  body = JSON.stringify(se_QuerySchemaVersionMetadataInput(input, context));
1575
1107
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1576
1108
  };
1577
1109
  exports.se_QuerySchemaVersionMetadataCommand = se_QuerySchemaVersionMetadataCommand;
1578
1110
  const se_RegisterSchemaVersionCommand = async (input, context) => {
1579
- const headers = {
1580
- "content-type": "application/x-amz-json-1.1",
1581
- "x-amz-target": "AWSGlue.RegisterSchemaVersion",
1582
- };
1111
+ const headers = sharedHeaders("RegisterSchemaVersion");
1583
1112
  let body;
1584
1113
  body = JSON.stringify(se_RegisterSchemaVersionInput(input, context));
1585
1114
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1586
1115
  };
1587
1116
  exports.se_RegisterSchemaVersionCommand = se_RegisterSchemaVersionCommand;
1588
1117
  const se_RemoveSchemaVersionMetadataCommand = async (input, context) => {
1589
- const headers = {
1590
- "content-type": "application/x-amz-json-1.1",
1591
- "x-amz-target": "AWSGlue.RemoveSchemaVersionMetadata",
1592
- };
1118
+ const headers = sharedHeaders("RemoveSchemaVersionMetadata");
1593
1119
  let body;
1594
1120
  body = JSON.stringify(se_RemoveSchemaVersionMetadataInput(input, context));
1595
1121
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1596
1122
  };
1597
1123
  exports.se_RemoveSchemaVersionMetadataCommand = se_RemoveSchemaVersionMetadataCommand;
1598
1124
  const se_ResetJobBookmarkCommand = async (input, context) => {
1599
- const headers = {
1600
- "content-type": "application/x-amz-json-1.1",
1601
- "x-amz-target": "AWSGlue.ResetJobBookmark",
1602
- };
1125
+ const headers = sharedHeaders("ResetJobBookmark");
1603
1126
  let body;
1604
1127
  body = JSON.stringify(se_ResetJobBookmarkRequest(input, context));
1605
1128
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1606
1129
  };
1607
1130
  exports.se_ResetJobBookmarkCommand = se_ResetJobBookmarkCommand;
1608
1131
  const se_ResumeWorkflowRunCommand = async (input, context) => {
1609
- const headers = {
1610
- "content-type": "application/x-amz-json-1.1",
1611
- "x-amz-target": "AWSGlue.ResumeWorkflowRun",
1612
- };
1132
+ const headers = sharedHeaders("ResumeWorkflowRun");
1613
1133
  let body;
1614
1134
  body = JSON.stringify(se_ResumeWorkflowRunRequest(input, context));
1615
1135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1616
1136
  };
1617
1137
  exports.se_ResumeWorkflowRunCommand = se_ResumeWorkflowRunCommand;
1618
1138
  const se_RunStatementCommand = async (input, context) => {
1619
- const headers = {
1620
- "content-type": "application/x-amz-json-1.1",
1621
- "x-amz-target": "AWSGlue.RunStatement",
1622
- };
1139
+ const headers = sharedHeaders("RunStatement");
1623
1140
  let body;
1624
1141
  body = JSON.stringify(se_RunStatementRequest(input, context));
1625
1142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1626
1143
  };
1627
1144
  exports.se_RunStatementCommand = se_RunStatementCommand;
1628
1145
  const se_SearchTablesCommand = async (input, context) => {
1629
- const headers = {
1630
- "content-type": "application/x-amz-json-1.1",
1631
- "x-amz-target": "AWSGlue.SearchTables",
1632
- };
1146
+ const headers = sharedHeaders("SearchTables");
1633
1147
  let body;
1634
1148
  body = JSON.stringify(se_SearchTablesRequest(input, context));
1635
1149
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1636
1150
  };
1637
1151
  exports.se_SearchTablesCommand = se_SearchTablesCommand;
1638
1152
  const se_StartBlueprintRunCommand = async (input, context) => {
1639
- const headers = {
1640
- "content-type": "application/x-amz-json-1.1",
1641
- "x-amz-target": "AWSGlue.StartBlueprintRun",
1642
- };
1153
+ const headers = sharedHeaders("StartBlueprintRun");
1643
1154
  let body;
1644
1155
  body = JSON.stringify(se_StartBlueprintRunRequest(input, context));
1645
1156
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1646
1157
  };
1647
1158
  exports.se_StartBlueprintRunCommand = se_StartBlueprintRunCommand;
1648
1159
  const se_StartCrawlerCommand = async (input, context) => {
1649
- const headers = {
1650
- "content-type": "application/x-amz-json-1.1",
1651
- "x-amz-target": "AWSGlue.StartCrawler",
1652
- };
1160
+ const headers = sharedHeaders("StartCrawler");
1653
1161
  let body;
1654
1162
  body = JSON.stringify(se_StartCrawlerRequest(input, context));
1655
1163
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1656
1164
  };
1657
1165
  exports.se_StartCrawlerCommand = se_StartCrawlerCommand;
1658
1166
  const se_StartCrawlerScheduleCommand = async (input, context) => {
1659
- const headers = {
1660
- "content-type": "application/x-amz-json-1.1",
1661
- "x-amz-target": "AWSGlue.StartCrawlerSchedule",
1662
- };
1167
+ const headers = sharedHeaders("StartCrawlerSchedule");
1663
1168
  let body;
1664
1169
  body = JSON.stringify(se_StartCrawlerScheduleRequest(input, context));
1665
1170
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1666
1171
  };
1667
1172
  exports.se_StartCrawlerScheduleCommand = se_StartCrawlerScheduleCommand;
1668
1173
  const se_StartDataQualityRuleRecommendationRunCommand = async (input, context) => {
1669
- const headers = {
1670
- "content-type": "application/x-amz-json-1.1",
1671
- "x-amz-target": "AWSGlue.StartDataQualityRuleRecommendationRun",
1672
- };
1174
+ const headers = sharedHeaders("StartDataQualityRuleRecommendationRun");
1673
1175
  let body;
1674
1176
  body = JSON.stringify(se_StartDataQualityRuleRecommendationRunRequest(input, context));
1675
1177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1676
1178
  };
1677
1179
  exports.se_StartDataQualityRuleRecommendationRunCommand = se_StartDataQualityRuleRecommendationRunCommand;
1678
1180
  const se_StartDataQualityRulesetEvaluationRunCommand = async (input, context) => {
1679
- const headers = {
1680
- "content-type": "application/x-amz-json-1.1",
1681
- "x-amz-target": "AWSGlue.StartDataQualityRulesetEvaluationRun",
1682
- };
1181
+ const headers = sharedHeaders("StartDataQualityRulesetEvaluationRun");
1683
1182
  let body;
1684
1183
  body = JSON.stringify(se_StartDataQualityRulesetEvaluationRunRequest(input, context));
1685
1184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1686
1185
  };
1687
1186
  exports.se_StartDataQualityRulesetEvaluationRunCommand = se_StartDataQualityRulesetEvaluationRunCommand;
1688
1187
  const se_StartExportLabelsTaskRunCommand = async (input, context) => {
1689
- const headers = {
1690
- "content-type": "application/x-amz-json-1.1",
1691
- "x-amz-target": "AWSGlue.StartExportLabelsTaskRun",
1692
- };
1188
+ const headers = sharedHeaders("StartExportLabelsTaskRun");
1693
1189
  let body;
1694
1190
  body = JSON.stringify(se_StartExportLabelsTaskRunRequest(input, context));
1695
1191
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1696
1192
  };
1697
1193
  exports.se_StartExportLabelsTaskRunCommand = se_StartExportLabelsTaskRunCommand;
1698
1194
  const se_StartImportLabelsTaskRunCommand = async (input, context) => {
1699
- const headers = {
1700
- "content-type": "application/x-amz-json-1.1",
1701
- "x-amz-target": "AWSGlue.StartImportLabelsTaskRun",
1702
- };
1195
+ const headers = sharedHeaders("StartImportLabelsTaskRun");
1703
1196
  let body;
1704
1197
  body = JSON.stringify(se_StartImportLabelsTaskRunRequest(input, context));
1705
1198
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1706
1199
  };
1707
1200
  exports.se_StartImportLabelsTaskRunCommand = se_StartImportLabelsTaskRunCommand;
1708
1201
  const se_StartJobRunCommand = async (input, context) => {
1709
- const headers = {
1710
- "content-type": "application/x-amz-json-1.1",
1711
- "x-amz-target": "AWSGlue.StartJobRun",
1712
- };
1202
+ const headers = sharedHeaders("StartJobRun");
1713
1203
  let body;
1714
1204
  body = JSON.stringify(se_StartJobRunRequest(input, context));
1715
1205
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1716
1206
  };
1717
1207
  exports.se_StartJobRunCommand = se_StartJobRunCommand;
1718
1208
  const se_StartMLEvaluationTaskRunCommand = async (input, context) => {
1719
- const headers = {
1720
- "content-type": "application/x-amz-json-1.1",
1721
- "x-amz-target": "AWSGlue.StartMLEvaluationTaskRun",
1722
- };
1209
+ const headers = sharedHeaders("StartMLEvaluationTaskRun");
1723
1210
  let body;
1724
1211
  body = JSON.stringify(se_StartMLEvaluationTaskRunRequest(input, context));
1725
1212
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1726
1213
  };
1727
1214
  exports.se_StartMLEvaluationTaskRunCommand = se_StartMLEvaluationTaskRunCommand;
1728
1215
  const se_StartMLLabelingSetGenerationTaskRunCommand = async (input, context) => {
1729
- const headers = {
1730
- "content-type": "application/x-amz-json-1.1",
1731
- "x-amz-target": "AWSGlue.StartMLLabelingSetGenerationTaskRun",
1732
- };
1216
+ const headers = sharedHeaders("StartMLLabelingSetGenerationTaskRun");
1733
1217
  let body;
1734
1218
  body = JSON.stringify(se_StartMLLabelingSetGenerationTaskRunRequest(input, context));
1735
1219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1736
1220
  };
1737
1221
  exports.se_StartMLLabelingSetGenerationTaskRunCommand = se_StartMLLabelingSetGenerationTaskRunCommand;
1738
1222
  const se_StartTriggerCommand = async (input, context) => {
1739
- const headers = {
1740
- "content-type": "application/x-amz-json-1.1",
1741
- "x-amz-target": "AWSGlue.StartTrigger",
1742
- };
1223
+ const headers = sharedHeaders("StartTrigger");
1743
1224
  let body;
1744
1225
  body = JSON.stringify(se_StartTriggerRequest(input, context));
1745
1226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1746
1227
  };
1747
1228
  exports.se_StartTriggerCommand = se_StartTriggerCommand;
1748
1229
  const se_StartWorkflowRunCommand = async (input, context) => {
1749
- const headers = {
1750
- "content-type": "application/x-amz-json-1.1",
1751
- "x-amz-target": "AWSGlue.StartWorkflowRun",
1752
- };
1230
+ const headers = sharedHeaders("StartWorkflowRun");
1753
1231
  let body;
1754
1232
  body = JSON.stringify(se_StartWorkflowRunRequest(input, context));
1755
1233
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1756
1234
  };
1757
1235
  exports.se_StartWorkflowRunCommand = se_StartWorkflowRunCommand;
1758
1236
  const se_StopCrawlerCommand = async (input, context) => {
1759
- const headers = {
1760
- "content-type": "application/x-amz-json-1.1",
1761
- "x-amz-target": "AWSGlue.StopCrawler",
1762
- };
1237
+ const headers = sharedHeaders("StopCrawler");
1763
1238
  let body;
1764
1239
  body = JSON.stringify(se_StopCrawlerRequest(input, context));
1765
1240
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1766
1241
  };
1767
1242
  exports.se_StopCrawlerCommand = se_StopCrawlerCommand;
1768
1243
  const se_StopCrawlerScheduleCommand = async (input, context) => {
1769
- const headers = {
1770
- "content-type": "application/x-amz-json-1.1",
1771
- "x-amz-target": "AWSGlue.StopCrawlerSchedule",
1772
- };
1244
+ const headers = sharedHeaders("StopCrawlerSchedule");
1773
1245
  let body;
1774
1246
  body = JSON.stringify(se_StopCrawlerScheduleRequest(input, context));
1775
1247
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1776
1248
  };
1777
1249
  exports.se_StopCrawlerScheduleCommand = se_StopCrawlerScheduleCommand;
1778
1250
  const se_StopSessionCommand = async (input, context) => {
1779
- const headers = {
1780
- "content-type": "application/x-amz-json-1.1",
1781
- "x-amz-target": "AWSGlue.StopSession",
1782
- };
1251
+ const headers = sharedHeaders("StopSession");
1783
1252
  let body;
1784
1253
  body = JSON.stringify(se_StopSessionRequest(input, context));
1785
1254
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1786
1255
  };
1787
1256
  exports.se_StopSessionCommand = se_StopSessionCommand;
1788
1257
  const se_StopTriggerCommand = async (input, context) => {
1789
- const headers = {
1790
- "content-type": "application/x-amz-json-1.1",
1791
- "x-amz-target": "AWSGlue.StopTrigger",
1792
- };
1258
+ const headers = sharedHeaders("StopTrigger");
1793
1259
  let body;
1794
1260
  body = JSON.stringify(se_StopTriggerRequest(input, context));
1795
1261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1796
1262
  };
1797
1263
  exports.se_StopTriggerCommand = se_StopTriggerCommand;
1798
1264
  const se_StopWorkflowRunCommand = async (input, context) => {
1799
- const headers = {
1800
- "content-type": "application/x-amz-json-1.1",
1801
- "x-amz-target": "AWSGlue.StopWorkflowRun",
1802
- };
1265
+ const headers = sharedHeaders("StopWorkflowRun");
1803
1266
  let body;
1804
1267
  body = JSON.stringify(se_StopWorkflowRunRequest(input, context));
1805
1268
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1806
1269
  };
1807
1270
  exports.se_StopWorkflowRunCommand = se_StopWorkflowRunCommand;
1808
1271
  const se_TagResourceCommand = async (input, context) => {
1809
- const headers = {
1810
- "content-type": "application/x-amz-json-1.1",
1811
- "x-amz-target": "AWSGlue.TagResource",
1812
- };
1272
+ const headers = sharedHeaders("TagResource");
1813
1273
  let body;
1814
1274
  body = JSON.stringify(se_TagResourceRequest(input, context));
1815
1275
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1816
1276
  };
1817
1277
  exports.se_TagResourceCommand = se_TagResourceCommand;
1818
1278
  const se_UntagResourceCommand = async (input, context) => {
1819
- const headers = {
1820
- "content-type": "application/x-amz-json-1.1",
1821
- "x-amz-target": "AWSGlue.UntagResource",
1822
- };
1279
+ const headers = sharedHeaders("UntagResource");
1823
1280
  let body;
1824
1281
  body = JSON.stringify(se_UntagResourceRequest(input, context));
1825
1282
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1826
1283
  };
1827
1284
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1828
1285
  const se_UpdateBlueprintCommand = async (input, context) => {
1829
- const headers = {
1830
- "content-type": "application/x-amz-json-1.1",
1831
- "x-amz-target": "AWSGlue.UpdateBlueprint",
1832
- };
1286
+ const headers = sharedHeaders("UpdateBlueprint");
1833
1287
  let body;
1834
1288
  body = JSON.stringify(se_UpdateBlueprintRequest(input, context));
1835
1289
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1836
1290
  };
1837
1291
  exports.se_UpdateBlueprintCommand = se_UpdateBlueprintCommand;
1838
1292
  const se_UpdateClassifierCommand = async (input, context) => {
1839
- const headers = {
1840
- "content-type": "application/x-amz-json-1.1",
1841
- "x-amz-target": "AWSGlue.UpdateClassifier",
1842
- };
1293
+ const headers = sharedHeaders("UpdateClassifier");
1843
1294
  let body;
1844
1295
  body = JSON.stringify(se_UpdateClassifierRequest(input, context));
1845
1296
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1846
1297
  };
1847
1298
  exports.se_UpdateClassifierCommand = se_UpdateClassifierCommand;
1848
1299
  const se_UpdateColumnStatisticsForPartitionCommand = async (input, context) => {
1849
- const headers = {
1850
- "content-type": "application/x-amz-json-1.1",
1851
- "x-amz-target": "AWSGlue.UpdateColumnStatisticsForPartition",
1852
- };
1300
+ const headers = sharedHeaders("UpdateColumnStatisticsForPartition");
1853
1301
  let body;
1854
1302
  body = JSON.stringify(se_UpdateColumnStatisticsForPartitionRequest(input, context));
1855
1303
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1856
1304
  };
1857
1305
  exports.se_UpdateColumnStatisticsForPartitionCommand = se_UpdateColumnStatisticsForPartitionCommand;
1858
1306
  const se_UpdateColumnStatisticsForTableCommand = async (input, context) => {
1859
- const headers = {
1860
- "content-type": "application/x-amz-json-1.1",
1861
- "x-amz-target": "AWSGlue.UpdateColumnStatisticsForTable",
1862
- };
1307
+ const headers = sharedHeaders("UpdateColumnStatisticsForTable");
1863
1308
  let body;
1864
1309
  body = JSON.stringify(se_UpdateColumnStatisticsForTableRequest(input, context));
1865
1310
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1866
1311
  };
1867
1312
  exports.se_UpdateColumnStatisticsForTableCommand = se_UpdateColumnStatisticsForTableCommand;
1868
1313
  const se_UpdateConnectionCommand = async (input, context) => {
1869
- const headers = {
1870
- "content-type": "application/x-amz-json-1.1",
1871
- "x-amz-target": "AWSGlue.UpdateConnection",
1872
- };
1314
+ const headers = sharedHeaders("UpdateConnection");
1873
1315
  let body;
1874
1316
  body = JSON.stringify(se_UpdateConnectionRequest(input, context));
1875
1317
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1876
1318
  };
1877
1319
  exports.se_UpdateConnectionCommand = se_UpdateConnectionCommand;
1878
1320
  const se_UpdateCrawlerCommand = async (input, context) => {
1879
- const headers = {
1880
- "content-type": "application/x-amz-json-1.1",
1881
- "x-amz-target": "AWSGlue.UpdateCrawler",
1882
- };
1321
+ const headers = sharedHeaders("UpdateCrawler");
1883
1322
  let body;
1884
1323
  body = JSON.stringify(se_UpdateCrawlerRequest(input, context));
1885
1324
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1886
1325
  };
1887
1326
  exports.se_UpdateCrawlerCommand = se_UpdateCrawlerCommand;
1888
1327
  const se_UpdateCrawlerScheduleCommand = async (input, context) => {
1889
- const headers = {
1890
- "content-type": "application/x-amz-json-1.1",
1891
- "x-amz-target": "AWSGlue.UpdateCrawlerSchedule",
1892
- };
1328
+ const headers = sharedHeaders("UpdateCrawlerSchedule");
1893
1329
  let body;
1894
1330
  body = JSON.stringify(se_UpdateCrawlerScheduleRequest(input, context));
1895
1331
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1896
1332
  };
1897
1333
  exports.se_UpdateCrawlerScheduleCommand = se_UpdateCrawlerScheduleCommand;
1898
1334
  const se_UpdateDatabaseCommand = async (input, context) => {
1899
- const headers = {
1900
- "content-type": "application/x-amz-json-1.1",
1901
- "x-amz-target": "AWSGlue.UpdateDatabase",
1902
- };
1335
+ const headers = sharedHeaders("UpdateDatabase");
1903
1336
  let body;
1904
1337
  body = JSON.stringify(se_UpdateDatabaseRequest(input, context));
1905
1338
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1906
1339
  };
1907
1340
  exports.se_UpdateDatabaseCommand = se_UpdateDatabaseCommand;
1908
1341
  const se_UpdateDataQualityRulesetCommand = async (input, context) => {
1909
- const headers = {
1910
- "content-type": "application/x-amz-json-1.1",
1911
- "x-amz-target": "AWSGlue.UpdateDataQualityRuleset",
1912
- };
1342
+ const headers = sharedHeaders("UpdateDataQualityRuleset");
1913
1343
  let body;
1914
1344
  body = JSON.stringify(se_UpdateDataQualityRulesetRequest(input, context));
1915
1345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1916
1346
  };
1917
1347
  exports.se_UpdateDataQualityRulesetCommand = se_UpdateDataQualityRulesetCommand;
1918
1348
  const se_UpdateDevEndpointCommand = async (input, context) => {
1919
- const headers = {
1920
- "content-type": "application/x-amz-json-1.1",
1921
- "x-amz-target": "AWSGlue.UpdateDevEndpoint",
1922
- };
1349
+ const headers = sharedHeaders("UpdateDevEndpoint");
1923
1350
  let body;
1924
1351
  body = JSON.stringify(se_UpdateDevEndpointRequest(input, context));
1925
1352
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1926
1353
  };
1927
1354
  exports.se_UpdateDevEndpointCommand = se_UpdateDevEndpointCommand;
1928
1355
  const se_UpdateJobCommand = async (input, context) => {
1929
- const headers = {
1930
- "content-type": "application/x-amz-json-1.1",
1931
- "x-amz-target": "AWSGlue.UpdateJob",
1932
- };
1356
+ const headers = sharedHeaders("UpdateJob");
1933
1357
  let body;
1934
1358
  body = JSON.stringify(se_UpdateJobRequest(input, context));
1935
1359
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1936
1360
  };
1937
1361
  exports.se_UpdateJobCommand = se_UpdateJobCommand;
1938
1362
  const se_UpdateJobFromSourceControlCommand = async (input, context) => {
1939
- const headers = {
1940
- "content-type": "application/x-amz-json-1.1",
1941
- "x-amz-target": "AWSGlue.UpdateJobFromSourceControl",
1942
- };
1363
+ const headers = sharedHeaders("UpdateJobFromSourceControl");
1943
1364
  let body;
1944
1365
  body = JSON.stringify(se_UpdateJobFromSourceControlRequest(input, context));
1945
1366
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1946
1367
  };
1947
1368
  exports.se_UpdateJobFromSourceControlCommand = se_UpdateJobFromSourceControlCommand;
1948
1369
  const se_UpdateMLTransformCommand = async (input, context) => {
1949
- const headers = {
1950
- "content-type": "application/x-amz-json-1.1",
1951
- "x-amz-target": "AWSGlue.UpdateMLTransform",
1952
- };
1370
+ const headers = sharedHeaders("UpdateMLTransform");
1953
1371
  let body;
1954
1372
  body = JSON.stringify(se_UpdateMLTransformRequest(input, context));
1955
1373
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1956
1374
  };
1957
1375
  exports.se_UpdateMLTransformCommand = se_UpdateMLTransformCommand;
1958
1376
  const se_UpdatePartitionCommand = async (input, context) => {
1959
- const headers = {
1960
- "content-type": "application/x-amz-json-1.1",
1961
- "x-amz-target": "AWSGlue.UpdatePartition",
1962
- };
1377
+ const headers = sharedHeaders("UpdatePartition");
1963
1378
  let body;
1964
1379
  body = JSON.stringify(se_UpdatePartitionRequest(input, context));
1965
1380
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1966
1381
  };
1967
1382
  exports.se_UpdatePartitionCommand = se_UpdatePartitionCommand;
1968
1383
  const se_UpdateRegistryCommand = async (input, context) => {
1969
- const headers = {
1970
- "content-type": "application/x-amz-json-1.1",
1971
- "x-amz-target": "AWSGlue.UpdateRegistry",
1972
- };
1384
+ const headers = sharedHeaders("UpdateRegistry");
1973
1385
  let body;
1974
1386
  body = JSON.stringify(se_UpdateRegistryInput(input, context));
1975
1387
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1976
1388
  };
1977
1389
  exports.se_UpdateRegistryCommand = se_UpdateRegistryCommand;
1978
1390
  const se_UpdateSchemaCommand = async (input, context) => {
1979
- const headers = {
1980
- "content-type": "application/x-amz-json-1.1",
1981
- "x-amz-target": "AWSGlue.UpdateSchema",
1982
- };
1391
+ const headers = sharedHeaders("UpdateSchema");
1983
1392
  let body;
1984
1393
  body = JSON.stringify(se_UpdateSchemaInput(input, context));
1985
1394
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1986
1395
  };
1987
1396
  exports.se_UpdateSchemaCommand = se_UpdateSchemaCommand;
1988
1397
  const se_UpdateSourceControlFromJobCommand = async (input, context) => {
1989
- const headers = {
1990
- "content-type": "application/x-amz-json-1.1",
1991
- "x-amz-target": "AWSGlue.UpdateSourceControlFromJob",
1992
- };
1398
+ const headers = sharedHeaders("UpdateSourceControlFromJob");
1993
1399
  let body;
1994
1400
  body = JSON.stringify(se_UpdateSourceControlFromJobRequest(input, context));
1995
1401
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1996
1402
  };
1997
1403
  exports.se_UpdateSourceControlFromJobCommand = se_UpdateSourceControlFromJobCommand;
1998
1404
  const se_UpdateTableCommand = async (input, context) => {
1999
- const headers = {
2000
- "content-type": "application/x-amz-json-1.1",
2001
- "x-amz-target": "AWSGlue.UpdateTable",
2002
- };
1405
+ const headers = sharedHeaders("UpdateTable");
2003
1406
  let body;
2004
1407
  body = JSON.stringify(se_UpdateTableRequest(input, context));
2005
1408
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
2006
1409
  };
2007
1410
  exports.se_UpdateTableCommand = se_UpdateTableCommand;
2008
1411
  const se_UpdateTriggerCommand = async (input, context) => {
2009
- const headers = {
2010
- "content-type": "application/x-amz-json-1.1",
2011
- "x-amz-target": "AWSGlue.UpdateTrigger",
2012
- };
1412
+ const headers = sharedHeaders("UpdateTrigger");
2013
1413
  let body;
2014
1414
  body = JSON.stringify(se_UpdateTriggerRequest(input, context));
2015
1415
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
2016
1416
  };
2017
1417
  exports.se_UpdateTriggerCommand = se_UpdateTriggerCommand;
2018
1418
  const se_UpdateUserDefinedFunctionCommand = async (input, context) => {
2019
- const headers = {
2020
- "content-type": "application/x-amz-json-1.1",
2021
- "x-amz-target": "AWSGlue.UpdateUserDefinedFunction",
2022
- };
1419
+ const headers = sharedHeaders("UpdateUserDefinedFunction");
2023
1420
  let body;
2024
1421
  body = JSON.stringify(se_UpdateUserDefinedFunctionRequest(input, context));
2025
1422
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
2026
1423
  };
2027
1424
  exports.se_UpdateUserDefinedFunctionCommand = se_UpdateUserDefinedFunctionCommand;
2028
1425
  const se_UpdateWorkflowCommand = async (input, context) => {
2029
- const headers = {
2030
- "content-type": "application/x-amz-json-1.1",
2031
- "x-amz-target": "AWSGlue.UpdateWorkflow",
2032
- };
1426
+ const headers = sharedHeaders("UpdateWorkflow");
2033
1427
  let body;
2034
1428
  body = JSON.stringify(se_UpdateWorkflowRequest(input, context));
2035
1429
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -20776,6 +20170,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
20776
20170
  }
20777
20171
  return new protocol_http_1.HttpRequest(contents);
20778
20172
  };
20173
+ function sharedHeaders(operation) {
20174
+ return {
20175
+ "content-type": "application/x-amz-json-1.1",
20176
+ "x-amz-target": `AWSGlue.${operation}`,
20177
+ };
20178
+ }
20779
20179
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
20780
20180
  if (encoded.length) {
20781
20181
  return JSON.parse(encoded);