@aws-sdk/client-mediatailor 3.489.0 → 3.495.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/MediaTailor.js +1 -99
- package/dist-cjs/MediaTailorClient.js +1 -43
- package/dist-cjs/commands/ConfigureLogsForChannelCommand.js +1 -28
- package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateChannelCommand.js +1 -28
- package/dist-cjs/commands/CreateLiveSourceCommand.js +1 -28
- package/dist-cjs/commands/CreatePrefetchScheduleCommand.js +1 -28
- package/dist-cjs/commands/CreateProgramCommand.js +1 -28
- package/dist-cjs/commands/CreateSourceLocationCommand.js +1 -28
- package/dist-cjs/commands/CreateVodSourceCommand.js +1 -28
- package/dist-cjs/commands/DeleteChannelCommand.js +1 -28
- package/dist-cjs/commands/DeleteChannelPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteLiveSourceCommand.js +1 -28
- package/dist-cjs/commands/DeletePlaybackConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeletePrefetchScheduleCommand.js +1 -28
- package/dist-cjs/commands/DeleteProgramCommand.js +1 -28
- package/dist-cjs/commands/DeleteSourceLocationCommand.js +1 -28
- package/dist-cjs/commands/DeleteVodSourceCommand.js +1 -28
- package/dist-cjs/commands/DescribeChannelCommand.js +1 -28
- package/dist-cjs/commands/DescribeLiveSourceCommand.js +1 -28
- package/dist-cjs/commands/DescribeProgramCommand.js +1 -28
- package/dist-cjs/commands/DescribeSourceLocationCommand.js +1 -28
- package/dist-cjs/commands/DescribeVodSourceCommand.js +1 -28
- package/dist-cjs/commands/GetChannelPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetChannelScheduleCommand.js +1 -28
- package/dist-cjs/commands/GetPlaybackConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetPrefetchScheduleCommand.js +1 -28
- package/dist-cjs/commands/ListAlertsCommand.js +1 -28
- package/dist-cjs/commands/ListChannelsCommand.js +1 -28
- package/dist-cjs/commands/ListLiveSourcesCommand.js +1 -28
- package/dist-cjs/commands/ListPlaybackConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/ListPrefetchSchedulesCommand.js +1 -28
- package/dist-cjs/commands/ListSourceLocationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListVodSourcesCommand.js +1 -28
- package/dist-cjs/commands/PutChannelPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutPlaybackConfigurationCommand.js +1 -28
- package/dist-cjs/commands/StartChannelCommand.js +1 -28
- package/dist-cjs/commands/StopChannelCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateChannelCommand.js +1 -28
- package/dist-cjs/commands/UpdateLiveSourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateProgramCommand.js +1 -28
- package/dist-cjs/commands/UpdateSourceLocationCommand.js +1 -28
- package/dist-cjs/commands/UpdateVodSourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -47
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3397 -11
- package/dist-cjs/models/MediaTailorServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -79
- package/dist-cjs/pagination/GetChannelSchedulePaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAlertsPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelsPaginator.js +1 -7
- package/dist-cjs/pagination/ListLiveSourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPrefetchSchedulesPaginator.js +1 -7
- package/dist-cjs/pagination/ListSourceLocationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVodSourcesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -12
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2284
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2284 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
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 core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const MediaTailorServiceException_1 = require("../models/MediaTailorServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_ConfigureLogsForChannelCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/configureLogs/channel");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
ChannelName: [],
|
|
18
|
-
LogTypes: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
-
}));
|
|
20
|
-
b.m("PUT").h(headers).b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
exports.se_ConfigureLogsForChannelCommand = se_ConfigureLogsForChannelCommand;
|
|
24
|
-
const se_ConfigureLogsForPlaybackConfigurationCommand = async (input, context) => {
|
|
25
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/configureLogs/playbackConfiguration");
|
|
30
|
-
let body;
|
|
31
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
32
|
-
PercentEnabled: [],
|
|
33
|
-
PlaybackConfigurationName: [],
|
|
34
|
-
}));
|
|
35
|
-
b.m("PUT").h(headers).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
exports.se_ConfigureLogsForPlaybackConfigurationCommand = se_ConfigureLogsForPlaybackConfigurationCommand;
|
|
39
|
-
const se_CreateChannelCommand = async (input, context) => {
|
|
40
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
41
|
-
const headers = {
|
|
42
|
-
"content-type": "application/json",
|
|
43
|
-
};
|
|
44
|
-
b.bp("/channel/{ChannelName}");
|
|
45
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
|
-
FillerSlate: (_) => (0, smithy_client_1._json)(_),
|
|
49
|
-
Outputs: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
-
PlaybackMode: [],
|
|
51
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
52
|
-
Tier: [],
|
|
53
|
-
TimeShiftConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
54
|
-
}));
|
|
55
|
-
b.m("POST").h(headers).b(body);
|
|
56
|
-
return b.build();
|
|
57
|
-
};
|
|
58
|
-
exports.se_CreateChannelCommand = se_CreateChannelCommand;
|
|
59
|
-
const se_CreateLiveSourceCommand = async (input, context) => {
|
|
60
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
61
|
-
const headers = {
|
|
62
|
-
"content-type": "application/json",
|
|
63
|
-
};
|
|
64
|
-
b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
|
|
65
|
-
b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
|
|
66
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
69
|
-
HttpPackageConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
70
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
71
|
-
}));
|
|
72
|
-
b.m("POST").h(headers).b(body);
|
|
73
|
-
return b.build();
|
|
74
|
-
};
|
|
75
|
-
exports.se_CreateLiveSourceCommand = se_CreateLiveSourceCommand;
|
|
76
|
-
const se_CreatePrefetchScheduleCommand = async (input, context) => {
|
|
77
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
78
|
-
const headers = {
|
|
79
|
-
"content-type": "application/json",
|
|
80
|
-
};
|
|
81
|
-
b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
|
|
82
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
83
|
-
b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
86
|
-
Consumption: (_) => se_PrefetchConsumption(_, context),
|
|
87
|
-
Retrieval: (_) => se_PrefetchRetrieval(_, context),
|
|
88
|
-
StreamId: [],
|
|
89
|
-
}));
|
|
90
|
-
b.m("POST").h(headers).b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
exports.se_CreatePrefetchScheduleCommand = se_CreatePrefetchScheduleCommand;
|
|
94
|
-
const se_CreateProgramCommand = async (input, context) => {
|
|
95
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
96
|
-
const headers = {
|
|
97
|
-
"content-type": "application/json",
|
|
98
|
-
};
|
|
99
|
-
b.bp("/channel/{ChannelName}/program/{ProgramName}");
|
|
100
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
101
|
-
b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
104
|
-
AdBreaks: (_) => (0, smithy_client_1._json)(_),
|
|
105
|
-
LiveSourceName: [],
|
|
106
|
-
ScheduleConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
107
|
-
SourceLocationName: [],
|
|
108
|
-
VodSourceName: [],
|
|
109
|
-
}));
|
|
110
|
-
b.m("POST").h(headers).b(body);
|
|
111
|
-
return b.build();
|
|
112
|
-
};
|
|
113
|
-
exports.se_CreateProgramCommand = se_CreateProgramCommand;
|
|
114
|
-
const se_CreateSourceLocationCommand = async (input, context) => {
|
|
115
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
116
|
-
const headers = {
|
|
117
|
-
"content-type": "application/json",
|
|
118
|
-
};
|
|
119
|
-
b.bp("/sourceLocation/{SourceLocationName}");
|
|
120
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
121
|
-
let body;
|
|
122
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
123
|
-
AccessConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
124
|
-
DefaultSegmentDeliveryConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
125
|
-
HttpConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
126
|
-
SegmentDeliveryConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
127
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
128
|
-
}));
|
|
129
|
-
b.m("POST").h(headers).b(body);
|
|
130
|
-
return b.build();
|
|
131
|
-
};
|
|
132
|
-
exports.se_CreateSourceLocationCommand = se_CreateSourceLocationCommand;
|
|
133
|
-
const se_CreateVodSourceCommand = async (input, context) => {
|
|
134
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
135
|
-
const headers = {
|
|
136
|
-
"content-type": "application/json",
|
|
137
|
-
};
|
|
138
|
-
b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
|
|
139
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
140
|
-
b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
143
|
-
HttpPackageConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
144
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
145
|
-
}));
|
|
146
|
-
b.m("POST").h(headers).b(body);
|
|
147
|
-
return b.build();
|
|
148
|
-
};
|
|
149
|
-
exports.se_CreateVodSourceCommand = se_CreateVodSourceCommand;
|
|
150
|
-
const se_DeleteChannelCommand = async (input, context) => {
|
|
151
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
152
|
-
const headers = {};
|
|
153
|
-
b.bp("/channel/{ChannelName}");
|
|
154
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
155
|
-
let body;
|
|
156
|
-
b.m("DELETE").h(headers).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
160
|
-
const se_DeleteChannelPolicyCommand = async (input, context) => {
|
|
161
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
162
|
-
const headers = {};
|
|
163
|
-
b.bp("/channel/{ChannelName}/policy");
|
|
164
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
165
|
-
let body;
|
|
166
|
-
b.m("DELETE").h(headers).b(body);
|
|
167
|
-
return b.build();
|
|
168
|
-
};
|
|
169
|
-
exports.se_DeleteChannelPolicyCommand = se_DeleteChannelPolicyCommand;
|
|
170
|
-
const se_DeleteLiveSourceCommand = async (input, context) => {
|
|
171
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
172
|
-
const headers = {};
|
|
173
|
-
b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
|
|
174
|
-
b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
|
|
175
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
176
|
-
let body;
|
|
177
|
-
b.m("DELETE").h(headers).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
exports.se_DeleteLiveSourceCommand = se_DeleteLiveSourceCommand;
|
|
181
|
-
const se_DeletePlaybackConfigurationCommand = async (input, context) => {
|
|
182
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
183
|
-
const headers = {};
|
|
184
|
-
b.bp("/playbackConfiguration/{Name}");
|
|
185
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
186
|
-
let body;
|
|
187
|
-
b.m("DELETE").h(headers).b(body);
|
|
188
|
-
return b.build();
|
|
189
|
-
};
|
|
190
|
-
exports.se_DeletePlaybackConfigurationCommand = se_DeletePlaybackConfigurationCommand;
|
|
191
|
-
const se_DeletePrefetchScheduleCommand = async (input, context) => {
|
|
192
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
193
|
-
const headers = {};
|
|
194
|
-
b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
|
|
195
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
196
|
-
b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
|
|
197
|
-
let body;
|
|
198
|
-
b.m("DELETE").h(headers).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
exports.se_DeletePrefetchScheduleCommand = se_DeletePrefetchScheduleCommand;
|
|
202
|
-
const se_DeleteProgramCommand = async (input, context) => {
|
|
203
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
204
|
-
const headers = {};
|
|
205
|
-
b.bp("/channel/{ChannelName}/program/{ProgramName}");
|
|
206
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
207
|
-
b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
|
|
208
|
-
let body;
|
|
209
|
-
b.m("DELETE").h(headers).b(body);
|
|
210
|
-
return b.build();
|
|
211
|
-
};
|
|
212
|
-
exports.se_DeleteProgramCommand = se_DeleteProgramCommand;
|
|
213
|
-
const se_DeleteSourceLocationCommand = async (input, context) => {
|
|
214
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
215
|
-
const headers = {};
|
|
216
|
-
b.bp("/sourceLocation/{SourceLocationName}");
|
|
217
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
218
|
-
let body;
|
|
219
|
-
b.m("DELETE").h(headers).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
exports.se_DeleteSourceLocationCommand = se_DeleteSourceLocationCommand;
|
|
223
|
-
const se_DeleteVodSourceCommand = async (input, context) => {
|
|
224
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
|
|
227
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
228
|
-
b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
|
|
229
|
-
let body;
|
|
230
|
-
b.m("DELETE").h(headers).b(body);
|
|
231
|
-
return b.build();
|
|
232
|
-
};
|
|
233
|
-
exports.se_DeleteVodSourceCommand = se_DeleteVodSourceCommand;
|
|
234
|
-
const se_DescribeChannelCommand = async (input, context) => {
|
|
235
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
236
|
-
const headers = {};
|
|
237
|
-
b.bp("/channel/{ChannelName}");
|
|
238
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
239
|
-
let body;
|
|
240
|
-
b.m("GET").h(headers).b(body);
|
|
241
|
-
return b.build();
|
|
242
|
-
};
|
|
243
|
-
exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
|
|
244
|
-
const se_DescribeLiveSourceCommand = async (input, context) => {
|
|
245
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
246
|
-
const headers = {};
|
|
247
|
-
b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
|
|
248
|
-
b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
|
|
249
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
250
|
-
let body;
|
|
251
|
-
b.m("GET").h(headers).b(body);
|
|
252
|
-
return b.build();
|
|
253
|
-
};
|
|
254
|
-
exports.se_DescribeLiveSourceCommand = se_DescribeLiveSourceCommand;
|
|
255
|
-
const se_DescribeProgramCommand = async (input, context) => {
|
|
256
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
257
|
-
const headers = {};
|
|
258
|
-
b.bp("/channel/{ChannelName}/program/{ProgramName}");
|
|
259
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
260
|
-
b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
|
|
261
|
-
let body;
|
|
262
|
-
b.m("GET").h(headers).b(body);
|
|
263
|
-
return b.build();
|
|
264
|
-
};
|
|
265
|
-
exports.se_DescribeProgramCommand = se_DescribeProgramCommand;
|
|
266
|
-
const se_DescribeSourceLocationCommand = async (input, context) => {
|
|
267
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
268
|
-
const headers = {};
|
|
269
|
-
b.bp("/sourceLocation/{SourceLocationName}");
|
|
270
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
271
|
-
let body;
|
|
272
|
-
b.m("GET").h(headers).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
exports.se_DescribeSourceLocationCommand = se_DescribeSourceLocationCommand;
|
|
276
|
-
const se_DescribeVodSourceCommand = async (input, context) => {
|
|
277
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
278
|
-
const headers = {};
|
|
279
|
-
b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
|
|
280
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
281
|
-
b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
|
|
282
|
-
let body;
|
|
283
|
-
b.m("GET").h(headers).b(body);
|
|
284
|
-
return b.build();
|
|
285
|
-
};
|
|
286
|
-
exports.se_DescribeVodSourceCommand = se_DescribeVodSourceCommand;
|
|
287
|
-
const se_GetChannelPolicyCommand = async (input, context) => {
|
|
288
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
289
|
-
const headers = {};
|
|
290
|
-
b.bp("/channel/{ChannelName}/policy");
|
|
291
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
292
|
-
let body;
|
|
293
|
-
b.m("GET").h(headers).b(body);
|
|
294
|
-
return b.build();
|
|
295
|
-
};
|
|
296
|
-
exports.se_GetChannelPolicyCommand = se_GetChannelPolicyCommand;
|
|
297
|
-
const se_GetChannelScheduleCommand = async (input, context) => {
|
|
298
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
299
|
-
const headers = {};
|
|
300
|
-
b.bp("/channel/{ChannelName}/schedule");
|
|
301
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
302
|
-
const query = (0, smithy_client_1.map)({
|
|
303
|
-
[_dM]: [, input[_DM]],
|
|
304
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
305
|
-
[_nT]: [, input[_NT]],
|
|
306
|
-
});
|
|
307
|
-
let body;
|
|
308
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
309
|
-
return b.build();
|
|
310
|
-
};
|
|
311
|
-
exports.se_GetChannelScheduleCommand = se_GetChannelScheduleCommand;
|
|
312
|
-
const se_GetPlaybackConfigurationCommand = async (input, context) => {
|
|
313
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
314
|
-
const headers = {};
|
|
315
|
-
b.bp("/playbackConfiguration/{Name}");
|
|
316
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
317
|
-
let body;
|
|
318
|
-
b.m("GET").h(headers).b(body);
|
|
319
|
-
return b.build();
|
|
320
|
-
};
|
|
321
|
-
exports.se_GetPlaybackConfigurationCommand = se_GetPlaybackConfigurationCommand;
|
|
322
|
-
const se_GetPrefetchScheduleCommand = async (input, context) => {
|
|
323
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
324
|
-
const headers = {};
|
|
325
|
-
b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}");
|
|
326
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
327
|
-
b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
|
|
328
|
-
let body;
|
|
329
|
-
b.m("GET").h(headers).b(body);
|
|
330
|
-
return b.build();
|
|
331
|
-
};
|
|
332
|
-
exports.se_GetPrefetchScheduleCommand = se_GetPrefetchScheduleCommand;
|
|
333
|
-
const se_ListAlertsCommand = async (input, context) => {
|
|
334
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
335
|
-
const headers = {};
|
|
336
|
-
b.bp("/alerts");
|
|
337
|
-
const query = (0, smithy_client_1.map)({
|
|
338
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
339
|
-
[_nT]: [, input[_NT]],
|
|
340
|
-
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
|
|
341
|
-
});
|
|
342
|
-
let body;
|
|
343
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
344
|
-
return b.build();
|
|
345
|
-
};
|
|
346
|
-
exports.se_ListAlertsCommand = se_ListAlertsCommand;
|
|
347
|
-
const se_ListChannelsCommand = async (input, context) => {
|
|
348
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
349
|
-
const headers = {};
|
|
350
|
-
b.bp("/channels");
|
|
351
|
-
const query = (0, smithy_client_1.map)({
|
|
352
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
353
|
-
[_nT]: [, input[_NT]],
|
|
354
|
-
});
|
|
355
|
-
let body;
|
|
356
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
357
|
-
return b.build();
|
|
358
|
-
};
|
|
359
|
-
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
360
|
-
const se_ListLiveSourcesCommand = async (input, context) => {
|
|
361
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
362
|
-
const headers = {};
|
|
363
|
-
b.bp("/sourceLocation/{SourceLocationName}/liveSources");
|
|
364
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
365
|
-
const query = (0, smithy_client_1.map)({
|
|
366
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
367
|
-
[_nT]: [, input[_NT]],
|
|
368
|
-
});
|
|
369
|
-
let body;
|
|
370
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
371
|
-
return b.build();
|
|
372
|
-
};
|
|
373
|
-
exports.se_ListLiveSourcesCommand = se_ListLiveSourcesCommand;
|
|
374
|
-
const se_ListPlaybackConfigurationsCommand = async (input, context) => {
|
|
375
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
376
|
-
const headers = {};
|
|
377
|
-
b.bp("/playbackConfigurations");
|
|
378
|
-
const query = (0, smithy_client_1.map)({
|
|
379
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
380
|
-
[_NT]: [, input[_NT]],
|
|
381
|
-
});
|
|
382
|
-
let body;
|
|
383
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
384
|
-
return b.build();
|
|
385
|
-
};
|
|
386
|
-
exports.se_ListPlaybackConfigurationsCommand = se_ListPlaybackConfigurationsCommand;
|
|
387
|
-
const se_ListPrefetchSchedulesCommand = async (input, context) => {
|
|
388
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
389
|
-
const headers = {
|
|
390
|
-
"content-type": "application/json",
|
|
391
|
-
};
|
|
392
|
-
b.bp("/prefetchSchedule/{PlaybackConfigurationName}");
|
|
393
|
-
b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
|
|
394
|
-
let body;
|
|
395
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
396
|
-
MaxResults: [],
|
|
397
|
-
NextToken: [],
|
|
398
|
-
StreamId: [],
|
|
399
|
-
}));
|
|
400
|
-
b.m("POST").h(headers).b(body);
|
|
401
|
-
return b.build();
|
|
402
|
-
};
|
|
403
|
-
exports.se_ListPrefetchSchedulesCommand = se_ListPrefetchSchedulesCommand;
|
|
404
|
-
const se_ListSourceLocationsCommand = async (input, context) => {
|
|
405
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
406
|
-
const headers = {};
|
|
407
|
-
b.bp("/sourceLocations");
|
|
408
|
-
const query = (0, smithy_client_1.map)({
|
|
409
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
410
|
-
[_nT]: [, input[_NT]],
|
|
411
|
-
});
|
|
412
|
-
let body;
|
|
413
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
414
|
-
return b.build();
|
|
415
|
-
};
|
|
416
|
-
exports.se_ListSourceLocationsCommand = se_ListSourceLocationsCommand;
|
|
417
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
418
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
419
|
-
const headers = {};
|
|
420
|
-
b.bp("/tags/{ResourceArn}");
|
|
421
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
422
|
-
let body;
|
|
423
|
-
b.m("GET").h(headers).b(body);
|
|
424
|
-
return b.build();
|
|
425
|
-
};
|
|
426
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
427
|
-
const se_ListVodSourcesCommand = async (input, context) => {
|
|
428
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
429
|
-
const headers = {};
|
|
430
|
-
b.bp("/sourceLocation/{SourceLocationName}/vodSources");
|
|
431
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
432
|
-
const query = (0, smithy_client_1.map)({
|
|
433
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
434
|
-
[_nT]: [, input[_NT]],
|
|
435
|
-
});
|
|
436
|
-
let body;
|
|
437
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
438
|
-
return b.build();
|
|
439
|
-
};
|
|
440
|
-
exports.se_ListVodSourcesCommand = se_ListVodSourcesCommand;
|
|
441
|
-
const se_PutChannelPolicyCommand = async (input, context) => {
|
|
442
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
443
|
-
const headers = {
|
|
444
|
-
"content-type": "application/json",
|
|
445
|
-
};
|
|
446
|
-
b.bp("/channel/{ChannelName}/policy");
|
|
447
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
448
|
-
let body;
|
|
449
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
450
|
-
Policy: [],
|
|
451
|
-
}));
|
|
452
|
-
b.m("PUT").h(headers).b(body);
|
|
453
|
-
return b.build();
|
|
454
|
-
};
|
|
455
|
-
exports.se_PutChannelPolicyCommand = se_PutChannelPolicyCommand;
|
|
456
|
-
const se_PutPlaybackConfigurationCommand = async (input, context) => {
|
|
457
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
458
|
-
const headers = {
|
|
459
|
-
"content-type": "application/json",
|
|
460
|
-
};
|
|
461
|
-
b.bp("/playbackConfiguration");
|
|
462
|
-
let body;
|
|
463
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
464
|
-
AdDecisionServerUrl: [],
|
|
465
|
-
AvailSuppression: (_) => (0, smithy_client_1._json)(_),
|
|
466
|
-
Bumper: (_) => (0, smithy_client_1._json)(_),
|
|
467
|
-
CdnConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
468
|
-
ConfigurationAliases: (_) => (0, smithy_client_1._json)(_),
|
|
469
|
-
DashConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
470
|
-
LivePreRollConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
471
|
-
ManifestProcessingRules: (_) => (0, smithy_client_1._json)(_),
|
|
472
|
-
Name: [],
|
|
473
|
-
PersonalizationThresholdSeconds: [],
|
|
474
|
-
SlateAdUrl: [],
|
|
475
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
476
|
-
TranscodeProfileName: [],
|
|
477
|
-
VideoContentSourceUrl: [],
|
|
478
|
-
}));
|
|
479
|
-
b.m("PUT").h(headers).b(body);
|
|
480
|
-
return b.build();
|
|
481
|
-
};
|
|
482
|
-
exports.se_PutPlaybackConfigurationCommand = se_PutPlaybackConfigurationCommand;
|
|
483
|
-
const se_StartChannelCommand = async (input, context) => {
|
|
484
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
485
|
-
const headers = {};
|
|
486
|
-
b.bp("/channel/{ChannelName}/start");
|
|
487
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
488
|
-
let body;
|
|
489
|
-
b.m("PUT").h(headers).b(body);
|
|
490
|
-
return b.build();
|
|
491
|
-
};
|
|
492
|
-
exports.se_StartChannelCommand = se_StartChannelCommand;
|
|
493
|
-
const se_StopChannelCommand = async (input, context) => {
|
|
494
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
495
|
-
const headers = {};
|
|
496
|
-
b.bp("/channel/{ChannelName}/stop");
|
|
497
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
498
|
-
let body;
|
|
499
|
-
b.m("PUT").h(headers).b(body);
|
|
500
|
-
return b.build();
|
|
501
|
-
};
|
|
502
|
-
exports.se_StopChannelCommand = se_StopChannelCommand;
|
|
503
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
504
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
505
|
-
const headers = {
|
|
506
|
-
"content-type": "application/json",
|
|
507
|
-
};
|
|
508
|
-
b.bp("/tags/{ResourceArn}");
|
|
509
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
510
|
-
let body;
|
|
511
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
512
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
513
|
-
}));
|
|
514
|
-
b.m("POST").h(headers).b(body);
|
|
515
|
-
return b.build();
|
|
516
|
-
};
|
|
517
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
518
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
519
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
520
|
-
const headers = {};
|
|
521
|
-
b.bp("/tags/{ResourceArn}");
|
|
522
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
523
|
-
const query = (0, smithy_client_1.map)({
|
|
524
|
-
[_tK]: [
|
|
525
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
526
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
527
|
-
],
|
|
528
|
-
});
|
|
529
|
-
let body;
|
|
530
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
531
|
-
return b.build();
|
|
532
|
-
};
|
|
533
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
534
|
-
const se_UpdateChannelCommand = async (input, context) => {
|
|
535
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
536
|
-
const headers = {
|
|
537
|
-
"content-type": "application/json",
|
|
538
|
-
};
|
|
539
|
-
b.bp("/channel/{ChannelName}");
|
|
540
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
541
|
-
let body;
|
|
542
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
543
|
-
FillerSlate: (_) => (0, smithy_client_1._json)(_),
|
|
544
|
-
Outputs: (_) => (0, smithy_client_1._json)(_),
|
|
545
|
-
TimeShiftConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
546
|
-
}));
|
|
547
|
-
b.m("PUT").h(headers).b(body);
|
|
548
|
-
return b.build();
|
|
549
|
-
};
|
|
550
|
-
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
551
|
-
const se_UpdateLiveSourceCommand = async (input, context) => {
|
|
552
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
553
|
-
const headers = {
|
|
554
|
-
"content-type": "application/json",
|
|
555
|
-
};
|
|
556
|
-
b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}");
|
|
557
|
-
b.p("LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
|
|
558
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
559
|
-
let body;
|
|
560
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
561
|
-
HttpPackageConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
562
|
-
}));
|
|
563
|
-
b.m("PUT").h(headers).b(body);
|
|
564
|
-
return b.build();
|
|
565
|
-
};
|
|
566
|
-
exports.se_UpdateLiveSourceCommand = se_UpdateLiveSourceCommand;
|
|
567
|
-
const se_UpdateProgramCommand = async (input, context) => {
|
|
568
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
569
|
-
const headers = {
|
|
570
|
-
"content-type": "application/json",
|
|
571
|
-
};
|
|
572
|
-
b.bp("/channel/{ChannelName}/program/{ProgramName}");
|
|
573
|
-
b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
574
|
-
b.p("ProgramName", () => input.ProgramName, "{ProgramName}", false);
|
|
575
|
-
let body;
|
|
576
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
577
|
-
AdBreaks: (_) => (0, smithy_client_1._json)(_),
|
|
578
|
-
ScheduleConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
579
|
-
}));
|
|
580
|
-
b.m("PUT").h(headers).b(body);
|
|
581
|
-
return b.build();
|
|
582
|
-
};
|
|
583
|
-
exports.se_UpdateProgramCommand = se_UpdateProgramCommand;
|
|
584
|
-
const se_UpdateSourceLocationCommand = async (input, context) => {
|
|
585
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
586
|
-
const headers = {
|
|
587
|
-
"content-type": "application/json",
|
|
588
|
-
};
|
|
589
|
-
b.bp("/sourceLocation/{SourceLocationName}");
|
|
590
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
591
|
-
let body;
|
|
592
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
593
|
-
AccessConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
594
|
-
DefaultSegmentDeliveryConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
595
|
-
HttpConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
596
|
-
SegmentDeliveryConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
597
|
-
}));
|
|
598
|
-
b.m("PUT").h(headers).b(body);
|
|
599
|
-
return b.build();
|
|
600
|
-
};
|
|
601
|
-
exports.se_UpdateSourceLocationCommand = se_UpdateSourceLocationCommand;
|
|
602
|
-
const se_UpdateVodSourceCommand = async (input, context) => {
|
|
603
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
604
|
-
const headers = {
|
|
605
|
-
"content-type": "application/json",
|
|
606
|
-
};
|
|
607
|
-
b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}");
|
|
608
|
-
b.p("SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
609
|
-
b.p("VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
|
|
610
|
-
let body;
|
|
611
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
612
|
-
HttpPackageConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
613
|
-
}));
|
|
614
|
-
b.m("PUT").h(headers).b(body);
|
|
615
|
-
return b.build();
|
|
616
|
-
};
|
|
617
|
-
exports.se_UpdateVodSourceCommand = se_UpdateVodSourceCommand;
|
|
618
|
-
const de_ConfigureLogsForChannelCommand = async (output, context) => {
|
|
619
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
-
return de_ConfigureLogsForChannelCommandError(output, context);
|
|
621
|
-
}
|
|
622
|
-
const contents = (0, smithy_client_1.map)({
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
});
|
|
625
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
626
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
627
|
-
ChannelName: smithy_client_1.expectString,
|
|
628
|
-
LogTypes: smithy_client_1._json,
|
|
629
|
-
});
|
|
630
|
-
Object.assign(contents, doc);
|
|
631
|
-
return contents;
|
|
632
|
-
};
|
|
633
|
-
exports.de_ConfigureLogsForChannelCommand = de_ConfigureLogsForChannelCommand;
|
|
634
|
-
const de_ConfigureLogsForChannelCommandError = async (output, context) => {
|
|
635
|
-
const parsedOutput = {
|
|
636
|
-
...output,
|
|
637
|
-
body: await parseErrorBody(output.body, context),
|
|
638
|
-
};
|
|
639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
-
const parsedBody = parsedOutput.body;
|
|
641
|
-
return throwDefaultError({
|
|
642
|
-
output,
|
|
643
|
-
parsedBody,
|
|
644
|
-
errorCode,
|
|
645
|
-
});
|
|
646
|
-
};
|
|
647
|
-
const de_ConfigureLogsForPlaybackConfigurationCommand = async (output, context) => {
|
|
648
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return de_ConfigureLogsForPlaybackConfigurationCommandError(output, context);
|
|
650
|
-
}
|
|
651
|
-
const contents = (0, smithy_client_1.map)({
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
});
|
|
654
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
655
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
656
|
-
PercentEnabled: smithy_client_1.expectInt32,
|
|
657
|
-
PlaybackConfigurationName: smithy_client_1.expectString,
|
|
658
|
-
});
|
|
659
|
-
Object.assign(contents, doc);
|
|
660
|
-
return contents;
|
|
661
|
-
};
|
|
662
|
-
exports.de_ConfigureLogsForPlaybackConfigurationCommand = de_ConfigureLogsForPlaybackConfigurationCommand;
|
|
663
|
-
const de_ConfigureLogsForPlaybackConfigurationCommandError = async (output, context) => {
|
|
664
|
-
const parsedOutput = {
|
|
665
|
-
...output,
|
|
666
|
-
body: await parseErrorBody(output.body, context),
|
|
667
|
-
};
|
|
668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
|
-
const parsedBody = parsedOutput.body;
|
|
670
|
-
return throwDefaultError({
|
|
671
|
-
output,
|
|
672
|
-
parsedBody,
|
|
673
|
-
errorCode,
|
|
674
|
-
});
|
|
675
|
-
};
|
|
676
|
-
const de_CreateChannelCommand = async (output, context) => {
|
|
677
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
-
return de_CreateChannelCommandError(output, context);
|
|
679
|
-
}
|
|
680
|
-
const contents = (0, smithy_client_1.map)({
|
|
681
|
-
$metadata: deserializeMetadata(output),
|
|
682
|
-
});
|
|
683
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
684
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
685
|
-
Arn: smithy_client_1.expectString,
|
|
686
|
-
ChannelName: smithy_client_1.expectString,
|
|
687
|
-
ChannelState: smithy_client_1.expectString,
|
|
688
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
689
|
-
FillerSlate: smithy_client_1._json,
|
|
690
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
691
|
-
Outputs: smithy_client_1._json,
|
|
692
|
-
PlaybackMode: smithy_client_1.expectString,
|
|
693
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
694
|
-
Tier: smithy_client_1.expectString,
|
|
695
|
-
TimeShiftConfiguration: smithy_client_1._json,
|
|
696
|
-
});
|
|
697
|
-
Object.assign(contents, doc);
|
|
698
|
-
return contents;
|
|
699
|
-
};
|
|
700
|
-
exports.de_CreateChannelCommand = de_CreateChannelCommand;
|
|
701
|
-
const de_CreateChannelCommandError = async (output, context) => {
|
|
702
|
-
const parsedOutput = {
|
|
703
|
-
...output,
|
|
704
|
-
body: await parseErrorBody(output.body, context),
|
|
705
|
-
};
|
|
706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
-
const parsedBody = parsedOutput.body;
|
|
708
|
-
return throwDefaultError({
|
|
709
|
-
output,
|
|
710
|
-
parsedBody,
|
|
711
|
-
errorCode,
|
|
712
|
-
});
|
|
713
|
-
};
|
|
714
|
-
const de_CreateLiveSourceCommand = async (output, context) => {
|
|
715
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
-
return de_CreateLiveSourceCommandError(output, context);
|
|
717
|
-
}
|
|
718
|
-
const contents = (0, smithy_client_1.map)({
|
|
719
|
-
$metadata: deserializeMetadata(output),
|
|
720
|
-
});
|
|
721
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
722
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
723
|
-
Arn: smithy_client_1.expectString,
|
|
724
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
725
|
-
HttpPackageConfigurations: smithy_client_1._json,
|
|
726
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
727
|
-
LiveSourceName: smithy_client_1.expectString,
|
|
728
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
729
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
730
|
-
});
|
|
731
|
-
Object.assign(contents, doc);
|
|
732
|
-
return contents;
|
|
733
|
-
};
|
|
734
|
-
exports.de_CreateLiveSourceCommand = de_CreateLiveSourceCommand;
|
|
735
|
-
const de_CreateLiveSourceCommandError = async (output, context) => {
|
|
736
|
-
const parsedOutput = {
|
|
737
|
-
...output,
|
|
738
|
-
body: await parseErrorBody(output.body, context),
|
|
739
|
-
};
|
|
740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
return throwDefaultError({
|
|
743
|
-
output,
|
|
744
|
-
parsedBody,
|
|
745
|
-
errorCode,
|
|
746
|
-
});
|
|
747
|
-
};
|
|
748
|
-
const de_CreatePrefetchScheduleCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return de_CreatePrefetchScheduleCommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const contents = (0, smithy_client_1.map)({
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
});
|
|
755
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
756
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
757
|
-
Arn: smithy_client_1.expectString,
|
|
758
|
-
Consumption: (_) => de_PrefetchConsumption(_, context),
|
|
759
|
-
Name: smithy_client_1.expectString,
|
|
760
|
-
PlaybackConfigurationName: smithy_client_1.expectString,
|
|
761
|
-
Retrieval: (_) => de_PrefetchRetrieval(_, context),
|
|
762
|
-
StreamId: smithy_client_1.expectString,
|
|
763
|
-
});
|
|
764
|
-
Object.assign(contents, doc);
|
|
765
|
-
return contents;
|
|
766
|
-
};
|
|
767
|
-
exports.de_CreatePrefetchScheduleCommand = de_CreatePrefetchScheduleCommand;
|
|
768
|
-
const de_CreatePrefetchScheduleCommandError = async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context),
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
const parsedBody = parsedOutput.body;
|
|
775
|
-
return throwDefaultError({
|
|
776
|
-
output,
|
|
777
|
-
parsedBody,
|
|
778
|
-
errorCode,
|
|
779
|
-
});
|
|
780
|
-
};
|
|
781
|
-
const de_CreateProgramCommand = async (output, context) => {
|
|
782
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
|
-
return de_CreateProgramCommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const contents = (0, smithy_client_1.map)({
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
});
|
|
788
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
789
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
790
|
-
AdBreaks: smithy_client_1._json,
|
|
791
|
-
Arn: smithy_client_1.expectString,
|
|
792
|
-
ChannelName: smithy_client_1.expectString,
|
|
793
|
-
ClipRange: smithy_client_1._json,
|
|
794
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
795
|
-
DurationMillis: smithy_client_1.expectLong,
|
|
796
|
-
LiveSourceName: smithy_client_1.expectString,
|
|
797
|
-
ProgramName: smithy_client_1.expectString,
|
|
798
|
-
ScheduledStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
799
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
800
|
-
VodSourceName: smithy_client_1.expectString,
|
|
801
|
-
});
|
|
802
|
-
Object.assign(contents, doc);
|
|
803
|
-
return contents;
|
|
804
|
-
};
|
|
805
|
-
exports.de_CreateProgramCommand = de_CreateProgramCommand;
|
|
806
|
-
const de_CreateProgramCommandError = async (output, context) => {
|
|
807
|
-
const parsedOutput = {
|
|
808
|
-
...output,
|
|
809
|
-
body: await parseErrorBody(output.body, context),
|
|
810
|
-
};
|
|
811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
812
|
-
const parsedBody = parsedOutput.body;
|
|
813
|
-
return throwDefaultError({
|
|
814
|
-
output,
|
|
815
|
-
parsedBody,
|
|
816
|
-
errorCode,
|
|
817
|
-
});
|
|
818
|
-
};
|
|
819
|
-
const de_CreateSourceLocationCommand = async (output, context) => {
|
|
820
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
-
return de_CreateSourceLocationCommandError(output, context);
|
|
822
|
-
}
|
|
823
|
-
const contents = (0, smithy_client_1.map)({
|
|
824
|
-
$metadata: deserializeMetadata(output),
|
|
825
|
-
});
|
|
826
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
827
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
828
|
-
AccessConfiguration: smithy_client_1._json,
|
|
829
|
-
Arn: smithy_client_1.expectString,
|
|
830
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
831
|
-
DefaultSegmentDeliveryConfiguration: smithy_client_1._json,
|
|
832
|
-
HttpConfiguration: smithy_client_1._json,
|
|
833
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
834
|
-
SegmentDeliveryConfigurations: smithy_client_1._json,
|
|
835
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
836
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
837
|
-
});
|
|
838
|
-
Object.assign(contents, doc);
|
|
839
|
-
return contents;
|
|
840
|
-
};
|
|
841
|
-
exports.de_CreateSourceLocationCommand = de_CreateSourceLocationCommand;
|
|
842
|
-
const de_CreateSourceLocationCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
return throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
errorCode,
|
|
853
|
-
});
|
|
854
|
-
};
|
|
855
|
-
const de_CreateVodSourceCommand = async (output, context) => {
|
|
856
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
857
|
-
return de_CreateVodSourceCommandError(output, context);
|
|
858
|
-
}
|
|
859
|
-
const contents = (0, smithy_client_1.map)({
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
});
|
|
862
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
863
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
864
|
-
Arn: smithy_client_1.expectString,
|
|
865
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
866
|
-
HttpPackageConfigurations: smithy_client_1._json,
|
|
867
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
868
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
869
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
870
|
-
VodSourceName: smithy_client_1.expectString,
|
|
871
|
-
});
|
|
872
|
-
Object.assign(contents, doc);
|
|
873
|
-
return contents;
|
|
874
|
-
};
|
|
875
|
-
exports.de_CreateVodSourceCommand = de_CreateVodSourceCommand;
|
|
876
|
-
const de_CreateVodSourceCommandError = async (output, context) => {
|
|
877
|
-
const parsedOutput = {
|
|
878
|
-
...output,
|
|
879
|
-
body: await parseErrorBody(output.body, context),
|
|
880
|
-
};
|
|
881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
|
-
const parsedBody = parsedOutput.body;
|
|
883
|
-
return throwDefaultError({
|
|
884
|
-
output,
|
|
885
|
-
parsedBody,
|
|
886
|
-
errorCode,
|
|
887
|
-
});
|
|
888
|
-
};
|
|
889
|
-
const de_DeleteChannelCommand = async (output, context) => {
|
|
890
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return de_DeleteChannelCommandError(output, context);
|
|
892
|
-
}
|
|
893
|
-
const contents = (0, smithy_client_1.map)({
|
|
894
|
-
$metadata: deserializeMetadata(output),
|
|
895
|
-
});
|
|
896
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
897
|
-
return contents;
|
|
898
|
-
};
|
|
899
|
-
exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
|
|
900
|
-
const de_DeleteChannelCommandError = async (output, context) => {
|
|
901
|
-
const parsedOutput = {
|
|
902
|
-
...output,
|
|
903
|
-
body: await parseErrorBody(output.body, context),
|
|
904
|
-
};
|
|
905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
-
const parsedBody = parsedOutput.body;
|
|
907
|
-
return throwDefaultError({
|
|
908
|
-
output,
|
|
909
|
-
parsedBody,
|
|
910
|
-
errorCode,
|
|
911
|
-
});
|
|
912
|
-
};
|
|
913
|
-
const de_DeleteChannelPolicyCommand = async (output, context) => {
|
|
914
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
-
return de_DeleteChannelPolicyCommandError(output, context);
|
|
916
|
-
}
|
|
917
|
-
const contents = (0, smithy_client_1.map)({
|
|
918
|
-
$metadata: deserializeMetadata(output),
|
|
919
|
-
});
|
|
920
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
921
|
-
return contents;
|
|
922
|
-
};
|
|
923
|
-
exports.de_DeleteChannelPolicyCommand = de_DeleteChannelPolicyCommand;
|
|
924
|
-
const de_DeleteChannelPolicyCommandError = async (output, context) => {
|
|
925
|
-
const parsedOutput = {
|
|
926
|
-
...output,
|
|
927
|
-
body: await parseErrorBody(output.body, context),
|
|
928
|
-
};
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
const parsedBody = parsedOutput.body;
|
|
931
|
-
return throwDefaultError({
|
|
932
|
-
output,
|
|
933
|
-
parsedBody,
|
|
934
|
-
errorCode,
|
|
935
|
-
});
|
|
936
|
-
};
|
|
937
|
-
const de_DeleteLiveSourceCommand = async (output, context) => {
|
|
938
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
939
|
-
return de_DeleteLiveSourceCommandError(output, context);
|
|
940
|
-
}
|
|
941
|
-
const contents = (0, smithy_client_1.map)({
|
|
942
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
-
});
|
|
944
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
945
|
-
return contents;
|
|
946
|
-
};
|
|
947
|
-
exports.de_DeleteLiveSourceCommand = de_DeleteLiveSourceCommand;
|
|
948
|
-
const de_DeleteLiveSourceCommandError = async (output, context) => {
|
|
949
|
-
const parsedOutput = {
|
|
950
|
-
...output,
|
|
951
|
-
body: await parseErrorBody(output.body, context),
|
|
952
|
-
};
|
|
953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
-
const parsedBody = parsedOutput.body;
|
|
955
|
-
return throwDefaultError({
|
|
956
|
-
output,
|
|
957
|
-
parsedBody,
|
|
958
|
-
errorCode,
|
|
959
|
-
});
|
|
960
|
-
};
|
|
961
|
-
const de_DeletePlaybackConfigurationCommand = async (output, context) => {
|
|
962
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
963
|
-
return de_DeletePlaybackConfigurationCommandError(output, context);
|
|
964
|
-
}
|
|
965
|
-
const contents = (0, smithy_client_1.map)({
|
|
966
|
-
$metadata: deserializeMetadata(output),
|
|
967
|
-
});
|
|
968
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
969
|
-
return contents;
|
|
970
|
-
};
|
|
971
|
-
exports.de_DeletePlaybackConfigurationCommand = de_DeletePlaybackConfigurationCommand;
|
|
972
|
-
const de_DeletePlaybackConfigurationCommandError = async (output, context) => {
|
|
973
|
-
const parsedOutput = {
|
|
974
|
-
...output,
|
|
975
|
-
body: await parseErrorBody(output.body, context),
|
|
976
|
-
};
|
|
977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
|
-
const parsedBody = parsedOutput.body;
|
|
979
|
-
return throwDefaultError({
|
|
980
|
-
output,
|
|
981
|
-
parsedBody,
|
|
982
|
-
errorCode,
|
|
983
|
-
});
|
|
984
|
-
};
|
|
985
|
-
const de_DeletePrefetchScheduleCommand = async (output, context) => {
|
|
986
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
987
|
-
return de_DeletePrefetchScheduleCommandError(output, context);
|
|
988
|
-
}
|
|
989
|
-
const contents = (0, smithy_client_1.map)({
|
|
990
|
-
$metadata: deserializeMetadata(output),
|
|
991
|
-
});
|
|
992
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
993
|
-
return contents;
|
|
994
|
-
};
|
|
995
|
-
exports.de_DeletePrefetchScheduleCommand = de_DeletePrefetchScheduleCommand;
|
|
996
|
-
const de_DeletePrefetchScheduleCommandError = async (output, context) => {
|
|
997
|
-
const parsedOutput = {
|
|
998
|
-
...output,
|
|
999
|
-
body: await parseErrorBody(output.body, context),
|
|
1000
|
-
};
|
|
1001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
|
-
const parsedBody = parsedOutput.body;
|
|
1003
|
-
return throwDefaultError({
|
|
1004
|
-
output,
|
|
1005
|
-
parsedBody,
|
|
1006
|
-
errorCode,
|
|
1007
|
-
});
|
|
1008
|
-
};
|
|
1009
|
-
const de_DeleteProgramCommand = async (output, context) => {
|
|
1010
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return de_DeleteProgramCommandError(output, context);
|
|
1012
|
-
}
|
|
1013
|
-
const contents = (0, smithy_client_1.map)({
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
});
|
|
1016
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1017
|
-
return contents;
|
|
1018
|
-
};
|
|
1019
|
-
exports.de_DeleteProgramCommand = de_DeleteProgramCommand;
|
|
1020
|
-
const de_DeleteProgramCommandError = async (output, context) => {
|
|
1021
|
-
const parsedOutput = {
|
|
1022
|
-
...output,
|
|
1023
|
-
body: await parseErrorBody(output.body, context),
|
|
1024
|
-
};
|
|
1025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode,
|
|
1031
|
-
});
|
|
1032
|
-
};
|
|
1033
|
-
const de_DeleteSourceLocationCommand = async (output, context) => {
|
|
1034
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1035
|
-
return de_DeleteSourceLocationCommandError(output, context);
|
|
1036
|
-
}
|
|
1037
|
-
const contents = (0, smithy_client_1.map)({
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
});
|
|
1040
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1041
|
-
return contents;
|
|
1042
|
-
};
|
|
1043
|
-
exports.de_DeleteSourceLocationCommand = de_DeleteSourceLocationCommand;
|
|
1044
|
-
const de_DeleteSourceLocationCommandError = async (output, context) => {
|
|
1045
|
-
const parsedOutput = {
|
|
1046
|
-
...output,
|
|
1047
|
-
body: await parseErrorBody(output.body, context),
|
|
1048
|
-
};
|
|
1049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
-
const parsedBody = parsedOutput.body;
|
|
1051
|
-
return throwDefaultError({
|
|
1052
|
-
output,
|
|
1053
|
-
parsedBody,
|
|
1054
|
-
errorCode,
|
|
1055
|
-
});
|
|
1056
|
-
};
|
|
1057
|
-
const de_DeleteVodSourceCommand = async (output, context) => {
|
|
1058
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1059
|
-
return de_DeleteVodSourceCommandError(output, context);
|
|
1060
|
-
}
|
|
1061
|
-
const contents = (0, smithy_client_1.map)({
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
});
|
|
1064
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1065
|
-
return contents;
|
|
1066
|
-
};
|
|
1067
|
-
exports.de_DeleteVodSourceCommand = de_DeleteVodSourceCommand;
|
|
1068
|
-
const de_DeleteVodSourceCommandError = async (output, context) => {
|
|
1069
|
-
const parsedOutput = {
|
|
1070
|
-
...output,
|
|
1071
|
-
body: await parseErrorBody(output.body, context),
|
|
1072
|
-
};
|
|
1073
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
|
-
const parsedBody = parsedOutput.body;
|
|
1075
|
-
return throwDefaultError({
|
|
1076
|
-
output,
|
|
1077
|
-
parsedBody,
|
|
1078
|
-
errorCode,
|
|
1079
|
-
});
|
|
1080
|
-
};
|
|
1081
|
-
const de_DescribeChannelCommand = async (output, context) => {
|
|
1082
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
|
-
return de_DescribeChannelCommandError(output, context);
|
|
1084
|
-
}
|
|
1085
|
-
const contents = (0, smithy_client_1.map)({
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
});
|
|
1088
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1089
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1090
|
-
Arn: smithy_client_1.expectString,
|
|
1091
|
-
ChannelName: smithy_client_1.expectString,
|
|
1092
|
-
ChannelState: smithy_client_1.expectString,
|
|
1093
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1094
|
-
FillerSlate: smithy_client_1._json,
|
|
1095
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1096
|
-
LogConfiguration: smithy_client_1._json,
|
|
1097
|
-
Outputs: smithy_client_1._json,
|
|
1098
|
-
PlaybackMode: smithy_client_1.expectString,
|
|
1099
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1100
|
-
Tier: smithy_client_1.expectString,
|
|
1101
|
-
TimeShiftConfiguration: smithy_client_1._json,
|
|
1102
|
-
});
|
|
1103
|
-
Object.assign(contents, doc);
|
|
1104
|
-
return contents;
|
|
1105
|
-
};
|
|
1106
|
-
exports.de_DescribeChannelCommand = de_DescribeChannelCommand;
|
|
1107
|
-
const de_DescribeChannelCommandError = async (output, context) => {
|
|
1108
|
-
const parsedOutput = {
|
|
1109
|
-
...output,
|
|
1110
|
-
body: await parseErrorBody(output.body, context),
|
|
1111
|
-
};
|
|
1112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
-
const parsedBody = parsedOutput.body;
|
|
1114
|
-
return throwDefaultError({
|
|
1115
|
-
output,
|
|
1116
|
-
parsedBody,
|
|
1117
|
-
errorCode,
|
|
1118
|
-
});
|
|
1119
|
-
};
|
|
1120
|
-
const de_DescribeLiveSourceCommand = async (output, context) => {
|
|
1121
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
-
return de_DescribeLiveSourceCommandError(output, context);
|
|
1123
|
-
}
|
|
1124
|
-
const contents = (0, smithy_client_1.map)({
|
|
1125
|
-
$metadata: deserializeMetadata(output),
|
|
1126
|
-
});
|
|
1127
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1128
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1129
|
-
Arn: smithy_client_1.expectString,
|
|
1130
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1131
|
-
HttpPackageConfigurations: smithy_client_1._json,
|
|
1132
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1133
|
-
LiveSourceName: smithy_client_1.expectString,
|
|
1134
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
1135
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1136
|
-
});
|
|
1137
|
-
Object.assign(contents, doc);
|
|
1138
|
-
return contents;
|
|
1139
|
-
};
|
|
1140
|
-
exports.de_DescribeLiveSourceCommand = de_DescribeLiveSourceCommand;
|
|
1141
|
-
const de_DescribeLiveSourceCommandError = async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context),
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
-
const parsedBody = parsedOutput.body;
|
|
1148
|
-
return throwDefaultError({
|
|
1149
|
-
output,
|
|
1150
|
-
parsedBody,
|
|
1151
|
-
errorCode,
|
|
1152
|
-
});
|
|
1153
|
-
};
|
|
1154
|
-
const de_DescribeProgramCommand = async (output, context) => {
|
|
1155
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1156
|
-
return de_DescribeProgramCommandError(output, context);
|
|
1157
|
-
}
|
|
1158
|
-
const contents = (0, smithy_client_1.map)({
|
|
1159
|
-
$metadata: deserializeMetadata(output),
|
|
1160
|
-
});
|
|
1161
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1162
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1163
|
-
AdBreaks: smithy_client_1._json,
|
|
1164
|
-
Arn: smithy_client_1.expectString,
|
|
1165
|
-
ChannelName: smithy_client_1.expectString,
|
|
1166
|
-
ClipRange: smithy_client_1._json,
|
|
1167
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1168
|
-
DurationMillis: smithy_client_1.expectLong,
|
|
1169
|
-
LiveSourceName: smithy_client_1.expectString,
|
|
1170
|
-
ProgramName: smithy_client_1.expectString,
|
|
1171
|
-
ScheduledStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1172
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
1173
|
-
VodSourceName: smithy_client_1.expectString,
|
|
1174
|
-
});
|
|
1175
|
-
Object.assign(contents, doc);
|
|
1176
|
-
return contents;
|
|
1177
|
-
};
|
|
1178
|
-
exports.de_DescribeProgramCommand = de_DescribeProgramCommand;
|
|
1179
|
-
const de_DescribeProgramCommandError = async (output, context) => {
|
|
1180
|
-
const parsedOutput = {
|
|
1181
|
-
...output,
|
|
1182
|
-
body: await parseErrorBody(output.body, context),
|
|
1183
|
-
};
|
|
1184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
|
-
const parsedBody = parsedOutput.body;
|
|
1186
|
-
return throwDefaultError({
|
|
1187
|
-
output,
|
|
1188
|
-
parsedBody,
|
|
1189
|
-
errorCode,
|
|
1190
|
-
});
|
|
1191
|
-
};
|
|
1192
|
-
const de_DescribeSourceLocationCommand = async (output, context) => {
|
|
1193
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
|
-
return de_DescribeSourceLocationCommandError(output, context);
|
|
1195
|
-
}
|
|
1196
|
-
const contents = (0, smithy_client_1.map)({
|
|
1197
|
-
$metadata: deserializeMetadata(output),
|
|
1198
|
-
});
|
|
1199
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1200
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1201
|
-
AccessConfiguration: smithy_client_1._json,
|
|
1202
|
-
Arn: smithy_client_1.expectString,
|
|
1203
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1204
|
-
DefaultSegmentDeliveryConfiguration: smithy_client_1._json,
|
|
1205
|
-
HttpConfiguration: smithy_client_1._json,
|
|
1206
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1207
|
-
SegmentDeliveryConfigurations: smithy_client_1._json,
|
|
1208
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
1209
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1210
|
-
});
|
|
1211
|
-
Object.assign(contents, doc);
|
|
1212
|
-
return contents;
|
|
1213
|
-
};
|
|
1214
|
-
exports.de_DescribeSourceLocationCommand = de_DescribeSourceLocationCommand;
|
|
1215
|
-
const de_DescribeSourceLocationCommandError = async (output, context) => {
|
|
1216
|
-
const parsedOutput = {
|
|
1217
|
-
...output,
|
|
1218
|
-
body: await parseErrorBody(output.body, context),
|
|
1219
|
-
};
|
|
1220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
|
-
const parsedBody = parsedOutput.body;
|
|
1222
|
-
return throwDefaultError({
|
|
1223
|
-
output,
|
|
1224
|
-
parsedBody,
|
|
1225
|
-
errorCode,
|
|
1226
|
-
});
|
|
1227
|
-
};
|
|
1228
|
-
const de_DescribeVodSourceCommand = async (output, context) => {
|
|
1229
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1230
|
-
return de_DescribeVodSourceCommandError(output, context);
|
|
1231
|
-
}
|
|
1232
|
-
const contents = (0, smithy_client_1.map)({
|
|
1233
|
-
$metadata: deserializeMetadata(output),
|
|
1234
|
-
});
|
|
1235
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1236
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1237
|
-
AdBreakOpportunities: smithy_client_1._json,
|
|
1238
|
-
Arn: smithy_client_1.expectString,
|
|
1239
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1240
|
-
HttpPackageConfigurations: smithy_client_1._json,
|
|
1241
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1242
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
1243
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1244
|
-
VodSourceName: smithy_client_1.expectString,
|
|
1245
|
-
});
|
|
1246
|
-
Object.assign(contents, doc);
|
|
1247
|
-
return contents;
|
|
1248
|
-
};
|
|
1249
|
-
exports.de_DescribeVodSourceCommand = de_DescribeVodSourceCommand;
|
|
1250
|
-
const de_DescribeVodSourceCommandError = async (output, context) => {
|
|
1251
|
-
const parsedOutput = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseErrorBody(output.body, context),
|
|
1254
|
-
};
|
|
1255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
-
const parsedBody = parsedOutput.body;
|
|
1257
|
-
return throwDefaultError({
|
|
1258
|
-
output,
|
|
1259
|
-
parsedBody,
|
|
1260
|
-
errorCode,
|
|
1261
|
-
});
|
|
1262
|
-
};
|
|
1263
|
-
const de_GetChannelPolicyCommand = async (output, context) => {
|
|
1264
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return de_GetChannelPolicyCommandError(output, context);
|
|
1266
|
-
}
|
|
1267
|
-
const contents = (0, smithy_client_1.map)({
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
});
|
|
1270
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1271
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1272
|
-
Policy: smithy_client_1.expectString,
|
|
1273
|
-
});
|
|
1274
|
-
Object.assign(contents, doc);
|
|
1275
|
-
return contents;
|
|
1276
|
-
};
|
|
1277
|
-
exports.de_GetChannelPolicyCommand = de_GetChannelPolicyCommand;
|
|
1278
|
-
const de_GetChannelPolicyCommandError = async (output, context) => {
|
|
1279
|
-
const parsedOutput = {
|
|
1280
|
-
...output,
|
|
1281
|
-
body: await parseErrorBody(output.body, context),
|
|
1282
|
-
};
|
|
1283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode,
|
|
1289
|
-
});
|
|
1290
|
-
};
|
|
1291
|
-
const de_GetChannelScheduleCommand = async (output, context) => {
|
|
1292
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1293
|
-
return de_GetChannelScheduleCommandError(output, context);
|
|
1294
|
-
}
|
|
1295
|
-
const contents = (0, smithy_client_1.map)({
|
|
1296
|
-
$metadata: deserializeMetadata(output),
|
|
1297
|
-
});
|
|
1298
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1299
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1300
|
-
Items: (_) => de___listOfScheduleEntry(_, context),
|
|
1301
|
-
NextToken: smithy_client_1.expectString,
|
|
1302
|
-
});
|
|
1303
|
-
Object.assign(contents, doc);
|
|
1304
|
-
return contents;
|
|
1305
|
-
};
|
|
1306
|
-
exports.de_GetChannelScheduleCommand = de_GetChannelScheduleCommand;
|
|
1307
|
-
const de_GetChannelScheduleCommandError = async (output, context) => {
|
|
1308
|
-
const parsedOutput = {
|
|
1309
|
-
...output,
|
|
1310
|
-
body: await parseErrorBody(output.body, context),
|
|
1311
|
-
};
|
|
1312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
-
const parsedBody = parsedOutput.body;
|
|
1314
|
-
return throwDefaultError({
|
|
1315
|
-
output,
|
|
1316
|
-
parsedBody,
|
|
1317
|
-
errorCode,
|
|
1318
|
-
});
|
|
1319
|
-
};
|
|
1320
|
-
const de_GetPlaybackConfigurationCommand = async (output, context) => {
|
|
1321
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1322
|
-
return de_GetPlaybackConfigurationCommandError(output, context);
|
|
1323
|
-
}
|
|
1324
|
-
const contents = (0, smithy_client_1.map)({
|
|
1325
|
-
$metadata: deserializeMetadata(output),
|
|
1326
|
-
});
|
|
1327
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1328
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1329
|
-
AdDecisionServerUrl: smithy_client_1.expectString,
|
|
1330
|
-
AvailSuppression: smithy_client_1._json,
|
|
1331
|
-
Bumper: smithy_client_1._json,
|
|
1332
|
-
CdnConfiguration: smithy_client_1._json,
|
|
1333
|
-
ConfigurationAliases: smithy_client_1._json,
|
|
1334
|
-
DashConfiguration: smithy_client_1._json,
|
|
1335
|
-
HlsConfiguration: smithy_client_1._json,
|
|
1336
|
-
LivePreRollConfiguration: smithy_client_1._json,
|
|
1337
|
-
LogConfiguration: smithy_client_1._json,
|
|
1338
|
-
ManifestProcessingRules: smithy_client_1._json,
|
|
1339
|
-
Name: smithy_client_1.expectString,
|
|
1340
|
-
PersonalizationThresholdSeconds: smithy_client_1.expectInt32,
|
|
1341
|
-
PlaybackConfigurationArn: smithy_client_1.expectString,
|
|
1342
|
-
PlaybackEndpointPrefix: smithy_client_1.expectString,
|
|
1343
|
-
SessionInitializationEndpointPrefix: smithy_client_1.expectString,
|
|
1344
|
-
SlateAdUrl: smithy_client_1.expectString,
|
|
1345
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1346
|
-
TranscodeProfileName: smithy_client_1.expectString,
|
|
1347
|
-
VideoContentSourceUrl: smithy_client_1.expectString,
|
|
1348
|
-
});
|
|
1349
|
-
Object.assign(contents, doc);
|
|
1350
|
-
return contents;
|
|
1351
|
-
};
|
|
1352
|
-
exports.de_GetPlaybackConfigurationCommand = de_GetPlaybackConfigurationCommand;
|
|
1353
|
-
const de_GetPlaybackConfigurationCommandError = async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context),
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
const parsedBody = parsedOutput.body;
|
|
1360
|
-
return throwDefaultError({
|
|
1361
|
-
output,
|
|
1362
|
-
parsedBody,
|
|
1363
|
-
errorCode,
|
|
1364
|
-
});
|
|
1365
|
-
};
|
|
1366
|
-
const de_GetPrefetchScheduleCommand = async (output, context) => {
|
|
1367
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1368
|
-
return de_GetPrefetchScheduleCommandError(output, context);
|
|
1369
|
-
}
|
|
1370
|
-
const contents = (0, smithy_client_1.map)({
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
});
|
|
1373
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1374
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1375
|
-
Arn: smithy_client_1.expectString,
|
|
1376
|
-
Consumption: (_) => de_PrefetchConsumption(_, context),
|
|
1377
|
-
Name: smithy_client_1.expectString,
|
|
1378
|
-
PlaybackConfigurationName: smithy_client_1.expectString,
|
|
1379
|
-
Retrieval: (_) => de_PrefetchRetrieval(_, context),
|
|
1380
|
-
StreamId: smithy_client_1.expectString,
|
|
1381
|
-
});
|
|
1382
|
-
Object.assign(contents, doc);
|
|
1383
|
-
return contents;
|
|
1384
|
-
};
|
|
1385
|
-
exports.de_GetPrefetchScheduleCommand = de_GetPrefetchScheduleCommand;
|
|
1386
|
-
const de_GetPrefetchScheduleCommandError = async (output, context) => {
|
|
1387
|
-
const parsedOutput = {
|
|
1388
|
-
...output,
|
|
1389
|
-
body: await parseErrorBody(output.body, context),
|
|
1390
|
-
};
|
|
1391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
|
-
const parsedBody = parsedOutput.body;
|
|
1393
|
-
return throwDefaultError({
|
|
1394
|
-
output,
|
|
1395
|
-
parsedBody,
|
|
1396
|
-
errorCode,
|
|
1397
|
-
});
|
|
1398
|
-
};
|
|
1399
|
-
const de_ListAlertsCommand = async (output, context) => {
|
|
1400
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1401
|
-
return de_ListAlertsCommandError(output, context);
|
|
1402
|
-
}
|
|
1403
|
-
const contents = (0, smithy_client_1.map)({
|
|
1404
|
-
$metadata: deserializeMetadata(output),
|
|
1405
|
-
});
|
|
1406
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1407
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1408
|
-
Items: (_) => de___listOfAlert(_, context),
|
|
1409
|
-
NextToken: smithy_client_1.expectString,
|
|
1410
|
-
});
|
|
1411
|
-
Object.assign(contents, doc);
|
|
1412
|
-
return contents;
|
|
1413
|
-
};
|
|
1414
|
-
exports.de_ListAlertsCommand = de_ListAlertsCommand;
|
|
1415
|
-
const de_ListAlertsCommandError = async (output, context) => {
|
|
1416
|
-
const parsedOutput = {
|
|
1417
|
-
...output,
|
|
1418
|
-
body: await parseErrorBody(output.body, context),
|
|
1419
|
-
};
|
|
1420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
-
const parsedBody = parsedOutput.body;
|
|
1422
|
-
return throwDefaultError({
|
|
1423
|
-
output,
|
|
1424
|
-
parsedBody,
|
|
1425
|
-
errorCode,
|
|
1426
|
-
});
|
|
1427
|
-
};
|
|
1428
|
-
const de_ListChannelsCommand = async (output, context) => {
|
|
1429
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
-
return de_ListChannelsCommandError(output, context);
|
|
1431
|
-
}
|
|
1432
|
-
const contents = (0, smithy_client_1.map)({
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
});
|
|
1435
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1436
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1437
|
-
Items: (_) => de___listOfChannel(_, context),
|
|
1438
|
-
NextToken: smithy_client_1.expectString,
|
|
1439
|
-
});
|
|
1440
|
-
Object.assign(contents, doc);
|
|
1441
|
-
return contents;
|
|
1442
|
-
};
|
|
1443
|
-
exports.de_ListChannelsCommand = de_ListChannelsCommand;
|
|
1444
|
-
const de_ListChannelsCommandError = async (output, context) => {
|
|
1445
|
-
const parsedOutput = {
|
|
1446
|
-
...output,
|
|
1447
|
-
body: await parseErrorBody(output.body, context),
|
|
1448
|
-
};
|
|
1449
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1450
|
-
const parsedBody = parsedOutput.body;
|
|
1451
|
-
return throwDefaultError({
|
|
1452
|
-
output,
|
|
1453
|
-
parsedBody,
|
|
1454
|
-
errorCode,
|
|
1455
|
-
});
|
|
1456
|
-
};
|
|
1457
|
-
const de_ListLiveSourcesCommand = async (output, context) => {
|
|
1458
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1459
|
-
return de_ListLiveSourcesCommandError(output, context);
|
|
1460
|
-
}
|
|
1461
|
-
const contents = (0, smithy_client_1.map)({
|
|
1462
|
-
$metadata: deserializeMetadata(output),
|
|
1463
|
-
});
|
|
1464
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1465
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1466
|
-
Items: (_) => de___listOfLiveSource(_, context),
|
|
1467
|
-
NextToken: smithy_client_1.expectString,
|
|
1468
|
-
});
|
|
1469
|
-
Object.assign(contents, doc);
|
|
1470
|
-
return contents;
|
|
1471
|
-
};
|
|
1472
|
-
exports.de_ListLiveSourcesCommand = de_ListLiveSourcesCommand;
|
|
1473
|
-
const de_ListLiveSourcesCommandError = async (output, context) => {
|
|
1474
|
-
const parsedOutput = {
|
|
1475
|
-
...output,
|
|
1476
|
-
body: await parseErrorBody(output.body, context),
|
|
1477
|
-
};
|
|
1478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
|
-
const parsedBody = parsedOutput.body;
|
|
1480
|
-
return throwDefaultError({
|
|
1481
|
-
output,
|
|
1482
|
-
parsedBody,
|
|
1483
|
-
errorCode,
|
|
1484
|
-
});
|
|
1485
|
-
};
|
|
1486
|
-
const de_ListPlaybackConfigurationsCommand = async (output, context) => {
|
|
1487
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1488
|
-
return de_ListPlaybackConfigurationsCommandError(output, context);
|
|
1489
|
-
}
|
|
1490
|
-
const contents = (0, smithy_client_1.map)({
|
|
1491
|
-
$metadata: deserializeMetadata(output),
|
|
1492
|
-
});
|
|
1493
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1494
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1495
|
-
Items: (_) => de___listOfPlaybackConfiguration(_, context),
|
|
1496
|
-
NextToken: smithy_client_1.expectString,
|
|
1497
|
-
});
|
|
1498
|
-
Object.assign(contents, doc);
|
|
1499
|
-
return contents;
|
|
1500
|
-
};
|
|
1501
|
-
exports.de_ListPlaybackConfigurationsCommand = de_ListPlaybackConfigurationsCommand;
|
|
1502
|
-
const de_ListPlaybackConfigurationsCommandError = async (output, context) => {
|
|
1503
|
-
const parsedOutput = {
|
|
1504
|
-
...output,
|
|
1505
|
-
body: await parseErrorBody(output.body, context),
|
|
1506
|
-
};
|
|
1507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
|
-
const parsedBody = parsedOutput.body;
|
|
1509
|
-
return throwDefaultError({
|
|
1510
|
-
output,
|
|
1511
|
-
parsedBody,
|
|
1512
|
-
errorCode,
|
|
1513
|
-
});
|
|
1514
|
-
};
|
|
1515
|
-
const de_ListPrefetchSchedulesCommand = async (output, context) => {
|
|
1516
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1517
|
-
return de_ListPrefetchSchedulesCommandError(output, context);
|
|
1518
|
-
}
|
|
1519
|
-
const contents = (0, smithy_client_1.map)({
|
|
1520
|
-
$metadata: deserializeMetadata(output),
|
|
1521
|
-
});
|
|
1522
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1523
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1524
|
-
Items: (_) => de___listOfPrefetchSchedule(_, context),
|
|
1525
|
-
NextToken: smithy_client_1.expectString,
|
|
1526
|
-
});
|
|
1527
|
-
Object.assign(contents, doc);
|
|
1528
|
-
return contents;
|
|
1529
|
-
};
|
|
1530
|
-
exports.de_ListPrefetchSchedulesCommand = de_ListPrefetchSchedulesCommand;
|
|
1531
|
-
const de_ListPrefetchSchedulesCommandError = async (output, context) => {
|
|
1532
|
-
const parsedOutput = {
|
|
1533
|
-
...output,
|
|
1534
|
-
body: await parseErrorBody(output.body, context),
|
|
1535
|
-
};
|
|
1536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
-
const parsedBody = parsedOutput.body;
|
|
1538
|
-
return throwDefaultError({
|
|
1539
|
-
output,
|
|
1540
|
-
parsedBody,
|
|
1541
|
-
errorCode,
|
|
1542
|
-
});
|
|
1543
|
-
};
|
|
1544
|
-
const de_ListSourceLocationsCommand = async (output, context) => {
|
|
1545
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1546
|
-
return de_ListSourceLocationsCommandError(output, context);
|
|
1547
|
-
}
|
|
1548
|
-
const contents = (0, smithy_client_1.map)({
|
|
1549
|
-
$metadata: deserializeMetadata(output),
|
|
1550
|
-
});
|
|
1551
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1552
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1553
|
-
Items: (_) => de___listOfSourceLocation(_, context),
|
|
1554
|
-
NextToken: smithy_client_1.expectString,
|
|
1555
|
-
});
|
|
1556
|
-
Object.assign(contents, doc);
|
|
1557
|
-
return contents;
|
|
1558
|
-
};
|
|
1559
|
-
exports.de_ListSourceLocationsCommand = de_ListSourceLocationsCommand;
|
|
1560
|
-
const de_ListSourceLocationsCommandError = async (output, context) => {
|
|
1561
|
-
const parsedOutput = {
|
|
1562
|
-
...output,
|
|
1563
|
-
body: await parseErrorBody(output.body, context),
|
|
1564
|
-
};
|
|
1565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
-
const parsedBody = parsedOutput.body;
|
|
1567
|
-
return throwDefaultError({
|
|
1568
|
-
output,
|
|
1569
|
-
parsedBody,
|
|
1570
|
-
errorCode,
|
|
1571
|
-
});
|
|
1572
|
-
};
|
|
1573
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1574
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1575
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1576
|
-
}
|
|
1577
|
-
const contents = (0, smithy_client_1.map)({
|
|
1578
|
-
$metadata: deserializeMetadata(output),
|
|
1579
|
-
});
|
|
1580
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1581
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1582
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1583
|
-
});
|
|
1584
|
-
Object.assign(contents, doc);
|
|
1585
|
-
return contents;
|
|
1586
|
-
};
|
|
1587
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1588
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1589
|
-
const parsedOutput = {
|
|
1590
|
-
...output,
|
|
1591
|
-
body: await parseErrorBody(output.body, context),
|
|
1592
|
-
};
|
|
1593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
|
-
switch (errorCode) {
|
|
1595
|
-
case "BadRequestException":
|
|
1596
|
-
case "com.amazonaws.mediatailor#BadRequestException":
|
|
1597
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode,
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
|
-
const de_ListVodSourcesCommand = async (output, context) => {
|
|
1608
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
|
-
return de_ListVodSourcesCommandError(output, context);
|
|
1610
|
-
}
|
|
1611
|
-
const contents = (0, smithy_client_1.map)({
|
|
1612
|
-
$metadata: deserializeMetadata(output),
|
|
1613
|
-
});
|
|
1614
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1615
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1616
|
-
Items: (_) => de___listOfVodSource(_, context),
|
|
1617
|
-
NextToken: smithy_client_1.expectString,
|
|
1618
|
-
});
|
|
1619
|
-
Object.assign(contents, doc);
|
|
1620
|
-
return contents;
|
|
1621
|
-
};
|
|
1622
|
-
exports.de_ListVodSourcesCommand = de_ListVodSourcesCommand;
|
|
1623
|
-
const de_ListVodSourcesCommandError = async (output, context) => {
|
|
1624
|
-
const parsedOutput = {
|
|
1625
|
-
...output,
|
|
1626
|
-
body: await parseErrorBody(output.body, context),
|
|
1627
|
-
};
|
|
1628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
|
-
const parsedBody = parsedOutput.body;
|
|
1630
|
-
return throwDefaultError({
|
|
1631
|
-
output,
|
|
1632
|
-
parsedBody,
|
|
1633
|
-
errorCode,
|
|
1634
|
-
});
|
|
1635
|
-
};
|
|
1636
|
-
const de_PutChannelPolicyCommand = async (output, context) => {
|
|
1637
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1638
|
-
return de_PutChannelPolicyCommandError(output, context);
|
|
1639
|
-
}
|
|
1640
|
-
const contents = (0, smithy_client_1.map)({
|
|
1641
|
-
$metadata: deserializeMetadata(output),
|
|
1642
|
-
});
|
|
1643
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1644
|
-
return contents;
|
|
1645
|
-
};
|
|
1646
|
-
exports.de_PutChannelPolicyCommand = de_PutChannelPolicyCommand;
|
|
1647
|
-
const de_PutChannelPolicyCommandError = async (output, context) => {
|
|
1648
|
-
const parsedOutput = {
|
|
1649
|
-
...output,
|
|
1650
|
-
body: await parseErrorBody(output.body, context),
|
|
1651
|
-
};
|
|
1652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
|
-
const parsedBody = parsedOutput.body;
|
|
1654
|
-
return throwDefaultError({
|
|
1655
|
-
output,
|
|
1656
|
-
parsedBody,
|
|
1657
|
-
errorCode,
|
|
1658
|
-
});
|
|
1659
|
-
};
|
|
1660
|
-
const de_PutPlaybackConfigurationCommand = async (output, context) => {
|
|
1661
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1662
|
-
return de_PutPlaybackConfigurationCommandError(output, context);
|
|
1663
|
-
}
|
|
1664
|
-
const contents = (0, smithy_client_1.map)({
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
});
|
|
1667
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1668
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1669
|
-
AdDecisionServerUrl: smithy_client_1.expectString,
|
|
1670
|
-
AvailSuppression: smithy_client_1._json,
|
|
1671
|
-
Bumper: smithy_client_1._json,
|
|
1672
|
-
CdnConfiguration: smithy_client_1._json,
|
|
1673
|
-
ConfigurationAliases: smithy_client_1._json,
|
|
1674
|
-
DashConfiguration: smithy_client_1._json,
|
|
1675
|
-
HlsConfiguration: smithy_client_1._json,
|
|
1676
|
-
LivePreRollConfiguration: smithy_client_1._json,
|
|
1677
|
-
LogConfiguration: smithy_client_1._json,
|
|
1678
|
-
ManifestProcessingRules: smithy_client_1._json,
|
|
1679
|
-
Name: smithy_client_1.expectString,
|
|
1680
|
-
PersonalizationThresholdSeconds: smithy_client_1.expectInt32,
|
|
1681
|
-
PlaybackConfigurationArn: smithy_client_1.expectString,
|
|
1682
|
-
PlaybackEndpointPrefix: smithy_client_1.expectString,
|
|
1683
|
-
SessionInitializationEndpointPrefix: smithy_client_1.expectString,
|
|
1684
|
-
SlateAdUrl: smithy_client_1.expectString,
|
|
1685
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1686
|
-
TranscodeProfileName: smithy_client_1.expectString,
|
|
1687
|
-
VideoContentSourceUrl: smithy_client_1.expectString,
|
|
1688
|
-
});
|
|
1689
|
-
Object.assign(contents, doc);
|
|
1690
|
-
return contents;
|
|
1691
|
-
};
|
|
1692
|
-
exports.de_PutPlaybackConfigurationCommand = de_PutPlaybackConfigurationCommand;
|
|
1693
|
-
const de_PutPlaybackConfigurationCommandError = async (output, context) => {
|
|
1694
|
-
const parsedOutput = {
|
|
1695
|
-
...output,
|
|
1696
|
-
body: await parseErrorBody(output.body, context),
|
|
1697
|
-
};
|
|
1698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
-
const parsedBody = parsedOutput.body;
|
|
1700
|
-
return throwDefaultError({
|
|
1701
|
-
output,
|
|
1702
|
-
parsedBody,
|
|
1703
|
-
errorCode,
|
|
1704
|
-
});
|
|
1705
|
-
};
|
|
1706
|
-
const de_StartChannelCommand = async (output, context) => {
|
|
1707
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1708
|
-
return de_StartChannelCommandError(output, context);
|
|
1709
|
-
}
|
|
1710
|
-
const contents = (0, smithy_client_1.map)({
|
|
1711
|
-
$metadata: deserializeMetadata(output),
|
|
1712
|
-
});
|
|
1713
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1714
|
-
return contents;
|
|
1715
|
-
};
|
|
1716
|
-
exports.de_StartChannelCommand = de_StartChannelCommand;
|
|
1717
|
-
const de_StartChannelCommandError = async (output, context) => {
|
|
1718
|
-
const parsedOutput = {
|
|
1719
|
-
...output,
|
|
1720
|
-
body: await parseErrorBody(output.body, context),
|
|
1721
|
-
};
|
|
1722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
-
const parsedBody = parsedOutput.body;
|
|
1724
|
-
return throwDefaultError({
|
|
1725
|
-
output,
|
|
1726
|
-
parsedBody,
|
|
1727
|
-
errorCode,
|
|
1728
|
-
});
|
|
1729
|
-
};
|
|
1730
|
-
const de_StopChannelCommand = async (output, context) => {
|
|
1731
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1732
|
-
return de_StopChannelCommandError(output, context);
|
|
1733
|
-
}
|
|
1734
|
-
const contents = (0, smithy_client_1.map)({
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
});
|
|
1737
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1738
|
-
return contents;
|
|
1739
|
-
};
|
|
1740
|
-
exports.de_StopChannelCommand = de_StopChannelCommand;
|
|
1741
|
-
const de_StopChannelCommandError = async (output, context) => {
|
|
1742
|
-
const parsedOutput = {
|
|
1743
|
-
...output,
|
|
1744
|
-
body: await parseErrorBody(output.body, context),
|
|
1745
|
-
};
|
|
1746
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
-
const parsedBody = parsedOutput.body;
|
|
1748
|
-
return throwDefaultError({
|
|
1749
|
-
output,
|
|
1750
|
-
parsedBody,
|
|
1751
|
-
errorCode,
|
|
1752
|
-
});
|
|
1753
|
-
};
|
|
1754
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1755
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1756
|
-
return de_TagResourceCommandError(output, context);
|
|
1757
|
-
}
|
|
1758
|
-
const contents = (0, smithy_client_1.map)({
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
});
|
|
1761
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1762
|
-
return contents;
|
|
1763
|
-
};
|
|
1764
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1765
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1766
|
-
const parsedOutput = {
|
|
1767
|
-
...output,
|
|
1768
|
-
body: await parseErrorBody(output.body, context),
|
|
1769
|
-
};
|
|
1770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
|
-
switch (errorCode) {
|
|
1772
|
-
case "BadRequestException":
|
|
1773
|
-
case "com.amazonaws.mediatailor#BadRequestException":
|
|
1774
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1775
|
-
default:
|
|
1776
|
-
const parsedBody = parsedOutput.body;
|
|
1777
|
-
return throwDefaultError({
|
|
1778
|
-
output,
|
|
1779
|
-
parsedBody,
|
|
1780
|
-
errorCode,
|
|
1781
|
-
});
|
|
1782
|
-
}
|
|
1783
|
-
};
|
|
1784
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1785
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1786
|
-
return de_UntagResourceCommandError(output, context);
|
|
1787
|
-
}
|
|
1788
|
-
const contents = (0, smithy_client_1.map)({
|
|
1789
|
-
$metadata: deserializeMetadata(output),
|
|
1790
|
-
});
|
|
1791
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1792
|
-
return contents;
|
|
1793
|
-
};
|
|
1794
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1795
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1796
|
-
const parsedOutput = {
|
|
1797
|
-
...output,
|
|
1798
|
-
body: await parseErrorBody(output.body, context),
|
|
1799
|
-
};
|
|
1800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
|
-
switch (errorCode) {
|
|
1802
|
-
case "BadRequestException":
|
|
1803
|
-
case "com.amazonaws.mediatailor#BadRequestException":
|
|
1804
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1805
|
-
default:
|
|
1806
|
-
const parsedBody = parsedOutput.body;
|
|
1807
|
-
return throwDefaultError({
|
|
1808
|
-
output,
|
|
1809
|
-
parsedBody,
|
|
1810
|
-
errorCode,
|
|
1811
|
-
});
|
|
1812
|
-
}
|
|
1813
|
-
};
|
|
1814
|
-
const de_UpdateChannelCommand = async (output, context) => {
|
|
1815
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1816
|
-
return de_UpdateChannelCommandError(output, context);
|
|
1817
|
-
}
|
|
1818
|
-
const contents = (0, smithy_client_1.map)({
|
|
1819
|
-
$metadata: deserializeMetadata(output),
|
|
1820
|
-
});
|
|
1821
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1822
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1823
|
-
Arn: smithy_client_1.expectString,
|
|
1824
|
-
ChannelName: smithy_client_1.expectString,
|
|
1825
|
-
ChannelState: smithy_client_1.expectString,
|
|
1826
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1827
|
-
FillerSlate: smithy_client_1._json,
|
|
1828
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1829
|
-
Outputs: smithy_client_1._json,
|
|
1830
|
-
PlaybackMode: smithy_client_1.expectString,
|
|
1831
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1832
|
-
Tier: smithy_client_1.expectString,
|
|
1833
|
-
TimeShiftConfiguration: smithy_client_1._json,
|
|
1834
|
-
});
|
|
1835
|
-
Object.assign(contents, doc);
|
|
1836
|
-
return contents;
|
|
1837
|
-
};
|
|
1838
|
-
exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
|
|
1839
|
-
const de_UpdateChannelCommandError = async (output, context) => {
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context),
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
const parsedBody = parsedOutput.body;
|
|
1846
|
-
return throwDefaultError({
|
|
1847
|
-
output,
|
|
1848
|
-
parsedBody,
|
|
1849
|
-
errorCode,
|
|
1850
|
-
});
|
|
1851
|
-
};
|
|
1852
|
-
const de_UpdateLiveSourceCommand = async (output, context) => {
|
|
1853
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1854
|
-
return de_UpdateLiveSourceCommandError(output, context);
|
|
1855
|
-
}
|
|
1856
|
-
const contents = (0, smithy_client_1.map)({
|
|
1857
|
-
$metadata: deserializeMetadata(output),
|
|
1858
|
-
});
|
|
1859
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1860
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1861
|
-
Arn: smithy_client_1.expectString,
|
|
1862
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1863
|
-
HttpPackageConfigurations: smithy_client_1._json,
|
|
1864
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1865
|
-
LiveSourceName: smithy_client_1.expectString,
|
|
1866
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
1867
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1868
|
-
});
|
|
1869
|
-
Object.assign(contents, doc);
|
|
1870
|
-
return contents;
|
|
1871
|
-
};
|
|
1872
|
-
exports.de_UpdateLiveSourceCommand = de_UpdateLiveSourceCommand;
|
|
1873
|
-
const de_UpdateLiveSourceCommandError = async (output, context) => {
|
|
1874
|
-
const parsedOutput = {
|
|
1875
|
-
...output,
|
|
1876
|
-
body: await parseErrorBody(output.body, context),
|
|
1877
|
-
};
|
|
1878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1879
|
-
const parsedBody = parsedOutput.body;
|
|
1880
|
-
return throwDefaultError({
|
|
1881
|
-
output,
|
|
1882
|
-
parsedBody,
|
|
1883
|
-
errorCode,
|
|
1884
|
-
});
|
|
1885
|
-
};
|
|
1886
|
-
const de_UpdateProgramCommand = async (output, context) => {
|
|
1887
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
|
-
return de_UpdateProgramCommandError(output, context);
|
|
1889
|
-
}
|
|
1890
|
-
const contents = (0, smithy_client_1.map)({
|
|
1891
|
-
$metadata: deserializeMetadata(output),
|
|
1892
|
-
});
|
|
1893
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1894
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1895
|
-
AdBreaks: smithy_client_1._json,
|
|
1896
|
-
Arn: smithy_client_1.expectString,
|
|
1897
|
-
ChannelName: smithy_client_1.expectString,
|
|
1898
|
-
ClipRange: smithy_client_1._json,
|
|
1899
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1900
|
-
DurationMillis: smithy_client_1.expectLong,
|
|
1901
|
-
LiveSourceName: smithy_client_1.expectString,
|
|
1902
|
-
ProgramName: smithy_client_1.expectString,
|
|
1903
|
-
ScheduledStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1904
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
1905
|
-
VodSourceName: smithy_client_1.expectString,
|
|
1906
|
-
});
|
|
1907
|
-
Object.assign(contents, doc);
|
|
1908
|
-
return contents;
|
|
1909
|
-
};
|
|
1910
|
-
exports.de_UpdateProgramCommand = de_UpdateProgramCommand;
|
|
1911
|
-
const de_UpdateProgramCommandError = async (output, context) => {
|
|
1912
|
-
const parsedOutput = {
|
|
1913
|
-
...output,
|
|
1914
|
-
body: await parseErrorBody(output.body, context),
|
|
1915
|
-
};
|
|
1916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
|
-
const parsedBody = parsedOutput.body;
|
|
1918
|
-
return throwDefaultError({
|
|
1919
|
-
output,
|
|
1920
|
-
parsedBody,
|
|
1921
|
-
errorCode,
|
|
1922
|
-
});
|
|
1923
|
-
};
|
|
1924
|
-
const de_UpdateSourceLocationCommand = async (output, context) => {
|
|
1925
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1926
|
-
return de_UpdateSourceLocationCommandError(output, context);
|
|
1927
|
-
}
|
|
1928
|
-
const contents = (0, smithy_client_1.map)({
|
|
1929
|
-
$metadata: deserializeMetadata(output),
|
|
1930
|
-
});
|
|
1931
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1932
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1933
|
-
AccessConfiguration: smithy_client_1._json,
|
|
1934
|
-
Arn: smithy_client_1.expectString,
|
|
1935
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1936
|
-
DefaultSegmentDeliveryConfiguration: smithy_client_1._json,
|
|
1937
|
-
HttpConfiguration: smithy_client_1._json,
|
|
1938
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1939
|
-
SegmentDeliveryConfigurations: smithy_client_1._json,
|
|
1940
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
1941
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1942
|
-
});
|
|
1943
|
-
Object.assign(contents, doc);
|
|
1944
|
-
return contents;
|
|
1945
|
-
};
|
|
1946
|
-
exports.de_UpdateSourceLocationCommand = de_UpdateSourceLocationCommand;
|
|
1947
|
-
const de_UpdateSourceLocationCommandError = async (output, context) => {
|
|
1948
|
-
const parsedOutput = {
|
|
1949
|
-
...output,
|
|
1950
|
-
body: await parseErrorBody(output.body, context),
|
|
1951
|
-
};
|
|
1952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
-
const parsedBody = parsedOutput.body;
|
|
1954
|
-
return throwDefaultError({
|
|
1955
|
-
output,
|
|
1956
|
-
parsedBody,
|
|
1957
|
-
errorCode,
|
|
1958
|
-
});
|
|
1959
|
-
};
|
|
1960
|
-
const de_UpdateVodSourceCommand = async (output, context) => {
|
|
1961
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1962
|
-
return de_UpdateVodSourceCommandError(output, context);
|
|
1963
|
-
}
|
|
1964
|
-
const contents = (0, smithy_client_1.map)({
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
});
|
|
1967
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1968
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1969
|
-
Arn: smithy_client_1.expectString,
|
|
1970
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1971
|
-
HttpPackageConfigurations: smithy_client_1._json,
|
|
1972
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1973
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
1974
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1975
|
-
VodSourceName: smithy_client_1.expectString,
|
|
1976
|
-
});
|
|
1977
|
-
Object.assign(contents, doc);
|
|
1978
|
-
return contents;
|
|
1979
|
-
};
|
|
1980
|
-
exports.de_UpdateVodSourceCommand = de_UpdateVodSourceCommand;
|
|
1981
|
-
const de_UpdateVodSourceCommandError = async (output, context) => {
|
|
1982
|
-
const parsedOutput = {
|
|
1983
|
-
...output,
|
|
1984
|
-
body: await parseErrorBody(output.body, context),
|
|
1985
|
-
};
|
|
1986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
|
-
const parsedBody = parsedOutput.body;
|
|
1988
|
-
return throwDefaultError({
|
|
1989
|
-
output,
|
|
1990
|
-
parsedBody,
|
|
1991
|
-
errorCode,
|
|
1992
|
-
});
|
|
1993
|
-
};
|
|
1994
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MediaTailorServiceException_1.MediaTailorServiceException);
|
|
1995
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1996
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1997
|
-
const data = parsedOutput.body;
|
|
1998
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1999
|
-
Message: smithy_client_1.expectString,
|
|
2000
|
-
});
|
|
2001
|
-
Object.assign(contents, doc);
|
|
2002
|
-
const exception = new models_0_1.BadRequestException({
|
|
2003
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2004
|
-
...contents,
|
|
2005
|
-
});
|
|
2006
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2007
|
-
};
|
|
2008
|
-
const se_PrefetchConsumption = (input, context) => {
|
|
2009
|
-
return (0, smithy_client_1.take)(input, {
|
|
2010
|
-
AvailMatchingCriteria: smithy_client_1._json,
|
|
2011
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
2012
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2013
|
-
});
|
|
2014
|
-
};
|
|
2015
|
-
const se_PrefetchRetrieval = (input, context) => {
|
|
2016
|
-
return (0, smithy_client_1.take)(input, {
|
|
2017
|
-
DynamicVariables: smithy_client_1._json,
|
|
2018
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
2019
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2020
|
-
});
|
|
2021
|
-
};
|
|
2022
|
-
const de___listOfAlert = (output, context) => {
|
|
2023
|
-
const retVal = (output || [])
|
|
2024
|
-
.filter((e) => e != null)
|
|
2025
|
-
.map((entry) => {
|
|
2026
|
-
return de_Alert(entry, context);
|
|
2027
|
-
});
|
|
2028
|
-
return retVal;
|
|
2029
|
-
};
|
|
2030
|
-
const de___listOfChannel = (output, context) => {
|
|
2031
|
-
const retVal = (output || [])
|
|
2032
|
-
.filter((e) => e != null)
|
|
2033
|
-
.map((entry) => {
|
|
2034
|
-
return de_Channel(entry, context);
|
|
2035
|
-
});
|
|
2036
|
-
return retVal;
|
|
2037
|
-
};
|
|
2038
|
-
const de___listOfLiveSource = (output, context) => {
|
|
2039
|
-
const retVal = (output || [])
|
|
2040
|
-
.filter((e) => e != null)
|
|
2041
|
-
.map((entry) => {
|
|
2042
|
-
return de_LiveSource(entry, context);
|
|
2043
|
-
});
|
|
2044
|
-
return retVal;
|
|
2045
|
-
};
|
|
2046
|
-
const de___listOfPlaybackConfiguration = (output, context) => {
|
|
2047
|
-
const retVal = (output || [])
|
|
2048
|
-
.filter((e) => e != null)
|
|
2049
|
-
.map((entry) => {
|
|
2050
|
-
return de_PlaybackConfiguration(entry, context);
|
|
2051
|
-
});
|
|
2052
|
-
return retVal;
|
|
2053
|
-
};
|
|
2054
|
-
const de___listOfPrefetchSchedule = (output, context) => {
|
|
2055
|
-
const retVal = (output || [])
|
|
2056
|
-
.filter((e) => e != null)
|
|
2057
|
-
.map((entry) => {
|
|
2058
|
-
return de_PrefetchSchedule(entry, context);
|
|
2059
|
-
});
|
|
2060
|
-
return retVal;
|
|
2061
|
-
};
|
|
2062
|
-
const de___listOfScheduleAdBreak = (output, context) => {
|
|
2063
|
-
const retVal = (output || [])
|
|
2064
|
-
.filter((e) => e != null)
|
|
2065
|
-
.map((entry) => {
|
|
2066
|
-
return de_ScheduleAdBreak(entry, context);
|
|
2067
|
-
});
|
|
2068
|
-
return retVal;
|
|
2069
|
-
};
|
|
2070
|
-
const de___listOfScheduleEntry = (output, context) => {
|
|
2071
|
-
const retVal = (output || [])
|
|
2072
|
-
.filter((e) => e != null)
|
|
2073
|
-
.map((entry) => {
|
|
2074
|
-
return de_ScheduleEntry(entry, context);
|
|
2075
|
-
});
|
|
2076
|
-
return retVal;
|
|
2077
|
-
};
|
|
2078
|
-
const de___listOfSourceLocation = (output, context) => {
|
|
2079
|
-
const retVal = (output || [])
|
|
2080
|
-
.filter((e) => e != null)
|
|
2081
|
-
.map((entry) => {
|
|
2082
|
-
return de_SourceLocation(entry, context);
|
|
2083
|
-
});
|
|
2084
|
-
return retVal;
|
|
2085
|
-
};
|
|
2086
|
-
const de___listOfVodSource = (output, context) => {
|
|
2087
|
-
const retVal = (output || [])
|
|
2088
|
-
.filter((e) => e != null)
|
|
2089
|
-
.map((entry) => {
|
|
2090
|
-
return de_VodSource(entry, context);
|
|
2091
|
-
});
|
|
2092
|
-
return retVal;
|
|
2093
|
-
};
|
|
2094
|
-
const de_Alert = (output, context) => {
|
|
2095
|
-
return (0, smithy_client_1.take)(output, {
|
|
2096
|
-
AlertCode: smithy_client_1.expectString,
|
|
2097
|
-
AlertMessage: smithy_client_1.expectString,
|
|
2098
|
-
Category: smithy_client_1.expectString,
|
|
2099
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2100
|
-
RelatedResourceArns: smithy_client_1._json,
|
|
2101
|
-
ResourceArn: smithy_client_1.expectString,
|
|
2102
|
-
});
|
|
2103
|
-
};
|
|
2104
|
-
const de_Channel = (output, context) => {
|
|
2105
|
-
return (0, smithy_client_1.take)(output, {
|
|
2106
|
-
Arn: smithy_client_1.expectString,
|
|
2107
|
-
ChannelName: smithy_client_1.expectString,
|
|
2108
|
-
ChannelState: smithy_client_1.expectString,
|
|
2109
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2110
|
-
FillerSlate: smithy_client_1._json,
|
|
2111
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2112
|
-
LogConfiguration: smithy_client_1._json,
|
|
2113
|
-
Outputs: smithy_client_1._json,
|
|
2114
|
-
PlaybackMode: smithy_client_1.expectString,
|
|
2115
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2116
|
-
Tier: smithy_client_1.expectString,
|
|
2117
|
-
});
|
|
2118
|
-
};
|
|
2119
|
-
const de_LiveSource = (output, context) => {
|
|
2120
|
-
return (0, smithy_client_1.take)(output, {
|
|
2121
|
-
Arn: smithy_client_1.expectString,
|
|
2122
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2123
|
-
HttpPackageConfigurations: smithy_client_1._json,
|
|
2124
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2125
|
-
LiveSourceName: smithy_client_1.expectString,
|
|
2126
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
2127
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2128
|
-
});
|
|
2129
|
-
};
|
|
2130
|
-
const de_PlaybackConfiguration = (output, context) => {
|
|
2131
|
-
return (0, smithy_client_1.take)(output, {
|
|
2132
|
-
AdDecisionServerUrl: smithy_client_1.expectString,
|
|
2133
|
-
AvailSuppression: smithy_client_1._json,
|
|
2134
|
-
Bumper: smithy_client_1._json,
|
|
2135
|
-
CdnConfiguration: smithy_client_1._json,
|
|
2136
|
-
ConfigurationAliases: smithy_client_1._json,
|
|
2137
|
-
DashConfiguration: smithy_client_1._json,
|
|
2138
|
-
HlsConfiguration: smithy_client_1._json,
|
|
2139
|
-
LivePreRollConfiguration: smithy_client_1._json,
|
|
2140
|
-
LogConfiguration: smithy_client_1._json,
|
|
2141
|
-
ManifestProcessingRules: smithy_client_1._json,
|
|
2142
|
-
Name: smithy_client_1.expectString,
|
|
2143
|
-
PersonalizationThresholdSeconds: smithy_client_1.expectInt32,
|
|
2144
|
-
PlaybackConfigurationArn: smithy_client_1.expectString,
|
|
2145
|
-
PlaybackEndpointPrefix: smithy_client_1.expectString,
|
|
2146
|
-
SessionInitializationEndpointPrefix: smithy_client_1.expectString,
|
|
2147
|
-
SlateAdUrl: smithy_client_1.expectString,
|
|
2148
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2149
|
-
TranscodeProfileName: smithy_client_1.expectString,
|
|
2150
|
-
VideoContentSourceUrl: smithy_client_1.expectString,
|
|
2151
|
-
});
|
|
2152
|
-
};
|
|
2153
|
-
const de_PrefetchConsumption = (output, context) => {
|
|
2154
|
-
return (0, smithy_client_1.take)(output, {
|
|
2155
|
-
AvailMatchingCriteria: smithy_client_1._json,
|
|
2156
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2157
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2158
|
-
});
|
|
2159
|
-
};
|
|
2160
|
-
const de_PrefetchRetrieval = (output, context) => {
|
|
2161
|
-
return (0, smithy_client_1.take)(output, {
|
|
2162
|
-
DynamicVariables: smithy_client_1._json,
|
|
2163
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2164
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2165
|
-
});
|
|
2166
|
-
};
|
|
2167
|
-
const de_PrefetchSchedule = (output, context) => {
|
|
2168
|
-
return (0, smithy_client_1.take)(output, {
|
|
2169
|
-
Arn: smithy_client_1.expectString,
|
|
2170
|
-
Consumption: (_) => de_PrefetchConsumption(_, context),
|
|
2171
|
-
Name: smithy_client_1.expectString,
|
|
2172
|
-
PlaybackConfigurationName: smithy_client_1.expectString,
|
|
2173
|
-
Retrieval: (_) => de_PrefetchRetrieval(_, context),
|
|
2174
|
-
StreamId: smithy_client_1.expectString,
|
|
2175
|
-
});
|
|
2176
|
-
};
|
|
2177
|
-
const de_ScheduleAdBreak = (output, context) => {
|
|
2178
|
-
return (0, smithy_client_1.take)(output, {
|
|
2179
|
-
ApproximateDurationSeconds: smithy_client_1.expectLong,
|
|
2180
|
-
ApproximateStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2181
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
2182
|
-
VodSourceName: smithy_client_1.expectString,
|
|
2183
|
-
});
|
|
2184
|
-
};
|
|
2185
|
-
const de_ScheduleEntry = (output, context) => {
|
|
2186
|
-
return (0, smithy_client_1.take)(output, {
|
|
2187
|
-
ApproximateDurationSeconds: smithy_client_1.expectLong,
|
|
2188
|
-
ApproximateStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2189
|
-
Arn: smithy_client_1.expectString,
|
|
2190
|
-
ChannelName: smithy_client_1.expectString,
|
|
2191
|
-
LiveSourceName: smithy_client_1.expectString,
|
|
2192
|
-
ProgramName: smithy_client_1.expectString,
|
|
2193
|
-
ScheduleAdBreaks: (_) => de___listOfScheduleAdBreak(_, context),
|
|
2194
|
-
ScheduleEntryType: smithy_client_1.expectString,
|
|
2195
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
2196
|
-
VodSourceName: smithy_client_1.expectString,
|
|
2197
|
-
});
|
|
2198
|
-
};
|
|
2199
|
-
const de_SourceLocation = (output, context) => {
|
|
2200
|
-
return (0, smithy_client_1.take)(output, {
|
|
2201
|
-
AccessConfiguration: smithy_client_1._json,
|
|
2202
|
-
Arn: smithy_client_1.expectString,
|
|
2203
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2204
|
-
DefaultSegmentDeliveryConfiguration: smithy_client_1._json,
|
|
2205
|
-
HttpConfiguration: smithy_client_1._json,
|
|
2206
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2207
|
-
SegmentDeliveryConfigurations: smithy_client_1._json,
|
|
2208
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
2209
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2210
|
-
});
|
|
2211
|
-
};
|
|
2212
|
-
const de_VodSource = (output, context) => {
|
|
2213
|
-
return (0, smithy_client_1.take)(output, {
|
|
2214
|
-
Arn: smithy_client_1.expectString,
|
|
2215
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2216
|
-
HttpPackageConfigurations: smithy_client_1._json,
|
|
2217
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2218
|
-
SourceLocationName: smithy_client_1.expectString,
|
|
2219
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2220
|
-
VodSourceName: smithy_client_1.expectString,
|
|
2221
|
-
});
|
|
2222
|
-
};
|
|
2223
|
-
const deserializeMetadata = (output) => ({
|
|
2224
|
-
httpStatusCode: output.statusCode,
|
|
2225
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2226
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2227
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2228
|
-
});
|
|
2229
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2230
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2231
|
-
value !== null &&
|
|
2232
|
-
value !== "" &&
|
|
2233
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
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";
|
|
2245
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2246
|
-
if (encoded.length) {
|
|
2247
|
-
return JSON.parse(encoded);
|
|
2248
|
-
}
|
|
2249
|
-
return {};
|
|
2250
|
-
});
|
|
2251
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2252
|
-
const value = await parseBody(errorBody, context);
|
|
2253
|
-
value.message = value.message ?? value.Message;
|
|
2254
|
-
return value;
|
|
2255
|
-
};
|
|
2256
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2257
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2258
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2259
|
-
let cleanValue = rawValue;
|
|
2260
|
-
if (typeof cleanValue === "number") {
|
|
2261
|
-
cleanValue = cleanValue.toString();
|
|
2262
|
-
}
|
|
2263
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2264
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2265
|
-
}
|
|
2266
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2267
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2268
|
-
}
|
|
2269
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2270
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2271
|
-
}
|
|
2272
|
-
return cleanValue;
|
|
2273
|
-
};
|
|
2274
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2275
|
-
if (headerKey !== undefined) {
|
|
2276
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2277
|
-
}
|
|
2278
|
-
if (data.code !== undefined) {
|
|
2279
|
-
return sanitizeErrorCode(data.code);
|
|
2280
|
-
}
|
|
2281
|
-
if (data["__type"] !== undefined) {
|
|
2282
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2283
|
-
}
|
|
2284
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|