@aws-sdk/client-ivs-realtime 3.476.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,40 +2,33 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_StartCompositionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStorageConfigurationsCommand = exports.de_ListStageSessionsCommand = exports.de_ListStagesCommand = exports.de_ListParticipantsCommand = exports.de_ListParticipantEventsCommand = exports.de_ListEncoderConfigurationsCommand = exports.de_ListCompositionsCommand = exports.de_GetStorageConfigurationCommand = exports.de_GetStageSessionCommand = exports.de_GetStageCommand = exports.de_GetParticipantCommand = exports.de_GetEncoderConfigurationCommand = exports.de_GetCompositionCommand = exports.de_DisconnectParticipantCommand = exports.de_DeleteStorageConfigurationCommand = exports.de_DeleteStageCommand = exports.de_DeleteEncoderConfigurationCommand = exports.de_CreateStorageConfigurationCommand = exports.de_CreateStageCommand = exports.de_CreateParticipantTokenCommand = exports.de_CreateEncoderConfigurationCommand = exports.se_UpdateStageCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopCompositionCommand = exports.se_StartCompositionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStorageConfigurationsCommand = exports.se_ListStageSessionsCommand = exports.se_ListStagesCommand = exports.se_ListParticipantsCommand = exports.se_ListParticipantEventsCommand = exports.se_ListEncoderConfigurationsCommand = exports.se_ListCompositionsCommand = exports.se_GetStorageConfigurationCommand = exports.se_GetStageSessionCommand = exports.se_GetStageCommand = exports.se_GetParticipantCommand = exports.se_GetEncoderConfigurationCommand = exports.se_GetCompositionCommand = exports.se_DisconnectParticipantCommand = exports.se_DeleteStorageConfigurationCommand = exports.se_DeleteStageCommand = exports.se_DeleteEncoderConfigurationCommand = exports.se_CreateStorageConfigurationCommand = exports.se_CreateStageCommand = exports.se_CreateParticipantTokenCommand = exports.se_CreateEncoderConfigurationCommand = void 0;
4
4
  exports.de_UpdateStageCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopCompositionCommand = 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 IVSRealTimeServiceException_1 = require("../models/IVSRealTimeServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_CreateEncoderConfigurationCommand = 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 || ""}` + "/CreateEncoderConfiguration";
15
+ b.bp("/CreateEncoderConfiguration");
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  name: [],
19
19
  tags: (_) => (0, smithy_client_1._json)(_),
20
20
  video: (_) => se_Video(_, context),
21
21
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "POST",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  exports.se_CreateEncoderConfigurationCommand = se_CreateEncoderConfigurationCommand;
33
26
  const se_CreateParticipantTokenCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_1.requestBuilder)(input, context);
35
28
  const headers = {
36
29
  "content-type": "application/json",
37
30
  };
38
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateParticipantToken";
31
+ b.bp("/CreateParticipantToken");
39
32
  let body;
40
33
  body = JSON.stringify((0, smithy_client_1.take)(input, {
41
34
  attributes: (_) => (0, smithy_client_1._json)(_),
@@ -44,284 +37,193 @@ const se_CreateParticipantTokenCommand = async (input, context) => {
44
37
  stageArn: [],
45
38
  userId: [],
46
39
  }));
47
- return new protocol_http_1.HttpRequest({
48
- protocol,
49
- hostname,
50
- port,
51
- method: "POST",
52
- headers,
53
- path: resolvedPath,
54
- body,
55
- });
40
+ b.m("POST").h(headers).b(body);
41
+ return b.build();
56
42
  };
57
43
  exports.se_CreateParticipantTokenCommand = se_CreateParticipantTokenCommand;
