@aws-sdk/client-mediapackage-vod 3.303.0 → 3.309.0

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