@aws-sdk/client-mediatailor 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,61 +2,47 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_CreateProgramCommand = exports.de_CreatePrefetchScheduleCommand = exports.de_CreateLiveSourceCommand = exports.de_CreateChannelCommand = exports.de_ConfigureLogsForPlaybackConfigurationCommand = exports.de_ConfigureLogsForChannelCommand = exports.se_UpdateVodSourceCommand = exports.se_UpdateSourceLocationCommand = exports.se_UpdateProgramCommand = exports.se_UpdateLiveSourceCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopChannelCommand = exports.se_StartChannelCommand = exports.se_PutPlaybackConfigurationCommand = exports.se_PutChannelPolicyCommand = exports.se_ListVodSourcesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSourceLocationsCommand = exports.se_ListPrefetchSchedulesCommand = exports.se_ListPlaybackConfigurationsCommand = exports.se_ListLiveSourcesCommand = exports.se_ListChannelsCommand = exports.se_ListAlertsCommand = exports.se_GetPrefetchScheduleCommand = exports.se_GetPlaybackConfigurationCommand = exports.se_GetChannelScheduleCommand = exports.se_GetChannelPolicyCommand = exports.se_DescribeVodSourceCommand = exports.se_DescribeSourceLocationCommand = exports.se_DescribeProgramCommand = exports.se_DescribeLiveSourceCommand = exports.se_DescribeChannelCommand = exports.se_DeleteVodSourceCommand = exports.se_DeleteSourceLocationCommand = exports.se_DeleteProgramCommand = exports.se_DeletePrefetchScheduleCommand = exports.se_DeletePlaybackConfigurationCommand = exports.se_DeleteLiveSourceCommand = exports.se_DeleteChannelPolicyCommand = exports.se_DeleteChannelCommand = exports.se_CreateVodSourceCommand = exports.se_CreateSourceLocationCommand = exports.se_CreateProgramCommand = exports.se_CreatePrefetchScheduleCommand = exports.se_CreateLiveSourceCommand = exports.se_CreateChannelCommand = exports.se_ConfigureLogsForPlaybackConfigurationCommand = exports.se_ConfigureLogsForChannelCommand = void 0;
4
4
  exports.de_UpdateVodSourceCommand = exports.de_UpdateSourceLocationCommand = exports.de_UpdateProgramCommand = exports.de_UpdateLiveSourceCommand = exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopChannelCommand = exports.de_StartChannelCommand = exports.de_PutPlaybackConfigurationCommand = exports.de_PutChannelPolicyCommand = exports.de_ListVodSourcesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSourceLocationsCommand = exports.de_ListPrefetchSchedulesCommand = exports.de_ListPlaybackConfigurationsCommand = exports.de_ListLiveSourcesCommand = exports.de_ListChannelsCommand = exports.de_ListAlertsCommand = exports.de_GetPrefetchScheduleCommand = exports.de_GetPlaybackConfigurationCommand = exports.de_GetChannelScheduleCommand = exports.de_GetChannelPolicyCommand = exports.de_DescribeVodSourceCommand = exports.de_DescribeSourceLocationCommand = exports.de_DescribeProgramCommand = exports.de_DescribeLiveSourceCommand = exports.de_DescribeChannelCommand = exports.de_DeleteVodSourceCommand = exports.de_DeleteSourceLocationCommand = exports.de_DeleteProgramCommand = exports.de_DeletePrefetchScheduleCommand = exports.de_DeletePlaybackConfigurationCommand = exports.de_DeleteLiveSourceCommand = exports.de_DeleteChannelPolicyCommand = exports.de_DeleteChannelCommand = exports.de_CreateVodSourceCommand = exports.de_CreateSourceLocationCommand = 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 MediaTailorServiceException_1 = require("../models/MediaTailorServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_ConfigureLogsForChannelCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/channel";
14
+ b.bp("/configureLogs/channel");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  ChannelName: [],
18
18
  LogTypes: (_) => (0, smithy_client_1._json)(_),
19
19
  }));
20
- return new protocol_http_1.HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "PUT",
25
- headers,
26
- path: resolvedPath,
27
- body,
28
- });
20
+ b.m("PUT").h(headers).b(body);
21
+ return b.build();
29
22
  };
30
23
  exports.se_ConfigureLogsForChannelCommand = se_ConfigureLogsForChannelCommand;
31
24
  const se_ConfigureLogsForPlaybackConfigurationCommand = async (input, context) => {
32
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
25
+ const b = (0, core_1.requestBuilder)(input, context);
33
26
  const headers = {
34
27
  "content-type": "application/json",
35
28
  };
36
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
29
+ b.bp("/configureLogs/playbackConfiguration");
37
30
  let body;
38
31
  body = JSON.stringify((0, smithy_client_1.take)(input, {
39
32
  PercentEnabled: [],
40
33
  PlaybackConfigurationName: [],
41
34
  }));
42
- return new protocol_http_1.HttpRequest({
43
- protocol,
44
- hostname,
45
- port,
46
- method: "PUT",
47
- headers,
48
- path: resolvedPath,
49
- body,
50
- });
35
+ b.m("PUT").h(headers).b(body);
36
+ return b.build();
51
37
  };
52
38
  exports.se_ConfigureLogsForPlaybackConfigurationCommand = se_ConfigureLogsForPlaybackConfigurationCommand;
