@aws-sdk/client-medialive 3.476.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,34 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_StartInputDeviceMaintenanceWindowCommand = exports.se_StartInputDeviceCommand = exports.se_StartChannelCommand = exports.se_RejectInputDeviceTransferCommand = exports.se_RebootInputDeviceCommand = exports.se_PurchaseOfferingCommand = exports.se_ListTagsForResourceCommand = exports.se_ListReservationsCommand = exports.se_ListOfferingsCommand = exports.se_ListMultiplexProgramsCommand = exports.se_ListMultiplexesCommand = exports.se_ListInputSecurityGroupsCommand = exports.se_ListInputsCommand = exports.se_ListInputDeviceTransfersCommand = exports.se_ListInputDevicesCommand = exports.se_ListChannelsCommand = exports.se_DescribeThumbnailsCommand = exports.se_DescribeScheduleCommand = exports.se_DescribeReservationCommand = exports.se_DescribeOfferingCommand = exports.se_DescribeMultiplexProgramCommand = exports.se_DescribeMultiplexCommand = exports.se_DescribeInputSecurityGroupCommand = exports.se_DescribeInputDeviceThumbnailCommand = exports.se_DescribeInputDeviceCommand = exports.se_DescribeInputCommand = exports.se_DescribeChannelCommand = exports.se_DescribeAccountConfigurationCommand = exports.se_DeleteTagsCommand = exports.se_DeleteScheduleCommand = exports.se_DeleteReservationCommand = exports.se_DeleteMultiplexProgramCommand = exports.se_DeleteMultiplexCommand = exports.se_DeleteInputSecurityGroupCommand = exports.se_DeleteInputCommand = exports.se_DeleteChannelCommand = exports.se_CreateTagsCommand = exports.se_CreatePartnerInputCommand = exports.se_CreateMultiplexProgramCommand = exports.se_CreateMultiplexCommand = exports.se_CreateInputSecurityGroupCommand = exports.se_CreateInputCommand = exports.se_CreateChannelCommand = exports.se_ClaimDeviceCommand = exports.se_CancelInputDeviceTransferCommand = exports.se_BatchUpdateScheduleCommand = exports.se_BatchStopCommand = exports.se_BatchStartCommand = exports.se_BatchDeleteCommand = exports.se_AcceptInputDeviceTransferCommand = void 0;
4
4
  exports.de_ListInputDevicesCommand = exports.de_ListChannelsCommand = exports.de_DescribeThumbnailsCommand = exports.de_DescribeScheduleCommand = exports.de_DescribeReservationCommand = exports.de_DescribeOfferingCommand = exports.de_DescribeMultiplexProgramCommand = exports.de_DescribeMultiplexCommand = exports.de_DescribeInputSecurityGroupCommand = exports.de_DescribeInputDeviceThumbnailCommand = exports.de_DescribeInputDeviceCommand = exports.de_DescribeInputCommand = exports.de_DescribeChannelCommand = exports.de_DescribeAccountConfigurationCommand = exports.de_DeleteTagsCommand = exports.de_DeleteScheduleCommand = exports.de_DeleteReservationCommand = exports.de_DeleteMultiplexProgramCommand = exports.de_DeleteMultiplexCommand = exports.de_DeleteInputSecurityGroupCommand = exports.de_DeleteInputCommand = exports.de_DeleteChannelCommand = exports.de_CreateTagsCommand = exports.de_CreatePartnerInputCommand = exports.de_CreateMultiplexProgramCommand = exports.de_CreateMultiplexCommand = exports.de_CreateInputSecurityGroupCommand = exports.de_CreateInputCommand = exports.de_CreateChannelCommand = exports.de_ClaimDeviceCommand = exports.de_CancelInputDeviceTransferCommand = exports.de_BatchUpdateScheduleCommand = exports.de_BatchStopCommand = exports.de_BatchStartCommand = exports.de_BatchDeleteCommand = exports.de_AcceptInputDeviceTransferCommand = exports.se_UpdateReservationCommand = exports.se_UpdateMultiplexProgramCommand = exports.se_UpdateMultiplexCommand = exports.se_UpdateInputSecurityGroupCommand = exports.se_UpdateInputDeviceCommand = exports.se_UpdateInputCommand = exports.se_UpdateChannelClassCommand = exports.se_UpdateChannelCommand = exports.se_UpdateAccountConfigurationCommand = exports.se_TransferInputDeviceCommand = exports.se_StopMultiplexCommand = exports.se_StopInputDeviceCommand = exports.se_StopChannelCommand = exports.se_StartMultiplexCommand = void 0;
5
5
  exports.de_UpdateReservationCommand = exports.de_UpdateMultiplexProgramCommand = exports.de_UpdateMultiplexCommand = exports.de_UpdateInputSecurityGroupCommand = exports.de_UpdateInputDeviceCommand = exports.de_UpdateInputCommand = exports.de_UpdateChannelClassCommand = exports.de_UpdateChannelCommand = exports.de_UpdateAccountConfigurationCommand = exports.de_TransferInputDeviceCommand = exports.de_StopMultiplexCommand = exports.de_StopInputDeviceCommand = exports.de_StopChannelCommand = exports.de_StartMultiplexCommand = exports.de_StartInputDeviceMaintenanceWindowCommand = exports.de_StartInputDeviceCommand = exports.de_StartChannelCommand = exports.de_RejectInputDeviceTransferCommand = exports.de_RebootInputDeviceCommand = exports.de_PurchaseOfferingCommand = exports.de_ListTagsForResourceCommand = exports.de_ListReservationsCommand = exports.de_ListOfferingsCommand = exports.de_ListMultiplexProgramsCommand = exports.de_ListMultiplexesCommand = exports.de_ListInputSecurityGroupsCommand = exports.de_ListInputsCommand = exports.de_ListInputDeviceTransfersCommand = void 0;
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
9
9
  const MediaLiveServiceException_1 = require("../models/MediaLiveServiceException");
10
10
  const models_1_1 = require("../models/models_1");
11
11
  const se_AcceptInputDeviceTransferCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
13
13
  const headers = {};
14
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/accept";
15
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
14
+ b.bp("/prod/inputDevices/{InputDeviceId}/accept");
15
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
16
16
  let body;
17
- return new protocol_http_1.HttpRequest({
18
- protocol,
19
- hostname,
20
- port,
21
- method: "POST",
22
- headers,
23
- path: resolvedPath,
24
- body,
25
- });
17
+ b.m("POST").h(headers).b(body);
18
+ return b.build();
26
19
  };
27
20
  exports.se_AcceptInputDeviceTransferCommand = se_AcceptInputDeviceTransferCommand;
