@aws-sdk/client-mediapackage-vod 3.121.0 → 3.130.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-mediapackage-vod
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-mediapackage-vod
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -23,8 +23,7 @@ const serializeAws_restJson1ConfigureLogsCommand = async (input, context) => {
23
23
  }
24
24
  let body;
25
25
  body = JSON.stringify({
26
- ...(input.EgressAccessLogs !== undefined &&
27
- input.EgressAccessLogs !== null && {
26
+ ...(input.EgressAccessLogs != null && {
28
27
  egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
29
28
  }),
30
29
  });
@@ -47,13 +46,12 @@ const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
47
46
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
48
47
  let body;
49
48
  body = JSON.stringify({
50
- ...(input.Id !== undefined && input.Id !== null && { id: input.Id }),
51
- ...(input.PackagingGroupId !== undefined &&
52
- input.PackagingGroupId !== null && { packagingGroupId: input.PackagingGroupId }),
53
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { resourceId: input.ResourceId }),
54
- ...(input.SourceArn !== undefined && input.SourceArn !== null && { sourceArn: input.SourceArn }),
55
- ...(input.SourceRoleArn !== undefined && input.SourceRoleArn !== null && { sourceRoleArn: input.SourceRoleArn }),
56
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
49
+ ...(input.Id != null && { id: input.Id }),
50
+ ...(input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId }),
51
+ ...(input.ResourceId != null && { resourceId: input.ResourceId }),
52
+ ...(input.SourceArn != null && { sourceArn: input.SourceArn }),
53
+ ...(input.SourceRoleArn != null && { sourceRoleArn: input.SourceRoleArn }),
54
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
57
55
  });