53
39
  const se_CreateChannelCommand = async (input, context) => {
54
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
+ const b = (0, core_1.requestBuilder)(input, context);
55
41
  const headers = {
56
42
  "content-type": "application/json",
57
43
  };
58
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
59
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
44
+ b.bp("/channel/{ChannelName}");
45
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
60
46
  let body;
61
47
  body = JSON.stringify((0, smithy_client_1.take)(input, {
62
48
  FillerSlate: (_) => (0, smithy_client_1._json)(_),
@@ -65,77 +51,53 @@ const se_CreateChannelCommand = async (input, context) => {
65
51
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
66
52
  Tier: [],
67
53
  }));
68
- return new protocol_http_1.HttpRequest({
69
- protocol,
70
- hostname,
71
- port,
72
- method: "POST",
73
- headers,
74
- path: resolvedPath,
75
- body,
76
- });
54
+ b.m("POST").h(headers).b(body);
55
+ return b.build();
77
56
  };
78
57
  exports.se_CreateChannelCommand = se_CreateChannelCommand;
79
58
  const se_CreateLiveSourceCommand = async (input, context) => {
80
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
+ const b = (0, core_1.requestBuilder)(input, context);
81
60
  const headers = {
82
61
  "content-type": "application/json",
83
62
  };
84
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
85
- "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
86
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
87
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
63
+ b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
64
+ b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
65
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
88
66
  let body;
89
67
  body = JSON.stringify((0, smithy_client_1.take)(input, {
90
68
  HttpPackageConfigurations: (_) => (0, smithy_client_1._json)(_),
91
69
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
92
70
  }));
93
- return new protocol_http_1.HttpRequest({
94
- protocol,
95
- hostname,
96
- port,
97
- method: "POST",
98
- headers,
99
- path: resolvedPath,
100
- body,
101
- });
71
+ b.m("POST").h(headers).b(body);
72
+ return b.build();
102
73
  };
103
74
  exports.se_CreateLiveSourceCommand = se_CreateLiveSourceCommand;
104
75
  const se_CreatePrefetchScheduleCommand = async (input, context) => {
105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
+ const b = (0, core_1.requestBuilder)(input, context);
106
77
  const headers = {
107
78
  "content-type": "application/json",
108
79
  };
109
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
110
- "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
111
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
112
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
80
+ b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
81
+ b.p("Name", () => input.Name, "{Name}", false);
82
+ b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
113
83
  let body;
114
84
  body = JSON.stringify((0, smithy_client_1.take)(input, {
115
85
  Consumption: (_) => se_PrefetchConsumption(_, context),
116
86
  Retrieval: (_) => se_PrefetchRetrieval(_, context),
117
87
  StreamId: [],
118
88
  }));
119
- return new protocol_http_1.HttpRequest({
120
- protocol,
121
- hostname,
122
- port,
123
- method: "POST",
124
- headers,
125
- path: resolvedPath,
126
- body,
127
- });
89
+ b.m("POST").h(headers).b(body);
90
+ return b.build();
128
91
  };
129
92
  exports.se_CreatePrefetchScheduleCommand = se_CreatePrefetchScheduleCommand;
130
93
  const se_CreateProgramCommand = async (input, context) => {
131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
94
+ const b = (0, core_1.requestBuilder)(input, context);
132
95
  const headers = {
133
96
  "content-type": "application/json",
134
97
  };
135
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
136
- "/channel/{ChannelName}/program/{ProgramName}";
137
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
138
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
98
+ b.bp("/channel/{ChannelName}/program/{ProgramName}");
99
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
100
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
139
101
  let body;
140
102
  body = JSON.stringify((0, smithy_client_1.take)(input, {
141
103
  AdBreaks: (_) => (0, smithy_client_1._json)(_),
@@ -144,24 +106,17 @@ const se_CreateProgramCommand = async (input, context) => {
144
106
  SourceLocationName: [],
145
107
  VodSourceName: [],
146
108
  }));
147
- return new protocol_http_1.HttpRequest({
148
- protocol,
149
- hostname,
150
- port,
151
- method: "POST",
152
- headers,
153
- path: resolvedPath,
154
- body,
155
- });
109
+ b.m("POST").h(headers).b(body);
110
+ return b.build();
156
111
  };
157
112
  exports.se_CreateProgramCommand = se_CreateProgramCommand;
158
113
  const se_CreateSourceLocationCommand = async (input, context) => {
159
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
114
+ const b = (0, core_1.requestBuilder)(input, context);
160
115
  const headers = {
161
116
  "content-type": "application/json",
162
117
  };
163
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
164
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
118
+ b.bp("/sourceLocation/{SourceLocationName}");
119
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
165
120
  let body;
166
121
  body = JSON.stringify((0, smithy_client_1.take)(input, {
167
122
  AccessConfiguration: (_) => (0, smithy_client_1._json)(_),
@@ -170,554 +125,339 @@ const se_CreateSourceLocationCommand = async (input, context) => {
170
125
  SegmentDeliveryConfigurations: (_) => (0, smithy_client_1._json)(_),
171
126
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
172
127
  }));
173
- return new protocol_http_1.HttpRequest({
174
- protocol,
175
- hostname,
176
- port,
177
- method: "POST",
178
- headers,
179
- path: resolvedPath,
180
- body,
181
- });
128
+ b.m("POST").h(headers).b(body);
129
+ return b.build();
182
130
  };
183
131
  exports.se_CreateSourceLocationCommand = se_CreateSourceLocationCommand;
184
132
  const se_CreateVodSourceCommand = async (input, context) => {
185
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
+ const b = (0, core_1.requestBuilder)(input, context);
186
134
  const headers = {
187
135
  "content-type": "application/json",
188
136
  };
189
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
190
- "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
191
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
192
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
137
+ b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
138
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
139
+ b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
193
140
  let body;
194
141
  body = JSON.stringify((0, smithy_client_1.take)(input, {
195
142
  HttpPackageConfigurations: (_) => (0, smithy_client_1._json)(_),
196
143
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
197
144
  }));
198
- return new protocol_http_1.HttpRequest({
199
- protocol,
200
- hostname,
201
- port,
202
- method: "POST",
203
- headers,
204
- path: resolvedPath,
205
- body,
206
- });
145
+ b.m("POST").h(headers).b(body);
146
+ return b.build();
207
147
  };
208
148
  exports.se_CreateVodSourceCommand = se_CreateVodSourceCommand;
209
149
  const se_DeleteChannelCommand = async (input, context) => {
210
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
+ const b = (0, core_1.requestBuilder)(input, context);
211
151
  const headers = {};
212
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
213
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
152
+ b.bp("/channel/{ChannelName}");
153
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
214
154
  let body;
215
- return new protocol_http_1.HttpRequest({
216
- protocol,
217
- hostname,
218
- port,
219
- method: "DELETE",
220
- headers,
221
- path: resolvedPath,
222
- body,
223
- });
155
+ b.m("DELETE").h(headers).b(body);
156
+ return b.build();
224
157
  };
225
158
  exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
226
159
  const se_DeleteChannelPolicyCommand = async (input, context) => {
227
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
+ const b = (0, core_1.requestBuilder)(input, context);
228
161
  const headers = {};
229
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
230
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
162
+ b.bp("/channel/{ChannelName}/policy");
163
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
231
164
  let body;
232
- return new protocol_http_1.HttpRequest({
233
- protocol,
234
- hostname,
235
- port,
236
- method: "DELETE",
237
- headers,
238
- path: resolvedPath,
239
- body,
240
- });
165
+ b.m("DELETE").h(headers).b(body);
166
+ return b.build();
241
167
  };
242
168
  exports.se_DeleteChannelPolicyCommand = se_DeleteChannelPolicyCommand;
243
169
  const se_DeleteLiveSourceCommand = async (input, context) => {
244
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
170
+ const b = (0, core_1.requestBuilder)(input, context);
245
171
  const headers = {};
246
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
247
- "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
248
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
249
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
172
+ b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
173
+ b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
174
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
250
175
  let body;
251
- return new protocol_http_1.HttpRequest({
252
- protocol,
253
- hostname,
254
- port,
255
- method: "DELETE",
256
- headers,
257
- path: resolvedPath,
258
- body,
259
- });
176
+ b.m("DELETE").h(headers).b(body);
177
+ return b.build();
260
178
  };
261
179
  exports.se_DeleteLiveSourceCommand = se_DeleteLiveSourceCommand;
262
180
  const se_DeletePlaybackConfigurationCommand = async (input, context) => {
263
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const b = (0, core_1.requestBuilder)(input, context);
264
182
  const headers = {};
265
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
266
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
183
+ b.bp("/playbackConfiguration/{Name}");
184
+ b.p("Name", () => input.Name, "{Name}", false);
267
185
  let body;
268
- return new protocol_http_1.HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "DELETE",
273
- headers,
274
- path: resolvedPath,
275
- body,
276
- });
186
+ b.m("DELETE").h(headers).b(body);
187
+ return b.build();
277
188
  };
278
189
  exports.se_DeletePlaybackConfigurationCommand = se_DeletePlaybackConfigurationCommand;
279
190
  const se_DeletePrefetchScheduleCommand = async (input, context) => {
280
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
+ const b = (0, core_1.requestBuilder)(input, context);
281
192
  const headers = {};
282
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
283
- "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
284
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
285
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
193
+ b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
194
+ b.p("Name", () => input.Name, "{Name}", false);
195
+ b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
286
196
  let body;
287
- return new protocol_http_1.HttpRequest({
288
- protocol,
289
- hostname,
290
- port,
291
- method: "DELETE",
292
- headers,
293
- path: resolvedPath,
294
- body,
295
- });
197
+ b.m("DELETE").h(headers).b(body);
198
+ return b.build();
296
199
  };
297
200
  exports.se_DeletePrefetchScheduleCommand = se_DeletePrefetchScheduleCommand;
298
201
  const se_DeleteProgramCommand = async (input, context) => {
299
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
+ const b = (0, core_1.requestBuilder)(input, context);
300
203
  const headers = {};
301
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
302
- "/channel/{ChannelName}/program/{ProgramName}";
303
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
304
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
204
+ b.bp("/channel/{ChannelName}/program/{ProgramName}");
205
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
206
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
305
207
  let body;
306
- return new protocol_http_1.HttpRequest({
307
- protocol,
308
- hostname,
309
- port,
310
- method: "DELETE",
311
- headers,
312
- path: resolvedPath,
313
- body,
314
- });
208
+ b.m("DELETE").h(headers).b(body);
209
+ return b.build();
315
210
  };
316
211
  exports.se_DeleteProgramCommand = se_DeleteProgramCommand;
317
212
  const se_DeleteSourceLocationCommand = async (input, context) => {
318
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
213
+ const b = (0, core_1.requestBuilder)(input, context);
319
214
  const headers = {};
320
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
321
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
215
+ b.bp("/sourceLocation/{SourceLocationName}");
216
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
322
217
  let body;
323
- return new protocol_http_1.HttpRequest({
324
- protocol,
325
- hostname,
326
- port,
327
- method: "DELETE",
328
- headers,
329
- path: resolvedPath,
330
- body,
331
- });
218
+ b.m("DELETE").h(headers).b(body);
219
+ return b.build();
332
220
  };
333
221
  exports.se_DeleteSourceLocationCommand = se_DeleteSourceLocationCommand;
334
222
  const se_DeleteVodSourceCommand = async (input, context) => {
335
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
223
+ const b = (0, core_1.requestBuilder)(input, context);
336
224
  const headers = {};
337
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
338
- "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
339
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
340
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
225
+ b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
226
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
227
+ b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
341
228
  let body;
342
- return new protocol_http_1.HttpRequest({
343
- protocol,
344
- hostname,
345
- port,
346
- method: "DELETE",
347
- headers,
348
- path: resolvedPath,
349
- body,
350
- });
229
+ b.m("DELETE").h(headers).b(body);
230
+ return b.build();
351
231
  };
352
232
  exports.se_DeleteVodSourceCommand = se_DeleteVodSourceCommand;
353
233
  const se_DescribeChannelCommand = async (input, context) => {
354
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const b = (0, core_1.requestBuilder)(input, context);
355
235
  const headers = {};
356
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
357
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
236
+ b.bp("/channel/{ChannelName}");
237
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
358
238
  let body;
359
- return new protocol_http_1.HttpRequest({
360
- protocol,
361
- hostname,
362
- port,
363
- method: "GET",
364
- headers,
365
- path: resolvedPath,
366
- body,
367
- });
239
+ b.m("GET").h(headers).b(body);
240
+ return b.build();
368
241
  };
369
242
  exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
370
243
  const se_DescribeLiveSourceCommand = async (input, context) => {
371
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
+ const b = (0, core_1.requestBuilder)(input, context);
372
245
  const headers = {};
373
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
374
- "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
375
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
376
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
246
+ b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
247
+ b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
248
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
377
249
  let body;
378
- return new protocol_http_1.HttpRequest({
379
- protocol,
380
- hostname,
381
- port,
382
- method: "GET",
383
- headers,
384
- path: resolvedPath,
385
- body,
386
- });
250
+ b.m("GET").h(headers).b(body);
251
+ return b.build();
387
252
  };
388
253
  exports.se_DescribeLiveSourceCommand = se_DescribeLiveSourceCommand;
389
254
  const se_DescribeProgramCommand = async (input, context) => {
390
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
+ const b = (0, core_1.requestBuilder)(input, context);
391
256
  const headers = {};
392
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
393
- "/channel/{ChannelName}/program/{ProgramName}";
394
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
395
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
257
+ b.bp("/channel/{ChannelName}/program/{ProgramName}");
258
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
259
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
396
260
  let body;
397
- return new protocol_http_1.HttpRequest({
398
- protocol,
399
- hostname,
400
- port,
401
- method: "GET",
402
- headers,
403
- path: resolvedPath,
404
- body,
405
- });
261
+ b.m("GET").h(headers).b(body);
262
+ return b.build();
406
263
  };
407
264
  exports.se_DescribeProgramCommand = se_DescribeProgramCommand;
408
265
  const se_DescribeSourceLocationCommand = async (input, context) => {
409
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
+ const b = (0, core_1.requestBuilder)(input, context);
410
267
  const headers = {};
411
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
412
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
268
+ b.bp("/sourceLocation/{SourceLocationName}");
269
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
413
270
  let body;
414
- return new protocol_http_1.HttpRequest({
415
- protocol,
416
- hostname,
417
- port,
418
- method: "GET",
419
- headers,
420
- path: resolvedPath,
421
- body,
422
- });
271
+ b.m("GET").h(headers).b(body);
272
+ return b.build();
423
273
  };
424
274
  exports.se_DescribeSourceLocationCommand = se_DescribeSourceLocationCommand;
425
275
  const se_DescribeVodSourceCommand = async (input, context) => {
426
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
+ const b = (0, core_1.requestBuilder)(input, context);
427
277
  const headers = {};
428
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
429
- "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
430
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
431
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
278
+ b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
279
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
280
+ b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
432
281
  let body;
433
- return new protocol_http_1.HttpRequest({
434
- protocol,
435
- hostname,
436
- port,
437
- method: "GET",
438
- headers,
439
- path: resolvedPath,
440
- body,
441
- });
282
+ b.m("GET").h(headers).b(body);
283
+ return b.build();
442
284
  };
443
285
  exports.se_DescribeVodSourceCommand = se_DescribeVodSourceCommand;
444
286
  const se_GetChannelPolicyCommand = async (input, context) => {
445
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
287
+ const b = (0, core_1.requestBuilder)(input, context);
446
288
  const headers = {};
447
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
448
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
289
+ b.bp("/channel/{ChannelName}/policy");
290
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
449
291
  let body;
450
- return new protocol_http_1.HttpRequest({
451
- protocol,
452
- hostname,
453
- port,
454
- method: "GET",
455
- headers,
456
- path: resolvedPath,
457
- body,
458
- });
292
+ b.m("GET").h(headers).b(body);
293
+ return b.build();
459
294
  };
460
295
  exports.se_GetChannelPolicyCommand = se_GetChannelPolicyCommand;
461
296
  const se_GetChannelScheduleCommand = async (input, context) => {
462
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
297
+ const b = (0, core_1.requestBuilder)(input, context);
463
298
  const headers = {};
464
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/schedule";
465
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
299
+ b.bp("/channel/{ChannelName}/schedule");
300
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
466
301
  const query = (0, smithy_client_1.map)({
467
- durationMinutes: [, input.DurationMinutes],
468
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
469
- nextToken: [, input.NextToken],
302
+ [_dM]: [, input[_DM]],
303
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
304
+ [_nT]: [, input[_NT]],
470
305
  });
471
306
  let body;
472
- return new protocol_http_1.HttpRequest({
473
- protocol,
474
- hostname,
475
- port,
476
- method: "GET",
477
- headers,
478
- path: resolvedPath,
479
- query,
480
- body,
481
- });
307
+ b.m("GET").h(headers).q(query).b(body);
308
+ return b.build();
482
309
  };
483
310
  exports.se_GetChannelScheduleCommand = se_GetChannelScheduleCommand;
484
311
  const se_GetPlaybackConfigurationCommand = async (input, context) => {
485
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
312
+ const b = (0, core_1.requestBuilder)(input, context);
486
313
  const headers = {};
487
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
488
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
314
+ b.bp("/playbackConfiguration/{Name}");
315
+ b.p("Name", () => input.Name, "{Name}", false);
489
316
  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
- });
317
+ b.m("GET").h(headers).b(body);
318
+ return b.build();
499
319
  };