28
21
  const se_BatchDeleteCommand = async (input, context) => {
29
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
22
+ const b = (0, core_1.requestBuilder)(input, context);
30
23
  const headers = {
31
24
  "content-type": "application/json",
32
25
  };
33
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/delete";
26
+ b.bp("/prod/batch/delete");
34
27
  let body;
35
28
  body = JSON.stringify((0, smithy_client_1.take)(input, {
36
29
  channelIds: [, (_) => (0, smithy_client_1._json)(_), `ChannelIds`],
@@ -38,128 +31,86 @@ const se_BatchDeleteCommand = async (input, context) => {
38
31
  inputSecurityGroupIds: [, (_) => (0, smithy_client_1._json)(_), `InputSecurityGroupIds`],
39
32
  multiplexIds: [, (_) => (0, smithy_client_1._json)(_), `MultiplexIds`],
40
33
  }));
41
- return new protocol_http_1.HttpRequest({
42
- protocol,
43
- hostname,
44
- port,
45
- method: "POST",
46
- headers,
47
- path: resolvedPath,
48
- body,
49
- });
34
+ b.m("POST").h(headers).b(body);
35
+ return b.build();
50
36
  };
51
37
  exports.se_BatchDeleteCommand = se_BatchDeleteCommand;
52
38
  const se_BatchStartCommand = async (input, context) => {
53
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
+ const b = (0, core_1.requestBuilder)(input, context);
54
40
  const headers = {
55
41
  "content-type": "application/json",
56
42
  };
57
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/start";
43
+ b.bp("/prod/batch/start");
58
44
  let body;
59
45
  body = JSON.stringify((0, smithy_client_1.take)(input, {
60
46
  channelIds: [, (_) => (0, smithy_client_1._json)(_), `ChannelIds`],
61
47
  multiplexIds: [, (_) => (0, smithy_client_1._json)(_), `MultiplexIds`],
62
48
  }));
63
- return new protocol_http_1.HttpRequest({
64
- protocol,
65
- hostname,
66
- port,
67
- method: "POST",
68
- headers,
69
- path: resolvedPath,
70
- body,
71
- });
49
+ b.m("POST").h(headers).b(body);
50
+ return b.build();
72
51
  };
73
52
  exports.se_BatchStartCommand = se_BatchStartCommand;
74
53
  const se_BatchStopCommand = async (input, context) => {
75
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = (0, core_1.requestBuilder)(input, context);
76
55
  const headers = {
77
56
  "content-type": "application/json",
78
57
  };
79
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/stop";
58
+ b.bp("/prod/batch/stop");
80
59
  let body;
81
60
  body = JSON.stringify((0, smithy_client_1.take)(input, {
82
61
  channelIds: [, (_) => (0, smithy_client_1._json)(_), `ChannelIds`],
83
62
  multiplexIds: [, (_) => (0, smithy_client_1._json)(_), `MultiplexIds`],
84
63
  }));
85
- return new protocol_http_1.HttpRequest({
86
- protocol,
87
- hostname,
88
- port,
89
- method: "POST",
90
- headers,
91
- path: resolvedPath,
92
- body,
93
- });
64
+ b.m("POST").h(headers).b(body);
65
+ return b.build();
94
66
  };
95
67
  exports.se_BatchStopCommand = se_BatchStopCommand;
96
68
  const se_BatchUpdateScheduleCommand = async (input, context) => {
97
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = (0, core_1.requestBuilder)(input, context);
98
70
  const headers = {
99
71
  "content-type": "application/json",
100
72
  };
101
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
102
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
73
+ b.bp("/prod/channels/{ChannelId}/schedule");
74
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
103
75
  let body;
104
76
  body = JSON.stringify((0, smithy_client_1.take)(input, {
105
77
  creates: [, (_) => se_BatchScheduleActionCreateRequest(_, context), `Creates`],
106
78
  deletes: [, (_) => se_BatchScheduleActionDeleteRequest(_, context), `Deletes`],
107
79
  }));
108
- return new protocol_http_1.HttpRequest({
109
- protocol,
110
- hostname,
111
- port,
112
- method: "PUT",
113
- headers,
114
- path: resolvedPath,
115
- body,
116
- });
80
+ b.m("PUT").h(headers).b(body);
81
+ return b.build();
117
82
  };
118
83
  exports.se_BatchUpdateScheduleCommand = se_BatchUpdateScheduleCommand;
119
84
  const se_CancelInputDeviceTransferCommand = async (input, context) => {
120
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
+ const b = (0, core_1.requestBuilder)(input, context);
121
86
  const headers = {};
122
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/cancel";
123
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
87
+ b.bp("/prod/inputDevices/{InputDeviceId}/cancel");
88
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
124
89
  let body;
125
- return new protocol_http_1.HttpRequest({
126
- protocol,
127
- hostname,
128
- port,
129
- method: "POST",
130
- headers,
131
- path: resolvedPath,
132
- body,
133
- });
90
+ b.m("POST").h(headers).b(body);
91
+ return b.build();
134
92
  };
135
93
  exports.se_CancelInputDeviceTransferCommand = se_CancelInputDeviceTransferCommand;
136
94
  const se_ClaimDeviceCommand = async (input, context) => {
137
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
95
+ const b = (0, core_1.requestBuilder)(input, context);
138
96
  const headers = {
139
97
  "content-type": "application/json",
140
98
  };
141
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/claimDevice";
99
+ b.bp("/prod/claimDevice");
142
100
  let body;
143
101
  body = JSON.stringify((0, smithy_client_1.take)(input, {
144
102
  id: [, , `Id`],
145
103
  }));
146
- return new protocol_http_1.HttpRequest({
147
- protocol,
148
- hostname,
149
- port,
150
- method: "POST",
151
- headers,
152
- path: resolvedPath,
153
- body,
154
- });
104
+ b.m("POST").h(headers).b(body);
105
+ return b.build();
155
106
  };
156
107
  exports.se_ClaimDeviceCommand = se_ClaimDeviceCommand;
157
108
  const se_CreateChannelCommand = async (input, context) => {
158
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = (0, core_1.requestBuilder)(input, context);
159
110
  const headers = {
160
111
  "content-type": "application/json",
161
112
  };
162
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels";
113
+ b.bp("/prod/channels");
163
114
  let body;
164
115
  body = JSON.stringify((0, smithy_client_1.take)(input, {
165
116
  cdiInputSpecification: [, (_) => se_CdiInputSpecification(_, context), `CdiInputSpecification`],
@@ -177,23 +128,16 @@ const se_CreateChannelCommand = async (input, context) => {
177
128
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
178
129
  vpc: [, (_) => se_VpcOutputSettings(_, context), `Vpc`],
179
130
  }));
180
- return new protocol_http_1.HttpRequest({
181
- protocol,
182
- hostname,
183
- port,
184
- method: "POST",
185
- headers,
186
- path: resolvedPath,
187
- body,
188
- });
131
+ b.m("POST").h(headers).b(body);
132
+ return b.build();
189
133
  };
190
134
  exports.se_CreateChannelCommand = se_CreateChannelCommand;
191
135
  const se_CreateInputCommand = async (input, context) => {
192
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = (0, core_1.requestBuilder)(input, context);
193
137
  const headers = {
194
138
  "content-type": "application/json",
195
139
  };
196
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs";
140
+ b.bp("/prod/inputs");
197
141
  let body;
198
142
  body = JSON.stringify((0, smithy_client_1.take)(input, {
199
143
  destinations: [, (_) => se___listOfInputDestinationRequest(_, context), `Destinations`],
@@ -208,45 +152,31 @@ const se_CreateInputCommand = async (input, context) => {
208
152
  type: [, , `Type`],
209
153
  vpc: [, (_) => se_InputVpcRequest(_, context), `Vpc`],
210
154
  }));
211
- return new protocol_http_1.HttpRequest({
212
- protocol,
213
- hostname,
214
- port,
215
- method: "POST",
216
- headers,
217
- path: resolvedPath,
218
- body,
219
- });
155
+ b.m("POST").h(headers).b(body);
156
+ return b.build();
220
157
  };
221
158
  exports.se_CreateInputCommand = se_CreateInputCommand;
222
159
  const se_CreateInputSecurityGroupCommand = async (input, context) => {
223
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
+ const b = (0, core_1.requestBuilder)(input, context);
224
161
  const headers = {
225
162
  "content-type": "application/json",
226
163
  };
227
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputSecurityGroups";
164
+ b.bp("/prod/inputSecurityGroups");
228
165
  let body;
229
166
  body = JSON.stringify((0, smithy_client_1.take)(input, {
230
167
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
231
168
  whitelistRules: [, (_) => se___listOfInputWhitelistRuleCidr(_, context), `WhitelistRules`],
232
169
  }));
233
- return new protocol_http_1.HttpRequest({
234
- protocol,
235
- hostname,
236
- port,
237
- method: "POST",
238
- headers,
239
- path: resolvedPath,
240
- body,
241
- });
170
+ b.m("POST").h(headers).b(body);
171
+ return b.build();
242
172
  };
243
173
  exports.se_CreateInputSecurityGroupCommand = se_CreateInputSecurityGroupCommand;
244
174
  const se_CreateMultiplexCommand = async (input, context) => {
245
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = (0, core_1.requestBuilder)(input, context);
246
176
  const headers = {
247
177
  "content-type": "application/json",
248
178
  };
249
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes";
179
+ b.bp("/prod/multiplexes");
250
180
  let body;
251
181
  body = JSON.stringify((0, smithy_client_1.take)(input, {
252
182
  availabilityZones: [, (_) => (0, smithy_client_1._json)(_), `AvailabilityZones`],
@@ -255,687 +185,432 @@ const se_CreateMultiplexCommand = async (input, context) => {
255
185
  requestId: [true, (_) => _ ?? (0, uuid_1.v4)(), `RequestId`],
256
186
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
257
187
  }));
258
- return new protocol_http_1.HttpRequest({
259
- protocol,
260
- hostname,
261
- port,
262
- method: "POST",
263
- headers,
264
- path: resolvedPath,
265
- body,
266
- });
188
+ b.m("POST").h(headers).b(body);
189
+ return b.build();
267
190
  };
268
191
  exports.se_CreateMultiplexCommand = se_CreateMultiplexCommand;
269
192
  const se_CreateMultiplexProgramCommand = async (input, context) => {
270
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_1.requestBuilder)(input, context);
271
194
  const headers = {
272
195
  "content-type": "application/json",
273
196
  };
274
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/programs";
275
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
197
+ b.bp("/prod/multiplexes/{MultiplexId}/programs");
198
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
276
199
  let body;
277
200
  body = JSON.stringify((0, smithy_client_1.take)(input, {
278
201
  multiplexProgramSettings: [, (_) => se_MultiplexProgramSettings(_, context), `MultiplexProgramSettings`],
279
202
  programName: [, , `ProgramName`],
280
203
  requestId: [true, (_) => _ ?? (0, uuid_1.v4)(), `RequestId`],
281
204
  }));
282
- return new protocol_http_1.HttpRequest({
283
- protocol,
284
- hostname,
285
- port,
286
- method: "POST",
287
- headers,
288
- path: resolvedPath,
289
- body,
290
- });
205
+ b.m("POST").h(headers).b(body);
206
+ return b.build();
291
207
  };
292
208
  exports.se_CreateMultiplexProgramCommand = se_CreateMultiplexProgramCommand;
293
209
  const se_CreatePartnerInputCommand = async (input, context) => {
294
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const b = (0, core_1.requestBuilder)(input, context);
295
211
  const headers = {
296
212
  "content-type": "application/json",
297
213
  };
298
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}/partners";
299
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputId", () => input.InputId, "{InputId}", false);
214
+ b.bp("/prod/inputs/{InputId}/partners");
215
+ b.p("InputId", () => input.InputId, "{InputId}", false);
300
216
  let body;
301
217
  body = JSON.stringify((0, smithy_client_1.take)(input, {
302
218
  requestId: [true, (_) => _ ?? (0, uuid_1.v4)(), `RequestId`],
303
219
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
304
220
  }));
305
- return new protocol_http_1.HttpRequest({
306
- protocol,
307
- hostname,
308
- port,
309
- method: "POST",
310
- headers,
311
- path: resolvedPath,
312
- body,
313
- });
221
+ b.m("POST").h(headers).b(body);
222
+ return b.build();
314
223
  };
315
224
  exports.se_CreatePartnerInputCommand = se_CreatePartnerInputCommand;
316
225
  const se_CreateTagsCommand = async (input, context) => {
317
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
226
+ const b = (0, core_1.requestBuilder)(input, context);
318
227
  const headers = {
319
228
  "content-type": "application/json",
320
229
  };
321
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
322
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
230
+ b.bp("/prod/tags/{ResourceArn}");
231
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
323
232
  let body;
324
233
  body = JSON.stringify((0, smithy_client_1.take)(input, {
325
234
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
326
235
  }));
327
- return new protocol_http_1.HttpRequest({
328
- protocol,
329
- hostname,
330
- port,
331
- method: "POST",
332
- headers,
333
- path: resolvedPath,
334
- body,
335
- });
236
+ b.m("POST").h(headers).b(body);
237
+ return b.build();
336
238
  };
337
239
  exports.se_CreateTagsCommand = se_CreateTagsCommand;
338
240
  const se_DeleteChannelCommand = async (input, context) => {
339
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
241
+ const b = (0, core_1.requestBuilder)(input, context);
340
242
  const headers = {};
341
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
342
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
243
+ b.bp("/prod/channels/{ChannelId}");
244
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
343
245
  let body;
344
- return new protocol_http_1.HttpRequest({
345
- protocol,
346
- hostname,
347
- port,
348
- method: "DELETE",
349
- headers,
350
- path: resolvedPath,
351
- body,
352
- });
246
+ b.m("DELETE").h(headers).b(body);
247
+ return b.build();
353
248
  };
354
249
  exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
355
250
  const se_DeleteInputCommand = async (input, context) => {
356
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
251
+ const b = (0, core_1.requestBuilder)(input, context);
357
252
  const headers = {};
358
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
359
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputId", () => input.InputId, "{InputId}", false);
253
+ b.bp("/prod/inputs/{InputId}");
254
+ b.p("InputId", () => input.InputId, "{InputId}", false);
360
255
  let body;
361
- return new protocol_http_1.HttpRequest({
362
- protocol,
363
- hostname,
364
- port,
365
- method: "DELETE",
366
- headers,
367
- path: resolvedPath,
368
- body,
369
- });
256
+ b.m("DELETE").h(headers).b(body);
257
+ return b.build();
370
258
  };
371
259
  exports.se_DeleteInputCommand = se_DeleteInputCommand;
372
260
  const se_DeleteInputSecurityGroupCommand = async (input, context) => {
373
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
261
+ const b = (0, core_1.requestBuilder)(input, context);
374
262
  const headers = {};
375
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
376
- "/prod/inputSecurityGroups/{InputSecurityGroupId}";
377
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
263
+ b.bp("/prod/inputSecurityGroups/{InputSecurityGroupId}");
264
+ b.p("InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
378
265
  let body;
379
- return new protocol_http_1.HttpRequest({
380
- protocol,
381
- hostname,
382
- port,
383
- method: "DELETE",
384
- headers,
385
- path: resolvedPath,
386
- body,
387
- });
266
+ b.m("DELETE").h(headers).b(body);
267
+ return b.build();
388
268
  };
389
269
  exports.se_DeleteInputSecurityGroupCommand = se_DeleteInputSecurityGroupCommand;
390
270
  const se_DeleteMultiplexCommand = async (input, context) => {
391
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
+ const b = (0, core_1.requestBuilder)(input, context);
392
272
  const headers = {};
393
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
394
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
273
+ b.bp("/prod/multiplexes/{MultiplexId}");
274
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
395
275
  let body;
396
- return new protocol_http_1.HttpRequest({
397
- protocol,
398
- hostname,
399
- port,
400
- method: "DELETE",
401
- headers,
402
- path: resolvedPath,
403
- body,
404
- });
276
+ b.m("DELETE").h(headers).b(body);
277
+ return b.build();
405
278
  };
406
279
  exports.se_DeleteMultiplexCommand = se_DeleteMultiplexCommand;
407
280
  const se_DeleteMultiplexProgramCommand = async (input, context) => {
408
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const b = (0, core_1.requestBuilder)(input, context);
409
282
  const headers = {};
410
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
411
- "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}";
412
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
413
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
283
+ b.bp("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}");
284
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
285
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
414
286
  let body;
415
- return new protocol_http_1.HttpRequest({
416
- protocol,
417
- hostname,
418
- port,
419
- method: "DELETE",
420
- headers,
421
- path: resolvedPath,
422
- body,
423
- });
287
+ b.m("DELETE").h(headers).b(body);
288
+ return b.build();
424
289
  };
425
290
  exports.se_DeleteMultiplexProgramCommand = se_DeleteMultiplexProgramCommand;
426
291
  const se_DeleteReservationCommand = async (input, context) => {
427
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_1.requestBuilder)(input, context);
428
293
  const headers = {};
429
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
430
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReservationId", () => input.ReservationId, "{ReservationId}", false);
294
+ b.bp("/prod/reservations/{ReservationId}");
295
+ b.p("ReservationId", () => input.ReservationId, "{ReservationId}", false);
431
296
  let body;
432
- return new protocol_http_1.HttpRequest({
433
- protocol,
434
- hostname,
435
- port,
436
- method: "DELETE",
437
- headers,
438
- path: resolvedPath,
439
- body,
440
- });
297
+ b.m("DELETE").h(headers).b(body);
298
+ return b.build();
441
299
  };
442
300
  exports.se_DeleteReservationCommand = se_DeleteReservationCommand;
443
301
  const se_DeleteScheduleCommand = async (input, context) => {
444
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
302
+ const b = (0, core_1.requestBuilder)(input, context);
445
303
  const headers = {};
446
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
447
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
304
+ b.bp("/prod/channels/{ChannelId}/schedule");
305
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
448
306
  let body;
449
- return new protocol_http_1.HttpRequest({
450
- protocol,
451
- hostname,
452
- port,
453
- method: "DELETE",
454
- headers,
455
- path: resolvedPath,
456
- body,
457
- });
307
+ b.m("DELETE").h(headers).b(body);
308
+ return b.build();
458
309
  };
459
310
  exports.se_DeleteScheduleCommand = se_DeleteScheduleCommand;
460
311
  const se_DeleteTagsCommand = async (input, context) => {
461
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
312
+ const b = (0, core_1.requestBuilder)(input, context);
462
313
  const headers = {};
463
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
464
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
314
+ b.bp("/prod/tags/{ResourceArn}");
315
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
465
316
  const query = (0, smithy_client_1.map)({
466
- tagKeys: [
317
+ [_tK]: [
467
318
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
468
- () => (input.TagKeys || []).map((_entry) => _entry),
319
+ () => (input[_TK] || []).map((_entry) => _entry),
469
320
  ],
470
321
  });
471
322
  let body;
472
- return new protocol_http_1.HttpRequest({
473
- protocol,
474
- hostname,
475
- port,
476
- method: "DELETE",
477
- headers,
478
- path: resolvedPath,
479
- query,
480
- body,
481
- });
323
+ b.m("DELETE").h(headers).q(query).b(body);
324
+ return b.build();
482
325
  };
483
326
  exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
484
327
  const se_DescribeAccountConfigurationCommand = async (input, context) => {
485
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = (0, core_1.requestBuilder)(input, context);
486
329
  const headers = {
487
330
  "content-type": "application/json",
488
331
  };
489
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/accountConfiguration";
332
+ b.bp("/prod/accountConfiguration");
490
333
  let body;
491
334
  body = "";
492
- return new protocol_http_1.HttpRequest({
493
- protocol,
494
- hostname,
495
- port,
496
- method: "GET",
497
- headers,
498
- path: resolvedPath,
499
- body,
500
- });
335
+ b.m("GET").h(headers).b(body);
336
+ return b.build();
501
337
  };
502
338
  exports.se_DescribeAccountConfigurationCommand = se_DescribeAccountConfigurationCommand;
503
339
  const se_DescribeChannelCommand = async (input, context) => {
504
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
340
+ const b = (0, core_1.requestBuilder)(input, context);
505
341
  const headers = {};
506
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
507
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
342
+ b.bp("/prod/channels/{ChannelId}");
343
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
508
344
  let body;
509
- return new protocol_http_1.HttpRequest({
510
- protocol,
511
- hostname,
512
- port,
513
- method: "GET",
514
- headers,
515
- path: resolvedPath,
516
- body,
517
- });
345
+ b.m("GET").h(headers).b(body);
346
+ return b.build();
518
347
  };
519
348
  exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
520
349
  const se_DescribeInputCommand = async (input, context) => {
521
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
350
+ const b = (0, core_1.requestBuilder)(input, context);
522
351
  const headers = {};
523
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
524
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputId", () => input.InputId, "{InputId}", false);
352
+ b.bp("/prod/inputs/{InputId}");
353
+ b.p("InputId", () => input.InputId, "{InputId}", false);
525
354
  let body;
526
- return new protocol_http_1.HttpRequest({
527
- protocol,
528
- hostname,
529
- port,
530
- method: "GET",
531
- headers,
532
- path: resolvedPath,
533
- body,
534
- });
355
+ b.m("GET").h(headers).b(body);
356
+ return b.build();
535
357
  };
536
358
  exports.se_DescribeInputCommand = se_DescribeInputCommand;
537
359
  const se_DescribeInputDeviceCommand = async (input, context) => {
538
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
360
+ const b = (0, core_1.requestBuilder)(input, context);
539
361
  const headers = {};
540
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}";
541
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
362
+ b.bp("/prod/inputDevices/{InputDeviceId}");
363
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
542
364
  let body;
543
- return new protocol_http_1.HttpRequest({
544
- protocol,
545
- hostname,
546
- port,
547
- method: "GET",
548
- headers,
549
- path: resolvedPath,
550
- body,
551
- });
365
+ b.m("GET").h(headers).b(body);
366
+ return b.build();
552
367
  };
553
368
  exports.se_DescribeInputDeviceCommand = se_DescribeInputDeviceCommand;
554
369
  const se_DescribeInputDeviceThumbnailCommand = async (input, context) => {
555
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
370
+ const b = (0, core_1.requestBuilder)(input, context);
556
371
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
557
- accept: input.Accept,
372
+ [_a]: input[_A],
558
373
  });
559
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
560
- "/prod/inputDevices/{InputDeviceId}/thumbnailData";
561
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
374
+ b.bp("/prod/inputDevices/{InputDeviceId}/thumbnailData");
375
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
562
376
  let body;
563
- return new protocol_http_1.HttpRequest({
564
- protocol,
565
- hostname,
566
- port,
567
- method: "GET",
568
- headers,
569
- path: resolvedPath,
570
- body,
571
- });
377
+ b.m("GET").h(headers).b(body);
378
+ return b.build();
572
379
  };
