@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
|
@@ -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
|
|
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
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
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
|
-
|
|
21
|
-
|
|
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
|
|
25
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
33
26
|
const headers = {
|
|
34
27
|
"content-type": "application/json",
|
|
35
28
|
};
|
|
36
|
-
|
|
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
|
-
|
|
43
|
-
|
|
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
|
|
40
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
55
41
|
const headers = {
|
|
56
42
|
"content-type": "application/json",
|
|
57
43
|
};
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
69
|
-
|
|
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
|
|
60
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
81
61
|
const headers = {
|
|
82
62
|
"content-type": "application/json",
|
|
83
63
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
94
|
-
|
|
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
|
|
77
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
106
78
|
const headers = {
|
|
107
79
|
"content-type": "application/json",
|
|
108
80
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
|
|
120
|
-
|
|
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
|
|
95
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
132
96
|
const headers = {
|
|
133
97
|
"content-type": "application/json",
|
|
134
98
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
-
|
|
148
|
-
|
|
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
|
|
115
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
160
116
|
const headers = {
|
|
161
117
|
"content-type": "application/json",
|
|
162
118
|
};
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
174
|
-
|
|
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
|
|
134
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
186
135
|
const headers = {
|
|
187
136
|
"content-type": "application/json",
|
|
188
137
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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
|
-
|
|
199
|
-
|
|
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
|
|
151
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
211
152
|
const headers = {};
|
|
212
|
-
|
|
213
|
-
|
|
153
|
+
b.bp("/channel/{ChannelName}");
|
|
154
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
214
155
|
let body;
|
|
215
|
-
|
|
216
|
-
|
|
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
|
|
161
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
228
162
|
const headers = {};
|
|
229
|
-
|
|
230
|
-
|
|
163
|
+
b.bp("/channel/{ChannelName}/policy");
|
|
164
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
231
165
|
let body;
|
|
232
|
-
|
|
233
|
-
|
|
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
|
|
171
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
245
172
|
const headers = {};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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
|
-
|
|
252
|
-
|
|
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
|
|
182
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
264
183
|
const headers = {};
|
|
265
|
-
|
|
266
|
-
|
|
184
|
+
b.bp("/playbackConfiguration/{Name}");
|
|
185
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
267
186
|
let body;
|
|
268
|
-
|
|
269
|
-
|
|
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
|
|
192
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
281
193
|
const headers = {};
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
|
-
|
|
288
|
-
|
|
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
|
|
203
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
300
204
|
const headers = {};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
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
|
-
|
|
307
|
-
|
|
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
|
|
214
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
319
215
|
const headers = {};
|
|
320
|
-
|
|
321
|
-
|
|
216
|
+
b.bp("/sourceLocation/{SourceLocationName}");
|
|
217
|
+
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
322
218
|
let body;
|
|
323
|
-
|
|
324
|
-
|
|
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
|
|
224
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
336
225
|
const headers = {};
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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
|
-
|
|
343
|
-
|
|
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
|
|
235
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
355
236
|
const headers = {};
|
|
356
|
-
|
|
357
|
-
|
|
237
|
+
b.bp("/channel/{ChannelName}");
|
|
238
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
358
239
|
let body;
|
|
359
|
-
|
|
360
|
-
|
|
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
|
|
245
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
372
246
|
const headers = {};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
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
|
-
|
|
379
|
-
|
|
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
|
|
256
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
391
257
|
const headers = {};
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
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
|
-
|
|
398
|
-
|
|
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
|
|
267
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
410
268
|
const headers = {};
|
|
411
|
-
|
|
412
|
-
|
|
269
|
+
b.bp("/sourceLocation/{SourceLocationName}");
|
|
270
|
+
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
413
271
|
let body;
|
|
414
|
-
|
|
415
|
-
|
|
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
|
|
277
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
427
278
|
const headers = {};
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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
|
-
|
|
434
|
-
|
|
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
|
|
288
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
446
289
|
const headers = {};
|
|
447
|
-
|
|
448
|
-
|
|
290
|
+
b.bp("/channel/{ChannelName}/policy");
|
|
291
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
449
292
|
let body;
|
|
450
|
-
|
|
451
|
-
|
|
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
|
|
298
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
463
299
|
const headers = {};
|
|
464
|
-
|
|
465
|
-
|
|
300
|
+
b.bp("/channel/{ChannelName}/schedule");
|
|
301
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
466
302
|
const query = (0, smithy_client_1.map)({
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
303
|
+
[_dM]: [, input[_DM]],
|
|
304
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
305
|
+
[_nT]: [, input[_NT]],
|
|
470
306
|
});
|
|
471
307
|
let body;
|
|
472
|
-
|
|
473
|
-
|
|
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
|
|
313
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
486
314
|
const headers = {};
|
|
487
|
-
|
|
488
|
-
|
|
315
|
+
b.bp("/playbackConfiguration/{Name}");
|
|
316
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
489
317
|
let body;
|
|
490
|
-
|
|
491
|
-
|
|
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
|
|
323
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
503
324
|
const headers = {};
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
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
|
-
|
|
510
|
-
|
|
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
|
|
334
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
522
335
|
const headers = {};
|
|
523
|
-
|
|
336
|
+
b.bp("/alerts");
|
|
524
337
|
const query = (0, smithy_client_1.map)({
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
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
|
-
|
|
531
|
-
|
|
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
|
|
348
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
544
349
|
const headers = {};
|
|
545
|
-
|
|
350
|
+
b.bp("/channels");
|
|
546
351
|
const query = (0, smithy_client_1.map)({
|
|
547
|
-
|
|
548
|
-
|
|
352
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
353
|
+
[_nT]: [, input[_NT]],
|
|
549
354
|
});
|
|
550
355
|
let body;
|
|
551
|
-
|
|
552
|
-
|
|
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
|
|
361
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
565
362
|
const headers = {};
|
|
566
|
-
|
|
567
|
-
|
|
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
|
-
|
|
571
|
-
|
|
366
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
367
|
+
[_nT]: [, input[_NT]],
|
|
572
368
|
});
|
|
573
369
|
let body;
|
|
574
|
-
|
|
575
|
-
|
|
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
|
|
375
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
588
376
|
const headers = {};
|
|
589
|
-
|
|
377
|
+
b.bp("/playbackConfigurations");
|
|
590
378
|
const query = (0, smithy_client_1.map)({
|
|
591
|
-
|
|
592
|
-
|
|
379
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
380
|
+
[_NT]: [, input[_NT]],
|
|
593
381
|
});
|
|
594
382
|
let body;
|
|
595
|
-
|
|
596
|
-
|
|
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
|
|
388
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
609
389
|
const headers = {
|
|
610
390
|
"content-type": "application/json",
|
|
611
391
|
};
|
|
612
|
-
|
|
613
|
-
|
|
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
|
-
|
|
622
|
-
|
|
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
|
|
405
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
634
406
|
const headers = {};
|
|
635
|
-
|
|
407
|
+
b.bp("/sourceLocations");
|
|
636
408
|
const query = (0, smithy_client_1.map)({
|
|
637
|
-
|
|
638
|
-
|
|
409
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
410
|
+
[_nT]: [, input[_NT]],
|
|
639
411
|
});
|
|
640
412
|
let body;
|
|
641
|
-
|
|
642
|
-
|
|
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
|
|
418
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
655
419
|
const headers = {};
|
|
656
|
-
|
|
657
|
-
|
|
420
|
+
b.bp("/tags/{ResourceArn}");
|
|
421
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
658
422
|
let body;
|
|
659
|
-
|
|
660
|
-
|
|
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
|
|
428
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
672
429
|
const headers = {};
|
|
673
|
-
|
|
674
|
-
|
|
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
|
-
|
|
678
|
-
|
|
433
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
434
|
+
[_nT]: [, input[_NT]],
|
|
679
435
|
});
|
|
680
436
|
let body;
|
|
681
|
-
|
|
682
|
-
|
|
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
|
|
442
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
695
443
|
const headers = {
|
|
696
444
|
"content-type": "application/json",
|
|
697
445
|
};
|
|
698
|
-
|
|
699
|
-
|
|
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
|
-
|
|
705
|
-
|
|
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
|
|
457
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
717
458
|
const headers = {
|
|
718
459
|
"content-type": "application/json",
|
|
719
460
|
};
|
|
720
|
-
|
|
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
|
-
|
|
739
|
-
|
|
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
|
|
484
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
751
485
|
const headers = {};
|
|
752
|
-
|
|
753
|
-
|
|
486
|
+
b.bp("/channel/{ChannelName}/start");
|
|
487
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
754
488
|
let body;
|
|
755
|
-
|
|
756
|
-
|
|
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
|
|
494
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
768
495
|
const headers = {};
|
|
769
|
-
|
|
770
|
-
|
|
496
|
+
b.bp("/channel/{ChannelName}/stop");
|
|
497
|
+
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
771
498
|
let body;
|
|
772
|
-
|
|
773
|
-
|
|
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
|
|
504
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
785
505
|
const headers = {
|
|
786
506
|
"content-type": "application/json",
|
|
787
507
|
};
|
|
788
|
-
|
|
789
|
-
|
|
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
|
-
|
|
795
|
-
|
|
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
|
|
519
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
807
520
|
const headers = {};
|
|
808
|
-
|
|
809
|
-
|
|
521
|
+
b.bp("/tags/{ResourceArn}");
|
|
522
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
810
523
|
const query = (0, smithy_client_1.map)({
|
|
811
|
-
|
|
524
|
+
[_tK]: [
|
|
812
525
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
813
|
-
() => (input
|
|
526
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
814
527
|
],
|
|
815
528
|
});
|
|
816
529
|
let body;
|
|
817
|
-
|
|
818
|
-
|
|
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
|
|
535
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
831
536
|
const headers = {
|
|
832
537
|
"content-type": "application/json",
|
|
833
538
|
};
|
|
834
|
-
|
|
835
|
-
|
|
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
|
-
|
|
842
|
-
|
|
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
|
|
552
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
854
553
|
const headers = {
|
|
855
554
|
"content-type": "application/json",
|
|
856
555
|
};
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
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
|
-
|
|
866
|
-
|
|
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
|
|
568
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
878
569
|
const headers = {
|
|
879
570
|
"content-type": "application/json",
|
|
880
571
|
};
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
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
|
-
|
|
891
|
-
|
|
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
|
|
585
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
903
586
|
const headers = {
|
|
904
587
|
"content-type": "application/json",
|
|
905
588
|
};
|
|
906
|
-
|
|
907
|
-
|
|
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
|
-
|
|
916
|
-
|
|
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
|
|
603
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
928
604
|
const headers = {
|
|
929
605
|
"content-type": "application/json",
|
|
930
606
|
};
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
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
|
-
|
|
940
|
-
|
|
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);
|