500
320
  exports.se_GetPlaybackConfigurationCommand = se_GetPlaybackConfigurationCommand;
501
321
  const se_GetPrefetchScheduleCommand = async (input, context) => {
502
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
322
+ const b = (0, core_1.requestBuilder)(input, context);
503
323
  const headers = {};
504
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
505
- "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
506
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
507
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
324
+ b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
325
+ b.p("Name", () => input.Name, "{Name}", false);
326
+ b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
508
327
  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
- });
328
+ b.m("GET").h(headers).b(body);
329
+ return b.build();
518
330
  };
519
331
  exports.se_GetPrefetchScheduleCommand = se_GetPrefetchScheduleCommand;
520
332
  const se_ListAlertsCommand = async (input, context) => {
521
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
+ const b = (0, core_1.requestBuilder)(input, context);
522
334
  const headers = {};
523
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alerts";
335
+ b.bp("/alerts");
524
336
  const query = (0, smithy_client_1.map)({
525
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
526
- nextToken: [, input.NextToken],
527
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
337
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
338
+ [_nT]: [, input[_NT]],
339
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
528
340
  });
529
341
  let body;
530
- return new protocol_http_1.HttpRequest({
531
- protocol,
532
- hostname,
533
- port,
534
- method: "GET",
535
- headers,
536
- path: resolvedPath,
537
- query,
538
- body,
539
- });
342
+ b.m("GET").h(headers).q(query).b(body);
343
+ return b.build();
540
344
  };