573
380
  exports.se_DescribeInputDeviceThumbnailCommand = se_DescribeInputDeviceThumbnailCommand;
574
381
  const se_DescribeInputSecurityGroupCommand = async (input, context) => {
575
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
382
+ const b = (0, core_1.requestBuilder)(input, context);
576
383
  const headers = {};
577
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
578
- "/prod/inputSecurityGroups/{InputSecurityGroupId}";
579
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
384
+ b.bp("/prod/inputSecurityGroups/{InputSecurityGroupId}");
385
+ b.p("InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
580
386
  let body;
581
- return new protocol_http_1.HttpRequest({
582
- protocol,
583
- hostname,
584
- port,
585
- method: "GET",
586
- headers,
587
- path: resolvedPath,
588
- body,
589
- });
387
+ b.m("GET").h(headers).b(body);
388
+ return b.build();
590
389
  };
591
390
  exports.se_DescribeInputSecurityGroupCommand = se_DescribeInputSecurityGroupCommand;
592
391
  const se_DescribeMultiplexCommand = async (input, context) => {
593
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
392
+ const b = (0, core_1.requestBuilder)(input, context);
594
393
  const headers = {};
595
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
596
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
394
+ b.bp("/prod/multiplexes/{MultiplexId}");
395
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
597
396
  let body;
598
- return new protocol_http_1.HttpRequest({
599
- protocol,
600
- hostname,
601
- port,
602
- method: "GET",
603
- headers,
604
- path: resolvedPath,
605
- body,
606
- });
397
+ b.m("GET").h(headers).b(body);
398
+ return b.build();
607
399
  };
608
400
  exports.se_DescribeMultiplexCommand = se_DescribeMultiplexCommand;
609
401
  const se_DescribeMultiplexProgramCommand = async (input, context) => {
610
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
402
+ const b = (0, core_1.requestBuilder)(input, context);
611
403
  const headers = {};
612
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
613
- "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}";
614
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
615
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
404
+ b.bp("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}");
405
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
406
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
616
407
  let body;
617
- return new protocol_http_1.HttpRequest({
618
- protocol,
619
- hostname,
620
- port,
621
- method: "GET",
622
- headers,
623
- path: resolvedPath,
624
- body,
625
- });
408
+ b.m("GET").h(headers).b(body);
409
+ return b.build();
626
410
  };
627
411
  exports.se_DescribeMultiplexProgramCommand = se_DescribeMultiplexProgramCommand;
628
412
  const se_DescribeOfferingCommand = async (input, context) => {
629
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
413
+ const b = (0, core_1.requestBuilder)(input, context);
630
414
  const headers = {};
631
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings/{OfferingId}";
632
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OfferingId", () => input.OfferingId, "{OfferingId}", false);
415
+ b.bp("/prod/offerings/{OfferingId}");
416
+ b.p("OfferingId", () => input.OfferingId, "{OfferingId}", false);
633
417
  let body;
634
- return new protocol_http_1.HttpRequest({
635
- protocol,
636
- hostname,
637
- port,
638
- method: "GET",
639
- headers,
640
- path: resolvedPath,
641
- body,
642
- });
418
+ b.m("GET").h(headers).b(body);
419
+ return b.build();
643
420
  };
644
421
  exports.se_DescribeOfferingCommand = se_DescribeOfferingCommand;
645
422
  const se_DescribeReservationCommand = async (input, context) => {
646
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
423
+ const b = (0, core_1.requestBuilder)(input, context);
647
424
  const headers = {};
648
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
649
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReservationId", () => input.ReservationId, "{ReservationId}", false);
425
+ b.bp("/prod/reservations/{ReservationId}");
426
+ b.p("ReservationId", () => input.ReservationId, "{ReservationId}", false);
650
427
  let body;
651
- return new protocol_http_1.HttpRequest({
652
- protocol,
653
- hostname,
654
- port,
655
- method: "GET",
656
- headers,
657
- path: resolvedPath,
658
- body,
659
- });
428
+ b.m("GET").h(headers).b(body);
429
+ return b.build();
660
430
  };
661
431
  exports.se_DescribeReservationCommand = se_DescribeReservationCommand;
662
432
  const se_DescribeScheduleCommand = async (input, context) => {
663
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
433
+ const b = (0, core_1.requestBuilder)(input, context);
664
434
  const headers = {};
665
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
666
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
435
+ b.bp("/prod/channels/{ChannelId}/schedule");
436
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
667
437
  const query = (0, smithy_client_1.map)({
668
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
669
- nextToken: [, input.NextToken],
438
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
439
+ [_nT]: [, input[_NT]],
670
440
  });
671
441
  let body;
672
- return new protocol_http_1.HttpRequest({
673
- protocol,
674
- hostname,
675
- port,
676
- method: "GET",
677
- headers,
678
- path: resolvedPath,
679
- query,
680
- body,
681
- });
442
+ b.m("GET").h(headers).q(query).b(body);
443
+ return b.build();
682
444
  };
683
445
  exports.se_DescribeScheduleCommand = se_DescribeScheduleCommand;
684
446
  const se_DescribeThumbnailsCommand = async (input, context) => {
685
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
447
+ const b = (0, core_1.requestBuilder)(input, context);
686
448
  const headers = {};
687
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/thumbnails";
688
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
449
+ b.bp("/prod/channels/{ChannelId}/thumbnails");
450
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
689
451
  const query = (0, smithy_client_1.map)({
690
- pipelineId: [, (0, smithy_client_1.expectNonNull)(input.PipelineId, `PipelineId`)],
691
- thumbnailType: [, (0, smithy_client_1.expectNonNull)(input.ThumbnailType, `ThumbnailType`)],
452
+ [_pI]: [, (0, smithy_client_1.expectNonNull)(input[_PI], `PipelineId`)],
453
+ [_tT]: [, (0, smithy_client_1.expectNonNull)(input[_TT], `ThumbnailType`)],
692
454
  });
693
455
  let body;
694
- return new protocol_http_1.HttpRequest({
695
- protocol,
696
- hostname,
697
- port,
698
- method: "GET",
699
- headers,
700
- path: resolvedPath,
701
- query,
702
- body,
703
- });
456
+ b.m("GET").h(headers).q(query).b(body);
457
+ return b.build();
704
458
  };
705
459
  exports.se_DescribeThumbnailsCommand = se_DescribeThumbnailsCommand;
706
460
  const se_ListChannelsCommand = async (input, context) => {
707
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
461
+ const b = (0, core_1.requestBuilder)(input, context);
708
462
  const headers = {};
709
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels";
463
+ b.bp("/prod/channels");
710
464
  const query = (0, smithy_client_1.map)({
711
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
712
- nextToken: [, input.NextToken],
465
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
466
+ [_nT]: [, input[_NT]],
713
467
  });
714
468
  let body;
715
- return new protocol_http_1.HttpRequest({
716
- protocol,
717
- hostname,
718
- port,
719
- method: "GET",
720
- headers,
721
- path: resolvedPath,
722
- query,
723
- body,
724
- });
469
+ b.m("GET").h(headers).q(query).b(body);
470
+ return b.build();
725
471
  };
726
472
  exports.se_ListChannelsCommand = se_ListChannelsCommand;
727
473
  const se_ListInputDevicesCommand = async (input, context) => {
728
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
474
+ const b = (0, core_1.requestBuilder)(input, context);
729
475
  const headers = {};
730
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices";
476
+ b.bp("/prod/inputDevices");
731
477
  const query = (0, smithy_client_1.map)({
732
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
733
- nextToken: [, input.NextToken],
478
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
479
+ [_nT]: [, input[_NT]],
734
480
  });
735
481
  let body;
736
- return new protocol_http_1.HttpRequest({
737
- protocol,
738
- hostname,
739
- port,
740
- method: "GET",
741
- headers,
742
- path: resolvedPath,
743
- query,
744
- body,
745
- });
482
+ b.m("GET").h(headers).q(query).b(body);
483
+ return b.build();
746
484
  };
747
485
  exports.se_ListInputDevicesCommand = se_ListInputDevicesCommand;
748
486
  const se_ListInputDeviceTransfersCommand = async (input, context) => {
749
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
487
+ const b = (0, core_1.requestBuilder)(input, context);
750
488
  const headers = {};
751
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDeviceTransfers";
489
+ b.bp("/prod/inputDeviceTransfers");
752
490
  const query = (0, smithy_client_1.map)({
753
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
754
- nextToken: [, input.NextToken],
755
- transferType: [, (0, smithy_client_1.expectNonNull)(input.TransferType, `TransferType`)],
491
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
492
+ [_nT]: [, input[_NT]],
493
+ [_tTr]: [, (0, smithy_client_1.expectNonNull)(input[_TTr], `TransferType`)],
756
494
  });
757
495
  let body;
758
- return new protocol_http_1.HttpRequest({
759
- protocol,
760
- hostname,
761
- port,
762
- method: "GET",
763
- headers,
764
- path: resolvedPath,
765
- query,
766
- body,
767
- });
496
+ b.m("GET").h(headers).q(query).b(body);
497
+ return b.build();
768
498
  };
769
499
  exports.se_ListInputDeviceTransfersCommand = se_ListInputDeviceTransfersCommand;
770
500
  const se_ListInputsCommand = async (input, context) => {
771
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
501
+ const b = (0, core_1.requestBuilder)(input, context);
772
502
  const headers = {};
773
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs";
503
+ b.bp("/prod/inputs");
774
504
  const query = (0, smithy_client_1.map)({
775
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
776
- nextToken: [, input.NextToken],
505
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
506
+ [_nT]: [, input[_NT]],
777
507
  });
778
508
  let body;
779
- return new protocol_http_1.HttpRequest({
780
- protocol,
781
- hostname,
782
- port,
783
- method: "GET",
784
- headers,
785
- path: resolvedPath,
786
- query,
787
- body,
788
- });
509
+ b.m("GET").h(headers).q(query).b(body);
510
+ return b.build();
789
511
  };
790
512
  exports.se_ListInputsCommand = se_ListInputsCommand;
791
513
  const se_ListInputSecurityGroupsCommand = async (input, context) => {
792
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
514
+ const b = (0, core_1.requestBuilder)(input, context);
793
515
  const headers = {};
794
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputSecurityGroups";
516
+ b.bp("/prod/inputSecurityGroups");
795
517
  const query = (0, smithy_client_1.map)({
796
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
797
- nextToken: [, input.NextToken],
518
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
519
+ [_nT]: [, input[_NT]],
798
520
  });
799
521
  let body;
800
- return new protocol_http_1.HttpRequest({
801
- protocol,
802
- hostname,
803
- port,
804
- method: "GET",
805
- headers,
806
- path: resolvedPath,
807
- query,
808
- body,
809
- });
522
+ b.m("GET").h(headers).q(query).b(body);
523
+ return b.build();
810
524
  };
811
525
  exports.se_ListInputSecurityGroupsCommand = se_ListInputSecurityGroupsCommand;
812
526
  const se_ListMultiplexesCommand = async (input, context) => {
813
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
527
+ const b = (0, core_1.requestBuilder)(input, context);
814
528
  const headers = {};
815
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes";
529
+ b.bp("/prod/multiplexes");
816
530
  const query = (0, smithy_client_1.map)({
817
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
818
- nextToken: [, input.NextToken],
531
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
532
+ [_nT]: [, input[_NT]],
819
533
  });
820
534
  let body;
821
- return new protocol_http_1.HttpRequest({
822
- protocol,
823
- hostname,
824
- port,
825
- method: "GET",
826
- headers,
827
- path: resolvedPath,
828
- query,
829
- body,
830
- });
535
+ b.m("GET").h(headers).q(query).b(body);
536
+ return b.build();
831
537
  };
832
538
  exports.se_ListMultiplexesCommand = se_ListMultiplexesCommand;
833
539
  const se_ListMultiplexProgramsCommand = async (input, context) => {
834
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
540
+ const b = (0, core_1.requestBuilder)(input, context);
835
541
  const headers = {};
836
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/programs";
837
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
542
+ b.bp("/prod/multiplexes/{MultiplexId}/programs");
543
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
838
544
  const query = (0, smithy_client_1.map)({
839
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
840
- nextToken: [, input.NextToken],
545
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
546
+ [_nT]: [, input[_NT]],
841
547
  });
842
548
  let body;
843
- return new protocol_http_1.HttpRequest({
844
- protocol,
845
- hostname,
846
- port,
847
- method: "GET",
848
- headers,
849
- path: resolvedPath,
850
- query,
851
- body,
852
- });
549
+ b.m("GET").h(headers).q(query).b(body);
550
+ return b.build();
853
551
  };
854
552
  exports.se_ListMultiplexProgramsCommand = se_ListMultiplexProgramsCommand;
855
553
  const se_ListOfferingsCommand = async (input, context) => {
856
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
554
+ const b = (0, core_1.requestBuilder)(input, context);
857
555
  const headers = {};
858
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings";
556
+ b.bp("/prod/offerings");
859
557
  const query = (0, smithy_client_1.map)({
860
- channelClass: [, input.ChannelClass],
861
- channelConfiguration: [, input.ChannelConfiguration],
862
- codec: [, input.Codec],
863
- duration: [, input.Duration],
864
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
865
- maximumBitrate: [, input.MaximumBitrate],
866
- maximumFramerate: [, input.MaximumFramerate],
867
- nextToken: [, input.NextToken],
868
- resolution: [, input.Resolution],
869
- resourceType: [, input.ResourceType],
870
- specialFeature: [, input.SpecialFeature],
871
- videoQuality: [, input.VideoQuality],
558
+ [_cC]: [, input[_CC]],
559
+ [_cCh]: [, input[_CCh]],
560
+ [_c]: [, input[_C]],
561
+ [_d]: [, input[_D]],
562
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
563
+ [_mB]: [, input[_MB]],
564
+ [_mF]: [, input[_MF]],
565
+ [_nT]: [, input[_NT]],
566
+ [_r]: [, input[_R]],
567
+ [_rT]: [, input[_RT]],
568
+ [_sF]: [, input[_SF]],
569
+ [_vQ]: [, input[_VQ]],
872
570
  });
873
571
  let body;
874
- return new protocol_http_1.HttpRequest({
875
- protocol,
876
- hostname,
877
- port,
878
- method: "GET",
879
- headers,
880
- path: resolvedPath,
881
- query,
882
- body,
883
- });
572
+ b.m("GET").h(headers).q(query).b(body);
573
+ return b.build();
884
574
  };
885
575
  exports.se_ListOfferingsCommand = se_ListOfferingsCommand;
886
576
  const se_ListReservationsCommand = async (input, context) => {
887
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
+ const b = (0, core_1.requestBuilder)(input, context);
888
578
  const headers = {};
889
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations";
579
+ b.bp("/prod/reservations");
890
580
  const query = (0, smithy_client_1.map)({
891
- channelClass: [, input.ChannelClass],
892
- codec: [, input.Codec],
893
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
894
- maximumBitrate: [, input.MaximumBitrate],
895
- maximumFramerate: [, input.MaximumFramerate],
896
- nextToken: [, input.NextToken],
897
- resolution: [, input.Resolution],
898
- resourceType: [, input.ResourceType],
899
- specialFeature: [, input.SpecialFeature],
900
- videoQuality: [, input.VideoQuality],
581
+ [_cC]: [, input[_CC]],
582
+ [_c]: [, input[_C]],
583
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
584
+ [_mB]: [, input[_MB]],
585
+ [_mF]: [, input[_MF]],
586
+ [_nT]: [, input[_NT]],
587
+ [_r]: [, input[_R]],
588
+ [_rT]: [, input[_RT]],
589
+ [_sF]: [, input[_SF]],
590
+ [_vQ]: [, input[_VQ]],
901
591
  });
902
592
  let body;
903
- return new protocol_http_1.HttpRequest({
904
- protocol,
905
- hostname,
906
- port,
907
- method: "GET",
908
- headers,
909
- path: resolvedPath,
910
- query,
911
- body,
912
- });
593
+ b.m("GET").h(headers).q(query).b(body);
594
+ return b.build();
913
595
  };
914
596
  exports.se_ListReservationsCommand = se_ListReservationsCommand;
915
597
  const se_ListTagsForResourceCommand = async (input, context) => {
916
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
598
+ const b = (0, core_1.requestBuilder)(input, context);
917
599
  const headers = {};
918
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
919
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
600
+ b.bp("/prod/tags/{ResourceArn}");
601
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
920
602
  let body;
921
- return new protocol_http_1.HttpRequest({
922
- protocol,
923
- hostname,
924
- port,
925
- method: "GET",
926
- headers,
927
- path: resolvedPath,
928
- body,
929
- });
603
+ b.m("GET").h(headers).b(body);
604
+ return b.build();
930
605
  };
931
606
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
932
607
  const se_PurchaseOfferingCommand = async (input, context) => {
933
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
608
+ const b = (0, core_1.requestBuilder)(input, context);
934
609
  const headers = {
935
610
  "content-type": "application/json",
936
611
  };
937
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings/{OfferingId}/purchase";
938
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OfferingId", () => input.OfferingId, "{OfferingId}", false);
612
+ b.bp("/prod/offerings/{OfferingId}/purchase");
613
+ b.p("OfferingId", () => input.OfferingId, "{OfferingId}", false);
939
614
  let body;
940
615
  body = JSON.stringify((0, smithy_client_1.take)(input, {
941
616
  count: [, , `Count`],
@@ -945,229 +620,143 @@ const se_PurchaseOfferingCommand = async (input, context) => {
945
620
  start: [, , `Start`],
946
621
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
947
622
  }));
948
- return new protocol_http_1.HttpRequest({
949
- protocol,
950
- hostname,
951
- port,
952
- method: "POST",
953
- headers,
954
- path: resolvedPath,
955
- body,
956
- });
623
+ b.m("POST").h(headers).b(body);
624
+ return b.build();
957
625
  };
958
626
  exports.se_PurchaseOfferingCommand = se_PurchaseOfferingCommand;
959
627
  const se_RebootInputDeviceCommand = async (input, context) => {
960
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
628
+ const b = (0, core_1.requestBuilder)(input, context);
961
629
  const headers = {
962
630
  "content-type": "application/json",
963
631
  };
964
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reboot";
965
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
632
+ b.bp("/prod/inputDevices/{InputDeviceId}/reboot");
633
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
966
634
  let body;
967
635
  body = JSON.stringify((0, smithy_client_1.take)(input, {
968
636
  force: [, , `Force`],
969
637
  }));
970
- return new protocol_http_1.HttpRequest({
971
- protocol,
972
- hostname,
973
- port,
974
- method: "POST",
975
- headers,
976
- path: resolvedPath,
977
- body,
978
- });
638
+ b.m("POST").h(headers).b(body);
639
+ return b.build();
979
640
  };
980
641
  exports.se_RebootInputDeviceCommand = se_RebootInputDeviceCommand;
981
642
  const se_RejectInputDeviceTransferCommand = async (input, context) => {
982
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
643
+ const b = (0, core_1.requestBuilder)(input, context);
983
644
  const headers = {};
984
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reject";
985
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
645
+ b.bp("/prod/inputDevices/{InputDeviceId}/reject");
646
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
986
647
  let body;
987
- return new protocol_http_1.HttpRequest({
988
- protocol,
989
- hostname,
990
- port,
991
- method: "POST",
992
- headers,
993
- path: resolvedPath,
994
- body,
995
- });
648
+ b.m("POST").h(headers).b(body);
649
+ return b.build();
996
650
  };
997
651
  exports.se_RejectInputDeviceTransferCommand = se_RejectInputDeviceTransferCommand;
998
652
  const se_StartChannelCommand = async (input, context) => {
999
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
653
+ const b = (0, core_1.requestBuilder)(input, context);
1000
654
  const headers = {};
1001
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/start";
1002
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
655
+ b.bp("/prod/channels/{ChannelId}/start");
656
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
1003
657
  let body;
1004
- return new protocol_http_1.HttpRequest({
1005
- protocol,
1006
- hostname,
1007
- port,
1008
- method: "POST",
1009
- headers,
1010
- path: resolvedPath,
1011
- body,
1012
- });
658
+ b.m("POST").h(headers).b(body);
659
+ return b.build();
1013
660
  };
1014
661
  exports.se_StartChannelCommand = se_StartChannelCommand;
1015
662
  const se_StartInputDeviceCommand = async (input, context) => {
1016
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
663
+ const b = (0, core_1.requestBuilder)(input, context);
1017
664
  const headers = {};
1018
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/start";
1019
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
665
+ b.bp("/prod/inputDevices/{InputDeviceId}/start");
666
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1020
667
  let body;
1021
- return new protocol_http_1.HttpRequest({
1022
- protocol,
1023
- hostname,
1024
- port,
1025
- method: "POST",
1026
- headers,
1027
- path: resolvedPath,
1028
- body,
1029
- });
668
+ b.m("POST").h(headers).b(body);
669
+ return b.build();
1030
670
  };
1031
671
  exports.se_StartInputDeviceCommand = se_StartInputDeviceCommand;
1032
672
  const se_StartInputDeviceMaintenanceWindowCommand = async (input, context) => {
1033
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
673
+ const b = (0, core_1.requestBuilder)(input, context);
1034
674
  const headers = {};
1035
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1036
- "/prod/inputDevices/{InputDeviceId}/startInputDeviceMaintenanceWindow";
1037
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
675
+ b.bp("/prod/inputDevices/{InputDeviceId}/startInputDeviceMaintenanceWindow");
676
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1038
677
  let body;
1039
- return new protocol_http_1.HttpRequest({
1040
- protocol,
1041
- hostname,
1042
- port,
1043
- method: "POST",
1044
- headers,
1045
- path: resolvedPath,
1046
- body,
1047
- });
678
+ b.m("POST").h(headers).b(body);
679
+ return b.build();
1048
680
  };
1049
681
  exports.se_StartInputDeviceMaintenanceWindowCommand = se_StartInputDeviceMaintenanceWindowCommand;
1050
682
  const se_StartMultiplexCommand = async (input, context) => {
1051
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
683
+ const b = (0, core_1.requestBuilder)(input, context);
1052
684
  const headers = {};
1053
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/start";
1054
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
685
+ b.bp("/prod/multiplexes/{MultiplexId}/start");
686
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
1055
687
  let body;
1056
- return new protocol_http_1.HttpRequest({
1057
- protocol,
1058
- hostname,
1059
- port,
1060
- method: "POST",
1061
- headers,
1062
- path: resolvedPath,
1063
- body,
1064
- });
688
+ b.m("POST").h(headers).b(body);
689
+ return b.build();
1065
690
  };
1066
691
  exports.se_StartMultiplexCommand = se_StartMultiplexCommand;
1067
692
  const se_StopChannelCommand = async (input, context) => {
1068
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
693
+ const b = (0, core_1.requestBuilder)(input, context);
1069
694
  const headers = {};
1070
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/stop";
1071
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
695
+ b.bp("/prod/channels/{ChannelId}/stop");
696
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
1072
697
  let body;
1073
- return new protocol_http_1.HttpRequest({
1074
- protocol,
1075
- hostname,
1076
- port,
1077
- method: "POST",
1078
- headers,
1079
- path: resolvedPath,
1080
- body,
1081
- });
698
+ b.m("POST").h(headers).b(body);
699
+ return b.build();
1082
700
  };
1083
701
  exports.se_StopChannelCommand = se_StopChannelCommand;
1084
702
  const se_StopInputDeviceCommand = async (input, context) => {
1085
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
703
+ const b = (0, core_1.requestBuilder)(input, context);
1086
704
  const headers = {};
1087
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/stop";
1088
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
705
+ b.bp("/prod/inputDevices/{InputDeviceId}/stop");
706
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1089
707
  let body;
1090
- return new protocol_http_1.HttpRequest({
1091
- protocol,
1092
- hostname,
1093
- port,
1094
- method: "POST",
1095
- headers,
1096
- path: resolvedPath,
1097
- body,
1098
- });
708
+ b.m("POST").h(headers).b(body);
709
+ return b.build();
1099
710
  };
1100
711
  exports.se_StopInputDeviceCommand = se_StopInputDeviceCommand;
1101
712
  const se_StopMultiplexCommand = async (input, context) => {
1102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
713
+ const b = (0, core_1.requestBuilder)(input, context);
1103
714
  const headers = {};
1104
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/stop";
1105
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
715
+ b.bp("/prod/multiplexes/{MultiplexId}/stop");
716
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
1106
717
  let body;
1107
- return new protocol_http_1.HttpRequest({
1108
- protocol,
1109
- hostname,
1110
- port,
1111
- method: "POST",
1112
- headers,
1113
- path: resolvedPath,
1114
- body,
1115
- });
718
+ b.m("POST").h(headers).b(body);
719
+ return b.build();
1116
720
  };
1117
721
  exports.se_StopMultiplexCommand = se_StopMultiplexCommand;
1118
722
  const se_TransferInputDeviceCommand = async (input, context) => {
1119
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
723
+ const b = (0, core_1.requestBuilder)(input, context);
1120
724
  const headers = {
1121
725
  "content-type": "application/json",
1122
726
  };
1123
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1124
- "/prod/inputDevices/{InputDeviceId}/transfer";
1125
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
727
+ b.bp("/prod/inputDevices/{InputDeviceId}/transfer");
728
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1126
729
  let body;
1127
730
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1128
731
  targetCustomerId: [, , `TargetCustomerId`],
1129
732
  targetRegion: [, , `TargetRegion`],
1130
733
  transferMessage: [, , `TransferMessage`],
1131
734
  }));
