@aws-sdk/client-mediapackage 3.303.0 → 3.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist-cjs/commands/ConfigureLogsCommand.js +2 -2
  2. package/dist-cjs/commands/CreateChannelCommand.js +2 -2
  3. package/dist-cjs/commands/CreateHarvestJobCommand.js +2 -2
  4. package/dist-cjs/commands/CreateOriginEndpointCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteChannelCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteOriginEndpointCommand.js +2 -2
  7. package/dist-cjs/commands/DescribeChannelCommand.js +2 -2
  8. package/dist-cjs/commands/DescribeHarvestJobCommand.js +2 -2
  9. package/dist-cjs/commands/DescribeOriginEndpointCommand.js +2 -2
  10. package/dist-cjs/commands/ListChannelsCommand.js +2 -2
  11. package/dist-cjs/commands/ListHarvestJobsCommand.js +2 -2
  12. package/dist-cjs/commands/ListOriginEndpointsCommand.js +2 -2
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  14. package/dist-cjs/commands/RotateChannelCredentialsCommand.js +2 -2
  15. package/dist-cjs/commands/RotateIngestEndpointCredentialsCommand.js +2 -2
  16. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  17. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  18. package/dist-cjs/commands/UpdateChannelCommand.js +2 -2
  19. package/dist-cjs/commands/UpdateOriginEndpointCommand.js +2 -2
  20. package/dist-cjs/protocols/Aws_restJson1.js +396 -446
  21. package/dist-es/commands/ConfigureLogsCommand.js +3 -3
  22. package/dist-es/commands/CreateChannelCommand.js +3 -3
  23. package/dist-es/commands/CreateHarvestJobCommand.js +3 -3
  24. package/dist-es/commands/CreateOriginEndpointCommand.js +3 -3
  25. package/dist-es/commands/DeleteChannelCommand.js +3 -3
  26. package/dist-es/commands/DeleteOriginEndpointCommand.js +3 -3
  27. package/dist-es/commands/DescribeChannelCommand.js +3 -3
  28. package/dist-es/commands/DescribeHarvestJobCommand.js +3 -3
  29. package/dist-es/commands/DescribeOriginEndpointCommand.js +3 -3
  30. package/dist-es/commands/ListChannelsCommand.js +3 -3
  31. package/dist-es/commands/ListHarvestJobsCommand.js +3 -3
  32. package/dist-es/commands/ListOriginEndpointsCommand.js +3 -3
  33. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  34. package/dist-es/commands/RotateChannelCredentialsCommand.js +3 -3
  35. package/dist-es/commands/RotateIngestEndpointCredentialsCommand.js +3 -3
  36. package/dist-es/commands/TagResourceCommand.js +3 -3
  37. package/dist-es/commands/UntagResourceCommand.js +3 -3
  38. package/dist-es/commands/UpdateChannelCommand.js +3 -3
  39. package/dist-es/commands/UpdateOriginEndpointCommand.js +3 -3
  40. package/dist-es/protocols/Aws_restJson1.js +357 -407
  41. package/dist-types/protocols/Aws_restJson1.d.ts +152 -38
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +38 -38
  43. package/package.json +29 -29
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateOriginEndpointCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = exports.deserializeAws_restJson1RotateChannelCredentialsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOriginEndpointsCommand = exports.deserializeAws_restJson1ListHarvestJobsCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1DescribeOriginEndpointCommand = exports.deserializeAws_restJson1DescribeHarvestJobCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteOriginEndpointCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateOriginEndpointCommand = exports.deserializeAws_restJson1CreateHarvestJobCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ConfigureLogsCommand = exports.serializeAws_restJson1UpdateOriginEndpointCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RotateIngestEndpointCredentialsCommand = exports.serializeAws_restJson1RotateChannelCredentialsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOriginEndpointsCommand = exports.serializeAws_restJson1ListHarvestJobsCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1DescribeOriginEndpointCommand = exports.serializeAws_restJson1DescribeHarvestJobCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteOriginEndpointCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateOriginEndpointCommand = exports.serializeAws_restJson1CreateHarvestJobCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ConfigureLogsCommand = void 0;
3
+ exports.de_UpdateOriginEndpointCommand = exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RotateIngestEndpointCredentialsCommand = exports.de_RotateChannelCredentialsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOriginEndpointsCommand = exports.de_ListHarvestJobsCommand = exports.de_ListChannelsCommand = exports.de_DescribeOriginEndpointCommand = exports.de_DescribeHarvestJobCommand = exports.de_DescribeChannelCommand = exports.de_DeleteOriginEndpointCommand = exports.de_DeleteChannelCommand = exports.de_CreateOriginEndpointCommand = exports.de_CreateHarvestJobCommand = exports.de_CreateChannelCommand = exports.de_ConfigureLogsCommand = exports.se_UpdateOriginEndpointCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RotateIngestEndpointCredentialsCommand = exports.se_RotateChannelCredentialsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOriginEndpointsCommand = exports.se_ListHarvestJobsCommand = exports.se_ListChannelsCommand = exports.se_DescribeOriginEndpointCommand = exports.se_DescribeHarvestJobCommand = exports.se_DescribeChannelCommand = exports.se_DeleteOriginEndpointCommand = exports.se_DeleteChannelCommand = exports.se_CreateOriginEndpointCommand = exports.se_CreateHarvestJobCommand = exports.se_CreateChannelCommand = exports.se_ConfigureLogsCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const MediaPackageServiceException_1 = require("../models/MediaPackageServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1ConfigureLogsCommand = async (input, context) => {
8
+ const se_ConfigureLogsCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -14,11 +14,9 @@ const serializeAws_restJson1ConfigureLogsCommand = async (input, context) => {
14
14
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
15
15
  let body;
16
16
  body = JSON.stringify({
17
- ...(input.EgressAccessLogs != null && {
18
- egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
19
- }),
17
+ ...(input.EgressAccessLogs != null && { egressAccessLogs: se_EgressAccessLogs(input.EgressAccessLogs, context) }),
20
18
  ...(input.IngressAccessLogs != null && {
21
- ingressAccessLogs: serializeAws_restJson1IngressAccessLogs(input.IngressAccessLogs, context),
19
+ ingressAccessLogs: se_IngressAccessLogs(input.IngressAccessLogs, context),
22
20
  }),
23
21
  });
24
22
  return new protocol_http_1.HttpRequest({
@@ -31,8 +29,8 @@ const serializeAws_restJson1ConfigureLogsCommand = async (input, context) => {
31
29
  body,
32
30
  });
33
31
  };
34
- exports.serializeAws_restJson1ConfigureLogsCommand = serializeAws_restJson1ConfigureLogsCommand;
35
- const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
32
+ exports.se_ConfigureLogsCommand = se_ConfigureLogsCommand;
33
+ const se_CreateChannelCommand = async (input, context) => {
36
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
35
  const headers = {
38
36
  "content-type": "application/json",
@@ -42,7 +40,7 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
42
40
  body = JSON.stringify({
43
41
  ...(input.Description != null && { description: input.Description }),
44
42
  ...(input.Id != null && { id: input.Id }),
45
- ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
43
+ ...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
46
44
  });
47
45
  return new protocol_http_1.HttpRequest({
48
46
  protocol,
@@ -54,8 +52,8 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
54
52
  body,
55
53
  });
56
54
  };
57
- exports.serializeAws_restJson1CreateChannelCommand = serializeAws_restJson1CreateChannelCommand;
58
- const serializeAws_restJson1CreateHarvestJobCommand = async (input, context) => {
55
+ exports.se_CreateChannelCommand = se_CreateChannelCommand;
56
+ const se_CreateHarvestJobCommand = async (input, context) => {
59
57
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
60
58
  const headers = {
61
59
  "content-type": "application/json",
@@ -66,9 +64,7 @@ const serializeAws_restJson1CreateHarvestJobCommand = async (input, context) =>
66
64
  ...(input.EndTime != null && { endTime: input.EndTime }),
67
65
  ...(input.Id != null && { id: input.Id }),
68
66
  ...(input.OriginEndpointId != null && { originEndpointId: input.OriginEndpointId }),
69
- ...(input.S3Destination != null && {
70
- s3Destination: serializeAws_restJson1S3Destination(input.S3Destination, context),
71
- }),
67
+ ...(input.S3Destination != null && { s3Destination: se_S3Destination(input.S3Destination, context) }),
72
68
  ...(input.StartTime != null && { startTime: input.StartTime }),
73
69
  });
74
70
  return new protocol_http_1.HttpRequest({
@@ -81,8 +77,8 @@ const serializeAws_restJson1CreateHarvestJobCommand = async (input, context) =>
81
77
  body,
82
78
  });
83
79
  };
84
- exports.serializeAws_restJson1CreateHarvestJobCommand = serializeAws_restJson1CreateHarvestJobCommand;
85
- const serializeAws_restJson1CreateOriginEndpointCommand = async (input, context) => {
80
+ exports.se_CreateHarvestJobCommand = se_CreateHarvestJobCommand;
81
+ const se_CreateOriginEndpointCommand = async (input, context) => {
86
82
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
83
  const headers = {
88
84
  "content-type": "application/json",
@@ -90,24 +86,22 @@ const serializeAws_restJson1CreateOriginEndpointCommand = async (input, context)
90
86
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints";
91
87
  let body;
92
88
  body = JSON.stringify({
93
- ...(input.Authorization != null && {
94
- authorization: serializeAws_restJson1Authorization(input.Authorization, context),
95
- }),
89
+ ...(input.Authorization != null && { authorization: se_Authorization(input.Authorization, context) }),
96
90
  ...(input.ChannelId != null && { channelId: input.ChannelId }),
97
91
  ...(input.CmafPackage != null && {
98
- cmafPackage: serializeAws_restJson1CmafPackageCreateOrUpdateParameters(input.CmafPackage, context),
92
+ cmafPackage: se_CmafPackageCreateOrUpdateParameters(input.CmafPackage, context),
99
93
  }),
100
- ...(input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
94
+ ...(input.DashPackage != null && { dashPackage: se_DashPackage(input.DashPackage, context) }),
101
95
  ...(input.Description != null && { description: input.Description }),
102
- ...(input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
96
+ ...(input.HlsPackage != null && { hlsPackage: se_HlsPackage(input.HlsPackage, context) }),
103
97
  ...(input.Id != null && { id: input.Id }),
104
98
  ...(input.ManifestName != null && { manifestName: input.ManifestName }),
105
- ...(input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
99
+ ...(input.MssPackage != null && { mssPackage: se_MssPackage(input.MssPackage, context) }),
106
100
  ...(input.Origination != null && { origination: input.Origination }),
107
101
  ...(input.StartoverWindowSeconds != null && { startoverWindowSeconds: input.StartoverWindowSeconds }),
108
- ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
102
+ ...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
109
103
  ...(input.TimeDelaySeconds != null && { timeDelaySeconds: input.TimeDelaySeconds }),
110
- ...(input.Whitelist != null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) }),
104
+ ...(input.Whitelist != null && { whitelist: se___listOf__string(input.Whitelist, context) }),
111
105
  });
112
106
  return new protocol_http_1.HttpRequest({
113
107
  protocol,
@@ -119,8 +113,8 @@ const serializeAws_restJson1CreateOriginEndpointCommand = async (input, context)
119
113
  body,
120
114
  });
121
115
  };
122
- exports.serializeAws_restJson1CreateOriginEndpointCommand = serializeAws_restJson1CreateOriginEndpointCommand;
123
- const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
116
+ exports.se_CreateOriginEndpointCommand = se_CreateOriginEndpointCommand;
117
+ const se_DeleteChannelCommand = async (input, context) => {
124
118
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
125
119
  const headers = {};
126
120
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}";
@@ -136,8 +130,8 @@ const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
136
130
  body,
137
131
  });
138
132
  };
139
- exports.serializeAws_restJson1DeleteChannelCommand = serializeAws_restJson1DeleteChannelCommand;
140
- const serializeAws_restJson1DeleteOriginEndpointCommand = async (input, context) => {
133
+ exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
134
+ const se_DeleteOriginEndpointCommand = async (input, context) => {
141
135
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
136
  const headers = {};
143
137
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints/{Id}";
@@ -153,8 +147,8 @@ const serializeAws_restJson1DeleteOriginEndpointCommand = async (input, context)
153
147
  body,
154
148
  });
155
149
  };
156
- exports.serializeAws_restJson1DeleteOriginEndpointCommand = serializeAws_restJson1DeleteOriginEndpointCommand;
157
- const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
150
+ exports.se_DeleteOriginEndpointCommand = se_DeleteOriginEndpointCommand;
151
+ const se_DescribeChannelCommand = async (input, context) => {
158
152
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
159
153
  const headers = {};
160
154
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}";
@@ -170,8 +164,8 @@ const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
170
164
  body,
171
165
  });
172
166
  };
173
- exports.serializeAws_restJson1DescribeChannelCommand = serializeAws_restJson1DescribeChannelCommand;
174
- const serializeAws_restJson1DescribeHarvestJobCommand = async (input, context) => {
167
+ exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
168
+ const se_DescribeHarvestJobCommand = async (input, context) => {
175
169
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
176
170
  const headers = {};
177
171
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/harvest_jobs/{Id}";
@@ -187,8 +181,8 @@ const serializeAws_restJson1DescribeHarvestJobCommand = async (input, context) =
187
181
  body,
188
182
  });
189
183
  };
190
- exports.serializeAws_restJson1DescribeHarvestJobCommand = serializeAws_restJson1DescribeHarvestJobCommand;
191
- const serializeAws_restJson1DescribeOriginEndpointCommand = async (input, context) => {
184
+ exports.se_DescribeHarvestJobCommand = se_DescribeHarvestJobCommand;
185
+ const se_DescribeOriginEndpointCommand = async (input, context) => {
192
186
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
187
  const headers = {};
194
188
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints/{Id}";
@@ -204,8 +198,8 @@ const serializeAws_restJson1DescribeOriginEndpointCommand = async (input, contex
204
198
  body,
205
199
  });
206
200
  };
