@aws-sdk/client-mediaconvert 3.476.0 → 3.478.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.
@@ -2,55 +2,41 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ListTagsForResourceCommand = exports.de_ListQueuesCommand = exports.de_ListPresetsCommand = exports.de_ListJobTemplatesCommand = exports.de_ListJobsCommand = exports.de_GetQueueCommand = exports.de_GetPresetCommand = exports.de_GetPolicyCommand = exports.de_GetJobTemplateCommand = exports.de_GetJobCommand = exports.de_DisassociateCertificateCommand = exports.de_DescribeEndpointsCommand = exports.de_DeleteQueueCommand = exports.de_DeletePresetCommand = exports.de_DeletePolicyCommand = exports.de_DeleteJobTemplateCommand = exports.de_CreateQueueCommand = exports.de_CreatePresetCommand = exports.de_CreateJobTemplateCommand = exports.de_CreateJobCommand = exports.de_CancelJobCommand = exports.de_AssociateCertificateCommand = exports.se_UpdateQueueCommand = exports.se_UpdatePresetCommand = exports.se_UpdateJobTemplateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQueuesCommand = exports.se_ListPresetsCommand = exports.se_ListJobTemplatesCommand = exports.se_ListJobsCommand = exports.se_GetQueueCommand = exports.se_GetPresetCommand = exports.se_GetPolicyCommand = exports.se_GetJobTemplateCommand = exports.se_GetJobCommand = exports.se_DisassociateCertificateCommand = exports.se_DescribeEndpointsCommand = exports.se_DeleteQueueCommand = exports.se_DeletePresetCommand = exports.se_DeletePolicyCommand = exports.se_DeleteJobTemplateCommand = exports.se_CreateQueueCommand = exports.se_CreatePresetCommand = exports.se_CreateJobTemplateCommand = exports.se_CreateJobCommand = exports.se_CancelJobCommand = exports.se_AssociateCertificateCommand = void 0;
4
4
  exports.de_UpdateQueueCommand = exports.de_UpdatePresetCommand = exports.de_UpdateJobTemplateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutPolicyCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const uuid_1 = require("uuid");
8
8
  const MediaConvertServiceException_1 = require("../models/MediaConvertServiceException");
9
9
  const models_1_1 = require("../models/models_1");
10
10
  const se_AssociateCertificateCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_1.requestBuilder)(input, context);
12
12
  const headers = {
13
13
  "content-type": "application/json",
14
14
  };
15
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/certificates";
15
+ b.bp("/2017-08-29/certificates");
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  arn: [, , `Arn`],
19
19
  }));
20
- return new protocol_http_1.HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "POST",
25
- headers,
26
- path: resolvedPath,
27
- body,
28
- });
20
+ b.m("POST").h(headers).b(body);
21
+ return b.build();
29
22
  };
30
23
  exports.se_AssociateCertificateCommand = se_AssociateCertificateCommand;
31
24
  const se_CancelJobCommand = async (input, context) => {
32
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
25
+ const b = (0, core_1.requestBuilder)(input, context);
33
26
  const headers = {};
34
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobs/{Id}";
35
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
27
+ b.bp("/2017-08-29/jobs/{Id}");
28
+ b.p("Id", () => input.Id, "{Id}", false);
36
29
  let body;
37
- return new protocol_http_1.HttpRequest({
38
- protocol,
39
- hostname,
40
- port,
41
- method: "DELETE",
42
- headers,
43
- path: resolvedPath,
44
- body,
45
- });
30
+ b.m("DELETE").h(headers).b(body);
31
+ return b.build();
46
32
  };
47
33
  exports.se_CancelJobCommand = se_CancelJobCommand;
