@aws-sdk/client-mediapackage-vod 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 (39) hide show
  1. package/dist-cjs/commands/ConfigureLogsCommand.js +2 -2
  2. package/dist-cjs/commands/CreateAssetCommand.js +2 -2
  3. package/dist-cjs/commands/CreatePackagingConfigurationCommand.js +2 -2
  4. package/dist-cjs/commands/CreatePackagingGroupCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteAssetCommand.js +2 -2
  6. package/dist-cjs/commands/DeletePackagingConfigurationCommand.js +2 -2
  7. package/dist-cjs/commands/DeletePackagingGroupCommand.js +2 -2
  8. package/dist-cjs/commands/DescribeAssetCommand.js +2 -2
  9. package/dist-cjs/commands/DescribePackagingConfigurationCommand.js +2 -2
  10. package/dist-cjs/commands/DescribePackagingGroupCommand.js +2 -2
  11. package/dist-cjs/commands/ListAssetsCommand.js +2 -2
  12. package/dist-cjs/commands/ListPackagingConfigurationsCommand.js +2 -2
  13. package/dist-cjs/commands/ListPackagingGroupsCommand.js +2 -2
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  15. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  16. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  17. package/dist-cjs/commands/UpdatePackagingGroupCommand.js +2 -2
  18. package/dist-cjs/protocols/Aws_restJson1.js +344 -400
  19. package/dist-es/commands/ConfigureLogsCommand.js +3 -3
  20. package/dist-es/commands/CreateAssetCommand.js +3 -3
  21. package/dist-es/commands/CreatePackagingConfigurationCommand.js +3 -3
  22. package/dist-es/commands/CreatePackagingGroupCommand.js +3 -3
  23. package/dist-es/commands/DeleteAssetCommand.js +3 -3
  24. package/dist-es/commands/DeletePackagingConfigurationCommand.js +3 -3
  25. package/dist-es/commands/DeletePackagingGroupCommand.js +3 -3
  26. package/dist-es/commands/DescribeAssetCommand.js +3 -3
  27. package/dist-es/commands/DescribePackagingConfigurationCommand.js +3 -3
  28. package/dist-es/commands/DescribePackagingGroupCommand.js +3 -3
  29. package/dist-es/commands/ListAssetsCommand.js +3 -3
  30. package/dist-es/commands/ListPackagingConfigurationsCommand.js +3 -3
  31. package/dist-es/commands/ListPackagingGroupsCommand.js +3 -3
  32. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  33. package/dist-es/commands/TagResourceCommand.js +3 -3
  34. package/dist-es/commands/UntagResourceCommand.js +3 -3
  35. package/dist-es/commands/UpdatePackagingGroupCommand.js +3 -3
  36. package/dist-es/protocols/Aws_restJson1.js +309 -365
  37. package/dist-types/protocols/Aws_restJson1.d.ts +136 -34
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +34 -34
  39. 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 { MediaPackageVodServiceException as __BaseException } from "../models/MediaPackageVodServiceException";
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,9 +11,7 @@ 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
  });
18
16
  return new __HttpRequest({
19
17
  protocol,
@@ -25,7 +23,7 @@ export const serializeAws_restJson1ConfigureLogsCommand = async (input, context)
25
23
  body,
26
24
  });
27
25
  };
28
- export const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
26
+ export const se_CreateAssetCommand = async (input, context) => {
29
27
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
28
  const headers = {
31
29
  "content-type": "application/json",
@@ -38,7 +36,7 @@ export const serializeAws_restJson1CreateAssetCommand = async (input, context) =
38
36
  ...(input.ResourceId != null && { resourceId: input.ResourceId }),
39
37
  ...(input.SourceArn != null && { sourceArn: input.SourceArn }),
40
38
  ...(input.SourceRoleArn != null && { sourceRoleArn: input.SourceRoleArn }),
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_restJson1CreateAssetCommand = async (input, context) =
50
48
  body,
51
49
  });
52
50
  };
53
- export const serializeAws_restJson1CreatePackagingConfigurationCommand = async (input, context) => {
51
+ export const se_CreatePackagingConfigurationCommand = 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",
@@ -58,13 +56,13 @@ export const serializeAws_restJson1CreatePackagingConfigurationCommand = async (
58
56
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations";
59
57
  let body;
60
58
  body = JSON.stringify({
61
- ...(input.CmafPackage != null && { cmafPackage: serializeAws_restJson1CmafPackage(input.CmafPackage, context) }),
62
- ...(input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
63
- ...(input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
59
+ ...(input.CmafPackage != null && { cmafPackage: se_CmafPackage(input.CmafPackage, context) }),
60
+ ...(input.DashPackage != null && { dashPackage: se_DashPackage(input.DashPackage, context) }),
61
+ ...(input.HlsPackage != null && { hlsPackage: se_HlsPackage(input.HlsPackage, context) }),
64
62
  ...(input.Id != null && { id: input.Id }),
65
- ...(input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
63
+ ...(input.MssPackage != null && { mssPackage: se_MssPackage(input.MssPackage, context) }),
66
64
  ...(input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId }),
67
- ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
65
+ ...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
68
66
  });
69
67
  return new __HttpRequest({
70
68
  protocol,
@@ -76,7 +74,7 @@ export const serializeAws_restJson1CreatePackagingConfigurationCommand = async (
76
74
  body,
77
75
  });
78
76
  };
79
- export const serializeAws_restJson1CreatePackagingGroupCommand = async (input, context) => {
77
+ export const se_CreatePackagingGroupCommand = async (input, context) => {
80
78
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
79
  const headers = {
82
80
  "content-type": "application/json",
@@ -84,14 +82,10 @@ export const serializeAws_restJson1CreatePackagingGroupCommand = async (input, c
84
82
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups";
85
83
  let body;
86
84
  body = JSON.stringify({
87
- ...(input.Authorization != null && {
88
- authorization: serializeAws_restJson1Authorization(input.Authorization, context),
89
- }),
90
- ...(input.EgressAccessLogs != null && {
91
- egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
92
- }),
85
+ ...(input.Authorization != null && { authorization: se_Authorization(input.Authorization, context) }),
86
+ ...(input.EgressAccessLogs != null && { egressAccessLogs: se_EgressAccessLogs(input.EgressAccessLogs, context) }),
93
87
  ...(input.Id != null && { id: input.Id }),
94
- ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
88
+ ...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
95
89
  });
96
90
  return new __HttpRequest({
97
91
  protocol,
@@ -103,7 +97,7 @@ export const serializeAws_restJson1CreatePackagingGroupCommand = async (input, c
103
97
  body,
104
98
  });
105
99
  };
106
- export const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
100
+ export const se_DeleteAssetCommand = async (input, context) => {
107
101
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
102
  const headers = {};
109
103
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{Id}";
@@ -119,7 +113,7 @@ export const serializeAws_restJson1DeleteAssetCommand = async (input, context) =
119
113
  body,
120
114
  });
121
115
  };
122
- export const serializeAws_restJson1DeletePackagingConfigurationCommand = async (input, context) => {
116
+ export const se_DeletePackagingConfigurationCommand = async (input, context) => {
123
117
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
118
  const headers = {};
125
119
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations/{Id}";
@@ -135,7 +129,7 @@ export const serializeAws_restJson1DeletePackagingConfigurationCommand = async (
135
129
  body,
136
130
  });
137
131
  };
138
- export const serializeAws_restJson1DeletePackagingGroupCommand = async (input, context) => {
132
+ export const se_DeletePackagingGroupCommand = async (input, context) => {
139
133
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
140
134
  const headers = {};
141
135
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}";
@@ -151,7 +145,7 @@ export const serializeAws_restJson1DeletePackagingGroupCommand = async (input, c
151
145
  body,
152
146
  });
153
147
  };
154
- export const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
148
+ export const se_DescribeAssetCommand = async (input, context) => {
155
149
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
150
  const headers = {};
157
151
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{Id}";
@@ -167,7 +161,7 @@ export const serializeAws_restJson1DescribeAssetCommand = async (input, context)
167
161
  body,
168
162
  });
169
163
  };
170
- export const serializeAws_restJson1DescribePackagingConfigurationCommand = async (input, context) => {
164
+ export const se_DescribePackagingConfigurationCommand = async (input, context) => {
171
165
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
172
166
  const headers = {};
173
167
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations/{Id}";
@@ -183,7 +177,7 @@ export const serializeAws_restJson1DescribePackagingConfigurationCommand = async
183
177
  body,
184
178
  });
185
179
  };
186
- export const serializeAws_restJson1DescribePackagingGroupCommand = async (input, context) => {
180
+ export const se_DescribePackagingGroupCommand = async (input, context) => {
187
181
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
188
182
  const headers = {};
189
183
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}";
@@ -199,7 +193,7 @@ export const serializeAws_restJson1DescribePackagingGroupCommand = async (input,
199
193
  body,
200
194
  });
201
195
  };
202
- export const serializeAws_restJson1ListAssetsCommand = async (input, context) => {
196
+ export const se_ListAssetsCommand = async (input, context) => {
203
197
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
198
  const headers = {};
205
199
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
@@ -220,7 +214,7 @@ export const serializeAws_restJson1ListAssetsCommand = async (input, context) =>
220
214
  body,
221
215
  });
222
216
  };
223
- export const serializeAws_restJson1ListPackagingConfigurationsCommand = async (input, context) => {
217
+ export const se_ListPackagingConfigurationsCommand = async (input, context) => {
224
218
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
219
  const headers = {};
226
220
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations";
@@ -241,7 +235,7 @@ export const serializeAws_restJson1ListPackagingConfigurationsCommand = async (i
241
235
  body,
242
236
  });
243
237
  };
244
- export const serializeAws_restJson1ListPackagingGroupsCommand = async (input, context) => {
238
+ export const se_ListPackagingGroupsCommand = async (input, context) => {
245
239
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
240
  const headers = {};
247
241
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups";
@@ -261,7 +255,7 @@ export const serializeAws_restJson1ListPackagingGroupsCommand = async (input, co
261
255
  body,
262
256
  });
263
257
  };
264
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
258
+ export const se_ListTagsForResourceCommand = async (input, context) => {
265
259
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
260
  const headers = {};
267
261
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -277,7 +271,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
277
271
  body,
278
272
  });
279
273
  };
