@aws-sdk/client-mediatailor 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist-cjs/pagination/GetChannelSchedulePaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAlertsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListLiveSourcesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListPrefetchSchedulesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListSourceLocationsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListVodSourcesPaginator.js +2 -24
  9. package/dist-cjs/protocols/Aws_restJson1.js +262 -581
  10. package/dist-es/pagination/GetChannelSchedulePaginator.js +2 -23
  11. package/dist-es/pagination/ListAlertsPaginator.js +2 -23
  12. package/dist-es/pagination/ListChannelsPaginator.js +2 -23
  13. package/dist-es/pagination/ListLiveSourcesPaginator.js +2 -23
  14. package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +2 -23
  15. package/dist-es/pagination/ListPrefetchSchedulesPaginator.js +2 -23
  16. package/dist-es/pagination/ListSourceLocationsPaginator.js +2 -23
  17. package/dist-es/pagination/ListVodSourcesPaginator.js +2 -23
  18. package/dist-es/protocols/Aws_restJson1.js +263 -582
  19. package/dist-types/commands/CreateChannelCommand.d.ts +6 -0
  20. package/dist-types/commands/DescribeChannelCommand.d.ts +3 -0
  21. package/dist-types/commands/UpdateChannelCommand.d.ts +6 -0
  22. package/dist-types/models/models_0.d.ts +51 -0
  23. package/dist-types/pagination/GetChannelSchedulePaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListAlertsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListLiveSourcesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListPlaybackConfigurationsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListPrefetchSchedulesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListSourceLocationsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListVodSourcesPaginator.d.ts +1 -1
  31. package/dist-types/ts3.4/models/models_0.d.ts +8 -0
  32. package/dist-types/ts3.4/pagination/GetChannelSchedulePaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListAlertsPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListLiveSourcesPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListPlaybackConfigurationsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListPrefetchSchedulesPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListSourceLocationsPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListVodSourcesPaginator.d.ts +3 -3
  40. package/package.json +7 -6
@@ -1,56 +1,42 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { MediaTailorServiceException as __BaseException } from "../models/MediaTailorServiceException";
4
4
  import { BadRequestException, } from "../models/models_0";
5
5
  export const se_ConfigureLogsForChannelCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/channel";
10
+ b.bp("/configureLogs/channel");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  ChannelName: [],
14
14
  LogTypes: (_) => _json(_),
15
15
  }));
16
- return new __HttpRequest({
17
- protocol,
18
- hostname,
19
- port,
20
- method: "PUT",
21
- headers,
22
- path: resolvedPath,
23
- body,
24
- });
16
+ b.m("PUT").h(headers).b(body);
17
+ return b.build();
25
18
  };
26
19
  export const se_ConfigureLogsForPlaybackConfigurationCommand = async (input, context) => {
27
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
20
+ const b = rb(input, context);
28
21
  const headers = {
29
22
  "content-type": "application/json",
30
23
  };
31
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
24
+ b.bp("/configureLogs/playbackConfiguration");
32
25
  let body;
33
26
  body = JSON.stringify(take(input, {
34
27
  PercentEnabled: [],
35
28
  PlaybackConfigurationName: [],
36
29
  }));
37
- return new __HttpRequest({
38
- protocol,
39
- hostname,
40
- port,
41
- method: "PUT",
42
- headers,
43
- path: resolvedPath,
44
- body,
45
- });
30
+ b.m("PUT").h(headers).b(body);
31
+ return b.build();
46
32
  };