58
56
  return new protocol_http_1.HttpRequest({
59
57
  protocol,
@@ -74,18 +72,13 @@ const serializeAws_restJson1CreatePackagingConfigurationCommand = async (input,
74
72
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations";
75
73
  let body;
76
74
  body = JSON.stringify({
77
- ...(input.CmafPackage !== undefined &&
78
- input.CmafPackage !== null && { cmafPackage: serializeAws_restJson1CmafPackage(input.CmafPackage, context) }),
79
- ...(input.DashPackage !== undefined &&
80
- input.DashPackage !== null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
81
- ...(input.HlsPackage !== undefined &&
82
- input.HlsPackage !== null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
83
- ...(input.Id !== undefined && input.Id !== null && { id: input.Id }),
84
- ...(input.MssPackage !== undefined &&
85
- input.MssPackage !== null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
86
- ...(input.PackagingGroupId !== undefined &&
87
- input.PackagingGroupId !== null && { packagingGroupId: input.PackagingGroupId }),
88
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
75
+ ...(input.CmafPackage != null && { cmafPackage: serializeAws_restJson1CmafPackage(input.CmafPackage, context) }),
76
+ ...(input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
77
+ ...(input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
78
+ ...(input.Id != null && { id: input.Id }),
79
+ ...(input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
80
+ ...(input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId }),
81
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
89
82
  });
90
83
  return new protocol_http_1.HttpRequest({
91
84
  protocol,
@@ -106,16 +99,14 @@ const serializeAws_restJson1CreatePackagingGroupCommand = async (input, context)
106
99
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups";
107
100
  let body;
108
101
  body = JSON.stringify({
109
- ...(input.Authorization !== undefined &&
110
- input.Authorization !== null && {
102
+ ...(input.Authorization != null && {
111
103
  authorization: serializeAws_restJson1Authorization(input.Authorization, context),
112
104
  }),
113
- ...(input.EgressAccessLogs !== undefined &&
114
- input.EgressAccessLogs !== null && {
105
+ ...(input.EgressAccessLogs != null && {
115
106
  egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
116
107
  }),
117
- ...(input.Id !== undefined && input.Id !== null && { id: input.Id }),
118
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
108
+ ...(input.Id != null && { id: input.Id }),
109
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
119
110
  });
120
111
  return new protocol_http_1.HttpRequest({
121
112
  protocol,
@@ -393,8 +384,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
393
384
  }
394
385
  let body;
395
386
  body = JSON.stringify({
396
- ...(input.Tags !== undefined &&
397
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
387
+ ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
398
388
  });
399
389
  return new protocol_http_1.HttpRequest({
400
390
  protocol,
@@ -455,8 +445,7 @@ const serializeAws_restJson1UpdatePackagingGroupCommand = async (input, context)
455
445
  }
456
446
  let body;
457
447
  body = JSON.stringify({
458
- ...(input.Authorization !== undefined &&
459
- input.Authorization !== null && {
448
+ ...(input.Authorization != null && {
460
449
  authorization: serializeAws_restJson1Authorization(input.Authorization, context),
461
450
  }),
462
451
  });
@@ -1645,182 +1634,144 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
1645
1634
  };
1646
1635
  const serializeAws_restJson1Authorization = (input, context) => {
1647
1636
  return {
1648
- ...(input.CdnIdentifierSecret !== undefined &&
1649
- input.CdnIdentifierSecret !== null && { cdnIdentifierSecret: input.CdnIdentifierSecret }),
1650
- ...(input.SecretsRoleArn !== undefined &&
1651
- input.SecretsRoleArn !== null && { secretsRoleArn: input.SecretsRoleArn }),
1637
+ ...(input.CdnIdentifierSecret != null && { cdnIdentifierSecret: input.CdnIdentifierSecret }),
1638
+ ...(input.SecretsRoleArn != null && { secretsRoleArn: input.SecretsRoleArn }),
1652
1639
  };
1653
1640
  };
1654
1641
  const serializeAws_restJson1CmafEncryption = (input, context) => {
1655
1642
  return {
1656
- ...(input.ConstantInitializationVector !== undefined &&
1657
- input.ConstantInitializationVector !== null && {
1643
+ ...(input.ConstantInitializationVector != null && {
1658
1644
  constantInitializationVector: input.ConstantInitializationVector,
1659
1645
  }),
1660
- ...(input.SpekeKeyProvider !== undefined &&
1661
- input.SpekeKeyProvider !== null && {
1646
+ ...(input.SpekeKeyProvider != null && {
1662
1647
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1663
1648
  }),
1664
1649
  };
1665
1650
  };
1666
1651
  const serializeAws_restJson1CmafPackage = (input, context) => {
1667
1652
  return {
1668
- ...(input.Encryption !== undefined &&
1669
- input.Encryption !== null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) }),
1670
- ...(input.HlsManifests !== undefined &&
1671
- input.HlsManifests !== null && {
1653
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) }),
1654
+ ...(input.HlsManifests != null && {
1672
1655
  hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
1673
1656
  }),
1674
- ...(input.IncludeEncoderConfigurationInSegments !== undefined &&
1675
- input.IncludeEncoderConfigurationInSegments !== null && {
1657
+ ...(input.IncludeEncoderConfigurationInSegments != null && {
1676
1658
  includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
1677
1659
  }),
1678
- ...(input.SegmentDurationSeconds !== undefined &&
1679
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1660
+ ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1680
1661
  };
1681
1662
  };
1682
1663
  const serializeAws_restJson1DashEncryption = (input, context) => {
1683
1664
  return {
1684
- ...(input.SpekeKeyProvider !== undefined &&
1685
- input.SpekeKeyProvider !== null && {
1665
+ ...(input.SpekeKeyProvider != null && {
1686
1666
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1687
1667
  }),
1688
1668
  };
1689
1669
  };
1690
1670
  const serializeAws_restJson1DashManifest = (input, context) => {
1691
1671
  return {
1692
- ...(input.ManifestLayout !== undefined &&
1693
- input.ManifestLayout !== null && { manifestLayout: input.ManifestLayout }),
1694
- ...(input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName }),
1695
- ...(input.MinBufferTimeSeconds !== undefined &&
1696
- input.MinBufferTimeSeconds !== null && { minBufferTimeSeconds: input.MinBufferTimeSeconds }),
1697
- ...(input.Profile !== undefined && input.Profile !== null && { profile: input.Profile }),
1698
- ...(input.ScteMarkersSource !== undefined &&
1699
- input.ScteMarkersSource !== null && { scteMarkersSource: input.ScteMarkersSource }),
1700
- ...(input.StreamSelection !== undefined &&
1701
- input.StreamSelection !== null && {
1672
+ ...(input.ManifestLayout != null && { manifestLayout: input.ManifestLayout }),
1673
+ ...(input.ManifestName != null && { manifestName: input.ManifestName }),
1674
+ ...(input.MinBufferTimeSeconds != null && { minBufferTimeSeconds: input.MinBufferTimeSeconds }),
1675
+ ...(input.Profile != null && { profile: input.Profile }),
1676
+ ...(input.ScteMarkersSource != null && { scteMarkersSource: input.ScteMarkersSource }),
1677
+ ...(input.StreamSelection != null && {
1702
1678
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1703
1679
  }),
1704
1680
  };
1705
1681
  };
1706
1682
  const serializeAws_restJson1DashPackage = (input, context) => {
1707
1683
  return {
1708
- ...(input.DashManifests !== undefined &&
1709
- input.DashManifests !== null && {
1684
+ ...(input.DashManifests != null && {
1710
1685
  dashManifests: serializeAws_restJson1__listOfDashManifest(input.DashManifests, context),
1711
1686
  }),
1712
- ...(input.Encryption !== undefined &&
1713
- input.Encryption !== null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) }),
1714
- ...(input.IncludeEncoderConfigurationInSegments !== undefined &&
1715
- input.IncludeEncoderConfigurationInSegments !== null && {
1687
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) }),
1688
+ ...(input.IncludeEncoderConfigurationInSegments != null && {
1716
1689
  includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
1717
1690
  }),
1718
- ...(input.PeriodTriggers !== undefined &&
1719
- input.PeriodTriggers !== null && {
1691
+ ...(input.PeriodTriggers != null && {
1720
1692
  periodTriggers: serializeAws_restJson1__listOf__PeriodTriggersElement(input.PeriodTriggers, context),
1721
1693
  }),
1722
- ...(input.SegmentDurationSeconds !== undefined &&
1723
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1724
- ...(input.SegmentTemplateFormat !== undefined &&
1725
- input.SegmentTemplateFormat !== null && { segmentTemplateFormat: input.SegmentTemplateFormat }),
1694
+ ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1695
+ ...(input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat }),
1726
1696
  };
1727
1697
  };
1728
1698
  const serializeAws_restJson1EgressAccessLogs = (input, context) => {
1729
1699
  return {
1730
- ...(input.LogGroupName !== undefined && input.LogGroupName !== null && { logGroupName: input.LogGroupName }),
1700
+ ...(input.LogGroupName != null && { logGroupName: input.LogGroupName }),
1731
1701
  };
1732
1702
  };
1733
1703
  const serializeAws_restJson1HlsEncryption = (input, context) => {
1734
1704
  return {
1735
- ...(input.ConstantInitializationVector !== undefined &&
1736
- input.ConstantInitializationVector !== null && {
1705
+ ...(input.ConstantInitializationVector != null && {
1737
1706
  constantInitializationVector: input.ConstantInitializationVector,
1738
1707
  }),
1739
- ...(input.EncryptionMethod !== undefined &&
1740
- input.EncryptionMethod !== null && { encryptionMethod: input.EncryptionMethod }),
1741
- ...(input.SpekeKeyProvider !== undefined &&
1742
- input.SpekeKeyProvider !== null && {
1708
+ ...(input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod }),
1709
+ ...(input.SpekeKeyProvider != null && {
1743
1710
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1744
1711
  }),
1745
1712
  };
1746
1713
  };
1747
1714
  const serializeAws_restJson1HlsManifest = (input, context) => {
1748
1715
  return {
1749
- ...(input.AdMarkers !== undefined && input.AdMarkers !== null && { adMarkers: input.AdMarkers }),
1750
- ...(input.IncludeIframeOnlyStream !== undefined &&
1751
- input.IncludeIframeOnlyStream !== null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
1752
- ...(input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName }),
1753
- ...(input.ProgramDateTimeIntervalSeconds !== undefined &&
1754
- input.ProgramDateTimeIntervalSeconds !== null && {
1716
+ ...(input.AdMarkers != null && { adMarkers: input.AdMarkers }),
1717
+ ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
1718
+ ...(input.ManifestName != null && { manifestName: input.ManifestName }),
1719
+ ...(input.ProgramDateTimeIntervalSeconds != null && {
1755
1720
  programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
1756
1721
  }),
1757
- ...(input.RepeatExtXKey !== undefined && input.RepeatExtXKey !== null && { repeatExtXKey: input.RepeatExtXKey }),
1758
- ...(input.StreamSelection !== undefined &&
1759
- input.StreamSelection !== null && {
1722
+ ...(input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey }),
1723
+ ...(input.StreamSelection != null && {
1760
1724
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1761
1725
  }),
1762
1726
  };
1763
1727
  };
1764
1728
  const serializeAws_restJson1HlsPackage = (input, context) => {
1765
1729
  return {
1766
- ...(input.Encryption !== undefined &&
1767
- input.Encryption !== null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) }),
1768
- ...(input.HlsManifests !== undefined &&
1769
- input.HlsManifests !== null && {
1730
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) }),
1731
+ ...(input.HlsManifests != null && {
1770
1732
  hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
1771
1733
  }),
1772
- ...(input.IncludeDvbSubtitles !== undefined &&
1773
- input.IncludeDvbSubtitles !== null && { includeDvbSubtitles: input.IncludeDvbSubtitles }),
1774
- ...(input.SegmentDurationSeconds !== undefined &&
1775
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1776
- ...(input.UseAudioRenditionGroup !== undefined &&
1777
- input.UseAudioRenditionGroup !== null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
1734
+ ...(input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles }),
1735
+ ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1736
+ ...(input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
1778
1737
  };
1779
1738
  };
1780
1739
  const serializeAws_restJson1MssEncryption = (input, context) => {
1781
1740
  return {
1782
- ...(input.SpekeKeyProvider !== undefined &&
1783
- input.SpekeKeyProvider !== null && {
1741
+ ...(input.SpekeKeyProvider != null && {
1784
1742
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
1785
1743
  }),
1786
1744
  };
1787
1745
  };
1788
1746
  const serializeAws_restJson1MssManifest = (input, context) => {
1789
1747
  return {
1790
- ...(input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName }),
1791
- ...(input.StreamSelection !== undefined &&
1792
- input.StreamSelection !== null && {
1748
+ ...(input.ManifestName != null && { manifestName: input.ManifestName }),
1749
+ ...(input.StreamSelection != null && {
1793
1750
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
1794
1751
  }),
1795
1752
  };
1796
1753
  };
1797
1754
  const serializeAws_restJson1MssPackage = (input, context) => {
1798
1755
  return {
1799
- ...(input.Encryption !== undefined &&
1800
- input.Encryption !== null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) }),
1801
- ...(input.MssManifests !== undefined &&
1802
- input.MssManifests !== null && {
1756
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) }),
1757
+ ...(input.MssManifests != null && {
1803
1758
  mssManifests: serializeAws_restJson1__listOfMssManifest(input.MssManifests, context),
1804
1759
  }),
1805
- ...(input.SegmentDurationSeconds !== undefined &&
1806
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1760
+ ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1807
1761
  };
1808
1762
  };
1809
1763
  const serializeAws_restJson1SpekeKeyProvider = (input, context) => {
1810
1764
  return {
1811
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn }),
1812
- ...(input.SystemIds !== undefined &&
1813
- input.SystemIds !== null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) }),
1814
- ...(input.Url !== undefined && input.Url !== null && { url: input.Url }),
1765
+ ...(input.RoleArn != null && { roleArn: input.RoleArn }),
1766
+ ...(input.SystemIds != null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) }),
1767
+ ...(input.Url != null && { url: input.Url }),
1815
1768
  };
1816
1769
  };
1817
1770
  const serializeAws_restJson1StreamSelection = (input, context) => {
1818
1771
  return {
1819
- ...(input.MaxVideoBitsPerSecond !== undefined &&
1820
- input.MaxVideoBitsPerSecond !== null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
1821
- ...(input.MinVideoBitsPerSecond !== undefined &&
1822
- input.MinVideoBitsPerSecond !== null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
1823
- ...(input.StreamOrder !== undefined && input.StreamOrder !== null && { streamOrder: input.StreamOrder }),
1772
+ ...(input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
1773
+ ...(input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
1774
+ ...(input.StreamOrder != null && { streamOrder: input.StreamOrder }),
1824
1775
  };
1825
1776
  };
1826
1777
  const serializeAws_restJson1Tags = (input, context) => {
@@ -1953,9 +1904,7 @@ const deserializeAws_restJson1AssetShallow = (output, context) => {
1953
1904
  ResourceId: (0, smithy_client_1.expectString)(output.resourceId),
1954
1905
  SourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
1955
1906
  SourceRoleArn: (0, smithy_client_1.expectString)(output.sourceRoleArn),
1956
- Tags: output.tags !== undefined && output.tags !== null
1957
- ? deserializeAws_restJson1Tags(output.tags, context)
1958
- : undefined,
1907
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1959
1908
  };
1960
1909
  };
1961
1910
  const deserializeAws_restJson1Authorization = (output, context) => {
@@ -1967,17 +1916,15 @@ const deserializeAws_restJson1Authorization = (output, context) => {
1967
1916
  const deserializeAws_restJson1CmafEncryption = (output, context) => {
1968
1917
  return {
1969
1918
  ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
1970
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
1919
+ SpekeKeyProvider: output.spekeKeyProvider != null
1971
1920
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
1972
1921
  : undefined,
1973
1922
  };
1974
1923
  };
1975
1924
  const deserializeAws_restJson1CmafPackage = (output, context) => {
1976
1925
  return {
1977
- Encryption: output.encryption !== undefined && output.encryption !== null
1978
- ? deserializeAws_restJson1CmafEncryption(output.encryption, context)
1979
- : undefined,
1980
- HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
1926
+ Encryption: output.encryption != null ? deserializeAws_restJson1CmafEncryption(output.encryption, context) : undefined,
1927
+ HlsManifests: output.hlsManifests != null
1981
1928
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
1982
1929
  : undefined,
1983
1930
  IncludeEncoderConfigurationInSegments: (0, smithy_client_1.expectBoolean)(output.includeEncoderConfigurationInSegments),
@@ -1986,7 +1933,7 @@ const deserializeAws_restJson1CmafPackage = (output, context) => {
1986
1933
  };
1987
1934
  const deserializeAws_restJson1DashEncryption = (output, context) => {
1988
1935
  return {
1989
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
1936
+ SpekeKeyProvider: output.spekeKeyProvider != null
1990
1937
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
1991
1938
  : undefined,
1992
1939
  };
@@ -1998,21 +1945,19 @@ const deserializeAws_restJson1DashManifest = (output, context) => {
1998
1945
  MinBufferTimeSeconds: (0, smithy_client_1.expectInt32)(output.minBufferTimeSeconds),
1999
1946
  Profile: (0, smithy_client_1.expectString)(output.profile),
2000
1947
  ScteMarkersSource: (0, smithy_client_1.expectString)(output.scteMarkersSource),
2001
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
1948
+ StreamSelection: output.streamSelection != null
2002
1949
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2003
1950
  : undefined,
2004
1951
  };
2005
1952
  };
2006
1953
  const deserializeAws_restJson1DashPackage = (output, context) => {
2007
1954
  return {
2008
- DashManifests: output.dashManifests !== undefined && output.dashManifests !== null
1955
+ DashManifests: output.dashManifests != null
2009
1956
  ? deserializeAws_restJson1__listOfDashManifest(output.dashManifests, context)
2010
1957
  : undefined,
2011
- Encryption: output.encryption !== undefined && output.encryption !== null
2012
- ? deserializeAws_restJson1DashEncryption(output.encryption, context)
2013
- : undefined,
1958
+ Encryption: output.encryption != null ? deserializeAws_restJson1DashEncryption(output.encryption, context) : undefined,
2014
1959
  IncludeEncoderConfigurationInSegments: (0, smithy_client_1.expectBoolean)(output.includeEncoderConfigurationInSegments),
2015
- PeriodTriggers: output.periodTriggers !== undefined && output.periodTriggers !== null
1960
+ PeriodTriggers: output.periodTriggers != null
2016
1961
  ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
2017
1962
  : undefined,
2018
1963
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
@@ -2035,7 +1980,7 @@ const deserializeAws_restJson1HlsEncryption = (output, context) => {
2035
1980
  return {
2036
1981
  ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
2037
1982
  EncryptionMethod: (0, smithy_client_1.expectString)(output.encryptionMethod),
2038
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
1983
+ SpekeKeyProvider: output.spekeKeyProvider != null
2039
1984
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2040
1985
  : undefined,
2041
1986
  };
@@ -2047,17 +1992,15 @@ const deserializeAws_restJson1HlsManifest = (output, context) => {
2047
1992
  ManifestName: (0, smithy_client_1.expectString)(output.manifestName),
2048
1993
  ProgramDateTimeIntervalSeconds: (0, smithy_client_1.expectInt32)(output.programDateTimeIntervalSeconds),
2049
1994
  RepeatExtXKey: (0, smithy_client_1.expectBoolean)(output.repeatExtXKey),
2050
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
1995
+ StreamSelection: output.streamSelection != null
2051
1996
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2052
1997
  : undefined,
2053
1998
  };
2054
1999
  };
2055
2000
  const deserializeAws_restJson1HlsPackage = (output, context) => {
2056
2001
  return {
2057
- Encryption: output.encryption !== undefined && output.encryption !== null
2058
- ? deserializeAws_restJson1HlsEncryption(output.encryption, context)
2059
- : undefined,
2060
- HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
2002
+ Encryption: output.encryption != null ? deserializeAws_restJson1HlsEncryption(output.encryption, context) : undefined,
2003
+ HlsManifests: output.hlsManifests != null
2061
2004
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2062
2005
  : undefined,
2063
2006
  IncludeDvbSubtitles: (0, smithy_client_1.expectBoolean)(output.includeDvbSubtitles),
@@ -2067,7 +2010,7 @@ const deserializeAws_restJson1HlsPackage = (output, context) => {
2067
2010
  };
2068
2011
  const deserializeAws_restJson1MssEncryption = (output, context) => {
2069
2012
  return {
2070
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2013
+ SpekeKeyProvider: output.spekeKeyProvider != null
2071
2014
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2072
2015
  : undefined,
2073
2016
  };
@@ -2075,17 +2018,15 @@ const deserializeAws_restJson1MssEncryption = (output, context) => {
2075
2018
  const deserializeAws_restJson1MssManifest = (output, context) => {
2076
2019
  return {
2077
2020
  ManifestName: (0, smithy_client_1.expectString)(output.manifestName),
2078
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2021
+ StreamSelection: output.streamSelection != null
2079
2022
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2080
2023
  : undefined,
2081
2024
  };
2082
2025
  };
2083
2026
  const deserializeAws_restJson1MssPackage = (output, context) => {
2084
2027
  return {
2085
- Encryption: output.encryption !== undefined && output.encryption !== null
2086
- ? deserializeAws_restJson1MssEncryption(output.encryption, context)
2087
- : undefined,
2088
- MssManifests: output.mssManifests !== undefined && output.mssManifests !== null
2028
+ Encryption: output.encryption != null ? deserializeAws_restJson1MssEncryption(output.encryption, context) : undefined,
2029
+ MssManifests: output.mssManifests != null
2089
2030
  ? deserializeAws_restJson1__listOfMssManifest(output.mssManifests, context)
2090
2031
  : undefined,
2091
2032
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
@@ -2094,47 +2035,31 @@ const deserializeAws_restJson1MssPackage = (output, context) => {
2094
2035
  const deserializeAws_restJson1PackagingConfiguration = (output, context) => {
2095
2036
  return {
2096
2037
  Arn: (0, smithy_client_1.expectString)(output.arn),
2097
- CmafPackage: output.cmafPackage !== undefined && output.cmafPackage !== null
2098
- ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context)
2099
- : undefined,
2100
- DashPackage: output.dashPackage !== undefined && output.dashPackage !== null
2101
- ? deserializeAws_restJson1DashPackage(output.dashPackage, context)
2102
- : undefined,
2103
- HlsPackage: output.hlsPackage !== undefined && output.hlsPackage !== null
2104
- ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context)
2105
- : undefined,
2038
+ CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
2039
+ DashPackage: output.dashPackage != null ? deserializeAws_restJson1DashPackage(output.dashPackage, context) : undefined,
2040
+ HlsPackage: output.hlsPackage != null ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context) : undefined,
2106
2041
  Id: (0, smithy_client_1.expectString)(output.id),
2107
- MssPackage: output.mssPackage !== undefined && output.mssPackage !== null
2108
- ? deserializeAws_restJson1MssPackage(output.mssPackage, context)
2109
- : undefined,
2042
+ MssPackage: output.mssPackage != null ? deserializeAws_restJson1MssPackage(output.mssPackage, context) : undefined,
2110
2043
  PackagingGroupId: (0, smithy_client_1.expectString)(output.packagingGroupId),
2111
- Tags: output.tags !== undefined && output.tags !== null
2112
- ? deserializeAws_restJson1Tags(output.tags, context)
2113
- : undefined,
2044
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2114
2045
  };
2115
2046
  };
2116
2047
  const deserializeAws_restJson1PackagingGroup = (output, context) => {
2117
2048
  return {
2118
2049
  Arn: (0, smithy_client_1.expectString)(output.arn),
2119
- Authorization: output.authorization !== undefined && output.authorization !== null
2120
- ? deserializeAws_restJson1Authorization(output.authorization, context)
2121
- : undefined,
2050
+ Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
2122
2051
  DomainName: (0, smithy_client_1.expectString)(output.domainName),
2123
- EgressAccessLogs: output.egressAccessLogs !== undefined && output.egressAccessLogs !== null
2052
+ EgressAccessLogs: output.egressAccessLogs != null
2124
2053
  ? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
2125
2054
  : undefined,
2126
2055
  Id: (0, smithy_client_1.expectString)(output.id),
2127
- Tags: output.tags !== undefined && output.tags !== null
2128
- ? deserializeAws_restJson1Tags(output.tags, context)
2129
- : undefined,
2056
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2130
2057
  };
2131
2058
  };
2132
2059
  const deserializeAws_restJson1SpekeKeyProvider = (output, context) => {
2133
2060
  return {
2134
2061
  RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
2135
- SystemIds: output.systemIds !== undefined && output.systemIds !== null
2136
- ? deserializeAws_restJson1__listOf__string(output.systemIds, context)
2137
- : undefined,
2062
+ SystemIds: output.systemIds != null ? deserializeAws_restJson1__listOf__string(output.systemIds, context) : undefined,
2138
2063
  Url: (0, smithy_client_1.expectString)(output.url),
2139
2064
  };
2140
2065
  };
@@ -2187,6 +2112,9 @@ const loadRestJsonErrorCode = (output, data) => {
2187
2112
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2188
2113
  const sanitizeErrorCode = (rawValue) => {
2189
2114
  let cleanValue = rawValue;
2115
+ if (typeof cleanValue === "number") {
2116
+ cleanValue = cleanValue.toString();
2117
+ }
2190
2118
  if (cleanValue.indexOf(":") >= 0) {
2191
2119
  cleanValue = cleanValue.split(":")[0];
2192
2120
  }
@@ -24,8 +24,7 @@ export var serializeAws_restJson1ConfigureLogsCommand = function (input, context
24
24
  else {
25
25
  throw new Error("No value provided for input HTTP label: Id.");
26
26
  }
27
- body = JSON.stringify(__assign({}, (input.EgressAccessLogs !== undefined &&
28
- input.EgressAccessLogs !== null && {
27
+ body = JSON.stringify(__assign({}, (input.EgressAccessLogs != null && {
29
28
  egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
30
29
  })));
31
30
  return [2, new __HttpRequest({
@@ -51,8 +50,7 @@ export var serializeAws_restJson1CreateAssetCommand = function (input, context)
51
50
  "content-type": "application/json",
52
51
  };
53
52
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
54
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { id: input.Id })), (input.PackagingGroupId !== undefined &&
55
- input.PackagingGroupId !== null && { packagingGroupId: input.PackagingGroupId })), (input.ResourceId !== undefined && input.ResourceId !== null && { resourceId: input.ResourceId })), (input.SourceArn !== undefined && input.SourceArn !== null && { sourceArn: input.SourceArn })), (input.SourceRoleArn !== undefined && input.SourceRoleArn !== null && { sourceRoleArn: input.SourceRoleArn })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
53
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Id != null && { id: input.Id })), (input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId })), (input.ResourceId != null && { resourceId: input.ResourceId })), (input.SourceArn != null && { sourceArn: input.SourceArn })), (input.SourceRoleArn != null && { sourceRoleArn: input.SourceRoleArn })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
56
54
  return [2, new __HttpRequest({
57
55
  protocol: protocol,
58
56
  hostname: hostname,
@@ -76,12 +74,7 @@ export var serializeAws_restJson1CreatePackagingConfigurationCommand = function
76
74
  "content-type": "application/json",
77
75
  };
78
76
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_configurations";
79
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CmafPackage !== undefined &&
80
- input.CmafPackage !== null && { cmafPackage: serializeAws_restJson1CmafPackage(input.CmafPackage, context) })), (input.DashPackage !== undefined &&
81
- input.DashPackage !== null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) })), (input.HlsPackage !== undefined &&
82
- input.HlsPackage !== null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) })), (input.Id !== undefined && input.Id !== null && { id: input.Id })), (input.MssPackage !== undefined &&
83
- input.MssPackage !== null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) })), (input.PackagingGroupId !== undefined &&
84
- input.PackagingGroupId !== null && { packagingGroupId: input.PackagingGroupId })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
77
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CmafPackage != null && { cmafPackage: serializeAws_restJson1CmafPackage(input.CmafPackage, context) })), (input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) })), (input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) })), (input.Id != null && { id: input.Id })), (input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) })), (input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
85
78
  return [2, new __HttpRequest({
86
79
  protocol: protocol,
87
80
  hostname: hostname,
@@ -105,13 +98,11 @@ export var serializeAws_restJson1CreatePackagingGroupCommand = function (input,
105
98
  "content-type": "application/json",
106
99
  };
107
100
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups";
108
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Authorization !== undefined &&
109
- input.Authorization !== null && {
101
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Authorization != null && {
110
102
  authorization: serializeAws_restJson1Authorization(input.Authorization, context),
111
- })), (input.EgressAccessLogs !== undefined &&
112
- input.EgressAccessLogs !== null && {
103
+ })), (input.EgressAccessLogs != null && {
113
104
  egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
114
- })), (input.Id !== undefined && input.Id !== null && { id: input.Id })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
105
+ })), (input.Id != null && { id: input.Id })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
115
106
  return [2, new __HttpRequest({
116
107
  protocol: protocol,
117
108
  hostname: hostname,
@@ -431,8 +422,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
431
422
  else {
432
423
  throw new Error("No value provided for input HTTP label: ResourceArn.");
433
424
  }
434
- body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
435
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
425
+ body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
436
426
  return [2, new __HttpRequest({
437
427
  protocol: protocol,
438
428
  hostname: hostname,
@@ -499,8 +489,7 @@ export var serializeAws_restJson1UpdatePackagingGroupCommand = function (input,
499
489
  else {
500
490
  throw new Error("No value provided for input HTTP label: Id.");
501
491
  }
502
- body = JSON.stringify(__assign({}, (input.Authorization !== undefined &&
503
- input.Authorization !== null && {
492
+ body = JSON.stringify(__assign({}, (input.Authorization != null && {
504
493
  authorization: serializeAws_restJson1Authorization(input.Authorization, context),
505
494
  })));
506
495
  return [2, new __HttpRequest({
@@ -2064,121 +2053,83 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
2064
2053
  }, {});
2065
2054
  };
2066
2055
  var serializeAws_restJson1Authorization = function (input, context) {
2067
- return __assign(__assign({}, (input.CdnIdentifierSecret !== undefined &&
2068
- input.CdnIdentifierSecret !== null && { cdnIdentifierSecret: input.CdnIdentifierSecret })), (input.SecretsRoleArn !== undefined &&
2069
- input.SecretsRoleArn !== null && { secretsRoleArn: input.SecretsRoleArn }));
2056
+ return __assign(__assign({}, (input.CdnIdentifierSecret != null && { cdnIdentifierSecret: input.CdnIdentifierSecret })), (input.SecretsRoleArn != null && { secretsRoleArn: input.SecretsRoleArn }));
2070
2057
  };
2071
2058
  var serializeAws_restJson1CmafEncryption = function (input, context) {
2072
- return __assign(__assign({}, (input.ConstantInitializationVector !== undefined &&
2073
- input.ConstantInitializationVector !== null && {
2059
+ return __assign(__assign({}, (input.ConstantInitializationVector != null && {
2074
2060
  constantInitializationVector: input.ConstantInitializationVector,
2075
- })), (input.SpekeKeyProvider !== undefined &&
2076
- input.SpekeKeyProvider !== null && {
2061
+ })), (input.SpekeKeyProvider != null && {
2077
2062
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
2078
2063
  }));
2079
2064
  };
2080
2065
  var serializeAws_restJson1CmafPackage = function (input, context) {
2081
- return __assign(__assign(__assign(__assign({}, (input.Encryption !== undefined &&
2082
- input.Encryption !== null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) })), (input.HlsManifests !== undefined &&
2083
- input.HlsManifests !== null && {
2066
+ return __assign(__assign(__assign(__assign({}, (input.Encryption != null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) })), (input.HlsManifests != null && {
2084
2067
  hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
2085
- })), (input.IncludeEncoderConfigurationInSegments !== undefined &&
2086
- input.IncludeEncoderConfigurationInSegments !== null && {
2068
+ })), (input.IncludeEncoderConfigurationInSegments != null && {
2087
2069
  includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
2088
- })), (input.SegmentDurationSeconds !== undefined &&
2089
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }));
2070
+ })), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }));
2090
2071
  };
2091
2072
  var serializeAws_restJson1DashEncryption = function (input, context) {
2092
- return __assign({}, (input.SpekeKeyProvider !== undefined &&
2093
- input.SpekeKeyProvider !== null && {
2073
+ return __assign({}, (input.SpekeKeyProvider != null && {
2094
2074
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
2095
2075
  }));
2096
2076
  };
2097
2077
  var serializeAws_restJson1DashManifest = function (input, context) {
2098
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ManifestLayout !== undefined &&
2099
- input.ManifestLayout !== null && { manifestLayout: input.ManifestLayout })), (input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName })), (input.MinBufferTimeSeconds !== undefined &&
2100
- input.MinBufferTimeSeconds !== null && { minBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.Profile !== undefined && input.Profile !== null && { profile: input.Profile })), (input.ScteMarkersSource !== undefined &&
2101
- input.ScteMarkersSource !== null && { scteMarkersSource: input.ScteMarkersSource })), (input.StreamSelection !== undefined &&
2102
- input.StreamSelection !== null && {
2078
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ManifestLayout != null && { manifestLayout: input.ManifestLayout })), (input.ManifestName != null && { manifestName: input.ManifestName })), (input.MinBufferTimeSeconds != null && { minBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.Profile != null && { profile: input.Profile })), (input.ScteMarkersSource != null && { scteMarkersSource: input.ScteMarkersSource })), (input.StreamSelection != null && {
2103
2079
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
2104
2080
  }));
2105
2081
  };
2106
2082
  var serializeAws_restJson1DashPackage = function (input, context) {
2107
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DashManifests !== undefined &&
2108
- input.DashManifests !== null && {
2083
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DashManifests != null && {
2109
2084
  dashManifests: serializeAws_restJson1__listOfDashManifest(input.DashManifests, context),
2110
- })), (input.Encryption !== undefined &&
2111
- input.Encryption !== null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) })), (input.IncludeEncoderConfigurationInSegments !== undefined &&
2112
- input.IncludeEncoderConfigurationInSegments !== null && {
2085
+ })), (input.Encryption != null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) })), (input.IncludeEncoderConfigurationInSegments != null && {
2113
2086
  includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
2114
- })), (input.PeriodTriggers !== undefined &&
2115
- input.PeriodTriggers !== null && {
2087
+ })), (input.PeriodTriggers != null && {
2116
2088
  periodTriggers: serializeAws_restJson1__listOf__PeriodTriggersElement(input.PeriodTriggers, context),
2117
- })), (input.SegmentDurationSeconds !== undefined &&
2118
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.SegmentTemplateFormat !== undefined &&
2119
- input.SegmentTemplateFormat !== null && { segmentTemplateFormat: input.SegmentTemplateFormat }));
2089
+ })), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat }));
2120
2090
  };