541
345
  exports.se_ListAlertsCommand = se_ListAlertsCommand;
542
346
  const se_ListChannelsCommand = async (input, context) => {
543
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
+ const b = (0, core_1.requestBuilder)(input, context);
544
348
  const headers = {};
545
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
349
+ b.bp("/channels");
546
350
  const query = (0, smithy_client_1.map)({
547
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
548
- nextToken: [, input.NextToken],
351
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
352
+ [_nT]: [, input[_NT]],
549
353
  });
550
354
  let body;
551
- return new protocol_http_1.HttpRequest({
552
- protocol,
553
- hostname,
554
- port,
555
- method: "GET",
556
- headers,
557
- path: resolvedPath,
558
- query,
559
- body,
560
- });
355
+ b.m("GET").h(headers).q(query).b(body);
356
+ return b.build();
561
357
  };
562
358
  exports.se_ListChannelsCommand = se_ListChannelsCommand;
563
359
  const se_ListLiveSourcesCommand = async (input, context) => {
564
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
360
+ const b = (0, core_1.requestBuilder)(input, context);
565
361
  const headers = {};
566
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
567
- "/sourceLocation/{SourceLocationName}/liveSources";
568
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
362
+ b.bp("/sourceLocation/{SourceLocationName}/liveSources");
363
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
569
364
  const query = (0, smithy_client_1.map)({
570
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
571
- nextToken: [, input.NextToken],
365
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
366
+ [_nT]: [, input[_NT]],
572
367
  });
573
368
  let body;
574
- return new protocol_http_1.HttpRequest({
575
- protocol,
576
- hostname,
577
- port,
578
- method: "GET",
579
- headers,
580
- path: resolvedPath,
581
- query,
582
- body,
583
- });
369
+ b.m("GET").h(headers).q(query).b(body);
370
+ return b.build();
584
371
  };