207
- exports.serializeAws_restJson1DescribeOriginEndpointCommand = serializeAws_restJson1DescribeOriginEndpointCommand;
208
- const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
201
+ exports.se_DescribeOriginEndpointCommand = se_DescribeOriginEndpointCommand;
202
+ const se_ListChannelsCommand = async (input, context) => {
209
203
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
204
  const headers = {};
211
205
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
@@ -225,8 +219,8 @@ const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
225
219
  body,
226
220
  });
227
221
  };
228
- exports.serializeAws_restJson1ListChannelsCommand = serializeAws_restJson1ListChannelsCommand;
229
- const serializeAws_restJson1ListHarvestJobsCommand = async (input, context) => {
222
+ exports.se_ListChannelsCommand = se_ListChannelsCommand;
223
+ const se_ListHarvestJobsCommand = async (input, context) => {
230
224
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
225
  const headers = {};
232
226
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/harvest_jobs";
@@ -248,8 +242,8 @@ const serializeAws_restJson1ListHarvestJobsCommand = async (input, context) => {
248
242
  body,
249
243
  });
250
244
  };
251
- exports.serializeAws_restJson1ListHarvestJobsCommand = serializeAws_restJson1ListHarvestJobsCommand;
252
- const serializeAws_restJson1ListOriginEndpointsCommand = async (input, context) => {
245
+ exports.se_ListHarvestJobsCommand = se_ListHarvestJobsCommand;
246
+ const se_ListOriginEndpointsCommand = async (input, context) => {
253
247
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
248
  const headers = {};
255
249
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints";
@@ -270,8 +264,8 @@ const serializeAws_restJson1ListOriginEndpointsCommand = async (input, context)
270
264
  body,
271
265
  });
272
266
  };
273
- exports.serializeAws_restJson1ListOriginEndpointsCommand = serializeAws_restJson1ListOriginEndpointsCommand;
274
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
267
+ exports.se_ListOriginEndpointsCommand = se_ListOriginEndpointsCommand;
268
+ const se_ListTagsForResourceCommand = async (input, context) => {
275
269
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
270
  const headers = {};
277
271
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -287,8 +281,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
287
281
  body,
288
282
  });
289
283
  };
290
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
291
- const serializeAws_restJson1RotateChannelCredentialsCommand = async (input, context) => {
284
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
285
+ const se_RotateChannelCredentialsCommand = async (input, context) => {
292
286
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
287
  const headers = {};
294
288
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}/credentials";
@@ -304,8 +298,8 @@ const serializeAws_restJson1RotateChannelCredentialsCommand = async (input, cont
304
298
  body,
305
299
  });
306
300
  };
307
- exports.serializeAws_restJson1RotateChannelCredentialsCommand = serializeAws_restJson1RotateChannelCredentialsCommand;
308
- const serializeAws_restJson1RotateIngestEndpointCredentialsCommand = async (input, context) => {
301
+ exports.se_RotateChannelCredentialsCommand = se_RotateChannelCredentialsCommand;
302
+ const se_RotateIngestEndpointCredentialsCommand = async (input, context) => {
309
303
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
304
  const headers = {};
311
305
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -323,8 +317,8 @@ const serializeAws_restJson1RotateIngestEndpointCredentialsCommand = async (inpu
323
317
  body,
324
318
  });
325
319
  };
326
- exports.serializeAws_restJson1RotateIngestEndpointCredentialsCommand = serializeAws_restJson1RotateIngestEndpointCredentialsCommand;
327
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
320
+ exports.se_RotateIngestEndpointCredentialsCommand = se_RotateIngestEndpointCredentialsCommand;
321
+ const se_TagResourceCommand = async (input, context) => {
328
322
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
329
323
  const headers = {
330
324
  "content-type": "application/json",
@@ -333,7 +327,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
333
327
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
334
328
  let body;
335
329
  body = JSON.stringify({
336
- ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
330
+ ...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
337
331
  });
338
332
  return new protocol_http_1.HttpRequest({
339
333
  protocol,
@@ -345,8 +339,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
345
339
  body,
346
340
  });
347
341
  };
348
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
349
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
342
+ exports.se_TagResourceCommand = se_TagResourceCommand;
343
+ const se_UntagResourceCommand = async (input, context) => {
350
344
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
345
  const headers = {};
352
346
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -369,8 +363,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
369
363
  body,
370
364
  });
371
365
  };
372
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
373
- const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
366
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
367
+ const se_UpdateChannelCommand = async (input, context) => {
374
368
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
375
369
  const headers = {
376
370
  "content-type": "application/json",
@@ -391,8 +385,8 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
391
385
  body,
392
386
  });
393
387
  };
