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