585
372
  exports.se_ListLiveSourcesCommand = se_ListLiveSourcesCommand;
586
373
  const se_ListPlaybackConfigurationsCommand = async (input, context) => {
587
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
374
+ const b = (0, core_1.requestBuilder)(input, context);
588
375
  const headers = {};
589
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfigurations";
376
+ b.bp("/playbackConfigurations");
590
377
  const query = (0, smithy_client_1.map)({
591
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
592
- NextToken: [, input.NextToken],
378
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
379
+ [_NT]: [, input[_NT]],
593
380
  });
594
381
  let body;
595
- return new protocol_http_1.HttpRequest({
596
- protocol,
597
- hostname,
598
- port,
599
- method: "GET",
600
- headers,
601
- path: resolvedPath,
602
- query,
603
- body,
604
- });
382
+ b.m("GET").h(headers).q(query).b(body);
383
+ return b.build();
605
384
  };
606
385
  exports.se_ListPlaybackConfigurationsCommand = se_ListPlaybackConfigurationsCommand;
607
386
  const se_ListPrefetchSchedulesCommand = async (input, context) => {
608
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
387
+ const b = (0, core_1.requestBuilder)(input, context);
609
388
  const headers = {
610
389
  "content-type": "application/json",
611
390
  };
612
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
613
- "/prefetchSchedule/{PlaybackConfigurationName}";
614
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
391
+ b.bp("/prefetchSchedule/{PlaybackConfigurationName}");
392
+ b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
615
393
  let body;
616
394
  body = JSON.stringify((0, smithy_client_1.take)(input, {
617
395
  MaxResults: [],
618
396
  NextToken: [],
619
397
  StreamId: [],
620
398
  }));
621
- return new protocol_http_1.HttpRequest({
622
- protocol,
623
- hostname,
624
- port,
625
- method: "POST",
626
- headers,
627
- path: resolvedPath,
628
- body,
629
- });
399
+ b.m("POST").h(headers).b(body);
400
+ return b.build();
630
401
  };
