@aws-sdk/client-ivs 3.31.0 → 3.32.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 (85) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/IvsClient.js +13 -13
  3. package/dist/cjs/IvsClient.js.map +1 -1
  4. package/dist/cjs/commands/BatchGetChannelCommand.js +3 -3
  5. package/dist/cjs/commands/BatchGetChannelCommand.js.map +1 -1
  6. package/dist/cjs/commands/BatchGetStreamKeyCommand.js +3 -3
  7. package/dist/cjs/commands/BatchGetStreamKeyCommand.js.map +1 -1
  8. package/dist/cjs/commands/CreateChannelCommand.js +3 -3
  9. package/dist/cjs/commands/CreateChannelCommand.js.map +1 -1
  10. package/dist/cjs/commands/CreateRecordingConfigurationCommand.js +3 -3
  11. package/dist/cjs/commands/CreateRecordingConfigurationCommand.js.map +1 -1
  12. package/dist/cjs/commands/CreateStreamKeyCommand.js +3 -3
  13. package/dist/cjs/commands/CreateStreamKeyCommand.js.map +1 -1
  14. package/dist/cjs/commands/DeleteChannelCommand.js +3 -3
  15. package/dist/cjs/commands/DeleteChannelCommand.js.map +1 -1
  16. package/dist/cjs/commands/DeletePlaybackKeyPairCommand.js +3 -3
  17. package/dist/cjs/commands/DeletePlaybackKeyPairCommand.js.map +1 -1
  18. package/dist/cjs/commands/DeleteRecordingConfigurationCommand.js +3 -3
  19. package/dist/cjs/commands/DeleteRecordingConfigurationCommand.js.map +1 -1
  20. package/dist/cjs/commands/DeleteStreamKeyCommand.js +3 -3
  21. package/dist/cjs/commands/DeleteStreamKeyCommand.js.map +1 -1
  22. package/dist/cjs/commands/GetChannelCommand.js +3 -3
  23. package/dist/cjs/commands/GetChannelCommand.js.map +1 -1
  24. package/dist/cjs/commands/GetPlaybackKeyPairCommand.js +3 -3
  25. package/dist/cjs/commands/GetPlaybackKeyPairCommand.js.map +1 -1
  26. package/dist/cjs/commands/GetRecordingConfigurationCommand.js +3 -3
  27. package/dist/cjs/commands/GetRecordingConfigurationCommand.js.map +1 -1
  28. package/dist/cjs/commands/GetStreamCommand.js +3 -3
  29. package/dist/cjs/commands/GetStreamCommand.js.map +1 -1
  30. package/dist/cjs/commands/GetStreamKeyCommand.js +3 -3
  31. package/dist/cjs/commands/GetStreamKeyCommand.js.map +1 -1
  32. package/dist/cjs/commands/ImportPlaybackKeyPairCommand.js +3 -3
  33. package/dist/cjs/commands/ImportPlaybackKeyPairCommand.js.map +1 -1
  34. package/dist/cjs/commands/ListChannelsCommand.js +3 -3
  35. package/dist/cjs/commands/ListChannelsCommand.js.map +1 -1
  36. package/dist/cjs/commands/ListPlaybackKeyPairsCommand.js +3 -3
  37. package/dist/cjs/commands/ListPlaybackKeyPairsCommand.js.map +1 -1
  38. package/dist/cjs/commands/ListRecordingConfigurationsCommand.js +3 -3
  39. package/dist/cjs/commands/ListRecordingConfigurationsCommand.js.map +1 -1
  40. package/dist/cjs/commands/ListStreamKeysCommand.js +3 -3
  41. package/dist/cjs/commands/ListStreamKeysCommand.js.map +1 -1
  42. package/dist/cjs/commands/ListStreamsCommand.js +3 -3
  43. package/dist/cjs/commands/ListStreamsCommand.js.map +1 -1
  44. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  45. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  46. package/dist/cjs/commands/PutMetadataCommand.js +3 -3
  47. package/dist/cjs/commands/PutMetadataCommand.js.map +1 -1
  48. package/dist/cjs/commands/StopStreamCommand.js +3 -3
  49. package/dist/cjs/commands/StopStreamCommand.js.map +1 -1
  50. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  51. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  52. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  53. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  54. package/dist/cjs/commands/UpdateChannelCommand.js +3 -3
  55. package/dist/cjs/commands/UpdateChannelCommand.js.map +1 -1
  56. package/dist/cjs/endpoints.js +1 -1
  57. package/dist/cjs/endpoints.js.map +1 -1
  58. package/dist/cjs/index.js +36 -36
  59. package/dist/cjs/index.js.map +1 -1
  60. package/dist/cjs/models/index.js +1 -1
  61. package/dist/cjs/models/index.js.map +1 -1
  62. package/dist/cjs/package.json +31 -31
  63. package/dist/cjs/protocols/Aws_restJson1.js +82 -82
  64. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  65. package/dist/cjs/runtimeConfig.browser.js +4 -4
  66. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  67. package/dist/cjs/runtimeConfig.js +8 -8
  68. package/dist/cjs/runtimeConfig.js.map +1 -1
  69. package/dist/cjs/runtimeConfig.native.js +1 -1
  70. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  71. package/dist/es/package.json +31 -31
  72. package/dist/es/pagination/ListChannelsPaginator.js +4 -4
  73. package/dist/es/pagination/ListChannelsPaginator.js.map +1 -1
  74. package/dist/es/pagination/ListPlaybackKeyPairsPaginator.js +4 -4
  75. package/dist/es/pagination/ListPlaybackKeyPairsPaginator.js.map +1 -1
  76. package/dist/es/pagination/ListRecordingConfigurationsPaginator.js +4 -4
  77. package/dist/es/pagination/ListRecordingConfigurationsPaginator.js.map +1 -1
  78. package/dist/es/pagination/ListStreamKeysPaginator.js +4 -4
  79. package/dist/es/pagination/ListStreamKeysPaginator.js.map +1 -1
  80. package/dist/es/pagination/ListStreamsPaginator.js +4 -4
  81. package/dist/es/pagination/ListStreamsPaginator.js.map +1 -1
  82. package/dist/es/pagination/ListTagsForResourcePaginator.js +4 -4
  83. package/dist/es/pagination/ListTagsForResourcePaginator.js.map +1 -1
  84. package/package.json +31 -31
  85. package/tsconfig.json +1 -2
