@aws-sdk/client-mediapackage 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.
@@ -23,12 +23,10 @@ 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
- ...(input.IngressAccessLogs !== undefined &&
31
- input.IngressAccessLogs !== null && {
29
+ ...(input.IngressAccessLogs != null && {
32
30
  ingressAccessLogs: serializeAws_restJson1IngressAccessLogs(input.IngressAccessLogs, context),
33
31
  }),
34
32
  });
@@ -51,9 +49,9 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
51
49
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
52
50
  let body;
53
51
  body = JSON.stringify({
54
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
55
- ...(input.Id !== undefined && input.Id !== null && { id: input.Id }),
56
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
52
+ ...(input.Description != null && { description: input.Description }),
53
+ ...(input.Id != null && { id: input.Id }),
54
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
57
55
  });
58
56
  return new protocol_http_1.HttpRequest({
59
57
  protocol,
@@ -74,15 +72,13 @@ const serializeAws_restJson1CreateHarvestJobCommand = async (input, context) =>
74
72
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/harvest_jobs";
75
73
  let body;
76
74
  body = JSON.stringify({
77
- ...(input.EndTime !== undefined && input.EndTime !== null && { endTime: input.EndTime }),
78
- ...(input.Id !== undefined && input.Id !== null && { id: input.Id }),
79
- ...(input.OriginEndpointId !== undefined &&
80
- input.OriginEndpointId !== null && { originEndpointId: input.OriginEndpointId }),
81
- ...(input.S3Destination !== undefined &&
82
- input.S3Destination !== null && {
75
+ ...(input.EndTime != null && { endTime: input.EndTime }),
76
+ ...(input.Id != null && { id: input.Id }),
77
+ ...(input.OriginEndpointId != null && { originEndpointId: input.OriginEndpointId }),
78
+ ...(input.S3Destination != null && {
83
79
  s3Destination: serializeAws_restJson1S3Destination(input.S3Destination, context),
84
80
  }),
85
- ...(input.StartTime !== undefined && input.StartTime !== null && { startTime: input.StartTime }),
81
+ ...(input.StartTime != null && { startTime: input.StartTime }),
86
82
  });
87
83
  return new protocol_http_1.HttpRequest({
88
84
  protocol,
@@ -103,32 +99,24 @@ const serializeAws_restJson1CreateOriginEndpointCommand = async (input, context)
103
99
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints";
104
100
  let body;
105
101
  body = JSON.stringify({
106
- ...(input.Authorization !== undefined &&
107
- input.Authorization !== null && {
102
+ ...(input.Authorization != null && {
108
103
  authorization: serializeAws_restJson1Authorization(input.Authorization, context),
109
104
  }),
110
- ...(input.ChannelId !== undefined && input.ChannelId !== null && { channelId: input.ChannelId }),
111
- ...(input.CmafPackage !== undefined &&
112
- input.CmafPackage !== null && {
105
+ ...(input.ChannelId != null && { channelId: input.ChannelId }),
106
+ ...(input.CmafPackage != null && {
113
107
  cmafPackage: serializeAws_restJson1CmafPackageCreateOrUpdateParameters(input.CmafPackage, context),
114
108
  }),
115
- ...(input.DashPackage !== undefined &&
116
- input.DashPackage !== null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
117
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
118
- ...(input.HlsPackage !== undefined &&
119
- input.HlsPackage !== null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
120
- ...(input.Id !== undefined && input.Id !== null && { id: input.Id }),
121
- ...(input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName }),
122
- ...(input.MssPackage !== undefined &&
123
- input.MssPackage !== null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
124
- ...(input.Origination !== undefined && input.Origination !== null && { origination: input.Origination }),
125
- ...(input.StartoverWindowSeconds !== undefined &&
126
- input.StartoverWindowSeconds !== null && { startoverWindowSeconds: input.StartoverWindowSeconds }),
127
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
128
- ...(input.TimeDelaySeconds !== undefined &&
129
- input.TimeDelaySeconds !== null && { timeDelaySeconds: input.TimeDelaySeconds }),
130
- ...(input.Whitelist !== undefined &&
131
- input.Whitelist !== null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) }),
109
+ ...(input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
110
+ ...(input.Description != null && { description: input.Description }),
111
+ ...(input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
112
+ ...(input.Id != null && { id: input.Id }),
113
+ ...(input.ManifestName != null && { manifestName: input.ManifestName }),
114
+ ...(input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
115
+ ...(input.Origination != null && { origination: input.Origination }),
116
+ ...(input.StartoverWindowSeconds != null && { startoverWindowSeconds: input.StartoverWindowSeconds }),
117
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
118
+ ...(input.TimeDelaySeconds != null && { timeDelaySeconds: input.TimeDelaySeconds }),
119
+ ...(input.Whitelist != null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) }),
132
120
  });
133
121
  return new protocol_http_1.HttpRequest({
134
122
  protocol,
@@ -444,8 +432,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
444
432
  }
445
433
  let body;
446
434
  body = JSON.stringify({
447
- ...(input.Tags !== undefined &&
448
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
435
+ ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
449
436
  });
450
437
  return new protocol_http_1.HttpRequest({
451
438
  protocol,
@@ -506,7 +493,7 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
506
493
  }
507
494
  let body;
508
495
  body = JSON.stringify({
509
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
496
+ ...(input.Description != null && { description: input.Description }),
510
497
  });
511
498
  return new protocol_http_1.HttpRequest({
512
499
  protocol,
@@ -537,29 +524,21 @@ const serializeAws_restJson1UpdateOriginEndpointCommand = async (input, context)
537
524
  }
538
525
  let body;
539
526
  body = JSON.stringify({
540
- ...(input.Authorization !== undefined &&
541
- input.Authorization !== null && {
527
+ ...(input.Authorization != null && {
542
528
  authorization: serializeAws_restJson1Authorization(input.Authorization, context),
543
529
  }),
544
- ...(input.CmafPackage !== undefined &&
545
- input.CmafPackage !== null && {
530
+ ...(input.CmafPackage != null && {
546
531
  cmafPackage: serializeAws_restJson1CmafPackageCreateOrUpdateParameters(input.CmafPackage, context),
547
532
  }),
548
- ...(input.DashPackage !== undefined &&
549
- input.DashPackage !== null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
550
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
551
- ...(input.HlsPackage !== undefined &&
552
- input.HlsPackage !== null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
553
- ...(input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName }),
554
- ...(input.MssPackage !== undefined &&
555
- input.MssPackage !== null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
556
- ...(input.Origination !== undefined && input.Origination !== null && { origination: input.Origination }),
557
- ...(input.StartoverWindowSeconds !== undefined &&
558
- input.StartoverWindowSeconds !== null && { startoverWindowSeconds: input.StartoverWindowSeconds }),
559
- ...(input.TimeDelaySeconds !== undefined &&
560
- input.TimeDelaySeconds !== null && { timeDelaySeconds: input.TimeDelaySeconds }),
561
- ...(input.Whitelist !== undefined &&
562
- input.Whitelist !== null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) }),
533
+ ...(input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) }),
534
+ ...(input.Description != null && { description: input.Description }),
535
+ ...(input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) }),
536
+ ...(input.ManifestName != null && { manifestName: input.ManifestName }),
537
+ ...(input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) }),
538
+ ...(input.Origination != null && { origination: input.Origination }),
539
+ ...(input.StartoverWindowSeconds != null && { startoverWindowSeconds: input.StartoverWindowSeconds }),
540
+ ...(input.TimeDelaySeconds != null && { timeDelaySeconds: input.TimeDelaySeconds }),
541
+ ...(input.Whitelist != null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) }),
563
542
  });
564
543
  return new protocol_http_1.HttpRequest({
565
544
  protocol,
@@ -2034,226 +2013,172 @@ const serializeAws_restJson1AdTriggers = (input, context) => {
2034
2013
  };
2035
2014
  const serializeAws_restJson1Authorization = (input, context) => {
2036
2015
  return {
2037
- ...(input.CdnIdentifierSecret !== undefined &&
2038
- input.CdnIdentifierSecret !== null && { cdnIdentifierSecret: input.CdnIdentifierSecret }),
2039
- ...(input.SecretsRoleArn !== undefined &&
2040
- input.SecretsRoleArn !== null && { secretsRoleArn: input.SecretsRoleArn }),
2016
+ ...(input.CdnIdentifierSecret != null && { cdnIdentifierSecret: input.CdnIdentifierSecret }),
2017
+ ...(input.SecretsRoleArn != null && { secretsRoleArn: input.SecretsRoleArn }),
2041
2018
  };
2042
2019
  };
2043
2020
  const serializeAws_restJson1CmafEncryption = (input, context) => {
2044
2021
  return {
2045
- ...(input.ConstantInitializationVector !== undefined &&
2046
- input.ConstantInitializationVector !== null && {
2022
+ ...(input.ConstantInitializationVector != null && {
2047
2023
  constantInitializationVector: input.ConstantInitializationVector,
2048
2024
  }),
2049
- ...(input.KeyRotationIntervalSeconds !== undefined &&
2050
- input.KeyRotationIntervalSeconds !== null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
2051
- ...(input.SpekeKeyProvider !== undefined &&
2052
- input.SpekeKeyProvider !== null && {
2025
+ ...(input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
2026
+ ...(input.SpekeKeyProvider != null && {
2053
2027
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
2054
2028
  }),
2055
2029
  };
2056
2030
  };
2057
2031
  const serializeAws_restJson1CmafPackageCreateOrUpdateParameters = (input, context) => {
2058
2032
  return {
2059
- ...(input.Encryption !== undefined &&
2060
- input.Encryption !== null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) }),
2061
- ...(input.HlsManifests !== undefined &&
2062
- input.HlsManifests !== null && {
2033
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) }),
2034
+ ...(input.HlsManifests != null && {
2063
2035
  hlsManifests: serializeAws_restJson1__listOfHlsManifestCreateOrUpdateParameters(input.HlsManifests, context),
2064
2036
  }),
2065
- ...(input.SegmentDurationSeconds !== undefined &&
2066
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
2067
- ...(input.SegmentPrefix !== undefined && input.SegmentPrefix !== null && { segmentPrefix: input.SegmentPrefix }),
2068
- ...(input.StreamSelection !== undefined &&
2069
- input.StreamSelection !== null && {
2037
+ ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
2038
+ ...(input.SegmentPrefix != null && { segmentPrefix: input.SegmentPrefix }),
2039
+ ...(input.StreamSelection != null && {
2070
2040
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
2071
2041
  }),
2072
2042
  };
2073
2043
  };
2074
2044
  const serializeAws_restJson1DashEncryption = (input, context) => {
2075
2045
  return {
2076
- ...(input.KeyRotationIntervalSeconds !== undefined &&
2077
- input.KeyRotationIntervalSeconds !== null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
2078
- ...(input.SpekeKeyProvider !== undefined &&
2079
- input.SpekeKeyProvider !== null && {
2046
+ ...(input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
2047
+ ...(input.SpekeKeyProvider != null && {
2080
2048
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
2081
2049
  }),
2082
2050
  };
2083
2051
  };
2084
2052
  const serializeAws_restJson1DashPackage = (input, context) => {
2085
2053
  return {
2086
- ...(input.AdTriggers !== undefined &&
2087
- input.AdTriggers !== null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
2088
- ...(input.AdsOnDeliveryRestrictions !== undefined &&
2089
- input.AdsOnDeliveryRestrictions !== null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
2090
- ...(input.Encryption !== undefined &&
2091
- input.Encryption !== null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) }),
2092
- ...(input.ManifestLayout !== undefined &&
2093
- input.ManifestLayout !== null && { manifestLayout: input.ManifestLayout }),
2094
- ...(input.ManifestWindowSeconds !== undefined &&
2095
- input.ManifestWindowSeconds !== null && { manifestWindowSeconds: input.ManifestWindowSeconds }),
2096
- ...(input.MinBufferTimeSeconds !== undefined &&
2097
- input.MinBufferTimeSeconds !== null && { minBufferTimeSeconds: input.MinBufferTimeSeconds }),
2098
- ...(input.MinUpdatePeriodSeconds !== undefined &&
2099
- input.MinUpdatePeriodSeconds !== null && { minUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
2100
- ...(input.PeriodTriggers !== undefined &&
2101
- input.PeriodTriggers !== null && {
2054
+ ...(input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
2055
+ ...(input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
2056
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) }),
2057
+ ...(input.ManifestLayout != null && { manifestLayout: input.ManifestLayout }),
2058
+ ...(input.ManifestWindowSeconds != null && { manifestWindowSeconds: input.ManifestWindowSeconds }),
2059
+ ...(input.MinBufferTimeSeconds != null && { minBufferTimeSeconds: input.MinBufferTimeSeconds }),
2060
+ ...(input.MinUpdatePeriodSeconds != null && { minUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
2061
+ ...(input.PeriodTriggers != null && {
2102
2062
  periodTriggers: serializeAws_restJson1__listOf__PeriodTriggersElement(input.PeriodTriggers, context),
2103
2063
  }),
2104
- ...(input.Profile !== undefined && input.Profile !== null && { profile: input.Profile }),
2105
- ...(input.SegmentDurationSeconds !== undefined &&
2106
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
2107
- ...(input.SegmentTemplateFormat !== undefined &&
2108
- input.SegmentTemplateFormat !== null && { segmentTemplateFormat: input.SegmentTemplateFormat }),
2109
- ...(input.StreamSelection !== undefined &&
2110
- input.StreamSelection !== null && {
2064
+ ...(input.Profile != null && { profile: input.Profile }),
2065
+ ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
2066
+ ...(input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat }),
2067
+ ...(input.StreamSelection != null && {
2111
2068
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
2112
2069
  }),
2113
- ...(input.SuggestedPresentationDelaySeconds !== undefined &&
2114
- input.SuggestedPresentationDelaySeconds !== null && {
2070
+ ...(input.SuggestedPresentationDelaySeconds != null && {
2115
2071
  suggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
2116
2072
  }),
2117
- ...(input.UtcTiming !== undefined && input.UtcTiming !== null && { utcTiming: input.UtcTiming }),
2118
- ...(input.UtcTimingUri !== undefined && input.UtcTimingUri !== null && { utcTimingUri: input.UtcTimingUri }),
2073
+ ...(input.UtcTiming != null && { utcTiming: input.UtcTiming }),
2074
+ ...(input.UtcTimingUri != null && { utcTimingUri: input.UtcTimingUri }),
2119
2075
  };
2120
2076
  };
2121
2077
  const serializeAws_restJson1EgressAccessLogs = (input, context) => {
2122
2078
  return {
2123
- ...(input.LogGroupName !== undefined && input.LogGroupName !== null && { logGroupName: input.LogGroupName }),
2079
+ ...(input.LogGroupName != null && { logGroupName: input.LogGroupName }),
2124
2080
  };
2125
2081
  };
2126
2082
  const serializeAws_restJson1EncryptionContractConfiguration = (input, context) => {
2127
2083
  return {
2128
- ...(input.PresetSpeke20Audio !== undefined &&
2129
- input.PresetSpeke20Audio !== null && { presetSpeke20Audio: input.PresetSpeke20Audio }),
2130
- ...(input.PresetSpeke20Video !== undefined &&
2131
- input.PresetSpeke20Video !== null && { presetSpeke20Video: input.PresetSpeke20Video }),
2084
+ ...(input.PresetSpeke20Audio != null && { presetSpeke20Audio: input.PresetSpeke20Audio }),
2085
+ ...(input.PresetSpeke20Video != null && { presetSpeke20Video: input.PresetSpeke20Video }),
2132
2086
  };
2133
2087
  };
2134
2088
  const serializeAws_restJson1HlsEncryption = (input, context) => {
2135
2089
  return {
2136
- ...(input.ConstantInitializationVector !== undefined &&
2137
- input.ConstantInitializationVector !== null && {
2090
+ ...(input.ConstantInitializationVector != null && {
2138
2091
  constantInitializationVector: input.ConstantInitializationVector,
2139
2092
  }),
2140
- ...(input.EncryptionMethod !== undefined &&
2141
- input.EncryptionMethod !== null && { encryptionMethod: input.EncryptionMethod }),
2142
- ...(input.KeyRotationIntervalSeconds !== undefined &&
2143
- input.KeyRotationIntervalSeconds !== null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
2144
- ...(input.RepeatExtXKey !== undefined && input.RepeatExtXKey !== null && { repeatExtXKey: input.RepeatExtXKey }),
2145
- ...(input.SpekeKeyProvider !== undefined &&
2146
- input.SpekeKeyProvider !== null && {
2093
+ ...(input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod }),
2094
+ ...(input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
2095
+ ...(input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey }),
2096
+ ...(input.SpekeKeyProvider != null && {
2147
2097
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
2148
2098
  }),
2149
2099
  };
2150
2100
  };
2151
2101
  const serializeAws_restJson1HlsManifestCreateOrUpdateParameters = (input, context) => {
2152
2102
  return {
2153
- ...(input.AdMarkers !== undefined && input.AdMarkers !== null && { adMarkers: input.AdMarkers }),
2154
- ...(input.AdTriggers !== undefined &&
2155
- input.AdTriggers !== null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
2156
- ...(input.AdsOnDeliveryRestrictions !== undefined &&
2157
- input.AdsOnDeliveryRestrictions !== null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
2158
- ...(input.Id !== undefined && input.Id !== null && { id: input.Id }),
2159
- ...(input.IncludeIframeOnlyStream !== undefined &&
2160
- input.IncludeIframeOnlyStream !== null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
2161
- ...(input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName }),
2162
- ...(input.PlaylistType !== undefined && input.PlaylistType !== null && { playlistType: input.PlaylistType }),
2163
- ...(input.PlaylistWindowSeconds !== undefined &&
2164
- input.PlaylistWindowSeconds !== null && { playlistWindowSeconds: input.PlaylistWindowSeconds }),
2165
- ...(input.ProgramDateTimeIntervalSeconds !== undefined &&
2166
- input.ProgramDateTimeIntervalSeconds !== null && {
2103
+ ...(input.AdMarkers != null && { adMarkers: input.AdMarkers }),
2104
+ ...(input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
2105
+ ...(input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
2106
+ ...(input.Id != null && { id: input.Id }),
2107
+ ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
2108
+ ...(input.ManifestName != null && { manifestName: input.ManifestName }),
2109
+ ...(input.PlaylistType != null && { playlistType: input.PlaylistType }),
2110
+ ...(input.PlaylistWindowSeconds != null && { playlistWindowSeconds: input.PlaylistWindowSeconds }),
2111
+ ...(input.ProgramDateTimeIntervalSeconds != null && {
2167
2112
  programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
2168
2113
  }),
2169
2114
  };
2170
2115
  };
2171
2116
  const serializeAws_restJson1HlsPackage = (input, context) => {
2172
2117
  return {
2173
- ...(input.AdMarkers !== undefined && input.AdMarkers !== null && { adMarkers: input.AdMarkers }),
2174
- ...(input.AdTriggers !== undefined &&
2175
- input.AdTriggers !== null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
2176
- ...(input.AdsOnDeliveryRestrictions !== undefined &&
2177
- input.AdsOnDeliveryRestrictions !== null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
2178
- ...(input.Encryption !== undefined &&
2179
- input.Encryption !== null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) }),
2180
- ...(input.IncludeDvbSubtitles !== undefined &&
2181
- input.IncludeDvbSubtitles !== null && { includeDvbSubtitles: input.IncludeDvbSubtitles }),
2182
- ...(input.IncludeIframeOnlyStream !== undefined &&
2183
- input.IncludeIframeOnlyStream !== null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
2184
- ...(input.PlaylistType !== undefined && input.PlaylistType !== null && { playlistType: input.PlaylistType }),
2185
- ...(input.PlaylistWindowSeconds !== undefined &&
2186
- input.PlaylistWindowSeconds !== null && { playlistWindowSeconds: input.PlaylistWindowSeconds }),
2187
- ...(input.ProgramDateTimeIntervalSeconds !== undefined &&
2188
- input.ProgramDateTimeIntervalSeconds !== null && {
2118
+ ...(input.AdMarkers != null && { adMarkers: input.AdMarkers }),
2119
+ ...(input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) }),
2120
+ ...(input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions }),
2121
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) }),
2122
+ ...(input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles }),
2123
+ ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
2124
+ ...(input.PlaylistType != null && { playlistType: input.PlaylistType }),
2125
+ ...(input.PlaylistWindowSeconds != null && { playlistWindowSeconds: input.PlaylistWindowSeconds }),
2126
+ ...(input.ProgramDateTimeIntervalSeconds != null && {
2189
2127
  programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
2190
2128
  }),
2191
- ...(input.SegmentDurationSeconds !== undefined &&
2192
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
2193
- ...(input.StreamSelection !== undefined &&
2194
- input.StreamSelection !== null && {
2129
+ ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
2130
+ ...(input.StreamSelection != null && {
2195
2131
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
2196
2132
  }),
2197
- ...(input.UseAudioRenditionGroup !== undefined &&
2198
- input.UseAudioRenditionGroup !== null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
2133
+ ...(input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
2199
2134
  };
2200
2135
  };
2201
2136
  const serializeAws_restJson1IngressAccessLogs = (input, context) => {
2202
2137
  return {
2203
- ...(input.LogGroupName !== undefined && input.LogGroupName !== null && { logGroupName: input.LogGroupName }),
2138
+ ...(input.LogGroupName != null && { logGroupName: input.LogGroupName }),
2204
2139
  };
2205
2140
  };
2206
2141
  const serializeAws_restJson1MssEncryption = (input, context) => {
2207
2142
  return {
2208
- ...(input.SpekeKeyProvider !== undefined &&
2209
- input.SpekeKeyProvider !== null && {
2143
+ ...(input.SpekeKeyProvider != null && {
2210
2144
  spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
2211
2145
  }),
2212
2146
  };
2213
2147
  };
2214
2148
  const serializeAws_restJson1MssPackage = (input, context) => {
2215
2149
  return {
2216
- ...(input.Encryption !== undefined &&
2217
- input.Encryption !== null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) }),
2218
- ...(input.ManifestWindowSeconds !== undefined &&
2219
- input.ManifestWindowSeconds !== null && { manifestWindowSeconds: input.ManifestWindowSeconds }),
2220
- ...(input.SegmentDurationSeconds !== undefined &&
2221
- input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
2222
- ...(input.StreamSelection !== undefined &&
2223
- input.StreamSelection !== null && {
2150
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) }),
2151
+ ...(input.ManifestWindowSeconds != null && { manifestWindowSeconds: input.ManifestWindowSeconds }),
2152
+ ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
2153
+ ...(input.StreamSelection != null && {
2224
2154
  streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
2225
2155
  }),
2226
2156
  };
2227
2157
  };
2228
2158
  const serializeAws_restJson1S3Destination = (input, context) => {
2229
2159
  return {
2230
- ...(input.BucketName !== undefined && input.BucketName !== null && { bucketName: input.BucketName }),
2231
- ...(input.ManifestKey !== undefined && input.ManifestKey !== null && { manifestKey: input.ManifestKey }),
2232
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn }),
2160
+ ...(input.BucketName != null && { bucketName: input.BucketName }),
2161
+ ...(input.ManifestKey != null && { manifestKey: input.ManifestKey }),
2162
+ ...(input.RoleArn != null && { roleArn: input.RoleArn }),
2233
2163
  };
2234
2164
  };
2235
2165
  const serializeAws_restJson1SpekeKeyProvider = (input, context) => {
2236
2166
  return {
2237
- ...(input.CertificateArn !== undefined &&
2238
- input.CertificateArn !== null && { certificateArn: input.CertificateArn }),
2239
- ...(input.EncryptionContractConfiguration !== undefined &&
2240
- input.EncryptionContractConfiguration !== null && {
2167
+ ...(input.CertificateArn != null && { certificateArn: input.CertificateArn }),
2168
+ ...(input.EncryptionContractConfiguration != null && {
2241
2169
  encryptionContractConfiguration: serializeAws_restJson1EncryptionContractConfiguration(input.EncryptionContractConfiguration, context),
2242
2170
  }),
2243
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { resourceId: input.ResourceId }),
2244
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn }),
2245
- ...(input.SystemIds !== undefined &&
2246
- input.SystemIds !== null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) }),
2247
- ...(input.Url !== undefined && input.Url !== null && { url: input.Url }),
2171
+ ...(input.ResourceId != null && { resourceId: input.ResourceId }),
2172
+ ...(input.RoleArn != null && { roleArn: input.RoleArn }),
2173
+ ...(input.SystemIds != null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) }),
2174
+ ...(input.Url != null && { url: input.Url }),
2248
2175
  };
2249
2176
  };
2250
2177
  const serializeAws_restJson1StreamSelection = (input, context) => {
2251
2178
  return {
2252
- ...(input.MaxVideoBitsPerSecond !== undefined &&
2253
- input.MaxVideoBitsPerSecond !== null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
2254
- ...(input.MinVideoBitsPerSecond !== undefined &&
2255
- input.MinVideoBitsPerSecond !== null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
2256
- ...(input.StreamOrder !== undefined && input.StreamOrder !== null && { streamOrder: input.StreamOrder }),
2179
+ ...(input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
2180
+ ...(input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
2181
+ ...(input.StreamOrder != null && { streamOrder: input.StreamOrder }),
2257
2182
  };
2258
2183
  };
2259
2184
  const serializeAws_restJson1Tags = (input, context) => {
@@ -2376,41 +2301,35 @@ const deserializeAws_restJson1Channel = (output, context) => {
2376
2301
  return {
2377
2302
  Arn: (0, smithy_client_1.expectString)(output.arn),
2378
2303
  Description: (0, smithy_client_1.expectString)(output.description),
2379
- EgressAccessLogs: output.egressAccessLogs !== undefined && output.egressAccessLogs !== null
2304
+ EgressAccessLogs: output.egressAccessLogs != null
2380
2305
  ? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
2381
2306
  : undefined,
2382
- HlsIngest: output.hlsIngest !== undefined && output.hlsIngest !== null
2383
- ? deserializeAws_restJson1HlsIngest(output.hlsIngest, context)
2384
- : undefined,
2307
+ HlsIngest: output.hlsIngest != null ? deserializeAws_restJson1HlsIngest(output.hlsIngest, context) : undefined,
2385
2308
  Id: (0, smithy_client_1.expectString)(output.id),
2386
- IngressAccessLogs: output.ingressAccessLogs !== undefined && output.ingressAccessLogs !== null
2309
+ IngressAccessLogs: output.ingressAccessLogs != null
2387
2310
  ? deserializeAws_restJson1IngressAccessLogs(output.ingressAccessLogs, context)
2388
2311
  : undefined,
2389
- Tags: output.tags !== undefined && output.tags !== null
2390
- ? deserializeAws_restJson1Tags(output.tags, context)
2391
- : undefined,
2312
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2392
2313
  };
2393
2314
  };
2394
2315
  const deserializeAws_restJson1CmafEncryption = (output, context) => {
2395
2316
  return {
2396
2317
  ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
2397
2318
  KeyRotationIntervalSeconds: (0, smithy_client_1.expectInt32)(output.keyRotationIntervalSeconds),
2398
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2319
+ SpekeKeyProvider: output.spekeKeyProvider != null
2399
2320
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2400
2321
  : undefined,
2401
2322
  };
2402
2323
  };
2403
2324
  const deserializeAws_restJson1CmafPackage = (output, context) => {
2404
2325
  return {
2405
- Encryption: output.encryption !== undefined && output.encryption !== null
2406
- ? deserializeAws_restJson1CmafEncryption(output.encryption, context)
2407
- : undefined,
2408
- HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
2326
+ Encryption: output.encryption != null ? deserializeAws_restJson1CmafEncryption(output.encryption, context) : undefined,
2327
+ HlsManifests: output.hlsManifests != null
2409
2328
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2410
2329
  : undefined,
2411
2330
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
2412
2331
  SegmentPrefix: (0, smithy_client_1.expectString)(output.segmentPrefix),
2413
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2332
+ StreamSelection: output.streamSelection != null
2414
2333
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2415
2334
  : undefined,
2416
2335
  };
@@ -2418,31 +2337,27 @@ const deserializeAws_restJson1CmafPackage = (output, context) => {
2418
2337
  const deserializeAws_restJson1DashEncryption = (output, context) => {
2419
2338
  return {
2420
2339
  KeyRotationIntervalSeconds: (0, smithy_client_1.expectInt32)(output.keyRotationIntervalSeconds),
2421
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2340
+ SpekeKeyProvider: output.spekeKeyProvider != null
2422
2341
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2423
2342
  : undefined,
2424
2343
  };
2425
2344
  };
2426
2345
  const deserializeAws_restJson1DashPackage = (output, context) => {
2427
2346
  return {
2428
- AdTriggers: output.adTriggers !== undefined && output.adTriggers !== null
2429
- ? deserializeAws_restJson1AdTriggers(output.adTriggers, context)
2430
- : undefined,
2347
+ AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
2431
2348
  AdsOnDeliveryRestrictions: (0, smithy_client_1.expectString)(output.adsOnDeliveryRestrictions),
2432
- Encryption: output.encryption !== undefined && output.encryption !== null
2433
- ? deserializeAws_restJson1DashEncryption(output.encryption, context)
2434
- : undefined,
2349
+ Encryption: output.encryption != null ? deserializeAws_restJson1DashEncryption(output.encryption, context) : undefined,
2435
2350
  ManifestLayout: (0, smithy_client_1.expectString)(output.manifestLayout),
2436
2351
  ManifestWindowSeconds: (0, smithy_client_1.expectInt32)(output.manifestWindowSeconds),
2437
2352
  MinBufferTimeSeconds: (0, smithy_client_1.expectInt32)(output.minBufferTimeSeconds),
2438
2353
  MinUpdatePeriodSeconds: (0, smithy_client_1.expectInt32)(output.minUpdatePeriodSeconds),
2439
- PeriodTriggers: output.periodTriggers !== undefined && output.periodTriggers !== null
2354
+ PeriodTriggers: output.periodTriggers != null
2440
2355
  ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
2441
2356
  : undefined,
2442
2357
  Profile: (0, smithy_client_1.expectString)(output.profile),
2443
2358
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
2444
2359
  SegmentTemplateFormat: (0, smithy_client_1.expectString)(output.segmentTemplateFormat),
2445
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2360
+ StreamSelection: output.streamSelection != null
2446
2361
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2447
2362
  : undefined,
2448
2363
  SuggestedPresentationDelaySeconds: (0, smithy_client_1.expectInt32)(output.suggestedPresentationDelaySeconds),
@@ -2469,9 +2384,7 @@ const deserializeAws_restJson1HarvestJob = (output, context) => {
2469
2384
  EndTime: (0, smithy_client_1.expectString)(output.endTime),
2470
2385
  Id: (0, smithy_client_1.expectString)(output.id),
2471
2386
  OriginEndpointId: (0, smithy_client_1.expectString)(output.originEndpointId),
2472
- S3Destination: output.s3Destination !== undefined && output.s3Destination !== null
2473
- ? deserializeAws_restJson1S3Destination(output.s3Destination, context)
2474
- : undefined,
2387
+ S3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
2475
2388
  StartTime: (0, smithy_client_1.expectString)(output.startTime),
2476
2389
  Status: (0, smithy_client_1.expectString)(output.status),
2477
2390
  };
@@ -2482,14 +2395,14 @@ const deserializeAws_restJson1HlsEncryption = (output, context) => {
2482
2395
  EncryptionMethod: (0, smithy_client_1.expectString)(output.encryptionMethod),
2483
2396
  KeyRotationIntervalSeconds: (0, smithy_client_1.expectInt32)(output.keyRotationIntervalSeconds),
2484
2397
  RepeatExtXKey: (0, smithy_client_1.expectBoolean)(output.repeatExtXKey),
2485
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2398
+ SpekeKeyProvider: output.spekeKeyProvider != null
2486
2399
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2487
2400
  : undefined,
2488
2401
  };
2489
2402
  };
2490
2403
  const deserializeAws_restJson1HlsIngest = (output, context) => {
2491
2404
  return {
2492
- IngestEndpoints: output.ingestEndpoints !== undefined && output.ingestEndpoints !== null
2405
+ IngestEndpoints: output.ingestEndpoints != null
2493
2406
  ? deserializeAws_restJson1__listOfIngestEndpoint(output.ingestEndpoints, context)
2494
2407
  : undefined,
2495
2408
  };
@@ -2509,20 +2422,16 @@ const deserializeAws_restJson1HlsManifest = (output, context) => {
2509
2422
  const deserializeAws_restJson1HlsPackage = (output, context) => {
2510
2423
  return {
2511
2424
  AdMarkers: (0, smithy_client_1.expectString)(output.adMarkers),
2512
- AdTriggers: output.adTriggers !== undefined && output.adTriggers !== null
2513
- ? deserializeAws_restJson1AdTriggers(output.adTriggers, context)
2514
- : undefined,
2425
+ AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
2515
2426
  AdsOnDeliveryRestrictions: (0, smithy_client_1.expectString)(output.adsOnDeliveryRestrictions),
2516
- Encryption: output.encryption !== undefined && output.encryption !== null
2517
- ? deserializeAws_restJson1HlsEncryption(output.encryption, context)
2518
- : undefined,
2427
+ Encryption: output.encryption != null ? deserializeAws_restJson1HlsEncryption(output.encryption, context) : undefined,
2519
2428
  IncludeDvbSubtitles: (0, smithy_client_1.expectBoolean)(output.includeDvbSubtitles),
2520
2429
  IncludeIframeOnlyStream: (0, smithy_client_1.expectBoolean)(output.includeIframeOnlyStream),
2521
2430
  PlaylistType: (0, smithy_client_1.expectString)(output.playlistType),
2522
2431
  PlaylistWindowSeconds: (0, smithy_client_1.expectInt32)(output.playlistWindowSeconds),
2523
2432
  ProgramDateTimeIntervalSeconds: (0, smithy_client_1.expectInt32)(output.programDateTimeIntervalSeconds),
2524
2433
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
2525
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2434
+ StreamSelection: output.streamSelection != null
2526
2435
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2527
2436
  : undefined,
2528
2437
  UseAudioRenditionGroup: (0, smithy_client_1.expectBoolean)(output.useAudioRenditionGroup),
@@ -2543,19 +2452,17 @@ const deserializeAws_restJson1IngressAccessLogs = (output, context) => {
2543
2452
  };
2544
2453
  const deserializeAws_restJson1MssEncryption = (output, context) => {
2545
2454
  return {
2546
- SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
2455
+ SpekeKeyProvider: output.spekeKeyProvider != null
2547
2456
  ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
2548
2457
  : undefined,
2549
2458
  };
2550
2459
  };
2551
2460
  const deserializeAws_restJson1MssPackage = (output, context) => {
2552
2461
  return {
2553
- Encryption: output.encryption !== undefined && output.encryption !== null
2554
- ? deserializeAws_restJson1MssEncryption(output.encryption, context)
2555
- : undefined,
2462
+ Encryption: output.encryption != null ? deserializeAws_restJson1MssEncryption(output.encryption, context) : undefined,
2556
2463
  ManifestWindowSeconds: (0, smithy_client_1.expectInt32)(output.manifestWindowSeconds),
2557
2464
  SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
2558
- StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2465
+ StreamSelection: output.streamSelection != null
2559
2466
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
2560
2467
  : undefined,
2561
2468
  };
@@ -2563,35 +2470,21 @@ const deserializeAws_restJson1MssPackage = (output, context) => {
2563
2470
  const deserializeAws_restJson1OriginEndpoint = (output, context) => {
2564
2471
  return {
2565
2472
  Arn: (0, smithy_client_1.expectString)(output.arn),
2566
- Authorization: output.authorization !== undefined && output.authorization !== null
2567
- ? deserializeAws_restJson1Authorization(output.authorization, context)
2568
- : undefined,
2473
+ Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
2569
2474
  ChannelId: (0, smithy_client_1.expectString)(output.channelId),
2570
- CmafPackage: output.cmafPackage !== undefined && output.cmafPackage !== null
2571
- ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context)
2572
- : undefined,
2573
- DashPackage: output.dashPackage !== undefined && output.dashPackage !== null
2574
- ? deserializeAws_restJson1DashPackage(output.dashPackage, context)
2575
- : undefined,
2475
+ CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
2476
+ DashPackage: output.dashPackage != null ? deserializeAws_restJson1DashPackage(output.dashPackage, context) : undefined,
2576
2477
  Description: (0, smithy_client_1.expectString)(output.description),
2577
- HlsPackage: output.hlsPackage !== undefined && output.hlsPackage !== null
2578
- ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context)
2579
- : undefined,
2478
+ HlsPackage: output.hlsPackage != null ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context) : undefined,
2580
2479
  Id: (0, smithy_client_1.expectString)(output.id),
2581
2480
  ManifestName: (0, smithy_client_1.expectString)(output.manifestName),
2582
- MssPackage: output.mssPackage !== undefined && output.mssPackage !== null
2583
- ? deserializeAws_restJson1MssPackage(output.mssPackage, context)
2584
- : undefined,
2481
+ MssPackage: output.mssPackage != null ? deserializeAws_restJson1MssPackage(output.mssPackage, context) : undefined,
2585
2482
  Origination: (0, smithy_client_1.expectString)(output.origination),
2586
2483
  StartoverWindowSeconds: (0, smithy_client_1.expectInt32)(output.startoverWindowSeconds),
2587
- Tags: output.tags !== undefined && output.tags !== null
2588
- ? deserializeAws_restJson1Tags(output.tags, context)
2589
- : undefined,
2484
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2590
2485
  TimeDelaySeconds: (0, smithy_client_1.expectInt32)(output.timeDelaySeconds),
2591
2486
  Url: (0, smithy_client_1.expectString)(output.url),
2592
- Whitelist: output.whitelist !== undefined && output.whitelist !== null
2593
- ? deserializeAws_restJson1__listOf__string(output.whitelist, context)
2594
- : undefined,
2487
+ Whitelist: output.whitelist != null ? deserializeAws_restJson1__listOf__string(output.whitelist, context) : undefined,
2595
2488
  };
2596
2489
  };
2597
2490
  const deserializeAws_restJson1S3Destination = (output, context) => {
@@ -2604,14 +2497,12 @@ const deserializeAws_restJson1S3Destination = (output, context) => {
2604
2497
  const deserializeAws_restJson1SpekeKeyProvider = (output, context) => {
2605
2498
  return {
2606
2499
  CertificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
2607
- EncryptionContractConfiguration: output.encryptionContractConfiguration !== undefined && output.encryptionContractConfiguration !== null
2500
+ EncryptionContractConfiguration: output.encryptionContractConfiguration != null
2608
2501
  ? deserializeAws_restJson1EncryptionContractConfiguration(output.encryptionContractConfiguration, context)
2609
2502
  : undefined,
2610
2503
  ResourceId: (0, smithy_client_1.expectString)(output.resourceId),
2611
2504
  RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
2612
- SystemIds: output.systemIds !== undefined && output.systemIds !== null
2613
- ? deserializeAws_restJson1__listOf__string(output.systemIds, context)
2614
- : undefined,
2505
+ SystemIds: output.systemIds != null ? deserializeAws_restJson1__listOf__string(output.systemIds, context) : undefined,
2615
2506
  Url: (0, smithy_client_1.expectString)(output.url),
2616
2507
  };
2617
2508
  };
@@ -2664,6 +2555,9 @@ const loadRestJsonErrorCode = (output, data) => {
2664
2555
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2665
2556
  const sanitizeErrorCode = (rawValue) => {
2666
2557
  let cleanValue = rawValue;
2558
+ if (typeof cleanValue === "number") {
2559
+ cleanValue = cleanValue.toString();
2560
+ }
2667
2561
  if (cleanValue.indexOf(":") >= 0) {
2668
2562
  cleanValue = cleanValue.split(":")[0];
2669
2563
  }