394
- exports.serializeAws_restJson1UpdateChannelCommand = serializeAws_restJson1UpdateChannelCommand;
395
- const serializeAws_restJson1UpdateOriginEndpointCommand = async (input, context) => {
388
+ exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
389
+ const se_UpdateOriginEndpointCommand = async (input, context) => {
396
390
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
397
391
  const headers = {
398
392
  "content-type": "application/json",
@@ -401,21 +395,19 @@ const serializeAws_restJson1UpdateOriginEndpointCommand = async (input, context)
401
395
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
402
396
  let body;
403
397
  body = JSON.stringify({
404
- ...(input.Authorization != null && {
405
- authorization: serializeAws_restJson1Authorization(input.Authorization, context),
406
- }),
398
+ ...(input.Authorization != null && { authorization: se_Authorization(input.Authorization, context) }),
407
399
  ...(input.CmafPackage != null && {
408
- cmafPackage: serializeAws_restJson1CmafPackageCreateOrUpdateParameters(input.CmafPackage, context),
400
+ cmafPackage: se_CmafPackageCreateOrUpdateParameters(input.CmafPackage, context),
409
401
  }),
410
- ...(input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
402
+ ...(input.DashPackage != null && { dashPackage: se_DashPackage(input.DashPackage, context) }),
411
403
  ...(input.Description != null && { description: input.Description }),
412
- ...(input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
404
+ ...(input.HlsPackage != null && { hlsPackage: se_HlsPackage(input.HlsPackage, context) }),
413
405
  ...(input.ManifestName != null && { manifestName: input.ManifestName }),
414
- ...(input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
406
+ ...(input.MssPackage != null && { mssPackage: se_MssPackage(input.MssPackage, context) }),
415
407
  ...(input.Origination != null && { origination: input.Origination }),
416
408
  ...(input.StartoverWindowSeconds != null && { startoverWindowSeconds: input.StartoverWindowSeconds }),
417
409
  ...(input.TimeDelaySeconds != null && { timeDelaySeconds: input.TimeDelaySeconds }),
418
- ...(input.Whitelist != null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) }),
410
+ ...(input.Whitelist != null && { whitelist: se___listOf__string(input.Whitelist, context) }),
419
411
  });
420
412
  return new protocol_http_1.HttpRequest({
421
413
  protocol,
@@ -427,10 +419,10 @@ const serializeAws_restJson1UpdateOriginEndpointCommand = async (input, context)
427
419
  body,
428
420
  });
429
421
  };
430
- exports.serializeAws_restJson1UpdateOriginEndpointCommand = serializeAws_restJson1UpdateOriginEndpointCommand;
431
- const deserializeAws_restJson1ConfigureLogsCommand = async (output, context) => {
422
+ exports.se_UpdateOriginEndpointCommand = se_UpdateOriginEndpointCommand;
423
+ const de_ConfigureLogsCommand = async (output, context) => {
432
424
  if (output.statusCode !== 200 && output.statusCode >= 300) {
433
- return deserializeAws_restJson1ConfigureLogsCommandError(output, context);
425
+ return de_ConfigureLogsCommandError(output, context);
434
426
  }
435
427
  const contents = map({
436
428
  $metadata: deserializeMetadata(output),
@@ -446,24 +438,24 @@ const deserializeAws_restJson1ConfigureLogsCommand = async (output, context) =>
446
438
  contents.Description = (0, smithy_client_1.expectString)(data.description);
447
439
  }
448
440
  if (data.egressAccessLogs != null) {
449
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
441
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
450
442
  }
451
443
  if (data.hlsIngest != null) {
452
- contents.HlsIngest = deserializeAws_restJson1HlsIngest(data.hlsIngest, context);
444
+ contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
453
445
  }
454
446
  if (data.id != null) {
455
447
  contents.Id = (0, smithy_client_1.expectString)(data.id);
456
448
  }
457
449
  if (data.ingressAccessLogs != null) {
458
- contents.IngressAccessLogs = deserializeAws_restJson1IngressAccessLogs(data.ingressAccessLogs, context);
450
+ contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
459
451
  }
460
452
  if (data.tags != null) {
461
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
453
+ contents.Tags = de_Tags(data.tags, context);
462
454
  }
463
455
  return contents;
464
456
  };
465
- exports.deserializeAws_restJson1ConfigureLogsCommand = deserializeAws_restJson1ConfigureLogsCommand;
466
- const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context) => {
457
+ exports.de_ConfigureLogsCommand = de_ConfigureLogsCommand;
458
+ const de_ConfigureLogsCommandError = async (output, context) => {
467
459
  const parsedOutput = {
468
460
  ...output,
469
461
  body: await parseErrorBody(output.body, context),
@@ -472,22 +464,22 @@ const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context
472
464
  switch (errorCode) {
473
465
  case "ForbiddenException":
474
466
  case "com.amazonaws.mediapackage#ForbiddenException":
475
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
467
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
476
468
  case "InternalServerErrorException":
477
469
  case "com.amazonaws.mediapackage#InternalServerErrorException":
478
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
470
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
479
471
  case "NotFoundException":
480
472
  case "com.amazonaws.mediapackage#NotFoundException":
481
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
473
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
482
474
  case "ServiceUnavailableException":
483
475
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
484
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
476
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
485
477
  case "TooManyRequestsException":
486
478
  case "com.amazonaws.mediapackage#TooManyRequestsException":
487
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
479
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
488
480
  case "UnprocessableEntityException":
489
481
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
490
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
482
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
491
483
  default:
492
484
  const parsedBody = parsedOutput.body;
493
485
  (0, smithy_client_1.throwDefaultError)({
@@ -498,9 +490,9 @@ const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context
498
490
  });
499
491
  }
500
492
  };
501
- const deserializeAws_restJson1CreateChannelCommand = async (output, context) => {
493
+ const de_CreateChannelCommand = async (output, context) => {
502
494
  if (output.statusCode !== 200 && output.statusCode >= 300) {
503
- return deserializeAws_restJson1CreateChannelCommandError(output, context);
495
+ return de_CreateChannelCommandError(output, context);
504
496
  }
505
497
  const contents = map({
506
498
  $metadata: deserializeMetadata(output),
@@ -516,24 +508,24 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
516
508
  contents.Description = (0, smithy_client_1.expectString)(data.description);
517
509
  }
518
510
  if (data.egressAccessLogs != null) {
519
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
511
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
520
512
  }
521
513
  if (data.hlsIngest != null) {
522
- contents.HlsIngest = deserializeAws_restJson1HlsIngest(data.hlsIngest, context);
514
+ contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
523
515
  }
524
516
  if (data.id != null) {
525
517
  contents.Id = (0, smithy_client_1.expectString)(data.id);
526
518
  }
527
519
  if (data.ingressAccessLogs != null) {
528
- contents.IngressAccessLogs = deserializeAws_restJson1IngressAccessLogs(data.ingressAccessLogs, context);
520
+ contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
529
521
  }
530
522
  if (data.tags != null) {
531
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
523
+ contents.Tags = de_Tags(data.tags, context);
532
524
  }
533
525
  return contents;
534
526
  };
535
- exports.deserializeAws_restJson1CreateChannelCommand = deserializeAws_restJson1CreateChannelCommand;
536
- const deserializeAws_restJson1CreateChannelCommandError = async (output, context) => {
527
+ exports.de_CreateChannelCommand = de_CreateChannelCommand;
528
+ const de_CreateChannelCommandError = async (output, context) => {
537
529
  const parsedOutput = {
538
530
  ...output,
539
531
  body: await parseErrorBody(output.body, context),
@@ -542,22 +534,22 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
542
534
  switch (errorCode) {
543
535
  case "ForbiddenException":
544
536
  case "com.amazonaws.mediapackage#ForbiddenException":
545
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
537
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
546
538
  case "InternalServerErrorException":
547
539
  case "com.amazonaws.mediapackage#InternalServerErrorException":
548
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
540
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
549
541
  case "NotFoundException":
550
542
  case "com.amazonaws.mediapackage#NotFoundException":
551
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
543
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
552
544
  case "ServiceUnavailableException":
553
545
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
554
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
546
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
555
547
  case "TooManyRequestsException":
556
548
  case "com.amazonaws.mediapackage#TooManyRequestsException":
557
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
549
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
558
550
  case "UnprocessableEntityException":
559
551
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
560
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
552
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
561
553
  default:
562
554
  const parsedBody = parsedOutput.body;
563
555
  (0, smithy_client_1.throwDefaultError)({
@@ -568,9 +560,9 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
568
560
  });
569
561
  }
570
562
  };
571
- const deserializeAws_restJson1CreateHarvestJobCommand = async (output, context) => {
563
+ const de_CreateHarvestJobCommand = async (output, context) => {
572
564
  if (output.statusCode !== 200 && output.statusCode >= 300) {
573
- return deserializeAws_restJson1CreateHarvestJobCommandError(output, context);
565
+ return de_CreateHarvestJobCommandError(output, context);
574
566
  }
575
567
  const contents = map({
576
568
  $metadata: deserializeMetadata(output),
@@ -595,7 +587,7 @@ const deserializeAws_restJson1CreateHarvestJobCommand = async (output, context)
595
587
  contents.OriginEndpointId = (0, smithy_client_1.expectString)(data.originEndpointId);
596
588
  }
597
589
  if (data.s3Destination != null) {
598
- contents.S3Destination = deserializeAws_restJson1S3Destination(data.s3Destination, context);
590
+ contents.S3Destination = de_S3Destination(data.s3Destination, context);
599
591
  }
600
592
  if (data.startTime != null) {
601
593
  contents.StartTime = (0, smithy_client_1.expectString)(data.startTime);
@@ -605,8 +597,8 @@ const deserializeAws_restJson1CreateHarvestJobCommand = async (output, context)
605
597
  }
606
598
  return contents;
607
599
  };
608
- exports.deserializeAws_restJson1CreateHarvestJobCommand = deserializeAws_restJson1CreateHarvestJobCommand;
609
- const deserializeAws_restJson1CreateHarvestJobCommandError = async (output, context) => {
600
+ exports.de_CreateHarvestJobCommand = de_CreateHarvestJobCommand;
601
+ const de_CreateHarvestJobCommandError = async (output, context) => {
610
602
  const parsedOutput = {
611
603
  ...output,
612
604
  body: await parseErrorBody(output.body, context),
@@ -615,22 +607,22 @@ const deserializeAws_restJson1CreateHarvestJobCommandError = async (output, cont
615
607
  switch (errorCode) {
616
608
  case "ForbiddenException":
617
609
  case "com.amazonaws.mediapackage#ForbiddenException":
618
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
610
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
619
611
  case "InternalServerErrorException":
620
612
  case "com.amazonaws.mediapackage#InternalServerErrorException":
621
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
613
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
622
614
  case "NotFoundException":
623
615
  case "com.amazonaws.mediapackage#NotFoundException":
624
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
616
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
625
617
  case "ServiceUnavailableException":
626
618
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
627
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
619
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
628
620
  case "TooManyRequestsException":
629
621
  case "com.amazonaws.mediapackage#TooManyRequestsException":
630
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
622
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
631
623
  case "UnprocessableEntityException":
632
624
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
633
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
625
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
634
626
  default:
635
627
  const parsedBody = parsedOutput.body;
636
628
  (0, smithy_client_1.throwDefaultError)({
@@ -641,9 +633,9 @@ const deserializeAws_restJson1CreateHarvestJobCommandError = async (output, cont
641
633
  });
642
634
  }
643
635
  };
644
- const deserializeAws_restJson1CreateOriginEndpointCommand = async (output, context) => {
636
+ const de_CreateOriginEndpointCommand = async (output, context) => {
645
637
  if (output.statusCode !== 200 && output.statusCode >= 300) {
646
- return deserializeAws_restJson1CreateOriginEndpointCommandError(output, context);
638
+ return de_CreateOriginEndpointCommandError(output, context);
647
639
  }
648
640
  const contents = map({
649
641
  $metadata: deserializeMetadata(output),
@@ -653,25 +645,25 @@ const deserializeAws_restJson1CreateOriginEndpointCommand = async (output, conte
653
645
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
654
646
  }
655
647
  if (data.authorization != null) {
656
- contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
648
+ contents.Authorization = de_Authorization(data.authorization, context);
657
649
  }
658
650
  if (data.channelId != null) {
659
651
  contents.ChannelId = (0, smithy_client_1.expectString)(data.channelId);
660
652
  }
661
653
  if (data.cmafPackage != null) {
662
- contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
654
+ contents.CmafPackage = de_CmafPackage(data.cmafPackage, context);
663
655
  }
664
656
  if (data.createdAt != null) {
665
657
  contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
666
658
  }
667
659
  if (data.dashPackage != null) {
668
- contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
660
+ contents.DashPackage = de_DashPackage(data.dashPackage, context);
669
661
  }
670
662
  if (data.description != null) {
671
663
  contents.Description = (0, smithy_client_1.expectString)(data.description);
672
664
  }
673
665
  if (data.hlsPackage != null) {
674
- contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
666
+ contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
675
667
  }
676
668
  if (data.id != null) {
677
669
  contents.Id = (0, smithy_client_1.expectString)(data.id);
@@ -680,7 +672,7 @@ const deserializeAws_restJson1CreateOriginEndpointCommand = async (output, conte
680
672
  contents.ManifestName = (0, smithy_client_1.expectString)(data.manifestName);
681
673
  }
682
674
  if (data.mssPackage != null) {
683
- contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
675
+ contents.MssPackage = de_MssPackage(data.mssPackage, context);
684
676
  }
685
677
  if (data.origination != null) {
686
678
  contents.Origination = (0, smithy_client_1.expectString)(data.origination);
@@ -689,7 +681,7 @@ const deserializeAws_restJson1CreateOriginEndpointCommand = async (output, conte
689
681
  contents.StartoverWindowSeconds = (0, smithy_client_1.expectInt32)(data.startoverWindowSeconds);
690
682
  }
691
683
  if (data.tags != null) {
692
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
684
+ contents.Tags = de_Tags(data.tags, context);
693
685
  }
694
686
  if (data.timeDelaySeconds != null) {
695
687
  contents.TimeDelaySeconds = (0, smithy_client_1.expectInt32)(data.timeDelaySeconds);
@@ -698,12 +690,12 @@ const deserializeAws_restJson1CreateOriginEndpointCommand = async (output, conte
698
690
  contents.Url = (0, smithy_client_1.expectString)(data.url);
699
691
  }
700
692
  if (data.whitelist != null) {
701
- contents.Whitelist = deserializeAws_restJson1__listOf__string(data.whitelist, context);
693
+ contents.Whitelist = de___listOf__string(data.whitelist, context);
702
694
  }
703
695
  return contents;
704
696
  };
705
- exports.deserializeAws_restJson1CreateOriginEndpointCommand = deserializeAws_restJson1CreateOriginEndpointCommand;
706
- const deserializeAws_restJson1CreateOriginEndpointCommandError = async (output, context) => {
697
+ exports.de_CreateOriginEndpointCommand = de_CreateOriginEndpointCommand;
698
+ const de_CreateOriginEndpointCommandError = async (output, context) => {
707
699
  const parsedOutput = {
708
700
  ...output,
709
701
  body: await parseErrorBody(output.body, context),
@@ -712,22 +704,22 @@ const deserializeAws_restJson1CreateOriginEndpointCommandError = async (output,
712
704
  switch (errorCode) {
713
705
  case "ForbiddenException":
714
706
  case "com.amazonaws.mediapackage#ForbiddenException":
715
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
707
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
716
708
  case "InternalServerErrorException":
717
709
  case "com.amazonaws.mediapackage#InternalServerErrorException":
718
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
710
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
719
711
  case "NotFoundException":
720
712
  case "com.amazonaws.mediapackage#NotFoundException":
721
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
713
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
722
714
  case "ServiceUnavailableException":
723
715
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
724
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
716
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
725
717
  case "TooManyRequestsException":
726
718
  case "com.amazonaws.mediapackage#TooManyRequestsException":
727
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
719
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
728
720
  case "UnprocessableEntityException":
729
721
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
730
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
722
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
731
723
  default:
732
724
  const parsedBody = parsedOutput.body;
733
725
  (0, smithy_client_1.throwDefaultError)({
@@ -738,9 +730,9 @@ const deserializeAws_restJson1CreateOriginEndpointCommandError = async (output,
738
730
  });
739
731
  }
740
732
  };
741
- const deserializeAws_restJson1DeleteChannelCommand = async (output, context) => {
733
+ const de_DeleteChannelCommand = async (output, context) => {
742
734
  if (output.statusCode !== 202 && output.statusCode >= 300) {
743
- return deserializeAws_restJson1DeleteChannelCommandError(output, context);
735
+ return de_DeleteChannelCommandError(output, context);
744
736
  }
745
737
  const contents = map({
746
738
  $metadata: deserializeMetadata(output),
@@ -748,8 +740,8 @@ const deserializeAws_restJson1DeleteChannelCommand = async (output, context) =>
748
740
  await collectBody(output.body, context);
749
741
  return contents;
750
742
  };
751
- exports.deserializeAws_restJson1DeleteChannelCommand = deserializeAws_restJson1DeleteChannelCommand;
752
- const deserializeAws_restJson1DeleteChannelCommandError = async (output, context) => {
743
+ exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
744
+ const de_DeleteChannelCommandError = async (output, context) => {
753
745
  const parsedOutput = {
754
746
  ...output,
755
747
  body: await parseErrorBody(output.body, context),
@@ -758,22 +750,22 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
758
750
  switch (errorCode) {
759
751
  case "ForbiddenException":
760
752
  case "com.amazonaws.mediapackage#ForbiddenException":
761
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
753
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
762
754
  case "InternalServerErrorException":
763
755
  case "com.amazonaws.mediapackage#InternalServerErrorException":
764
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
756
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
765
757
  case "NotFoundException":
766
758
  case "com.amazonaws.mediapackage#NotFoundException":
767
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
759
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
768
760
  case "ServiceUnavailableException":
769
761
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
770
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
762
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
771
763
  case "TooManyRequestsException":
772
764
  case "com.amazonaws.mediapackage#TooManyRequestsException":
773
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
765
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
774
766
  case "UnprocessableEntityException":
775
767
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
776
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
768
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
777
769
  default:
778
770
  const parsedBody = parsedOutput.body;
779
771
  (0, smithy_client_1.throwDefaultError)({
@@ -784,9 +776,9 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
784
776
  });
785
777
  }
786
778
  };
787
- const deserializeAws_restJson1DeleteOriginEndpointCommand = async (output, context) => {
779
+ const de_DeleteOriginEndpointCommand = async (output, context) => {
788
780
  if (output.statusCode !== 202 && output.statusCode >= 300) {
789
- return deserializeAws_restJson1DeleteOriginEndpointCommandError(output, context);
781
+ return de_DeleteOriginEndpointCommandError(output, context);
790
782
  }
791
783
  const contents = map({
792
784
  $metadata: deserializeMetadata(output),
@@ -794,8 +786,8 @@ const deserializeAws_restJson1DeleteOriginEndpointCommand = async (output, conte
794
786
  await collectBody(output.body, context);
795
787
  return contents;
796
788
  };
797
- exports.deserializeAws_restJson1DeleteOriginEndpointCommand = deserializeAws_restJson1DeleteOriginEndpointCommand;
798
- const deserializeAws_restJson1DeleteOriginEndpointCommandError = async (output, context) => {
789
+ exports.de_DeleteOriginEndpointCommand = de_DeleteOriginEndpointCommand;
790
+ const de_DeleteOriginEndpointCommandError = async (output, context) => {
799
791
  const parsedOutput = {
800
792
  ...output,
801
793
  body: await parseErrorBody(output.body, context),
@@ -804,22 +796,22 @@ const deserializeAws_restJson1DeleteOriginEndpointCommandError = async (output,
804
796
  switch (errorCode) {
805
797
  case "ForbiddenException":
806
798
  case "com.amazonaws.mediapackage#ForbiddenException":
807
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
799
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
808
800
  case "InternalServerErrorException":
809
801
  case "com.amazonaws.mediapackage#InternalServerErrorException":
810
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
802
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
811
803
  case "NotFoundException":
812
804
  case "com.amazonaws.mediapackage#NotFoundException":
813
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
805
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
814
806
  case "ServiceUnavailableException":
815
807
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
816
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
808
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
817
809
  case "TooManyRequestsException":
818
810
  case "com.amazonaws.mediapackage#TooManyRequestsException":
819
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
811
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
820
812
  case "UnprocessableEntityException":
821
813
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
822
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
814
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
823
815
  default:
824
816
  const parsedBody = parsedOutput.body;
825
817
  (0, smithy_client_1.throwDefaultError)({
@@ -830,9 +822,9 @@ const deserializeAws_restJson1DeleteOriginEndpointCommandError = async (output,
830
822
  });
831
823
  }
832
824
  };
833
- const deserializeAws_restJson1DescribeChannelCommand = async (output, context) => {
825
+ const de_DescribeChannelCommand = async (output, context) => {
834
826
  if (output.statusCode !== 200 && output.statusCode >= 300) {
835
- return deserializeAws_restJson1DescribeChannelCommandError(output, context);
827
+ return de_DescribeChannelCommandError(output, context);
836
828
  }
837
829
  const contents = map({
838
830
  $metadata: deserializeMetadata(output),
@@ -848,24 +840,24 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
848
840
  contents.Description = (0, smithy_client_1.expectString)(data.description);
849
841
  }
850
842
  if (data.egressAccessLogs != null) {
851
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
843
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
852
844
  }
853
845
  if (data.hlsIngest != null) {
854
- contents.HlsIngest = deserializeAws_restJson1HlsIngest(data.hlsIngest, context);
846
+ contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
855
847
  }
856
848
  if (data.id != null) {
857
849
  contents.Id = (0, smithy_client_1.expectString)(data.id);
858
850
  }
859
851
  if (data.ingressAccessLogs != null) {
860
- contents.IngressAccessLogs = deserializeAws_restJson1IngressAccessLogs(data.ingressAccessLogs, context);
852
+ contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
861
853
  }
862
854
  if (data.tags != null) {
863
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
855
+ contents.Tags = de_Tags(data.tags, context);
864
856
  }
865
857
  return contents;
866
858
  };
867
- exports.deserializeAws_restJson1DescribeChannelCommand = deserializeAws_restJson1DescribeChannelCommand;
868
- const deserializeAws_restJson1DescribeChannelCommandError = async (output, context) => {
859
+ exports.de_DescribeChannelCommand = de_DescribeChannelCommand;
860
+ const de_DescribeChannelCommandError = async (output, context) => {
869
861
  const parsedOutput = {
870
862
  ...output,
871
863
  body: await parseErrorBody(output.body, context),
@@ -874,22 +866,22 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
874
866
  switch (errorCode) {
875
867
  case "ForbiddenException":
876
868
  case "com.amazonaws.mediapackage#ForbiddenException":
877
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
869
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
878
870
  case "InternalServerErrorException":
879
871
  case "com.amazonaws.mediapackage#InternalServerErrorException":
880
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
872
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
881
873
  case "NotFoundException":
882
874
  case "com.amazonaws.mediapackage#NotFoundException":
883
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
875
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
884
876
  case "ServiceUnavailableException":
885
877
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
886
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
878
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
887
879
  case "TooManyRequestsException":
888
880
  case "com.amazonaws.mediapackage#TooManyRequestsException":
889
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
881
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
890
882
  case "UnprocessableEntityException":
891
883
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
892
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
884
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
893
885
  default:
894
886
  const parsedBody = parsedOutput.body;
895
887
  (0, smithy_client_1.throwDefaultError)({
@@ -900,9 +892,9 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
900
892
  });
901
893
  }
902
894
  };
903
- const deserializeAws_restJson1DescribeHarvestJobCommand = async (output, context) => {
895
+ const de_DescribeHarvestJobCommand = async (output, context) => {
904
896
  if (output.statusCode !== 200 && output.statusCode >= 300) {
905
- return deserializeAws_restJson1DescribeHarvestJobCommandError(output, context);
897
+ return de_DescribeHarvestJobCommandError(output, context);
906
898
  }
907
899
  const contents = map({
908
900
  $metadata: deserializeMetadata(output),
@@ -927,7 +919,7 @@ const deserializeAws_restJson1DescribeHarvestJobCommand = async (output, context
927
919
  contents.OriginEndpointId = (0, smithy_client_1.expectString)(data.originEndpointId);
928
920
  }
929
921
  if (data.s3Destination != null) {
930
- contents.S3Destination = deserializeAws_restJson1S3Destination(data.s3Destination, context);
922
+ contents.S3Destination = de_S3Destination(data.s3Destination, context);
931
923
  }
932
924
  if (data.startTime != null) {
933
925
  contents.StartTime = (0, smithy_client_1.expectString)(data.startTime);
@@ -937,8 +929,8 @@ const deserializeAws_restJson1DescribeHarvestJobCommand = async (output, context
937
929
  }
938
930
  return contents;
939
931
  };
940
- exports.deserializeAws_restJson1DescribeHarvestJobCommand = deserializeAws_restJson1DescribeHarvestJobCommand;
941
- const deserializeAws_restJson1DescribeHarvestJobCommandError = async (output, context) => {
932
+ exports.de_DescribeHarvestJobCommand = de_DescribeHarvestJobCommand;
933
+ const de_DescribeHarvestJobCommandError = async (output, context) => {
942
934
  const parsedOutput = {
943
935
  ...output,
944
936
  body: await parseErrorBody(output.body, context),
@@ -947,22 +939,22 @@ const deserializeAws_restJson1DescribeHarvestJobCommandError = async (output, co
947
939
  switch (errorCode) {
948
940
  case "ForbiddenException":
949
941
  case "com.amazonaws.mediapackage#ForbiddenException":
950
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
942
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
951
943
  case "InternalServerErrorException":
952
944
  case "com.amazonaws.mediapackage#InternalServerErrorException":
953
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
945
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
954
946
  case "NotFoundException":
955
947
  case "com.amazonaws.mediapackage#NotFoundException":
956
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
948
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
957
949
  case "ServiceUnavailableException":
958
950
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
959
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
951
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
960
952
  case "TooManyRequestsException":
961
953
  case "com.amazonaws.mediapackage#TooManyRequestsException":
962
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
954
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
963
955
  case "UnprocessableEntityException":
964
956
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
965
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
957
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
966
958
  default:
967
959
  const parsedBody = parsedOutput.body;
968
960
  (0, smithy_client_1.throwDefaultError)({
@@ -973,9 +965,9 @@ const deserializeAws_restJson1DescribeHarvestJobCommandError = async (output, co
973
965
  });
974
966
  }
975
967
  };
976
- const deserializeAws_restJson1DescribeOriginEndpointCommand = async (output, context) => {
968
+ const de_DescribeOriginEndpointCommand = async (output, context) => {
977
969
  if (output.statusCode !== 200 && output.statusCode >= 300) {
978
- return deserializeAws_restJson1DescribeOriginEndpointCommandError(output, context);
970
+ return de_DescribeOriginEndpointCommandError(output, context);
979
971
  }
980
972
  const contents = map({
981
973
  $metadata: deserializeMetadata(output),
@@ -985,25 +977,25 @@ const deserializeAws_restJson1DescribeOriginEndpointCommand = async (output, con
985
977
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
986
978
  }
987
979
  if (data.authorization != null) {
988
- contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
980
+ contents.Authorization = de_Authorization(data.authorization, context);
989
981
  }
990
982
  if (data.channelId != null) {
991
983
  contents.ChannelId = (0, smithy_client_1.expectString)(data.channelId);
992
984
  }
993
985
  if (data.cmafPackage != null) {
994
- contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
986
+ contents.CmafPackage = de_CmafPackage(data.cmafPackage, context);
995
987
  }
996
988
  if (data.createdAt != null) {
997
989
  contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
998
990
  }
999
991
  if (data.dashPackage != null) {
1000
- contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
992
+ contents.DashPackage = de_DashPackage(data.dashPackage, context);
1001
993
  }
1002
994
  if (data.description != null) {
1003
995
  contents.Description = (0, smithy_client_1.expectString)(data.description);
1004
996
  }
1005
997
  if (data.hlsPackage != null) {
1006
- contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
998
+ contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
1007
999
  }
1008
1000
  if (data.id != null) {
1009
1001
  contents.Id = (0, smithy_client_1.expectString)(data.id);
@@ -1012,7 +1004,7 @@ const deserializeAws_restJson1DescribeOriginEndpointCommand = async (output, con
1012
1004
  contents.ManifestName = (0, smithy_client_1.expectString)(data.manifestName);
1013
1005
  }
1014
1006
  if (data.mssPackage != null) {
1015
- contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
1007
+ contents.MssPackage = de_MssPackage(data.mssPackage, context);
1016
1008
  }
1017
1009
  if (data.origination != null) {
1018
1010
  contents.Origination = (0, smithy_client_1.expectString)(data.origination);
@@ -1021,7 +1013,7 @@ const deserializeAws_restJson1DescribeOriginEndpointCommand = async (output, con
1021
1013
  contents.StartoverWindowSeconds = (0, smithy_client_1.expectInt32)(data.startoverWindowSeconds);
1022
1014
  }
1023
1015
  if (data.tags != null) {
1024
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
1016
+ contents.Tags = de_Tags(data.tags, context);
1025
1017
  }
1026
1018
  if (data.timeDelaySeconds != null) {
1027
1019
  contents.TimeDelaySeconds = (0, smithy_client_1.expectInt32)(data.timeDelaySeconds);
@@ -1030,12 +1022,12 @@ const deserializeAws_restJson1DescribeOriginEndpointCommand = async (output, con
1030
1022
  contents.Url = (0, smithy_client_1.expectString)(data.url);
1031
1023
  }
1032
1024
  if (data.whitelist != null) {
1033
- contents.Whitelist = deserializeAws_restJson1__listOf__string(data.whitelist, context);
1025
+ contents.Whitelist = de___listOf__string(data.whitelist, context);
1034
1026
  }
1035
1027
  return contents;
1036
1028
  };
1037
- exports.deserializeAws_restJson1DescribeOriginEndpointCommand = deserializeAws_restJson1DescribeOriginEndpointCommand;
1038
- const deserializeAws_restJson1DescribeOriginEndpointCommandError = async (output, context) => {
1029
+ exports.de_DescribeOriginEndpointCommand = de_DescribeOriginEndpointCommand;
1030
+ const de_DescribeOriginEndpointCommandError = async (output, context) => {
1039
1031
  const parsedOutput = {
1040
1032
  ...output,
1041
1033
  body: await parseErrorBody(output.body, context),
@@ -1044,22 +1036,22 @@ const deserializeAws_restJson1DescribeOriginEndpointCommandError = async (output
1044
1036
  switch (errorCode) {
1045
1037
  case "ForbiddenException":
1046
1038
  case "com.amazonaws.mediapackage#ForbiddenException":
1047
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1039
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1048
1040
  case "InternalServerErrorException":
1049
1041
  case "com.amazonaws.mediapackage#InternalServerErrorException":
1050
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1042
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1051
1043
  case "NotFoundException":
1052
1044
  case "com.amazonaws.mediapackage#NotFoundException":
1053
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1045
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1054
1046
  case "ServiceUnavailableException":
1055
1047
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
1056
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1048
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1057
1049
  case "TooManyRequestsException":
1058
1050
  case "com.amazonaws.mediapackage#TooManyRequestsException":
1059
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1051
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1060
1052
  case "UnprocessableEntityException":
1061
1053
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
1062
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1054
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1063
1055
  default:
1064
1056
  const parsedBody = parsedOutput.body;
1065
1057
  (0, smithy_client_1.throwDefaultError)({
@@ -1070,24 +1062,24 @@ const deserializeAws_restJson1DescribeOriginEndpointCommandError = async (output
1070
1062
  });
1071
1063
  }
1072
1064
  };
1073
- const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
1065
+ const de_ListChannelsCommand = async (output, context) => {
1074
1066
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1075
- return deserializeAws_restJson1ListChannelsCommandError(output, context);
1067
+ return de_ListChannelsCommandError(output, context);
1076
1068
  }
1077
1069
  const contents = map({
1078
1070
  $metadata: deserializeMetadata(output),
1079
1071
  });
1080
1072
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1081
1073
  if (data.channels != null) {
1082
- contents.Channels = deserializeAws_restJson1__listOfChannel(data.channels, context);
1074
+ contents.Channels = de___listOfChannel(data.channels, context);
1083
1075
  }
1084
1076
  if (data.nextToken != null) {
1085
1077
  contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
1086
1078
  }
1087
1079
  return contents;
1088
1080
  };
1089
- exports.deserializeAws_restJson1ListChannelsCommand = deserializeAws_restJson1ListChannelsCommand;
1090
- const deserializeAws_restJson1ListChannelsCommandError = async (output, context) => {
1081
+ exports.de_ListChannelsCommand = de_ListChannelsCommand;
1082
+ const de_ListChannelsCommandError = async (output, context) => {
1091
1083
  const parsedOutput = {
1092
1084
  ...output,
1093
1085
  body: await parseErrorBody(output.body, context),
@@ -1096,22 +1088,22 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
1096
1088
  switch (errorCode) {
1097
1089
  case "ForbiddenException":
1098
1090
  case "com.amazonaws.mediapackage#ForbiddenException":
1099
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1091
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1100
1092
  case "InternalServerErrorException":
1101
1093
  case "com.amazonaws.mediapackage#InternalServerErrorException":
1102
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1094
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1103
1095
  case "NotFoundException":
1104
1096
  case "com.amazonaws.mediapackage#NotFoundException":
1105
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1097
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1106
1098
  case "ServiceUnavailableException":
1107
1099
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
1108
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1100
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1109
1101
  case "TooManyRequestsException":
1110
1102
  case "com.amazonaws.mediapackage#TooManyRequestsException":
1111
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1103
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1112
1104
  case "UnprocessableEntityException":
1113
1105
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
1114
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1106
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1115
1107
  default:
1116
1108
  const parsedBody = parsedOutput.body;
1117
1109
  (0, smithy_client_1.throwDefaultError)({
@@ -1122,24 +1114,24 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
1122
1114
  });
1123
1115
  }
1124
1116
  };
1125
- const deserializeAws_restJson1ListHarvestJobsCommand = async (output, context) => {
1117
+ const de_ListHarvestJobsCommand = async (output, context) => {
1126
1118
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1127
- return deserializeAws_restJson1ListHarvestJobsCommandError(output, context);
1119
+ return de_ListHarvestJobsCommandError(output, context);
1128
1120
  }
1129
1121
  const contents = map({
1130
1122
  $metadata: deserializeMetadata(output),
1131
1123
  });
1132
1124
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1133
1125
  if (data.harvestJobs != null) {
1134
- contents.HarvestJobs = deserializeAws_restJson1__listOfHarvestJob(data.harvestJobs, context);
1126
+ contents.HarvestJobs = de___listOfHarvestJob(data.harvestJobs, context);
1135
1127
  }
1136
1128
  if (data.nextToken != null) {
1137
1129
  contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
1138
1130
  }
1139
1131
  return contents;
1140
1132
  };
1141
- exports.deserializeAws_restJson1ListHarvestJobsCommand = deserializeAws_restJson1ListHarvestJobsCommand;
1142
- const deserializeAws_restJson1ListHarvestJobsCommandError = async (output, context) => {
1133
+ exports.de_ListHarvestJobsCommand = de_ListHarvestJobsCommand;
1134
+ const de_ListHarvestJobsCommandError = async (output, context) => {
1143
1135
  const parsedOutput = {
1144
1136
  ...output,
1145
1137
  body: await parseErrorBody(output.body, context),
@@ -1148,22 +1140,22 @@ const deserializeAws_restJson1ListHarvestJobsCommandError = async (output, conte
1148
1140
  switch (errorCode) {
1149
1141
  case "ForbiddenException":
1150
1142
  case "com.amazonaws.mediapackage#ForbiddenException":
1151
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1143
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1152
1144
  case "InternalServerErrorException":
1153
1145
  case "com.amazonaws.mediapackage#InternalServerErrorException":
1154
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1146
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1155
1147
  case "NotFoundException":
1156
1148
  case "com.amazonaws.mediapackage#NotFoundException":
1157
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1149
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1158
1150
  case "ServiceUnavailableException":
1159
1151
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
1160
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1152
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1161
1153
  case "TooManyRequestsException":
1162
1154
  case "com.amazonaws.mediapackage#TooManyRequestsException":
1163
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1155
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1164
1156
  case "UnprocessableEntityException":
1165
1157
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
1166
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1158
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1167
1159
  default:
1168
1160
  const parsedBody = parsedOutput.body;
1169
1161
  (0, smithy_client_1.throwDefaultError)({
@@ -1174,9 +1166,9 @@ const deserializeAws_restJson1ListHarvestJobsCommandError = async (output, conte
1174
1166
  });
1175
1167
  }
1176
1168
  };
1177
- const deserializeAws_restJson1ListOriginEndpointsCommand = async (output, context) => {
1169
+ const de_ListOriginEndpointsCommand = async (output, context) => {
1178
1170
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1179
- return deserializeAws_restJson1ListOriginEndpointsCommandError(output, context);
1171
+ return de_ListOriginEndpointsCommandError(output, context);
1180
1172
  }
1181
1173
  const contents = map({
1182
1174
  $metadata: deserializeMetadata(output),
@@ -1186,12 +1178,12 @@ const deserializeAws_restJson1ListOriginEndpointsCommand = async (output, contex
1186
1178
  contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
1187
1179
  }
1188
1180
  if (data.originEndpoints != null) {
1189
- contents.OriginEndpoints = deserializeAws_restJson1__listOfOriginEndpoint(data.originEndpoints, context);
1181
+ contents.OriginEndpoints = de___listOfOriginEndpoint(data.originEndpoints, context);
1190
1182
  }
1191
1183
  return contents;
1192
1184
  };
1193
- exports.deserializeAws_restJson1ListOriginEndpointsCommand = deserializeAws_restJson1ListOriginEndpointsCommand;
1194
- const deserializeAws_restJson1ListOriginEndpointsCommandError = async (output, context) => {
1185
+ exports.de_ListOriginEndpointsCommand = de_ListOriginEndpointsCommand;
1186
+ const de_ListOriginEndpointsCommandError = async (output, context) => {
1195
1187
  const parsedOutput = {
1196
1188
  ...output,
1197
1189
  body: await parseErrorBody(output.body, context),
@@ -1200,22 +1192,22 @@ const deserializeAws_restJson1ListOriginEndpointsCommandError = async (output, c
1200
1192
  switch (errorCode) {
1201
1193
  case "ForbiddenException":
1202
1194
  case "com.amazonaws.mediapackage#ForbiddenException":
1203
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1195
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1204
1196
  case "InternalServerErrorException":
1205
1197
  case "com.amazonaws.mediapackage#InternalServerErrorException":
1206
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1198
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1207
1199
  case "NotFoundException":
1208
1200
  case "com.amazonaws.mediapackage#NotFoundException":
1209
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1201
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1210
1202
  case "ServiceUnavailableException":
1211
1203
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
1212
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1204
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1213
1205
  case "TooManyRequestsException":
1214
1206
  case "com.amazonaws.mediapackage#TooManyRequestsException":
1215
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1207
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1216
1208
  case "UnprocessableEntityException":
1217
1209
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
1218
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1210
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1219
1211
  default:
1220
1212
  const parsedBody = parsedOutput.body;
1221
1213
  (0, smithy_client_1.throwDefaultError)({
@@ -1226,21 +1218,21 @@ const deserializeAws_restJson1ListOriginEndpointsCommandError = async (output, c
1226
1218
  });
1227
1219
  }
1228
1220
  };
1229
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
1221
+ const de_ListTagsForResourceCommand = async (output, context) => {
1230
1222
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1231
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
1223
+ return de_ListTagsForResourceCommandError(output, context);
1232
1224
  }
1233
1225
  const contents = map({
1234
1226
  $metadata: deserializeMetadata(output),
1235
1227
  });
1236
1228
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1237
1229
  if (data.tags != null) {
1238
- contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1230
+ contents.Tags = de___mapOf__string(data.tags, context);
1239
1231
  }
1240
1232
  return contents;
1241
1233
  };
1242
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
1243
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1234
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1235
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1244
1236
  const parsedOutput = {
1245
1237
  ...output,
1246
1238
  body: await parseErrorBody(output.body, context),
@@ -1254,9 +1246,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1254
1246
  errorCode,
1255
1247
  });
1256
1248
  };
1257
- const deserializeAws_restJson1RotateChannelCredentialsCommand = async (output, context) => {
1249
+ const de_RotateChannelCredentialsCommand = async (output, context) => {
1258
1250
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1259
- return deserializeAws_restJson1RotateChannelCredentialsCommandError(output, context);
1251
+ return de_RotateChannelCredentialsCommandError(output, context);
1260
1252
  }
1261
1253
  const contents = map({
1262
1254
  $metadata: deserializeMetadata(output),
@@ -1272,24 +1264,24 @@ const deserializeAws_restJson1RotateChannelCredentialsCommand = async (output, c
1272
1264
  contents.Description = (0, smithy_client_1.expectString)(data.description);
1273
1265
  }
1274
1266
  if (data.egressAccessLogs != null) {
1275
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
1267
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
1276
1268
  }
1277
1269
  if (data.hlsIngest != null) {
1278
- contents.HlsIngest = deserializeAws_restJson1HlsIngest(data.hlsIngest, context);
1270
+ contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
1279
1271
  }
1280
1272
  if (data.id != null) {
1281
1273
  contents.Id = (0, smithy_client_1.expectString)(data.id);
1282
1274
  }
1283
1275
  if (data.ingressAccessLogs != null) {
1284
- contents.IngressAccessLogs = deserializeAws_restJson1IngressAccessLogs(data.ingressAccessLogs, context);
1276
+ contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
1285
1277
  }
1286
1278
  if (data.tags != null) {
1287
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
1279
+ contents.Tags = de_Tags(data.tags, context);
1288
1280
  }
1289
1281
  return contents;
1290
1282
  };
1291
- exports.deserializeAws_restJson1RotateChannelCredentialsCommand = deserializeAws_restJson1RotateChannelCredentialsCommand;
1292
- const deserializeAws_restJson1RotateChannelCredentialsCommandError = async (output, context) => {
1283
+ exports.de_RotateChannelCredentialsCommand = de_RotateChannelCredentialsCommand;
1284
+ const de_RotateChannelCredentialsCommandError = async (output, context) => {
1293
1285
  const parsedOutput = {
1294
1286
  ...output,
1295
1287
  body: await parseErrorBody(output.body, context),
@@ -1298,22 +1290,22 @@ const deserializeAws_restJson1RotateChannelCredentialsCommandError = async (outp
1298
1290
  switch (errorCode) {
1299
1291
  case "ForbiddenException":
1300
1292
  case "com.amazonaws.mediapackage#ForbiddenException":
1301
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1293
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1302
1294
  case "InternalServerErrorException":
1303
1295
  case "com.amazonaws.mediapackage#InternalServerErrorException":
1304
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1296
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1305
1297
  case "NotFoundException":
1306
1298
  case "com.amazonaws.mediapackage#NotFoundException":
1307
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1299
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1308
1300
  case "ServiceUnavailableException":
1309
1301
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
1310
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1302
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1311
1303
  case "TooManyRequestsException":
1312
1304
  case "com.amazonaws.mediapackage#TooManyRequestsException":
1313
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1305
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1314
1306
  case "UnprocessableEntityException":
1315
1307
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
1316
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1308
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1317
1309
  default:
1318
1310
  const parsedBody = parsedOutput.body;
1319
1311
  (0, smithy_client_1.throwDefaultError)({
@@ -1324,9 +1316,9 @@ const deserializeAws_restJson1RotateChannelCredentialsCommandError = async (outp
1324
1316
  });
1325
1317
  }
1326
1318
  };
1327
- const deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = async (output, context) => {
1319
+ const de_RotateIngestEndpointCredentialsCommand = async (output, context) => {
1328
1320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1329
- return deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError(output, context);
1321
+ return de_RotateIngestEndpointCredentialsCommandError(output, context);
1330
1322
  }
1331
1323
  const contents = map({
1332
1324
  $metadata: deserializeMetadata(output),
@@ -1342,24 +1334,24 @@ const deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = async (ou
1342
1334
  contents.Description = (0, smithy_client_1.expectString)(data.description);
1343
1335
  }
1344
1336
  if (data.egressAccessLogs != null) {
1345
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
1337
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
1346
1338
  }
1347
1339
  if (data.hlsIngest != null) {
1348
- contents.HlsIngest = deserializeAws_restJson1HlsIngest(data.hlsIngest, context);
1340
+ contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
1349
1341
  }
1350
1342
  if (data.id != null) {
1351
1343
  contents.Id = (0, smithy_client_1.expectString)(data.id);
1352
1344
  }
1353
1345
  if (data.ingressAccessLogs != null) {
1354
- contents.IngressAccessLogs = deserializeAws_restJson1IngressAccessLogs(data.ingressAccessLogs, context);
1346
+ contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
1355
1347
  }
1356
1348
  if (data.tags != null) {
1357
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
1349
+ contents.Tags = de_Tags(data.tags, context);
1358
1350
  }
1359
1351
  return contents;
1360
1352
  };
1361
- exports.deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = deserializeAws_restJson1RotateIngestEndpointCredentialsCommand;
1362
- const deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError = async (output, context) => {
1353
+ exports.de_RotateIngestEndpointCredentialsCommand = de_RotateIngestEndpointCredentialsCommand;
1354
+ const de_RotateIngestEndpointCredentialsCommandError = async (output, context) => {
1363
1355
  const parsedOutput = {
1364
1356
  ...output,
1365
1357
  body: await parseErrorBody(output.body, context),
@@ -1368,22 +1360,22 @@ const deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError = asyn
1368
1360
  switch (errorCode) {
1369
1361
  case "ForbiddenException":
1370
1362
  case "com.amazonaws.mediapackage#ForbiddenException":
1371
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1363
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1372
1364
  case "InternalServerErrorException":
1373
1365
  case "com.amazonaws.mediapackage#InternalServerErrorException":
1374
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1366
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1375
1367
  case "NotFoundException":
1376
1368
  case "com.amazonaws.mediapackage#NotFoundException":
1377
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1369
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1378
1370
  case "ServiceUnavailableException":
1379
1371
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
1380
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1372
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1381
1373
  case "TooManyRequestsException":
1382
1374
  case "com.amazonaws.mediapackage#TooManyRequestsException":
1383
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1375
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1384
1376
  case "UnprocessableEntityException":
1385
1377
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
1386
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1378
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1387
1379
  default:
1388
1380
  const parsedBody = parsedOutput.body;
1389
1381
  (0, smithy_client_1.throwDefaultError)({
@@ -1394,9 +1386,9 @@ const deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError = asyn
1394
1386
  });
1395
1387
  }
1396
1388
  };
1397
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1389
+ const de_TagResourceCommand = async (output, context) => {
1398
1390
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1399
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1391
+ return de_TagResourceCommandError(output, context);
1400
1392
  }
1401
1393
  const contents = map({
1402
1394
  $metadata: deserializeMetadata(output),
@@ -1404,8 +1396,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1404
1396
  await collectBody(output.body, context);
1405
1397
  return contents;
1406
1398
  };
1407
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
1408
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1399
+ exports.de_TagResourceCommand = de_TagResourceCommand;
1400
+ const de_TagResourceCommandError = async (output, context) => {
1409
1401
  const parsedOutput = {
1410
1402
  ...output,
1411
1403
  body: await parseErrorBody(output.body, context),
@@ -1419,9 +1411,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1419
1411
  errorCode,
1420
1412
  });
1421
1413
  };
1422
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1414
+ const de_UntagResourceCommand = async (output, context) => {
1423
1415
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1424
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1416
+ return de_UntagResourceCommandError(output, context);
1425
1417
  }
1426
1418
  const contents = map({
1427
1419
  $metadata: deserializeMetadata(output),
@@ -1429,8 +1421,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
1429
1421
  await collectBody(output.body, context);
1430
1422
  return contents;
1431
1423
  };
1432
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
1433
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1424
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
1425
+ const de_UntagResourceCommandError = async (output, context) => {
1434
1426
  const parsedOutput = {
1435
1427
  ...output,
1436
1428
  body: await parseErrorBody(output.body, context),
@@ -1444,9 +1436,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1444
1436
  errorCode,
1445
1437
  });
1446
1438
  };
1447
- const deserializeAws_restJson1UpdateChannelCommand = async (output, context) => {
1439
+ const de_UpdateChannelCommand = async (output, context) => {
1448
1440
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1449
- return deserializeAws_restJson1UpdateChannelCommandError(output, context);
1441
+ return de_UpdateChannelCommandError(output, context);
1450
1442
  }
1451
1443
  const contents = map({
1452
1444
  $metadata: deserializeMetadata(output),
@@ -1462,24 +1454,24 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
1462
1454
  contents.Description = (0, smithy_client_1.expectString)(data.description);
1463
1455
  }
1464
1456
  if (data.egressAccessLogs != null) {
1465
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
1457
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
1466
1458
  }
1467
1459
  if (data.hlsIngest != null) {
1468
- contents.HlsIngest = deserializeAws_restJson1HlsIngest(data.hlsIngest, context);
1460
+ contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
1469
1461
  }
1470
1462
  if (data.id != null) {
1471
1463
  contents.Id = (0, smithy_client_1.expectString)(data.id);
1472
1464
  }
1473
1465
  if (data.ingressAccessLogs != null) {
1474
- contents.IngressAccessLogs = deserializeAws_restJson1IngressAccessLogs(data.ingressAccessLogs, context);
1466
+ contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
1475
1467
  }
1476
1468
  if (data.tags != null) {
1477
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
1469
+ contents.Tags = de_Tags(data.tags, context);
1478
1470
  }
1479
1471
  return contents;
1480
1472
  };
1481
- exports.deserializeAws_restJson1UpdateChannelCommand = deserializeAws_restJson1UpdateChannelCommand;
1482
- const deserializeAws_restJson1UpdateChannelCommandError = async (output, context) => {
1473
+ exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
1474
+ const de_UpdateChannelCommandError = async (output, context) => {
1483
1475
  const parsedOutput = {
1484
1476
  ...output,
1485
1477
  body: await parseErrorBody(output.body, context),
@@ -1488,22 +1480,22 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
1488
1480
  switch (errorCode) {
1489
1481
  case "ForbiddenException":
1490
1482
  case "com.amazonaws.mediapackage#ForbiddenException":
1491
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1483
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1492
1484
  case "InternalServerErrorException":
1493
1485
  case "com.amazonaws.mediapackage#InternalServerErrorException":
1494
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1486
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1495
1487
  case "NotFoundException":
1496
1488
  case "com.amazonaws.mediapackage#NotFoundException":
1497
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1489
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1498
1490
  case "ServiceUnavailableException":
1499
1491
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
1500
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1492
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1501
1493
  case "TooManyRequestsException":
1502
1494
  case "com.amazonaws.mediapackage#TooManyRequestsException":
1503
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1495
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1504
1496
  case "UnprocessableEntityException":
1505
1497
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
1506
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1498
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1507
1499
  default:
1508
1500
  const parsedBody = parsedOutput.body;
1509
1501
  (0, smithy_client_1.throwDefaultError)({
@@ -1514,9 +1506,9 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
1514
1506
  });
1515
1507
  }
1516
1508
  };
1517
- const deserializeAws_restJson1UpdateOriginEndpointCommand = async (output, context) => {
1509
+ const de_UpdateOriginEndpointCommand = async (output, context) => {
1518
1510
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1519
- return deserializeAws_restJson1UpdateOriginEndpointCommandError(output, context);
1511
+ return de_UpdateOriginEndpointCommandError(output, context);
1520
1512
  }
1521
1513
  const contents = map({
1522
1514
  $metadata: deserializeMetadata(output),
@@ -1526,25 +1518,25 @@ const deserializeAws_restJson1UpdateOriginEndpointCommand = async (output, conte
1526
1518
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
1527
1519
  }
1528
1520
  if (data.authorization != null) {
1529
- contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
1521
+ contents.Authorization = de_Authorization(data.authorization, context);
1530
1522
  }
1531
1523
  if (data.channelId != null) {
1532
1524
  contents.ChannelId = (0, smithy_client_1.expectString)(data.channelId);
1533
1525
  }
1534
1526
  if (data.cmafPackage != null) {
1535
- contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
1527
+ contents.CmafPackage = de_CmafPackage(data.cmafPackage, context);
1536
1528
  }
1537
1529
  if (data.createdAt != null) {
1538
1530
  contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
1539
1531
  }
1540
1532
  if (data.dashPackage != null) {
1541
- contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
1533
+ contents.DashPackage = de_DashPackage(data.dashPackage, context);
1542
1534
  }
1543
1535
  if (data.description != null) {
1544
1536
  contents.Description = (0, smithy_client_1.expectString)(data.description);
1545
1537
  }
1546
1538
  if (data.hlsPackage != null) {
1547
- contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
1539
+ contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
1548
1540
  }
1549
1541
  if (data.id != null) {
1550
1542
  contents.Id = (0, smithy_client_1.expectString)(data.id);
@@ -1553,7 +1545,7 @@ const deserializeAws_restJson1UpdateOriginEndpointCommand = async (output, conte
1553
1545
  contents.ManifestName = (0, smithy_client_1.expectString)(data.manifestName);
1554
1546
  }
1555
1547
  if (data.mssPackage != null) {
1556
- contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
1548
+ contents.MssPackage = de_MssPackage(data.mssPackage, context);
1557
1549
  }
1558
1550
  if (data.origination != null) {
1559
1551
  contents.Origination = (0, smithy_client_1.expectString)(data.origination);
@@ -1562,7 +1554,7 @@ const deserializeAws_restJson1UpdateOriginEndpointCommand = async (output, conte
1562
1554
  contents.StartoverWindowSeconds = (0, smithy_client_1.expectInt32)(data.startoverWindowSeconds);
1563
1555
  }
1564
1556
  if (data.tags != null) {
1565
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
1557
+ contents.Tags = de_Tags(data.tags, context);
1566
1558
  }
1567
1559
  if (data.timeDelaySeconds != null) {
1568
1560
  contents.TimeDelaySeconds = (0, smithy_client_1.expectInt32)(data.timeDelaySeconds);
@@ -1571,12 +1563,12 @@ const deserializeAws_restJson1UpdateOriginEndpointCommand = async (output, conte
1571
1563
  contents.Url = (0, smithy_client_1.expectString)(data.url);
1572
1564
  }
1573
1565
  if (data.whitelist != null) {
1574
- contents.Whitelist = deserializeAws_restJson1__listOf__string(data.whitelist, context);
1566
+ contents.Whitelist = de___listOf__string(data.whitelist, context);
1575
1567
  }
1576
1568
  return contents;
1577
1569
  };
1578
- exports.deserializeAws_restJson1UpdateOriginEndpointCommand = deserializeAws_restJson1UpdateOriginEndpointCommand;
1579
- const deserializeAws_restJson1UpdateOriginEndpointCommandError = async (output, context) => {
1570
+ exports.de_UpdateOriginEndpointCommand = de_UpdateOriginEndpointCommand;
1571
+ const de_UpdateOriginEndpointCommandError = async (output, context) => {
1580
1572
  const parsedOutput = {
1581
1573
  ...output,
1582
1574
  body: await parseErrorBody(output.body, context),
@@ -1585,22 +1577,22 @@ const deserializeAws_restJson1UpdateOriginEndpointCommandError = async (output,
1585
1577
  switch (errorCode) {
1586
1578
  case "ForbiddenException":
1587
1579
  case "com.amazonaws.mediapackage#ForbiddenException":
1588
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1580
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1589
1581
  case "InternalServerErrorException":
1590
1582
  case "com.amazonaws.mediapackage#InternalServerErrorException":
1591
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1583
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1592
1584
  case "NotFoundException":
1593
1585
  case "com.amazonaws.mediapackage#NotFoundException":
1594
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1586
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1595
1587
  case "ServiceUnavailableException":
1596
1588
  case "com.amazonaws.mediapackage#ServiceUnavailableException":
1597
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1589
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1598
1590
  case "TooManyRequestsException":
1599
1591
  case "com.amazonaws.mediapackage#TooManyRequestsException":
1600
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1592
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1601
1593
  case "UnprocessableEntityException":
1602
1594
  case "com.amazonaws.mediapackage#UnprocessableEntityException":
1603
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1595
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1604
1596
  default:
1605
1597
  const parsedBody = parsedOutput.body;
1606
1598
  (0, smithy_client_1.throwDefaultError)({
@@ -1612,7 +1604,7 @@ const deserializeAws_restJson1UpdateOriginEndpointCommandError = async (output,
1612
1604
  }
1613
1605
  };
1614
1606
  const map = smithy_client_1.map;
1615
- const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
1607
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1616
1608
  const contents = map({});
1617
1609
  const data = parsedOutput.body;
1618
1610
  if (data.message != null) {
@@ -1624,7 +1616,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
1624
1616
  });
1625
1617
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1626
1618
  };
1627
- const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
1619
+ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
1628
1620
  const contents = map({});
1629
1621
  const data = parsedOutput.body;
1630
1622
  if (data.message != null) {
@@ -1636,7 +1628,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
1636
1628
  });
1637
1629
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1638
1630
  };
1639
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
1631
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1640
1632
  const contents = map({});
1641
1633
  const data = parsedOutput.body;
1642
1634
  if (data.message != null) {
@@ -1648,7 +1640,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
1648
1640
  });
1649
1641
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1650
1642
  };
1651
- const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
1643
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1652
1644
  const contents = map({});
1653
1645
  const data = parsedOutput.body;
1654
1646
  if (data.message != null) {
@@ -1660,7 +1652,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
1660
1652
  });
1661
1653
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1662
1654
  };
1663
- const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
1655
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1664
1656
  const contents = map({});
1665
1657
  const data = parsedOutput.body;
1666
1658
  if (data.message != null) {
@@ -1672,7 +1664,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
1672
1664
  });
1673
1665
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1674
1666
  };
1675
- const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
1667
+ const de_UnprocessableEntityExceptionRes = async (parsedOutput, context) => {
1676
1668
  const contents = map({});
1677
1669
  const data = parsedOutput.body;
1678
1670
  if (data.message != null) {
@@ -1684,28 +1676,28 @@ const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (pars
1684
1676
  });
1685
1677
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1686
1678
  };
1687
- const serializeAws_restJson1__listOf__PeriodTriggersElement = (input, context) => {
1679
+ const se___listOf__PeriodTriggersElement = (input, context) => {
1688
1680
  return input
1689
1681
  .filter((e) => e != null)
1690
1682
  .map((entry) => {
1691
1683
  return entry;
1692
1684
  });
1693
1685
  };
1694
- const serializeAws_restJson1__listOf__string = (input, context) => {
1686
+ const se___listOf__string = (input, context) => {
1695
1687
  return input
1696
1688
  .filter((e) => e != null)
1697
1689
  .map((entry) => {
1698
1690
  return entry;
1699
1691
  });
1700
1692
  };
1701
- const serializeAws_restJson1__listOfHlsManifestCreateOrUpdateParameters = (input, context) => {
1693
+ const se___listOfHlsManifestCreateOrUpdateParameters = (input, context) => {
1702
1694
  return input
1703
1695
  .filter((e) => e != null)
1704
1696
  .map((entry) => {
1705
- return serializeAws_restJson1HlsManifestCreateOrUpdateParameters(entry, context);
1697
+ return se_HlsManifestCreateOrUpdateParameters(entry, context);
1706
1698
  });
1707
1699
  };
1708
- const serializeAws_restJson1__mapOf__string = (input, context) => {
1700
+ const se___mapOf__string = (input, context) => {
1709
1701
  return Object.entries(input).reduce((acc, [key, value]) => {
1710
1702
  if (value === null) {
1711
1703
  return acc;
@@ -1714,71 +1706,63 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
1714
1706
  return acc;
1715
1707
  }, {});
1716
1708
  };
1717
- const serializeAws_restJson1AdTriggers = (input, context) => {
1709
+ const se_AdTriggers = (input, context) => {
1718
1710
  return input
1719
1711
  .filter((e) => e != null)
1720
1712
  .map((entry) => {
1721
1713
  return entry;
1722
1714
  });
1723
1715
  };
1724
- const serializeAws_restJson1Authorization = (input, context) => {
1716
+ const se_Authorization = (input, context) => {
1725
1717
  return {
1726
1718
  ...(input.CdnIdentifierSecret != null && { cdnIdentifierSecret: input.CdnIdentifierSecret }),
1727
1719
  ...(input.SecretsRoleArn != null && { secretsRoleArn: input.SecretsRoleArn }),
1728
1720
  };
1729
1721
  };
1730
- const serializeAws_restJson1CmafEncryption = (input, context) => {
1722
+ const se_CmafEncryption = (input, context) => {
1731
1723
  return {
1732
1724
  ...(input.ConstantInitializationVector != null && {
1733
1725
  constantInitializationVector: input.ConstantInitializationVector,
1734
1726
  }),
1735
1727
  ...(input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod }),
1736
1728
  ...(input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
1737
- ...(input.SpekeKeyProvider != null && {
1738
- spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1739
- }),
1729
+ ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1740
1730
  };
1741
1731
  };
1742
- const serializeAws_restJson1CmafPackageCreateOrUpdateParameters = (input, context) => {
1732
+ const se_CmafPackageCreateOrUpdateParameters = (input, context) => {
1743
1733
  return {
1744
- ...(input.Encryption != null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) }),
1734
+ ...(input.Encryption != null && { encryption: se_CmafEncryption(input.Encryption, context) }),
1745
1735
  ...(input.HlsManifests != null && {
1746
- hlsManifests: serializeAws_restJson1__listOfHlsManifestCreateOrUpdateParameters(input.HlsManifests, context),
1736
+ hlsManifests: se___listOfHlsManifestCreateOrUpdateParameters(input.HlsManifests, context),
1747
1737
  }),
1748
1738
  ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1749
1739
  ...(input.SegmentPrefix != null && { segmentPrefix: input.SegmentPrefix }),
1750
- ...(input.StreamSelection != null && {
1751
- streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1752
- }),
1740
+ ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1753
1741
  };
1754
1742
  };
1755
- const serializeAws_restJson1DashEncryption = (input, context) => {
1743
+ const se_DashEncryption = (input, context) => {
1756
1744
  return {
1757
1745
  ...(input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
1758
- ...(input.SpekeKeyProvider != null && {
1759
- spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1760
- }),
1746
+ ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1761
1747
  };
1762
1748
  };
1763
- const serializeAws_restJson1DashPackage = (input, context) => {
1749
+ const se_DashPackage = (input, context) => {
1764
1750
  return {
1765
- ...(input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
1751
+ ...(input.AdTriggers != null && { adTriggers: se_AdTriggers(input.AdTriggers, context) }),
1766
1752
  ...(input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
1767
- ...(input.Encryption != null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) }),
1753
+ ...(input.Encryption != null && { encryption: se_DashEncryption(input.Encryption, context) }),
1768
1754
  ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
1769
1755
  ...(input.ManifestLayout != null && { manifestLayout: input.ManifestLayout }),
1770
1756
  ...(input.ManifestWindowSeconds != null && { manifestWindowSeconds: input.ManifestWindowSeconds }),
1771
1757
  ...(input.MinBufferTimeSeconds != null && { minBufferTimeSeconds: input.MinBufferTimeSeconds }),
1772
1758
  ...(input.MinUpdatePeriodSeconds != null && { minUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
1773
1759
  ...(input.PeriodTriggers != null && {
1774
- periodTriggers: serializeAws_restJson1__listOf__PeriodTriggersElement(input.PeriodTriggers, context),
1760
+ periodTriggers: se___listOf__PeriodTriggersElement(input.PeriodTriggers, context),
1775
1761
  }),
1776
1762
  ...(input.Profile != null && { profile: input.Profile }),
1777
1763
  ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1778
1764
  ...(input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat }),
1779
- ...(input.StreamSelection != null && {
1780
- streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1781
- }),
1765
+ ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1782
1766
  ...(input.SuggestedPresentationDelaySeconds != null && {
1783
1767
  suggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
1784
1768
  }),
@@ -1786,18 +1770,18 @@ const serializeAws_restJson1DashPackage = (input, context) => {
1786
1770
  ...(input.UtcTimingUri != null && { utcTimingUri: input.UtcTimingUri }),
1787
1771
  };
1788
1772
  };
1789
- const serializeAws_restJson1EgressAccessLogs = (input, context) => {
1773
+ const se_EgressAccessLogs = (input, context) => {
1790
1774
  return {
1791
1775
  ...(input.LogGroupName != null && { logGroupName: input.LogGroupName }),
1792
1776
  };
1793
1777
  };
1794
- const serializeAws_restJson1EncryptionContractConfiguration = (input, context) => {
1778
+ const se_EncryptionContractConfiguration = (input, context) => {
1795
1779
  return {
1796
1780
  ...(input.PresetSpeke20Audio != null && { presetSpeke20Audio: input.PresetSpeke20Audio }),
1797
1781
  ...(input.PresetSpeke20Video != null && { presetSpeke20Video: input.PresetSpeke20Video }),
1798
1782
  };
1799
1783
  };
1800
- const serializeAws_restJson1HlsEncryption = (input, context) => {
1784
+ const se_HlsEncryption = (input, context) => {
1801
1785
  return {
1802
1786
  ...(input.ConstantInitializationVector != null && {
1803
1787
  constantInitializationVector: input.ConstantInitializationVector,
@@ -1805,15 +1789,13 @@ const serializeAws_restJson1HlsEncryption = (input, context) => {
1805
1789
  ...(input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod }),
1806
1790
  ...(input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
1807
1791
  ...(input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey }),
1808
- ...(input.SpekeKeyProvider != null && {
1809
- spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1810
- }),
1792
+ ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1811
1793
  };
1812
1794
  };
1813
- const serializeAws_restJson1HlsManifestCreateOrUpdateParameters = (input, context) => {
1795
+ const se_HlsManifestCreateOrUpdateParameters = (input, context) => {
1814
1796
  return {
1815
1797
  ...(input.AdMarkers != null && { adMarkers: input.AdMarkers }),
1816
- ...(input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
1798
+ ...(input.AdTriggers != null && { adTriggers: se_AdTriggers(input.AdTriggers, context) }),
1817
1799
  ...(input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
1818
1800
  ...(input.Id != null && { id: input.Id }),
1819
1801
  ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
@@ -1825,12 +1807,12 @@ const serializeAws_restJson1HlsManifestCreateOrUpdateParameters = (input, contex
1825
1807
  }),
1826
1808
  };
1827
1809
  };
1828
- const serializeAws_restJson1HlsPackage = (input, context) => {
1810
+ const se_HlsPackage = (input, context) => {
1829
1811
  return {
1830
1812
  ...(input.AdMarkers != null && { adMarkers: input.AdMarkers }),
1831
- ...(input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
1813
+ ...(input.AdTriggers != null && { adTriggers: se_AdTriggers(input.AdTriggers, context) }),
1832
1814
  ...(input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
1833
- ...(input.Encryption != null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) }),
1815
+ ...(input.Encryption != null && { encryption: se_HlsEncryption(input.Encryption, context) }),
1834
1816
  ...(input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles }),
1835
1817
  ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
1836
1818
  ...(input.PlaylistType != null && { playlistType: input.PlaylistType }),
@@ -1839,61 +1821,55 @@ const serializeAws_restJson1HlsPackage = (input, context) => {
1839
1821
  programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
1840
1822
  }),
1841
1823
  ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1842
- ...(input.StreamSelection != null && {
1843
- streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1844
- }),
1824
+ ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1845
1825
  ...(input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
1846
1826
  };
1847
1827
  };
1848
- const serializeAws_restJson1IngressAccessLogs = (input, context) => {
1828
+ const se_IngressAccessLogs = (input, context) => {
1849
1829
  return {
1850
1830
  ...(input.LogGroupName != null && { logGroupName: input.LogGroupName }),
1851
1831
  };
1852
1832
  };
1853
- const serializeAws_restJson1MssEncryption = (input, context) => {
1833
+ const se_MssEncryption = (input, context) => {
1854
1834
  return {
1855
- ...(input.SpekeKeyProvider != null && {
1856
- spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1857
- }),
1835
+ ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1858
1836
  };
1859
1837
  };
1860
- const serializeAws_restJson1MssPackage = (input, context) => {
1838
+ const se_MssPackage = (input, context) => {
1861
1839
  return {
1862
- ...(input.Encryption != null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) }),
1840
+ ...(input.Encryption != null && { encryption: se_MssEncryption(input.Encryption, context) }),
1863
1841
  ...(input.ManifestWindowSeconds != null && { manifestWindowSeconds: input.ManifestWindowSeconds }),
1864
1842
  ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1865
- ...(input.StreamSelection != null && {
1866
- streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1867
- }),
1843
+ ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1868
1844
  };
1869
1845
  };
1870
- const serializeAws_restJson1S3Destination = (input, context) => {
1846
+ const se_S3Destination = (input, context) => {
1871
1847
  return {
1872
1848
  ...(input.BucketName != null && { bucketName: input.BucketName }),
1873
1849
  ...(input.ManifestKey != null && { manifestKey: input.ManifestKey }),
1874
1850
  ...(input.RoleArn != null && { roleArn: input.RoleArn }),
1875
1851
  };
1876
1852
  };
1877
- const serializeAws_restJson1SpekeKeyProvider = (input, context) => {
1853
+ const se_SpekeKeyProvider = (input, context) => {
1878
1854
  return {
1879
1855
  ...(input.CertificateArn != null && { certificateArn: input.CertificateArn }),
1880
1856
  ...(input.EncryptionContractConfiguration != null && {
1881
- encryptionContractConfiguration: serializeAws_restJson1EncryptionContractConfiguration(input.EncryptionContractConfiguration, context),
1857
+ encryptionContractConfiguration: se_EncryptionContractConfiguration(input.EncryptionContractConfiguration, context),
1882
1858
  }),
1883
1859
  ...(input.ResourceId != null && { resourceId: input.ResourceId }),
1884
1860
  ...(input.RoleArn != null && { roleArn: input.RoleArn }),
1885
- ...(input.SystemIds != null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) }),
1861
+ ...(input.SystemIds != null && { systemIds: se___listOf__string(input.SystemIds, context) }),
1886
1862
  ...(input.Url != null && { url: input.Url }),
1887
1863
  };
1888
1864
  };
1889
- const serializeAws_restJson1StreamSelection = (input, context) => {
1865
+ const se_StreamSelection = (input, context) => {
1890
1866
  return {
1891
1867
  ...(input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
1892
1868
  ...(input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
1893
1869
  ...(input.StreamOrder != null && { streamOrder: input.StreamOrder }),
1894
1870
  };
1895
1871
  };
1896
- const serializeAws_restJson1Tags = (input, context) => {
1872
+ const se_Tags = (input, context) => {
1897
1873
  return Object.entries(input).reduce((acc, [key, value]) => {
1898
1874
  if (value === null) {
1899
1875
  return acc;
@@ -1902,7 +1878,7 @@ const serializeAws_restJson1Tags = (input, context) => {
1902
1878
  return acc;
1903
1879
  }, {});
1904
1880
  };
1905
- const deserializeAws_restJson1__listOf__PeriodTriggersElement = (output, context) => {
1881
+ const de___listOf__PeriodTriggersElement = (output, context) => {
1906
1882
  const retVal = (output || [])
1907
1883
  .filter((e) => e != null)
1908
1884
  .map((entry) => {
@@ -1913,7 +1889,7 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = (output, context
1913
1889
  });
1914
1890
  return retVal;
1915
1891
  };
1916
- const deserializeAws_restJson1__listOf__string = (output, context) => {
1892
+ const de___listOf__string = (output, context) => {
1917
1893
  const retVal = (output || [])
1918
1894
  .filter((e) => e != null)
1919
1895
  .map((entry) => {
@@ -1924,62 +1900,62 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
1924
1900
  });
1925
1901
  return retVal;
1926
1902
  };
1927
- const deserializeAws_restJson1__listOfChannel = (output, context) => {
1903
+ const de___listOfChannel = (output, context) => {
1928
1904
  const retVal = (output || [])
1929
1905
  .filter((e) => e != null)
1930
1906
  .map((entry) => {
1931
1907
  if (entry === null) {
1932
1908
  return null;
1933
1909
  }
1934
- return deserializeAws_restJson1Channel(entry, context);
1910
+ return de_Channel(entry, context);
1935
1911
  });
1936
1912
  return retVal;
1937
1913
  };
1938
- const deserializeAws_restJson1__listOfHarvestJob = (output, context) => {
1914
+ const de___listOfHarvestJob = (output, context) => {
1939
1915
  const retVal = (output || [])
1940
1916
  .filter((e) => e != null)
1941
1917
  .map((entry) => {
1942
1918
  if (entry === null) {
1943
1919
  return null;
1944
1920
  }
1945
- return deserializeAws_restJson1HarvestJob(entry, context);
1921
+ return de_HarvestJob(entry, context);
1946
1922
  });
1947
1923
  return retVal;
1948
1924
  };
1949
- const deserializeAws_restJson1__listOfHlsManifest = (output, context) => {
1925
+ const de___listOfHlsManifest = (output, context) => {
1950
1926
  const retVal = (output || [])
1951
1927
  .filter((e) => e != null)
1952
1928
  .map((entry) => {
1953
1929
  if (entry === null) {
1954
1930
  return null;
1955
1931
  }
1956
- return deserializeAws_restJson1HlsManifest(entry, context);
1932
+ return de_HlsManifest(entry, context);
1957
1933
  });
1958
1934
  return retVal;
1959
1935
  };
1960
- const deserializeAws_restJson1__listOfIngestEndpoint = (output, context) => {
1936
+ const de___listOfIngestEndpoint = (output, context) => {
1961
1937
  const retVal = (output || [])
1962
1938
  .filter((e) => e != null)
1963
1939
  .map((entry) => {
1964
1940
  if (entry === null) {
1965
1941
  return null;
1966
1942
  }
1967
- return deserializeAws_restJson1IngestEndpoint(entry, context);
1943
+ return de_IngestEndpoint(entry, context);
1968
1944
  });
1969
1945
  return retVal;
1970
1946
  };
1971
- const deserializeAws_restJson1__listOfOriginEndpoint = (output, context) => {
1947
+ const de___listOfOriginEndpoint = (output, context) => {
1972
1948
  const retVal = (output || [])
1973
1949
  .filter((e) => e != null)
1974
1950
  .map((entry) => {
1975
1951
  if (entry === null) {
1976
1952
  return null;
1977
1953
  }
1978
- return deserializeAws_restJson1OriginEndpoint(entry, context);
1954
+ return de_OriginEndpoint(entry, context);
1979
1955
  });
1980
1956
  return retVal;
1981
1957
  };
1982
- const deserializeAws_restJson1__mapOf__string = (output, context) => {
1958
+ const de___mapOf__string = (output, context) => {
1983
1959
  return Object.entries(output).reduce((acc, [key, value]) => {
1984
1960
  if (value === null) {
1985
1961
  return acc;
@@ -1988,7 +1964,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
1988
1964
  return acc;
1989
1965
  }, {});
1990
1966
  };
1991
- const deserializeAws_restJson1AdTriggers = (output, context) => {
1967
+ const de_AdTriggers = (output, context) => {
1992
1968
  const retVal = (output || [])
1993
1969
  .filter((e) => e != null)
1994
1970
  .map((entry) => {
@@ -1999,95 +1975,79 @@ const deserializeAws_restJson1AdTriggers = (output, context) => {
1999
1975
  });
2000
1976
  return retVal;
2001
1977
  };
2002
- const deserializeAws_restJson1Authorization = (output, context) => {
1978
+ const de_Authorization = (output, context) => {
2003
1979
  return {
2004
1980
  CdnIdentifierSecret: (0, smithy_client_1.expectString)(output.cdnIdentifierSecret),
2005
1981
  SecretsRoleArn: (0, smithy_client_1.expectString)(output.secretsRoleArn),
2006
1982
  };
2007
1983
  };
2008
- const deserializeAws_restJson1Channel = (output, context) => {
1984
+ const de_Channel = (output, context) => {
2009
1985
  return {
2010
1986
  Arn: (0, smithy_client_1.expectString)(output.arn),
2011
1987
  CreatedAt: (0, smithy_client_1.expectString)(output.createdAt),
2012
1988
  Description: (0, smithy_client_1.expectString)(output.description),
2013
- EgressAccessLogs: output.egressAccessLogs != null
2014
- ? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
2015
- : undefined,
2016
- HlsIngest: output.hlsIngest != null ? deserializeAws_restJson1HlsIngest(output.hlsIngest, context) : undefined,
1989
+ EgressAccessLogs: output.egressAccessLogs != null ? de_EgressAccessLogs(output.egressAccessLogs, context) : undefined,
1990
+ HlsIngest: output.hlsIngest != null ? de_HlsIngest(output.hlsIngest, context) : undefined,
2017
1991
  Id: (0, smithy_client_1.expectString)(output.id),
2018
- IngressAccessLogs: output.ingressAccessLogs != null
2019
- ? deserializeAws_restJson1IngressAccessLogs(output.ingressAccessLogs, context)
2020
- : undefined,
2021
- Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1992
+ IngressAccessLogs: output.ingressAccessLogs != null ? de_IngressAccessLogs(output.ingressAccessLogs, context) : undefined,
1993
+ Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2022
1994
  };
2023
1995
  };
2024
- const deserializeAws_restJson1CmafEncryption = (output, context) => {
1996
+ const de_CmafEncryption = (output, context) => {
2025
1997
  return {
2026
1998
  ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
2027
1999
  EncryptionMethod: (0, smithy_client_1.expectString)(output.encryptionMethod),
2028
2000
  KeyRotationIntervalSeconds: (0, smithy_client_1.expectInt32)(output.keyRotationIntervalSeconds),
2029
- SpekeKeyProvider: output.spekeKeyProvider != null
2030
- ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2031
- : undefined,
2001
+ SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
2032
2002
  };
2033
2003
  };
2034
- const deserializeAws_restJson1CmafPackage = (output, context) => {
2004
+ const de_CmafPackage = (output, context) => {
2035
2005
  return {
2036
- Encryption: output.encryption != null ? deserializeAws_restJson1CmafEncryption(output.encryption, context) : undefined,
2037
- HlsManifests: output.hlsManifests != null
2038
- ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2039
- : undefined,
2006
+ Encryption: output.encryption != null ? de_CmafEncryption(output.encryption, context) : undefined,
2007
+ HlsManifests: output.hlsManifests != null ? de___listOfHlsManifest(output.hlsManifests, context) : undefined,
2040
2008
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
2041
2009
  SegmentPrefix: (0, smithy_client_1.expectString)(output.segmentPrefix),
2042
- StreamSelection: output.streamSelection != null
2043
- ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2044
- : undefined,
2010
+ StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
2045
2011
  };
2046
2012
  };
2047
- const deserializeAws_restJson1DashEncryption = (output, context) => {
2013
+ const de_DashEncryption = (output, context) => {
2048
2014
  return {
2049
2015
  KeyRotationIntervalSeconds: (0, smithy_client_1.expectInt32)(output.keyRotationIntervalSeconds),
2050
- SpekeKeyProvider: output.spekeKeyProvider != null
2051
- ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2052
- : undefined,
2016
+ SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
2053
2017
  };
2054
2018
  };
2055
- const deserializeAws_restJson1DashPackage = (output, context) => {
2019
+ const de_DashPackage = (output, context) => {
2056
2020
  return {
2057
- AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
2021
+ AdTriggers: output.adTriggers != null ? de_AdTriggers(output.adTriggers, context) : undefined,
2058
2022
  AdsOnDeliveryRestrictions: (0, smithy_client_1.expectString)(output.adsOnDeliveryRestrictions),
2059
- Encryption: output.encryption != null ? deserializeAws_restJson1DashEncryption(output.encryption, context) : undefined,
2023
+ Encryption: output.encryption != null ? de_DashEncryption(output.encryption, context) : undefined,
2060
2024
  IncludeIframeOnlyStream: (0, smithy_client_1.expectBoolean)(output.includeIframeOnlyStream),
2061
2025
  ManifestLayout: (0, smithy_client_1.expectString)(output.manifestLayout),
2062
2026
  ManifestWindowSeconds: (0, smithy_client_1.expectInt32)(output.manifestWindowSeconds),
2063
2027
  MinBufferTimeSeconds: (0, smithy_client_1.expectInt32)(output.minBufferTimeSeconds),
2064
2028
  MinUpdatePeriodSeconds: (0, smithy_client_1.expectInt32)(output.minUpdatePeriodSeconds),
2065
- PeriodTriggers: output.periodTriggers != null
2066
- ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
2067
- : undefined,
2029
+ PeriodTriggers: output.periodTriggers != null ? de___listOf__PeriodTriggersElement(output.periodTriggers, context) : undefined,
2068
2030
  Profile: (0, smithy_client_1.expectString)(output.profile),
2069
2031
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
2070
2032
  SegmentTemplateFormat: (0, smithy_client_1.expectString)(output.segmentTemplateFormat),
2071
- StreamSelection: output.streamSelection != null
2072
- ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2073
- : undefined,
2033
+ StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
2074
2034
  SuggestedPresentationDelaySeconds: (0, smithy_client_1.expectInt32)(output.suggestedPresentationDelaySeconds),
2075
2035
  UtcTiming: (0, smithy_client_1.expectString)(output.utcTiming),
2076
2036
  UtcTimingUri: (0, smithy_client_1.expectString)(output.utcTimingUri),
2077
2037
  };
2078
2038
  };
2079
- const deserializeAws_restJson1EgressAccessLogs = (output, context) => {
2039
+ const de_EgressAccessLogs = (output, context) => {
2080
2040
  return {
2081
2041
  LogGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
2082
2042
  };
2083
2043
  };
2084
- const deserializeAws_restJson1EncryptionContractConfiguration = (output, context) => {
2044
+ const de_EncryptionContractConfiguration = (output, context) => {
2085
2045
  return {
2086
2046
  PresetSpeke20Audio: (0, smithy_client_1.expectString)(output.presetSpeke20Audio),
2087
2047
  PresetSpeke20Video: (0, smithy_client_1.expectString)(output.presetSpeke20Video),
2088
2048
  };
2089
2049
  };
2090
- const deserializeAws_restJson1HarvestJob = (output, context) => {
2050
+ const de_HarvestJob = (output, context) => {
2091
2051
  return {
2092
2052
  Arn: (0, smithy_client_1.expectString)(output.arn),
2093
2053
  ChannelId: (0, smithy_client_1.expectString)(output.channelId),
@@ -2095,33 +2055,29 @@ const deserializeAws_restJson1HarvestJob = (output, context) => {
2095
2055
  EndTime: (0, smithy_client_1.expectString)(output.endTime),
2096
2056
  Id: (0, smithy_client_1.expectString)(output.id),
2097
2057
  OriginEndpointId: (0, smithy_client_1.expectString)(output.originEndpointId),
2098
- S3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
2058
+ S3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
2099
2059
  StartTime: (0, smithy_client_1.expectString)(output.startTime),
2100
2060
  Status: (0, smithy_client_1.expectString)(output.status),
2101
2061
  };
2102
2062
  };
2103
- const deserializeAws_restJson1HlsEncryption = (output, context) => {
2063
+ const de_HlsEncryption = (output, context) => {
2104
2064
  return {
2105
2065
  ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
2106
2066
  EncryptionMethod: (0, smithy_client_1.expectString)(output.encryptionMethod),
2107
2067
  KeyRotationIntervalSeconds: (0, smithy_client_1.expectInt32)(output.keyRotationIntervalSeconds),
2108
2068
  RepeatExtXKey: (0, smithy_client_1.expectBoolean)(output.repeatExtXKey),
2109
- SpekeKeyProvider: output.spekeKeyProvider != null
2110
- ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2111
- : undefined,
2069
+ SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
2112
2070
  };
2113
2071
  };
2114
- const deserializeAws_restJson1HlsIngest = (output, context) => {
2072
+ const de_HlsIngest = (output, context) => {
2115
2073
  return {
2116
- IngestEndpoints: output.ingestEndpoints != null
2117
- ? deserializeAws_restJson1__listOfIngestEndpoint(output.ingestEndpoints, context)
2118
- : undefined,
2074
+ IngestEndpoints: output.ingestEndpoints != null ? de___listOfIngestEndpoint(output.ingestEndpoints, context) : undefined,
2119
2075
  };
2120
2076
  };
2121
- const deserializeAws_restJson1HlsManifest = (output, context) => {
2077
+ const de_HlsManifest = (output, context) => {
2122
2078
  return {
2123
2079
  AdMarkers: (0, smithy_client_1.expectString)(output.adMarkers),
2124
- AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
2080
+ AdTriggers: output.adTriggers != null ? de_AdTriggers(output.adTriggers, context) : undefined,
2125
2081
  AdsOnDeliveryRestrictions: (0, smithy_client_1.expectString)(output.adsOnDeliveryRestrictions),
2126
2082
  Id: (0, smithy_client_1.expectString)(output.id),
2127
2083
  IncludeIframeOnlyStream: (0, smithy_client_1.expectBoolean)(output.includeIframeOnlyStream),
@@ -2132,25 +2088,23 @@ const deserializeAws_restJson1HlsManifest = (output, context) => {
2132
2088
  Url: (0, smithy_client_1.expectString)(output.url),
2133
2089
  };
2134
2090
  };
2135
- const deserializeAws_restJson1HlsPackage = (output, context) => {
2091
+ const de_HlsPackage = (output, context) => {
2136
2092
  return {
2137
2093
  AdMarkers: (0, smithy_client_1.expectString)(output.adMarkers),
2138
- AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
2094
+ AdTriggers: output.adTriggers != null ? de_AdTriggers(output.adTriggers, context) : undefined,
2139
2095
  AdsOnDeliveryRestrictions: (0, smithy_client_1.expectString)(output.adsOnDeliveryRestrictions),
2140
- Encryption: output.encryption != null ? deserializeAws_restJson1HlsEncryption(output.encryption, context) : undefined,
2096
+ Encryption: output.encryption != null ? de_HlsEncryption(output.encryption, context) : undefined,
2141
2097
  IncludeDvbSubtitles: (0, smithy_client_1.expectBoolean)(output.includeDvbSubtitles),
2142
2098
  IncludeIframeOnlyStream: (0, smithy_client_1.expectBoolean)(output.includeIframeOnlyStream),
2143
2099
  PlaylistType: (0, smithy_client_1.expectString)(output.playlistType),
2144
2100
  PlaylistWindowSeconds: (0, smithy_client_1.expectInt32)(output.playlistWindowSeconds),
2145
2101
  ProgramDateTimeIntervalSeconds: (0, smithy_client_1.expectInt32)(output.programDateTimeIntervalSeconds),
2146
2102
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
2147
- StreamSelection: output.streamSelection != null
2148
- ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2149
- : undefined,
2103
+ StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
2150
2104
  UseAudioRenditionGroup: (0, smithy_client_1.expectBoolean)(output.useAudioRenditionGroup),
2151
2105
  };
2152
2106
  };
2153
- const deserializeAws_restJson1IngestEndpoint = (output, context) => {
2107
+ const de_IngestEndpoint = (output, context) => {
2154
2108
  return {
2155
2109
  Id: (0, smithy_client_1.expectString)(output.id),
2156
2110
  Password: (0, smithy_client_1.expectString)(output.password),
@@ -2158,76 +2112,72 @@ const deserializeAws_restJson1IngestEndpoint = (output, context) => {
2158
2112
  Username: (0, smithy_client_1.expectString)(output.username),
2159
2113
  };
2160
2114
  };
2161
- const deserializeAws_restJson1IngressAccessLogs = (output, context) => {
2115
+ const de_IngressAccessLogs = (output, context) => {
2162
2116
  return {
2163
2117
  LogGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
2164
2118
  };
2165
2119
  };
2166
- const deserializeAws_restJson1MssEncryption = (output, context) => {
2120
+ const de_MssEncryption = (output, context) => {
2167
2121
  return {
2168
- SpekeKeyProvider: output.spekeKeyProvider != null
2169
- ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2170
- : undefined,
2122
+ SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
2171
2123
  };
2172
2124
  };
2173
- const deserializeAws_restJson1MssPackage = (output, context) => {
2125
+ const de_MssPackage = (output, context) => {
2174
2126
  return {
2175
- Encryption: output.encryption != null ? deserializeAws_restJson1MssEncryption(output.encryption, context) : undefined,
2127
+ Encryption: output.encryption != null ? de_MssEncryption(output.encryption, context) : undefined,
2176
2128
  ManifestWindowSeconds: (0, smithy_client_1.expectInt32)(output.manifestWindowSeconds),
2177
2129
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
2178
- StreamSelection: output.streamSelection != null
2179
- ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2180
- : undefined,
2130
+ StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
2181
2131
  };
2182
2132
  };
2183
- const deserializeAws_restJson1OriginEndpoint = (output, context) => {
2133
+ const de_OriginEndpoint = (output, context) => {
2184
2134
  return {
2185
2135
  Arn: (0, smithy_client_1.expectString)(output.arn),
2186
- Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
2136
+ Authorization: output.authorization != null ? de_Authorization(output.authorization, context) : undefined,
2187
2137
  ChannelId: (0, smithy_client_1.expectString)(output.channelId),
2188
- CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
2138
+ CmafPackage: output.cmafPackage != null ? de_CmafPackage(output.cmafPackage, context) : undefined,
2189
2139
  CreatedAt: (0, smithy_client_1.expectString)(output.createdAt),
2190
- DashPackage: output.dashPackage != null ? deserializeAws_restJson1DashPackage(output.dashPackage, context) : undefined,
2140
+ DashPackage: output.dashPackage != null ? de_DashPackage(output.dashPackage, context) : undefined,
2191
2141
  Description: (0, smithy_client_1.expectString)(output.description),
2192
- HlsPackage: output.hlsPackage != null ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context) : undefined,
2142
+ HlsPackage: output.hlsPackage != null ? de_HlsPackage(output.hlsPackage, context) : undefined,
2193
2143
  Id: (0, smithy_client_1.expectString)(output.id),
2194
2144
  ManifestName: (0, smithy_client_1.expectString)(output.manifestName),
2195
- MssPackage: output.mssPackage != null ? deserializeAws_restJson1MssPackage(output.mssPackage, context) : undefined,
2145
+ MssPackage: output.mssPackage != null ? de_MssPackage(output.mssPackage, context) : undefined,
2196
2146
  Origination: (0, smithy_client_1.expectString)(output.origination),
2197
2147
  StartoverWindowSeconds: (0, smithy_client_1.expectInt32)(output.startoverWindowSeconds),
2198
- Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2148
+ Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2199
2149
  TimeDelaySeconds: (0, smithy_client_1.expectInt32)(output.timeDelaySeconds),
2200
2150
  Url: (0, smithy_client_1.expectString)(output.url),
2201
- Whitelist: output.whitelist != null ? deserializeAws_restJson1__listOf__string(output.whitelist, context) : undefined,
2151
+ Whitelist: output.whitelist != null ? de___listOf__string(output.whitelist, context) : undefined,
2202
2152
  };
2203
2153
  };
2204
- const deserializeAws_restJson1S3Destination = (output, context) => {
2154
+ const de_S3Destination = (output, context) => {
2205
2155
  return {
2206
2156
  BucketName: (0, smithy_client_1.expectString)(output.bucketName),
2207
2157
  ManifestKey: (0, smithy_client_1.expectString)(output.manifestKey),
2208
2158
  RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
2209
2159
  };
2210
2160
  };
2211
- const deserializeAws_restJson1SpekeKeyProvider = (output, context) => {
2161
+ const de_SpekeKeyProvider = (output, context) => {
2212
2162
  return {
2213
2163
  CertificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
2214
2164
  EncryptionContractConfiguration: output.encryptionContractConfiguration != null
2215
- ? deserializeAws_restJson1EncryptionContractConfiguration(output.encryptionContractConfiguration, context)
2165
+ ? de_EncryptionContractConfiguration(output.encryptionContractConfiguration, context)
2216
2166
  : undefined,
2217
2167
  ResourceId: (0, smithy_client_1.expectString)(output.resourceId),
2218
2168
  RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
2219
- SystemIds: output.systemIds != null ? deserializeAws_restJson1__listOf__string(output.systemIds, context) : undefined,
2169
+ SystemIds: output.systemIds != null ? de___listOf__string(output.systemIds, context) : undefined,
2220
2170
  Url: (0, smithy_client_1.expectString)(output.url),
2221
2171
  };
2222
2172
  };
2223
- const deserializeAws_restJson1StreamSelection = (output, context) => {
2173
+ const de_StreamSelection = (output, context) => {
2224
2174
  return {
2225
2175
  MaxVideoBitsPerSecond: (0, smithy_client_1.expectInt32)(output.maxVideoBitsPerSecond),
2226
2176
  MinVideoBitsPerSecond: (0, smithy_client_1.expectInt32)(output.minVideoBitsPerSecond),
2227
2177
  StreamOrder: (0, smithy_client_1.expectString)(output.streamOrder),
2228
2178
  };
2229
2179
  };
2230
- const deserializeAws_restJson1Tags = (output, context) => {
2180
+ const de_Tags = (output, context) => {
2231
2181
  return Object.entries(output).reduce((acc, [key, value]) => {
2232
2182
  if (value === null) {
2233
2183
  return acc;