2121
2091
  var serializeAws_restJson1EgressAccessLogs = function (input, context) {
2122
- return __assign({}, (input.LogGroupName !== undefined && input.LogGroupName !== null && { logGroupName: input.LogGroupName }));
2092
+ return __assign({}, (input.LogGroupName != null && { logGroupName: input.LogGroupName }));
2123
2093
  };
2124
2094
  var serializeAws_restJson1HlsEncryption = function (input, context) {
2125
- return __assign(__assign(__assign({}, (input.ConstantInitializationVector !== undefined &&
2126
- input.ConstantInitializationVector !== null && {
2095
+ return __assign(__assign(__assign({}, (input.ConstantInitializationVector != null && {
2127
2096
  constantInitializationVector: input.ConstantInitializationVector,
2128
- })), (input.EncryptionMethod !== undefined &&
2129
- input.EncryptionMethod !== null && { encryptionMethod: input.EncryptionMethod })), (input.SpekeKeyProvider !== undefined &&
2130
- input.SpekeKeyProvider !== null && {
2097
+ })), (input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod })), (input.SpekeKeyProvider != null && {
2131
2098
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
2132
2099
  }));
2133
2100
  };
2134
2101
  var serializeAws_restJson1HlsManifest = function (input, context) {
2135
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdMarkers !== undefined && input.AdMarkers !== null && { adMarkers: input.AdMarkers })), (input.IncludeIframeOnlyStream !== undefined &&
2136
- input.IncludeIframeOnlyStream !== null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream })), (input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName })), (input.ProgramDateTimeIntervalSeconds !== undefined &&
2137
- input.ProgramDateTimeIntervalSeconds !== null && {
2102
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdMarkers != null && { adMarkers: input.AdMarkers })), (input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream })), (input.ManifestName != null && { manifestName: input.ManifestName })), (input.ProgramDateTimeIntervalSeconds != null && {
2138
2103
  programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
2139
- })), (input.RepeatExtXKey !== undefined && input.RepeatExtXKey !== null && { repeatExtXKey: input.RepeatExtXKey })), (input.StreamSelection !== undefined &&
2140
- input.StreamSelection !== null && {
2104
+ })), (input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey })), (input.StreamSelection != null && {
2141
2105
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
2142
2106
  }));