631
402
  exports.se_ListPrefetchSchedulesCommand = se_ListPrefetchSchedulesCommand;
632
403
  const se_ListSourceLocationsCommand = async (input, context) => {
633
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
+ const b = (0, core_1.requestBuilder)(input, context);
634
405
  const headers = {};
635
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocations";
406
+ b.bp("/sourceLocations");
636
407
  const query = (0, smithy_client_1.map)({
637
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
638
- nextToken: [, input.NextToken],
408
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
409
+ [_nT]: [, input[_NT]],
639
410
  });
640
411
  let body;
641
- return new protocol_http_1.HttpRequest({
642
- protocol,
643
- hostname,
644
- port,
645
- method: "GET",
646
- headers,
647
- path: resolvedPath,
648
- query,
649
- body,
650
- });
412
+ b.m("GET").h(headers).q(query).b(body);
413
+ return b.build();
651
414
  };
652
415
  exports.se_ListSourceLocationsCommand = se_ListSourceLocationsCommand;
653
416
  const se_ListTagsForResourceCommand = async (input, context) => {
654
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
+ const b = (0, core_1.requestBuilder)(input, context);
655
418
  const headers = {};
656
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
657
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
419
+ b.bp("/tags/{ResourceArn}");
420
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
658
421
  let body;
659
- return new protocol_http_1.HttpRequest({
660
- protocol,
661
- hostname,
662
- port,
663
- method: "GET",
664
- headers,
665
- path: resolvedPath,
666
- body,
667
- });
422
+ b.m("GET").h(headers).b(body);
423
+ return b.build();
668
424
  };
669
425
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
670
426
  const se_ListVodSourcesCommand = async (input, context) => {
671
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
427
+ const b = (0, core_1.requestBuilder)(input, context);
672
428
  const headers = {};
673
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
674
- "/sourceLocation/{SourceLocationName}/vodSources";
675
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
429
+ b.bp("/sourceLocation/{SourceLocationName}/vodSources");
430
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
676
431
  const query = (0, smithy_client_1.map)({
677
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
678
- nextToken: [, input.NextToken],
432
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
433
+ [_nT]: [, input[_NT]],
679
434
  });
680
435
  let body;
681
- return new protocol_http_1.HttpRequest({
682
- protocol,
683
- hostname,
684
- port,
685
- method: "GET",
686
- headers,
687
- path: resolvedPath,
688
- query,
689
- body,
690
- });
436
+ b.m("GET").h(headers).q(query).b(body);
437
+ return b.build();
691
438
  };
692
439
  exports.se_ListVodSourcesCommand = se_ListVodSourcesCommand;
693
440
  const se_PutChannelPolicyCommand = async (input, context) => {
694
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
441
+ const b = (0, core_1.requestBuilder)(input, context);
695
442
  const headers = {
696
443
  "content-type": "application/json",
697
444
  };
698
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
699
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
445
+ b.bp("/channel/{ChannelName}/policy");
446
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
700
447
  let body;
701
448
  body = JSON.stringify((0, smithy_client_1.take)(input, {
702
449
  Policy: [],
703
450
  }));
704
- return new protocol_http_1.HttpRequest({
705
- protocol,
706
- hostname,
707
- port,
708
- method: "PUT",
709
- headers,
710
- path: resolvedPath,
711
- body,
712
- });
451
+ b.m("PUT").h(headers).b(body);
452
+ return b.build();
713
453
  };