@@ -463,7 +463,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
463
463
  if (labelValue.length <= 0) {
464
464
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
465
465
  }
466
- resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
466
+ resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
467
467
  }
468
468
  else {
469
469
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -538,7 +538,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
538
538
  if (labelValue.length <= 0) {
539
539
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
540
540
  }
541
- resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
541
+ resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
542
542
  }
543
543
  else {
544
544
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -567,7 +567,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
567
567
  if (labelValue.length <= 0) {
568
568
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
569
569
  }
570
- resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
570
+ resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
571
571
  }
572
572
  else {
573
573
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -624,7 +624,7 @@ const deserializeAws_restJson1BatchGetChannelCommand = async (output, context) =
624
624
  channels: undefined,
625
625
  errors: undefined,
626
626
  };
627
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
627
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
628
628
  if (data.channels !== undefined && data.channels !== null) {
629
629
  contents.channels = deserializeAws_restJson1Channels(data.channels, context);
630
630
  }
@@ -668,7 +668,7 @@ const deserializeAws_restJson1BatchGetStreamKeyCommand = async (output, context)
668
668
  errors: undefined,
669
669
  streamKeys: undefined,
670
670
  };
671
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
671
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
672
672
  if (data.errors !== undefined && data.errors !== null) {
673
673
  contents.errors = deserializeAws_restJson1BatchErrors(data.errors, context);
674
674
  }
@@ -712,7 +712,7 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
712
712
  channel: undefined,
713
713
  streamKey: undefined,
714
714
  };
715
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
715
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
716
716
  if (data.channel !== undefined && data.channel !== null) {
717
717
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
718
718
  }
@@ -795,7 +795,7 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommand = async (outpu
795
795
  $metadata: deserializeMetadata(output),
796
796
  recordingConfiguration: undefined,
797
797
  };
798
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
798
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
799
799
  if (data.recordingConfiguration !== undefined && data.recordingConfiguration !== null) {
800
800
  contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
801
801
  }