2143
2107
  };
2144
2108
  var serializeAws_restJson1HlsPackage = function (input, context) {
2145
- return __assign(__assign(__assign(__assign(__assign({}, (input.Encryption !== undefined &&
2146
- input.Encryption !== null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) })), (input.HlsManifests !== undefined &&
2147
- input.HlsManifests !== null && {
2109
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Encryption != null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) })), (input.HlsManifests != null && {
2148
2110
  hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
2149
- })), (input.IncludeDvbSubtitles !== undefined &&
2150
- input.IncludeDvbSubtitles !== null && { includeDvbSubtitles: input.IncludeDvbSubtitles })), (input.SegmentDurationSeconds !== undefined &&
2151
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.UseAudioRenditionGroup !== undefined &&
2152
- input.UseAudioRenditionGroup !== null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }));
2111
+ })), (input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles })), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }));
2153
2112
  };
2154
2113
  var serializeAws_restJson1MssEncryption = function (input, context) {
2155
- return __assign({}, (input.SpekeKeyProvider !== undefined &&
2156
- input.SpekeKeyProvider !== null && {
2114
+ return __assign({}, (input.SpekeKeyProvider != null && {
2157
2115
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
2158
2116
  }));
2159
2117
  };
2160
2118
  var serializeAws_restJson1MssManifest = function (input, context) {
2161
- return __assign(__assign({}, (input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName })), (input.StreamSelection !== undefined &&
2162
- input.StreamSelection !== null && {
2119
+ return __assign(__assign({}, (input.ManifestName != null && { manifestName: input.ManifestName })), (input.StreamSelection != null && {
2163
2120
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
2164
2121
  }));
2165
2122
  };
2166
2123
  var serializeAws_restJson1MssPackage = function (input, context) {
2167
- return __assign(__assign(__assign({}, (input.Encryption !== undefined &&
2168
- input.Encryption !== null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) })), (input.MssManifests !== undefined &&
2169
- input.MssManifests !== null && {
2124
+ return __assign(__assign(__assign({}, (input.Encryption != null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) })), (input.MssManifests != null && {
2170
2125
  mssManifests: serializeAws_restJson1__listOfMssManifest(input.MssManifests, context),
2171
- })), (input.SegmentDurationSeconds !== undefined &&
2172
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }));
2126
+ })), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }));
2173
2127
  };
