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