@@ -883,7 +883,7 @@ const deserializeAws_restJson1CreateStreamKeyCommand = async (output, context) =
883
883
  $metadata: deserializeMetadata(output),
884
884
  streamKey: undefined,
885
885
  };
886
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
886
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
887
887
  if (data.streamKey !== undefined && data.streamKey !== null) {
888
888
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
889
889
  }
@@ -1251,7 +1251,7 @@ const deserializeAws_restJson1GetChannelCommand = async (output, context) => {
1251
1251
  $metadata: deserializeMetadata(output),
1252
1252
  channel: undefined,
1253
1253
  };
1254
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1254
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1255
1255
  if (data.channel !== undefined && data.channel !== null) {
1256
1256
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
1257
1257
  }
@@ -1315,7 +1315,7 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommand = async (output, context
1315
1315
  $metadata: deserializeMetadata(output),
1316
1316
  keyPair: undefined,
1317
1317
  };
1318
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1318
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1319
1319
  if (data.keyPair !== undefined && data.keyPair !== null) {
1320
1320
  contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1321
1321
  }
@@ -1379,7 +1379,7 @@ const deserializeAws_restJson1GetRecordingConfigurationCommand = async (output,
1379
1379
  $metadata: deserializeMetadata(output),
1380
1380
  recordingConfiguration: undefined,
1381
1381
  };
1382
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1382
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1383
1383
  if (data.recordingConfiguration !== undefined && data.recordingConfiguration !== null) {
1384
1384
  contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
1385
1385
  }
@@ -1451,7 +1451,7 @@ const deserializeAws_restJson1GetStreamCommand = async (output, context) => {
1451
1451
  $metadata: deserializeMetadata(output),
1452
1452
  stream: undefined,
1453
1453
  };
1454
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1454
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1455
1455
  if (data.stream !== undefined && data.stream !== null) {
1456
1456
  contents.stream = deserializeAws_restJson1_Stream(data.stream, context);
1457
1457
  }
@@ -1523,7 +1523,7 @@ const deserializeAws_restJson1GetStreamKeyCommand = async (output, context) => {
1523
1523
  $metadata: deserializeMetadata(output),
1524
1524
  streamKey: undefined,
1525
1525
  };
1526
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1526
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1527
1527
  if (data.streamKey !== undefined && data.streamKey !== null) {
1528
1528
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
1529
1529
  }
@@ -1587,7 +1587,7 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommand = async (output, cont
1587
1587
  $metadata: deserializeMetadata(output),
1588
1588
  keyPair: undefined,
1589
1589
  };
1590
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1590
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1591
1591
  if (data.keyPair !== undefined && data.keyPair !== null) {
1592
1592
  contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1593
1593
  }
@@ -1668,12 +1668,12 @@ const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
1668
1668
  channels: undefined,
1669
1669
  nextToken: undefined,
1670
1670
  };
1671
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1671
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1672
1672
  if (data.channels !== undefined && data.channels !== null) {
1673
1673
  contents.channels = deserializeAws_restJson1ChannelList(data.channels, context);
1674
1674
  }
1675
1675
  if (data.nextToken !== undefined && data.nextToken !== null) {
1676
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1676
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
1677
1677
  }
1678
1678
  return Promise.resolve(contents);
1679
1679
  };
@@ -1736,12 +1736,12 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommand = async (output, conte
1736
1736
  keyPairs: undefined,
1737
1737
  nextToken: undefined,
1738
1738
  };
1739
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1739
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1740
1740
  if (data.keyPairs !== undefined && data.keyPairs !== null) {
1741
1741
  contents.keyPairs = deserializeAws_restJson1PlaybackKeyPairList(data.keyPairs, context);
1742
1742
  }
1743
1743
  if (data.nextToken !== undefined && data.nextToken !== null) {
1744
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1744
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
1745
1745
  }
1746
1746
  return Promise.resolve(contents);
1747
1747
  };
@@ -1796,9 +1796,9 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommand = async (output
1796
1796
  nextToken: undefined,
1797
1797
  recordingConfigurations: undefined,
1798
1798
  };