280
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
274
+ export const se_TagResourceCommand = async (input, context) => {
281
275
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
282
276
  const headers = {
283
277
  "content-type": "application/json",
@@ -286,7 +280,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
286
280
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
287
281
  let body;
288
282
  body = JSON.stringify({
289
- ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
283
+ ...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
290
284
  });
291
285
  return new __HttpRequest({
292
286
  protocol,
@@ -298,7 +292,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
298
292
  body,
299
293
  });
300
294
  };
301
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
295
+ export const se_UntagResourceCommand = async (input, context) => {
302
296
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
303
297
  const headers = {};
304
298
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -321,7 +315,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
321
315
  body,
322
316
  });
323
317
  };
324
- export const serializeAws_restJson1UpdatePackagingGroupCommand = async (input, context) => {
318
+ export const se_UpdatePackagingGroupCommand = async (input, context) => {
325
319
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
326
320
  const headers = {
327
321
  "content-type": "application/json",
@@ -330,9 +324,7 @@ export const serializeAws_restJson1UpdatePackagingGroupCommand = async (input, c
330
324
  resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
331
325
  let body;
332
326
  body = JSON.stringify({
333
- ...(input.Authorization != null && {
334
- authorization: serializeAws_restJson1Authorization(input.Authorization, context),
335
- }),
327
+ ...(input.Authorization != null && { authorization: se_Authorization(input.Authorization, context) }),
336
328
  });
337
329
  return new __HttpRequest({
338
330
  protocol,
@@ -344,9 +336,9 @@ export const serializeAws_restJson1UpdatePackagingGroupCommand = async (input, c
344
336
  body,
345
337
  });
346
338
  };
347
- export const deserializeAws_restJson1ConfigureLogsCommand = async (output, context) => {
339
+ export const de_ConfigureLogsCommand = async (output, context) => {
348
340
  if (output.statusCode !== 200 && output.statusCode >= 300) {
349
- return deserializeAws_restJson1ConfigureLogsCommandError(output, context);
341
+ return de_ConfigureLogsCommandError(output, context);
350
342
  }
351
343
  const contents = map({
352
344
  $metadata: deserializeMetadata(output),
@@ -356,7 +348,7 @@ export const deserializeAws_restJson1ConfigureLogsCommand = async (output, conte
356
348
  contents.Arn = __expectString(data.arn);
357
349
  }
358
350
  if (data.authorization != null) {
359
- contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
351
+ contents.Authorization = de_Authorization(data.authorization, context);
360
352
  }
361
353
  if (data.createdAt != null) {
362
354
  contents.CreatedAt = __expectString(data.createdAt);
@@ -365,17 +357,17 @@ export const deserializeAws_restJson1ConfigureLogsCommand = async (output, conte
365
357
  contents.DomainName = __expectString(data.domainName);
366
358
  }
367
359
  if (data.egressAccessLogs != null) {
368
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
360
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
369
361
  }
370
362
  if (data.id != null) {
371
363
  contents.Id = __expectString(data.id);
372
364
  }
373
365
  if (data.tags != null) {
374
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
366
+ contents.Tags = de_Tags(data.tags, context);
375
367
  }
376
368
  return contents;
377
369
  };
378
- const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context) => {
370
+ const de_ConfigureLogsCommandError = async (output, context) => {
379
371
  const parsedOutput = {
380
372
  ...output,
381
373
  body: await parseErrorBody(output.body, context),
@@ -384,22 +376,22 @@ const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context
384
376
  switch (errorCode) {
385
377
  case "ForbiddenException":
386
378
  case "com.amazonaws.mediapackagevod#ForbiddenException":
387
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
379
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
388
380
  case "InternalServerErrorException":
389
381
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
390
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
382
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
391
383
  case "NotFoundException":
392
384
  case "com.amazonaws.mediapackagevod#NotFoundException":
393
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
385
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
394
386
  case "ServiceUnavailableException":
395
387
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
396
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
388
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
397
389
  case "TooManyRequestsException":
398
390
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
399
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
391
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
400
392
  case "UnprocessableEntityException":
401
393
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
402
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
394
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
403
395
  default:
404
396
  const parsedBody = parsedOutput.body;
405
397
  throwDefaultError({
@@ -410,9 +402,9 @@ const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context
410
402
  });
411
403
  }
412
404
  };
413
- export const deserializeAws_restJson1CreateAssetCommand = async (output, context) => {
405
+ export const de_CreateAssetCommand = async (output, context) => {
414
406
  if (output.statusCode !== 200 && output.statusCode >= 300) {
415
- return deserializeAws_restJson1CreateAssetCommandError(output, context);
407
+ return de_CreateAssetCommandError(output, context);
416
408
  }
417
409
  const contents = map({
418
410
  $metadata: deserializeMetadata(output),
@@ -425,7 +417,7 @@ export const deserializeAws_restJson1CreateAssetCommand = async (output, context
425
417
  contents.CreatedAt = __expectString(data.createdAt);
426
418
  }
427
419
  if (data.egressEndpoints != null) {
428
- contents.EgressEndpoints = deserializeAws_restJson1__listOfEgressEndpoint(data.egressEndpoints, context);
420
+ contents.EgressEndpoints = de___listOfEgressEndpoint(data.egressEndpoints, context);
429
421
  }
430
422
  if (data.id != null) {
431
423
  contents.Id = __expectString(data.id);
@@ -443,11 +435,11 @@ export const deserializeAws_restJson1CreateAssetCommand = async (output, context
443
435
  contents.SourceRoleArn = __expectString(data.sourceRoleArn);
444
436
  }
445
437
  if (data.tags != null) {
446
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
438
+ contents.Tags = de_Tags(data.tags, context);
447
439
  }
448
440
  return contents;
449
441
  };
450
- const deserializeAws_restJson1CreateAssetCommandError = async (output, context) => {
442
+ const de_CreateAssetCommandError = async (output, context) => {
451
443
  const parsedOutput = {
452
444
  ...output,
453
445
  body: await parseErrorBody(output.body, context),
@@ -456,22 +448,22 @@ const deserializeAws_restJson1CreateAssetCommandError = async (output, context)
456
448
  switch (errorCode) {
457
449
  case "ForbiddenException":
458
450
  case "com.amazonaws.mediapackagevod#ForbiddenException":
459
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
451
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
460
452
  case "InternalServerErrorException":
461
453
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
462
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
454
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
463
455
  case "NotFoundException":
464
456
  case "com.amazonaws.mediapackagevod#NotFoundException":
465
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
457
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
466
458
  case "ServiceUnavailableException":
467
459
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
468
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
460
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
469
461
  case "TooManyRequestsException":
470
462
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
471
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
463
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
472
464
  case "UnprocessableEntityException":
473
465
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
474
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
466
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
475
467
  default:
476
468
  const parsedBody = parsedOutput.body;
477
469
  throwDefaultError({
@@ -482,9 +474,9 @@ const deserializeAws_restJson1CreateAssetCommandError = async (output, context)
482
474
  });
483
475
  }
484
476
  };
485
- export const deserializeAws_restJson1CreatePackagingConfigurationCommand = async (output, context) => {
477
+ export const de_CreatePackagingConfigurationCommand = async (output, context) => {
486
478
  if (output.statusCode !== 200 && output.statusCode >= 300) {
487
- return deserializeAws_restJson1CreatePackagingConfigurationCommandError(output, context);
479
+ return de_CreatePackagingConfigurationCommandError(output, context);
488
480
  }
489
481
  const contents = map({
490
482
  $metadata: deserializeMetadata(output),
@@ -494,32 +486,32 @@ export const deserializeAws_restJson1CreatePackagingConfigurationCommand = async
494
486
  contents.Arn = __expectString(data.arn);
495
487
  }
496
488
  if (data.cmafPackage != null) {
497
- contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
489
+ contents.CmafPackage = de_CmafPackage(data.cmafPackage, context);
498
490
  }
499
491
  if (data.createdAt != null) {
500
492
  contents.CreatedAt = __expectString(data.createdAt);
501
493
  }
502
494
  if (data.dashPackage != null) {
503
- contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
495
+ contents.DashPackage = de_DashPackage(data.dashPackage, context);
504
496
  }
505
497
  if (data.hlsPackage != null) {
506
- contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
498
+ contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
507
499
  }
508
500
  if (data.id != null) {
509
501
  contents.Id = __expectString(data.id);
510
502
  }
511
503
  if (data.mssPackage != null) {
512
- contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
504
+ contents.MssPackage = de_MssPackage(data.mssPackage, context);
513
505
  }
514
506
  if (data.packagingGroupId != null) {
515
507
  contents.PackagingGroupId = __expectString(data.packagingGroupId);
516
508
  }
517
509
  if (data.tags != null) {
518
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
510
+ contents.Tags = de_Tags(data.tags, context);
519
511
  }
520
512
  return contents;
521
513
  };
522
- const deserializeAws_restJson1CreatePackagingConfigurationCommandError = async (output, context) => {
514
+ const de_CreatePackagingConfigurationCommandError = async (output, context) => {
523
515
  const parsedOutput = {
524
516
  ...output,
525
517
  body: await parseErrorBody(output.body, context),
@@ -528,22 +520,22 @@ const deserializeAws_restJson1CreatePackagingConfigurationCommandError = async (
528
520
  switch (errorCode) {
529
521
  case "ForbiddenException":
530
522
  case "com.amazonaws.mediapackagevod#ForbiddenException":
531
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
523
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
532
524
  case "InternalServerErrorException":
533
525
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
534
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
526
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
535
527
  case "NotFoundException":
536
528
  case "com.amazonaws.mediapackagevod#NotFoundException":
537
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
529
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
538
530
  case "ServiceUnavailableException":
539
531
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
540
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
532
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
541
533
  case "TooManyRequestsException":
542
534
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
543
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
535
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
544
536
  case "UnprocessableEntityException":
545
537
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
546
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
538
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
547
539
  default:
548
540
  const parsedBody = parsedOutput.body;
549
541
  throwDefaultError({
@@ -554,9 +546,9 @@ const deserializeAws_restJson1CreatePackagingConfigurationCommandError = async (
554
546
  });
555
547
  }
556
548
  };
557
- export const deserializeAws_restJson1CreatePackagingGroupCommand = async (output, context) => {
549
+ export const de_CreatePackagingGroupCommand = async (output, context) => {
558
550
  if (output.statusCode !== 200 && output.statusCode >= 300) {
559
- return deserializeAws_restJson1CreatePackagingGroupCommandError(output, context);
551
+ return de_CreatePackagingGroupCommandError(output, context);
560
552
  }
561
553
  const contents = map({
562
554
  $metadata: deserializeMetadata(output),
@@ -566,7 +558,7 @@ export const deserializeAws_restJson1CreatePackagingGroupCommand = async (output
566
558
  contents.Arn = __expectString(data.arn);
567
559
  }
568
560
  if (data.authorization != null) {
569
- contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
561
+ contents.Authorization = de_Authorization(data.authorization, context);
570
562
  }
571
563
  if (data.createdAt != null) {
572
564
  contents.CreatedAt = __expectString(data.createdAt);
@@ -575,17 +567,17 @@ export const deserializeAws_restJson1CreatePackagingGroupCommand = async (output
575
567
  contents.DomainName = __expectString(data.domainName);
576
568
  }
577
569
  if (data.egressAccessLogs != null) {
578
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
570
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
579
571
  }
580
572
  if (data.id != null) {
581
573
  contents.Id = __expectString(data.id);
582
574
  }
583
575
  if (data.tags != null) {
584
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
576
+ contents.Tags = de_Tags(data.tags, context);
585
577
  }
586
578
  return contents;
587
579
  };
588
- const deserializeAws_restJson1CreatePackagingGroupCommandError = async (output, context) => {
580
+ const de_CreatePackagingGroupCommandError = async (output, context) => {
589
581
  const parsedOutput = {
590
582
  ...output,
591
583
  body: await parseErrorBody(output.body, context),
@@ -594,22 +586,22 @@ const deserializeAws_restJson1CreatePackagingGroupCommandError = async (output,
594
586
  switch (errorCode) {
595
587
  case "ForbiddenException":
596
588
  case "com.amazonaws.mediapackagevod#ForbiddenException":
597
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
589
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
598
590
  case "InternalServerErrorException":
599
591
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
600
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
592
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
601
593
  case "NotFoundException":
602
594
  case "com.amazonaws.mediapackagevod#NotFoundException":
603
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
595
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
604
596
  case "ServiceUnavailableException":
605
597
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
606
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
598
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
607
599
  case "TooManyRequestsException":
608
600
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
609
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
601
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
610
602
  case "UnprocessableEntityException":
611
603
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
612
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
604
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
613
605
  default:
614
606
  const parsedBody = parsedOutput.body;
615
607
  throwDefaultError({
@@ -620,9 +612,9 @@ const deserializeAws_restJson1CreatePackagingGroupCommandError = async (output,
620
612
  });
621
613
  }
622
614
  };
623
- export const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
615
+ export const de_DeleteAssetCommand = async (output, context) => {
624
616
  if (output.statusCode !== 202 && output.statusCode >= 300) {
625
- return deserializeAws_restJson1DeleteAssetCommandError(output, context);
617
+ return de_DeleteAssetCommandError(output, context);
626
618
  }
627
619
  const contents = map({
628
620
  $metadata: deserializeMetadata(output),
@@ -630,7 +622,7 @@ export const deserializeAws_restJson1DeleteAssetCommand = async (output, context
630
622
  await collectBody(output.body, context);
631
623
  return contents;
632
624
  };
633
- const deserializeAws_restJson1DeleteAssetCommandError = async (output, context) => {
625
+ const de_DeleteAssetCommandError = async (output, context) => {
634
626
  const parsedOutput = {
635
627
  ...output,
636
628
  body: await parseErrorBody(output.body, context),
@@ -639,22 +631,22 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
639
631
  switch (errorCode) {
640
632
  case "ForbiddenException":
641
633
  case "com.amazonaws.mediapackagevod#ForbiddenException":
642
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
634
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
643
635
  case "InternalServerErrorException":
644
636
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
645
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
637
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
646
638
  case "NotFoundException":
647
639
  case "com.amazonaws.mediapackagevod#NotFoundException":
648
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
640
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
649
641
  case "ServiceUnavailableException":
650
642
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
651
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
643
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
652
644
  case "TooManyRequestsException":
653
645
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
654
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
646
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
655
647
  case "UnprocessableEntityException":
656
648
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
657
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
649
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
658
650
  default:
659
651
  const parsedBody = parsedOutput.body;
660
652
  throwDefaultError({
@@ -665,9 +657,9 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
665
657
  });
666
658
  }
667
659
  };
668
- export const deserializeAws_restJson1DeletePackagingConfigurationCommand = async (output, context) => {
660
+ export const de_DeletePackagingConfigurationCommand = async (output, context) => {
669
661
  if (output.statusCode !== 202 && output.statusCode >= 300) {
670
- return deserializeAws_restJson1DeletePackagingConfigurationCommandError(output, context);
662
+ return de_DeletePackagingConfigurationCommandError(output, context);
671
663
  }
672
664
  const contents = map({
673
665
  $metadata: deserializeMetadata(output),
@@ -675,7 +667,7 @@ export const deserializeAws_restJson1DeletePackagingConfigurationCommand = async
675
667
  await collectBody(output.body, context);
676
668
  return contents;
677
669
  };
678
- const deserializeAws_restJson1DeletePackagingConfigurationCommandError = async (output, context) => {
670
+ const de_DeletePackagingConfigurationCommandError = async (output, context) => {
679
671
  const parsedOutput = {
680
672
  ...output,
681
673
  body: await parseErrorBody(output.body, context),
@@ -684,22 +676,22 @@ const deserializeAws_restJson1DeletePackagingConfigurationCommandError = async (
684
676
  switch (errorCode) {
685
677
  case "ForbiddenException":
686
678
  case "com.amazonaws.mediapackagevod#ForbiddenException":
687
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
679
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
688
680
  case "InternalServerErrorException":
689
681
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
690
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
682
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
691
683
  case "NotFoundException":
692
684
  case "com.amazonaws.mediapackagevod#NotFoundException":
693
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
685
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
694
686
  case "ServiceUnavailableException":
695
687
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
696
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
688
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
697
689
  case "TooManyRequestsException":
698
690
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
699
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
691
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
700
692
  case "UnprocessableEntityException":
701
693
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
702
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
694
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
703
695
  default:
704
696
  const parsedBody = parsedOutput.body;
705
697
  throwDefaultError({
@@ -710,9 +702,9 @@ const deserializeAws_restJson1DeletePackagingConfigurationCommandError = async (
710
702
  });
711
703
  }
712
704
  };
713
- export const deserializeAws_restJson1DeletePackagingGroupCommand = async (output, context) => {
705
+ export const de_DeletePackagingGroupCommand = async (output, context) => {
714
706
  if (output.statusCode !== 202 && output.statusCode >= 300) {
715
- return deserializeAws_restJson1DeletePackagingGroupCommandError(output, context);
707
+ return de_DeletePackagingGroupCommandError(output, context);
716
708
  }
717
709
  const contents = map({
718
710
  $metadata: deserializeMetadata(output),
@@ -720,7 +712,7 @@ export const deserializeAws_restJson1DeletePackagingGroupCommand = async (output
720
712
  await collectBody(output.body, context);
721
713
  return contents;
722
714
  };
723
- const deserializeAws_restJson1DeletePackagingGroupCommandError = async (output, context) => {
715
+ const de_DeletePackagingGroupCommandError = async (output, context) => {
724
716
  const parsedOutput = {
725
717
  ...output,
726
718
  body: await parseErrorBody(output.body, context),
@@ -729,22 +721,22 @@ const deserializeAws_restJson1DeletePackagingGroupCommandError = async (output,
729
721
  switch (errorCode) {
730
722
  case "ForbiddenException":
731
723
  case "com.amazonaws.mediapackagevod#ForbiddenException":
732
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
724
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
733
725
  case "InternalServerErrorException":
734
726
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
735
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
727
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
736
728
  case "NotFoundException":
737
729
  case "com.amazonaws.mediapackagevod#NotFoundException":
738
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
730
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
739
731
  case "ServiceUnavailableException":
740
732
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
741
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
733
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
742
734
  case "TooManyRequestsException":
743
735
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
744
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
736
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
745
737
  case "UnprocessableEntityException":
746
738
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
747
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
739
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
748
740
  default:
749
741
  const parsedBody = parsedOutput.body;
750
742
  throwDefaultError({
@@ -755,9 +747,9 @@ const deserializeAws_restJson1DeletePackagingGroupCommandError = async (output,
755
747
  });
756
748
  }
757
749
  };
758
- export const deserializeAws_restJson1DescribeAssetCommand = async (output, context) => {
750
+ export const de_DescribeAssetCommand = async (output, context) => {
759
751
  if (output.statusCode !== 200 && output.statusCode >= 300) {
760
- return deserializeAws_restJson1DescribeAssetCommandError(output, context);
752
+ return de_DescribeAssetCommandError(output, context);
761
753
  }
762
754
  const contents = map({
763
755
  $metadata: deserializeMetadata(output),
@@ -770,7 +762,7 @@ export const deserializeAws_restJson1DescribeAssetCommand = async (output, conte
770
762
  contents.CreatedAt = __expectString(data.createdAt);
771
763
  }
772
764
  if (data.egressEndpoints != null) {
773
- contents.EgressEndpoints = deserializeAws_restJson1__listOfEgressEndpoint(data.egressEndpoints, context);
765
+ contents.EgressEndpoints = de___listOfEgressEndpoint(data.egressEndpoints, context);
774
766
  }
775
767
  if (data.id != null) {
776
768
  contents.Id = __expectString(data.id);
@@ -788,11 +780,11 @@ export const deserializeAws_restJson1DescribeAssetCommand = async (output, conte
788
780
  contents.SourceRoleArn = __expectString(data.sourceRoleArn);
789
781
  }
790
782
  if (data.tags != null) {
791
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
783
+ contents.Tags = de_Tags(data.tags, context);
792
784
  }
793
785
  return contents;
794
786
  };
795
- const deserializeAws_restJson1DescribeAssetCommandError = async (output, context) => {
787
+ const de_DescribeAssetCommandError = async (output, context) => {
796
788
  const parsedOutput = {
797
789
  ...output,
798
790
  body: await parseErrorBody(output.body, context),
@@ -801,22 +793,22 @@ const deserializeAws_restJson1DescribeAssetCommandError = async (output, context
801
793
  switch (errorCode) {
802
794
  case "ForbiddenException":
803
795
  case "com.amazonaws.mediapackagevod#ForbiddenException":
804
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
796
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
805
797
  case "InternalServerErrorException":
806
798
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
807
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
799
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
808
800
  case "NotFoundException":
809
801
  case "com.amazonaws.mediapackagevod#NotFoundException":
810
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
802
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
811
803
  case "ServiceUnavailableException":
812
804
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
813
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
805
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
814
806
  case "TooManyRequestsException":
815
807
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
816
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
808
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
817
809
  case "UnprocessableEntityException":
818
810
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
819
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
811
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
820
812
  default:
821
813
  const parsedBody = parsedOutput.body;
822
814
  throwDefaultError({
@@ -827,9 +819,9 @@ const deserializeAws_restJson1DescribeAssetCommandError = async (output, context
827
819
  });
828
820
  }
829
821
  };
830
- export const deserializeAws_restJson1DescribePackagingConfigurationCommand = async (output, context) => {
822
+ export const de_DescribePackagingConfigurationCommand = async (output, context) => {
831
823
  if (output.statusCode !== 200 && output.statusCode >= 300) {
832
- return deserializeAws_restJson1DescribePackagingConfigurationCommandError(output, context);
824
+ return de_DescribePackagingConfigurationCommandError(output, context);
833
825
  }
834
826
  const contents = map({
835
827
  $metadata: deserializeMetadata(output),
@@ -839,32 +831,32 @@ export const deserializeAws_restJson1DescribePackagingConfigurationCommand = asy
839
831
  contents.Arn = __expectString(data.arn);
840
832
  }
841
833
  if (data.cmafPackage != null) {
842
- contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
834
+ contents.CmafPackage = de_CmafPackage(data.cmafPackage, context);
843
835
  }
844
836
  if (data.createdAt != null) {
845
837
  contents.CreatedAt = __expectString(data.createdAt);
846
838
  }
847
839
  if (data.dashPackage != null) {
848
- contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
840
+ contents.DashPackage = de_DashPackage(data.dashPackage, context);
849
841
  }
850
842
  if (data.hlsPackage != null) {
851
- contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
843
+ contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
852
844
  }
853
845
  if (data.id != null) {
854
846
  contents.Id = __expectString(data.id);
855
847
  }
856
848
  if (data.mssPackage != null) {
857
- contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
849
+ contents.MssPackage = de_MssPackage(data.mssPackage, context);
858
850
  }
859
851
  if (data.packagingGroupId != null) {
860
852
  contents.PackagingGroupId = __expectString(data.packagingGroupId);
861
853
  }
862
854
  if (data.tags != null) {
863
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
855
+ contents.Tags = de_Tags(data.tags, context);
864
856
  }
865
857
  return contents;
866
858
  };
867
- const deserializeAws_restJson1DescribePackagingConfigurationCommandError = async (output, context) => {
859
+ const de_DescribePackagingConfigurationCommandError = async (output, context) => {
868
860
  const parsedOutput = {
869
861
  ...output,
870
862
  body: await parseErrorBody(output.body, context),
@@ -873,22 +865,22 @@ const deserializeAws_restJson1DescribePackagingConfigurationCommandError = async
873
865
  switch (errorCode) {
874
866
  case "ForbiddenException":
875
867
  case "com.amazonaws.mediapackagevod#ForbiddenException":
876
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
868
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
877
869
  case "InternalServerErrorException":
878
870
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
879
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
871
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
880
872
  case "NotFoundException":
881
873
  case "com.amazonaws.mediapackagevod#NotFoundException":
882
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
874
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
883
875
  case "ServiceUnavailableException":
884
876
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
885
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
877
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
886
878
  case "TooManyRequestsException":
887
879
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
888
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
880
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
889
881
  case "UnprocessableEntityException":
890
882
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
891
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
883
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
892
884
  default:
893
885
  const parsedBody = parsedOutput.body;
894
886
  throwDefaultError({
@@ -899,9 +891,9 @@ const deserializeAws_restJson1DescribePackagingConfigurationCommandError = async
899
891
  });
900
892
  }
901
893
  };
902
- export const deserializeAws_restJson1DescribePackagingGroupCommand = async (output, context) => {
894
+ export const de_DescribePackagingGroupCommand = async (output, context) => {
903
895
  if (output.statusCode !== 200 && output.statusCode >= 300) {
904
- return deserializeAws_restJson1DescribePackagingGroupCommandError(output, context);
896
+ return de_DescribePackagingGroupCommandError(output, context);
905
897
  }
906
898
  const contents = map({
907
899
  $metadata: deserializeMetadata(output),
@@ -914,7 +906,7 @@ export const deserializeAws_restJson1DescribePackagingGroupCommand = async (outp
914
906
  contents.Arn = __expectString(data.arn);
915
907
  }
916
908
  if (data.authorization != null) {
917
- contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
909
+ contents.Authorization = de_Authorization(data.authorization, context);
918
910
  }
919
911
  if (data.createdAt != null) {
920
912
  contents.CreatedAt = __expectString(data.createdAt);
@@ -923,17 +915,17 @@ export const deserializeAws_restJson1DescribePackagingGroupCommand = async (outp
923
915
  contents.DomainName = __expectString(data.domainName);
924
916
  }
925
917
  if (data.egressAccessLogs != null) {
926
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
918
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
927
919
  }
928
920
  if (data.id != null) {
929
921
  contents.Id = __expectString(data.id);
930
922
  }
931
923
  if (data.tags != null) {
932
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
924
+ contents.Tags = de_Tags(data.tags, context);
933
925
  }
934
926
  return contents;
935
927
  };
936
- const deserializeAws_restJson1DescribePackagingGroupCommandError = async (output, context) => {
928
+ const de_DescribePackagingGroupCommandError = async (output, context) => {
937
929
  const parsedOutput = {
938
930
  ...output,
939
931
  body: await parseErrorBody(output.body, context),
@@ -942,22 +934,22 @@ const deserializeAws_restJson1DescribePackagingGroupCommandError = async (output
942
934
  switch (errorCode) {
943
935
  case "ForbiddenException":
944
936
  case "com.amazonaws.mediapackagevod#ForbiddenException":
945
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
937
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
946
938
  case "InternalServerErrorException":
947
939
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
948
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
940
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
949
941
  case "NotFoundException":
950
942
  case "com.amazonaws.mediapackagevod#NotFoundException":
951
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
943
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
952
944
  case "ServiceUnavailableException":
953
945
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
954
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
946
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
955
947
  case "TooManyRequestsException":
956
948
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
957
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
949
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
958
950
  case "UnprocessableEntityException":
959
951
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
960
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
952
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
961
953
  default:
962
954
  const parsedBody = parsedOutput.body;
963
955
  throwDefaultError({
@@ -968,23 +960,23 @@ const deserializeAws_restJson1DescribePackagingGroupCommandError = async (output
968
960
  });
969
961
  }
970
962
  };
971
- export const deserializeAws_restJson1ListAssetsCommand = async (output, context) => {
963
+ export const de_ListAssetsCommand = async (output, context) => {
972
964
  if (output.statusCode !== 200 && output.statusCode >= 300) {
973
- return deserializeAws_restJson1ListAssetsCommandError(output, context);
965
+ return de_ListAssetsCommandError(output, context);
974
966
  }
975
967
  const contents = map({
976
968
  $metadata: deserializeMetadata(output),
977
969
  });
978
970
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
979
971
  if (data.assets != null) {
980
- contents.Assets = deserializeAws_restJson1__listOfAssetShallow(data.assets, context);
972
+ contents.Assets = de___listOfAssetShallow(data.assets, context);
981
973
  }
982
974
  if (data.nextToken != null) {
983
975
  contents.NextToken = __expectString(data.nextToken);
984
976
  }
985
977
  return contents;
986
978
  };
987
- const deserializeAws_restJson1ListAssetsCommandError = async (output, context) => {
979
+ const de_ListAssetsCommandError = async (output, context) => {
988
980
  const parsedOutput = {
989
981
  ...output,
990
982
  body: await parseErrorBody(output.body, context),
@@ -993,22 +985,22 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
993
985
  switch (errorCode) {
994
986
  case "ForbiddenException":
995
987
  case "com.amazonaws.mediapackagevod#ForbiddenException":
996
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
988
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
997
989
  case "InternalServerErrorException":
998
990
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
999
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
991
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1000
992
  case "NotFoundException":
1001
993
  case "com.amazonaws.mediapackagevod#NotFoundException":
1002
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
994
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1003
995
  case "ServiceUnavailableException":
1004
996
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
1005
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
997
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1006
998
  case "TooManyRequestsException":
1007
999
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
1008
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1000
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1009
1001
  case "UnprocessableEntityException":
1010
1002
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
1011
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1003
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1012
1004
  default:
1013
1005
  const parsedBody = parsedOutput.body;
1014
1006
  throwDefaultError({
@@ -1019,9 +1011,9 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
1019
1011
  });
1020
1012
  }
1021
1013
  };
1022
- export const deserializeAws_restJson1ListPackagingConfigurationsCommand = async (output, context) => {
1014
+ export const de_ListPackagingConfigurationsCommand = async (output, context) => {
1023
1015
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1024
- return deserializeAws_restJson1ListPackagingConfigurationsCommandError(output, context);
1016
+ return de_ListPackagingConfigurationsCommandError(output, context);
1025
1017
  }
1026
1018
  const contents = map({
1027
1019
  $metadata: deserializeMetadata(output),
@@ -1031,11 +1023,11 @@ export const deserializeAws_restJson1ListPackagingConfigurationsCommand = async
1031
1023
  contents.NextToken = __expectString(data.nextToken);
1032
1024
  }
1033
1025
  if (data.packagingConfigurations != null) {
1034
- contents.PackagingConfigurations = deserializeAws_restJson1__listOfPackagingConfiguration(data.packagingConfigurations, context);
1026
+ contents.PackagingConfigurations = de___listOfPackagingConfiguration(data.packagingConfigurations, context);
1035
1027
  }
1036
1028
  return contents;
1037
1029
  };
1038
- const deserializeAws_restJson1ListPackagingConfigurationsCommandError = async (output, context) => {
1030
+ const de_ListPackagingConfigurationsCommandError = async (output, context) => {
1039
1031
  const parsedOutput = {
1040
1032
  ...output,
1041
1033
  body: await parseErrorBody(output.body, context),
@@ -1044,22 +1036,22 @@ const deserializeAws_restJson1ListPackagingConfigurationsCommandError = async (o
1044
1036
  switch (errorCode) {
1045
1037
  case "ForbiddenException":
1046
1038
  case "com.amazonaws.mediapackagevod#ForbiddenException":
1047
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1039
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1048
1040
  case "InternalServerErrorException":
1049
1041
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
1050
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1042
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1051
1043
  case "NotFoundException":
1052
1044
  case "com.amazonaws.mediapackagevod#NotFoundException":
1053
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1045
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1054
1046
  case "ServiceUnavailableException":
1055
1047
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
1056
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1048
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1057
1049
  case "TooManyRequestsException":
1058
1050
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
1059
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1051
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1060
1052
  case "UnprocessableEntityException":
1061
1053
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
1062
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1054
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1063
1055
  default:
1064
1056
  const parsedBody = parsedOutput.body;
1065
1057
  throwDefaultError({
@@ -1070,9 +1062,9 @@ const deserializeAws_restJson1ListPackagingConfigurationsCommandError = async (o
1070
1062
  });
1071
1063
  }
1072
1064
  };
1073
- export const deserializeAws_restJson1ListPackagingGroupsCommand = async (output, context) => {
1065
+ export const de_ListPackagingGroupsCommand = async (output, context) => {
1074
1066
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1075
- return deserializeAws_restJson1ListPackagingGroupsCommandError(output, context);
1067
+ return de_ListPackagingGroupsCommandError(output, context);
1076
1068
  }
1077
1069
  const contents = map({
1078
1070
  $metadata: deserializeMetadata(output),
@@ -1082,11 +1074,11 @@ export const deserializeAws_restJson1ListPackagingGroupsCommand = async (output,
1082
1074
  contents.NextToken = __expectString(data.nextToken);
1083
1075
  }
1084
1076
  if (data.packagingGroups != null) {
1085
- contents.PackagingGroups = deserializeAws_restJson1__listOfPackagingGroup(data.packagingGroups, context);
1077
+ contents.PackagingGroups = de___listOfPackagingGroup(data.packagingGroups, context);
1086
1078
  }
1087
1079
  return contents;
1088
1080
  };
1089
- const deserializeAws_restJson1ListPackagingGroupsCommandError = async (output, context) => {
1081
+ const de_ListPackagingGroupsCommandError = async (output, context) => {
1090
1082
  const parsedOutput = {
1091
1083
  ...output,
1092
1084
  body: await parseErrorBody(output.body, context),
@@ -1095,22 +1087,22 @@ const deserializeAws_restJson1ListPackagingGroupsCommandError = async (output, c
1095
1087
  switch (errorCode) {
1096
1088
  case "ForbiddenException":
1097
1089
  case "com.amazonaws.mediapackagevod#ForbiddenException":
1098
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1090
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1099
1091
  case "InternalServerErrorException":
1100
1092
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
1101
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1093
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1102
1094
  case "NotFoundException":
1103
1095
  case "com.amazonaws.mediapackagevod#NotFoundException":
1104
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1096
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1105
1097
  case "ServiceUnavailableException":
1106
1098
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
1107
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1099
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1108
1100
  case "TooManyRequestsException":
1109
1101
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
1110
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1102
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1111
1103
  case "UnprocessableEntityException":
1112
1104
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
1113
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1105
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1114
1106
  default:
1115
1107
  const parsedBody = parsedOutput.body;
1116
1108
  throwDefaultError({
@@ -1121,20 +1113,20 @@ const deserializeAws_restJson1ListPackagingGroupsCommandError = async (output, c
1121
1113
  });
1122
1114
  }
1123
1115
  };
1124
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
1116
+ export const de_ListTagsForResourceCommand = async (output, context) => {
1125
1117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1126
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
1118
+ return de_ListTagsForResourceCommandError(output, context);
1127
1119
  }
1128
1120
  const contents = map({
1129
1121
  $metadata: deserializeMetadata(output),
1130
1122
  });
1131
1123
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1132
1124
  if (data.tags != null) {
1133
- contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1125
+ contents.Tags = de___mapOf__string(data.tags, context);
1134
1126
  }
1135
1127
  return contents;
1136
1128
  };
1137
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1129
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1138
1130
  const parsedOutput = {
1139
1131
  ...output,
1140
1132
  body: await parseErrorBody(output.body, context),
@@ -1148,9 +1140,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1148
1140
  errorCode,
1149
1141
  });
1150
1142
  };
1151
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1143
+ export const de_TagResourceCommand = async (output, context) => {
1152
1144
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1153
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1145
+ return de_TagResourceCommandError(output, context);
1154
1146
  }
1155
1147
  const contents = map({
1156
1148
  $metadata: deserializeMetadata(output),
@@ -1158,7 +1150,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
1158
1150
  await collectBody(output.body, context);
1159
1151
  return contents;
1160
1152
  };
1161
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1153
+ const de_TagResourceCommandError = async (output, context) => {
1162
1154
  const parsedOutput = {
1163
1155
  ...output,
1164
1156
  body: await parseErrorBody(output.body, context),
@@ -1172,9 +1164,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1172
1164
  errorCode,
1173
1165
  });
1174
1166
  };
1175
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1167
+ export const de_UntagResourceCommand = async (output, context) => {
1176
1168
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1177
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1169
+ return de_UntagResourceCommandError(output, context);
1178
1170
  }
1179
1171
  const contents = map({
1180
1172
  $metadata: deserializeMetadata(output),
@@ -1182,7 +1174,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
1182
1174
  await collectBody(output.body, context);
1183
1175
  return contents;
1184
1176
  };
1185
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1177
+ const de_UntagResourceCommandError = async (output, context) => {
1186
1178
  const parsedOutput = {
1187
1179
  ...output,
1188
1180
  body: await parseErrorBody(output.body, context),
@@ -1196,9 +1188,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1196
1188
  errorCode,
1197
1189
  });
1198
1190
  };
1199
- export const deserializeAws_restJson1UpdatePackagingGroupCommand = async (output, context) => {
1191
+ export const de_UpdatePackagingGroupCommand = async (output, context) => {
1200
1192
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1201
- return deserializeAws_restJson1UpdatePackagingGroupCommandError(output, context);
1193
+ return de_UpdatePackagingGroupCommandError(output, context);
1202
1194
  }
1203
1195
  const contents = map({
1204
1196
  $metadata: deserializeMetadata(output),
@@ -1211,7 +1203,7 @@ export const deserializeAws_restJson1UpdatePackagingGroupCommand = async (output
1211
1203
  contents.Arn = __expectString(data.arn);
1212
1204
  }
1213
1205
  if (data.authorization != null) {
1214
- contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
1206
+ contents.Authorization = de_Authorization(data.authorization, context);
1215
1207
  }
1216
1208
  if (data.createdAt != null) {
1217
1209
  contents.CreatedAt = __expectString(data.createdAt);
@@ -1220,17 +1212,17 @@ export const deserializeAws_restJson1UpdatePackagingGroupCommand = async (output
1220
1212
  contents.DomainName = __expectString(data.domainName);
1221
1213
  }
1222
1214
  if (data.egressAccessLogs != null) {
1223
- contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
1215
+ contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
1224
1216
  }
1225
1217
  if (data.id != null) {
1226
1218
  contents.Id = __expectString(data.id);
1227
1219
  }
1228
1220
  if (data.tags != null) {
1229
- contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
1221
+ contents.Tags = de_Tags(data.tags, context);
1230
1222
  }
1231
1223
  return contents;
1232
1224
  };
1233
- const deserializeAws_restJson1UpdatePackagingGroupCommandError = async (output, context) => {
1225
+ const de_UpdatePackagingGroupCommandError = async (output, context) => {
1234
1226
  const parsedOutput = {
1235
1227
  ...output,
1236
1228
  body: await parseErrorBody(output.body, context),
@@ -1239,22 +1231,22 @@ const deserializeAws_restJson1UpdatePackagingGroupCommandError = async (output,
1239
1231
  switch (errorCode) {
1240
1232
  case "ForbiddenException":
1241
1233
  case "com.amazonaws.mediapackagevod#ForbiddenException":
1242
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1234
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1243
1235
  case "InternalServerErrorException":
1244
1236
  case "com.amazonaws.mediapackagevod#InternalServerErrorException":
1245
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1237
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1246
1238
  case "NotFoundException":
1247
1239
  case "com.amazonaws.mediapackagevod#NotFoundException":
1248
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1240
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1249
1241
  case "ServiceUnavailableException":
1250
1242
  case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
1251
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1243
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1252
1244
  case "TooManyRequestsException":
1253
1245
  case "com.amazonaws.mediapackagevod#TooManyRequestsException":
1254
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1246
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1255
1247
  case "UnprocessableEntityException":
1256
1248
  case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
1257
- throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
1249
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1258
1250
  default:
1259
1251
  const parsedBody = parsedOutput.body;
1260
1252
  throwDefaultError({
@@ -1266,7 +1258,7 @@ const deserializeAws_restJson1UpdatePackagingGroupCommandError = async (output,
1266
1258
  }
1267
1259
  };
1268
1260
  const map = __map;
1269
- const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
1261
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1270
1262
  const contents = map({});
1271
1263
  const data = parsedOutput.body;
1272
1264
  if (data.message != null) {
@@ -1278,7 +1270,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
1278
1270
  });
1279
1271
  return __decorateServiceException(exception, parsedOutput.body);
1280
1272
  };
1281
- const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
1273
+ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
1282
1274
  const contents = map({});
1283
1275
  const data = parsedOutput.body;
1284
1276
  if (data.message != null) {
@@ -1290,7 +1282,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
1290
1282
  });
1291
1283
  return __decorateServiceException(exception, parsedOutput.body);
1292
1284
  };
1293
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
1285
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1294
1286
  const contents = map({});
1295
1287
  const data = parsedOutput.body;
1296
1288
  if (data.message != null) {
@@ -1302,7 +1294,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
1302
1294
  });
1303
1295
  return __decorateServiceException(exception, parsedOutput.body);
1304
1296
  };
1305
- const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
1297
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1306
1298
  const contents = map({});
1307
1299
  const data = parsedOutput.body;
1308
1300
  if (data.message != null) {
@@ -1314,7 +1306,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
1314
1306
  });
1315
1307
  return __decorateServiceException(exception, parsedOutput.body);
1316
1308
  };
1317
- const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
1309
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1318
1310
  const contents = map({});
1319
1311
  const data = parsedOutput.body;
1320
1312
  if (data.message != null) {
@@ -1326,7 +1318,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
1326
1318
  });
1327
1319
  return __decorateServiceException(exception, parsedOutput.body);
1328
1320
  };
1329
- const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
1321
+ const de_UnprocessableEntityExceptionRes = async (parsedOutput, context) => {
1330
1322
  const contents = map({});
1331
1323
  const data = parsedOutput.body;
1332
1324
  if (data.message != null) {
@@ -1338,42 +1330,42 @@ const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (pars
1338
1330
  });
1339
1331
  return __decorateServiceException(exception, parsedOutput.body);
1340
1332
  };
1341
- const serializeAws_restJson1__listOf__PeriodTriggersElement = (input, context) => {
1333
+ const se___listOf__PeriodTriggersElement = (input, context) => {
1342
1334
  return input
1343
1335
  .filter((e) => e != null)
1344
1336
  .map((entry) => {
1345
1337
  return entry;
1346
1338
  });
1347
1339
  };
1348
- const serializeAws_restJson1__listOf__string = (input, context) => {
1340
+ const se___listOf__string = (input, context) => {
1349
1341
  return input
1350
1342
  .filter((e) => e != null)
1351
1343
  .map((entry) => {
1352
1344
  return entry;
1353
1345
  });
1354
1346
  };
1355
- const serializeAws_restJson1__listOfDashManifest = (input, context) => {
1347
+ const se___listOfDashManifest = (input, context) => {
1356
1348
  return input
1357
1349
  .filter((e) => e != null)
1358
1350
  .map((entry) => {
1359
- return serializeAws_restJson1DashManifest(entry, context);
1351
+ return se_DashManifest(entry, context);
1360
1352
  });
1361
1353
  };
1362
- const serializeAws_restJson1__listOfHlsManifest = (input, context) => {
1354
+ const se___listOfHlsManifest = (input, context) => {
1363
1355
  return input
1364
1356
  .filter((e) => e != null)
1365
1357
  .map((entry) => {
1366
- return serializeAws_restJson1HlsManifest(entry, context);
1358
+ return se_HlsManifest(entry, context);
1367
1359
  });
1368
1360
  };
1369
- const serializeAws_restJson1__listOfMssManifest = (input, context) => {
1361
+ const se___listOfMssManifest = (input, context) => {
1370
1362
  return input
1371
1363
  .filter((e) => e != null)
1372
1364
  .map((entry) => {
1373
- return serializeAws_restJson1MssManifest(entry, context);
1365
+ return se_MssManifest(entry, context);
1374
1366
  });
1375
1367
  };
1376
- const serializeAws_restJson1__mapOf__string = (input, context) => {
1368
+ const se___mapOf__string = (input, context) => {
1377
1369
  return Object.entries(input).reduce((acc, [key, value]) => {
1378
1370
  if (value === null) {
1379
1371
  return acc;
@@ -1382,93 +1374,81 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
1382
1374
  return acc;
1383
1375
  }, {});
1384
1376
  };
1385
- const serializeAws_restJson1Authorization = (input, context) => {
1377
+ const se_Authorization = (input, context) => {
1386
1378
  return {
1387
1379
  ...(input.CdnIdentifierSecret != null && { cdnIdentifierSecret: input.CdnIdentifierSecret }),
1388
1380
  ...(input.SecretsRoleArn != null && { secretsRoleArn: input.SecretsRoleArn }),
1389
1381
  };
1390
1382
  };
1391
- const serializeAws_restJson1CmafEncryption = (input, context) => {
1383
+ const se_CmafEncryption = (input, context) => {
1392
1384
  return {
1393
1385
  ...(input.ConstantInitializationVector != null && {
1394
1386
  constantInitializationVector: input.ConstantInitializationVector,
1395
1387
  }),
1396
- ...(input.SpekeKeyProvider != null && {
1397
- spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1398
- }),
1388
+ ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1399
1389
  };
1400
1390
  };
1401
- const serializeAws_restJson1CmafPackage = (input, context) => {
1391
+ const se_CmafPackage = (input, context) => {
1402
1392
  return {
1403
- ...(input.Encryption != null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) }),
1404
- ...(input.HlsManifests != null && {
1405
- hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
1406
- }),
1393
+ ...(input.Encryption != null && { encryption: se_CmafEncryption(input.Encryption, context) }),
1394
+ ...(input.HlsManifests != null && { hlsManifests: se___listOfHlsManifest(input.HlsManifests, context) }),
1407
1395
  ...(input.IncludeEncoderConfigurationInSegments != null && {
1408
1396
  includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
1409
1397
  }),
1410
1398
  ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1411
1399
  };
1412
1400
  };
1413
- const serializeAws_restJson1DashEncryption = (input, context) => {
1401
+ const se_DashEncryption = (input, context) => {
1414
1402
  return {
1415
- ...(input.SpekeKeyProvider != null && {
1416
- spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1417
- }),
1403
+ ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1418
1404
  };
1419
1405
  };
1420
- const serializeAws_restJson1DashManifest = (input, context) => {
1406
+ const se_DashManifest = (input, context) => {
1421
1407
  return {
1422
1408
  ...(input.ManifestLayout != null && { manifestLayout: input.ManifestLayout }),
1423
1409
  ...(input.ManifestName != null && { manifestName: input.ManifestName }),
1424
1410
  ...(input.MinBufferTimeSeconds != null && { minBufferTimeSeconds: input.MinBufferTimeSeconds }),
1425
1411
  ...(input.Profile != null && { profile: input.Profile }),
1426
1412
  ...(input.ScteMarkersSource != null && { scteMarkersSource: input.ScteMarkersSource }),
1427
- ...(input.StreamSelection != null && {
1428
- streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1429
- }),
1413
+ ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1430
1414
  };
1431
1415
  };
1432
- const serializeAws_restJson1DashPackage = (input, context) => {
1416
+ const se_DashPackage = (input, context) => {
1433
1417
  return {
1434
- ...(input.DashManifests != null && {
1435
- dashManifests: serializeAws_restJson1__listOfDashManifest(input.DashManifests, context),
1436
- }),
1437
- ...(input.Encryption != null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) }),
1418
+ ...(input.DashManifests != null && { dashManifests: se___listOfDashManifest(input.DashManifests, context) }),
1419
+ ...(input.Encryption != null && { encryption: se_DashEncryption(input.Encryption, context) }),
1438
1420
  ...(input.IncludeEncoderConfigurationInSegments != null && {
1439
1421
  includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
1440
1422
  }),
1441
1423
  ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
1442
1424
  ...(input.PeriodTriggers != null && {
1443
- periodTriggers: serializeAws_restJson1__listOf__PeriodTriggersElement(input.PeriodTriggers, context),
1425
+ periodTriggers: se___listOf__PeriodTriggersElement(input.PeriodTriggers, context),
1444
1426
  }),
1445
1427
  ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1446
1428
  ...(input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat }),
1447
1429
  };
1448
1430
  };
1449
- const serializeAws_restJson1EgressAccessLogs = (input, context) => {
1431
+ const se_EgressAccessLogs = (input, context) => {
1450
1432
  return {
1451
1433
  ...(input.LogGroupName != null && { logGroupName: input.LogGroupName }),
1452
1434
  };
1453
1435
  };
1454
- const serializeAws_restJson1EncryptionContractConfiguration = (input, context) => {
1436
+ const se_EncryptionContractConfiguration = (input, context) => {
1455
1437
  return {
1456
1438
  ...(input.PresetSpeke20Audio != null && { presetSpeke20Audio: input.PresetSpeke20Audio }),
1457
1439
  ...(input.PresetSpeke20Video != null && { presetSpeke20Video: input.PresetSpeke20Video }),
1458
1440
  };
1459
1441
  };
1460
- const serializeAws_restJson1HlsEncryption = (input, context) => {
1442
+ const se_HlsEncryption = (input, context) => {
1461
1443
  return {
1462
1444
  ...(input.ConstantInitializationVector != null && {
1463
1445
  constantInitializationVector: input.ConstantInitializationVector,
1464
1446
  }),
1465
1447
  ...(input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod }),
1466
- ...(input.SpekeKeyProvider != null && {
1467
- spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1468
- }),
1448
+ ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1469
1449
  };
1470
1450
  };
1471
- const serializeAws_restJson1HlsManifest = (input, context) => {
1451
+ const se_HlsManifest = (input, context) => {
1472
1452
  return {
1473
1453
  ...(input.AdMarkers != null && { adMarkers: input.AdMarkers }),
1474
1454
  ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
@@ -1477,64 +1457,54 @@ const serializeAws_restJson1HlsManifest = (input, context) => {
1477
1457
  programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
1478
1458
  }),
1479
1459
  ...(input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey }),
1480
- ...(input.StreamSelection != null && {
1481
- streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1482
- }),
1460
+ ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1483
1461
  };
1484
1462
  };
1485
- const serializeAws_restJson1HlsPackage = (input, context) => {
1463
+ const se_HlsPackage = (input, context) => {
1486
1464
  return {
1487
- ...(input.Encryption != null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) }),
1488
- ...(input.HlsManifests != null && {
1489
- hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
1490
- }),
1465
+ ...(input.Encryption != null && { encryption: se_HlsEncryption(input.Encryption, context) }),
1466
+ ...(input.HlsManifests != null && { hlsManifests: se___listOfHlsManifest(input.HlsManifests, context) }),
1491
1467
  ...(input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles }),
1492
1468
  ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1493
1469
  ...(input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
1494
1470
  };
1495
1471
  };
1496
- const serializeAws_restJson1MssEncryption = (input, context) => {
1472
+ const se_MssEncryption = (input, context) => {
1497
1473
  return {
1498
- ...(input.SpekeKeyProvider != null && {
1499
- spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1500
- }),
1474
+ ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1501
1475
  };
1502
1476
  };
1503
- const serializeAws_restJson1MssManifest = (input, context) => {
1477
+ const se_MssManifest = (input, context) => {
1504
1478
  return {
1505
1479
  ...(input.ManifestName != null && { manifestName: input.ManifestName }),
1506
- ...(input.StreamSelection != null && {
1507
- streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1508
- }),
1480
+ ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1509
1481
  };
1510
1482
  };
1511
- const serializeAws_restJson1MssPackage = (input, context) => {
1483
+ const se_MssPackage = (input, context) => {
1512
1484
  return {
1513
- ...(input.Encryption != null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) }),
1514
- ...(input.MssManifests != null && {
1515
- mssManifests: serializeAws_restJson1__listOfMssManifest(input.MssManifests, context),
1516
- }),
1485
+ ...(input.Encryption != null && { encryption: se_MssEncryption(input.Encryption, context) }),
1486
+ ...(input.MssManifests != null && { mssManifests: se___listOfMssManifest(input.MssManifests, context) }),
1517
1487
  ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1518
1488
  };
1519
1489
  };
1520
- const serializeAws_restJson1SpekeKeyProvider = (input, context) => {
1490
+ const se_SpekeKeyProvider = (input, context) => {
1521
1491
  return {
1522
1492
  ...(input.EncryptionContractConfiguration != null && {
1523
- encryptionContractConfiguration: serializeAws_restJson1EncryptionContractConfiguration(input.EncryptionContractConfiguration, context),
1493
+ encryptionContractConfiguration: se_EncryptionContractConfiguration(input.EncryptionContractConfiguration, context),
1524
1494
  }),
1525
1495
  ...(input.RoleArn != null && { roleArn: input.RoleArn }),
1526
- ...(input.SystemIds != null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) }),
1496
+ ...(input.SystemIds != null && { systemIds: se___listOf__string(input.SystemIds, context) }),
1527
1497
  ...(input.Url != null && { url: input.Url }),
1528
1498
  };
1529
1499
  };
1530
- const serializeAws_restJson1StreamSelection = (input, context) => {
1500
+ const se_StreamSelection = (input, context) => {
1531
1501
  return {
1532
1502
  ...(input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
1533
1503
  ...(input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
1534
1504
  ...(input.StreamOrder != null && { streamOrder: input.StreamOrder }),
1535
1505
  };
1536
1506
  };
1537
- const serializeAws_restJson1Tags = (input, context) => {
1507
+ const se_Tags = (input, context) => {
1538
1508
  return Object.entries(input).reduce((acc, [key, value]) => {
1539
1509
  if (value === null) {
1540
1510
  return acc;
@@ -1543,7 +1513,7 @@ const serializeAws_restJson1Tags = (input, context) => {
1543
1513
  return acc;
1544
1514
  }, {});
1545
1515
  };
1546
- const deserializeAws_restJson1__listOf__PeriodTriggersElement = (output, context) => {
1516
+ const de___listOf__PeriodTriggersElement = (output, context) => {
1547
1517
  const retVal = (output || [])
1548
1518
  .filter((e) => e != null)
1549
1519
  .map((entry) => {
@@ -1554,7 +1524,7 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = (output, context
1554
1524
  });
1555
1525
  return retVal;
1556
1526
  };
1557
- const deserializeAws_restJson1__listOf__string = (output, context) => {
1527
+ const de___listOf__string = (output, context) => {
1558
1528
  const retVal = (output || [])
1559
1529
  .filter((e) => e != null)
1560
1530
  .map((entry) => {
@@ -1565,84 +1535,84 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
1565
1535
  });
1566
1536
  return retVal;
1567
1537
  };
1568
- const deserializeAws_restJson1__listOfAssetShallow = (output, context) => {
1538
+ const de___listOfAssetShallow = (output, context) => {
1569
1539
  const retVal = (output || [])
1570
1540
  .filter((e) => e != null)
1571
1541
  .map((entry) => {
1572
1542
  if (entry === null) {
1573
1543
  return null;
1574
1544
  }
1575
- return deserializeAws_restJson1AssetShallow(entry, context);
1545
+ return de_AssetShallow(entry, context);
1576
1546
  });
1577
1547
  return retVal;
1578
1548
  };
1579
- const deserializeAws_restJson1__listOfDashManifest = (output, context) => {
1549
+ const de___listOfDashManifest = (output, context) => {
1580
1550
  const retVal = (output || [])
1581
1551
  .filter((e) => e != null)
1582
1552
  .map((entry) => {
1583
1553
  if (entry === null) {
1584
1554
  return null;
1585
1555
  }
1586
- return deserializeAws_restJson1DashManifest(entry, context);
1556
+ return de_DashManifest(entry, context);
1587
1557
  });
1588
1558
  return retVal;
1589
1559
  };
1590
- const deserializeAws_restJson1__listOfEgressEndpoint = (output, context) => {
1560
+ const de___listOfEgressEndpoint = (output, context) => {
1591
1561
  const retVal = (output || [])
1592
1562
  .filter((e) => e != null)
1593
1563
  .map((entry) => {
1594
1564
  if (entry === null) {
1595
1565
  return null;
1596
1566
  }
1597
- return deserializeAws_restJson1EgressEndpoint(entry, context);
1567
+ return de_EgressEndpoint(entry, context);
1598
1568
  });
1599
1569
  return retVal;
1600
1570
  };
1601
- const deserializeAws_restJson1__listOfHlsManifest = (output, context) => {
1571
+ const de___listOfHlsManifest = (output, context) => {
1602
1572
  const retVal = (output || [])
1603
1573
  .filter((e) => e != null)
1604
1574
  .map((entry) => {
1605
1575
  if (entry === null) {
1606
1576
  return null;
1607
1577
  }
1608
- return deserializeAws_restJson1HlsManifest(entry, context);
1578
+ return de_HlsManifest(entry, context);
1609
1579
  });
1610
1580
  return retVal;
1611
1581
  };
1612
- const deserializeAws_restJson1__listOfMssManifest = (output, context) => {
1582
+ const de___listOfMssManifest = (output, context) => {
1613
1583
  const retVal = (output || [])
1614
1584
  .filter((e) => e != null)
1615
1585
  .map((entry) => {
1616
1586
  if (entry === null) {
1617
1587
  return null;
1618
1588
  }
1619
- return deserializeAws_restJson1MssManifest(entry, context);
1589
+ return de_MssManifest(entry, context);
1620
1590
  });
1621
1591
  return retVal;
1622
1592
  };
1623
- const deserializeAws_restJson1__listOfPackagingConfiguration = (output, context) => {
1593
+ const de___listOfPackagingConfiguration = (output, context) => {
1624
1594
  const retVal = (output || [])
1625
1595
  .filter((e) => e != null)
1626
1596
  .map((entry) => {
1627
1597
  if (entry === null) {
1628
1598
  return null;
1629
1599
  }
1630
- return deserializeAws_restJson1PackagingConfiguration(entry, context);
1600
+ return de_PackagingConfiguration(entry, context);
1631
1601
  });
1632
1602
  return retVal;
1633
1603
  };
1634
- const deserializeAws_restJson1__listOfPackagingGroup = (output, context) => {
1604
+ const de___listOfPackagingGroup = (output, context) => {
1635
1605
  const retVal = (output || [])
1636
1606
  .filter((e) => e != null)
1637
1607
  .map((entry) => {
1638
1608
  if (entry === null) {
1639
1609
  return null;
1640
1610
  }
1641
- return deserializeAws_restJson1PackagingGroup(entry, context);
1611
+ return de_PackagingGroup(entry, context);
1642
1612
  });
1643
1613
  return retVal;
1644
1614
  };
1645
- const deserializeAws_restJson1__mapOf__string = (output, context) => {
1615
+ const de___mapOf__string = (output, context) => {
1646
1616
  return Object.entries(output).reduce((acc, [key, value]) => {
1647
1617
  if (value === null) {
1648
1618
  return acc;
@@ -1651,7 +1621,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
1651
1621
  return acc;
1652
1622
  }, {});
1653
1623
  };
1654
- const deserializeAws_restJson1AssetShallow = (output, context) => {
1624
+ const de_AssetShallow = (output, context) => {
1655
1625
  return {
1656
1626
  Arn: __expectString(output.arn),
1657
1627
  CreatedAt: __expectString(output.createdAt),
@@ -1660,186 +1630,160 @@ const deserializeAws_restJson1AssetShallow = (output, context) => {
1660
1630
  ResourceId: __expectString(output.resourceId),
1661
1631
  SourceArn: __expectString(output.sourceArn),
1662
1632
  SourceRoleArn: __expectString(output.sourceRoleArn),
1663
- Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1633
+ Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1664
1634
  };
1665
1635
  };
1666
- const deserializeAws_restJson1Authorization = (output, context) => {
1636
+ const de_Authorization = (output, context) => {
1667
1637
  return {
1668
1638
  CdnIdentifierSecret: __expectString(output.cdnIdentifierSecret),
1669
1639
  SecretsRoleArn: __expectString(output.secretsRoleArn),
1670
1640
  };
1671
1641
  };
1672
- const deserializeAws_restJson1CmafEncryption = (output, context) => {
1642
+ const de_CmafEncryption = (output, context) => {
1673
1643
  return {
1674
1644
  ConstantInitializationVector: __expectString(output.constantInitializationVector),
1675
- SpekeKeyProvider: output.spekeKeyProvider != null
1676
- ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
1677
- : undefined,
1645
+ SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
1678
1646
  };
1679
1647
  };
1680
- const deserializeAws_restJson1CmafPackage = (output, context) => {
1648
+ const de_CmafPackage = (output, context) => {
1681
1649
  return {
1682
- Encryption: output.encryption != null ? deserializeAws_restJson1CmafEncryption(output.encryption, context) : undefined,
1683
- HlsManifests: output.hlsManifests != null
1684
- ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
1685
- : undefined,
1650
+ Encryption: output.encryption != null ? de_CmafEncryption(output.encryption, context) : undefined,
1651
+ HlsManifests: output.hlsManifests != null ? de___listOfHlsManifest(output.hlsManifests, context) : undefined,
1686
1652
  IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments),
1687
1653
  SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
1688
1654
  };
1689
1655
  };
1690
- const deserializeAws_restJson1DashEncryption = (output, context) => {
1656
+ const de_DashEncryption = (output, context) => {
1691
1657
  return {
1692
- SpekeKeyProvider: output.spekeKeyProvider != null
1693
- ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
1694
- : undefined,
1658
+ SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
1695
1659
  };
1696
1660
  };
1697
- const deserializeAws_restJson1DashManifest = (output, context) => {
1661
+ const de_DashManifest = (output, context) => {
1698
1662
  return {
1699
1663
  ManifestLayout: __expectString(output.manifestLayout),
1700
1664
  ManifestName: __expectString(output.manifestName),
1701
1665
  MinBufferTimeSeconds: __expectInt32(output.minBufferTimeSeconds),
1702
1666
  Profile: __expectString(output.profile),
1703
1667
  ScteMarkersSource: __expectString(output.scteMarkersSource),
1704
- StreamSelection: output.streamSelection != null
1705
- ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
1706
- : undefined,
1668
+ StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
1707
1669
  };
1708
1670
  };
1709
- const deserializeAws_restJson1DashPackage = (output, context) => {
1671
+ const de_DashPackage = (output, context) => {
1710
1672
  return {
1711
- DashManifests: output.dashManifests != null
1712
- ? deserializeAws_restJson1__listOfDashManifest(output.dashManifests, context)
1713
- : undefined,
1714
- Encryption: output.encryption != null ? deserializeAws_restJson1DashEncryption(output.encryption, context) : undefined,
1673
+ DashManifests: output.dashManifests != null ? de___listOfDashManifest(output.dashManifests, context) : undefined,
1674
+ Encryption: output.encryption != null ? de_DashEncryption(output.encryption, context) : undefined,
1715
1675
  IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments),
1716
1676
  IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
1717
- PeriodTriggers: output.periodTriggers != null
1718
- ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
1719
- : undefined,
1677
+ PeriodTriggers: output.periodTriggers != null ? de___listOf__PeriodTriggersElement(output.periodTriggers, context) : undefined,
1720
1678
  SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
1721
1679
  SegmentTemplateFormat: __expectString(output.segmentTemplateFormat),
1722
1680
  };
1723
1681
  };
1724
- const deserializeAws_restJson1EgressAccessLogs = (output, context) => {
1682
+ const de_EgressAccessLogs = (output, context) => {
1725
1683
  return {
1726
1684
  LogGroupName: __expectString(output.logGroupName),
1727
1685
  };
1728
1686
  };
1729
- const deserializeAws_restJson1EgressEndpoint = (output, context) => {
1687
+ const de_EgressEndpoint = (output, context) => {
1730
1688
  return {
1731
1689
  PackagingConfigurationId: __expectString(output.packagingConfigurationId),
1732
1690
  Status: __expectString(output.status),
1733
1691
  Url: __expectString(output.url),
1734
1692
  };
1735
1693
  };
1736
- const deserializeAws_restJson1EncryptionContractConfiguration = (output, context) => {
1694
+ const de_EncryptionContractConfiguration = (output, context) => {
1737
1695
  return {
1738
1696
  PresetSpeke20Audio: __expectString(output.presetSpeke20Audio),
1739
1697
  PresetSpeke20Video: __expectString(output.presetSpeke20Video),
1740
1698
  };
1741
1699
  };
1742
- const deserializeAws_restJson1HlsEncryption = (output, context) => {
1700
+ const de_HlsEncryption = (output, context) => {
1743
1701
  return {
1744
1702
  ConstantInitializationVector: __expectString(output.constantInitializationVector),
1745
1703
  EncryptionMethod: __expectString(output.encryptionMethod),
1746
- SpekeKeyProvider: output.spekeKeyProvider != null
1747
- ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
1748
- : undefined,
1704
+ SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
1749
1705
  };
1750
1706
  };
1751
- const deserializeAws_restJson1HlsManifest = (output, context) => {
1707
+ const de_HlsManifest = (output, context) => {
1752
1708
  return {
1753
1709
  AdMarkers: __expectString(output.adMarkers),
1754
1710
  IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
1755
1711
  ManifestName: __expectString(output.manifestName),
1756
1712
  ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds),
1757
1713
  RepeatExtXKey: __expectBoolean(output.repeatExtXKey),
1758
- StreamSelection: output.streamSelection != null
1759
- ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
1760
- : undefined,
1714
+ StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
1761
1715
  };
1762
1716
  };
1763
- const deserializeAws_restJson1HlsPackage = (output, context) => {
1717
+ const de_HlsPackage = (output, context) => {
1764
1718
  return {
1765
- Encryption: output.encryption != null ? deserializeAws_restJson1HlsEncryption(output.encryption, context) : undefined,
1766
- HlsManifests: output.hlsManifests != null
1767
- ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
1768
- : undefined,
1719
+ Encryption: output.encryption != null ? de_HlsEncryption(output.encryption, context) : undefined,
1720
+ HlsManifests: output.hlsManifests != null ? de___listOfHlsManifest(output.hlsManifests, context) : undefined,
1769
1721
  IncludeDvbSubtitles: __expectBoolean(output.includeDvbSubtitles),
1770
1722
  SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
1771
1723
  UseAudioRenditionGroup: __expectBoolean(output.useAudioRenditionGroup),
1772
1724
  };
1773
1725
  };
1774
- const deserializeAws_restJson1MssEncryption = (output, context) => {
1726
+ const de_MssEncryption = (output, context) => {
1775
1727
  return {
1776
- SpekeKeyProvider: output.spekeKeyProvider != null
1777
- ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
1778
- : undefined,
1728
+ SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
1779
1729
  };
1780
1730
  };
1781
- const deserializeAws_restJson1MssManifest = (output, context) => {
1731
+ const de_MssManifest = (output, context) => {
1782
1732
  return {
1783
1733
  ManifestName: __expectString(output.manifestName),
1784
- StreamSelection: output.streamSelection != null
1785
- ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
1786
- : undefined,
1734
+ StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
1787
1735
  };
1788
1736
  };
1789
- const deserializeAws_restJson1MssPackage = (output, context) => {
1737
+ const de_MssPackage = (output, context) => {
1790
1738
  return {
1791
- Encryption: output.encryption != null ? deserializeAws_restJson1MssEncryption(output.encryption, context) : undefined,
1792
- MssManifests: output.mssManifests != null
1793
- ? deserializeAws_restJson1__listOfMssManifest(output.mssManifests, context)
1794
- : undefined,
1739
+ Encryption: output.encryption != null ? de_MssEncryption(output.encryption, context) : undefined,
1740
+ MssManifests: output.mssManifests != null ? de___listOfMssManifest(output.mssManifests, context) : undefined,
1795
1741
  SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
1796
1742
  };
1797
1743
  };
1798
- const deserializeAws_restJson1PackagingConfiguration = (output, context) => {
1744
+ const de_PackagingConfiguration = (output, context) => {
1799
1745
  return {
1800
1746
  Arn: __expectString(output.arn),
1801
- CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
1747
+ CmafPackage: output.cmafPackage != null ? de_CmafPackage(output.cmafPackage, context) : undefined,
1802
1748
  CreatedAt: __expectString(output.createdAt),
1803
- DashPackage: output.dashPackage != null ? deserializeAws_restJson1DashPackage(output.dashPackage, context) : undefined,
1804
- HlsPackage: output.hlsPackage != null ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context) : undefined,
1749
+ DashPackage: output.dashPackage != null ? de_DashPackage(output.dashPackage, context) : undefined,
1750
+ HlsPackage: output.hlsPackage != null ? de_HlsPackage(output.hlsPackage, context) : undefined,
1805
1751
  Id: __expectString(output.id),
1806
- MssPackage: output.mssPackage != null ? deserializeAws_restJson1MssPackage(output.mssPackage, context) : undefined,
1752
+ MssPackage: output.mssPackage != null ? de_MssPackage(output.mssPackage, context) : undefined,
1807
1753
  PackagingGroupId: __expectString(output.packagingGroupId),
1808
- Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1754
+ Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1809
1755
  };
1810
1756
  };
1811
- const deserializeAws_restJson1PackagingGroup = (output, context) => {
1757
+ const de_PackagingGroup = (output, context) => {
1812
1758
  return {
1813
1759
  ApproximateAssetCount: __expectInt32(output.approximateAssetCount),
1814
1760
  Arn: __expectString(output.arn),
1815
- Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
1761
+ Authorization: output.authorization != null ? de_Authorization(output.authorization, context) : undefined,
1816
1762
  CreatedAt: __expectString(output.createdAt),
1817
1763
  DomainName: __expectString(output.domainName),
1818
- EgressAccessLogs: output.egressAccessLogs != null
1819
- ? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
1820
- : undefined,
1764
+ EgressAccessLogs: output.egressAccessLogs != null ? de_EgressAccessLogs(output.egressAccessLogs, context) : undefined,
1821
1765
  Id: __expectString(output.id),
1822
- Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1766
+ Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1823
1767
  };
1824
1768
  };
1825
- const deserializeAws_restJson1SpekeKeyProvider = (output, context) => {
1769
+ const de_SpekeKeyProvider = (output, context) => {
1826
1770
  return {
1827
1771
  EncryptionContractConfiguration: output.encryptionContractConfiguration != null
1828
- ? deserializeAws_restJson1EncryptionContractConfiguration(output.encryptionContractConfiguration, context)
1772
+ ? de_EncryptionContractConfiguration(output.encryptionContractConfiguration, context)
1829
1773
  : undefined,
1830
1774
  RoleArn: __expectString(output.roleArn),
1831
- SystemIds: output.systemIds != null ? deserializeAws_restJson1__listOf__string(output.systemIds, context) : undefined,
1775
+ SystemIds: output.systemIds != null ? de___listOf__string(output.systemIds, context) : undefined,
1832
1776
  Url: __expectString(output.url),
1833
1777
  };
1834
1778
  };
1835
- const deserializeAws_restJson1StreamSelection = (output, context) => {
1779
+ const de_StreamSelection = (output, context) => {
1836
1780
  return {
1837
1781
  MaxVideoBitsPerSecond: __expectInt32(output.maxVideoBitsPerSecond),
1838
1782
  MinVideoBitsPerSecond: __expectInt32(output.minVideoBitsPerSecond),
1839
1783
  StreamOrder: __expectString(output.streamOrder),
1840
1784
  };
1841
1785
  };
1842
- const deserializeAws_restJson1Tags = (output, context) => {
1786
+ const de_Tags = (output, context) => {
1843
1787
  return Object.entries(output).reduce((acc, [key, value]) => {
1844
1788
  if (value === null) {
1845
1789
  return acc;