1132
- return new protocol_http_1.HttpRequest({
1133
- protocol,
1134
- hostname,
1135
- port,
1136
- method: "POST",
1137
- headers,
1138
- path: resolvedPath,
1139
- body,
1140
- });
735
+ b.m("POST").h(headers).b(body);
736
+ return b.build();
1141
737
  };
1142
738
  exports.se_TransferInputDeviceCommand = se_TransferInputDeviceCommand;
1143
739
  const se_UpdateAccountConfigurationCommand = async (input, context) => {
1144
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
740
+ const b = (0, core_1.requestBuilder)(input, context);
1145
741
  const headers = {
1146
742
  "content-type": "application/json",
1147
743
  };
1148
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/accountConfiguration";
744
+ b.bp("/prod/accountConfiguration");
1149
745
  let body;
1150
746
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1151
747
  accountConfiguration: [, (_) => se_AccountConfiguration(_, context), `AccountConfiguration`],
1152
748
  }));
1153
- return new protocol_http_1.HttpRequest({
1154
- protocol,
1155
- hostname,
1156
- port,
1157
- method: "PUT",
1158
- headers,
1159
- path: resolvedPath,
1160
- body,
1161
- });
749
+ b.m("PUT").h(headers).b(body);
750
+ return b.build();
1162
751
  };
