@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.
- package/dist-cjs/pagination/GetChannelSchedulePaginator.js +2 -24
- package/dist-cjs/pagination/ListAlertsPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLiveSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPrefetchSchedulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSourceLocationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVodSourcesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +262 -581
- package/dist-es/pagination/GetChannelSchedulePaginator.js +2 -23
- package/dist-es/pagination/ListAlertsPaginator.js +2 -23
- package/dist-es/pagination/ListChannelsPaginator.js +2 -23
- package/dist-es/pagination/ListLiveSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListPrefetchSchedulesPaginator.js +2 -23
- package/dist-es/pagination/ListSourceLocationsPaginator.js +2 -23
- package/dist-es/pagination/ListVodSourcesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +263 -582
- package/dist-types/commands/CreateChannelCommand.d.ts +6 -0
- package/dist-types/commands/DescribeChannelCommand.d.ts +3 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +51 -0
- package/dist-types/pagination/GetChannelSchedulePaginator.d.ts +1 -1
- package/dist-types/pagination/ListAlertsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLiveSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPlaybackConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPrefetchSchedulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSourceLocationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVodSourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/dist-types/ts3.4/pagination/GetChannelSchedulePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAlertsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLiveSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPlaybackConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPrefetchSchedulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSourceLocationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVodSourcesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,56 +1,42 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
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
|
-
|
|
17
|
-
|
|
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
|
|
20
|
+
const b = rb(input, context);
|
|
28
21
|
const headers = {
|
|
29
22
|
"content-type": "application/json",
|
|
30
23
|
};
|
|
31
|
-
|
|
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
|
-
|
|
38
|
-
|
|
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
|
|
34
|
+
const b = rb(input, context);
|
|
49
35
|
const headers = {
|
|
50
36
|
"content-type": "application/json",
|
|
51
37
|
};
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
63
|
-
|
|
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
|
|
53
|
+
const b = rb(input, context);
|
|
74
54
|
const headers = {
|
|
75
55
|
"content-type": "application/json",
|
|
76
56
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
87
|
-
|
|
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
|
|
69
|
+
const b = rb(input, context);
|
|
98
70
|
const headers = {
|
|
99
71
|
"content-type": "application/json",
|
|
100
72
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
112
|
-
|
|
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
|
|
86
|
+
const b = rb(input, context);
|
|
123
87
|
const headers = {
|
|
124
88
|
"content-type": "application/json",
|
|
125
89
|
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
139
|
-
|
|
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
|
|
105
|
+
const b = rb(input, context);
|
|
150
106
|
const headers = {
|
|
151
107
|
"content-type": "application/json",
|
|
152
108
|
};
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
164
|
-
|
|
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
|
|
123
|
+
const b = rb(input, context);
|
|
175
124
|
const headers = {
|
|
176
125
|
"content-type": "application/json",
|
|
177
126
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
188
|
-
|
|
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
|
|
139
|
+
const b = rb(input, context);
|
|
199
140
|
const headers = {};
|
|
200
|
-
|
|
201
|
-
|
|
141
|
+
b.bp("/channel/{ChannelName}");
|
|
142
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
202
143
|
let body;
|
|
203
|
-
|
|
204
|
-
|
|
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
|
|
148
|
+
const b = rb(input, context);
|
|
215
149
|
const headers = {};
|
|
216
|
-
|
|
217
|
-
|
|
150
|
+
b.bp("/channel/{ChannelName}/policy");
|
|
151
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
218
152
|
let body;
|
|
219
|
-
|
|
220
|
-
|
|
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
|
|
157
|
+
const b = rb(input, context);
|
|
231
158
|
const headers = {};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
238
|
-
|
|
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
|
|
167
|
+
const b = rb(input, context);
|
|
249
168
|
const headers = {};
|
|
250
|
-
|
|
251
|
-
|
|
169
|
+
b.bp("/playbackConfiguration/{Name}");
|
|
170
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
252
171
|
let body;
|
|
253
|
-
|
|
254
|
-
|
|
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
|
|
176
|
+
const b = rb(input, context);
|
|
265
177
|
const headers = {};
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
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
|
-
|
|
272
|
-
|
|
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
|
|
186
|
+
const b = rb(input, context);
|
|
283
187
|
const headers = {};
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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
|
-
|
|
290
|
-
|
|
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
|
|
196
|
+
const b = rb(input, context);
|
|
301
197
|
const headers = {};
|
|
302
|
-
|
|
303
|
-
|
|
198
|
+
b.bp("/sourceLocation/{SourceLocationName}");
|
|
199
|
+
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
304
200
|
let body;
|
|
305
|
-
|
|
306
|
-
|
|
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
|
|
205
|
+
const b = rb(input, context);
|
|
317
206
|
const headers = {};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|
-
|
|
324
|
-
|
|
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
|
|
215
|
+
const b = rb(input, context);
|
|
335
216
|
const headers = {};
|
|
336
|
-
|
|
337
|
-
|
|
217
|
+
b.bp("/channel/{ChannelName}");
|
|
218
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
338
219
|
let body;
|
|
339
|
-
|
|
340
|
-
|
|
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
|
|
224
|
+
const b = rb(input, context);
|
|
351
225
|
const headers = {};
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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
|
-
|
|
358
|
-
|
|
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
|
|
234
|
+
const b = rb(input, context);
|
|
369
235
|
const headers = {};
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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
|
-
|
|
376
|
-
|
|
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
|
|
244
|
+
const b = rb(input, context);
|
|
387
245
|
const headers = {};
|
|
388
|
-
|
|
389
|
-
|
|
246
|
+
b.bp("/sourceLocation/{SourceLocationName}");
|
|
247
|
+
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
390
248
|
let body;
|
|
391
|
-
|
|
392
|
-
|
|
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
|
|
253
|
+
const b = rb(input, context);
|
|
403
254
|
const headers = {};
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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
|
-
|
|
410
|
-
|
|
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
|
|
263
|
+
const b = rb(input, context);
|
|
421
264
|
const headers = {};
|
|
422
|
-
|
|
423
|
-
|
|
265
|
+
b.bp("/channel/{ChannelName}/policy");
|
|
266
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
424
267
|
let body;
|
|
425
|
-
|
|
426
|
-
|
|
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
|
|
272
|
+
const b = rb(input, context);
|
|
437
273
|
const headers = {};
|
|
438
|
-
|
|
439
|
-
|
|
274
|
+
b.bp("/channel/{ChannelName}/schedule");
|
|
275
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
440
276
|
const query = map({
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
277
|
+
[_dM]: [, input[_DM]],
|
|
278
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
279
|
+
[_nT]: [, input[_NT]],
|
|
444
280
|
});
|
|
445
281
|
let body;
|
|
446
|
-
|
|
447
|
-
|
|
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
|
|
286
|
+
const b = rb(input, context);
|
|
459
287
|
const headers = {};
|
|
460
|
-
|
|
461
|
-
|
|
288
|
+
b.bp("/playbackConfiguration/{Name}");
|
|
289
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
462
290
|
let body;
|
|
463
|
-
|
|
464
|
-
|
|
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
|
|
295
|
+
const b = rb(input, context);
|
|
475
296
|
const headers = {};
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
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
|
-
|
|
482
|
-
|
|
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
|
|
305
|
+
const b = rb(input, context);
|
|
493
306
|
const headers = {};
|
|
494
|
-
|
|
307
|
+
b.bp("/alerts");
|
|
495
308
|
const query = map({
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
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
|
-
|
|
502
|
-
|
|
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
|
|
318
|
+
const b = rb(input, context);
|
|
514
319
|
const headers = {};
|
|
515
|
-
|
|
320
|
+
b.bp("/channels");
|
|
516
321
|
const query = map({
|
|
517
|
-
|
|
518
|
-
|
|
322
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
323
|
+
[_nT]: [, input[_NT]],
|
|
519
324
|
});
|
|
520
325
|
let body;
|
|
521
|
-
|
|
522
|
-
|
|
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
|
|
330
|
+
const b = rb(input, context);
|
|
534
331
|
const headers = {};
|
|
535
|
-
|
|
536
|
-
|
|
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
|
-
|
|
540
|
-
|
|
335
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
336
|
+
[_nT]: [, input[_NT]],
|
|
541
337
|
});
|
|
542
338
|
let body;
|
|
543
|
-
|
|
544
|
-
|
|
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
|
|
343
|
+
const b = rb(input, context);
|
|
556
344
|
const headers = {};
|
|
557
|
-
|
|
345
|
+
b.bp("/playbackConfigurations");
|
|
558
346
|
const query = map({
|
|
559
|
-
|
|
560
|
-
|
|
347
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
348
|
+
[_NT]: [, input[_NT]],
|
|
561
349
|
});
|
|
562
350
|
let body;
|
|
563
|
-
|
|
564
|
-
|
|
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
|
|
355
|
+
const b = rb(input, context);
|
|
576
356
|
const headers = {
|
|
577
357
|
"content-type": "application/json",
|
|
578
358
|
};
|
|
579
|
-
|
|
580
|
-
|
|
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
|
-
|
|
589
|
-
|
|
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
|
|
371
|
+
const b = rb(input, context);
|
|
600
372
|
const headers = {};
|
|
601
|
-
|
|
373
|
+
b.bp("/sourceLocations");
|
|
602
374
|
const query = map({
|
|
603
|
-
|
|
604
|
-
|
|
375
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
376
|
+
[_nT]: [, input[_NT]],
|
|
605
377
|
});
|
|
606
378
|
let body;
|
|
607
|
-
|
|
608
|
-
|
|
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
|
|
383
|
+
const b = rb(input, context);
|
|
620
384
|
const headers = {};
|
|
621
|
-
|
|
622
|
-
|
|
385
|
+
b.bp("/tags/{ResourceArn}");
|
|
386
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
623
387
|
let body;
|
|
624
|
-
|
|
625
|
-
|
|
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
|
|
392
|
+
const b = rb(input, context);
|
|
636
393
|
const headers = {};
|
|
637
|
-
|
|
638
|
-
|
|
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
|
-
|
|
642
|
-
|
|
397
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
398
|
+
[_nT]: [, input[_NT]],
|
|
643
399
|
});
|
|
644
400
|
let body;
|
|
645
|
-
|
|
646
|
-
|
|
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
|
|
405
|
+
const b = rb(input, context);
|
|
658
406
|
const headers = {
|
|
659
407
|
"content-type": "application/json",
|
|
660
408
|
};
|
|
661
|
-
|
|
662
|
-
|
|
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
|
-
|
|
668
|
-
|
|
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
|
|
419
|
+
const b = rb(input, context);
|
|
679
420
|
const headers = {
|
|
680
421
|
"content-type": "application/json",
|
|
681
422
|
};
|
|
682
|
-
|
|
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
|
-
|
|
701
|
-
|
|
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
|
|
445
|
+
const b = rb(input, context);
|
|
712
446
|
const headers = {};
|
|
713
|
-
|
|
714
|
-
|
|
447
|
+
b.bp("/channel/{ChannelName}/start");
|
|
448
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
715
449
|
let body;
|
|
716
|
-
|
|
717
|
-
|
|
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
|
|
454
|
+
const b = rb(input, context);
|
|
728
455
|
const headers = {};
|
|
729
|
-
|
|
730
|
-
|
|
456
|
+
b.bp("/channel/{ChannelName}/stop");
|
|
457
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
731
458
|
let body;
|
|
732
|
-
|
|
733
|
-
|
|
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
|
|
463
|
+
const b = rb(input, context);
|
|
744
464
|
const headers = {
|
|
745
465
|
"content-type": "application/json",
|
|
746
466
|
};
|
|
747
|
-
|
|
748
|
-
|
|
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
|
-
|
|
754
|
-
|
|
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
|
|
477
|
+
const b = rb(input, context);
|
|
765
478
|
const headers = {};
|
|
766
|
-
|
|
767
|
-
|
|
479
|
+
b.bp("/tags/{ResourceArn}");
|
|
480
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
768
481
|
const query = map({
|
|
769
|
-
|
|
482
|
+
[_tK]: [
|
|
770
483
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
771
|
-
() => (input
|
|
484
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
772
485
|
],
|
|
773
486
|
});
|
|
774
487
|
let body;
|
|
775
|
-
|
|
776
|
-
|
|
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
|
|
492
|
+
const b = rb(input, context);
|
|
788
493
|
const headers = {
|
|
789
494
|
"content-type": "application/json",
|
|
790
495
|
};
|
|
791
|
-
|
|
792
|
-
|
|
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
|
-
|
|
799
|
-
|
|
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
|
|
508
|
+
const b = rb(input, context);
|
|
810
509
|
const headers = {
|
|
811
510
|
"content-type": "application/json",
|
|
812
511
|
};
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
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
|
-
|
|
822
|
-
|
|
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
|
|
523
|
+
const b = rb(input, context);
|
|
833
524
|
const headers = {
|
|
834
525
|
"content-type": "application/json",
|
|
835
526
|
};
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
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
|
-
|
|
846
|
-
|
|
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
|
|
539
|
+
const b = rb(input, context);
|
|
857
540
|
const headers = {
|
|
858
541
|
"content-type": "application/json",
|
|
859
542
|
};
|
|
860
|
-
|
|
861
|
-
|
|
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
|
-
|
|
870
|
-
|
|
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
|
|
556
|
+
const b = rb(input, context);
|
|
881
557
|
const headers = {
|
|
882
558
|
"content-type": "application/json",
|
|
883
559
|
};
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
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
|
-
|
|
893
|
-
|
|
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);
|