47
33
  export const se_CreateChannelCommand = async (input, context) => {
48
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
+ const b = rb(input, context);
49
35
  const headers = {
50
36
  "content-type": "application/json",
51
37
  };
52
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
53
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
38
+ b.bp("/channel/{ChannelName}");
39
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
54
40
  let body;
55
41
  body = JSON.stringify(take(input, {
56
42
  FillerSlate: (_) => _json(_),
@@ -58,75 +44,52 @@ export const se_CreateChannelCommand = async (input, context) => {
58
44
  PlaybackMode: [],
59
45
  tags: [, (_) => _json(_), `Tags`],
60
46
  Tier: [],
47
+ TimeShiftConfiguration: (_) => _json(_),
61
48
  }));
62
- return new __HttpRequest({
63
- protocol,
64
- hostname,
65
- port,
66
- method: "POST",
67
- headers,
68
- path: resolvedPath,
69
- body,
70
- });
49
+ b.m("POST").h(headers).b(body);
50
+ return b.build();
71
51
  };
72
52
  export const se_CreateLiveSourceCommand = async (input, context) => {
73
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const b = rb(input, context);
74
54
  const headers = {
75
55
  "content-type": "application/json",
76
56
  };
77
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
78
- "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
79
- resolvedPath = __resolvedPath(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
80
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
57
+ b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
58
+ b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
59
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
81
60
  let body;
82
61
  body = JSON.stringify(take(input, {
83
62
  HttpPackageConfigurations: (_) => _json(_),
84
63
  tags: [, (_) => _json(_), `Tags`],
85
64
  }));
86
- return new __HttpRequest({
87
- protocol,
88
- hostname,
89
- port,
90
- method: "POST",
91
- headers,
92
- path: resolvedPath,
93
- body,
94
- });
65
+ b.m("POST").h(headers).b(body);
66
+ return b.build();
95
67
  };
96
68
  export const se_CreatePrefetchScheduleCommand = async (input, context) => {
97
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = rb(input, context);
98
70
  const headers = {
99
71
  "content-type": "application/json",
100
72
  };
101
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
102
- "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
103
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
104
- resolvedPath = __resolvedPath(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
73
+ b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
74
+ b.p("Name", () => input.Name, "{Name}", false);
75
+ b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
105
76
  let body;
106
77
  body = JSON.stringify(take(input, {
107
78
  Consumption: (_) => se_PrefetchConsumption(_, context),
108
79
  Retrieval: (_) => se_PrefetchRetrieval(_, context),
109
80
  StreamId: [],
110
81
  }));
111
- return new __HttpRequest({
112
- protocol,
113
- hostname,
114
- port,
115
- method: "POST",
116
- headers,
117
- path: resolvedPath,
118
- body,
119
- });
82
+ b.m("POST").h(headers).b(body);
83
+ return b.build();
120
84
  };
121
85
  export const se_CreateProgramCommand = async (input, context) => {
122
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
+ const b = rb(input, context);
123
87
  const headers = {
124
88
  "content-type": "application/json",
125
89
  };
126
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
127
- "/channel/{ChannelName}/program/{ProgramName}";
128
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
129
- resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
90
+ b.bp("/channel/{ChannelName}/program/{ProgramName}");
91
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
92
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
130
93
  let body;
131
94
  body = JSON.stringify(take(input, {
132
95
  AdBreaks: (_) => _json(_),
@@ -135,23 +98,16 @@ export const se_CreateProgramCommand = async (input, context) => {
135
98
  SourceLocationName: [],
136
99
  VodSourceName: [],
137
100
  }));
138
- return new __HttpRequest({
139
- protocol,
140
- hostname,
141
- port,
142
- method: "POST",
143
- headers,
144
- path: resolvedPath,
145
- body,
146
- });
101
+ b.m("POST").h(headers).b(body);
102
+ return b.build();
147
103
  };
148
104
  export const se_CreateSourceLocationCommand = async (input, context) => {
149
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = rb(input, context);
150
106
  const headers = {
151
107
  "content-type": "application/json",
152
108
  };
153
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
154
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
109
+ b.bp("/sourceLocation/{SourceLocationName}");
110
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
155
111
  let body;
156
112
  body = JSON.stringify(take(input, {
157
113
  AccessConfiguration: (_) => _json(_),
@@ -160,526 +116,311 @@ export const se_CreateSourceLocationCommand = async (input, context) => {
160
116
  SegmentDeliveryConfigurations: (_) => _json(_),
161
117
  tags: [, (_) => _json(_), `Tags`],
162
118
  }));
163
- return new __HttpRequest({
164
- protocol,
165
- hostname,
166
- port,
167
- method: "POST",
168
- headers,
169
- path: resolvedPath,
170
- body,
171
- });
119
+ b.m("POST").h(headers).b(body);
120
+ return b.build();
172
121
  };
173
122
  export const se_CreateVodSourceCommand = async (input, context) => {
174
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
+ const b = rb(input, context);
175
124
  const headers = {
176
125
  "content-type": "application/json",
177
126
  };
178
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
179
- "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
180
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
181
- resolvedPath = __resolvedPath(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
127
+ b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
128
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
129
+ b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
182
130
  let body;
183
131
  body = JSON.stringify(take(input, {
184
132
  HttpPackageConfigurations: (_) => _json(_),
185
133
  tags: [, (_) => _json(_), `Tags`],
186
134
  }));
187
- return new __HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "POST",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
135
+ b.m("POST").h(headers).b(body);
136
+ return b.build();
196
137
  };
197
138
  export const se_DeleteChannelCommand = async (input, context) => {
198
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = rb(input, context);
199
140
  const headers = {};
200
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
201
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
141
+ b.bp("/channel/{ChannelName}");
142
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
202
143
  let body;
203
- return new __HttpRequest({
204
- protocol,
205
- hostname,
206
- port,
207
- method: "DELETE",
208
- headers,
209
- path: resolvedPath,
210
- body,
211
- });
144
+ b.m("DELETE").h(headers).b(body);
145
+ return b.build();
212
146
  };
213
147
  export const se_DeleteChannelPolicyCommand = async (input, context) => {
214
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = rb(input, context);
215
149
  const headers = {};
216
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
217
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
150
+ b.bp("/channel/{ChannelName}/policy");
151
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
218
152
  let body;
219
- return new __HttpRequest({
220
- protocol,
221
- hostname,
222
- port,
223
- method: "DELETE",
224
- headers,
225
- path: resolvedPath,
226
- body,
227
- });
153
+ b.m("DELETE").h(headers).b(body);
154
+ return b.build();
228
155
  };
229
156
  export const se_DeleteLiveSourceCommand = async (input, context) => {
230
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const b = rb(input, context);
231
158
  const headers = {};
232
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
233
- "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
234
- resolvedPath = __resolvedPath(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
235
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
159
+ b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
160
+ b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
161
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
236
162
  let body;
237
- return new __HttpRequest({
238
- protocol,
239
- hostname,
240
- port,
241
- method: "DELETE",
242
- headers,
243
- path: resolvedPath,
244
- body,
245
- });
163
+ b.m("DELETE").h(headers).b(body);
164
+ return b.build();
246
165
  };
247
166
  export const se_DeletePlaybackConfigurationCommand = async (input, context) => {
248
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
167
+ const b = rb(input, context);
249
168
  const headers = {};
250
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
251
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
169
+ b.bp("/playbackConfiguration/{Name}");
170
+ b.p("Name", () => input.Name, "{Name}", false);
252
171
  let body;
253
- return new __HttpRequest({
254
- protocol,
255
- hostname,
256
- port,
257
- method: "DELETE",
258
- headers,
259
- path: resolvedPath,
260
- body,
261
- });
172
+ b.m("DELETE").h(headers).b(body);
173
+ return b.build();
262
174
  };
263
175
  export const se_DeletePrefetchScheduleCommand = async (input, context) => {
264
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
176
+ const b = rb(input, context);
265
177
  const headers = {};
266
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
267
- "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
268
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
269
- resolvedPath = __resolvedPath(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
178
+ b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
179
+ b.p("Name", () => input.Name, "{Name}", false);
180
+ b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
270
181
  let body;
271
- return new __HttpRequest({
272
- protocol,
273
- hostname,
274
- port,
275
- method: "DELETE",
276
- headers,
277
- path: resolvedPath,
278
- body,
279
- });
182
+ b.m("DELETE").h(headers).b(body);
183
+ return b.build();
280
184
  };
281
185
  export const se_DeleteProgramCommand = async (input, context) => {
282
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
+ const b = rb(input, context);
283
187
  const headers = {};
284
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
285
- "/channel/{ChannelName}/program/{ProgramName}";
286
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
287
- resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
188
+ b.bp("/channel/{ChannelName}/program/{ProgramName}");
189
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
190
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
288
191
  let body;
289
- return new __HttpRequest({
290
- protocol,
291
- hostname,
292
- port,
293
- method: "DELETE",
294
- headers,
295
- path: resolvedPath,
296
- body,
297
- });
192
+ b.m("DELETE").h(headers).b(body);
193
+ return b.build();
298
194
  };
299
195
  export const se_DeleteSourceLocationCommand = async (input, context) => {
300
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
196
+ const b = rb(input, context);
301
197
  const headers = {};
302
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
303
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
198
+ b.bp("/sourceLocation/{SourceLocationName}");
199
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
304
200
  let body;
305
- return new __HttpRequest({
306
- protocol,
307
- hostname,
308
- port,
309
- method: "DELETE",
310
- headers,
311
- path: resolvedPath,
312
- body,
313
- });
201
+ b.m("DELETE").h(headers).b(body);
202
+ return b.build();
314
203
  };
315
204
  export const se_DeleteVodSourceCommand = async (input, context) => {
316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
205
+ const b = rb(input, context);
317
206
  const headers = {};
318
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
319
- "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
320
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
321
- resolvedPath = __resolvedPath(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
207
+ b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
208
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
209
+ b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
322
210
  let body;
323
- return new __HttpRequest({
324
- protocol,
325
- hostname,
326
- port,
327
- method: "DELETE",
328
- headers,
329
- path: resolvedPath,
330
- body,
331
- });
211
+ b.m("DELETE").h(headers).b(body);
212
+ return b.build();
332
213
  };
333
214
  export const se_DescribeChannelCommand = async (input, context) => {
334
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
215
+ const b = rb(input, context);
335
216
  const headers = {};
336
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
337
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
217
+ b.bp("/channel/{ChannelName}");
218
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
338
219
  let body;
339
- return new __HttpRequest({
340
- protocol,
341
- hostname,
342
- port,
343
- method: "GET",
344
- headers,
345
- path: resolvedPath,
346
- body,
347
- });
220
+ b.m("GET").h(headers).b(body);
221
+ return b.build();
348
222
  };
349
223
  export const se_DescribeLiveSourceCommand = async (input, context) => {
350
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const b = rb(input, context);
351
225
  const headers = {};
352
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
353
- "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
354
- resolvedPath = __resolvedPath(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
355
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
226
+ b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
227
+ b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
228
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
356
229
  let body;
357
- return new __HttpRequest({
358
- protocol,
359
- hostname,
360
- port,
361
- method: "GET",
362
- headers,
363
- path: resolvedPath,
364
- body,
365
- });
230
+ b.m("GET").h(headers).b(body);
231
+ return b.build();
366
232
  };
367
233
  export const se_DescribeProgramCommand = async (input, context) => {
368
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const b = rb(input, context);
369
235
  const headers = {};
370
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
371
- "/channel/{ChannelName}/program/{ProgramName}";
372
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
373
- resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
236
+ b.bp("/channel/{ChannelName}/program/{ProgramName}");
237
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
238
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
374
239
  let body;
375
- return new __HttpRequest({
376
- protocol,
377
- hostname,
378
- port,
379
- method: "GET",
380
- headers,
381
- path: resolvedPath,
382
- body,
383
- });
240
+ b.m("GET").h(headers).b(body);
241
+ return b.build();
384
242
  };
385
243
  export const se_DescribeSourceLocationCommand = async (input, context) => {
386
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
+ const b = rb(input, context);
387
245
  const headers = {};
388
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
389
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
246
+ b.bp("/sourceLocation/{SourceLocationName}");
247
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
390
248
  let body;
391
- return new __HttpRequest({
392
- protocol,
393
- hostname,
394
- port,
395
- method: "GET",
396
- headers,
397
- path: resolvedPath,
398
- body,
399
- });
249
+ b.m("GET").h(headers).b(body);
250
+ return b.build();
400
251
  };
401
252
  export const se_DescribeVodSourceCommand = async (input, context) => {
402
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = rb(input, context);
403
254
  const headers = {};
404
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
405
- "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
406
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
407
- resolvedPath = __resolvedPath(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
255
+ b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
256
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
257
+ b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
408
258
  let body;
409
- return new __HttpRequest({
410
- protocol,
411
- hostname,
412
- port,
413
- method: "GET",
414
- headers,
415
- path: resolvedPath,
416
- body,
417
- });
259
+ b.m("GET").h(headers).b(body);
260
+ return b.build();
418
261
  };
419
262
  export const se_GetChannelPolicyCommand = async (input, context) => {
420
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
+ const b = rb(input, context);
421
264
  const headers = {};
422
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
423
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
265
+ b.bp("/channel/{ChannelName}/policy");
266
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
424
267
  let body;
425
- return new __HttpRequest({
426
- protocol,
427
- hostname,
428
- port,
429
- method: "GET",
430
- headers,
431
- path: resolvedPath,
432
- body,
433
- });
268
+ b.m("GET").h(headers).b(body);
269
+ return b.build();
434
270
  };
435
271
  export const se_GetChannelScheduleCommand = async (input, context) => {
436
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
+ const b = rb(input, context);
437
273
  const headers = {};
438
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/schedule";
439
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
274
+ b.bp("/channel/{ChannelName}/schedule");
275
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
440
276
  const query = map({
441
- durationMinutes: [, input.DurationMinutes],
442
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
443
- nextToken: [, input.NextToken],
277
+ [_dM]: [, input[_DM]],
278
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
279
+ [_nT]: [, input[_NT]],
444
280
  });
445
281
  let body;
446
- return new __HttpRequest({
447
- protocol,
448
- hostname,
449
- port,
450
- method: "GET",
451
- headers,
452
- path: resolvedPath,
453
- query,
454
- body,
455
- });
282
+ b.m("GET").h(headers).q(query).b(body);
283
+ return b.build();
456
284
  };
457
285
  export const se_GetPlaybackConfigurationCommand = async (input, context) => {
458
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
286
+ const b = rb(input, context);
459
287
  const headers = {};
460
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
461
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
288
+ b.bp("/playbackConfiguration/{Name}");
289
+ b.p("Name", () => input.Name, "{Name}", false);
462
290
  let body;
463
- return new __HttpRequest({
464
- protocol,
465
- hostname,
466
- port,
467
- method: "GET",
468
- headers,
469
- path: resolvedPath,
470
- body,
471
- });
291
+ b.m("GET").h(headers).b(body);
292
+ return b.build();
472
293
  };
473
294
  export const se_GetPrefetchScheduleCommand = async (input, context) => {
474
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
295
+ const b = rb(input, context);
475
296
  const headers = {};
476
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
477
- "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
478
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
479
- resolvedPath = __resolvedPath(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
297
+ b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
298
+ b.p("Name", () => input.Name, "{Name}", false);
299
+ b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
480
300
  let body;
481
- return new __HttpRequest({
482
- protocol,
483
- hostname,
484
- port,
485
- method: "GET",
486
- headers,
487
- path: resolvedPath,
488
- body,
489
- });
301
+ b.m("GET").h(headers).b(body);
302
+ return b.build();
490
303
  };
491
304
  export const se_ListAlertsCommand = async (input, context) => {
492
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
305
+ const b = rb(input, context);
493
306
  const headers = {};
494
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alerts";
307
+ b.bp("/alerts");
495
308
  const query = map({
496
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
497
- nextToken: [, input.NextToken],
498
- resourceArn: [, __expectNonNull(input.ResourceArn, `ResourceArn`)],
309
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
310
+ [_nT]: [, input[_NT]],
311
+ [_rA]: [, __expectNonNull(input[_RA], `ResourceArn`)],
499
312
  });
500
313
  let body;
501
- return new __HttpRequest({
502
- protocol,
503
- hostname,
504
- port,
505
- method: "GET",
506
- headers,
507
- path: resolvedPath,
508
- query,
509
- body,
510
- });
314
+ b.m("GET").h(headers).q(query).b(body);
315
+ return b.build();
511
316
  };
512
317
  export const se_ListChannelsCommand = async (input, context) => {
513
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
318
+ const b = rb(input, context);
514
319
  const headers = {};
515
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
320
+ b.bp("/channels");
516
321
  const query = map({
517
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
518
- nextToken: [, input.NextToken],
322
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
323
+ [_nT]: [, input[_NT]],
519
324
  });
520
325
  let body;
521
- return new __HttpRequest({
522
- protocol,
523
- hostname,
524
- port,
525
- method: "GET",
526
- headers,
527
- path: resolvedPath,
528
- query,
529
- body,
530
- });
326
+ b.m("GET").h(headers).q(query).b(body);
327
+ return b.build();
531
328
  };
532
329
  export const se_ListLiveSourcesCommand = async (input, context) => {
533
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
330
+ const b = rb(input, context);
534
331
  const headers = {};
535
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
536
- "/sourceLocation/{SourceLocationName}/liveSources";
537
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
332
+ b.bp("/sourceLocation/{SourceLocationName}/liveSources");
333
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
538
334
  const query = map({
539
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
540
- nextToken: [, input.NextToken],
335
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
336
+ [_nT]: [, input[_NT]],
541
337
  });
542
338
  let body;
543
- return new __HttpRequest({
544
- protocol,
545
- hostname,
546
- port,
547
- method: "GET",
548
- headers,
549
- path: resolvedPath,
550
- query,
551
- body,
552
- });
339
+ b.m("GET").h(headers).q(query).b(body);
340
+ return b.build();
553
341
  };
554
342
  export const se_ListPlaybackConfigurationsCommand = async (input, context) => {
555
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
+ const b = rb(input, context);
556
344
  const headers = {};
557
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfigurations";
345
+ b.bp("/playbackConfigurations");
558
346
  const query = map({
559
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
560
- NextToken: [, input.NextToken],
347
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
348
+ [_NT]: [, input[_NT]],
561
349
  });
562
350
  let body;
563
- return new __HttpRequest({
564
- protocol,
565
- hostname,
566
- port,
567
- method: "GET",
568
- headers,
569
- path: resolvedPath,
570
- query,
571
- body,
572
- });
351
+ b.m("GET").h(headers).q(query).b(body);
352
+ return b.build();
573
353
  };
574
354
  export const se_ListPrefetchSchedulesCommand = async (input, context) => {
575
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
+ const b = rb(input, context);
576
356
  const headers = {
577
357
  "content-type": "application/json",
578
358
  };
579
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
580
- "/prefetchSchedule/{PlaybackConfigurationName}";
581
- resolvedPath = __resolvedPath(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
359
+ b.bp("/prefetchSchedule/{PlaybackConfigurationName}");
360
+ b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
582
361
  let body;
583
362
  body = JSON.stringify(take(input, {
584
363
  MaxResults: [],
585
364
  NextToken: [],
586
365
  StreamId: [],
587
366
  }));
588
- return new __HttpRequest({
589
- protocol,
590
- hostname,
591
- port,
592
- method: "POST",
593
- headers,
594
- path: resolvedPath,
595
- body,
596
- });
367
+ b.m("POST").h(headers).b(body);
368
+ return b.build();
597
369
  };
598
370
  export const se_ListSourceLocationsCommand = async (input, context) => {
599
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
371
+ const b = rb(input, context);
600
372
  const headers = {};
601
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocations";
373
+ b.bp("/sourceLocations");
602
374
  const query = map({
603
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
604
- nextToken: [, input.NextToken],
375
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
376
+ [_nT]: [, input[_NT]],
605
377
  });
606
378
  let body;
607
- return new __HttpRequest({
608
- protocol,
609
- hostname,
610
- port,
611
- method: "GET",
612
- headers,
613
- path: resolvedPath,
614
- query,
615
- body,
616
- });
379
+ b.m("GET").h(headers).q(query).b(body);
380
+ return b.build();
617
381
  };
618
382
  export const se_ListTagsForResourceCommand = async (input, context) => {
619
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
383
+ const b = rb(input, context);
620
384
  const headers = {};
621
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
622
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
385
+ b.bp("/tags/{ResourceArn}");
386
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
623
387
  let body;
624
- return new __HttpRequest({
625
- protocol,
626
- hostname,
627
- port,
628
- method: "GET",
629
- headers,
630
- path: resolvedPath,
631
- body,
632
- });
388
+ b.m("GET").h(headers).b(body);
389
+ return b.build();
633
390
  };
634
391
  export const se_ListVodSourcesCommand = async (input, context) => {
635
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
392
+ const b = rb(input, context);
636
393
  const headers = {};
637
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
638
- "/sourceLocation/{SourceLocationName}/vodSources";
639
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
394
+ b.bp("/sourceLocation/{SourceLocationName}/vodSources");
395
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
640
396
  const query = map({
641
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
642
- nextToken: [, input.NextToken],
397
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
398
+ [_nT]: [, input[_NT]],
643
399
  });
644
400
  let body;
645
- return new __HttpRequest({
646
- protocol,
647
- hostname,
648
- port,
649
- method: "GET",
650
- headers,
651
- path: resolvedPath,
652
- query,
653
- body,
654
- });
401
+ b.m("GET").h(headers).q(query).b(body);
402
+ return b.build();
655
403
  };
656
404
  export const se_PutChannelPolicyCommand = async (input, context) => {
657
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
+ const b = rb(input, context);
658
406
  const headers = {
659
407
  "content-type": "application/json",
660
408
  };
661
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
662
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
409
+ b.bp("/channel/{ChannelName}/policy");
410
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
663
411
  let body;
664
412
  body = JSON.stringify(take(input, {
665
413
  Policy: [],
666
414
  }));
667
- return new __HttpRequest({
668
- protocol,
669
- hostname,
670
- port,
671
- method: "PUT",
672
- headers,
673
- path: resolvedPath,
674
- body,
675
- });
415
+ b.m("PUT").h(headers).b(body);
416
+ return b.build();
676
417
  };
677
418
  export const se_PutPlaybackConfigurationCommand = async (input, context) => {
678
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
419
+ const b = rb(input, context);
679
420
  const headers = {
680
421
  "content-type": "application/json",
681
422
  };
682
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
423
+ b.bp("/playbackConfiguration");
683
424
  let body;
684
425
  body = JSON.stringify(take(input, {
685
426
  AdDecisionServerUrl: [],
@@ -697,168 +438,110 @@ export const se_PutPlaybackConfigurationCommand = async (input, context) => {
697
438
  TranscodeProfileName: [],
698
439
  VideoContentSourceUrl: [],
699
440
  }));
700
- return new __HttpRequest({
701
- protocol,
702
- hostname,
703
- port,
704
- method: "PUT",
705
- headers,
706
- path: resolvedPath,
707
- body,
708
- });
441
+ b.m("PUT").h(headers).b(body);
442
+ return b.build();
709
443
  };
710
444
  export const se_StartChannelCommand = async (input, context) => {
711
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
445
+ const b = rb(input, context);
712
446
  const headers = {};
713
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/start";
714
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
447
+ b.bp("/channel/{ChannelName}/start");
448
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
715
449
  let body;
716
- return new __HttpRequest({
717
- protocol,
718
- hostname,
719
- port,
720
- method: "PUT",
721
- headers,
722
- path: resolvedPath,
723
- body,
724
- });
450
+ b.m("PUT").h(headers).b(body);
451
+ return b.build();
725
452
  };
726
453
  export const se_StopChannelCommand = async (input, context) => {
727
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
+ const b = rb(input, context);
728
455
  const headers = {};
729
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/stop";
730
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
456
+ b.bp("/channel/{ChannelName}/stop");
457
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
731
458
  let body;
732
- return new __HttpRequest({
733
- protocol,
734
- hostname,
735
- port,
736
- method: "PUT",
737
- headers,
738
- path: resolvedPath,
739
- body,
740
- });
459
+ b.m("PUT").h(headers).b(body);
460
+ return b.build();
741
461
  };
742
462
  export const se_TagResourceCommand = async (input, context) => {
743
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
463
+ const b = rb(input, context);
744
464
  const headers = {
745
465
  "content-type": "application/json",
746
466
  };
747
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
748
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
467
+ b.bp("/tags/{ResourceArn}");
468
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
749
469
  let body;
750
470
  body = JSON.stringify(take(input, {
751
471
  tags: [, (_) => _json(_), `Tags`],
752
472
  }));
753
- return new __HttpRequest({
754
- protocol,
755
- hostname,
756
- port,
757
- method: "POST",
758
- headers,
759
- path: resolvedPath,
760
- body,
761
- });
473
+ b.m("POST").h(headers).b(body);
474
+ return b.build();
762
475
  };
763
476
  export const se_UntagResourceCommand = async (input, context) => {
764
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
477
+ const b = rb(input, context);
765
478
  const headers = {};
766
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
767
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
479
+ b.bp("/tags/{ResourceArn}");
480
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
768
481
  const query = map({
769
- tagKeys: [
482
+ [_tK]: [
770
483
  __expectNonNull(input.TagKeys, `TagKeys`) != null,
771
- () => (input.TagKeys || []).map((_entry) => _entry),
484
+ () => (input[_TK] || []).map((_entry) => _entry),
772
485
  ],
773
486
  });
774
487
  let body;
775
- return new __HttpRequest({
776
- protocol,
777
- hostname,
778
- port,
779
- method: "DELETE",
780
- headers,
781
- path: resolvedPath,
782
- query,
783
- body,
784
- });
488
+ b.m("DELETE").h(headers).q(query).b(body);
489
+ return b.build();
785
490
  };
786
491
  export const se_UpdateChannelCommand = async (input, context) => {
787
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
492
+ const b = rb(input, context);
788
493
  const headers = {
789
494
  "content-type": "application/json",
790
495
  };
791
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
792
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
496
+ b.bp("/channel/{ChannelName}");
497
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
793
498
  let body;
794
499
  body = JSON.stringify(take(input, {
795
500
  FillerSlate: (_) => _json(_),
796
501
  Outputs: (_) => _json(_),
502
+ TimeShiftConfiguration: (_) => _json(_),
797
503
  }));
798
- return new __HttpRequest({
799
- protocol,
800
- hostname,
801
- port,
802
- method: "PUT",
803
- headers,
804
- path: resolvedPath,
805
- body,
806
- });
504
+ b.m("PUT").h(headers).b(body);
505
+ return b.build();
807
506
  };
808
507
  export const se_UpdateLiveSourceCommand = async (input, context) => {
809
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
508
+ const b = rb(input, context);
810
509
  const headers = {
811
510
  "content-type": "application/json",
812
511
  };
813
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
814
- "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
815
- resolvedPath = __resolvedPath(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
816
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
512
+ b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
513
+ b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
514
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
817
515
  let body;
818
516
  body = JSON.stringify(take(input, {
819
517
  HttpPackageConfigurations: (_) => _json(_),
820
518
  }));
821
- return new __HttpRequest({
822
- protocol,
823
- hostname,
824
- port,
825
- method: "PUT",
826
- headers,
827
- path: resolvedPath,
828
- body,
829
- });
519
+ b.m("PUT").h(headers).b(body);
520
+ return b.build();
830
521
  };
831
522
  export const se_UpdateProgramCommand = async (input, context) => {
832
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
523
+ const b = rb(input, context);
833
524
  const headers = {
834
525
  "content-type": "application/json",
835
526
  };
836
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
837
- "/channel/{ChannelName}/program/{ProgramName}";
838
- resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
839
- resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
527
+ b.bp("/channel/{ChannelName}/program/{ProgramName}");
528
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
529
+ b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
840
530
  let body;
841
531
  body = JSON.stringify(take(input, {
842
532
  AdBreaks: (_) => _json(_),
843
533
  ScheduleConfiguration: (_) => _json(_),
844
534
  }));
845
- return new __HttpRequest({
846
- protocol,
847
- hostname,
848
- port,
849
- method: "PUT",
850
- headers,
851
- path: resolvedPath,
852
- body,
853
- });
535
+ b.m("PUT").h(headers).b(body);
536
+ return b.build();
854
537
  };
855
538
  export const se_UpdateSourceLocationCommand = async (input, context) => {
856
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
539
+ const b = rb(input, context);
857
540
  const headers = {
858
541
  "content-type": "application/json",
859
542
  };
860
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
861
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
543
+ b.bp("/sourceLocation/{SourceLocationName}");
544
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
862
545
  let body;
863
546
  body = JSON.stringify(take(input, {
864
547
  AccessConfiguration: (_) => _json(_),
@@ -866,38 +549,23 @@ export const se_UpdateSourceLocationCommand = async (input, context) => {
866
549
  HttpConfiguration: (_) => _json(_),
867
550
  SegmentDeliveryConfigurations: (_) => _json(_),
868
551
  }));
869
- return new __HttpRequest({
870
- protocol,
871
- hostname,
872
- port,
873
- method: "PUT",
874
- headers,
875
- path: resolvedPath,
876
- body,
877
- });
552
+ b.m("PUT").h(headers).b(body);
553
+ return b.build();
878
554
  };
879
555
  export const se_UpdateVodSourceCommand = async (input, context) => {
880
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
556
+ const b = rb(input, context);
881
557
  const headers = {
882
558
  "content-type": "application/json",
883
559
  };
884
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
885
- "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
886
- resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
887
- resolvedPath = __resolvedPath(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
560
+ b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
561
+ b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
562
+ b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
888
563
  let body;
889
564
  body = JSON.stringify(take(input, {
890
565
  HttpPackageConfigurations: (_) => _json(_),
891
566
  }));
892
- return new __HttpRequest({
893
- protocol,
894
- hostname,
895
- port,
896
- method: "PUT",
897
- headers,
898
- path: resolvedPath,
899
- body,
900
- });
567
+ b.m("PUT").h(headers).b(body);
568
+ return b.build();
901
569
  };
902
570
  export const de_ConfigureLogsForChannelCommand = async (output, context) => {
903
571
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -974,6 +642,7 @@ export const de_CreateChannelCommand = async (output, context) => {
974
642
  PlaybackMode: __expectString,
975
643
  Tags: [, _json, `tags`],
976
644
  Tier: __expectString,
645
+ TimeShiftConfiguration: _json,
977
646
  });
978
647
  Object.assign(contents, doc);
979
648
  return contents;
@@ -1365,6 +1034,7 @@ export const de_DescribeChannelCommand = async (output, context) => {
1365
1034
  PlaybackMode: __expectString,
1366
1035
  Tags: [, _json, `tags`],
1367
1036
  Tier: __expectString,
1037
+ TimeShiftConfiguration: _json,
1368
1038
  });
1369
1039
  Object.assign(contents, doc);
1370
1040
  return contents;
@@ -2073,6 +1743,7 @@ export const de_UpdateChannelCommand = async (output, context) => {
2073
1743
  PlaybackMode: __expectString,
2074
1744
  Tags: [, _json, `tags`],
2075
1745
  Tier: __expectString,
1746
+ TimeShiftConfiguration: _json,
2076
1747
  });
2077
1748
  Object.assign(contents, doc);
2078
1749
  return contents;
@@ -2469,6 +2140,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2469
2140
  value !== "" &&
2470
2141
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2471
2142
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2143
+ const _DM = "DurationMinutes";
2144
+ const _MR = "MaxResults";
2145
+ const _NT = "NextToken";
2146
+ const _RA = "ResourceArn";
2147
+ const _TK = "TagKeys";
2148
+ const _dM = "durationMinutes";
2149
+ const _mR = "maxResults";
2150
+ const _nT = "nextToken";
2151
+ const _rA = "resourceArn";
2152
+ const _tK = "tagKeys";
2472
2153
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2473
2154
  if (encoded.length) {
2474
2155
  return JSON.parse(encoded);