1163
752
  exports.se_UpdateAccountConfigurationCommand = se_UpdateAccountConfigurationCommand;
1164
753
  const se_UpdateChannelCommand = async (input, context) => {
1165
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
754
+ const b = (0, core_1.requestBuilder)(input, context);
1166
755
  const headers = {
1167
756
  "content-type": "application/json",
1168
757
  };
1169
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
1170
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
758
+ b.bp("/prod/channels/{ChannelId}");
759
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
1171
760
  let body;
1172
761
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1173
762
  cdiInputSpecification: [, (_) => se_CdiInputSpecification(_, context), `CdiInputSpecification`],
@@ -1180,47 +769,33 @@ const se_UpdateChannelCommand = async (input, context) => {
1180
769
  name: [, , `Name`],
1181
770
  roleArn: [, , `RoleArn`],
1182
771
  }));
1183
- return new protocol_http_1.HttpRequest({
1184
- protocol,
1185
- hostname,
1186
- port,
1187
- method: "PUT",
1188
- headers,
1189
- path: resolvedPath,
1190
- body,
1191
- });
772
+ b.m("PUT").h(headers).b(body);
773
+ return b.build();
1192
774
  };
1193
775
  exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
1194
776
  const se_UpdateChannelClassCommand = async (input, context) => {
1195
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
777
+ const b = (0, core_1.requestBuilder)(input, context);
1196
778
  const headers = {
1197
779
  "content-type": "application/json",
1198
780
  };
1199
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/channelClass";
1200
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
781
+ b.bp("/prod/channels/{ChannelId}/channelClass");
782
+ b.p("ChannelId", () => input.ChannelId, "{ChannelId}", false);
1201
783
  let body;
1202
784
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1203
785
  channelClass: [, , `ChannelClass`],
1204
786
  destinations: [, (_) => se___listOfOutputDestination(_, context), `Destinations`],
1205
787
  }));