48
34
  const se_CreateJobCommand = async (input, context) => {
49
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = (0, core_1.requestBuilder)(input, context);
50
36
  const headers = {
51
37
  "content-type": "application/json",
52
38
  };
53
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobs";
39
+ b.bp("/2017-08-29/jobs");
54
40
  let body;
55
41
  body = JSON.stringify((0, smithy_client_1.take)(input, {
56
42
  accelerationSettings: [, (_) => se_AccelerationSettings(_, context), `AccelerationSettings`],
@@ -67,23 +53,16 @@ const se_CreateJobCommand = async (input, context) => {
67
53
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
68
54
  userMetadata: [, (_) => (0, smithy_client_1._json)(_), `UserMetadata`],
69
55
  }));
70
- return new protocol_http_1.HttpRequest({
71
- protocol,
72
- hostname,
73
- port,
74
- method: "POST",
75
- headers,
76
- path: resolvedPath,
77
- body,
78
- });
56
+ b.m("POST").h(headers).b(body);
57
+ return b.build();
79
58
  };
80
59
  exports.se_CreateJobCommand = se_CreateJobCommand;
81
60
  const se_CreateJobTemplateCommand = async (input, context) => {
82
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
+ const b = (0, core_1.requestBuilder)(input, context);
83
62
  const headers = {
84
63
  "content-type": "application/json",
85
64
  };
86
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates";
65
+ b.bp("/2017-08-29/jobTemplates");
87
66
  let body;
88
67
  body = JSON.stringify((0, smithy_client_1.take)(input, {
89
68
  accelerationSettings: [, (_) => se_AccelerationSettings(_, context), `AccelerationSettings`],
@@ -97,23 +76,16 @@ const se_CreateJobTemplateCommand = async (input, context) => {
97
76
  statusUpdateInterval: [, , `StatusUpdateInterval`],
98
77
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
99
78
  }));
100
- return new protocol_http_1.HttpRequest({
101
- protocol,
102
- hostname,
103
- port,
104
- method: "POST",
105
- headers,
106
- path: resolvedPath,
107
- body,
108
- });
79
+ b.m("POST").h(headers).b(body);
80
+ return b.build();
109
81
  };
110
82
  exports.se_CreateJobTemplateCommand = se_CreateJobTemplateCommand;
111
83
  const se_CreatePresetCommand = async (input, context) => {
112
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = (0, core_1.requestBuilder)(input, context);
113
85
  const headers = {
114
86
  "content-type": "application/json",
115
87
  };
116
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets";
88
+ b.bp("/2017-08-29/presets");
117
89
  let body;
118
90
  body = JSON.stringify((0, smithy_client_1.take)(input, {
119
91
  category: [, , `Category`],
@@ -122,23 +94,16 @@ const se_CreatePresetCommand = async (input, context) => {
122
94
  settings: [, (_) => se_PresetSettings(_, context), `Settings`],
123
95
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
124
96
  }));
125
- return new protocol_http_1.HttpRequest({
126
- protocol,
127
- hostname,
128
- port,
129
- method: "POST",
130
- headers,
131
- path: resolvedPath,
132
- body,
133
- });
97
+ b.m("POST").h(headers).b(body);
98
+ return b.build();
134
99
  };
135
100
  exports.se_CreatePresetCommand = se_CreatePresetCommand;
136
101
  const se_CreateQueueCommand = async (input, context) => {
137
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
+ const b = (0, core_1.requestBuilder)(input, context);
138
103
  const headers = {
139
104
  "content-type": "application/json",
140
105
  };
141
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues";
106
+ b.bp("/2017-08-29/queues");
142
107
  let body;
143
108
  body = JSON.stringify((0, smithy_client_1.take)(input, {
144
109
  description: [, , `Description`],
@@ -148,398 +113,254 @@ const se_CreateQueueCommand = async (input, context) => {
148
113
  status: [, , `Status`],
149
114
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
150
115
  }));
151
- return new protocol_http_1.HttpRequest({
152
- protocol,
153
- hostname,
154
- port,
155
- method: "POST",
156
- headers,
157
- path: resolvedPath,
158
- body,
159
- });
116
+ b.m("POST").h(headers).b(body);
117
+ return b.build();
160
118
  };
161
119
  exports.se_CreateQueueCommand = se_CreateQueueCommand;
162
120
  const se_DeleteJobTemplateCommand = async (input, context) => {
163
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = (0, core_1.requestBuilder)(input, context);
164
122
  const headers = {};
165
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates/{Name}";
166
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
123
+ b.bp("/2017-08-29/jobTemplates/{Name}");
124
+ b.p("Name", () => input.Name, "{Name}", false);
167
125
  let body;
168
- return new protocol_http_1.HttpRequest({
169
- protocol,
170
- hostname,
171
- port,
172
- method: "DELETE",
173
- headers,
174
- path: resolvedPath,
175
- body,
176
- });
126
+ b.m("DELETE").h(headers).b(body);
127
+ return b.build();
177
128
  };
178
129
  exports.se_DeleteJobTemplateCommand = se_DeleteJobTemplateCommand;
179
130
  const se_DeletePolicyCommand = async (input, context) => {
180
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
131
+ const b = (0, core_1.requestBuilder)(input, context);
181
132
  const headers = {
182
133
  "content-type": "application/json",
183
134
  };
184
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy";
135
+ b.bp("/2017-08-29/policy");
185
136
  let body;
186
137
  body = "";
187
- return new protocol_http_1.HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "DELETE",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
138
+ b.m("DELETE").h(headers).b(body);
139
+ return b.build();
196
140
  };
197
141
  exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
198
142
  const se_DeletePresetCommand = async (input, context) => {
199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
+ const b = (0, core_1.requestBuilder)(input, context);
200
144
  const headers = {};
201
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets/{Name}";
202
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
145
+ b.bp("/2017-08-29/presets/{Name}");
146
+ b.p("Name", () => input.Name, "{Name}", false);
203
147
  let body;
204
- return new protocol_http_1.HttpRequest({
205
- protocol,
206
- hostname,
207
- port,
208
- method: "DELETE",
209
- headers,
210
- path: resolvedPath,
211
- body,
212
- });
148
+ b.m("DELETE").h(headers).b(body);
149
+ return b.build();
213
150
  };
214
151
  exports.se_DeletePresetCommand = se_DeletePresetCommand;
215
152
  const se_DeleteQueueCommand = async (input, context) => {
216
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_1.requestBuilder)(input, context);
217
154
  const headers = {};
218
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues/{Name}";
219
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
155
+ b.bp("/2017-08-29/queues/{Name}");
156
+ b.p("Name", () => input.Name, "{Name}", false);
220
157
  let body;
221
- return new protocol_http_1.HttpRequest({
222
- protocol,
223
- hostname,
224
- port,
225
- method: "DELETE",
226
- headers,
227
- path: resolvedPath,
228
- body,
229
- });
158
+ b.m("DELETE").h(headers).b(body);
159
+ return b.build();
230
160
  };
231
161
  exports.se_DeleteQueueCommand = se_DeleteQueueCommand;
232
162
  const se_DescribeEndpointsCommand = async (input, context) => {
233
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = (0, core_1.requestBuilder)(input, context);
234
164
  const headers = {
235
165
  "content-type": "application/json",
236
166
  };
237
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/endpoints";
167
+ b.bp("/2017-08-29/endpoints");
238
168
  let body;
239
169
  body = JSON.stringify((0, smithy_client_1.take)(input, {
240
170
  maxResults: [, , `MaxResults`],
241
171
  mode: [, , `Mode`],
242
172
  nextToken: [, , `NextToken`],
243
173
  }));
244
- return new protocol_http_1.HttpRequest({
245
- protocol,
246
- hostname,
247
- port,
248
- method: "POST",
249
- headers,
250
- path: resolvedPath,
251
- body,
252
- });
174
+ b.m("POST").h(headers).b(body);
175
+ return b.build();
253
176
  };
254
177
  exports.se_DescribeEndpointsCommand = se_DescribeEndpointsCommand;
255
178
  const se_DisassociateCertificateCommand = async (input, context) => {
256
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
179
+ const b = (0, core_1.requestBuilder)(input, context);
257
180
  const headers = {};
258
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/certificates/{Arn}";
259
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
181
+ b.bp("/2017-08-29/certificates/{Arn}");
182
+ b.p("Arn", () => input.Arn, "{Arn}", false);
260
183
  let body;
261
- return new protocol_http_1.HttpRequest({
262
- protocol,
263
- hostname,
264
- port,
265
- method: "DELETE",
266
- headers,
267
- path: resolvedPath,
268
- body,
269
- });
184
+ b.m("DELETE").h(headers).b(body);
185
+ return b.build();
270
186
  };
271
187
  exports.se_DisassociateCertificateCommand = se_DisassociateCertificateCommand;
272
188
  const se_GetJobCommand = async (input, context) => {
273
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = (0, core_1.requestBuilder)(input, context);
274
190
  const headers = {};
275
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobs/{Id}";
276
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
191
+ b.bp("/2017-08-29/jobs/{Id}");
192
+ b.p("Id", () => input.Id, "{Id}", false);
277
193
  let body;
278
- return new protocol_http_1.HttpRequest({
279
- protocol,
280
- hostname,
281
- port,
282
- method: "GET",
283
- headers,
284
- path: resolvedPath,
285
- body,
286
- });
194
+ b.m("GET").h(headers).b(body);
195
+ return b.build();
287
196
  };
288
197
  exports.se_GetJobCommand = se_GetJobCommand;
289
198
  const se_GetJobTemplateCommand = async (input, context) => {
290
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
199
+ const b = (0, core_1.requestBuilder)(input, context);
291
200
  const headers = {};
292
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates/{Name}";
293
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
201
+ b.bp("/2017-08-29/jobTemplates/{Name}");
202
+ b.p("Name", () => input.Name, "{Name}", false);
294
203
  let body;
295
- return new protocol_http_1.HttpRequest({
296
- protocol,
297
- hostname,
298
- port,
299
- method: "GET",
300
- headers,
301
- path: resolvedPath,
302
- body,
303
- });
204
+ b.m("GET").h(headers).b(body);
205
+ return b.build();
304
206
  };
305
207
  exports.se_GetJobTemplateCommand = se_GetJobTemplateCommand;
306
208
  const se_GetPolicyCommand = async (input, context) => {
307
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
209
+ const b = (0, core_1.requestBuilder)(input, context);
308
210
  const headers = {
309
211
  "content-type": "application/json",
310
212
  };
311
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy";
213
+ b.bp("/2017-08-29/policy");
312
214
  let body;
313
215
  body = "";
314
- return new protocol_http_1.HttpRequest({
315
- protocol,
316
- hostname,
317
- port,
318
- method: "GET",
319
- headers,
320
- path: resolvedPath,
321
- body,
322
- });
216
+ b.m("GET").h(headers).b(body);
217
+ return b.build();
323
218
  };
324
219
  exports.se_GetPolicyCommand = se_GetPolicyCommand;
325
220
  const se_GetPresetCommand = async (input, context) => {
326
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
221
+ const b = (0, core_1.requestBuilder)(input, context);
327
222
  const headers = {};
328
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets/{Name}";
329
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
223
+ b.bp("/2017-08-29/presets/{Name}");
224
+ b.p("Name", () => input.Name, "{Name}", false);
330
225
  let body;
331
- return new protocol_http_1.HttpRequest({
332
- protocol,
333
- hostname,
334
- port,
335
- method: "GET",
336
- headers,
337
- path: resolvedPath,
338
- body,
339
- });
226
+ b.m("GET").h(headers).b(body);
227
+ return b.build();
340
228
  };
341
229
  exports.se_GetPresetCommand = se_GetPresetCommand;
342
230
  const se_GetQueueCommand = async (input, context) => {
343
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = (0, core_1.requestBuilder)(input, context);
344
232
  const headers = {};
345
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues/{Name}";
346
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
233
+ b.bp("/2017-08-29/queues/{Name}");
234
+ b.p("Name", () => input.Name, "{Name}", false);
347
235
  let body;
348
- return new protocol_http_1.HttpRequest({
349
- protocol,
350
- hostname,
351
- port,
352
- method: "GET",
353
- headers,
354
- path: resolvedPath,
355
- body,
356
- });
236
+ b.m("GET").h(headers).b(body);
237
+ return b.build();
357
238
  };
358
239
  exports.se_GetQueueCommand = se_GetQueueCommand;
359
240
  const se_ListJobsCommand = async (input, context) => {
360
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
241
+ const b = (0, core_1.requestBuilder)(input, context);
361
242
  const headers = {};
362
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobs";
243
+ b.bp("/2017-08-29/jobs");
363
244
  const query = (0, smithy_client_1.map)({
364
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
365
- nextToken: [, input.NextToken],
366
- order: [, input.Order],
367
- queue: [, input.Queue],
368
- status: [, input.Status],
245
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
246
+ [_nT]: [, input[_NT]],
247
+ [_o]: [, input[_O]],
248
+ [_q]: [, input[_Q]],
249
+ [_s]: [, input[_S]],
369
250
  });
370
251
  let body;
371
- return new protocol_http_1.HttpRequest({
372
- protocol,
373
- hostname,
374
- port,
375
- method: "GET",
376
- headers,
377
- path: resolvedPath,
378
- query,
379
- body,
380
- });
252
+ b.m("GET").h(headers).q(query).b(body);
253
+ return b.build();
381
254
  };
382
255
  exports.se_ListJobsCommand = se_ListJobsCommand;
383
256
  const se_ListJobTemplatesCommand = async (input, context) => {
384
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
257
+ const b = (0, core_1.requestBuilder)(input, context);
385
258
  const headers = {};
386
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates";
259
+ b.bp("/2017-08-29/jobTemplates");
387
260
  const query = (0, smithy_client_1.map)({
388
- category: [, input.Category],
389
- listBy: [, input.ListBy],
390
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
391
- nextToken: [, input.NextToken],
392
- order: [, input.Order],
261
+ [_c]: [, input[_C]],
262
+ [_lB]: [, input[_LB]],
263
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
264
+ [_nT]: [, input[_NT]],
265
+ [_o]: [, input[_O]],
393
266
  });
394
267
  let body;
395
- return new protocol_http_1.HttpRequest({
396
- protocol,
397
- hostname,
398
- port,
399
- method: "GET",
400
- headers,
401
- path: resolvedPath,
402
- query,
403
- body,
404
- });
268
+ b.m("GET").h(headers).q(query).b(body);
269
+ return b.build();
405
270
  };
406
271
  exports.se_ListJobTemplatesCommand = se_ListJobTemplatesCommand;
407
272
  const se_ListPresetsCommand = async (input, context) => {
408
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
+ const b = (0, core_1.requestBuilder)(input, context);
409
274
  const headers = {};
410
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets";
275
+ b.bp("/2017-08-29/presets");
411
276
  const query = (0, smithy_client_1.map)({
412
- category: [, input.Category],
413
- listBy: [, input.ListBy],
414
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
415
- nextToken: [, input.NextToken],
416
- order: [, input.Order],
277
+ [_c]: [, input[_C]],
278
+ [_lB]: [, input[_LB]],
279
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
280
+ [_nT]: [, input[_NT]],
281
+ [_o]: [, input[_O]],
417
282
  });
418
283
  let body;
419
- return new protocol_http_1.HttpRequest({
420
- protocol,
421
- hostname,
422
- port,
423
- method: "GET",
424
- headers,
425
- path: resolvedPath,
426
- query,
427
- body,
428
- });
284
+ b.m("GET").h(headers).q(query).b(body);
285
+ return b.build();
429
286
  };
430
287
  exports.se_ListPresetsCommand = se_ListPresetsCommand;
431
288
  const se_ListQueuesCommand = async (input, context) => {
432
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
289
+ const b = (0, core_1.requestBuilder)(input, context);
433
290
  const headers = {};
434
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues";
291
+ b.bp("/2017-08-29/queues");
435
292
  const query = (0, smithy_client_1.map)({
436
- listBy: [, input.ListBy],
437
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
438
- nextToken: [, input.NextToken],
439
- order: [, input.Order],
293
+ [_lB]: [, input[_LB]],
294
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
295
+ [_nT]: [, input[_NT]],
296
+ [_o]: [, input[_O]],
440
297
  });
441
298
  let body;
442
- return new protocol_http_1.HttpRequest({
443
- protocol,
444
- hostname,
445
- port,
446
- method: "GET",
447
- headers,
448
- path: resolvedPath,
449
- query,
450
- body,
451
- });
299
+ b.m("GET").h(headers).q(query).b(body);
300
+ return b.build();
452
301
  };
453
302
  exports.se_ListQueuesCommand = se_ListQueuesCommand;
454
303
  const se_ListTagsForResourceCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
+ const b = (0, core_1.requestBuilder)(input, context);
456
305
  const headers = {};
457
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/tags/{Arn}";
458
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
306
+ b.bp("/2017-08-29/tags/{Arn}");
307
+ b.p("Arn", () => input.Arn, "{Arn}", false);
459
308
  let body;
460
- return new protocol_http_1.HttpRequest({
461
- protocol,
462
- hostname,
463
- port,
464
- method: "GET",
465
- headers,
466
- path: resolvedPath,
467
- body,
468
- });
309
+ b.m("GET").h(headers).b(body);
310
+ return b.build();
469
311
  };
470
312
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
471
313
  const se_PutPolicyCommand = async (input, context) => {
472
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
314
+ const b = (0, core_1.requestBuilder)(input, context);
473
315
  const headers = {
474
316
  "content-type": "application/json",
475
317
  };
476
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy";
318
+ b.bp("/2017-08-29/policy");
477
319
  let body;
478
320
  body = JSON.stringify((0, smithy_client_1.take)(input, {
479
321
  policy: [, (_) => se_Policy(_, context), `Policy`],
480
322
  }));
481
- return new protocol_http_1.HttpRequest({
482
- protocol,
483
- hostname,
484
- port,
485
- method: "PUT",
486
- headers,
487
- path: resolvedPath,
488
- body,
489
- });
323
+ b.m("PUT").h(headers).b(body);
324
+ return b.build();
490
325
  };
491
326
  exports.se_PutPolicyCommand = se_PutPolicyCommand;
492
327
  const se_TagResourceCommand = async (input, context) => {
493
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = (0, core_1.requestBuilder)(input, context);
494
329
  const headers = {
495
330
  "content-type": "application/json",
496
331
  };
497
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/tags";
332
+ b.bp("/2017-08-29/tags");
498
333
  let body;
499
334
  body = JSON.stringify((0, smithy_client_1.take)(input, {
500
335
  arn: [, , `Arn`],
501
336
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
502
337
  }));
503
- return new protocol_http_1.HttpRequest({
504
- protocol,
505
- hostname,
506
- port,
507
- method: "POST",
508
- headers,
509
- path: resolvedPath,
510
- body,
511
- });
338
+ b.m("POST").h(headers).b(body);
339
+ return b.build();
512
340
  };
513
341
  exports.se_TagResourceCommand = se_TagResourceCommand;
514
342
  const se_UntagResourceCommand = async (input, context) => {
515
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
+ const b = (0, core_1.requestBuilder)(input, context);
516
344
  const headers = {
517
345
  "content-type": "application/json",
518
346
  };
519
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/tags/{Arn}";
520
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
347
+ b.bp("/2017-08-29/tags/{Arn}");
348
+ b.p("Arn", () => input.Arn, "{Arn}", false);
521
349
  let body;
522
350
  body = JSON.stringify((0, smithy_client_1.take)(input, {
523
351
  tagKeys: [, (_) => (0, smithy_client_1._json)(_), `TagKeys`],
524
352
  }));
525
- return new protocol_http_1.HttpRequest({
526
- protocol,
527
- hostname,
528
- port,
529
- method: "PUT",
530
- headers,
531
- path: resolvedPath,
532
- body,
533
- });
353
+ b.m("PUT").h(headers).b(body);
354
+ return b.build();
534
355
  };
535
356
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
536
357
  const se_UpdateJobTemplateCommand = async (input, context) => {
537
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
358
+ const b = (0, core_1.requestBuilder)(input, context);
538
359
  const headers = {
539
360
  "content-type": "application/json",
540
361
  };
541
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates/{Name}";
542
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
362
+ b.bp("/2017-08-29/jobTemplates/{Name}");
363
+ b.p("Name", () => input.Name, "{Name}", false);
543
364
  let body;
544
365
  body = JSON.stringify((0, smithy_client_1.take)(input, {
545
366
  accelerationSettings: [, (_) => se_AccelerationSettings(_, context), `AccelerationSettings`],
@@ -551,63 +372,42 @@ const se_UpdateJobTemplateCommand = async (input, context) => {
551
372
  settings: [, (_) => se_JobTemplateSettings(_, context), `Settings`],
552
373
  statusUpdateInterval: [, , `StatusUpdateInterval`],
553
374
  }));
554
- return new protocol_http_1.HttpRequest({
555
- protocol,
556
- hostname,
557
- port,
558
- method: "PUT",
559
- headers,
560
- path: resolvedPath,
561
- body,
562
- });
375
+ b.m("PUT").h(headers).b(body);
376
+ return b.build();
563
377
  };
564
378
  exports.se_UpdateJobTemplateCommand = se_UpdateJobTemplateCommand;
565
379
  const se_UpdatePresetCommand = async (input, context) => {
566
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
380
+ const b = (0, core_1.requestBuilder)(input, context);
567
381
  const headers = {
568
382
  "content-type": "application/json",
569
383
  };
570
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets/{Name}";
571
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
384
+ b.bp("/2017-08-29/presets/{Name}");
385
+ b.p("Name", () => input.Name, "{Name}", false);
572
386
  let body;
573
387
  body = JSON.stringify((0, smithy_client_1.take)(input, {
574
388
  category: [, , `Category`],
575
389
  description: [, , `Description`],
576
390
  settings: [, (_) => se_PresetSettings(_, context), `Settings`],
577
391
  }));
578
- return new protocol_http_1.HttpRequest({
579
- protocol,
580
- hostname,
581
- port,
582
- method: "PUT",
583
- headers,
584
- path: resolvedPath,
585
- body,
586
- });
392
+ b.m("PUT").h(headers).b(body);
393
+ return b.build();
587
394
  };
588
395
  exports.se_UpdatePresetCommand = se_UpdatePresetCommand;
589
396
  const se_UpdateQueueCommand = async (input, context) => {
590
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
397
+ const b = (0, core_1.requestBuilder)(input, context);
591
398
  const headers = {
592
399
  "content-type": "application/json",
593
400
  };
594
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues/{Name}";
595
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
401
+ b.bp("/2017-08-29/queues/{Name}");
402
+ b.p("Name", () => input.Name, "{Name}", false);
596
403
  let body;
597
404
  body = JSON.stringify((0, smithy_client_1.take)(input, {
598
405
  description: [, , `Description`],
599
406
  reservationPlanSettings: [, (_) => se_ReservationPlanSettings(_, context), `ReservationPlanSettings`],
600
407
  status: [, , `Status`],
601
408
  }));
602
- return new protocol_http_1.HttpRequest({
603
- protocol,
604
- hostname,
605
- port,
606
- method: "PUT",
607
- headers,
608
- path: resolvedPath,
609
- body,
610
- });
409
+ b.m("PUT").h(headers).b(body);
410
+ return b.build();
611
411
  };
612
412
  exports.se_UpdateQueueCommand = se_UpdateQueueCommand;
613
413
  const de_AssociateCertificateCommand = async (output, context) => {
@@ -6235,6 +6035,20 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
6235
6035
  value !== "" &&
6236
6036
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
6237
6037
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
6038
+ const _C = "Category";
6039
+ const _LB = "ListBy";
6040
+ const _MR = "MaxResults";
6041
+ const _NT = "NextToken";
6042
+ const _O = "Order";
6043
+ const _Q = "Queue";
6044
+ const _S = "Status";
6045
+ const _c = "category";
6046
+ const _lB = "listBy";
6047
+ const _mR = "maxResults";
6048
+ const _nT = "nextToken";
6049
+ const _o = "order";
6050
+ const _q = "queue";
6051
+ const _s = "status";
6238
6052
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6239
6053
  if (encoded.length) {
6240
6054
  return JSON.parse(encoded);