714
454
  exports.se_PutChannelPolicyCommand = se_PutChannelPolicyCommand;
715
455
  const se_PutPlaybackConfigurationCommand = async (input, context) => {
716
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
456
+ const b = (0, core_1.requestBuilder)(input, context);
717
457
  const headers = {
718
458
  "content-type": "application/json",
719
459
  };
720
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
460
+ b.bp("/playbackConfiguration");
721
461
  let body;
722
462
  body = JSON.stringify((0, smithy_client_1.take)(input, {
723
463
  AdDecisionServerUrl: [],
@@ -735,176 +475,117 @@ const se_PutPlaybackConfigurationCommand = async (input, context) => {
735
475
  TranscodeProfileName: [],
736
476
  VideoContentSourceUrl: [],
737
477
  }));
738
- return new protocol_http_1.HttpRequest({
739
- protocol,
740
- hostname,
741
- port,
742
- method: "PUT",
743
- headers,
744
- path: resolvedPath,
745
- body,
746
- });
478
+ b.m("PUT").h(headers).b(body);
479
+ return b.build();
747
480
  };
748
481
  exports.se_PutPlaybackConfigurationCommand = se_PutPlaybackConfigurationCommand;
749
482
  const se_StartChannelCommand = async (input, context) => {
750
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
483
+ const b = (0, core_1.requestBuilder)(input, context);
751
484
  const headers = {};
752
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/start";
753
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
485
+ b.bp("/channel/{ChannelName}/start");
486
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
754
487
  let body;
755
- return new protocol_http_1.HttpRequest({
756
- protocol,
757
- hostname,
758
- port,
759
- method: "PUT",
760
- headers,
761
- path: resolvedPath,
762
- body,
763
- });
488
+ b.m("PUT").h(headers).b(body);
489
+ return b.build();
764
490
  };
765
491
  exports.se_StartChannelCommand = se_StartChannelCommand;
766
492
  const se_StopChannelCommand = async (input, context) => {
767
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
493
+ const b = (0, core_1.requestBuilder)(input, context);
768
494
  const headers = {};
769
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/stop";
770
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
495
+ b.bp("/channel/{ChannelName}/stop");
496
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
771
497
  let body;
772
- return new protocol_http_1.HttpRequest({
773
- protocol,
774
- hostname,
775
- port,
776
- method: "PUT",
777
- headers,
778
- path: resolvedPath,
779
- body,
780
- });
498
+ b.m("PUT").h(headers).b(body);
499
+ return b.build();
781
500
  };
782
501
  exports.se_StopChannelCommand = se_StopChannelCommand;
783
502
  const se_TagResourceCommand = async (input, context) => {
784
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
503
+ const b = (0, core_1.requestBuilder)(input, context);
785
504
  const headers = {
786
505
  "content-type": "application/json",
787
506
  };
788
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
789
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
507
+ b.bp("/tags/{ResourceArn}");
508
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
790
509
  let body;
791
510
  body = JSON.stringify((0, smithy_client_1.take)(input, {
792
511
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
793
512
  }));
794
- return new protocol_http_1.HttpRequest({
795
- protocol,
796
- hostname,
797
- port,
798
- method: "POST",
799
- headers,
800
- path: resolvedPath,
801
- body,
802
- });
513
+ b.m("POST").h(headers).b(body);
514
+ return b.build();
803
515
  };
804
516
  exports.se_TagResourceCommand = se_TagResourceCommand;
805
517
  const se_UntagResourceCommand = async (input, context) => {
806
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
518
+ const b = (0, core_1.requestBuilder)(input, context);
807
519
  const headers = {};
808
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
809
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
520
+ b.bp("/tags/{ResourceArn}");
521
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
810
522
  const query = (0, smithy_client_1.map)({
811
- tagKeys: [
523
+ [_tK]: [
812
524
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
813
- () => (input.TagKeys || []).map((_entry) => _entry),
525
+ () => (input[_TK] || []).map((_entry) => _entry),
814
526
  ],
815
527
  });
816
528
  let body;
817
- return new protocol_http_1.HttpRequest({
818
- protocol,
819
- hostname,
820
- port,
821
- method: "DELETE",
822
- headers,
823
- path: resolvedPath,
824
- query,
825
- body,
826
- });
529
+ b.m("DELETE").h(headers).q(query).b(body);
530
+ return b.build();
827
531
  };
828
532
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
829
533
  const se_UpdateChannelCommand = async (input, context) => {
830
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
534
+ const b = (0, core_1.requestBuilder)(input, context);
831
535
  const headers = {
832
536
  "content-type": "application/json",
833
537
  };
834
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
835
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
538
+ b.bp("/channel/{ChannelName}");
539
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
836
540
  let body;
837
541
  body = JSON.stringify((0, smithy_client_1.take)(input, {
838
542
  FillerSlate: (_) => (0, smithy_client_1._json)(_),
839
543
  Outputs: (_) => (0, smithy_client_1._json)(_),
840
544
  }));
841
- return new protocol_http_1.HttpRequest({
842
- protocol,
843
- hostname,
844
- port,
845
- method: "PUT",
846
- headers,
847
- path: resolvedPath,
848
- body,
849
- });
545
+ b.m("PUT").h(headers).b(body);
546
+ return b.build();
850
547
  };
851
548
  exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
852
549
  const se_UpdateLiveSourceCommand = async (input, context) => {
853
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
550
+ const b = (0, core_1.requestBuilder)(input, context);
854
551
  const headers = {
855
552
  "content-type": "application/json",
856
553
  };
857
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
858
- "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
859
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
860
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
554
+ b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
555
+ b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
556
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
861
557
  let body;
862
558
  body = JSON.stringify((0, smithy_client_1.take)(input, {
863
559
  HttpPackageConfigurations: (_) => (0, smithy_client_1._json)(_),
864
560
  }));
865
- return new protocol_http_1.HttpRequest({
866
- protocol,
867
- hostname,
868
- port,
869
- method: "PUT",
870
- headers,
871
- path: resolvedPath,
872
- body,
873
- });
561
+ b.m("PUT").h(headers).b(body);
562
+ return b.build();
874
563
  };
875
564
  exports.se_UpdateLiveSourceCommand = se_UpdateLiveSourceCommand;
876
565
  const se_UpdateProgramCommand = async (input, context) => {
877
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
566
+ const b = (0, core_1.requestBuilder)(input, context);
878
567
  const headers = {
879
568
  "content-type": "application/json",
880
569
  };
881
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
882
- "/channel/{ChannelName}/program/{ProgramName}";
883
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
884
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
570
+ b.bp("/channel/{ChannelName}/program/{ProgramName}");
571
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
572
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
885
573
  let body;
886
574
  body = JSON.stringify((0, smithy_client_1.take)(input, {
887
575
  AdBreaks: (_) => (0, smithy_client_1._json)(_),
888
576
  ScheduleConfiguration: (_) => (0, smithy_client_1._json)(_),
889
577
  }));
890
- return new protocol_http_1.HttpRequest({
891
- protocol,
892
- hostname,
893
- port,
894
- method: "PUT",
895
- headers,
896
- path: resolvedPath,
897
- body,
898
- });
578
+ b.m("PUT").h(headers).b(body);
579
+ return b.build();
899
580
  };
900
581
  exports.se_UpdateProgramCommand = se_UpdateProgramCommand;
901
582
  const se_UpdateSourceLocationCommand = async (input, context) => {
902
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
583
+ const b = (0, core_1.requestBuilder)(input, context);
903
584
  const headers = {
904
585
  "content-type": "application/json",
905
586
  };
906
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
907
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
587
+ b.bp("/sourceLocation/{SourceLocationName}");
588
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
908
589
  let body;
909
590
  body = JSON.stringify((0, smithy_client_1.take)(input, {
910
591
  AccessConfiguration: (_) => (0, smithy_client_1._json)(_),
@@ -912,39 +593,24 @@ const se_UpdateSourceLocationCommand = async (input, context) => {
912
593
  HttpConfiguration: (_) => (0, smithy_client_1._json)(_),
913
594
  SegmentDeliveryConfigurations: (_) => (0, smithy_client_1._json)(_),
914
595
  }));
915
- return new protocol_http_1.HttpRequest({
916
- protocol,
917
- hostname,
918
- port,
919
- method: "PUT",
920
- headers,
921
- path: resolvedPath,
922
- body,
923
- });
596
+ b.m("PUT").h(headers).b(body);
597
+ return b.build();
924
598
  };
925
599
  exports.se_UpdateSourceLocationCommand = se_UpdateSourceLocationCommand;
926
600
  const se_UpdateVodSourceCommand = async (input, context) => {
927
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
601
+ const b = (0, core_1.requestBuilder)(input, context);
928
602
  const headers = {
929
603
  "content-type": "application/json",
930
604
  };
931
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
932
- "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
933
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
934
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
605
+ b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
606
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
607
+ b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
935
608
  let body;
936
609
  body = JSON.stringify((0, smithy_client_1.take)(input, {
937
610
  HttpPackageConfigurations: (_) => (0, smithy_client_1._json)(_),
938
611
  }));
939
- return new protocol_http_1.HttpRequest({
940
- protocol,
941
- hostname,
942
- port,
943
- method: "PUT",
944
- headers,
945
- path: resolvedPath,
946
- body,
947
- });
612
+ b.m("PUT").h(headers).b(body);
613
+ return b.build();
948
614
  };
949
615
  exports.se_UpdateVodSourceCommand = se_UpdateVodSourceCommand;
950
616
  const de_ConfigureLogsForChannelCommand = async (output, context) => {
@@ -2561,6 +2227,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2561
2227
  value !== "" &&
2562
2228
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2563
2229
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2230
+ const _DM = "DurationMinutes";
2231
+ const _MR = "MaxResults";
2232
+ const _NT = "NextToken";
2233
+ const _RA = "ResourceArn";
2234
+ const _TK = "TagKeys";
2235
+ const _dM = "durationMinutes";
2236
+ const _mR = "maxResults";
2237
+ const _nT = "nextToken";
2238
+ const _rA = "resourceArn";
2239
+ const _tK = "tagKeys";
2564
2240
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2565
2241
  if (encoded.length) {
2566
2242
  return JSON.parse(encoded);