1206
- return new protocol_http_1.HttpRequest({
1207
- protocol,
1208
- hostname,
1209
- port,
1210
- method: "PUT",
1211
- headers,
1212
- path: resolvedPath,
1213
- body,
1214
- });
788
+ b.m("PUT").h(headers).b(body);
789
+ return b.build();
1215
790
  };
1216
791
  exports.se_UpdateChannelClassCommand = se_UpdateChannelClassCommand;
1217
792
  const se_UpdateInputCommand = async (input, context) => {
1218
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
793
+ const b = (0, core_1.requestBuilder)(input, context);
1219
794
  const headers = {
1220
795
  "content-type": "application/json",
1221
796
  };
1222
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
1223
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputId", () => input.InputId, "{InputId}", false);
797
+ b.bp("/prod/inputs/{InputId}");
798
+ b.p("InputId", () => input.InputId, "{InputId}", false);
1224
799
  let body;
1225
800
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1226
801
  destinations: [, (_) => se___listOfInputDestinationRequest(_, context), `Destinations`],
@@ -1231,24 +806,17 @@ const se_UpdateInputCommand = async (input, context) => {
1231
806
  roleArn: [, , `RoleArn`],
1232
807
  sources: [, (_) => se___listOfInputSourceRequest(_, context), `Sources`],
1233
808
  }));