2174
2128
  var serializeAws_restJson1SpekeKeyProvider = function (input, context) {
2175
- return __assign(__assign(__assign({}, (input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn })), (input.SystemIds !== undefined &&
2176
- input.SystemIds !== null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) })), (input.Url !== undefined && input.Url !== null && { url: input.Url }));
2129
+ return __assign(__assign(__assign({}, (input.RoleArn != null && { roleArn: input.RoleArn })), (input.SystemIds != null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) })), (input.Url != null && { url: input.Url }));
2177
2130
  };
2178
2131
  var serializeAws_restJson1StreamSelection = function (input, context) {
2179
- return __assign(__assign(__assign({}, (input.MaxVideoBitsPerSecond !== undefined &&
2180
- input.MaxVideoBitsPerSecond !== null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond })), (input.MinVideoBitsPerSecond !== undefined &&
2181
- input.MinVideoBitsPerSecond !== null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond })), (input.StreamOrder !== undefined && input.StreamOrder !== null && { streamOrder: input.StreamOrder }));
2132
+ return __assign(__assign(__assign({}, (input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond })), (input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond })), (input.StreamOrder != null && { streamOrder: input.StreamOrder }));
2182
2133
  };
2183
2134
  var serializeAws_restJson1Tags = function (input, context) {
2184
2135
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2308,9 +2259,7 @@ var deserializeAws_restJson1AssetShallow = function (output, context) {
2308
2259
  ResourceId: __expectString(output.resourceId),
2309
2260
  SourceArn: __expectString(output.sourceArn),
2310
2261
  SourceRoleArn: __expectString(output.sourceRoleArn),
2311
- Tags: output.tags !== undefined && output.tags !== null
2312
- ? deserializeAws_restJson1Tags(output.tags, context)
2313
- : undefined,
2262
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2314
2263
  };
2315
2264
  };