58
44
  const se_CreateStageCommand = async (input, context) => {
59
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = (0, core_1.requestBuilder)(input, context);
60
46
  const headers = {
61
47
  "content-type": "application/json",
62
48
  };
63
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStage";
49
+ b.bp("/CreateStage");
64
50
  let body;
65
51
  body = JSON.stringify((0, smithy_client_1.take)(input, {
66
52
  name: [],
67
53
  participantTokenConfigurations: (_) => (0, smithy_client_1._json)(_),
68
54
  tags: (_) => (0, smithy_client_1._json)(_),
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_CreateStageCommand = se_CreateStageCommand;
81
60
  const se_CreateStorageConfigurationCommand = 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 || ""}` + "/CreateStorageConfiguration";
65
+ b.bp("/CreateStorageConfiguration");
87
66
  let body;
88
67
  body = JSON.stringify((0, smithy_client_1.take)(input, {
89
68
  name: [],
90
69
  s3: (_) => (0, smithy_client_1._json)(_),
91
70
  tags: (_) => (0, smithy_client_1._json)(_),
92
71
  }));
93
- return new protocol_http_1.HttpRequest({
94
- protocol,
95
- hostname,
96
- port,
97
- method: "POST",
98
- headers,
99
- path: resolvedPath,
100
- body,
101
- });
72
+ b.m("POST").h(headers).b(body);
73
+ return b.build();
102
74
  };
103
75
  exports.se_CreateStorageConfigurationCommand = se_CreateStorageConfigurationCommand;
104
76
  const se_DeleteEncoderConfigurationCommand = async (input, context) => {
105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
+ const b = (0, core_1.requestBuilder)(input, context);
106
78
  const headers = {
107
79
  "content-type": "application/json",
108
80
  };
109
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteEncoderConfiguration";
81
+ b.bp("/DeleteEncoderConfiguration");
110
82
  let body;
111
83
  body = JSON.stringify((0, smithy_client_1.take)(input, {
112
84
  arn: [],
113
85
  }));
114
- return new protocol_http_1.HttpRequest({
115
- protocol,
116
- hostname,
117
- port,
118
- method: "POST",
119
- headers,
120
- path: resolvedPath,
121
- body,
122
- });
86
+ b.m("POST").h(headers).b(body);
87
+ return b.build();
123
88
  };
124
89
  exports.se_DeleteEncoderConfigurationCommand = se_DeleteEncoderConfigurationCommand;
125
90
  const se_DeleteStageCommand = async (input, context) => {
126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = (0, core_1.requestBuilder)(input, context);
127
92
  const headers = {
128
93
  "content-type": "application/json",
129
94
  };
130
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStage";
95
+ b.bp("/DeleteStage");
131
96
  let body;
132
97
  body = JSON.stringify((0, smithy_client_1.take)(input, {
133
98
  arn: [],
134
99
  }));
135
- return new protocol_http_1.HttpRequest({
136
- protocol,
137
- hostname,
138
- port,
139
- method: "POST",
140
- headers,
141
- path: resolvedPath,
142
- body,
143
- });
100
+ b.m("POST").h(headers).b(body);
101
+ return b.build();
144
102
  };
145
103
  exports.se_DeleteStageCommand = se_DeleteStageCommand;
146
104
  const se_DeleteStorageConfigurationCommand = async (input, context) => {
147
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = (0, core_1.requestBuilder)(input, context);
148
106
  const headers = {
149
107
  "content-type": "application/json",
150
108
  };
151
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStorageConfiguration";
109
+ b.bp("/DeleteStorageConfiguration");
152
110
  let body;
153
111
  body = JSON.stringify((0, smithy_client_1.take)(input, {
154
112
  arn: [],
155
113
  }));
156
- return new protocol_http_1.HttpRequest({
157
- protocol,
158
- hostname,
159
- port,
160
- method: "POST",
161
- headers,
162
- path: resolvedPath,
163
- body,
164
- });
114
+ b.m("POST").h(headers).b(body);
115
+ return b.build();
165
116
  };
166
117
  exports.se_DeleteStorageConfigurationCommand = se_DeleteStorageConfigurationCommand;
167
118
  const se_DisconnectParticipantCommand = async (input, context) => {
168
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
119
+ const b = (0, core_1.requestBuilder)(input, context);
169
120
  const headers = {
170
121
  "content-type": "application/json",
171
122
  };
172
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectParticipant";
123
+ b.bp("/DisconnectParticipant");
173
124
  let body;
174
125
  body = JSON.stringify((0, smithy_client_1.take)(input, {
175
126
  participantId: [],
176
127
  reason: [],
177
128
  stageArn: [],
178
129
  }));
179
- return new protocol_http_1.HttpRequest({
180
- protocol,
181
- hostname,
182
- port,
183
- method: "POST",
184
- headers,
185
- path: resolvedPath,
186
- body,
187
- });
130
+ b.m("POST").h(headers).b(body);
131
+ return b.build();
188
132
  };
189
133
  exports.se_DisconnectParticipantCommand = se_DisconnectParticipantCommand;
190
134
  const se_GetCompositionCommand = async (input, context) => {
191
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = (0, core_1.requestBuilder)(input, context);
192
136
  const headers = {
193
137
  "content-type": "application/json",
194
138
  };
195
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetComposition";
139
+ b.bp("/GetComposition");
196
140
  let body;
197
141
  body = JSON.stringify((0, smithy_client_1.take)(input, {
198
142
  arn: [],
199
143
  }));
200
- return new protocol_http_1.HttpRequest({
201
- protocol,
202
- hostname,
203
- port,
204
- method: "POST",
205
- headers,
206
- path: resolvedPath,
207
- body,
208
- });
144
+ b.m("POST").h(headers).b(body);
145
+ return b.build();
209
146
  };
210
147
  exports.se_GetCompositionCommand = se_GetCompositionCommand;
211
148
  const se_GetEncoderConfigurationCommand = async (input, context) => {
212
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
+ const b = (0, core_1.requestBuilder)(input, context);
213
150
  const headers = {
214
151
  "content-type": "application/json",
215
152
  };
216
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetEncoderConfiguration";
153
+ b.bp("/GetEncoderConfiguration");
217
154
  let body;
218
155
  body = JSON.stringify((0, smithy_client_1.take)(input, {
219
156
  arn: [],
220
157
  }));
221
- return new protocol_http_1.HttpRequest({
222
- protocol,
223
- hostname,
224
- port,
225
- method: "POST",
226
- headers,
227
- path: resolvedPath,
228
- body,
229
- });
158
+ b.m("POST").h(headers).b(body);
159
+ return b.build();
230
160
  };
231
161
  exports.se_GetEncoderConfigurationCommand = se_GetEncoderConfigurationCommand;
232
162
  const se_GetParticipantCommand = 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 || ""}` + "/GetParticipant";
167
+ b.bp("/GetParticipant");
238
168
  let body;
239
169
  body = JSON.stringify((0, smithy_client_1.take)(input, {
240
170
  participantId: [],
241
171
  sessionId: [],
242
172
  stageArn: [],
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_GetParticipantCommand = se_GetParticipantCommand;
255
178
  const se_GetStageCommand = 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
181
  "content-type": "application/json",
259
182
  };
260
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStage";
183
+ b.bp("/GetStage");
261
184
  let body;
262
185
  body = JSON.stringify((0, smithy_client_1.take)(input, {
263
186
  arn: [],
264
187
  }));
265
- return new protocol_http_1.HttpRequest({
266
- protocol,
267
- hostname,
268
- port,
269
- method: "POST",
270
- headers,
271
- path: resolvedPath,
272
- body,
273
- });
188
+ b.m("POST").h(headers).b(body);
189
+ return b.build();
274
190
  };
275
191
  exports.se_GetStageCommand = se_GetStageCommand;
276
192
  const se_GetStageSessionCommand = async (input, context) => {
277
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_1.requestBuilder)(input, context);
278
194
  const headers = {
279
195
  "content-type": "application/json",
280
196
  };
281
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStageSession";
197
+ b.bp("/GetStageSession");
282
198
  let body;
283
199
  body = JSON.stringify((0, smithy_client_1.take)(input, {
284
200
  sessionId: [],
285
201
  stageArn: [],
286
202
  }));
287
- return new protocol_http_1.HttpRequest({
288
- protocol,
289
- hostname,
290
- port,
291
- method: "POST",
292
- headers,
293
- path: resolvedPath,
294
- body,
295
- });
203
+ b.m("POST").h(headers).b(body);
204
+ return b.build();
296
205
  };
297
206
  exports.se_GetStageSessionCommand = se_GetStageSessionCommand;
298
207
  const se_GetStorageConfigurationCommand = async (input, context) => {
299
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const b = (0, core_1.requestBuilder)(input, context);
300
209
  const headers = {
301
210
  "content-type": "application/json",
302
211
  };
303
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStorageConfiguration";
212
+ b.bp("/GetStorageConfiguration");
304
213
  let body;
305
214
  body = JSON.stringify((0, smithy_client_1.take)(input, {
306
215
  arn: [],
307
216
  }));
308
- return new protocol_http_1.HttpRequest({
309
- protocol,
310
- hostname,
311
- port,
312
- method: "POST",
313
- headers,
314
- path: resolvedPath,
315
- body,
316
- });
217
+ b.m("POST").h(headers).b(body);
218
+ return b.build();
317
219
  };
318
220
  exports.se_GetStorageConfigurationCommand = se_GetStorageConfigurationCommand;
319
221
  const se_ListCompositionsCommand = async (input, context) => {
320
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
222
+ const b = (0, core_1.requestBuilder)(input, context);
321
223
  const headers = {
322
224
  "content-type": "application/json",
323
225
  };
324
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListCompositions";
226
+ b.bp("/ListCompositions");
325
227
  let body;
326
228
  body = JSON.stringify((0, smithy_client_1.take)(input, {
327
229
  filterByEncoderConfigurationArn: [],
@@ -329,45 +231,31 @@ const se_ListCompositionsCommand = async (input, context) => {
329
231
  maxResults: [],
330
232
  nextToken: [],
331
233
  }));
332
- return new protocol_http_1.HttpRequest({
333
- protocol,
334
- hostname,
335
- port,
336
- method: "POST",
337
- headers,
338
- path: resolvedPath,
339
- body,
340
- });
234
+ b.m("POST").h(headers).b(body);
235
+ return b.build();
341
236
  };
342
237
  exports.se_ListCompositionsCommand = se_ListCompositionsCommand;
343
238
  const se_ListEncoderConfigurationsCommand = async (input, context) => {
344
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
+ const b = (0, core_1.requestBuilder)(input, context);
345
240
  const headers = {
346
241
  "content-type": "application/json",
347
242
  };
348
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListEncoderConfigurations";
243
+ b.bp("/ListEncoderConfigurations");
349
244
  let body;
350
245
  body = JSON.stringify((0, smithy_client_1.take)(input, {
351
246
  maxResults: [],
352
247
  nextToken: [],
353
248
  }));
354
- return new protocol_http_1.HttpRequest({
355
- protocol,
356
- hostname,
357
- port,
358
- method: "POST",
359
- headers,
360
- path: resolvedPath,
361
- body,
362
- });
249
+ b.m("POST").h(headers).b(body);
250
+ return b.build();
363
251
  };
364
252
  exports.se_ListEncoderConfigurationsCommand = se_ListEncoderConfigurationsCommand;
365
253
  const se_ListParticipantEventsCommand = async (input, context) => {
366
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
+ const b = (0, core_1.requestBuilder)(input, context);
367
255
  const headers = {
368
256
  "content-type": "application/json",
369
257
  };
370
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListParticipantEvents";
258
+ b.bp("/ListParticipantEvents");
371
259
  let body;
372
260
  body = JSON.stringify((0, smithy_client_1.take)(input, {
373
261
  maxResults: [],
@@ -376,23 +264,16 @@ const se_ListParticipantEventsCommand = async (input, context) => {
376
264
  sessionId: [],
377
265
  stageArn: [],
378
266
  }));
379
- return new protocol_http_1.HttpRequest({
380
- protocol,
381
- hostname,
382
- port,
383
- method: "POST",
384
- headers,
385
- path: resolvedPath,
386
- body,
387
- });
267
+ b.m("POST").h(headers).b(body);
268
+ return b.build();
388
269
  };
389
270
  exports.se_ListParticipantEventsCommand = se_ListParticipantEventsCommand;
390
271
  const se_ListParticipantsCommand = async (input, context) => {
391
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
+ const b = (0, core_1.requestBuilder)(input, context);
392
273
  const headers = {
393
274
  "content-type": "application/json",
394
275
  };
395
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListParticipants";
276
+ b.bp("/ListParticipants");
396
277
  let body;
397
278
  body = JSON.stringify((0, smithy_client_1.take)(input, {
398
279
  filterByPublished: [],
@@ -403,107 +284,72 @@ const se_ListParticipantsCommand = async (input, context) => {
403
284
  sessionId: [],
404
285
  stageArn: [],
405
286
  }));
406
- return new protocol_http_1.HttpRequest({
407
- protocol,
408
- hostname,
409
- port,
410
- method: "POST",
411
- headers,
412
- path: resolvedPath,
413
- body,
414
- });
287
+ b.m("POST").h(headers).b(body);
288
+ return b.build();
415
289
  };
416
290
  exports.se_ListParticipantsCommand = se_ListParticipantsCommand;
417
291
  const se_ListStagesCommand = async (input, context) => {
418
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_1.requestBuilder)(input, context);
419
293
  const headers = {
420
294
  "content-type": "application/json",
421
295
  };
422
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStages";
296
+ b.bp("/ListStages");
423
297
  let body;
424
298
  body = JSON.stringify((0, smithy_client_1.take)(input, {
425
299
  maxResults: [],
426
300
  nextToken: [],
427
301
  }));
428
- return new protocol_http_1.HttpRequest({
429
- protocol,
430
- hostname,
431
- port,
432
- method: "POST",
433
- headers,
434
- path: resolvedPath,
435
- body,
436
- });
302
+ b.m("POST").h(headers).b(body);
303
+ return b.build();
437
304
  };
438
305
  exports.se_ListStagesCommand = se_ListStagesCommand;
439
306
  const se_ListStageSessionsCommand = async (input, context) => {
440
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
307
+ const b = (0, core_1.requestBuilder)(input, context);
441
308
  const headers = {
442
309
  "content-type": "application/json",
443
310
  };
444
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStageSessions";
311
+ b.bp("/ListStageSessions");
445
312
  let body;
446
313
  body = JSON.stringify((0, smithy_client_1.take)(input, {
447
314
  maxResults: [],
448
315
  nextToken: [],
449
316
  stageArn: [],
450
317
  }));
451
- return new protocol_http_1.HttpRequest({
452
- protocol,
453
- hostname,
454
- port,
455
- method: "POST",
456
- headers,
457
- path: resolvedPath,
458
- body,
459
- });
318
+ b.m("POST").h(headers).b(body);
319
+ return b.build();
460
320
  };
461
321
  exports.se_ListStageSessionsCommand = se_ListStageSessionsCommand;
462
322
  const se_ListStorageConfigurationsCommand = async (input, context) => {
463
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
323
+ const b = (0, core_1.requestBuilder)(input, context);
464
324
  const headers = {
465
325
  "content-type": "application/json",
466
326
  };
467
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStorageConfigurations";
327
+ b.bp("/ListStorageConfigurations");
468
328
  let body;
469
329
  body = JSON.stringify((0, smithy_client_1.take)(input, {
470
330
  maxResults: [],
471
331
  nextToken: [],
472
332
  }));
473
- return new protocol_http_1.HttpRequest({
474
- protocol,
475
- hostname,
476
- port,
477
- method: "POST",
478
- headers,
479
- path: resolvedPath,
480
- body,
481
- });
333
+ b.m("POST").h(headers).b(body);
334
+ return b.build();
482
335
  };
483
336
  exports.se_ListStorageConfigurationsCommand = se_ListStorageConfigurationsCommand;
484
337
  const se_ListTagsForResourceCommand = async (input, context) => {
485
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
338
+ const b = (0, core_1.requestBuilder)(input, context);
486
339
  const headers = {};
487
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
488
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
340
+ b.bp("/tags/{resourceArn}");
341
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
489
342
  let body;
490
- return new protocol_http_1.HttpRequest({
491
- protocol,
492
- hostname,
493
- port,
494
- method: "GET",
495
- headers,
496
- path: resolvedPath,
497
- body,
498
- });
343
+ b.m("GET").h(headers).b(body);
344
+ return b.build();
499
345
  };
500
346
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
501
347
  const se_StartCompositionCommand = async (input, context) => {
502
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
348
+ const b = (0, core_1.requestBuilder)(input, context);
503
349
  const headers = {
504
350
  "content-type": "application/json",
505
351
  };
506
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartComposition";
352
+ b.bp("/StartComposition");
507
353
  let body;
508
354
  body = JSON.stringify((0, smithy_client_1.take)(input, {
509
355
  destinations: (_) => (0, smithy_client_1._json)(_),
@@ -512,104 +358,68 @@ const se_StartCompositionCommand = async (input, context) => {
512
358
  stageArn: [],
513
359
  tags: (_) => (0, smithy_client_1._json)(_),
514
360
  }));
515
- return new protocol_http_1.HttpRequest({
516
- protocol,
517
- hostname,
518
- port,
519
- method: "POST",
520
- headers,
521
- path: resolvedPath,
522
- body,
523
- });
361
+ b.m("POST").h(headers).b(body);
362
+ return b.build();
524
363
  };
525
364
  exports.se_StartCompositionCommand = se_StartCompositionCommand;
526
365
  const se_StopCompositionCommand = async (input, context) => {
527
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
366
+ const b = (0, core_1.requestBuilder)(input, context);
528
367
  const headers = {
529
368
  "content-type": "application/json",
530
369
  };
531
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopComposition";
370
+ b.bp("/StopComposition");
532
371
  let body;
533
372
  body = JSON.stringify((0, smithy_client_1.take)(input, {
534
373
  arn: [],
535
374
  }));
536
- return new protocol_http_1.HttpRequest({
537
- protocol,
538
- hostname,
539
- port,
540
- method: "POST",
541
- headers,
542
- path: resolvedPath,
543
- body,
544
- });
375
+ b.m("POST").h(headers).b(body);
376
+ return b.build();
545
377
  };
546
378
  exports.se_StopCompositionCommand = se_StopCompositionCommand;
547
379
  const se_TagResourceCommand = async (input, context) => {
548
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
380
+ const b = (0, core_1.requestBuilder)(input, context);
549
381
  const headers = {
550
382
  "content-type": "application/json",
551
383
  };
552
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
553
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
384
+ b.bp("/tags/{resourceArn}");
385
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
554
386
  let body;
555
387
  body = JSON.stringify((0, smithy_client_1.take)(input, {
556
388
  tags: (_) => (0, smithy_client_1._json)(_),
557
389
  }));
558
- return new protocol_http_1.HttpRequest({
559
- protocol,
560
- hostname,
561
- port,
562
- method: "POST",
563
- headers,
564
- path: resolvedPath,
565
- body,
566
- });
390
+ b.m("POST").h(headers).b(body);
391
+ return b.build();
567
392
  };
568
393
  exports.se_TagResourceCommand = se_TagResourceCommand;
569
394
  const se_UntagResourceCommand = async (input, context) => {
570
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
+ const b = (0, core_1.requestBuilder)(input, context);
571
396
  const headers = {};
572
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
573
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
397
+ b.bp("/tags/{resourceArn}");
398
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
574
399
  const query = (0, smithy_client_1.map)({
575
- tagKeys: [
400
+ [_tK]: [
576
401
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
577
- () => (input.tagKeys || []).map((_entry) => _entry),
402
+ () => (input[_tK] || []).map((_entry) => _entry),
578
403
  ],
579
404
  });
580
405
  let body;
581
- return new protocol_http_1.HttpRequest({
582
- protocol,
583
- hostname,
584
- port,
585
- method: "DELETE",
586
- headers,
587
- path: resolvedPath,
588
- query,
589
- body,
590
- });
406
+ b.m("DELETE").h(headers).q(query).b(body);
407
+ return b.build();
591
408
  };
592
409
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
593
410
  const se_UpdateStageCommand = async (input, context) => {
594
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
411
+ const b = (0, core_1.requestBuilder)(input, context);
595
412
  const headers = {
596
413
  "content-type": "application/json",
597
414
  };
598
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateStage";
415
+ b.bp("/UpdateStage");
599
416
  let body;
600
417
  body = JSON.stringify((0, smithy_client_1.take)(input, {
601
418
  arn: [],
602
419
  name: [],
603
420
  }));
604
- return new protocol_http_1.HttpRequest({
605
- protocol,
606
- hostname,
607
- port,
608
- method: "POST",
609
- headers,
610
- path: resolvedPath,
611
- body,
612
- });
421
+ b.m("POST").h(headers).b(body);
422
+ return b.build();
613
423
  };
614
424
  exports.se_UpdateStageCommand = se_UpdateStageCommand;
615
425
  const de_CreateEncoderConfigurationCommand = async (output, context) => {
@@ -2079,6 +1889,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2079
1889
  value !== "" &&
2080
1890
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2081
1891
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1892
+ const _tK = "tagKeys";
2082
1893
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2083
1894
  if (encoded.length) {
2084
1895
  return JSON.parse(encoded);