1234
- return new protocol_http_1.HttpRequest({
1235
- protocol,
1236
- hostname,
1237
- port,
1238
- method: "PUT",
1239
- headers,
1240
- path: resolvedPath,
1241
- body,
1242
- });
809
+ b.m("PUT").h(headers).b(body);
810
+ return b.build();
1243
811
  };
1244
812
  exports.se_UpdateInputCommand = se_UpdateInputCommand;
1245
813
  const se_UpdateInputDeviceCommand = async (input, context) => {
1246
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
814
+ const b = (0, core_1.requestBuilder)(input, context);
1247
815
  const headers = {
1248
816
  "content-type": "application/json",
1249
817
  };
1250
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}";
1251
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
818
+ b.bp("/prod/inputDevices/{InputDeviceId}");
819
+ b.p("InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1252
820
  let body;
1253
821
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1254
822
  availabilityZone: [, , `AvailabilityZone`],
@@ -1256,109 +824,72 @@ const se_UpdateInputDeviceCommand = async (input, context) => {
1256
824
  name: [, , `Name`],
1257
825
  uhdDeviceSettings: [, (_) => se_InputDeviceConfigurableSettings(_, context), `UhdDeviceSettings`],
1258
826
  }));
1259
- return new protocol_http_1.HttpRequest({
1260
- protocol,
1261
- hostname,
1262
- port,
1263
- method: "PUT",
1264
- headers,
1265
- path: resolvedPath,
1266
- body,
1267
- });
827
+ b.m("PUT").h(headers).b(body);
828
+ return b.build();
1268
829
  };