1799
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1799
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1800
1800
  if (data.nextToken !== undefined && data.nextToken !== null) {
1801
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1801
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
1802
1802
  }
1803
1803
  if (data.recordingConfigurations !== undefined && data.recordingConfigurations !== null) {
1804
1804
  contents.recordingConfigurations = deserializeAws_restJson1RecordingConfigurationList(data.recordingConfigurations, context);
@@ -1864,9 +1864,9 @@ const deserializeAws_restJson1ListStreamKeysCommand = async (output, context) =>
1864
1864
  nextToken: undefined,
1865
1865
  streamKeys: undefined,
1866
1866
  };
1867
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1867
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1868
1868
  if (data.nextToken !== undefined && data.nextToken !== null) {
1869
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1869
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
1870
1870
  }
1871
1871
  if (data.streamKeys !== undefined && data.streamKeys !== null) {
1872
1872
  contents.streamKeys = deserializeAws_restJson1StreamKeyList(data.streamKeys, context);
@@ -1932,9 +1932,9 @@ const deserializeAws_restJson1ListStreamsCommand = async (output, context) => {
1932
1932
  nextToken: undefined,
1933
1933
  streams: undefined,
1934
1934
  };
1935
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1935
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1936
1936
  if (data.nextToken !== undefined && data.nextToken !== null) {
1937
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1937
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
1938
1938
  }
1939
1939
  if (data.streams !== undefined && data.streams !== null) {
1940
1940
  contents.streams = deserializeAws_restJson1StreamList(data.streams, context);
@@ -1984,9 +1984,9 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
1984
1984
  nextToken: undefined,
1985
1985
  tags: undefined,
1986
1986
  };
1987
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1987
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1988
1988
  if (data.nextToken !== undefined && data.nextToken !== null) {
1989
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1989
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
1990
1990
  }
1991
1991
  if (data.tags !== undefined && data.tags !== null) {
1992
1992
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -2323,7 +2323,7 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
2323
2323
  $metadata: deserializeMetadata(output),
2324
2324
  channel: undefined,
2325
2325
  };
2326
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2326
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2327
2327
  if (data.channel !== undefined && data.channel !== null) {
2328
2328
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
2329
2329
  }
@@ -2404,7 +2404,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
2404
2404
  };
2405
2405
  const data = parsedOutput.body;
2406
2406
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2407
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2407
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2408
2408
  }
2409
2409
  return contents;
2410
2410
  };
@@ -2417,7 +2417,7 @@ const deserializeAws_restJson1ChannelNotBroadcastingResponse = async (parsedOutp
2417
2417
  };
2418
2418
  const data = parsedOutput.body;
2419
2419
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2420
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2420
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2421
2421
  }
2422
2422
  return contents;
2423
2423
  };
@@ -2430,7 +2430,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
2430
2430
  };
2431
2431
  const data = parsedOutput.body;
2432
2432
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2433
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2433
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2434
2434
  }
2435
2435
  return contents;
2436
2436
  };
@@ -2443,7 +2443,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
2443
2443
  };
2444
2444
  const data = parsedOutput.body;
2445
2445
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2446
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2446
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2447
2447
  }
2448
2448
  return contents;
2449
2449
  };
@@ -2456,7 +2456,7 @@ const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput,
2456
2456
  };
2457
2457
  const data = parsedOutput.body;
2458
2458
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2459
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2459
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2460
2460
  }
2461
2461
  return contents;
2462
2462
  };
@@ -2469,7 +2469,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
2469
2469
  };
2470
2470
  const data = parsedOutput.body;
2471
2471
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2472
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2472
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2473
2473
  }
2474
2474
  return contents;
2475
2475
  };
@@ -2482,7 +2482,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
2482
2482
  };
2483
2483
  const data = parsedOutput.body;
2484
2484
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2485
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2485
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2486
2486
  }
2487
2487
  return contents;
2488
2488
  };
@@ -2495,7 +2495,7 @@ const deserializeAws_restJson1StreamUnavailableResponse = async (parsedOutput, c
2495
2495
  };
2496
2496
  const data = parsedOutput.body;
2497
2497
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2498
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2498
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2499
2499
  }
