@aws-sdk/client-ivs 3.306.0 → 3.310.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist-cjs/commands/BatchGetChannelCommand.js +2 -2
  2. package/dist-cjs/commands/BatchGetStreamKeyCommand.js +2 -2
  3. package/dist-cjs/commands/CreateChannelCommand.js +2 -2
  4. package/dist-cjs/commands/CreateRecordingConfigurationCommand.js +2 -2
  5. package/dist-cjs/commands/CreateStreamKeyCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteChannelCommand.js +2 -2
  7. package/dist-cjs/commands/DeletePlaybackKeyPairCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteRecordingConfigurationCommand.js +2 -2
  9. package/dist-cjs/commands/DeleteStreamKeyCommand.js +2 -2
  10. package/dist-cjs/commands/GetChannelCommand.js +2 -2
  11. package/dist-cjs/commands/GetPlaybackKeyPairCommand.js +2 -2
  12. package/dist-cjs/commands/GetRecordingConfigurationCommand.js +2 -2
  13. package/dist-cjs/commands/GetStreamCommand.js +2 -2
  14. package/dist-cjs/commands/GetStreamKeyCommand.js +2 -2
  15. package/dist-cjs/commands/GetStreamSessionCommand.js +2 -2
  16. package/dist-cjs/commands/ImportPlaybackKeyPairCommand.js +2 -2
  17. package/dist-cjs/commands/ListChannelsCommand.js +2 -2
  18. package/dist-cjs/commands/ListPlaybackKeyPairsCommand.js +2 -2
  19. package/dist-cjs/commands/ListRecordingConfigurationsCommand.js +2 -2
  20. package/dist-cjs/commands/ListStreamKeysCommand.js +2 -2
  21. package/dist-cjs/commands/ListStreamSessionsCommand.js +2 -2
  22. package/dist-cjs/commands/ListStreamsCommand.js +2 -2
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  24. package/dist-cjs/commands/PutMetadataCommand.js +2 -2
  25. package/dist-cjs/commands/StopStreamCommand.js +2 -2
  26. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  27. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  28. package/dist-cjs/commands/UpdateChannelCommand.js +2 -2
  29. package/dist-cjs/protocols/Aws_restJson1.js +379 -383
  30. package/dist-es/commands/BatchGetChannelCommand.js +3 -3
  31. package/dist-es/commands/BatchGetStreamKeyCommand.js +3 -3
  32. package/dist-es/commands/CreateChannelCommand.js +3 -3
  33. package/dist-es/commands/CreateRecordingConfigurationCommand.js +3 -3
  34. package/dist-es/commands/CreateStreamKeyCommand.js +3 -3
  35. package/dist-es/commands/DeleteChannelCommand.js +3 -3
  36. package/dist-es/commands/DeletePlaybackKeyPairCommand.js +3 -3
  37. package/dist-es/commands/DeleteRecordingConfigurationCommand.js +3 -3
  38. package/dist-es/commands/DeleteStreamKeyCommand.js +3 -3
  39. package/dist-es/commands/GetChannelCommand.js +3 -3
  40. package/dist-es/commands/GetPlaybackKeyPairCommand.js +3 -3
  41. package/dist-es/commands/GetRecordingConfigurationCommand.js +3 -3
  42. package/dist-es/commands/GetStreamCommand.js +3 -3
  43. package/dist-es/commands/GetStreamKeyCommand.js +3 -3
  44. package/dist-es/commands/GetStreamSessionCommand.js +3 -3
  45. package/dist-es/commands/ImportPlaybackKeyPairCommand.js +3 -3
  46. package/dist-es/commands/ListChannelsCommand.js +3 -3
  47. package/dist-es/commands/ListPlaybackKeyPairsCommand.js +3 -3
  48. package/dist-es/commands/ListRecordingConfigurationsCommand.js +3 -3
  49. package/dist-es/commands/ListStreamKeysCommand.js +3 -3
  50. package/dist-es/commands/ListStreamSessionsCommand.js +3 -3
  51. package/dist-es/commands/ListStreamsCommand.js +3 -3
  52. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  53. package/dist-es/commands/PutMetadataCommand.js +3 -3
  54. package/dist-es/commands/StopStreamCommand.js +3 -3
  55. package/dist-es/commands/TagResourceCommand.js +3 -3
  56. package/dist-es/commands/UntagResourceCommand.js +3 -3
  57. package/dist-es/commands/UpdateChannelCommand.js +3 -3
  58. package/dist-es/protocols/Aws_restJson1.js +321 -325
  59. package/dist-types/protocols/Aws_restJson1.d.ts +224 -56
  60. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +56 -56
  61. package/package.json +35 -35
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { IvsServiceException as __BaseException } from "../models/IvsServiceException";
4
4
  import { AccessDeniedException, ChannelNotBroadcasting, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, StreamUnavailable, ThrottlingException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1BatchGetChannelCommand = async (input, context) => {
5
+ export const se_BatchGetChannelCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -10,7 +10,7 @@ export const serializeAws_restJson1BatchGetChannelCommand = async (input, contex
10
10
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetChannel";
11
11
  let body;
12
12
  body = JSON.stringify({
13
- ...(input.arns != null && { arns: serializeAws_restJson1ChannelArnList(input.arns, context) }),
13
+ ...(input.arns != null && { arns: se_ChannelArnList(input.arns, context) }),
14
14
  });
15
15
  return new __HttpRequest({
16
16
  protocol,
@@ -22,7 +22,7 @@ export const serializeAws_restJson1BatchGetChannelCommand = async (input, contex
22
22
  body,
23
23
  });
24
24
  };
25
- export const serializeAws_restJson1BatchGetStreamKeyCommand = async (input, context) => {
25
+ export const se_BatchGetStreamKeyCommand = async (input, context) => {
26
26
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
27
  const headers = {
28
28
  "content-type": "application/json",
@@ -30,7 +30,7 @@ export const serializeAws_restJson1BatchGetStreamKeyCommand = async (input, cont
30
30
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetStreamKey";
31
31
  let body;
32
32
  body = JSON.stringify({
33
- ...(input.arns != null && { arns: serializeAws_restJson1StreamKeyArnList(input.arns, context) }),
33
+ ...(input.arns != null && { arns: se_StreamKeyArnList(input.arns, context) }),
34
34
  });
35
35
  return new __HttpRequest({
36
36
  protocol,
@@ -42,7 +42,7 @@ export const serializeAws_restJson1BatchGetStreamKeyCommand = async (input, cont
42
42
  body,
43
43
  });
44
44
  };
45
- export const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
45
+ export const se_CreateChannelCommand = async (input, context) => {
46
46
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
47
47
  const headers = {
48
48
  "content-type": "application/json",
@@ -55,7 +55,7 @@ export const serializeAws_restJson1CreateChannelCommand = async (input, context)
55
55
  ...(input.latencyMode != null && { latencyMode: input.latencyMode }),
56
56
  ...(input.name != null && { name: input.name }),
57
57
  ...(input.recordingConfigurationArn != null && { recordingConfigurationArn: input.recordingConfigurationArn }),
58
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
58
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
59
59
  ...(input.type != null && { type: input.type }),
60
60
  });
61
61
  return new __HttpRequest({
@@ -68,7 +68,7 @@ export const serializeAws_restJson1CreateChannelCommand = async (input, context)
68
68
  body,
69
69
  });
70
70
  };
71
- export const serializeAws_restJson1CreateRecordingConfigurationCommand = async (input, context) => {
71
+ export const se_CreateRecordingConfigurationCommand = async (input, context) => {
72
72
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
73
  const headers = {
74
74
  "content-type": "application/json",
@@ -77,15 +77,15 @@ export const serializeAws_restJson1CreateRecordingConfigurationCommand = async (
77
77
  let body;
78
78
  body = JSON.stringify({
79
79
  ...(input.destinationConfiguration != null && {
80
- destinationConfiguration: serializeAws_restJson1DestinationConfiguration(input.destinationConfiguration, context),
80
+ destinationConfiguration: se_DestinationConfiguration(input.destinationConfiguration, context),
81
81
  }),
82
82
  ...(input.name != null && { name: input.name }),
83
83
  ...(input.recordingReconnectWindowSeconds != null && {
84
84
  recordingReconnectWindowSeconds: input.recordingReconnectWindowSeconds,
85
85
  }),
86
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
86
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
87
87
  ...(input.thumbnailConfiguration != null && {
88
- thumbnailConfiguration: serializeAws_restJson1ThumbnailConfiguration(input.thumbnailConfiguration, context),
88
+ thumbnailConfiguration: se_ThumbnailConfiguration(input.thumbnailConfiguration, context),
89
89
  }),
90
90
  });
91
91
  return new __HttpRequest({
@@ -98,7 +98,7 @@ export const serializeAws_restJson1CreateRecordingConfigurationCommand = async (
98
98
  body,
99
99
  });
100
100
  };
101
- export const serializeAws_restJson1CreateStreamKeyCommand = async (input, context) => {
101
+ export const se_CreateStreamKeyCommand = async (input, context) => {
102
102
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
103
  const headers = {
104
104
  "content-type": "application/json",
@@ -107,7 +107,7 @@ export const serializeAws_restJson1CreateStreamKeyCommand = async (input, contex
107
107
  let body;
108
108
  body = JSON.stringify({
109
109
  ...(input.channelArn != null && { channelArn: input.channelArn }),
110
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
110
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
111
111
  });
112
112
  return new __HttpRequest({
113
113
  protocol,
@@ -119,7 +119,7 @@ export const serializeAws_restJson1CreateStreamKeyCommand = async (input, contex
119
119
  body,
120
120
  });
121
121
  };
122
- export const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
122
+ export const se_DeleteChannelCommand = async (input, context) => {
123
123
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
124
  const headers = {
125
125
  "content-type": "application/json",
@@ -139,7 +139,7 @@ export const serializeAws_restJson1DeleteChannelCommand = async (input, context)
139
139
  body,
140
140
  });
141
141
  };
142
- export const serializeAws_restJson1DeletePlaybackKeyPairCommand = async (input, context) => {
142
+ export const se_DeletePlaybackKeyPairCommand = async (input, context) => {
143
143
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
144
144
  const headers = {
145
145
  "content-type": "application/json",
@@ -159,7 +159,7 @@ export const serializeAws_restJson1DeletePlaybackKeyPairCommand = async (input,
159
159
  body,
160
160
  });
161
161
  };
162
- export const serializeAws_restJson1DeleteRecordingConfigurationCommand = async (input, context) => {
162
+ export const se_DeleteRecordingConfigurationCommand = async (input, context) => {
163
163
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
164
  const headers = {
165
165
  "content-type": "application/json",
@@ -179,7 +179,7 @@ export const serializeAws_restJson1DeleteRecordingConfigurationCommand = async (
179
179
  body,
180
180
  });
181
181
  };
182
- export const serializeAws_restJson1DeleteStreamKeyCommand = async (input, context) => {
182
+ export const se_DeleteStreamKeyCommand = async (input, context) => {
183
183
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
184
184
  const headers = {
185
185
  "content-type": "application/json",
@@ -199,7 +199,7 @@ export const serializeAws_restJson1DeleteStreamKeyCommand = async (input, contex
199
199
  body,
200
200
  });
201
201
  };
202
- export const serializeAws_restJson1GetChannelCommand = async (input, context) => {
202
+ export const se_GetChannelCommand = async (input, context) => {
203
203
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
204
  const headers = {
205
205
  "content-type": "application/json",
@@ -219,7 +219,7 @@ export const serializeAws_restJson1GetChannelCommand = async (input, context) =>
219
219
  body,
220
220
  });
221
221
  };
222
- export const serializeAws_restJson1GetPlaybackKeyPairCommand = async (input, context) => {
222
+ export const se_GetPlaybackKeyPairCommand = async (input, context) => {
223
223
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
224
  const headers = {
225
225
  "content-type": "application/json",
@@ -239,7 +239,7 @@ export const serializeAws_restJson1GetPlaybackKeyPairCommand = async (input, con
239
239
  body,
240
240
  });
241
241
  };
242
- export const serializeAws_restJson1GetRecordingConfigurationCommand = async (input, context) => {
242
+ export const se_GetRecordingConfigurationCommand = async (input, context) => {
243
243
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
244
  const headers = {
245
245
  "content-type": "application/json",
@@ -259,7 +259,7 @@ export const serializeAws_restJson1GetRecordingConfigurationCommand = async (inp
259
259
  body,
260
260
  });
261
261
  };
262
- export const serializeAws_restJson1GetStreamCommand = async (input, context) => {
262
+ export const se_GetStreamCommand = async (input, context) => {
263
263
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
264
264
  const headers = {
265
265
  "content-type": "application/json",
@@ -279,7 +279,7 @@ export const serializeAws_restJson1GetStreamCommand = async (input, context) =>
279
279
  body,
280
280
  });
281
281
  };
282
- export const serializeAws_restJson1GetStreamKeyCommand = async (input, context) => {
282
+ export const se_GetStreamKeyCommand = async (input, context) => {
283
283
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
284
284
  const headers = {
285
285
  "content-type": "application/json",
@@ -299,7 +299,7 @@ export const serializeAws_restJson1GetStreamKeyCommand = async (input, context)
299
299
  body,
300
300
  });
301
301
  };
302
- export const serializeAws_restJson1GetStreamSessionCommand = async (input, context) => {
302
+ export const se_GetStreamSessionCommand = async (input, context) => {
303
303
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
304
  const headers = {
305
305
  "content-type": "application/json",
@@ -320,7 +320,7 @@ export const serializeAws_restJson1GetStreamSessionCommand = async (input, conte
320
320
  body,
321
321
  });
322
322
  };
323
- export const serializeAws_restJson1ImportPlaybackKeyPairCommand = async (input, context) => {
323
+ export const se_ImportPlaybackKeyPairCommand = async (input, context) => {
324
324
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
325
325
  const headers = {
326
326
  "content-type": "application/json",
@@ -330,7 +330,7 @@ export const serializeAws_restJson1ImportPlaybackKeyPairCommand = async (input,
330
330
  body = JSON.stringify({
331
331
  ...(input.name != null && { name: input.name }),
332
332
  ...(input.publicKeyMaterial != null && { publicKeyMaterial: input.publicKeyMaterial }),
333
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
333
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
334
334
  });
335
335
  return new __HttpRequest({
336
336
  protocol,
@@ -342,7 +342,7 @@ export const serializeAws_restJson1ImportPlaybackKeyPairCommand = async (input,
342
342
  body,
343
343
  });
344
344
  };
345
- export const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
345
+ export const se_ListChannelsCommand = async (input, context) => {
346
346
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
347
  const headers = {
348
348
  "content-type": "application/json",
@@ -367,7 +367,7 @@ export const serializeAws_restJson1ListChannelsCommand = async (input, context)
367
367
  body,
368
368
  });
369
369
  };
370
- export const serializeAws_restJson1ListPlaybackKeyPairsCommand = async (input, context) => {
370
+ export const se_ListPlaybackKeyPairsCommand = async (input, context) => {
371
371
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
372
  const headers = {
373
373
  "content-type": "application/json",
@@ -388,7 +388,7 @@ export const serializeAws_restJson1ListPlaybackKeyPairsCommand = async (input, c
388
388
  body,
389
389
  });
390
390
  };
391
- export const serializeAws_restJson1ListRecordingConfigurationsCommand = async (input, context) => {
391
+ export const se_ListRecordingConfigurationsCommand = async (input, context) => {
392
392
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
393
393
  const headers = {
394
394
  "content-type": "application/json",
@@ -409,7 +409,7 @@ export const serializeAws_restJson1ListRecordingConfigurationsCommand = async (i
409
409
  body,
410
410
  });
411
411
  };
412
- export const serializeAws_restJson1ListStreamKeysCommand = async (input, context) => {
412
+ export const se_ListStreamKeysCommand = async (input, context) => {
413
413
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
414
414
  const headers = {
415
415
  "content-type": "application/json",
@@ -431,7 +431,7 @@ export const serializeAws_restJson1ListStreamKeysCommand = async (input, context
431
431
  body,
432
432
  });
433
433
  };
434
- export const serializeAws_restJson1ListStreamsCommand = async (input, context) => {
434
+ export const se_ListStreamsCommand = async (input, context) => {
435
435
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
436
436
  const headers = {
437
437
  "content-type": "application/json",
@@ -439,7 +439,7 @@ export const serializeAws_restJson1ListStreamsCommand = async (input, context) =
439
439
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreams";
440
440
  let body;
441
441
  body = JSON.stringify({
442
- ...(input.filterBy != null && { filterBy: serializeAws_restJson1StreamFilters(input.filterBy, context) }),
442
+ ...(input.filterBy != null && { filterBy: se_StreamFilters(input.filterBy, context) }),
443
443
  ...(input.maxResults != null && { maxResults: input.maxResults }),
444
444
  ...(input.nextToken != null && { nextToken: input.nextToken }),
445
445
  });
@@ -453,7 +453,7 @@ export const serializeAws_restJson1ListStreamsCommand = async (input, context) =
453
453
  body,
454
454
  });
455
455
  };
456
- export const serializeAws_restJson1ListStreamSessionsCommand = async (input, context) => {
456
+ export const se_ListStreamSessionsCommand = async (input, context) => {
457
457
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
458
458
  const headers = {
459
459
  "content-type": "application/json",
@@ -475,7 +475,7 @@ export const serializeAws_restJson1ListStreamSessionsCommand = async (input, con
475
475
  body,
476
476
  });
477
477
  };
478
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
478
+ export const se_ListTagsForResourceCommand = async (input, context) => {
479
479
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
480
480
  const headers = {};
481
481
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -491,7 +491,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
491
491
  body,
492
492
  });
493
493
  };
494
- export const serializeAws_restJson1PutMetadataCommand = async (input, context) => {
494
+ export const se_PutMetadataCommand = async (input, context) => {
495
495
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
496
496
  const headers = {
497
497
  "content-type": "application/json",
@@ -512,7 +512,7 @@ export const serializeAws_restJson1PutMetadataCommand = async (input, context) =
512
512
  body,
513
513
  });
514
514
  };
515
- export const serializeAws_restJson1StopStreamCommand = async (input, context) => {
515
+ export const se_StopStreamCommand = async (input, context) => {
516
516
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
517
517
  const headers = {
518
518
  "content-type": "application/json",
@@ -532,7 +532,7 @@ export const serializeAws_restJson1StopStreamCommand = async (input, context) =>
532
532
  body,
533
533
  });
534
534
  };
535
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
535
+ export const se_TagResourceCommand = async (input, context) => {
536
536
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
537
537
  const headers = {
538
538
  "content-type": "application/json",
@@ -541,7 +541,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
541
541
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
542
542
  let body;
543
543
  body = JSON.stringify({
544
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
544
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
545
545
  });
546
546
  return new __HttpRequest({
547
547
  protocol,
@@ -553,7 +553,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
553
553
  body,
554
554
  });
555
555
  };
556
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
556
+ export const se_UntagResourceCommand = async (input, context) => {
557
557
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
558
558
  const headers = {};
559
559
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -576,7 +576,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
576
576
  body,
577
577
  });
578
578
  };
579
- export const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
579
+ export const se_UpdateChannelCommand = async (input, context) => {
580
580
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
581
581
  const headers = {
582
582
  "content-type": "application/json",
@@ -602,23 +602,23 @@ export const serializeAws_restJson1UpdateChannelCommand = async (input, context)
602
602
  body,
603
603
  });
604
604
  };
605
- export const deserializeAws_restJson1BatchGetChannelCommand = async (output, context) => {
605
+ export const de_BatchGetChannelCommand = async (output, context) => {
606
606
  if (output.statusCode !== 200 && output.statusCode >= 300) {
607
- return deserializeAws_restJson1BatchGetChannelCommandError(output, context);
607
+ return de_BatchGetChannelCommandError(output, context);
608
608
  }
609
609
  const contents = map({
610
610
  $metadata: deserializeMetadata(output),
611
611
  });
612
612
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
613
613
  if (data.channels != null) {
614
- contents.channels = deserializeAws_restJson1Channels(data.channels, context);
614
+ contents.channels = de_Channels(data.channels, context);
615
615
  }
616
616
  if (data.errors != null) {
617
- contents.errors = deserializeAws_restJson1BatchErrors(data.errors, context);
617
+ contents.errors = de_BatchErrors(data.errors, context);
618
618
  }
619
619
  return contents;
620
620
  };
621
- const deserializeAws_restJson1BatchGetChannelCommandError = async (output, context) => {
621
+ const de_BatchGetChannelCommandError = async (output, context) => {
622
622
  const parsedOutput = {
623
623
  ...output,
624
624
  body: await parseErrorBody(output.body, context),
@@ -632,23 +632,23 @@ const deserializeAws_restJson1BatchGetChannelCommandError = async (output, conte
632
632
  errorCode,
633
633
  });
634
634
  };
635
- export const deserializeAws_restJson1BatchGetStreamKeyCommand = async (output, context) => {
635
+ export const de_BatchGetStreamKeyCommand = async (output, context) => {
636
636
  if (output.statusCode !== 200 && output.statusCode >= 300) {
637
- return deserializeAws_restJson1BatchGetStreamKeyCommandError(output, context);
637
+ return de_BatchGetStreamKeyCommandError(output, context);
638
638
  }
639
639
  const contents = map({
640
640
  $metadata: deserializeMetadata(output),
641
641
  });
642
642
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
643
643
  if (data.errors != null) {
644
- contents.errors = deserializeAws_restJson1BatchErrors(data.errors, context);
644
+ contents.errors = de_BatchErrors(data.errors, context);
645
645
  }
646
646
  if (data.streamKeys != null) {
647
- contents.streamKeys = deserializeAws_restJson1StreamKeys(data.streamKeys, context);
647
+ contents.streamKeys = de_StreamKeys(data.streamKeys, context);
648
648
  }
649
649
  return contents;
650
650
  };
651
- const deserializeAws_restJson1BatchGetStreamKeyCommandError = async (output, context) => {
651
+ const de_BatchGetStreamKeyCommandError = async (output, context) => {
652
652
  const parsedOutput = {
653
653
  ...output,
654
654
  body: await parseErrorBody(output.body, context),
@@ -662,23 +662,23 @@ const deserializeAws_restJson1BatchGetStreamKeyCommandError = async (output, con
662
662
  errorCode,
663
663
  });
664
664
  };
665
- export const deserializeAws_restJson1CreateChannelCommand = async (output, context) => {
665
+ export const de_CreateChannelCommand = async (output, context) => {
666
666
  if (output.statusCode !== 200 && output.statusCode >= 300) {
667
- return deserializeAws_restJson1CreateChannelCommandError(output, context);
667
+ return de_CreateChannelCommandError(output, context);
668
668
  }
669
669
  const contents = map({
670
670
  $metadata: deserializeMetadata(output),
671
671
  });
672
672
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
673
673
  if (data.channel != null) {
674
- contents.channel = deserializeAws_restJson1Channel(data.channel, context);
674
+ contents.channel = de_Channel(data.channel, context);
675
675
  }
676
676
  if (data.streamKey != null) {
677
- contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
677
+ contents.streamKey = de_StreamKey(data.streamKey, context);
678
678
  }
679
679
  return contents;
680
680
  };
681
- const deserializeAws_restJson1CreateChannelCommandError = async (output, context) => {
681
+ const de_CreateChannelCommandError = async (output, context) => {
682
682
  const parsedOutput = {
683
683
  ...output,
684
684
  body: await parseErrorBody(output.body, context),
@@ -687,19 +687,19 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
687
687
  switch (errorCode) {
688
688
  case "AccessDeniedException":
689
689
  case "com.amazonaws.ivs#AccessDeniedException":
690
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
690
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
691
691
  case "PendingVerification":
692
692
  case "com.amazonaws.ivs#PendingVerification":
693
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
693
+ throw await de_PendingVerificationRes(parsedOutput, context);
694
694
  case "ResourceNotFoundException":
695
695
  case "com.amazonaws.ivs#ResourceNotFoundException":
696
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
696
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
697
697
  case "ServiceQuotaExceededException":
698
698
  case "com.amazonaws.ivs#ServiceQuotaExceededException":
699
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
699
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
700
700
  case "ValidationException":
701
701
  case "com.amazonaws.ivs#ValidationException":
702
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
702
+ throw await de_ValidationExceptionRes(parsedOutput, context);
703
703
  default:
704
704
  const parsedBody = parsedOutput.body;
705
705
  throwDefaultError({
@@ -710,20 +710,20 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
710
710
  });
711
711
  }
712
712
  };
713
- export const deserializeAws_restJson1CreateRecordingConfigurationCommand = async (output, context) => {
713
+ export const de_CreateRecordingConfigurationCommand = async (output, context) => {
714
714
  if (output.statusCode !== 200 && output.statusCode >= 300) {
715
- return deserializeAws_restJson1CreateRecordingConfigurationCommandError(output, context);
715
+ return de_CreateRecordingConfigurationCommandError(output, context);
716
716
  }
717
717
  const contents = map({
718
718
  $metadata: deserializeMetadata(output),
719
719
  });
720
720
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
721
721
  if (data.recordingConfiguration != null) {
722
- contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
722
+ contents.recordingConfiguration = de_RecordingConfiguration(data.recordingConfiguration, context);
723
723
  }
724
724
  return contents;
725
725
  };
726
- const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (output, context) => {
726
+ const de_CreateRecordingConfigurationCommandError = async (output, context) => {
727
727
  const parsedOutput = {
728
728
  ...output,
729
729
  body: await parseErrorBody(output.body, context),
@@ -732,22 +732,22 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
732
732
  switch (errorCode) {
733
733
  case "AccessDeniedException":
734
734
  case "com.amazonaws.ivs#AccessDeniedException":
735
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
735
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
736
736
  case "ConflictException":
737
737
  case "com.amazonaws.ivs#ConflictException":
738
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
738
+ throw await de_ConflictExceptionRes(parsedOutput, context);
739
739
  case "InternalServerException":
740
740
  case "com.amazonaws.ivs#InternalServerException":
741
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
741
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
742
742
  case "PendingVerification":
743
743
  case "com.amazonaws.ivs#PendingVerification":
744
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
744
+ throw await de_PendingVerificationRes(parsedOutput, context);
745
745
  case "ServiceQuotaExceededException":
746
746
  case "com.amazonaws.ivs#ServiceQuotaExceededException":
747
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
747
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
748
748
  case "ValidationException":
749
749
  case "com.amazonaws.ivs#ValidationException":
750
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
750
+ throw await de_ValidationExceptionRes(parsedOutput, context);
751
751
  default:
752
752
  const parsedBody = parsedOutput.body;
753
753
  throwDefaultError({
@@ -758,20 +758,20 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
758
758
  });
759
759
  }
760
760
  };
761
- export const deserializeAws_restJson1CreateStreamKeyCommand = async (output, context) => {
761
+ export const de_CreateStreamKeyCommand = async (output, context) => {
762
762
  if (output.statusCode !== 200 && output.statusCode >= 300) {
763
- return deserializeAws_restJson1CreateStreamKeyCommandError(output, context);
763
+ return de_CreateStreamKeyCommandError(output, context);
764
764
  }
765
765
  const contents = map({
766
766
  $metadata: deserializeMetadata(output),
767
767
  });
768
768
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
769
769
  if (data.streamKey != null) {
770
- contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
770
+ contents.streamKey = de_StreamKey(data.streamKey, context);
771
771
  }
772
772
  return contents;
773
773
  };
774
- const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, context) => {
774
+ const de_CreateStreamKeyCommandError = async (output, context) => {
775
775
  const parsedOutput = {
776
776
  ...output,
777
777
  body: await parseErrorBody(output.body, context),
@@ -780,19 +780,19 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
780
780
  switch (errorCode) {
781
781
  case "AccessDeniedException":
782
782
  case "com.amazonaws.ivs#AccessDeniedException":
783
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
783
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
784
784
  case "PendingVerification":
785
785
  case "com.amazonaws.ivs#PendingVerification":
786
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
786
+ throw await de_PendingVerificationRes(parsedOutput, context);
787
787
  case "ResourceNotFoundException":
788
788
  case "com.amazonaws.ivs#ResourceNotFoundException":
789
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
789
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
790
790
  case "ServiceQuotaExceededException":
791
791
  case "com.amazonaws.ivs#ServiceQuotaExceededException":
792
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
792
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
793
793
  case "ValidationException":
794
794
  case "com.amazonaws.ivs#ValidationException":
795
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
795
+ throw await de_ValidationExceptionRes(parsedOutput, context);
796
796
  default:
797
797
  const parsedBody = parsedOutput.body;
798
798
  throwDefaultError({
@@ -803,9 +803,9 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
803
803
  });
804
804
  }
805
805
  };
806
- export const deserializeAws_restJson1DeleteChannelCommand = async (output, context) => {
806
+ export const de_DeleteChannelCommand = async (output, context) => {
807
807
  if (output.statusCode !== 204 && output.statusCode >= 300) {
808
- return deserializeAws_restJson1DeleteChannelCommandError(output, context);
808
+ return de_DeleteChannelCommandError(output, context);
809
809
  }
810
810
  const contents = map({
811
811
  $metadata: deserializeMetadata(output),
@@ -813,7 +813,7 @@ export const deserializeAws_restJson1DeleteChannelCommand = async (output, conte
813
813
  await collectBody(output.body, context);
814
814
  return contents;
815
815
  };
816
- const deserializeAws_restJson1DeleteChannelCommandError = async (output, context) => {
816
+ const de_DeleteChannelCommandError = async (output, context) => {
817
817
  const parsedOutput = {
818
818
  ...output,
819
819
  body: await parseErrorBody(output.body, context),
@@ -822,19 +822,19 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
822
822
  switch (errorCode) {
823
823
  case "AccessDeniedException":
824
824
  case "com.amazonaws.ivs#AccessDeniedException":
825
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
825
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
826
826
  case "ConflictException":
827
827
  case "com.amazonaws.ivs#ConflictException":
828
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
828
+ throw await de_ConflictExceptionRes(parsedOutput, context);
829
829
  case "PendingVerification":
830
830
  case "com.amazonaws.ivs#PendingVerification":
831
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
831
+ throw await de_PendingVerificationRes(parsedOutput, context);
832
832
  case "ResourceNotFoundException":
833
833
  case "com.amazonaws.ivs#ResourceNotFoundException":
834
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
834
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
835
835
  case "ValidationException":
836
836
  case "com.amazonaws.ivs#ValidationException":
837
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
837
+ throw await de_ValidationExceptionRes(parsedOutput, context);
838
838
  default:
839
839
  const parsedBody = parsedOutput.body;
840
840
  throwDefaultError({
@@ -845,9 +845,9 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
845
845
  });
846
846
  }
847
847
  };
848
- export const deserializeAws_restJson1DeletePlaybackKeyPairCommand = async (output, context) => {
848
+ export const de_DeletePlaybackKeyPairCommand = async (output, context) => {
849
849
  if (output.statusCode !== 200 && output.statusCode >= 300) {
850
- return deserializeAws_restJson1DeletePlaybackKeyPairCommandError(output, context);
850
+ return de_DeletePlaybackKeyPairCommandError(output, context);
851
851
  }
852
852
  const contents = map({
853
853
  $metadata: deserializeMetadata(output),
@@ -855,7 +855,7 @@ export const deserializeAws_restJson1DeletePlaybackKeyPairCommand = async (outpu
855
855
  await collectBody(output.body, context);
856
856
  return contents;
857
857
  };
858
- const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output, context) => {
858
+ const de_DeletePlaybackKeyPairCommandError = async (output, context) => {
859
859
  const parsedOutput = {
860
860
  ...output,
861
861
  body: await parseErrorBody(output.body, context),
@@ -864,16 +864,16 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
864
864
  switch (errorCode) {
865
865
  case "AccessDeniedException":
866
866
  case "com.amazonaws.ivs#AccessDeniedException":
867
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
867
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
868
868
  case "PendingVerification":
869
869
  case "com.amazonaws.ivs#PendingVerification":
870
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
870
+ throw await de_PendingVerificationRes(parsedOutput, context);
871
871
  case "ResourceNotFoundException":
872
872
  case "com.amazonaws.ivs#ResourceNotFoundException":
873
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
873
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
874
874
  case "ValidationException":
875
875
  case "com.amazonaws.ivs#ValidationException":
876
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
876
+ throw await de_ValidationExceptionRes(parsedOutput, context);
877
877
  default:
878
878
  const parsedBody = parsedOutput.body;
879
879
  throwDefaultError({
@@ -884,9 +884,9 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
884
884
  });
885
885
  }
886
886
  };
887
- export const deserializeAws_restJson1DeleteRecordingConfigurationCommand = async (output, context) => {
887
+ export const de_DeleteRecordingConfigurationCommand = async (output, context) => {
888
888
  if (output.statusCode !== 200 && output.statusCode >= 300) {
889
- return deserializeAws_restJson1DeleteRecordingConfigurationCommandError(output, context);
889
+ return de_DeleteRecordingConfigurationCommandError(output, context);
890
890
  }
891
891
  const contents = map({
892
892
  $metadata: deserializeMetadata(output),
@@ -894,7 +894,7 @@ export const deserializeAws_restJson1DeleteRecordingConfigurationCommand = async
894
894
  await collectBody(output.body, context);
895
895
  return contents;
896
896
  };
897
- const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (output, context) => {
897
+ const de_DeleteRecordingConfigurationCommandError = async (output, context) => {
898
898
  const parsedOutput = {
899
899
  ...output,
900
900
  body: await parseErrorBody(output.body, context),
@@ -903,19 +903,19 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
903
903
  switch (errorCode) {
904
904
  case "AccessDeniedException":
905
905
  case "com.amazonaws.ivs#AccessDeniedException":
906
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
906
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
907
907
  case "ConflictException":
908
908
  case "com.amazonaws.ivs#ConflictException":
909
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
909
+ throw await de_ConflictExceptionRes(parsedOutput, context);
910
910
  case "InternalServerException":
911
911
  case "com.amazonaws.ivs#InternalServerException":
912
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
912
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
913
913
  case "ResourceNotFoundException":
914
914
  case "com.amazonaws.ivs#ResourceNotFoundException":
915
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
915
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
916
916
  case "ValidationException":
917
917
  case "com.amazonaws.ivs#ValidationException":
918
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
918
+ throw await de_ValidationExceptionRes(parsedOutput, context);
919
919
  default:
920
920
  const parsedBody = parsedOutput.body;
921
921
  throwDefaultError({
@@ -926,9 +926,9 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
926
926
  });
927
927
  }
928
928
  };
929
- export const deserializeAws_restJson1DeleteStreamKeyCommand = async (output, context) => {
929
+ export const de_DeleteStreamKeyCommand = async (output, context) => {
930
930
  if (output.statusCode !== 204 && output.statusCode >= 300) {
931
- return deserializeAws_restJson1DeleteStreamKeyCommandError(output, context);
931
+ return de_DeleteStreamKeyCommandError(output, context);
932
932
  }
933
933
  const contents = map({
934
934
  $metadata: deserializeMetadata(output),
@@ -936,7 +936,7 @@ export const deserializeAws_restJson1DeleteStreamKeyCommand = async (output, con
936
936
  await collectBody(output.body, context);
937
937
  return contents;
938
938
  };
939
- const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, context) => {
939
+ const de_DeleteStreamKeyCommandError = async (output, context) => {
940
940
  const parsedOutput = {
941
941
  ...output,
942
942
  body: await parseErrorBody(output.body, context),
@@ -945,16 +945,16 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
945
945
  switch (errorCode) {
946
946
  case "AccessDeniedException":
947
947
  case "com.amazonaws.ivs#AccessDeniedException":
948
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
948
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
949
949
  case "PendingVerification":
950
950
  case "com.amazonaws.ivs#PendingVerification":
951
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
951
+ throw await de_PendingVerificationRes(parsedOutput, context);
952
952
  case "ResourceNotFoundException":
953
953
  case "com.amazonaws.ivs#ResourceNotFoundException":
954
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
954
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
955
955
  case "ValidationException":
956
956
  case "com.amazonaws.ivs#ValidationException":
957
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
957
+ throw await de_ValidationExceptionRes(parsedOutput, context);
958
958
  default:
959
959
  const parsedBody = parsedOutput.body;
960
960
  throwDefaultError({
@@ -965,20 +965,20 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
965
965
  });
966
966
  }
967
967
  };
968
- export const deserializeAws_restJson1GetChannelCommand = async (output, context) => {
968
+ export const de_GetChannelCommand = async (output, context) => {
969
969
  if (output.statusCode !== 200 && output.statusCode >= 300) {
970
- return deserializeAws_restJson1GetChannelCommandError(output, context);
970
+ return de_GetChannelCommandError(output, context);
971
971
  }
972
972
  const contents = map({
973
973
  $metadata: deserializeMetadata(output),
974
974
  });
975
975
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
976
976
  if (data.channel != null) {
977
- contents.channel = deserializeAws_restJson1Channel(data.channel, context);
977
+ contents.channel = de_Channel(data.channel, context);
978
978
  }
979
979
  return contents;
980
980
  };
981
- const deserializeAws_restJson1GetChannelCommandError = async (output, context) => {
981
+ const de_GetChannelCommandError = async (output, context) => {
982
982
  const parsedOutput = {
983
983
  ...output,
984
984
  body: await parseErrorBody(output.body, context),
@@ -987,13 +987,13 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
987
987
  switch (errorCode) {
988
988
  case "AccessDeniedException":
989
989
  case "com.amazonaws.ivs#AccessDeniedException":
990
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
990
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
991
991
  case "ResourceNotFoundException":
992
992
  case "com.amazonaws.ivs#ResourceNotFoundException":
993
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
993
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
994
994
  case "ValidationException":
995
995
  case "com.amazonaws.ivs#ValidationException":
996
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
996
+ throw await de_ValidationExceptionRes(parsedOutput, context);
997
997
  default:
998
998
  const parsedBody = parsedOutput.body;
999
999
  throwDefaultError({
@@ -1004,20 +1004,20 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
1004
1004
  });
1005
1005
  }
1006
1006
  };
1007
- export const deserializeAws_restJson1GetPlaybackKeyPairCommand = async (output, context) => {
1007
+ export const de_GetPlaybackKeyPairCommand = async (output, context) => {
1008
1008
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1009
- return deserializeAws_restJson1GetPlaybackKeyPairCommandError(output, context);
1009
+ return de_GetPlaybackKeyPairCommandError(output, context);
1010
1010
  }
1011
1011
  const contents = map({
1012
1012
  $metadata: deserializeMetadata(output),
1013
1013
  });
1014
1014
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1015
1015
  if (data.keyPair != null) {
1016
- contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1016
+ contents.keyPair = de_PlaybackKeyPair(data.keyPair, context);
1017
1017
  }
1018
1018
  return contents;
1019
1019
  };
1020
- const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, context) => {
1020
+ const de_GetPlaybackKeyPairCommandError = async (output, context) => {
1021
1021
  const parsedOutput = {
1022
1022
  ...output,
1023
1023
  body: await parseErrorBody(output.body, context),
@@ -1026,13 +1026,13 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
1026
1026
  switch (errorCode) {
1027
1027
  case "AccessDeniedException":
1028
1028
  case "com.amazonaws.ivs#AccessDeniedException":
1029
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1029
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1030
1030
  case "ResourceNotFoundException":
1031
1031
  case "com.amazonaws.ivs#ResourceNotFoundException":
1032
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1032
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1033
1033
  case "ValidationException":
1034
1034
  case "com.amazonaws.ivs#ValidationException":
1035
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1035
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1036
1036
  default:
1037
1037
  const parsedBody = parsedOutput.body;
1038
1038
  throwDefaultError({
@@ -1043,20 +1043,20 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
1043
1043
  });
1044
1044
  }
1045
1045
  };
1046
- export const deserializeAws_restJson1GetRecordingConfigurationCommand = async (output, context) => {
1046
+ export const de_GetRecordingConfigurationCommand = async (output, context) => {
1047
1047
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1048
- return deserializeAws_restJson1GetRecordingConfigurationCommandError(output, context);
1048
+ return de_GetRecordingConfigurationCommandError(output, context);
1049
1049
  }
1050
1050
  const contents = map({
1051
1051
  $metadata: deserializeMetadata(output),
1052
1052
  });
1053
1053
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1054
1054
  if (data.recordingConfiguration != null) {
1055
- contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
1055
+ contents.recordingConfiguration = de_RecordingConfiguration(data.recordingConfiguration, context);
1056
1056
  }
1057
1057
  return contents;
1058
1058
  };
1059
- const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (output, context) => {
1059
+ const de_GetRecordingConfigurationCommandError = async (output, context) => {
1060
1060
  const parsedOutput = {
1061
1061
  ...output,
1062
1062
  body: await parseErrorBody(output.body, context),
@@ -1065,16 +1065,16 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
1065
1065
  switch (errorCode) {
1066
1066
  case "AccessDeniedException":
1067
1067
  case "com.amazonaws.ivs#AccessDeniedException":
1068
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1068
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1069
1069
  case "InternalServerException":
1070
1070
  case "com.amazonaws.ivs#InternalServerException":
1071
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1071
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1072
1072
  case "ResourceNotFoundException":
1073
1073
  case "com.amazonaws.ivs#ResourceNotFoundException":
1074
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1074
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1075
1075
  case "ValidationException":
1076
1076
  case "com.amazonaws.ivs#ValidationException":
1077
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1077
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1078
1078
  default:
1079
1079
  const parsedBody = parsedOutput.body;
1080
1080
  throwDefaultError({
@@ -1085,20 +1085,20 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
1085
1085
  });
1086
1086
  }
1087
1087
  };
1088
- export const deserializeAws_restJson1GetStreamCommand = async (output, context) => {
1088
+ export const de_GetStreamCommand = async (output, context) => {
1089
1089
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1090
- return deserializeAws_restJson1GetStreamCommandError(output, context);
1090
+ return de_GetStreamCommandError(output, context);
1091
1091
  }
1092
1092
  const contents = map({
1093
1093
  $metadata: deserializeMetadata(output),
1094
1094
  });
1095
1095
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1096
1096
  if (data.stream != null) {
1097
- contents.stream = deserializeAws_restJson1_Stream(data.stream, context);
1097
+ contents.stream = de__Stream(data.stream, context);
1098
1098
  }
1099
1099
  return contents;
1100
1100
  };
1101
- const deserializeAws_restJson1GetStreamCommandError = async (output, context) => {
1101
+ const de_GetStreamCommandError = async (output, context) => {
1102
1102
  const parsedOutput = {
1103
1103
  ...output,
1104
1104
  body: await parseErrorBody(output.body, context),
@@ -1107,16 +1107,16 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
1107
1107
  switch (errorCode) {
1108
1108
  case "AccessDeniedException":
1109
1109
  case "com.amazonaws.ivs#AccessDeniedException":
1110
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1110
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1111
1111
  case "ChannelNotBroadcasting":
1112
1112
  case "com.amazonaws.ivs#ChannelNotBroadcasting":
1113
- throw await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context);
1113
+ throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
1114
1114
  case "ResourceNotFoundException":
1115
1115
  case "com.amazonaws.ivs#ResourceNotFoundException":
1116
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1116
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1117
1117
  case "ValidationException":
1118
1118
  case "com.amazonaws.ivs#ValidationException":
1119
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1119
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1120
1120
  default:
1121
1121
  const parsedBody = parsedOutput.body;
1122
1122
  throwDefaultError({
@@ -1127,20 +1127,20 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
1127
1127
  });
1128
1128
  }
1129
1129
  };
1130
- export const deserializeAws_restJson1GetStreamKeyCommand = async (output, context) => {
1130
+ export const de_GetStreamKeyCommand = async (output, context) => {
1131
1131
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1132
- return deserializeAws_restJson1GetStreamKeyCommandError(output, context);
1132
+ return de_GetStreamKeyCommandError(output, context);
1133
1133
  }
1134
1134
  const contents = map({
1135
1135
  $metadata: deserializeMetadata(output),
1136
1136
  });
1137
1137
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1138
1138
  if (data.streamKey != null) {
1139
- contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
1139
+ contents.streamKey = de_StreamKey(data.streamKey, context);
1140
1140
  }
1141
1141
  return contents;
1142
1142
  };
1143
- const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context) => {
1143
+ const de_GetStreamKeyCommandError = async (output, context) => {
1144
1144
  const parsedOutput = {
1145
1145
  ...output,
1146
1146
  body: await parseErrorBody(output.body, context),
@@ -1149,13 +1149,13 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
1149
1149
  switch (errorCode) {
1150
1150
  case "AccessDeniedException":
1151
1151
  case "com.amazonaws.ivs#AccessDeniedException":
1152
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1152
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1153
1153
  case "ResourceNotFoundException":
1154
1154
  case "com.amazonaws.ivs#ResourceNotFoundException":
1155
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1155
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1156
1156
  case "ValidationException":
1157
1157
  case "com.amazonaws.ivs#ValidationException":
1158
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1158
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1159
1159
  default:
1160
1160
  const parsedBody = parsedOutput.body;
1161
1161
  throwDefaultError({
@@ -1166,20 +1166,20 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
1166
1166
  });
1167
1167
  }
1168
1168
  };
1169
- export const deserializeAws_restJson1GetStreamSessionCommand = async (output, context) => {
1169
+ export const de_GetStreamSessionCommand = async (output, context) => {
1170
1170
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1171
- return deserializeAws_restJson1GetStreamSessionCommandError(output, context);
1171
+ return de_GetStreamSessionCommandError(output, context);
1172
1172
  }
1173
1173
  const contents = map({
1174
1174
  $metadata: deserializeMetadata(output),
1175
1175
  });
1176
1176
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1177
1177
  if (data.streamSession != null) {
1178
- contents.streamSession = deserializeAws_restJson1StreamSession(data.streamSession, context);
1178
+ contents.streamSession = de_StreamSession(data.streamSession, context);
1179
1179
  }
1180
1180
  return contents;
1181
1181
  };
1182
- const deserializeAws_restJson1GetStreamSessionCommandError = async (output, context) => {
1182
+ const de_GetStreamSessionCommandError = async (output, context) => {
1183
1183
  const parsedOutput = {
1184
1184
  ...output,
1185
1185
  body: await parseErrorBody(output.body, context),
@@ -1188,13 +1188,13 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
1188
1188
  switch (errorCode) {
1189
1189
  case "AccessDeniedException":
1190
1190
  case "com.amazonaws.ivs#AccessDeniedException":
1191
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1191
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1192
1192
  case "ResourceNotFoundException":
1193
1193
  case "com.amazonaws.ivs#ResourceNotFoundException":
1194
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1194
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1195
1195
  case "ValidationException":
1196
1196
  case "com.amazonaws.ivs#ValidationException":
1197
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1197
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1198
1198
  default:
1199
1199
  const parsedBody = parsedOutput.body;
1200
1200
  throwDefaultError({
@@ -1205,20 +1205,20 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
1205
1205
  });
1206
1206
  }
1207
1207
  };
1208
- export const deserializeAws_restJson1ImportPlaybackKeyPairCommand = async (output, context) => {
1208
+ export const de_ImportPlaybackKeyPairCommand = async (output, context) => {
1209
1209
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1210
- return deserializeAws_restJson1ImportPlaybackKeyPairCommandError(output, context);
1210
+ return de_ImportPlaybackKeyPairCommandError(output, context);
1211
1211
  }
1212
1212
  const contents = map({
1213
1213
  $metadata: deserializeMetadata(output),
1214
1214
  });
1215
1215
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1216
1216
  if (data.keyPair != null) {
1217
- contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1217
+ contents.keyPair = de_PlaybackKeyPair(data.keyPair, context);
1218
1218
  }
1219
1219
  return contents;
1220
1220
  };
1221
- const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output, context) => {
1221
+ const de_ImportPlaybackKeyPairCommandError = async (output, context) => {
1222
1222
  const parsedOutput = {
1223
1223
  ...output,
1224
1224
  body: await parseErrorBody(output.body, context),
@@ -1227,19 +1227,19 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
1227
1227
  switch (errorCode) {
1228
1228
  case "AccessDeniedException":
1229
1229
  case "com.amazonaws.ivs#AccessDeniedException":
1230
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1230
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1231
1231
  case "ConflictException":
1232
1232
  case "com.amazonaws.ivs#ConflictException":
1233
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1233
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1234
1234
  case "PendingVerification":
1235
1235
  case "com.amazonaws.ivs#PendingVerification":
1236
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
1236
+ throw await de_PendingVerificationRes(parsedOutput, context);
1237
1237
  case "ServiceQuotaExceededException":
1238
1238
  case "com.amazonaws.ivs#ServiceQuotaExceededException":
1239
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1239
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1240
1240
  case "ValidationException":
1241
1241
  case "com.amazonaws.ivs#ValidationException":
1242
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1242
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1243
1243
  default:
1244
1244
  const parsedBody = parsedOutput.body;
1245
1245
  throwDefaultError({
@@ -1250,23 +1250,23 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
1250
1250
  });
1251
1251
  }
1252
1252
  };
1253
- export const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
1253
+ export const de_ListChannelsCommand = async (output, context) => {
1254
1254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1255
- return deserializeAws_restJson1ListChannelsCommandError(output, context);
1255
+ return de_ListChannelsCommandError(output, context);
1256
1256
  }
1257
1257
  const contents = map({
1258
1258
  $metadata: deserializeMetadata(output),
1259
1259
  });
1260
1260
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1261
1261
  if (data.channels != null) {
1262
- contents.channels = deserializeAws_restJson1ChannelList(data.channels, context);
1262
+ contents.channels = de_ChannelList(data.channels, context);
1263
1263
  }
1264
1264
  if (data.nextToken != null) {
1265
1265
  contents.nextToken = __expectString(data.nextToken);
1266
1266
  }
1267
1267
  return contents;
1268
1268
  };
1269
- const deserializeAws_restJson1ListChannelsCommandError = async (output, context) => {
1269
+ const de_ListChannelsCommandError = async (output, context) => {
1270
1270
  const parsedOutput = {
1271
1271
  ...output,
1272
1272
  body: await parseErrorBody(output.body, context),
@@ -1275,13 +1275,13 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
1275
1275
  switch (errorCode) {
1276
1276
  case "AccessDeniedException":
1277
1277
  case "com.amazonaws.ivs#AccessDeniedException":
1278
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1278
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1279
1279
  case "ConflictException":
1280
1280
  case "com.amazonaws.ivs#ConflictException":
1281
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1281
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1282
1282
  case "ValidationException":
1283
1283
  case "com.amazonaws.ivs#ValidationException":
1284
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1284
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1285
1285
  default:
1286
1286
  const parsedBody = parsedOutput.body;
1287
1287
  throwDefaultError({
@@ -1292,23 +1292,23 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
1292
1292
  });
1293
1293
  }
1294
1294
  };
1295
- export const deserializeAws_restJson1ListPlaybackKeyPairsCommand = async (output, context) => {
1295
+ export const de_ListPlaybackKeyPairsCommand = async (output, context) => {
1296
1296
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1297
- return deserializeAws_restJson1ListPlaybackKeyPairsCommandError(output, context);
1297
+ return de_ListPlaybackKeyPairsCommandError(output, context);
1298
1298
  }
1299
1299
  const contents = map({
1300
1300
  $metadata: deserializeMetadata(output),
1301
1301
  });
1302
1302
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1303
1303
  if (data.keyPairs != null) {
1304
- contents.keyPairs = deserializeAws_restJson1PlaybackKeyPairList(data.keyPairs, context);
1304
+ contents.keyPairs = de_PlaybackKeyPairList(data.keyPairs, context);
1305
1305
  }
1306
1306
  if (data.nextToken != null) {
1307
1307
  contents.nextToken = __expectString(data.nextToken);
1308
1308
  }
1309
1309
  return contents;
1310
1310
  };
1311
- const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output, context) => {
1311
+ const de_ListPlaybackKeyPairsCommandError = async (output, context) => {
1312
1312
  const parsedOutput = {
1313
1313
  ...output,
1314
1314
  body: await parseErrorBody(output.body, context),
@@ -1317,10 +1317,10 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
1317
1317
  switch (errorCode) {
1318
1318
  case "AccessDeniedException":
1319
1319
  case "com.amazonaws.ivs#AccessDeniedException":
1320
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1320
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1321
1321
  case "ValidationException":
1322
1322
  case "com.amazonaws.ivs#ValidationException":
1323
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1323
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1324
1324
  default:
1325
1325
  const parsedBody = parsedOutput.body;
1326
1326
  throwDefaultError({
@@ -1331,9 +1331,9 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
1331
1331
  });
1332
1332
  }
1333
1333
  };
1334
- export const deserializeAws_restJson1ListRecordingConfigurationsCommand = async (output, context) => {
1334
+ export const de_ListRecordingConfigurationsCommand = async (output, context) => {
1335
1335
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1336
- return deserializeAws_restJson1ListRecordingConfigurationsCommandError(output, context);
1336
+ return de_ListRecordingConfigurationsCommandError(output, context);
1337
1337
  }
1338
1338
  const contents = map({
1339
1339
  $metadata: deserializeMetadata(output),
@@ -1343,11 +1343,11 @@ export const deserializeAws_restJson1ListRecordingConfigurationsCommand = async
1343
1343
  contents.nextToken = __expectString(data.nextToken);
1344
1344
  }
1345
1345
  if (data.recordingConfigurations != null) {
1346
- contents.recordingConfigurations = deserializeAws_restJson1RecordingConfigurationList(data.recordingConfigurations, context);
1346
+ contents.recordingConfigurations = de_RecordingConfigurationList(data.recordingConfigurations, context);
1347
1347
  }
1348
1348
  return contents;
1349
1349
  };
1350
- const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (output, context) => {
1350
+ const de_ListRecordingConfigurationsCommandError = async (output, context) => {
1351
1351
  const parsedOutput = {
1352
1352
  ...output,
1353
1353
  body: await parseErrorBody(output.body, context),
@@ -1356,13 +1356,13 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
1356
1356
  switch (errorCode) {
1357
1357
  case "AccessDeniedException":
1358
1358
  case "com.amazonaws.ivs#AccessDeniedException":
1359
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1359
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1360
1360
  case "InternalServerException":
1361
1361
  case "com.amazonaws.ivs#InternalServerException":
1362
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1362
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1363
1363
  case "ValidationException":
1364
1364
  case "com.amazonaws.ivs#ValidationException":
1365
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1365
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1366
1366
  default:
1367
1367
  const parsedBody = parsedOutput.body;
1368
1368
  throwDefaultError({
@@ -1373,9 +1373,9 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
1373
1373
  });
1374
1374
  }
1375
1375
  };
1376
- export const deserializeAws_restJson1ListStreamKeysCommand = async (output, context) => {
1376
+ export const de_ListStreamKeysCommand = async (output, context) => {
1377
1377
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1378
- return deserializeAws_restJson1ListStreamKeysCommandError(output, context);
1378
+ return de_ListStreamKeysCommandError(output, context);
1379
1379
  }
1380
1380
  const contents = map({
1381
1381
  $metadata: deserializeMetadata(output),
@@ -1385,11 +1385,11 @@ export const deserializeAws_restJson1ListStreamKeysCommand = async (output, cont
1385
1385
  contents.nextToken = __expectString(data.nextToken);
1386
1386
  }
1387
1387
  if (data.streamKeys != null) {
1388
- contents.streamKeys = deserializeAws_restJson1StreamKeyList(data.streamKeys, context);
1388
+ contents.streamKeys = de_StreamKeyList(data.streamKeys, context);
1389
1389
  }
1390
1390
  return contents;
1391
1391
  };
1392
- const deserializeAws_restJson1ListStreamKeysCommandError = async (output, context) => {
1392
+ const de_ListStreamKeysCommandError = async (output, context) => {
1393
1393
  const parsedOutput = {
1394
1394
  ...output,
1395
1395
  body: await parseErrorBody(output.body, context),
@@ -1398,13 +1398,13 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
1398
1398
  switch (errorCode) {
1399
1399
  case "AccessDeniedException":
1400
1400
  case "com.amazonaws.ivs#AccessDeniedException":
1401
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1401
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1402
1402
  case "ResourceNotFoundException":
1403
1403
  case "com.amazonaws.ivs#ResourceNotFoundException":
1404
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1404
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1405
1405
  case "ValidationException":
1406
1406
  case "com.amazonaws.ivs#ValidationException":
1407
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1407
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1408
1408
  default:
1409
1409
  const parsedBody = parsedOutput.body;
1410
1410
  throwDefaultError({
@@ -1415,9 +1415,9 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
1415
1415
  });
1416
1416
  }
1417
1417
  };
1418
- export const deserializeAws_restJson1ListStreamsCommand = async (output, context) => {
1418
+ export const de_ListStreamsCommand = async (output, context) => {
1419
1419
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1420
- return deserializeAws_restJson1ListStreamsCommandError(output, context);
1420
+ return de_ListStreamsCommandError(output, context);
1421
1421
  }
1422
1422
  const contents = map({
1423
1423
  $metadata: deserializeMetadata(output),
@@ -1427,11 +1427,11 @@ export const deserializeAws_restJson1ListStreamsCommand = async (output, context
1427
1427
  contents.nextToken = __expectString(data.nextToken);
1428
1428
  }
1429
1429
  if (data.streams != null) {
1430
- contents.streams = deserializeAws_restJson1StreamList(data.streams, context);
1430
+ contents.streams = de_StreamList(data.streams, context);
1431
1431
  }
1432
1432
  return contents;
1433
1433
  };
1434
- const deserializeAws_restJson1ListStreamsCommandError = async (output, context) => {
1434
+ const de_ListStreamsCommandError = async (output, context) => {
1435
1435
  const parsedOutput = {
1436
1436
  ...output,
1437
1437
  body: await parseErrorBody(output.body, context),
@@ -1440,10 +1440,10 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
1440
1440
  switch (errorCode) {
1441
1441
  case "AccessDeniedException":
1442
1442
  case "com.amazonaws.ivs#AccessDeniedException":
1443
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1443
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1444
1444
  case "ValidationException":
1445
1445
  case "com.amazonaws.ivs#ValidationException":
1446
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1446
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1447
1447
  default:
1448
1448
  const parsedBody = parsedOutput.body;
1449
1449
  throwDefaultError({
@@ -1454,9 +1454,9 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
1454
1454
  });
1455
1455
  }
1456
1456
  };
1457
- export const deserializeAws_restJson1ListStreamSessionsCommand = async (output, context) => {
1457
+ export const de_ListStreamSessionsCommand = async (output, context) => {
1458
1458
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1459
- return deserializeAws_restJson1ListStreamSessionsCommandError(output, context);
1459
+ return de_ListStreamSessionsCommandError(output, context);
1460
1460
  }
1461
1461
  const contents = map({
1462
1462
  $metadata: deserializeMetadata(output),
@@ -1466,11 +1466,11 @@ export const deserializeAws_restJson1ListStreamSessionsCommand = async (output,
1466
1466
  contents.nextToken = __expectString(data.nextToken);
1467
1467
  }
1468
1468
  if (data.streamSessions != null) {
1469
- contents.streamSessions = deserializeAws_restJson1StreamSessionList(data.streamSessions, context);
1469
+ contents.streamSessions = de_StreamSessionList(data.streamSessions, context);
1470
1470
  }
1471
1471
  return contents;
1472
1472
  };
1473
- const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, context) => {
1473
+ const de_ListStreamSessionsCommandError = async (output, context) => {
1474
1474
  const parsedOutput = {
1475
1475
  ...output,
1476
1476
  body: await parseErrorBody(output.body, context),
@@ -1479,13 +1479,13 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
1479
1479
  switch (errorCode) {
1480
1480
  case "AccessDeniedException":
1481
1481
  case "com.amazonaws.ivs#AccessDeniedException":
1482
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1482
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1483
1483
  case "ResourceNotFoundException":
1484
1484
  case "com.amazonaws.ivs#ResourceNotFoundException":
1485
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1485
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1486
1486
  case "ValidationException":
1487
1487
  case "com.amazonaws.ivs#ValidationException":
1488
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1488
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1489
1489
  default:
1490
1490
  const parsedBody = parsedOutput.body;
1491
1491
  throwDefaultError({
@@ -1496,20 +1496,20 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
1496
1496
  });
1497
1497
  }
1498
1498
  };
1499
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
1499
+ export const de_ListTagsForResourceCommand = async (output, context) => {
1500
1500
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1501
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
1501
+ return de_ListTagsForResourceCommandError(output, context);
1502
1502
  }
1503
1503
  const contents = map({
1504
1504
  $metadata: deserializeMetadata(output),
1505
1505
  });
1506
1506
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1507
1507
  if (data.tags != null) {
1508
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
1508
+ contents.tags = de_Tags(data.tags, context);
1509
1509
  }
1510
1510
  return contents;
1511
1511
  };
1512
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1512
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1513
1513
  const parsedOutput = {
1514
1514
  ...output,
1515
1515
  body: await parseErrorBody(output.body, context),
@@ -1518,13 +1518,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1518
1518
  switch (errorCode) {
1519
1519
  case "InternalServerException":
1520
1520
  case "com.amazonaws.ivs#InternalServerException":
1521
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1521
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1522
1522
  case "ResourceNotFoundException":
1523
1523
  case "com.amazonaws.ivs#ResourceNotFoundException":
1524
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1524
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1525
1525
  case "ValidationException":
1526
1526
  case "com.amazonaws.ivs#ValidationException":
1527
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1527
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1528
1528
  default:
1529
1529
  const parsedBody = parsedOutput.body;
1530
1530
  throwDefaultError({
@@ -1535,9 +1535,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1535
1535
  });
1536
1536
  }
1537
1537
  };
1538
- export const deserializeAws_restJson1PutMetadataCommand = async (output, context) => {
1538
+ export const de_PutMetadataCommand = async (output, context) => {
1539
1539
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1540
- return deserializeAws_restJson1PutMetadataCommandError(output, context);
1540
+ return de_PutMetadataCommandError(output, context);
1541
1541
  }
1542
1542
  const contents = map({
1543
1543
  $metadata: deserializeMetadata(output),
@@ -1545,7 +1545,7 @@ export const deserializeAws_restJson1PutMetadataCommand = async (output, context
1545
1545
  await collectBody(output.body, context);
1546
1546
  return contents;
1547
1547
  };
1548
- const deserializeAws_restJson1PutMetadataCommandError = async (output, context) => {
1548
+ const de_PutMetadataCommandError = async (output, context) => {
1549
1549
  const parsedOutput = {
1550
1550
  ...output,
1551
1551
  body: await parseErrorBody(output.body, context),
@@ -1554,19 +1554,19 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
1554
1554
  switch (errorCode) {
1555
1555
  case "AccessDeniedException":
1556
1556
  case "com.amazonaws.ivs#AccessDeniedException":
1557
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1557
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1558
1558
  case "ChannelNotBroadcasting":
1559
1559
  case "com.amazonaws.ivs#ChannelNotBroadcasting":
1560
- throw await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context);
1560
+ throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
1561
1561
  case "ResourceNotFoundException":
1562
1562
  case "com.amazonaws.ivs#ResourceNotFoundException":
1563
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1563
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1564
1564
  case "ThrottlingException":
1565
1565
  case "com.amazonaws.ivs#ThrottlingException":
1566
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1566
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1567
1567
  case "ValidationException":
1568
1568
  case "com.amazonaws.ivs#ValidationException":
1569
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1569
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1570
1570
  default:
1571
1571
  const parsedBody = parsedOutput.body;
1572
1572
  throwDefaultError({
@@ -1577,9 +1577,9 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
1577
1577
  });
1578
1578
  }
1579
1579
  };
1580
- export const deserializeAws_restJson1StopStreamCommand = async (output, context) => {
1580
+ export const de_StopStreamCommand = async (output, context) => {
1581
1581
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
- return deserializeAws_restJson1StopStreamCommandError(output, context);
1582
+ return de_StopStreamCommandError(output, context);
1583
1583
  }
1584
1584
  const contents = map({
1585
1585
  $metadata: deserializeMetadata(output),
@@ -1587,7 +1587,7 @@ export const deserializeAws_restJson1StopStreamCommand = async (output, context)
1587
1587
  await collectBody(output.body, context);
1588
1588
  return contents;
1589
1589
  };
1590
- const deserializeAws_restJson1StopStreamCommandError = async (output, context) => {
1590
+ const de_StopStreamCommandError = async (output, context) => {
1591
1591
  const parsedOutput = {
1592
1592
  ...output,
1593
1593
  body: await parseErrorBody(output.body, context),
@@ -1596,19 +1596,19 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
1596
1596
  switch (errorCode) {
1597
1597
  case "AccessDeniedException":
1598
1598
  case "com.amazonaws.ivs#AccessDeniedException":
1599
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1599
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1600
1600
  case "ChannelNotBroadcasting":
1601
1601
  case "com.amazonaws.ivs#ChannelNotBroadcasting":
1602
- throw await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context);
1602
+ throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
1603
1603
  case "ResourceNotFoundException":
1604
1604
  case "com.amazonaws.ivs#ResourceNotFoundException":
1605
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1605
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1606
1606
  case "StreamUnavailable":
1607
1607
  case "com.amazonaws.ivs#StreamUnavailable":
1608
- throw await deserializeAws_restJson1StreamUnavailableResponse(parsedOutput, context);
1608
+ throw await de_StreamUnavailableRes(parsedOutput, context);
1609
1609
  case "ValidationException":
1610
1610
  case "com.amazonaws.ivs#ValidationException":
1611
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1611
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1612
1612
  default:
1613
1613
  const parsedBody = parsedOutput.body;
1614
1614
  throwDefaultError({
@@ -1619,9 +1619,9 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
1619
1619
  });
1620
1620
  }
1621
1621
  };
1622
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1622
+ export const de_TagResourceCommand = async (output, context) => {
1623
1623
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1624
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1624
+ return de_TagResourceCommandError(output, context);
1625
1625
  }
1626
1626
  const contents = map({
1627
1627
  $metadata: deserializeMetadata(output),
@@ -1629,7 +1629,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
1629
1629
  await collectBody(output.body, context);
1630
1630
  return contents;
1631
1631
  };
1632
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1632
+ const de_TagResourceCommandError = async (output, context) => {
1633
1633
  const parsedOutput = {
1634
1634
  ...output,
1635
1635
  body: await parseErrorBody(output.body, context),
@@ -1638,13 +1638,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1638
1638
  switch (errorCode) {
1639
1639
  case "InternalServerException":
1640
1640
  case "com.amazonaws.ivs#InternalServerException":
1641
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1641
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1642
1642
  case "ResourceNotFoundException":
1643
1643
  case "com.amazonaws.ivs#ResourceNotFoundException":
1644
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1644
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1645
1645
  case "ValidationException":
1646
1646
  case "com.amazonaws.ivs#ValidationException":
1647
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1647
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1648
1648
  default:
1649
1649
  const parsedBody = parsedOutput.body;
1650
1650
  throwDefaultError({
@@ -1655,9 +1655,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1655
1655
  });
1656
1656
  }
1657
1657
  };
1658
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1658
+ export const de_UntagResourceCommand = async (output, context) => {
1659
1659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1660
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1660
+ return de_UntagResourceCommandError(output, context);
1661
1661
  }
1662
1662
  const contents = map({
1663
1663
  $metadata: deserializeMetadata(output),
@@ -1665,7 +1665,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
1665
1665
  await collectBody(output.body, context);
1666
1666
  return contents;
1667
1667
  };
1668
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1668
+ const de_UntagResourceCommandError = async (output, context) => {
1669
1669
  const parsedOutput = {
1670
1670
  ...output,
1671
1671
  body: await parseErrorBody(output.body, context),
@@ -1674,13 +1674,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1674
1674
  switch (errorCode) {
1675
1675
  case "InternalServerException":
1676
1676
  case "com.amazonaws.ivs#InternalServerException":
1677
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1677
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1678
1678
  case "ResourceNotFoundException":
1679
1679
  case "com.amazonaws.ivs#ResourceNotFoundException":
1680
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1680
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1681
1681
  case "ValidationException":
1682
1682
  case "com.amazonaws.ivs#ValidationException":
1683
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1683
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1684
1684
  default:
1685
1685
  const parsedBody = parsedOutput.body;
1686
1686
  throwDefaultError({
@@ -1691,20 +1691,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1691
1691
  });
1692
1692
  }
1693
1693
  };
1694
- export const deserializeAws_restJson1UpdateChannelCommand = async (output, context) => {
1694
+ export const de_UpdateChannelCommand = async (output, context) => {
1695
1695
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1696
- return deserializeAws_restJson1UpdateChannelCommandError(output, context);
1696
+ return de_UpdateChannelCommandError(output, context);
1697
1697
  }
1698
1698
  const contents = map({
1699
1699
  $metadata: deserializeMetadata(output),
1700
1700
  });
1701
1701
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1702
1702
  if (data.channel != null) {
1703
- contents.channel = deserializeAws_restJson1Channel(data.channel, context);
1703
+ contents.channel = de_Channel(data.channel, context);
1704
1704
  }
1705
1705
  return contents;
1706
1706
  };
1707
- const deserializeAws_restJson1UpdateChannelCommandError = async (output, context) => {
1707
+ const de_UpdateChannelCommandError = async (output, context) => {
1708
1708
  const parsedOutput = {
1709
1709
  ...output,
1710
1710
  body: await parseErrorBody(output.body, context),
@@ -1713,19 +1713,19 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
1713
1713
  switch (errorCode) {
1714
1714
  case "AccessDeniedException":
1715
1715
  case "com.amazonaws.ivs#AccessDeniedException":
1716
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1716
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1717
1717
  case "ConflictException":
1718
1718
  case "com.amazonaws.ivs#ConflictException":
1719
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1719
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1720
1720
  case "PendingVerification":
1721
1721
  case "com.amazonaws.ivs#PendingVerification":
1722
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
1722
+ throw await de_PendingVerificationRes(parsedOutput, context);
1723
1723
  case "ResourceNotFoundException":
1724
1724
  case "com.amazonaws.ivs#ResourceNotFoundException":
1725
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1725
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1726
1726
  case "ValidationException":
1727
1727
  case "com.amazonaws.ivs#ValidationException":
1728
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1728
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1729
1729
  default:
1730
1730
  const parsedBody = parsedOutput.body;
1731
1731
  throwDefaultError({
@@ -1737,7 +1737,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
1737
1737
  }
1738
1738
  };
1739
1739
  const map = __map;
1740
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1740
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1741
1741
  const contents = map({});
1742
1742
  const data = parsedOutput.body;
1743
1743
  if (data.exceptionMessage != null) {
@@ -1749,7 +1749,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
1749
1749
  });
1750
1750
  return __decorateServiceException(exception, parsedOutput.body);
1751
1751
  };
1752
- const deserializeAws_restJson1ChannelNotBroadcastingResponse = async (parsedOutput, context) => {
1752
+ const de_ChannelNotBroadcastingRes = async (parsedOutput, context) => {
1753
1753
  const contents = map({});
1754
1754
  const data = parsedOutput.body;
1755
1755
  if (data.exceptionMessage != null) {
@@ -1761,7 +1761,7 @@ const deserializeAws_restJson1ChannelNotBroadcastingResponse = async (parsedOutp
1761
1761
  });
1762
1762
  return __decorateServiceException(exception, parsedOutput.body);
1763
1763
  };
1764
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1764
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1765
1765
  const contents = map({});
1766
1766
  const data = parsedOutput.body;
1767
1767
  if (data.exceptionMessage != null) {
@@ -1773,7 +1773,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1773
1773
  });
1774
1774
  return __decorateServiceException(exception, parsedOutput.body);
1775
1775
  };
1776
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1776
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1777
1777
  const contents = map({});
1778
1778
  const data = parsedOutput.body;
1779
1779
  if (data.exceptionMessage != null) {
@@ -1785,7 +1785,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
1785
1785
  });
1786
1786
  return __decorateServiceException(exception, parsedOutput.body);
1787
1787
  };
1788
- const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput, context) => {
1788
+ const de_PendingVerificationRes = async (parsedOutput, context) => {
1789
1789
  const contents = map({});
1790
1790
  const data = parsedOutput.body;
1791
1791
  if (data.exceptionMessage != null) {
@@ -1797,7 +1797,7 @@ const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput,
1797
1797
  });
1798
1798
  return __decorateServiceException(exception, parsedOutput.body);
1799
1799
  };
1800
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1800
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1801
1801
  const contents = map({});
1802
1802
  const data = parsedOutput.body;
1803
1803
  if (data.exceptionMessage != null) {
@@ -1809,7 +1809,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1809
1809
  });
1810
1810
  return __decorateServiceException(exception, parsedOutput.body);
1811
1811
  };
1812
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1812
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1813
1813
  const contents = map({});
1814
1814
  const data = parsedOutput.body;
1815
1815
  if (data.exceptionMessage != null) {
@@ -1821,7 +1821,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1821
1821
  });
1822
1822
  return __decorateServiceException(exception, parsedOutput.body);
1823
1823
  };
1824
- const deserializeAws_restJson1StreamUnavailableResponse = async (parsedOutput, context) => {
1824
+ const de_StreamUnavailableRes = async (parsedOutput, context) => {
1825
1825
  const contents = map({});
1826
1826
  const data = parsedOutput.body;
1827
1827
  if (data.exceptionMessage != null) {
@@ -1833,7 +1833,7 @@ const deserializeAws_restJson1StreamUnavailableResponse = async (parsedOutput, c
1833
1833
  });
1834
1834
  return __decorateServiceException(exception, parsedOutput.body);
1835
1835
  };
1836
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1836
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1837
1837
  const contents = map({});
1838
1838
  const data = parsedOutput.body;
1839
1839
  if (data.exceptionMessage != null) {
@@ -1845,7 +1845,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1845
1845
  });
1846
1846
  return __decorateServiceException(exception, parsedOutput.body);
1847
1847
  };
1848
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1848
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1849
1849
  const contents = map({});
1850
1850
  const data = parsedOutput.body;
1851
1851
  if (data.exceptionMessage != null) {
@@ -1857,36 +1857,36 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1857
1857
  });
1858
1858
  return __decorateServiceException(exception, parsedOutput.body);
1859
1859
  };
1860
- const serializeAws_restJson1ChannelArnList = (input, context) => {
1860
+ const se_ChannelArnList = (input, context) => {
1861
1861
  return input
1862
1862
  .filter((e) => e != null)
1863
1863
  .map((entry) => {
1864
1864
  return entry;
1865
1865
  });
1866
1866
  };
1867
- const serializeAws_restJson1DestinationConfiguration = (input, context) => {
1867
+ const se_DestinationConfiguration = (input, context) => {
1868
1868
  return {
1869
- ...(input.s3 != null && { s3: serializeAws_restJson1S3DestinationConfiguration(input.s3, context) }),
1869
+ ...(input.s3 != null && { s3: se_S3DestinationConfiguration(input.s3, context) }),
1870
1870
  };
1871
1871
  };
1872
- const serializeAws_restJson1S3DestinationConfiguration = (input, context) => {
1872
+ const se_S3DestinationConfiguration = (input, context) => {
1873
1873
  return {
1874
1874
  ...(input.bucketName != null && { bucketName: input.bucketName }),
1875
1875
  };
1876
1876
  };
1877
- const serializeAws_restJson1StreamFilters = (input, context) => {
1877
+ const se_StreamFilters = (input, context) => {
1878
1878
  return {
1879
1879
  ...(input.health != null && { health: input.health }),
1880
1880
  };
1881
1881
  };
1882
- const serializeAws_restJson1StreamKeyArnList = (input, context) => {
1882
+ const se_StreamKeyArnList = (input, context) => {
1883
1883
  return input
1884
1884
  .filter((e) => e != null)
1885
1885
  .map((entry) => {
1886
1886
  return entry;
1887
1887
  });
1888
1888
  };
1889
- const serializeAws_restJson1Tags = (input, context) => {
1889
+ const se_Tags = (input, context) => {
1890
1890
  return Object.entries(input).reduce((acc, [key, value]) => {
1891
1891
  if (value === null) {
1892
1892
  return acc;
@@ -1895,13 +1895,13 @@ const serializeAws_restJson1Tags = (input, context) => {
1895
1895
  return acc;
1896
1896
  }, {});
1897
1897
  };
1898
- const serializeAws_restJson1ThumbnailConfiguration = (input, context) => {
1898
+ const se_ThumbnailConfiguration = (input, context) => {
1899
1899
  return {
1900
1900
  ...(input.recordingMode != null && { recordingMode: input.recordingMode }),
1901
1901
  ...(input.targetIntervalSeconds != null && { targetIntervalSeconds: input.targetIntervalSeconds }),
1902
1902
  };
1903
1903
  };
1904
- const deserializeAws_restJson1AudioConfiguration = (output, context) => {
1904
+ const de_AudioConfiguration = (output, context) => {
1905
1905
  return {
1906
1906
  channels: __expectLong(output.channels),
1907
1907
  codec: __expectString(output.codec),
@@ -1909,25 +1909,25 @@ const deserializeAws_restJson1AudioConfiguration = (output, context) => {
1909
1909
  targetBitrate: __expectLong(output.targetBitrate),
1910
1910
  };
1911
1911
  };
1912
- const deserializeAws_restJson1BatchError = (output, context) => {
1912
+ const de_BatchError = (output, context) => {
1913
1913
  return {
1914
1914
  arn: __expectString(output.arn),
1915
1915
  code: __expectString(output.code),
1916
1916
  message: __expectString(output.message),
1917
1917
  };
1918
1918
  };
1919
- const deserializeAws_restJson1BatchErrors = (output, context) => {
1919
+ const de_BatchErrors = (output, context) => {
1920
1920
  const retVal = (output || [])
1921
1921
  .filter((e) => e != null)
1922
1922
  .map((entry) => {
1923
1923
  if (entry === null) {
1924
1924
  return null;
1925
1925
  }
1926
- return deserializeAws_restJson1BatchError(entry, context);
1926
+ return de_BatchError(entry, context);
1927
1927
  });
1928
1928
  return retVal;
1929
1929
  };
1930
- const deserializeAws_restJson1Channel = (output, context) => {
1930
+ const de_Channel = (output, context) => {
1931
1931
  return {
1932
1932
  arn: __expectString(output.arn),
1933
1933
  authorized: __expectBoolean(output.authorized),
@@ -1937,33 +1937,33 @@ const deserializeAws_restJson1Channel = (output, context) => {
1937
1937
  name: __expectString(output.name),
1938
1938
  playbackUrl: __expectString(output.playbackUrl),
1939
1939
  recordingConfigurationArn: __expectString(output.recordingConfigurationArn),
1940
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1940
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1941
1941
  type: __expectString(output.type),
1942
1942
  };
1943
1943
  };
1944
- const deserializeAws_restJson1ChannelList = (output, context) => {
1944
+ const de_ChannelList = (output, context) => {
1945
1945
  const retVal = (output || [])
1946
1946
  .filter((e) => e != null)
1947
1947
  .map((entry) => {
1948
1948
  if (entry === null) {
1949
1949
  return null;
1950
1950
  }
1951
- return deserializeAws_restJson1ChannelSummary(entry, context);
1951
+ return de_ChannelSummary(entry, context);
1952
1952
  });
1953
1953
  return retVal;
1954
1954
  };
1955
- const deserializeAws_restJson1Channels = (output, context) => {
1955
+ const de_Channels = (output, context) => {
1956
1956
  const retVal = (output || [])
1957
1957
  .filter((e) => e != null)
1958
1958
  .map((entry) => {
1959
1959
  if (entry === null) {
1960
1960
  return null;
1961
1961
  }
1962
- return deserializeAws_restJson1Channel(entry, context);
1962
+ return de_Channel(entry, context);
1963
1963
  });
1964
1964
  return retVal;
1965
1965
  };
1966
- const deserializeAws_restJson1ChannelSummary = (output, context) => {
1966
+ const de_ChannelSummary = (output, context) => {
1967
1967
  return {
1968
1968
  arn: __expectString(output.arn),
1969
1969
  authorized: __expectBoolean(output.authorized),
@@ -1971,89 +1971,89 @@ const deserializeAws_restJson1ChannelSummary = (output, context) => {
1971
1971
  latencyMode: __expectString(output.latencyMode),
1972
1972
  name: __expectString(output.name),
1973
1973
  recordingConfigurationArn: __expectString(output.recordingConfigurationArn),
1974
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1974
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1975
1975
  };
1976
1976
  };
1977
- const deserializeAws_restJson1DestinationConfiguration = (output, context) => {
1977
+ const de_DestinationConfiguration = (output, context) => {
1978
1978
  return {
1979
- s3: output.s3 != null ? deserializeAws_restJson1S3DestinationConfiguration(output.s3, context) : undefined,
1979
+ s3: output.s3 != null ? de_S3DestinationConfiguration(output.s3, context) : undefined,
1980
1980
  };
1981
1981
  };
1982
- const deserializeAws_restJson1IngestConfiguration = (output, context) => {
1982
+ const de_IngestConfiguration = (output, context) => {
1983
1983
  return {
1984
- audio: output.audio != null ? deserializeAws_restJson1AudioConfiguration(output.audio, context) : undefined,
1985
- video: output.video != null ? deserializeAws_restJson1VideoConfiguration(output.video, context) : undefined,
1984
+ audio: output.audio != null ? de_AudioConfiguration(output.audio, context) : undefined,
1985
+ video: output.video != null ? de_VideoConfiguration(output.video, context) : undefined,
1986
1986
  };
1987
1987
  };
1988
- const deserializeAws_restJson1PlaybackKeyPair = (output, context) => {
1988
+ const de_PlaybackKeyPair = (output, context) => {
1989
1989
  return {
1990
1990
  arn: __expectString(output.arn),
1991
1991
  fingerprint: __expectString(output.fingerprint),
1992
1992
  name: __expectString(output.name),
1993
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1993
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1994
1994
  };
1995
1995
  };
1996
- const deserializeAws_restJson1PlaybackKeyPairList = (output, context) => {
1996
+ const de_PlaybackKeyPairList = (output, context) => {
1997
1997
  const retVal = (output || [])
1998
1998
  .filter((e) => e != null)
1999
1999
  .map((entry) => {
2000
2000
  if (entry === null) {
2001
2001
  return null;
2002
2002
  }
2003
- return deserializeAws_restJson1PlaybackKeyPairSummary(entry, context);
2003
+ return de_PlaybackKeyPairSummary(entry, context);
2004
2004
  });
2005
2005
  return retVal;
2006
2006
  };
2007
- const deserializeAws_restJson1PlaybackKeyPairSummary = (output, context) => {
2007
+ const de_PlaybackKeyPairSummary = (output, context) => {
2008
2008
  return {
2009
2009
  arn: __expectString(output.arn),
2010
2010
  name: __expectString(output.name),
2011
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2011
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2012
2012
  };
2013
2013
  };
2014
- const deserializeAws_restJson1RecordingConfiguration = (output, context) => {
2014
+ const de_RecordingConfiguration = (output, context) => {
2015
2015
  return {
2016
2016
  arn: __expectString(output.arn),
2017
2017
  destinationConfiguration: output.destinationConfiguration != null
2018
- ? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
2018
+ ? de_DestinationConfiguration(output.destinationConfiguration, context)
2019
2019
  : undefined,
2020
2020
  name: __expectString(output.name),
2021
2021
  recordingReconnectWindowSeconds: __expectInt32(output.recordingReconnectWindowSeconds),
2022
2022
  state: __expectString(output.state),
2023
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2023
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2024
2024
  thumbnailConfiguration: output.thumbnailConfiguration != null
2025
- ? deserializeAws_restJson1ThumbnailConfiguration(output.thumbnailConfiguration, context)
2025
+ ? de_ThumbnailConfiguration(output.thumbnailConfiguration, context)
2026
2026
  : undefined,
2027
2027
  };
2028
2028
  };
2029
- const deserializeAws_restJson1RecordingConfigurationList = (output, context) => {
2029
+ const de_RecordingConfigurationList = (output, context) => {
2030
2030
  const retVal = (output || [])
2031
2031
  .filter((e) => e != null)
2032
2032
  .map((entry) => {
2033
2033
  if (entry === null) {
2034
2034
  return null;
2035
2035
  }
2036
- return deserializeAws_restJson1RecordingConfigurationSummary(entry, context);
2036
+ return de_RecordingConfigurationSummary(entry, context);
2037
2037
  });
2038
2038
  return retVal;
2039
2039
  };
2040
- const deserializeAws_restJson1RecordingConfigurationSummary = (output, context) => {
2040
+ const de_RecordingConfigurationSummary = (output, context) => {
2041
2041
  return {
2042
2042
  arn: __expectString(output.arn),
2043
2043
  destinationConfiguration: output.destinationConfiguration != null
2044
- ? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
2044
+ ? de_DestinationConfiguration(output.destinationConfiguration, context)
2045
2045
  : undefined,
2046
2046
  name: __expectString(output.name),
2047
2047
  state: __expectString(output.state),
2048
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2048
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2049
2049
  };
2050
2050
  };
2051
- const deserializeAws_restJson1S3DestinationConfiguration = (output, context) => {
2051
+ const de_S3DestinationConfiguration = (output, context) => {
2052
2052
  return {
2053
2053
  bucketName: __expectString(output.bucketName),
2054
2054
  };
2055
2055
  };
2056
- const deserializeAws_restJson1_Stream = (output, context) => {
2056
+ const de__Stream = (output, context) => {
2057
2057
  return {
2058
2058
  channelArn: __expectString(output.channelArn),
2059
2059
  health: __expectString(output.health),
@@ -2064,101 +2064,97 @@ const deserializeAws_restJson1_Stream = (output, context) => {
2064
2064
  viewerCount: __expectLong(output.viewerCount),
2065
2065
  };
2066
2066
  };
2067
- const deserializeAws_restJson1StreamEvent = (output, context) => {
2067
+ const de_StreamEvent = (output, context) => {
2068
2068
  return {
2069
2069
  eventTime: output.eventTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.eventTime)) : undefined,
2070
2070
  name: __expectString(output.name),
2071
2071
  type: __expectString(output.type),
2072
2072
  };
2073
2073
  };
2074
- const deserializeAws_restJson1StreamEvents = (output, context) => {
2074
+ const de_StreamEvents = (output, context) => {
2075
2075
  const retVal = (output || [])
2076
2076
  .filter((e) => e != null)
2077
2077
  .map((entry) => {
2078
2078
  if (entry === null) {
2079
2079
  return null;
2080
2080
  }
2081
- return deserializeAws_restJson1StreamEvent(entry, context);
2081
+ return de_StreamEvent(entry, context);
2082
2082
  });
2083
2083
  return retVal;
2084
2084
  };
2085
- const deserializeAws_restJson1StreamKey = (output, context) => {
2085
+ const de_StreamKey = (output, context) => {
2086
2086
  return {
2087
2087
  arn: __expectString(output.arn),
2088
2088
  channelArn: __expectString(output.channelArn),
2089
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2089
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2090
2090
  value: __expectString(output.value),
2091
2091
  };
2092
2092
  };
2093
- const deserializeAws_restJson1StreamKeyList = (output, context) => {
2093
+ const de_StreamKeyList = (output, context) => {
2094
2094
  const retVal = (output || [])
2095
2095
  .filter((e) => e != null)
2096
2096
  .map((entry) => {
2097
2097
  if (entry === null) {
2098
2098
  return null;
2099
2099
  }
2100
- return deserializeAws_restJson1StreamKeySummary(entry, context);
2100
+ return de_StreamKeySummary(entry, context);
2101
2101
  });
2102
2102
  return retVal;
2103
2103
  };
2104
- const deserializeAws_restJson1StreamKeys = (output, context) => {
2104
+ const de_StreamKeys = (output, context) => {
2105
2105
  const retVal = (output || [])
2106
2106
  .filter((e) => e != null)
2107
2107
  .map((entry) => {
2108
2108
  if (entry === null) {
2109
2109
  return null;
2110
2110
  }
2111
- return deserializeAws_restJson1StreamKey(entry, context);
2111
+ return de_StreamKey(entry, context);
2112
2112
  });
2113
2113
  return retVal;
2114
2114
  };
2115
- const deserializeAws_restJson1StreamKeySummary = (output, context) => {
2115
+ const de_StreamKeySummary = (output, context) => {
2116
2116
  return {
2117
2117
  arn: __expectString(output.arn),
2118
2118
  channelArn: __expectString(output.channelArn),
2119
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2119
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2120
2120
  };
2121
2121
  };
2122
- const deserializeAws_restJson1StreamList = (output, context) => {
2122
+ const de_StreamList = (output, context) => {
2123
2123
  const retVal = (output || [])
2124
2124
  .filter((e) => e != null)
2125
2125
  .map((entry) => {
2126
2126
  if (entry === null) {
2127
2127
  return null;
2128
2128
  }
2129
- return deserializeAws_restJson1StreamSummary(entry, context);
2129
+ return de_StreamSummary(entry, context);
2130
2130
  });
2131
2131
  return retVal;
2132
2132
  };
2133
- const deserializeAws_restJson1StreamSession = (output, context) => {
2133
+ const de_StreamSession = (output, context) => {
2134
2134
  return {
2135
- channel: output.channel != null ? deserializeAws_restJson1Channel(output.channel, context) : undefined,
2135
+ channel: output.channel != null ? de_Channel(output.channel, context) : undefined,
2136
2136
  endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.endTime)) : undefined,
2137
- ingestConfiguration: output.ingestConfiguration != null
2138
- ? deserializeAws_restJson1IngestConfiguration(output.ingestConfiguration, context)
2139
- : undefined,
2137
+ ingestConfiguration: output.ingestConfiguration != null ? de_IngestConfiguration(output.ingestConfiguration, context) : undefined,
2140
2138
  recordingConfiguration: output.recordingConfiguration != null
2141
- ? deserializeAws_restJson1RecordingConfiguration(output.recordingConfiguration, context)
2139
+ ? de_RecordingConfiguration(output.recordingConfiguration, context)
2142
2140
  : undefined,
2143
2141
  startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startTime)) : undefined,
2144
2142
  streamId: __expectString(output.streamId),
2145
- truncatedEvents: output.truncatedEvents != null
2146
- ? deserializeAws_restJson1StreamEvents(output.truncatedEvents, context)
2147
- : undefined,
2143
+ truncatedEvents: output.truncatedEvents != null ? de_StreamEvents(output.truncatedEvents, context) : undefined,
2148
2144
  };
2149
2145
  };
2150
- const deserializeAws_restJson1StreamSessionList = (output, context) => {
2146
+ const de_StreamSessionList = (output, context) => {
2151
2147
  const retVal = (output || [])
2152
2148
  .filter((e) => e != null)
2153
2149
  .map((entry) => {
2154
2150
  if (entry === null) {
2155
2151
  return null;
2156
2152
  }
2157
- return deserializeAws_restJson1StreamSessionSummary(entry, context);
2153
+ return de_StreamSessionSummary(entry, context);
2158
2154
  });
2159
2155
  return retVal;
2160
2156
  };
2161
- const deserializeAws_restJson1StreamSessionSummary = (output, context) => {
2157
+ const de_StreamSessionSummary = (output, context) => {
2162
2158
  return {
2163
2159
  endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.endTime)) : undefined,
2164
2160
  hasErrorEvent: __expectBoolean(output.hasErrorEvent),
@@ -2166,7 +2162,7 @@ const deserializeAws_restJson1StreamSessionSummary = (output, context) => {
2166
2162
  streamId: __expectString(output.streamId),
2167
2163
  };
2168
2164
  };
2169
- const deserializeAws_restJson1StreamSummary = (output, context) => {
2165
+ const de_StreamSummary = (output, context) => {
2170
2166
  return {
2171
2167
  channelArn: __expectString(output.channelArn),
2172
2168
  health: __expectString(output.health),
@@ -2176,7 +2172,7 @@ const deserializeAws_restJson1StreamSummary = (output, context) => {
2176
2172
  viewerCount: __expectLong(output.viewerCount),
2177
2173
  };
2178
2174
  };
2179
- const deserializeAws_restJson1Tags = (output, context) => {
2175
+ const de_Tags = (output, context) => {
2180
2176
  return Object.entries(output).reduce((acc, [key, value]) => {
2181
2177
  if (value === null) {
2182
2178
  return acc;
@@ -2185,13 +2181,13 @@ const deserializeAws_restJson1Tags = (output, context) => {
2185
2181
  return acc;
2186
2182
  }, {});
2187
2183
  };
2188
- const deserializeAws_restJson1ThumbnailConfiguration = (output, context) => {
2184
+ const de_ThumbnailConfiguration = (output, context) => {
2189
2185
  return {
2190
2186
  recordingMode: __expectString(output.recordingMode),
2191
2187
  targetIntervalSeconds: __expectLong(output.targetIntervalSeconds),
2192
2188
  };
2193
2189
  };
2194
- const deserializeAws_restJson1VideoConfiguration = (output, context) => {
2190
+ const de_VideoConfiguration = (output, context) => {
2195
2191
  return {
2196
2192
  avcLevel: __expectString(output.avcLevel),
2197
2193
  avcProfile: __expectString(output.avcProfile),