1269
830
  exports.se_UpdateInputDeviceCommand = se_UpdateInputDeviceCommand;
1270
831
  const se_UpdateInputSecurityGroupCommand = async (input, context) => {
1271
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
832
+ const b = (0, core_1.requestBuilder)(input, context);
1272
833
  const headers = {
1273
834
  "content-type": "application/json",
1274
835
  };
1275
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1276
- "/prod/inputSecurityGroups/{InputSecurityGroupId}";
1277
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
836
+ b.bp("/prod/inputSecurityGroups/{InputSecurityGroupId}");
837
+ b.p("InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
1278
838
  let body;
1279
839
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1280
840
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
1281
841
  whitelistRules: [, (_) => se___listOfInputWhitelistRuleCidr(_, context), `WhitelistRules`],
1282
842
  }));
1283
- return new protocol_http_1.HttpRequest({
1284
- protocol,
1285
- hostname,
1286
- port,
1287
- method: "PUT",
1288
- headers,
1289
- path: resolvedPath,
1290
- body,
1291
- });
843
+ b.m("PUT").h(headers).b(body);
844
+ return b.build();
1292
845
  };
1293
846
  exports.se_UpdateInputSecurityGroupCommand = se_UpdateInputSecurityGroupCommand;
1294
847
  const se_UpdateMultiplexCommand = async (input, context) => {
1295
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
848
+ const b = (0, core_1.requestBuilder)(input, context);
1296
849
  const headers = {
1297
850
  "content-type": "application/json",
1298
851
  };
1299
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
1300
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
852
+ b.bp("/prod/multiplexes/{MultiplexId}");
853
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
1301
854
  let body;
1302
855
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1303
856
  multiplexSettings: [, (_) => se_MultiplexSettings(_, context), `MultiplexSettings`],
1304
857
  name: [, , `Name`],
1305
858
  }));
1306
- return new protocol_http_1.HttpRequest({
1307
- protocol,
1308
- hostname,
1309
- port,
1310
- method: "PUT",
1311
- headers,
1312
- path: resolvedPath,
1313
- body,
1314
- });
859
+ b.m("PUT").h(headers).b(body);
860
+ return b.build();
1315
861
  };
1316
862
  exports.se_UpdateMultiplexCommand = se_UpdateMultiplexCommand;
1317
863
  const se_UpdateMultiplexProgramCommand = async (input, context) => {
1318
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
864
+ const b = (0, core_1.requestBuilder)(input, context);
1319
865
  const headers = {
1320
866
  "content-type": "application/json",
1321
867
  };
1322
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1323
- "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}";
1324
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
1325
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
868
+ b.bp("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}");
869
+ b.p("MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
870
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
1326
871
  let body;
1327
872
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1328
873
  multiplexProgramSettings: [, (_) => se_MultiplexProgramSettings(_, context), `MultiplexProgramSettings`],
1329
874
  }));
1330
- return new protocol_http_1.HttpRequest({
1331
- protocol,
1332
- hostname,
1333
- port,
1334
- method: "PUT",
1335
- headers,
1336
- path: resolvedPath,
1337
- body,
1338
- });
875
+ b.m("PUT").h(headers).b(body);
876
+ return b.build();
1339
877
  };
1340
878
  exports.se_UpdateMultiplexProgramCommand = se_UpdateMultiplexProgramCommand;
1341
879
  const se_UpdateReservationCommand = async (input, context) => {
1342
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
880
+ const b = (0, core_1.requestBuilder)(input, context);
1343
881
  const headers = {
1344
882
  "content-type": "application/json",
1345
883
  };
1346
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
1347
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReservationId", () => input.ReservationId, "{ReservationId}", false);
884
+ b.bp("/prod/reservations/{ReservationId}");
885
+ b.p("ReservationId", () => input.ReservationId, "{ReservationId}", false);
1348
886
  let body;
1349
887
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1350
888
  name: [, , `Name`],
1351
889
  renewalSettings: [, (_) => se_RenewalSettings(_, context), `RenewalSettings`],
1352
890
  }));
1353
- return new protocol_http_1.HttpRequest({
1354
- protocol,
1355
- hostname,
1356
- port,
1357
- method: "PUT",
1358
- headers,
1359
- path: resolvedPath,
1360
- body,
1361
- });
891
+ b.m("PUT").h(headers).b(body);
892
+ return b.build();
1362
893
  };
1363
894
  exports.se_UpdateReservationCommand = se_UpdateReservationCommand;
1364
895
  const de_AcceptInputDeviceTransferCommand = async (output, context) => {
@@ -2807,16 +2338,10 @@ const de_DescribeInputDeviceThumbnailCommand = async (output, context) => {
2807
2338
  }
2808
2339
  const contents = (0, smithy_client_1.map)({
2809
2340
  $metadata: deserializeMetadata(output),
2810
- ContentType: [, output.headers["content-type"]],
2811
- ContentLength: [
2812
- () => void 0 !== output.headers["content-length"],
2813
- () => (0, smithy_client_1.strictParseLong)(output.headers["content-length"]),
2814
- ],
2815
- ETag: [, output.headers["etag"]],
2816
- LastModified: [
2817
- () => void 0 !== output.headers["last-modified"],
2818
- () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers["last-modified"])),
2819
- ],
2341
+ [_CT]: [, output.headers[_ct]],
2342
+ [_CL]: [() => void 0 !== output.headers[_cl], () => (0, smithy_client_1.strictParseLong)(output.headers[_cl])],
2343
+ [_ET]: [, output.headers[_e]],
2344
+ [_LM]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers[_lm]))],
2820
2345
  });
2821
2346
  const data = output.body;
2822
2347
  context.sdkStreamMixin(data);
@@ -9176,6 +8701,48 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
9176
8701
  value !== "" &&
9177
8702
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
9178
8703
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
8704
+ const _A = "Accept";
8705
+ const _C = "Codec";
8706
+ const _CC = "ChannelClass";
8707
+ const _CCh = "ChannelConfiguration";
8708
+ const _CL = "ContentLength";
8709
+ const _CT = "ContentType";
8710
+ const _D = "Duration";
8711
+ const _ET = "ETag";
8712
+ const _LM = "LastModified";
8713
+ const _MB = "MaximumBitrate";
8714
+ const _MF = "MaximumFramerate";
8715
+ const _MR = "MaxResults";
8716
+ const _NT = "NextToken";
8717
+ const _PI = "PipelineId";
8718
+ const _R = "Resolution";
8719
+ const _RT = "ResourceType";
8720
+ const _SF = "SpecialFeature";
8721
+ const _TK = "TagKeys";
8722
+ const _TT = "ThumbnailType";
8723
+ const _TTr = "TransferType";
8724
+ const _VQ = "VideoQuality";
8725
+ const _a = "accept";
8726
+ const _c = "codec";
8727
+ const _cC = "channelClass";
8728
+ const _cCh = "channelConfiguration";
8729
+ const _cl = "content-length";
8730
+ const _ct = "content-type";
8731
+ const _d = "duration";
8732
+ const _e = "etag";
8733
+ const _lm = "last-modified";
8734
+ const _mB = "maximumBitrate";
8735
+ const _mF = "maximumFramerate";
8736
+ const _mR = "maxResults";
8737
+ const _nT = "nextToken";
8738
+ const _pI = "pipelineId";
8739
+ const _r = "resolution";
8740
+ const _rT = "resourceType";
8741
+ const _sF = "specialFeature";
8742
+ const _tK = "tagKeys";
8743
+ const _tT = "thumbnailType";
8744
+ const _tTr = "transferType";
8745
+ const _vQ = "videoQuality";
9179
8746
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
9180
8747
  if (encoded.length) {
9181
8748
  return JSON.parse(encoded);