2316
2265
  var deserializeAws_restJson1Authorization = function (output, context) {
@@ -2322,17 +2271,15 @@ var deserializeAws_restJson1Authorization = function (output, context) {
2322
2271
  var deserializeAws_restJson1CmafEncryption = function (output, context) {
2323
2272
  return {
2324
2273
  ConstantInitializationVector: __expectString(output.constantInitializationVector),
2325
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2274
+ SpekeKeyProvider: output.spekeKeyProvider != null
2326
2275
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2327
2276
  : undefined,
2328
2277
  };
2329
2278
  };
2330
2279
  var deserializeAws_restJson1CmafPackage = function (output, context) {
2331
2280
  return {
2332
- Encryption: output.encryption !== undefined && output.encryption !== null
2333
- ? deserializeAws_restJson1CmafEncryption(output.encryption, context)
2334
- : undefined,
2335
- HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
2281
+ Encryption: output.encryption != null ? deserializeAws_restJson1CmafEncryption(output.encryption, context) : undefined,
2282
+ HlsManifests: output.hlsManifests != null
2336
2283
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2337
2284
  : undefined,
2338
2285
  IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments),
@@ -2341,7 +2288,7 @@ var deserializeAws_restJson1CmafPackage = function (output, context) {
2341
2288
  };
2342
2289
  var deserializeAws_restJson1DashEncryption = function (output, context) {
2343
2290
  return {
2344
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2291
+ SpekeKeyProvider: output.spekeKeyProvider != null
2345
2292
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2346
2293
  : undefined,
2347
2294
  };
@@ -2353,21 +2300,19 @@ var deserializeAws_restJson1DashManifest = function (output, context) {
2353
2300
  MinBufferTimeSeconds: __expectInt32(output.minBufferTimeSeconds),
2354
2301
  Profile: __expectString(output.profile),
2355
2302
  ScteMarkersSource: __expectString(output.scteMarkersSource),
2356
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2303
+ StreamSelection: output.streamSelection != null
2357
2304
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2358
2305
  : undefined,
2359
2306
  };
2360
2307
  };
2361
2308
  var deserializeAws_restJson1DashPackage = function (output, context) {
2362
2309
  return {
2363
- DashManifests: output.dashManifests !== undefined && output.dashManifests !== null
2310
+ DashManifests: output.dashManifests != null
2364
2311
  ? deserializeAws_restJson1__listOfDashManifest(output.dashManifests, context)
2365
2312
  : undefined,
2366
- Encryption: output.encryption !== undefined && output.encryption !== null
2367
- ? deserializeAws_restJson1DashEncryption(output.encryption, context)
2368
- : undefined,
2313
+ Encryption: output.encryption != null ? deserializeAws_restJson1DashEncryption(output.encryption, context) : undefined,
2369
2314
  IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments),
2370
- PeriodTriggers: output.periodTriggers !== undefined && output.periodTriggers !== null
2315
+ PeriodTriggers: output.periodTriggers != null
2371
2316
  ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
2372
2317
  : undefined,
2373
2318
  SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
@@ -2390,7 +2335,7 @@ var deserializeAws_restJson1HlsEncryption = function (output, context) {
2390
2335
  return {
2391
2336
  ConstantInitializationVector: __expectString(output.constantInitializationVector),
2392
2337
  EncryptionMethod: __expectString(output.encryptionMethod),
2393
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2338
+ SpekeKeyProvider: output.spekeKeyProvider != null
2394
2339
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2395
2340
  : undefined,
2396
2341
  };
@@ -2402,17 +2347,15 @@ var deserializeAws_restJson1HlsManifest = function (output, context) {
2402
2347
  ManifestName: __expectString(output.manifestName),
2403
2348
  ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds),
2404
2349
  RepeatExtXKey: __expectBoolean(output.repeatExtXKey),
2405
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2350
+ StreamSelection: output.streamSelection != null
2406
2351
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2407
2352
  : undefined,
2408
2353
  };
2409
2354
  };
2410
2355
  var deserializeAws_restJson1HlsPackage = function (output, context) {
2411
2356
  return {
2412
- Encryption: output.encryption !== undefined && output.encryption !== null
2413
- ? deserializeAws_restJson1HlsEncryption(output.encryption, context)
2414
- : undefined,
2415
- HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
2357
+ Encryption: output.encryption != null ? deserializeAws_restJson1HlsEncryption(output.encryption, context) : undefined,
2358
+ HlsManifests: output.hlsManifests != null
2416
2359
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2417
2360
  : undefined,
2418
2361
  IncludeDvbSubtitles: __expectBoolean(output.includeDvbSubtitles),
@@ -2422,7 +2365,7 @@ var deserializeAws_restJson1HlsPackage = function (output, context) {
2422
2365
  };
2423
2366
  var deserializeAws_restJson1MssEncryption = function (output, context) {
2424
2367
  return {
2425
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2368
+ SpekeKeyProvider: output.spekeKeyProvider != null
2426
2369
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2427
2370
  : undefined,
2428
2371
  };
@@ -2430,17 +2373,15 @@ var deserializeAws_restJson1MssEncryption = function (output, context) {
2430
2373
  var deserializeAws_restJson1MssManifest = function (output, context) {
2431
2374
  return {
2432
2375
  ManifestName: __expectString(output.manifestName),
2433
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2376
+ StreamSelection: output.streamSelection != null
2434
2377
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2435
2378
  : undefined,
2436
2379
  };
2437
2380
  };
2438
2381
  var deserializeAws_restJson1MssPackage = function (output, context) {
2439
2382
  return {
2440
- Encryption: output.encryption !== undefined && output.encryption !== null
2441
- ? deserializeAws_restJson1MssEncryption(output.encryption, context)
2442
- : undefined,
2443
- MssManifests: output.mssManifests !== undefined && output.mssManifests !== null
2383
+ Encryption: output.encryption != null ? deserializeAws_restJson1MssEncryption(output.encryption, context) : undefined,
2384
+ MssManifests: output.mssManifests != null
2444
2385
  ? deserializeAws_restJson1__listOfMssManifest(output.mssManifests, context)
2445
2386
  : undefined,
2446
2387
  SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
@@ -2449,47 +2390,31 @@ var deserializeAws_restJson1MssPackage = function (output, context) {
2449
2390
  var deserializeAws_restJson1PackagingConfiguration = function (output, context) {
2450
2391
  return {
2451
2392
  Arn: __expectString(output.arn),
2452
- CmafPackage: output.cmafPackage !== undefined && output.cmafPackage !== null
2453
- ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context)
2454
- : undefined,
2455
- DashPackage: output.dashPackage !== undefined && output.dashPackage !== null
2456
- ? deserializeAws_restJson1DashPackage(output.dashPackage, context)
2457
- : undefined,
2458
- HlsPackage: output.hlsPackage !== undefined && output.hlsPackage !== null
2459
- ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context)
2460
- : undefined,
2393
+ CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
2394
+ DashPackage: output.dashPackage != null ? deserializeAws_restJson1DashPackage(output.dashPackage, context) : undefined,
2395
+ HlsPackage: output.hlsPackage != null ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context) : undefined,
2461
2396
  Id: __expectString(output.id),
2462
- MssPackage: output.mssPackage !== undefined && output.mssPackage !== null
2463
- ? deserializeAws_restJson1MssPackage(output.mssPackage, context)
2464
- : undefined,
2397
+ MssPackage: output.mssPackage != null ? deserializeAws_restJson1MssPackage(output.mssPackage, context) : undefined,
2465
2398
  PackagingGroupId: __expectString(output.packagingGroupId),
2466
- Tags: output.tags !== undefined && output.tags !== null
2467
- ? deserializeAws_restJson1Tags(output.tags, context)
2468
- : undefined,
2399
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2469
2400
  };
2470
2401
  };
2471
2402
  var deserializeAws_restJson1PackagingGroup = function (output, context) {
2472
2403
  return {
2473
2404
  Arn: __expectString(output.arn),
2474
- Authorization: output.authorization !== undefined && output.authorization !== null
2475
- ? deserializeAws_restJson1Authorization(output.authorization, context)
2476
- : undefined,
2405
+ Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
2477
2406
  DomainName: __expectString(output.domainName),
2478
- EgressAccessLogs: output.egressAccessLogs !== undefined && output.egressAccessLogs !== null
2407
+ EgressAccessLogs: output.egressAccessLogs != null
2479
2408
  ? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
2480
2409
  : undefined,
2481
2410
  Id: __expectString(output.id),
2482
- Tags: output.tags !== undefined && output.tags !== null
2483
- ? deserializeAws_restJson1Tags(output.tags, context)
2484
- : undefined,
2411
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2485
2412
  };
2486
2413
  };
2487
2414
  var deserializeAws_restJson1SpekeKeyProvider = function (output, context) {
2488
2415
  return {
2489
2416
  RoleArn: __expectString(output.roleArn),
2490
- SystemIds: output.systemIds !== undefined && output.systemIds !== null
2491
- ? deserializeAws_restJson1__listOf__string(output.systemIds, context)
2492
- : undefined,
2417
+ SystemIds: output.systemIds != null ? deserializeAws_restJson1__listOf__string(output.systemIds, context) : undefined,
2493
2418
  Url: __expectString(output.url),
2494
2419
  };
2495
2420
  };
@@ -2548,6 +2473,9 @@ var loadRestJsonErrorCode = function (output, data) {
2548
2473
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2549
2474
  var sanitizeErrorCode = function (rawValue) {
2550
2475
  var cleanValue = rawValue;
2476
+ if (typeof cleanValue === "number") {
2477
+ cleanValue = cleanValue.toString();
2478
+ }
2551
2479
  if (cleanValue.indexOf(":") >= 0) {
2552
2480
  cleanValue = cleanValue.split(":")[0];
2553
2481
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediapackage-vod",
3
3
  "description": "AWS SDK for JavaScript Mediapackage Vod Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"