2500
2500
  return contents;
2501
2501
  };
@@ -2508,7 +2508,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
2508
2508
  };
2509
2509
  const data = parsedOutput.body;
2510
2510
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2511
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2511
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2512
2512
  }
2513
2513
  return contents;
2514
2514
  };
@@ -2521,7 +2521,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2521
2521
  };
2522
2522
  const data = parsedOutput.body;
2523
2523
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2524
- contents.exceptionMessage = (0, smithy_client_1.expectString)(data.exceptionMessage);
2524
+ contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
2525
2525
  }
2526
2526
  return contents;
2527
2527
  };
@@ -2569,9 +2569,9 @@ const serializeAws_restJson1Tags = (input, context) => {
2569
2569
  };
2570
2570
  const deserializeAws_restJson1BatchError = (output, context) => {
2571
2571
  return {
2572
- arn: (0, smithy_client_1.expectString)(output.arn),
2573
- code: (0, smithy_client_1.expectString)(output.code),
2574
- message: (0, smithy_client_1.expectString)(output.message),
2572
+ arn: smithy_client_1.expectString(output.arn),
2573
+ code: smithy_client_1.expectString(output.code),
2574
+ message: smithy_client_1.expectString(output.message),
2575
2575
  };
2576
2576
  };
2577
2577
  const deserializeAws_restJson1BatchErrors = (output, context) => {
@@ -2586,17 +2586,17 @@ const deserializeAws_restJson1BatchErrors = (output, context) => {
2586
2586
  };
2587
2587
  const deserializeAws_restJson1Channel = (output, context) => {
2588
2588
  return {
2589
- arn: (0, smithy_client_1.expectString)(output.arn),
2590
- authorized: (0, smithy_client_1.expectBoolean)(output.authorized),
2591
- ingestEndpoint: (0, smithy_client_1.expectString)(output.ingestEndpoint),
2592
- latencyMode: (0, smithy_client_1.expectString)(output.latencyMode),
2593
- name: (0, smithy_client_1.expectString)(output.name),
2594
- playbackUrl: (0, smithy_client_1.expectString)(output.playbackUrl),
2595
- recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
2589
+ arn: smithy_client_1.expectString(output.arn),
2590
+ authorized: smithy_client_1.expectBoolean(output.authorized),
2591
+ ingestEndpoint: smithy_client_1.expectString(output.ingestEndpoint),
2592
+ latencyMode: smithy_client_1.expectString(output.latencyMode),
2593
+ name: smithy_client_1.expectString(output.name),
2594
+ playbackUrl: smithy_client_1.expectString(output.playbackUrl),
2595
+ recordingConfigurationArn: smithy_client_1.expectString(output.recordingConfigurationArn),
2596
2596
  tags: output.tags !== undefined && output.tags !== null
2597
2597
  ? deserializeAws_restJson1Tags(output.tags, context)
2598
2598
  : undefined,
2599
- type: (0, smithy_client_1.expectString)(output.type),
2599
+ type: smithy_client_1.expectString(output.type),
2600
2600
  };
2601
2601
  };
2602
2602
  const deserializeAws_restJson1ChannelList = (output, context) => {
@@ -2621,11 +2621,11 @@ const deserializeAws_restJson1Channels = (output, context) => {
2621
2621
  };
2622
2622
  const deserializeAws_restJson1ChannelSummary = (output, context) => {
2623
2623
  return {
2624
- arn: (0, smithy_client_1.expectString)(output.arn),
2625
- authorized: (0, smithy_client_1.expectBoolean)(output.authorized),
2626
- latencyMode: (0, smithy_client_1.expectString)(output.latencyMode),
2627
- name: (0, smithy_client_1.expectString)(output.name),
2628
- recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
2624
+ arn: smithy_client_1.expectString(output.arn),
2625
+ authorized: smithy_client_1.expectBoolean(output.authorized),
2626
+ latencyMode: smithy_client_1.expectString(output.latencyMode),
2627
+ name: smithy_client_1.expectString(output.name),
2628
+ recordingConfigurationArn: smithy_client_1.expectString(output.recordingConfigurationArn),
2629
2629
  tags: output.tags !== undefined && output.tags !== null
2630
2630
  ? deserializeAws_restJson1Tags(output.tags, context)
2631
2631
  : undefined,
@@ -2640,9 +2640,9 @@ const deserializeAws_restJson1DestinationConfiguration = (output, context) => {
2640
2640
  };
2641
2641
  const deserializeAws_restJson1PlaybackKeyPair = (output, context) => {
2642
2642
  return {
2643
- arn: (0, smithy_client_1.expectString)(output.arn),
2644
- fingerprint: (0, smithy_client_1.expectString)(output.fingerprint),
2645
- name: (0, smithy_client_1.expectString)(output.name),
2643
+ arn: smithy_client_1.expectString(output.arn),
2644
+ fingerprint: smithy_client_1.expectString(output.fingerprint),
2645
+ name: smithy_client_1.expectString(output.name),
2646
2646
  tags: output.tags !== undefined && output.tags !== null
2647
2647
  ? deserializeAws_restJson1Tags(output.tags, context)
2648
2648
  : undefined,
@@ -2660,8 +2660,8 @@ const deserializeAws_restJson1PlaybackKeyPairList = (output, context) => {
2660
2660
  };
2661
2661
  const deserializeAws_restJson1PlaybackKeyPairSummary = (output, context) => {
2662
2662
  return {
2663
- arn: (0, smithy_client_1.expectString)(output.arn),
2664
- name: (0, smithy_client_1.expectString)(output.name),
2663
+ arn: smithy_client_1.expectString(output.arn),
2664
+ name: smithy_client_1.expectString(output.name),
2665
2665
  tags: output.tags !== undefined && output.tags !== null
2666
2666
  ? deserializeAws_restJson1Tags(output.tags, context)
2667
2667
  : undefined,
@@ -2669,12 +2669,12 @@ const deserializeAws_restJson1PlaybackKeyPairSummary = (output, context) => {
2669
2669
  };
2670
2670
  const deserializeAws_restJson1RecordingConfiguration = (output, context) => {
2671
2671
  return {
2672
- arn: (0, smithy_client_1.expectString)(output.arn),
2672
+ arn: smithy_client_1.expectString(output.arn),
2673
2673
  destinationConfiguration: output.destinationConfiguration !== undefined && output.destinationConfiguration !== null
2674
2674
  ? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
2675
2675
  : undefined,
2676
- name: (0, smithy_client_1.expectString)(output.name),
2677
- state: (0, smithy_client_1.expectString)(output.state),
2676
+ name: smithy_client_1.expectString(output.name),
2677
+ state: smithy_client_1.expectString(output.state),
2678
2678
  tags: output.tags !== undefined && output.tags !== null
2679
2679
  ? deserializeAws_restJson1Tags(output.tags, context)
2680
2680
  : undefined,
@@ -2692,12 +2692,12 @@ const deserializeAws_restJson1RecordingConfigurationList = (output, context) =>
2692
2692
  };
2693
2693
  const deserializeAws_restJson1RecordingConfigurationSummary = (output, context) => {
2694
2694
  return {
2695
- arn: (0, smithy_client_1.expectString)(output.arn),
2695
+ arn: smithy_client_1.expectString(output.arn),
2696
2696
  destinationConfiguration: output.destinationConfiguration !== undefined && output.destinationConfiguration !== null
2697
2697
  ? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
2698
2698
  : undefined,
2699
- name: (0, smithy_client_1.expectString)(output.name),
2700
- state: (0, smithy_client_1.expectString)(output.state),
2699
+ name: smithy_client_1.expectString(output.name),
2700
+ state: smithy_client_1.expectString(output.state),
2701
2701
  tags: output.tags !== undefined && output.tags !== null
2702
2702
  ? deserializeAws_restJson1Tags(output.tags, context)
2703
2703
  : undefined,
@@ -2705,29 +2705,29 @@ const deserializeAws_restJson1RecordingConfigurationSummary = (output, context)
2705
2705
  };
2706
2706
  const deserializeAws_restJson1S3DestinationConfiguration = (output, context) => {
2707
2707
  return {
2708
- bucketName: (0, smithy_client_1.expectString)(output.bucketName),
2708
+ bucketName: smithy_client_1.expectString(output.bucketName),
2709
2709
  };
2710
2710
  };
2711
2711
  const deserializeAws_restJson1_Stream = (output, context) => {
2712
2712
  return {
2713
- channelArn: (0, smithy_client_1.expectString)(output.channelArn),
2714
- health: (0, smithy_client_1.expectString)(output.health),
2715
- playbackUrl: (0, smithy_client_1.expectString)(output.playbackUrl),
2713
+ channelArn: smithy_client_1.expectString(output.channelArn),
2714
+ health: smithy_client_1.expectString(output.health),
2715
+ playbackUrl: smithy_client_1.expectString(output.playbackUrl),
2716
2716
  startTime: output.startTime !== undefined && output.startTime !== null
2717
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2717
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startTime))
2718
2718
  : undefined,
2719
- state: (0, smithy_client_1.expectString)(output.state),
2720
- viewerCount: (0, smithy_client_1.expectLong)(output.viewerCount),
2719
+ state: smithy_client_1.expectString(output.state),
2720
+ viewerCount: smithy_client_1.expectLong(output.viewerCount),
2721
2721
  };
2722
2722
  };
2723
2723
  const deserializeAws_restJson1StreamKey = (output, context) => {
2724
2724
  return {
2725
- arn: (0, smithy_client_1.expectString)(output.arn),
2726
- channelArn: (0, smithy_client_1.expectString)(output.channelArn),
2725
+ arn: smithy_client_1.expectString(output.arn),
2726
+ channelArn: smithy_client_1.expectString(output.channelArn),
2727
2727
  tags: output.tags !== undefined && output.tags !== null
2728
2728
  ? deserializeAws_restJson1Tags(output.tags, context)
2729
2729
  : undefined,
2730
- value: (0, smithy_client_1.expectString)(output.value),
2730
+ value: smithy_client_1.expectString(output.value),
2731
2731
  };
2732
2732
  };
2733
2733
  const deserializeAws_restJson1StreamKeyList = (output, context) => {
@@ -2752,8 +2752,8 @@ const deserializeAws_restJson1StreamKeys = (output, context) => {
2752
2752
  };
2753
2753
  const deserializeAws_restJson1StreamKeySummary = (output, context) => {
2754
2754
  return {
2755
- arn: (0, smithy_client_1.expectString)(output.arn),
2756
- channelArn: (0, smithy_client_1.expectString)(output.channelArn),
2755
+ arn: smithy_client_1.expectString(output.arn),
2756
+ channelArn: smithy_client_1.expectString(output.channelArn),
2757
2757
  tags: output.tags !== undefined && output.tags !== null
2758
2758
  ? deserializeAws_restJson1Tags(output.tags, context)
2759
2759
  : undefined,
@@ -2771,13 +2771,13 @@ const deserializeAws_restJson1StreamList = (output, context) => {
2771
2771
  };
2772
2772
  const deserializeAws_restJson1StreamSummary = (output, context) => {
2773
2773
  return {
2774
- channelArn: (0, smithy_client_1.expectString)(output.channelArn),
2775
- health: (0, smithy_client_1.expectString)(output.health),
2774
+ channelArn: smithy_client_1.expectString(output.channelArn),
2775
+ health: smithy_client_1.expectString(output.health),
2776
2776
  startTime: output.startTime !== undefined && output.startTime !== null
2777
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2777
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startTime))
2778
2778
  : undefined,
2779
- state: (0, smithy_client_1.expectString)(output.state),
2780
- viewerCount: (0, smithy_client_1.expectLong)(output.viewerCount),
2779
+ state: smithy_client_1.expectString(output.state),
2780
+ viewerCount: smithy_client_1.expectLong(output.viewerCount),
2781
2781
  };
2782
2782
  };
2783
2783
  const deserializeAws_restJson1Tags = (output, context) => {
@@ -2787,7 +2787,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
2787
2787
  }
2788
2788
  return {
2789
2789
  ...acc,
2790
- [key]: (0, smithy_client_1.expectString)(value),
2790
+ [key]: smithy_client_1.expectString(value),
2791
2791
  };
2792
2792
  }, {});
2793
2793
  };