@aws-sdk/client-mediatailor 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +367 -430
- package/dist-es/protocols/Aws_restJson1.js +320 -383
- package/package.json +26 -26
|
@@ -14,10 +14,8 @@ const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.PercentEnabled
|
|
18
|
-
|
|
19
|
-
...(input.PlaybackConfigurationName !== undefined &&
|
|
20
|
-
input.PlaybackConfigurationName !== null && { PlaybackConfigurationName: input.PlaybackConfigurationName }),
|
|
17
|
+
...(input.PercentEnabled != null && { PercentEnabled: input.PercentEnabled }),
|
|
18
|
+
...(input.PlaybackConfigurationName != null && { PlaybackConfigurationName: input.PlaybackConfigurationName }),
|
|
21
19
|
});
|
|
22
20
|
return new protocol_http_1.HttpRequest({
|
|
23
21
|
protocol,
|
|
@@ -48,14 +46,11 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
48
46
|
}
|
|
49
47
|
let body;
|
|
50
48
|
body = JSON.stringify({
|
|
51
|
-
...(input.FillerSlate
|
|
52
|
-
|
|
53
|
-
...(input.
|
|
54
|
-
|
|
55
|
-
...(input.
|
|
56
|
-
...(input.Tags !== undefined &&
|
|
57
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
58
|
-
...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
|
|
49
|
+
...(input.FillerSlate != null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) }),
|
|
50
|
+
...(input.Outputs != null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
51
|
+
...(input.PlaybackMode != null && { PlaybackMode: input.PlaybackMode }),
|
|
52
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
53
|
+
...(input.Tier != null && { Tier: input.Tier }),
|
|
59
54
|
});
|
|
60
55
|
return new protocol_http_1.HttpRequest({
|
|
61
56
|
protocol,
|
|
@@ -97,12 +92,10 @@ const serializeAws_restJson1CreateLiveSourceCommand = async (input, context) =>
|
|
|
97
92
|
}
|
|
98
93
|
let body;
|
|
99
94
|
body = JSON.stringify({
|
|
100
|
-
...(input.HttpPackageConfigurations
|
|
101
|
-
input.HttpPackageConfigurations !== null && {
|
|
95
|
+
...(input.HttpPackageConfigurations != null && {
|
|
102
96
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
103
97
|
}),
|
|
104
|
-
...(input.Tags
|
|
105
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
98
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
106
99
|
});
|
|
107
100
|
return new protocol_http_1.HttpRequest({
|
|
108
101
|
protocol,
|
|
@@ -144,13 +137,11 @@ const serializeAws_restJson1CreatePrefetchScheduleCommand = async (input, contex
|
|
|
144
137
|
}
|
|
145
138
|
let body;
|
|
146
139
|
body = JSON.stringify({
|
|
147
|
-
...(input.Consumption
|
|
148
|
-
input.Consumption !== null && {
|
|
140
|
+
...(input.Consumption != null && {
|
|
149
141
|
Consumption: serializeAws_restJson1PrefetchConsumption(input.Consumption, context),
|
|
150
142
|
}),
|
|
151
|
-
...(input.Retrieval
|
|
152
|
-
|
|
153
|
-
...(input.StreamId !== undefined && input.StreamId !== null && { StreamId: input.StreamId }),
|
|
143
|
+
...(input.Retrieval != null && { Retrieval: serializeAws_restJson1PrefetchRetrieval(input.Retrieval, context) }),
|
|
144
|
+
...(input.StreamId != null && { StreamId: input.StreamId }),
|
|
154
145
|
});
|
|
155
146
|
return new protocol_http_1.HttpRequest({
|
|
156
147
|
protocol,
|
|
@@ -192,17 +183,13 @@ const serializeAws_restJson1CreateProgramCommand = async (input, context) => {
|
|
|
192
183
|
}
|
|
193
184
|
let body;
|
|
194
185
|
body = JSON.stringify({
|
|
195
|
-
...(input.AdBreaks
|
|
196
|
-
|
|
197
|
-
...(input.
|
|
198
|
-
input.LiveSourceName !== null && { LiveSourceName: input.LiveSourceName }),
|
|
199
|
-
...(input.ScheduleConfiguration !== undefined &&
|
|
200
|
-
input.ScheduleConfiguration !== null && {
|
|
186
|
+
...(input.AdBreaks != null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) }),
|
|
187
|
+
...(input.LiveSourceName != null && { LiveSourceName: input.LiveSourceName }),
|
|
188
|
+
...(input.ScheduleConfiguration != null && {
|
|
201
189
|
ScheduleConfiguration: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
202
190
|
}),
|
|
203
|
-
...(input.SourceLocationName
|
|
204
|
-
|
|
205
|
-
...(input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }),
|
|
191
|
+
...(input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName }),
|
|
192
|
+
...(input.VodSourceName != null && { VodSourceName: input.VodSourceName }),
|
|
206
193
|
});
|
|
207
194
|
return new protocol_http_1.HttpRequest({
|
|
208
195
|
protocol,
|
|
@@ -233,24 +220,19 @@ const serializeAws_restJson1CreateSourceLocationCommand = async (input, context)
|
|
|
233
220
|
}
|
|
234
221
|
let body;
|
|
235
222
|
body = JSON.stringify({
|
|
236
|
-
...(input.AccessConfiguration
|
|
237
|
-
input.AccessConfiguration !== null && {
|
|
223
|
+
...(input.AccessConfiguration != null && {
|
|
238
224
|
AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
|
|
239
225
|
}),
|
|
240
|
-
...(input.DefaultSegmentDeliveryConfiguration
|
|
241
|
-
input.DefaultSegmentDeliveryConfiguration !== null && {
|
|
226
|
+
...(input.DefaultSegmentDeliveryConfiguration != null && {
|
|
242
227
|
DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(input.DefaultSegmentDeliveryConfiguration, context),
|
|
243
228
|
}),
|
|
244
|
-
...(input.HttpConfiguration
|
|
245
|
-
input.HttpConfiguration !== null && {
|
|
229
|
+
...(input.HttpConfiguration != null && {
|
|
246
230
|
HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
|
|
247
231
|
}),
|
|
248
|
-
...(input.SegmentDeliveryConfigurations
|
|
249
|
-
input.SegmentDeliveryConfigurations !== null && {
|
|
232
|
+
...(input.SegmentDeliveryConfigurations != null && {
|
|
250
233
|
SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
|
|
251
234
|
}),
|
|
252
|
-
...(input.Tags
|
|
253
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
235
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
254
236
|
});
|
|
255
237
|
return new protocol_http_1.HttpRequest({
|
|
256
238
|
protocol,
|
|
@@ -292,12 +274,10 @@ const serializeAws_restJson1CreateVodSourceCommand = async (input, context) => {
|
|
|
292
274
|
}
|
|
293
275
|
let body;
|
|
294
276
|
body = JSON.stringify({
|
|
295
|
-
...(input.HttpPackageConfigurations
|
|
296
|
-
input.HttpPackageConfigurations !== null && {
|
|
277
|
+
...(input.HttpPackageConfigurations != null && {
|
|
297
278
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
298
279
|
}),
|
|
299
|
-
...(input.Tags
|
|
300
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
280
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
301
281
|
});
|
|
302
282
|
return new protocol_http_1.HttpRequest({
|
|
303
283
|
protocol,
|
|
@@ -961,9 +941,9 @@ const serializeAws_restJson1ListPrefetchSchedulesCommand = async (input, context
|
|
|
961
941
|
}
|
|
962
942
|
let body;
|
|
963
943
|
body = JSON.stringify({
|
|
964
|
-
...(input.MaxResults
|
|
965
|
-
...(input.NextToken
|
|
966
|
-
...(input.StreamId
|
|
944
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
945
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
946
|
+
...(input.StreamId != null && { StreamId: input.StreamId }),
|
|
967
947
|
});
|
|
968
948
|
return new protocol_http_1.HttpRequest({
|
|
969
949
|
protocol,
|
|
@@ -1073,7 +1053,7 @@ const serializeAws_restJson1PutChannelPolicyCommand = async (input, context) =>
|
|
|
1073
1053
|
}
|
|
1074
1054
|
let body;
|
|
1075
1055
|
body = JSON.stringify({
|
|
1076
|
-
...(input.Policy
|
|
1056
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
1077
1057
|
});
|
|
1078
1058
|
return new protocol_http_1.HttpRequest({
|
|
1079
1059
|
protocol,
|
|
@@ -1094,46 +1074,34 @@ const serializeAws_restJson1PutPlaybackConfigurationCommand = async (input, cont
|
|
|
1094
1074
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
|
|
1095
1075
|
let body;
|
|
1096
1076
|
body = JSON.stringify({
|
|
1097
|
-
...(input.AdDecisionServerUrl
|
|
1098
|
-
|
|
1099
|
-
...(input.AvailSuppression !== undefined &&
|
|
1100
|
-
input.AvailSuppression !== null && {
|
|
1077
|
+
...(input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl }),
|
|
1078
|
+
...(input.AvailSuppression != null && {
|
|
1101
1079
|
AvailSuppression: serializeAws_restJson1AvailSuppression(input.AvailSuppression, context),
|
|
1102
1080
|
}),
|
|
1103
|
-
...(input.Bumper
|
|
1104
|
-
|
|
1105
|
-
...(input.CdnConfiguration !== undefined &&
|
|
1106
|
-
input.CdnConfiguration !== null && {
|
|
1081
|
+
...(input.Bumper != null && { Bumper: serializeAws_restJson1Bumper(input.Bumper, context) }),
|
|
1082
|
+
...(input.CdnConfiguration != null && {
|
|
1107
1083
|
CdnConfiguration: serializeAws_restJson1CdnConfiguration(input.CdnConfiguration, context),
|
|
1108
1084
|
}),
|
|
1109
|
-
...(input.ConfigurationAliases
|
|
1110
|
-
input.ConfigurationAliases !== null && {
|
|
1085
|
+
...(input.ConfigurationAliases != null && {
|
|
1111
1086
|
ConfigurationAliases: serializeAws_restJson1ConfigurationAliasesRequest(input.ConfigurationAliases, context),
|
|
1112
1087
|
}),
|
|
1113
|
-
...(input.DashConfiguration
|
|
1114
|
-
input.DashConfiguration !== null && {
|
|
1088
|
+
...(input.DashConfiguration != null && {
|
|
1115
1089
|
DashConfiguration: serializeAws_restJson1DashConfigurationForPut(input.DashConfiguration, context),
|
|
1116
1090
|
}),
|
|
1117
|
-
...(input.LivePreRollConfiguration
|
|
1118
|
-
input.LivePreRollConfiguration !== null && {
|
|
1091
|
+
...(input.LivePreRollConfiguration != null && {
|
|
1119
1092
|
LivePreRollConfiguration: serializeAws_restJson1LivePreRollConfiguration(input.LivePreRollConfiguration, context),
|
|
1120
1093
|
}),
|
|
1121
|
-
...(input.ManifestProcessingRules
|
|
1122
|
-
input.ManifestProcessingRules !== null && {
|
|
1094
|
+
...(input.ManifestProcessingRules != null && {
|
|
1123
1095
|
ManifestProcessingRules: serializeAws_restJson1ManifestProcessingRules(input.ManifestProcessingRules, context),
|
|
1124
1096
|
}),
|
|
1125
|
-
...(input.Name
|
|
1126
|
-
...(input.PersonalizationThresholdSeconds
|
|
1127
|
-
input.PersonalizationThresholdSeconds !== null && {
|
|
1097
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1098
|
+
...(input.PersonalizationThresholdSeconds != null && {
|
|
1128
1099
|
PersonalizationThresholdSeconds: input.PersonalizationThresholdSeconds,
|
|
1129
1100
|
}),
|
|
1130
|
-
...(input.SlateAdUrl
|
|
1131
|
-
...(input.Tags
|
|
1132
|
-
|
|
1133
|
-
...(input.
|
|
1134
|
-
input.TranscodeProfileName !== null && { TranscodeProfileName: input.TranscodeProfileName }),
|
|
1135
|
-
...(input.VideoContentSourceUrl !== undefined &&
|
|
1136
|
-
input.VideoContentSourceUrl !== null && { VideoContentSourceUrl: input.VideoContentSourceUrl }),
|
|
1101
|
+
...(input.SlateAdUrl != null && { SlateAdUrl: input.SlateAdUrl }),
|
|
1102
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
1103
|
+
...(input.TranscodeProfileName != null && { TranscodeProfileName: input.TranscodeProfileName }),
|
|
1104
|
+
...(input.VideoContentSourceUrl != null && { VideoContentSourceUrl: input.VideoContentSourceUrl }),
|
|
1137
1105
|
});
|
|
1138
1106
|
return new protocol_http_1.HttpRequest({
|
|
1139
1107
|
protocol,
|
|
@@ -1216,8 +1184,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1216
1184
|
}
|
|
1217
1185
|
let body;
|
|
1218
1186
|
body = JSON.stringify({
|
|
1219
|
-
...(input.Tags
|
|
1220
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
1187
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
1221
1188
|
});
|
|
1222
1189
|
return new protocol_http_1.HttpRequest({
|
|
1223
1190
|
protocol,
|
|
@@ -1278,10 +1245,8 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
|
|
|
1278
1245
|
}
|
|
1279
1246
|
let body;
|
|
1280
1247
|
body = JSON.stringify({
|
|
1281
|
-
...(input.FillerSlate
|
|
1282
|
-
|
|
1283
|
-
...(input.Outputs !== undefined &&
|
|
1284
|
-
input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
1248
|
+
...(input.FillerSlate != null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) }),
|
|
1249
|
+
...(input.Outputs != null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
1285
1250
|
});
|
|
1286
1251
|
return new protocol_http_1.HttpRequest({
|
|
1287
1252
|
protocol,
|
|
@@ -1323,8 +1288,7 @@ const serializeAws_restJson1UpdateLiveSourceCommand = async (input, context) =>
|
|
|
1323
1288
|
}
|
|
1324
1289
|
let body;
|
|
1325
1290
|
body = JSON.stringify({
|
|
1326
|
-
...(input.HttpPackageConfigurations
|
|
1327
|
-
input.HttpPackageConfigurations !== null && {
|
|
1291
|
+
...(input.HttpPackageConfigurations != null && {
|
|
1328
1292
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
1329
1293
|
}),
|
|
1330
1294
|
});
|
|
@@ -1357,20 +1321,16 @@ const serializeAws_restJson1UpdateSourceLocationCommand = async (input, context)
|
|
|
1357
1321
|
}
|
|
1358
1322
|
let body;
|
|
1359
1323
|
body = JSON.stringify({
|
|
1360
|
-
...(input.AccessConfiguration
|
|
1361
|
-
input.AccessConfiguration !== null && {
|
|
1324
|
+
...(input.AccessConfiguration != null && {
|
|
1362
1325
|
AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
|
|
1363
1326
|
}),
|
|
1364
|
-
...(input.DefaultSegmentDeliveryConfiguration
|
|
1365
|
-
input.DefaultSegmentDeliveryConfiguration !== null && {
|
|
1327
|
+
...(input.DefaultSegmentDeliveryConfiguration != null && {
|
|
1366
1328
|
DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(input.DefaultSegmentDeliveryConfiguration, context),
|
|
1367
1329
|
}),
|
|
1368
|
-
...(input.HttpConfiguration
|
|
1369
|
-
input.HttpConfiguration !== null && {
|
|
1330
|
+
...(input.HttpConfiguration != null && {
|
|
1370
1331
|
HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
|
|
1371
1332
|
}),
|
|
1372
|
-
...(input.SegmentDeliveryConfigurations
|
|
1373
|
-
input.SegmentDeliveryConfigurations !== null && {
|
|
1333
|
+
...(input.SegmentDeliveryConfigurations != null && {
|
|
1374
1334
|
SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
|
|
1375
1335
|
}),
|
|
1376
1336
|
});
|
|
@@ -1414,8 +1374,7 @@ const serializeAws_restJson1UpdateVodSourceCommand = async (input, context) => {
|
|
|
1414
1374
|
}
|
|
1415
1375
|
let body;
|
|
1416
1376
|
body = JSON.stringify({
|
|
1417
|
-
...(input.HttpPackageConfigurations
|
|
1418
|
-
input.HttpPackageConfigurations !== null && {
|
|
1377
|
+
...(input.HttpPackageConfigurations != null && {
|
|
1419
1378
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
1420
1379
|
}),
|
|
1421
1380
|
});
|
|
@@ -1455,15 +1414,16 @@ const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError
|
|
|
1455
1414
|
body: await parseBody(output.body, context),
|
|
1456
1415
|
};
|
|
1457
1416
|
let response;
|
|
1458
|
-
|
|
1459
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
1418
|
switch (errorCode) {
|
|
1461
1419
|
default:
|
|
1462
1420
|
const parsedBody = parsedOutput.body;
|
|
1421
|
+
const $metadata = deserializeMetadata(output);
|
|
1422
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1463
1423
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1464
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1424
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1465
1425
|
$fault: "client",
|
|
1466
|
-
$metadata
|
|
1426
|
+
$metadata,
|
|
1467
1427
|
});
|
|
1468
1428
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1469
1429
|
}
|
|
@@ -1525,15 +1485,16 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
1525
1485
|
body: await parseBody(output.body, context),
|
|
1526
1486
|
};
|
|
1527
1487
|
let response;
|
|
1528
|
-
|
|
1529
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1530
1489
|
switch (errorCode) {
|
|
1531
1490
|
default:
|
|
1532
1491
|
const parsedBody = parsedOutput.body;
|
|
1492
|
+
const $metadata = deserializeMetadata(output);
|
|
1493
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1533
1494
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1534
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1495
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1535
1496
|
$fault: "client",
|
|
1536
|
-
$metadata
|
|
1497
|
+
$metadata,
|
|
1537
1498
|
});
|
|
1538
1499
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1539
1500
|
}
|
|
@@ -1583,15 +1544,16 @@ const deserializeAws_restJson1CreateLiveSourceCommandError = async (output, cont
|
|
|
1583
1544
|
body: await parseBody(output.body, context),
|
|
1584
1545
|
};
|
|
1585
1546
|
let response;
|
|
1586
|
-
|
|
1587
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
1548
|
switch (errorCode) {
|
|
1589
1549
|
default:
|
|
1590
1550
|
const parsedBody = parsedOutput.body;
|
|
1551
|
+
const $metadata = deserializeMetadata(output);
|
|
1552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1591
1553
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1592
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1593
1555
|
$fault: "client",
|
|
1594
|
-
$metadata
|
|
1556
|
+
$metadata,
|
|
1595
1557
|
});
|
|
1596
1558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1597
1559
|
}
|
|
@@ -1637,15 +1599,16 @@ const deserializeAws_restJson1CreatePrefetchScheduleCommandError = async (output
|
|
|
1637
1599
|
body: await parseBody(output.body, context),
|
|
1638
1600
|
};
|
|
1639
1601
|
let response;
|
|
1640
|
-
|
|
1641
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
1603
|
switch (errorCode) {
|
|
1643
1604
|
default:
|
|
1644
1605
|
const parsedBody = parsedOutput.body;
|
|
1606
|
+
const $metadata = deserializeMetadata(output);
|
|
1607
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1645
1608
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1646
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1647
1610
|
$fault: "client",
|
|
1648
|
-
$metadata
|
|
1611
|
+
$metadata,
|
|
1649
1612
|
});
|
|
1650
1613
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1651
1614
|
}
|
|
@@ -1703,15 +1666,16 @@ const deserializeAws_restJson1CreateProgramCommandError = async (output, context
|
|
|
1703
1666
|
body: await parseBody(output.body, context),
|
|
1704
1667
|
};
|
|
1705
1668
|
let response;
|
|
1706
|
-
|
|
1707
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1669
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1708
1670
|
switch (errorCode) {
|
|
1709
1671
|
default:
|
|
1710
1672
|
const parsedBody = parsedOutput.body;
|
|
1673
|
+
const $metadata = deserializeMetadata(output);
|
|
1674
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1711
1675
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1712
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1676
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1713
1677
|
$fault: "client",
|
|
1714
|
-
$metadata
|
|
1678
|
+
$metadata,
|
|
1715
1679
|
});
|
|
1716
1680
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1717
1681
|
}
|
|
@@ -1769,15 +1733,16 @@ const deserializeAws_restJson1CreateSourceLocationCommandError = async (output,
|
|
|
1769
1733
|
body: await parseBody(output.body, context),
|
|
1770
1734
|
};
|
|
1771
1735
|
let response;
|
|
1772
|
-
|
|
1773
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
1737
|
switch (errorCode) {
|
|
1775
1738
|
default:
|
|
1776
1739
|
const parsedBody = parsedOutput.body;
|
|
1740
|
+
const $metadata = deserializeMetadata(output);
|
|
1741
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1777
1742
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1743
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1779
1744
|
$fault: "client",
|
|
1780
|
-
$metadata
|
|
1745
|
+
$metadata,
|
|
1781
1746
|
});
|
|
1782
1747
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1783
1748
|
}
|
|
@@ -1827,15 +1792,16 @@ const deserializeAws_restJson1CreateVodSourceCommandError = async (output, conte
|
|
|
1827
1792
|
body: await parseBody(output.body, context),
|
|
1828
1793
|
};
|
|
1829
1794
|
let response;
|
|
1830
|
-
|
|
1831
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
1796
|
switch (errorCode) {
|
|
1833
1797
|
default:
|
|
1834
1798
|
const parsedBody = parsedOutput.body;
|
|
1799
|
+
const $metadata = deserializeMetadata(output);
|
|
1800
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1835
1801
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1836
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1837
1803
|
$fault: "client",
|
|
1838
|
-
$metadata
|
|
1804
|
+
$metadata,
|
|
1839
1805
|
});
|
|
1840
1806
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1841
1807
|
}
|
|
@@ -1857,15 +1823,16 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
1857
1823
|
body: await parseBody(output.body, context),
|
|
1858
1824
|
};
|
|
1859
1825
|
let response;
|
|
1860
|
-
|
|
1861
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1862
1827
|
switch (errorCode) {
|
|
1863
1828
|
default:
|
|
1864
1829
|
const parsedBody = parsedOutput.body;
|
|
1830
|
+
const $metadata = deserializeMetadata(output);
|
|
1831
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1865
1832
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1866
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1833
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1867
1834
|
$fault: "client",
|
|
1868
|
-
$metadata
|
|
1835
|
+
$metadata,
|
|
1869
1836
|
});
|
|
1870
1837
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1871
1838
|
}
|
|
@@ -1887,15 +1854,16 @@ const deserializeAws_restJson1DeleteChannelPolicyCommandError = async (output, c
|
|
|
1887
1854
|
body: await parseBody(output.body, context),
|
|
1888
1855
|
};
|
|
1889
1856
|
let response;
|
|
1890
|
-
|
|
1891
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
1858
|
switch (errorCode) {
|
|
1893
1859
|
default:
|
|
1894
1860
|
const parsedBody = parsedOutput.body;
|
|
1861
|
+
const $metadata = deserializeMetadata(output);
|
|
1862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1895
1863
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1896
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1897
1865
|
$fault: "client",
|
|
1898
|
-
$metadata
|
|
1866
|
+
$metadata,
|
|
1899
1867
|
});
|
|
1900
1868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1901
1869
|
}
|
|
@@ -1917,15 +1885,16 @@ const deserializeAws_restJson1DeleteLiveSourceCommandError = async (output, cont
|
|
|
1917
1885
|
body: await parseBody(output.body, context),
|
|
1918
1886
|
};
|
|
1919
1887
|
let response;
|
|
1920
|
-
|
|
1921
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
1889
|
switch (errorCode) {
|
|
1923
1890
|
default:
|
|
1924
1891
|
const parsedBody = parsedOutput.body;
|
|
1892
|
+
const $metadata = deserializeMetadata(output);
|
|
1893
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1925
1894
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1926
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1895
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1927
1896
|
$fault: "client",
|
|
1928
|
-
$metadata
|
|
1897
|
+
$metadata,
|
|
1929
1898
|
});
|
|
1930
1899
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1931
1900
|
}
|
|
@@ -1947,15 +1916,16 @@ const deserializeAws_restJson1DeletePlaybackConfigurationCommandError = async (o
|
|
|
1947
1916
|
body: await parseBody(output.body, context),
|
|
1948
1917
|
};
|
|
1949
1918
|
let response;
|
|
1950
|
-
|
|
1951
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
1920
|
switch (errorCode) {
|
|
1953
1921
|
default:
|
|
1954
1922
|
const parsedBody = parsedOutput.body;
|
|
1923
|
+
const $metadata = deserializeMetadata(output);
|
|
1924
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1955
1925
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1956
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1957
1927
|
$fault: "client",
|
|
1958
|
-
$metadata
|
|
1928
|
+
$metadata,
|
|
1959
1929
|
});
|
|
1960
1930
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1961
1931
|
}
|
|
@@ -1977,15 +1947,16 @@ const deserializeAws_restJson1DeletePrefetchScheduleCommandError = async (output
|
|
|
1977
1947
|
body: await parseBody(output.body, context),
|
|
1978
1948
|
};
|
|
1979
1949
|
let response;
|
|
1980
|
-
|
|
1981
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1951
|
switch (errorCode) {
|
|
1983
1952
|
default:
|
|
1984
1953
|
const parsedBody = parsedOutput.body;
|
|
1954
|
+
const $metadata = deserializeMetadata(output);
|
|
1955
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1985
1956
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
1986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1957
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1987
1958
|
$fault: "client",
|
|
1988
|
-
$metadata
|
|
1959
|
+
$metadata,
|
|
1989
1960
|
});
|
|
1990
1961
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1991
1962
|
}
|
|
@@ -2007,15 +1978,16 @@ const deserializeAws_restJson1DeleteProgramCommandError = async (output, context
|
|
|
2007
1978
|
body: await parseBody(output.body, context),
|
|
2008
1979
|
};
|
|
2009
1980
|
let response;
|
|
2010
|
-
|
|
2011
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2012
1982
|
switch (errorCode) {
|
|
2013
1983
|
default:
|
|
2014
1984
|
const parsedBody = parsedOutput.body;
|
|
1985
|
+
const $metadata = deserializeMetadata(output);
|
|
1986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2015
1987
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2016
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2017
1989
|
$fault: "client",
|
|
2018
|
-
$metadata
|
|
1990
|
+
$metadata,
|
|
2019
1991
|
});
|
|
2020
1992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2021
1993
|
}
|
|
@@ -2037,15 +2009,16 @@ const deserializeAws_restJson1DeleteSourceLocationCommandError = async (output,
|
|
|
2037
2009
|
body: await parseBody(output.body, context),
|
|
2038
2010
|
};
|
|
2039
2011
|
let response;
|
|
2040
|
-
|
|
2041
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2012
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
2013
|
switch (errorCode) {
|
|
2043
2014
|
default:
|
|
2044
2015
|
const parsedBody = parsedOutput.body;
|
|
2016
|
+
const $metadata = deserializeMetadata(output);
|
|
2017
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2045
2018
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2019
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2047
2020
|
$fault: "client",
|
|
2048
|
-
$metadata
|
|
2021
|
+
$metadata,
|
|
2049
2022
|
});
|
|
2050
2023
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2051
2024
|
}
|
|
@@ -2067,15 +2040,16 @@ const deserializeAws_restJson1DeleteVodSourceCommandError = async (output, conte
|
|
|
2067
2040
|
body: await parseBody(output.body, context),
|
|
2068
2041
|
};
|
|
2069
2042
|
let response;
|
|
2070
|
-
|
|
2071
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
2044
|
switch (errorCode) {
|
|
2073
2045
|
default:
|
|
2074
2046
|
const parsedBody = parsedOutput.body;
|
|
2047
|
+
const $metadata = deserializeMetadata(output);
|
|
2048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2075
2049
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2077
2051
|
$fault: "client",
|
|
2078
|
-
$metadata
|
|
2052
|
+
$metadata,
|
|
2079
2053
|
});
|
|
2080
2054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2081
2055
|
}
|
|
@@ -2137,15 +2111,16 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
2137
2111
|
body: await parseBody(output.body, context),
|
|
2138
2112
|
};
|
|
2139
2113
|
let response;
|
|
2140
|
-
|
|
2141
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2142
2115
|
switch (errorCode) {
|
|
2143
2116
|
default:
|
|
2144
2117
|
const parsedBody = parsedOutput.body;
|
|
2118
|
+
const $metadata = deserializeMetadata(output);
|
|
2119
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2145
2120
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2121
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2147
2122
|
$fault: "client",
|
|
2148
|
-
$metadata
|
|
2123
|
+
$metadata,
|
|
2149
2124
|
});
|
|
2150
2125
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2151
2126
|
}
|
|
@@ -2195,15 +2170,16 @@ const deserializeAws_restJson1DescribeLiveSourceCommandError = async (output, co
|
|
|
2195
2170
|
body: await parseBody(output.body, context),
|
|
2196
2171
|
};
|
|
2197
2172
|
let response;
|
|
2198
|
-
|
|
2199
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
2174
|
switch (errorCode) {
|
|
2201
2175
|
default:
|
|
2202
2176
|
const parsedBody = parsedOutput.body;
|
|
2177
|
+
const $metadata = deserializeMetadata(output);
|
|
2178
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2203
2179
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2204
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2180
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2205
2181
|
$fault: "client",
|
|
2206
|
-
$metadata
|
|
2182
|
+
$metadata,
|
|
2207
2183
|
});
|
|
2208
2184
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2209
2185
|
}
|
|
@@ -2261,15 +2237,16 @@ const deserializeAws_restJson1DescribeProgramCommandError = async (output, conte
|
|
|
2261
2237
|
body: await parseBody(output.body, context),
|
|
2262
2238
|
};
|
|
2263
2239
|
let response;
|
|
2264
|
-
|
|
2265
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
2241
|
switch (errorCode) {
|
|
2267
2242
|
default:
|
|
2268
2243
|
const parsedBody = parsedOutput.body;
|
|
2244
|
+
const $metadata = deserializeMetadata(output);
|
|
2245
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2269
2246
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2270
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2247
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2271
2248
|
$fault: "client",
|
|
2272
|
-
$metadata
|
|
2249
|
+
$metadata,
|
|
2273
2250
|
});
|
|
2274
2251
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2275
2252
|
}
|
|
@@ -2327,15 +2304,16 @@ const deserializeAws_restJson1DescribeSourceLocationCommandError = async (output
|
|
|
2327
2304
|
body: await parseBody(output.body, context),
|
|
2328
2305
|
};
|
|
2329
2306
|
let response;
|
|
2330
|
-
|
|
2331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
2308
|
switch (errorCode) {
|
|
2333
2309
|
default:
|
|
2334
2310
|
const parsedBody = parsedOutput.body;
|
|
2311
|
+
const $metadata = deserializeMetadata(output);
|
|
2312
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2335
2313
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2336
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2314
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2337
2315
|
$fault: "client",
|
|
2338
|
-
$metadata
|
|
2316
|
+
$metadata,
|
|
2339
2317
|
});
|
|
2340
2318
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2341
2319
|
}
|
|
@@ -2385,15 +2363,16 @@ const deserializeAws_restJson1DescribeVodSourceCommandError = async (output, con
|
|
|
2385
2363
|
body: await parseBody(output.body, context),
|
|
2386
2364
|
};
|
|
2387
2365
|
let response;
|
|
2388
|
-
|
|
2389
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
2367
|
switch (errorCode) {
|
|
2391
2368
|
default:
|
|
2392
2369
|
const parsedBody = parsedOutput.body;
|
|
2370
|
+
const $metadata = deserializeMetadata(output);
|
|
2371
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2393
2372
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2394
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2373
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2395
2374
|
$fault: "client",
|
|
2396
|
-
$metadata
|
|
2375
|
+
$metadata,
|
|
2397
2376
|
});
|
|
2398
2377
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2399
2378
|
}
|
|
@@ -2419,15 +2398,16 @@ const deserializeAws_restJson1GetChannelPolicyCommandError = async (output, cont
|
|
|
2419
2398
|
body: await parseBody(output.body, context),
|
|
2420
2399
|
};
|
|
2421
2400
|
let response;
|
|
2422
|
-
|
|
2423
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2402
|
switch (errorCode) {
|
|
2425
2403
|
default:
|
|
2426
2404
|
const parsedBody = parsedOutput.body;
|
|
2405
|
+
const $metadata = deserializeMetadata(output);
|
|
2406
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2427
2407
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2428
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2408
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2429
2409
|
$fault: "client",
|
|
2430
|
-
$metadata
|
|
2410
|
+
$metadata,
|
|
2431
2411
|
});
|
|
2432
2412
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2433
2413
|
}
|
|
@@ -2457,15 +2437,16 @@ const deserializeAws_restJson1GetChannelScheduleCommandError = async (output, co
|
|
|
2457
2437
|
body: await parseBody(output.body, context),
|
|
2458
2438
|
};
|
|
2459
2439
|
let response;
|
|
2460
|
-
|
|
2461
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2462
2441
|
switch (errorCode) {
|
|
2463
2442
|
default:
|
|
2464
2443
|
const parsedBody = parsedOutput.body;
|
|
2444
|
+
const $metadata = deserializeMetadata(output);
|
|
2445
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2465
2446
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2447
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2467
2448
|
$fault: "client",
|
|
2468
|
-
$metadata
|
|
2449
|
+
$metadata,
|
|
2469
2450
|
});
|
|
2470
2451
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2471
2452
|
}
|
|
@@ -2563,15 +2544,16 @@ const deserializeAws_restJson1GetPlaybackConfigurationCommandError = async (outp
|
|
|
2563
2544
|
body: await parseBody(output.body, context),
|
|
2564
2545
|
};
|
|
2565
2546
|
let response;
|
|
2566
|
-
|
|
2567
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
2548
|
switch (errorCode) {
|
|
2569
2549
|
default:
|
|
2570
2550
|
const parsedBody = parsedOutput.body;
|
|
2551
|
+
const $metadata = deserializeMetadata(output);
|
|
2552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2571
2553
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2572
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2573
2555
|
$fault: "client",
|
|
2574
|
-
$metadata
|
|
2556
|
+
$metadata,
|
|
2575
2557
|
});
|
|
2576
2558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2577
2559
|
}
|
|
@@ -2617,15 +2599,16 @@ const deserializeAws_restJson1GetPrefetchScheduleCommandError = async (output, c
|
|
|
2617
2599
|
body: await parseBody(output.body, context),
|
|
2618
2600
|
};
|
|
2619
2601
|
let response;
|
|
2620
|
-
|
|
2621
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2622
2603
|
switch (errorCode) {
|
|
2623
2604
|
default:
|
|
2624
2605
|
const parsedBody = parsedOutput.body;
|
|
2606
|
+
const $metadata = deserializeMetadata(output);
|
|
2607
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2625
2608
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2626
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2627
2610
|
$fault: "client",
|
|
2628
|
-
$metadata
|
|
2611
|
+
$metadata,
|
|
2629
2612
|
});
|
|
2630
2613
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2631
2614
|
}
|
|
@@ -2655,15 +2638,16 @@ const deserializeAws_restJson1ListAlertsCommandError = async (output, context) =
|
|
|
2655
2638
|
body: await parseBody(output.body, context),
|
|
2656
2639
|
};
|
|
2657
2640
|
let response;
|
|
2658
|
-
|
|
2659
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2660
2642
|
switch (errorCode) {
|
|
2661
2643
|
default:
|
|
2662
2644
|
const parsedBody = parsedOutput.body;
|
|
2645
|
+
const $metadata = deserializeMetadata(output);
|
|
2646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2663
2647
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2664
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2665
2649
|
$fault: "client",
|
|
2666
|
-
$metadata
|
|
2650
|
+
$metadata,
|
|
2667
2651
|
});
|
|
2668
2652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2669
2653
|
}
|
|
@@ -2693,15 +2677,16 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
2693
2677
|
body: await parseBody(output.body, context),
|
|
2694
2678
|
};
|
|
2695
2679
|
let response;
|
|
2696
|
-
|
|
2697
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2698
2681
|
switch (errorCode) {
|
|
2699
2682
|
default:
|
|
2700
2683
|
const parsedBody = parsedOutput.body;
|
|
2684
|
+
const $metadata = deserializeMetadata(output);
|
|
2685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2701
2686
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2702
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2703
2688
|
$fault: "client",
|
|
2704
|
-
$metadata
|
|
2689
|
+
$metadata,
|
|
2705
2690
|
});
|
|
2706
2691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2707
2692
|
}
|
|
@@ -2731,15 +2716,16 @@ const deserializeAws_restJson1ListLiveSourcesCommandError = async (output, conte
|
|
|
2731
2716
|
body: await parseBody(output.body, context),
|
|
2732
2717
|
};
|
|
2733
2718
|
let response;
|
|
2734
|
-
|
|
2735
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2736
2720
|
switch (errorCode) {
|
|
2737
2721
|
default:
|
|
2738
2722
|
const parsedBody = parsedOutput.body;
|
|
2723
|
+
const $metadata = deserializeMetadata(output);
|
|
2724
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2739
2725
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2740
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2741
2727
|
$fault: "client",
|
|
2742
|
-
$metadata
|
|
2728
|
+
$metadata,
|
|
2743
2729
|
});
|
|
2744
2730
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2745
2731
|
}
|
|
@@ -2769,15 +2755,16 @@ const deserializeAws_restJson1ListPlaybackConfigurationsCommandError = async (ou
|
|
|
2769
2755
|
body: await parseBody(output.body, context),
|
|
2770
2756
|
};
|
|
2771
2757
|
let response;
|
|
2772
|
-
|
|
2773
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2774
2759
|
switch (errorCode) {
|
|
2775
2760
|
default:
|
|
2776
2761
|
const parsedBody = parsedOutput.body;
|
|
2762
|
+
const $metadata = deserializeMetadata(output);
|
|
2763
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2777
2764
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2765
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2779
2766
|
$fault: "client",
|
|
2780
|
-
$metadata
|
|
2767
|
+
$metadata,
|
|
2781
2768
|
});
|
|
2782
2769
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2783
2770
|
}
|
|
@@ -2807,15 +2794,16 @@ const deserializeAws_restJson1ListPrefetchSchedulesCommandError = async (output,
|
|
|
2807
2794
|
body: await parseBody(output.body, context),
|
|
2808
2795
|
};
|
|
2809
2796
|
let response;
|
|
2810
|
-
|
|
2811
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2812
2798
|
switch (errorCode) {
|
|
2813
2799
|
default:
|
|
2814
2800
|
const parsedBody = parsedOutput.body;
|
|
2801
|
+
const $metadata = deserializeMetadata(output);
|
|
2802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2815
2803
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2817
2805
|
$fault: "client",
|
|
2818
|
-
$metadata
|
|
2806
|
+
$metadata,
|
|
2819
2807
|
});
|
|
2820
2808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2821
2809
|
}
|
|
@@ -2845,15 +2833,16 @@ const deserializeAws_restJson1ListSourceLocationsCommandError = async (output, c
|
|
|
2845
2833
|
body: await parseBody(output.body, context),
|
|
2846
2834
|
};
|
|
2847
2835
|
let response;
|
|
2848
|
-
|
|
2849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2850
2837
|
switch (errorCode) {
|
|
2851
2838
|
default:
|
|
2852
2839
|
const parsedBody = parsedOutput.body;
|
|
2840
|
+
const $metadata = deserializeMetadata(output);
|
|
2841
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2853
2842
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2854
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2843
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2855
2844
|
$fault: "client",
|
|
2856
|
-
$metadata
|
|
2845
|
+
$metadata,
|
|
2857
2846
|
});
|
|
2858
2847
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2859
2848
|
}
|
|
@@ -2879,18 +2868,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2879
2868
|
body: await parseBody(output.body, context),
|
|
2880
2869
|
};
|
|
2881
2870
|
let response;
|
|
2882
|
-
|
|
2883
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2871
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2884
2872
|
switch (errorCode) {
|
|
2885
2873
|
case "BadRequestException":
|
|
2886
2874
|
case "com.amazonaws.mediatailor#BadRequestException":
|
|
2887
2875
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2888
2876
|
default:
|
|
2889
2877
|
const parsedBody = parsedOutput.body;
|
|
2878
|
+
const $metadata = deserializeMetadata(output);
|
|
2879
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2890
2880
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2892
2882
|
$fault: "client",
|
|
2893
|
-
$metadata
|
|
2883
|
+
$metadata,
|
|
2894
2884
|
});
|
|
2895
2885
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2896
2886
|
}
|
|
@@ -2920,15 +2910,16 @@ const deserializeAws_restJson1ListVodSourcesCommandError = async (output, contex
|
|
|
2920
2910
|
body: await parseBody(output.body, context),
|
|
2921
2911
|
};
|
|
2922
2912
|
let response;
|
|
2923
|
-
|
|
2924
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
2914
|
switch (errorCode) {
|
|
2926
2915
|
default:
|
|
2927
2916
|
const parsedBody = parsedOutput.body;
|
|
2917
|
+
const $metadata = deserializeMetadata(output);
|
|
2918
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2928
2919
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2929
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2920
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2930
2921
|
$fault: "client",
|
|
2931
|
-
$metadata
|
|
2922
|
+
$metadata,
|
|
2932
2923
|
});
|
|
2933
2924
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2934
2925
|
}
|
|
@@ -2950,15 +2941,16 @@ const deserializeAws_restJson1PutChannelPolicyCommandError = async (output, cont
|
|
|
2950
2941
|
body: await parseBody(output.body, context),
|
|
2951
2942
|
};
|
|
2952
2943
|
let response;
|
|
2953
|
-
|
|
2954
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2955
2945
|
switch (errorCode) {
|
|
2956
2946
|
default:
|
|
2957
2947
|
const parsedBody = parsedOutput.body;
|
|
2948
|
+
const $metadata = deserializeMetadata(output);
|
|
2949
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2958
2950
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
2959
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2951
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2960
2952
|
$fault: "client",
|
|
2961
|
-
$metadata
|
|
2953
|
+
$metadata,
|
|
2962
2954
|
});
|
|
2963
2955
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2964
2956
|
}
|
|
@@ -3056,15 +3048,16 @@ const deserializeAws_restJson1PutPlaybackConfigurationCommandError = async (outp
|
|
|
3056
3048
|
body: await parseBody(output.body, context),
|
|
3057
3049
|
};
|
|
3058
3050
|
let response;
|
|
3059
|
-
|
|
3060
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3051
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3061
3052
|
switch (errorCode) {
|
|
3062
3053
|
default:
|
|
3063
3054
|
const parsedBody = parsedOutput.body;
|
|
3055
|
+
const $metadata = deserializeMetadata(output);
|
|
3056
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3064
3057
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3065
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3058
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3066
3059
|
$fault: "client",
|
|
3067
|
-
$metadata
|
|
3060
|
+
$metadata,
|
|
3068
3061
|
});
|
|
3069
3062
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3070
3063
|
}
|
|
@@ -3086,15 +3079,16 @@ const deserializeAws_restJson1StartChannelCommandError = async (output, context)
|
|
|
3086
3079
|
body: await parseBody(output.body, context),
|
|
3087
3080
|
};
|
|
3088
3081
|
let response;
|
|
3089
|
-
|
|
3090
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3082
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3091
3083
|
switch (errorCode) {
|
|
3092
3084
|
default:
|
|
3093
3085
|
const parsedBody = parsedOutput.body;
|
|
3086
|
+
const $metadata = deserializeMetadata(output);
|
|
3087
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3094
3088
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3095
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3089
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3096
3090
|
$fault: "client",
|
|
3097
|
-
$metadata
|
|
3091
|
+
$metadata,
|
|
3098
3092
|
});
|
|
3099
3093
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3100
3094
|
}
|
|
@@ -3116,15 +3110,16 @@ const deserializeAws_restJson1StopChannelCommandError = async (output, context)
|
|
|
3116
3110
|
body: await parseBody(output.body, context),
|
|
3117
3111
|
};
|
|
3118
3112
|
let response;
|
|
3119
|
-
|
|
3120
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3121
3114
|
switch (errorCode) {
|
|
3122
3115
|
default:
|
|
3123
3116
|
const parsedBody = parsedOutput.body;
|
|
3117
|
+
const $metadata = deserializeMetadata(output);
|
|
3118
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3124
3119
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3125
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3120
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3126
3121
|
$fault: "client",
|
|
3127
|
-
$metadata
|
|
3122
|
+
$metadata,
|
|
3128
3123
|
});
|
|
3129
3124
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3130
3125
|
}
|
|
@@ -3146,18 +3141,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3146
3141
|
body: await parseBody(output.body, context),
|
|
3147
3142
|
};
|
|
3148
3143
|
let response;
|
|
3149
|
-
|
|
3150
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3144
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3151
3145
|
switch (errorCode) {
|
|
3152
3146
|
case "BadRequestException":
|
|
3153
3147
|
case "com.amazonaws.mediatailor#BadRequestException":
|
|
3154
3148
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3155
3149
|
default:
|
|
3156
3150
|
const parsedBody = parsedOutput.body;
|
|
3151
|
+
const $metadata = deserializeMetadata(output);
|
|
3152
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3157
3153
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3158
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3154
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3159
3155
|
$fault: "client",
|
|
3160
|
-
$metadata
|
|
3156
|
+
$metadata,
|
|
3161
3157
|
});
|
|
3162
3158
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3163
3159
|
}
|
|
@@ -3179,18 +3175,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3179
3175
|
body: await parseBody(output.body, context),
|
|
3180
3176
|
};
|
|
3181
3177
|
let response;
|
|
3182
|
-
|
|
3183
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3184
3179
|
switch (errorCode) {
|
|
3185
3180
|
case "BadRequestException":
|
|
3186
3181
|
case "com.amazonaws.mediatailor#BadRequestException":
|
|
3187
3182
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3188
3183
|
default:
|
|
3189
3184
|
const parsedBody = parsedOutput.body;
|
|
3185
|
+
const $metadata = deserializeMetadata(output);
|
|
3186
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3190
3187
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3191
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3192
3189
|
$fault: "client",
|
|
3193
|
-
$metadata
|
|
3190
|
+
$metadata,
|
|
3194
3191
|
});
|
|
3195
3192
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3196
3193
|
}
|
|
@@ -3252,15 +3249,16 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
3252
3249
|
body: await parseBody(output.body, context),
|
|
3253
3250
|
};
|
|
3254
3251
|
let response;
|
|
3255
|
-
|
|
3256
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3252
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3257
3253
|
switch (errorCode) {
|
|
3258
3254
|
default:
|
|
3259
3255
|
const parsedBody = parsedOutput.body;
|
|
3256
|
+
const $metadata = deserializeMetadata(output);
|
|
3257
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3260
3258
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3261
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3259
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3262
3260
|
$fault: "client",
|
|
3263
|
-
$metadata
|
|
3261
|
+
$metadata,
|
|
3264
3262
|
});
|
|
3265
3263
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3266
3264
|
}
|
|
@@ -3310,15 +3308,16 @@ const deserializeAws_restJson1UpdateLiveSourceCommandError = async (output, cont
|
|
|
3310
3308
|
body: await parseBody(output.body, context),
|
|
3311
3309
|
};
|
|
3312
3310
|
let response;
|
|
3313
|
-
|
|
3314
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3315
3312
|
switch (errorCode) {
|
|
3316
3313
|
default:
|
|
3317
3314
|
const parsedBody = parsedOutput.body;
|
|
3315
|
+
const $metadata = deserializeMetadata(output);
|
|
3316
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3318
3317
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3319
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3318
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3320
3319
|
$fault: "client",
|
|
3321
|
-
$metadata
|
|
3320
|
+
$metadata,
|
|
3322
3321
|
});
|
|
3323
3322
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3324
3323
|
}
|
|
@@ -3376,15 +3375,16 @@ const deserializeAws_restJson1UpdateSourceLocationCommandError = async (output,
|
|
|
3376
3375
|
body: await parseBody(output.body, context),
|
|
3377
3376
|
};
|
|
3378
3377
|
let response;
|
|
3379
|
-
|
|
3380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3381
3379
|
switch (errorCode) {
|
|
3382
3380
|
default:
|
|
3383
3381
|
const parsedBody = parsedOutput.body;
|
|
3382
|
+
const $metadata = deserializeMetadata(output);
|
|
3383
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3384
3384
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3385
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3385
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3386
3386
|
$fault: "client",
|
|
3387
|
-
$metadata
|
|
3387
|
+
$metadata,
|
|
3388
3388
|
});
|
|
3389
3389
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3390
3390
|
}
|
|
@@ -3434,15 +3434,16 @@ const deserializeAws_restJson1UpdateVodSourceCommandError = async (output, conte
|
|
|
3434
3434
|
body: await parseBody(output.body, context),
|
|
3435
3435
|
};
|
|
3436
3436
|
let response;
|
|
3437
|
-
|
|
3438
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
3438
|
switch (errorCode) {
|
|
3440
3439
|
default:
|
|
3441
3440
|
const parsedBody = parsedOutput.body;
|
|
3441
|
+
const $metadata = deserializeMetadata(output);
|
|
3442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3442
3443
|
response = new MediaTailorServiceException_1.MediaTailorServiceException({
|
|
3443
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3444
3445
|
$fault: "client",
|
|
3445
|
-
$metadata
|
|
3446
|
+
$metadata,
|
|
3446
3447
|
});
|
|
3447
3448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3448
3449
|
}
|
|
@@ -3502,55 +3503,49 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
|
3502
3503
|
};
|
|
3503
3504
|
const serializeAws_restJson1AccessConfiguration = (input, context) => {
|
|
3504
3505
|
return {
|
|
3505
|
-
...(input.AccessType
|
|
3506
|
-
...(input.SecretsManagerAccessTokenConfiguration
|
|
3507
|
-
input.SecretsManagerAccessTokenConfiguration !== null && {
|
|
3506
|
+
...(input.AccessType != null && { AccessType: input.AccessType }),
|
|
3507
|
+
...(input.SecretsManagerAccessTokenConfiguration != null && {
|
|
3508
3508
|
SecretsManagerAccessTokenConfiguration: serializeAws_restJson1SecretsManagerAccessTokenConfiguration(input.SecretsManagerAccessTokenConfiguration, context),
|
|
3509
3509
|
}),
|
|
3510
3510
|
};
|
|
3511
3511
|
};
|
|
3512
3512
|
const serializeAws_restJson1AdBreak = (input, context) => {
|
|
3513
3513
|
return {
|
|
3514
|
-
...(input.MessageType
|
|
3515
|
-
...(input.OffsetMillis
|
|
3516
|
-
...(input.Slate
|
|
3517
|
-
|
|
3518
|
-
...(input.SpliceInsertMessage !== undefined &&
|
|
3519
|
-
input.SpliceInsertMessage !== null && {
|
|
3514
|
+
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
3515
|
+
...(input.OffsetMillis != null && { OffsetMillis: input.OffsetMillis }),
|
|
3516
|
+
...(input.Slate != null && { Slate: serializeAws_restJson1SlateSource(input.Slate, context) }),
|
|
3517
|
+
...(input.SpliceInsertMessage != null && {
|
|
3520
3518
|
SpliceInsertMessage: serializeAws_restJson1SpliceInsertMessage(input.SpliceInsertMessage, context),
|
|
3521
3519
|
}),
|
|
3522
3520
|
};
|
|
3523
3521
|
};
|
|
3524
3522
|
const serializeAws_restJson1AdMarkerPassthrough = (input, context) => {
|
|
3525
3523
|
return {
|
|
3526
|
-
...(input.Enabled
|
|
3524
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3527
3525
|
};
|
|
3528
3526
|
};
|
|
3529
3527
|
const serializeAws_restJson1AvailMatchingCriteria = (input, context) => {
|
|
3530
3528
|
return {
|
|
3531
|
-
...(input.DynamicVariable
|
|
3532
|
-
|
|
3533
|
-
...(input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }),
|
|
3529
|
+
...(input.DynamicVariable != null && { DynamicVariable: input.DynamicVariable }),
|
|
3530
|
+
...(input.Operator != null && { Operator: input.Operator }),
|
|
3534
3531
|
};
|
|
3535
3532
|
};
|
|
3536
3533
|
const serializeAws_restJson1AvailSuppression = (input, context) => {
|
|
3537
3534
|
return {
|
|
3538
|
-
...(input.Mode
|
|
3539
|
-
...(input.Value
|
|
3535
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
3536
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3540
3537
|
};
|
|
3541
3538
|
};
|
|
3542
3539
|
const serializeAws_restJson1Bumper = (input, context) => {
|
|
3543
3540
|
return {
|
|
3544
|
-
...(input.EndUrl
|
|
3545
|
-
...(input.StartUrl
|
|
3541
|
+
...(input.EndUrl != null && { EndUrl: input.EndUrl }),
|
|
3542
|
+
...(input.StartUrl != null && { StartUrl: input.StartUrl }),
|
|
3546
3543
|
};
|
|
3547
3544
|
};
|
|
3548
3545
|
const serializeAws_restJson1CdnConfiguration = (input, context) => {
|
|
3549
3546
|
return {
|
|
3550
|
-
...(input.AdSegmentUrlPrefix
|
|
3551
|
-
|
|
3552
|
-
...(input.ContentSegmentUrlPrefix !== undefined &&
|
|
3553
|
-
input.ContentSegmentUrlPrefix !== null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }),
|
|
3547
|
+
...(input.AdSegmentUrlPrefix != null && { AdSegmentUrlPrefix: input.AdSegmentUrlPrefix }),
|
|
3548
|
+
...(input.ContentSegmentUrlPrefix != null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }),
|
|
3554
3549
|
};
|
|
3555
3550
|
};
|
|
3556
3551
|
const serializeAws_restJson1ConfigurationAliasesRequest = (input, context) => {
|
|
@@ -3566,46 +3561,40 @@ const serializeAws_restJson1ConfigurationAliasesRequest = (input, context) => {
|
|
|
3566
3561
|
};
|
|
3567
3562
|
const serializeAws_restJson1DashConfigurationForPut = (input, context) => {
|
|
3568
3563
|
return {
|
|
3569
|
-
...(input.MpdLocation
|
|
3570
|
-
...(input.OriginManifestType
|
|
3571
|
-
input.OriginManifestType !== null && { OriginManifestType: input.OriginManifestType }),
|
|
3564
|
+
...(input.MpdLocation != null && { MpdLocation: input.MpdLocation }),
|
|
3565
|
+
...(input.OriginManifestType != null && { OriginManifestType: input.OriginManifestType }),
|
|
3572
3566
|
};
|
|
3573
3567
|
};
|
|
3574
3568
|
const serializeAws_restJson1DashPlaylistSettings = (input, context) => {
|
|
3575
3569
|
return {
|
|
3576
|
-
...(input.ManifestWindowSeconds
|
|
3577
|
-
|
|
3578
|
-
...(input.
|
|
3579
|
-
|
|
3580
|
-
...(input.MinUpdatePeriodSeconds !== undefined &&
|
|
3581
|
-
input.MinUpdatePeriodSeconds !== null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
|
|
3582
|
-
...(input.SuggestedPresentationDelaySeconds !== undefined &&
|
|
3583
|
-
input.SuggestedPresentationDelaySeconds !== null && {
|
|
3570
|
+
...(input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
3571
|
+
...(input.MinBufferTimeSeconds != null && { MinBufferTimeSeconds: input.MinBufferTimeSeconds }),
|
|
3572
|
+
...(input.MinUpdatePeriodSeconds != null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
|
|
3573
|
+
...(input.SuggestedPresentationDelaySeconds != null && {
|
|
3584
3574
|
SuggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
|
|
3585
3575
|
}),
|
|
3586
3576
|
};
|
|
3587
3577
|
};
|
|
3588
3578
|
const serializeAws_restJson1DefaultSegmentDeliveryConfiguration = (input, context) => {
|
|
3589
3579
|
return {
|
|
3590
|
-
...(input.BaseUrl
|
|
3580
|
+
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
3591
3581
|
};
|
|
3592
3582
|
};
|
|
3593
3583
|
const serializeAws_restJson1HlsPlaylistSettings = (input, context) => {
|
|
3594
3584
|
return {
|
|
3595
|
-
...(input.ManifestWindowSeconds
|
|
3596
|
-
input.ManifestWindowSeconds !== null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
3585
|
+
...(input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
3597
3586
|
};
|
|
3598
3587
|
};
|
|
3599
3588
|
const serializeAws_restJson1HttpConfiguration = (input, context) => {
|
|
3600
3589
|
return {
|
|
3601
|
-
...(input.BaseUrl
|
|
3590
|
+
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
3602
3591
|
};
|
|
3603
3592
|
};
|
|
3604
3593
|
const serializeAws_restJson1HttpPackageConfiguration = (input, context) => {
|
|
3605
3594
|
return {
|
|
3606
|
-
...(input.Path
|
|
3607
|
-
...(input.SourceGroup
|
|
3608
|
-
...(input.Type
|
|
3595
|
+
...(input.Path != null && { Path: input.Path }),
|
|
3596
|
+
...(input.SourceGroup != null && { SourceGroup: input.SourceGroup }),
|
|
3597
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3609
3598
|
};
|
|
3610
3599
|
};
|
|
3611
3600
|
const serializeAws_restJson1HttpPackageConfigurations = (input, context) => {
|
|
@@ -3620,56 +3609,45 @@ const serializeAws_restJson1HttpPackageConfigurations = (input, context) => {
|
|
|
3620
3609
|
};
|
|
3621
3610
|
const serializeAws_restJson1LivePreRollConfiguration = (input, context) => {
|
|
3622
3611
|
return {
|
|
3623
|
-
...(input.AdDecisionServerUrl
|
|
3624
|
-
|
|
3625
|
-
...(input.MaxDurationSeconds !== undefined &&
|
|
3626
|
-
input.MaxDurationSeconds !== null && { MaxDurationSeconds: input.MaxDurationSeconds }),
|
|
3612
|
+
...(input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl }),
|
|
3613
|
+
...(input.MaxDurationSeconds != null && { MaxDurationSeconds: input.MaxDurationSeconds }),
|
|
3627
3614
|
};
|
|
3628
3615
|
};
|
|
3629
3616
|
const serializeAws_restJson1ManifestProcessingRules = (input, context) => {
|
|
3630
3617
|
return {
|
|
3631
|
-
...(input.AdMarkerPassthrough
|
|
3632
|
-
input.AdMarkerPassthrough !== null && {
|
|
3618
|
+
...(input.AdMarkerPassthrough != null && {
|
|
3633
3619
|
AdMarkerPassthrough: serializeAws_restJson1AdMarkerPassthrough(input.AdMarkerPassthrough, context),
|
|
3634
3620
|
}),
|
|
3635
3621
|
};
|
|
3636
3622
|
};
|
|
3637
3623
|
const serializeAws_restJson1PrefetchConsumption = (input, context) => {
|
|
3638
3624
|
return {
|
|
3639
|
-
...(input.AvailMatchingCriteria
|
|
3640
|
-
input.AvailMatchingCriteria !== null && {
|
|
3625
|
+
...(input.AvailMatchingCriteria != null && {
|
|
3641
3626
|
AvailMatchingCriteria: serializeAws_restJson1__listOfAvailMatchingCriteria(input.AvailMatchingCriteria, context),
|
|
3642
3627
|
}),
|
|
3643
|
-
...(input.EndTime
|
|
3644
|
-
|
|
3645
|
-
...(input.StartTime !== undefined &&
|
|
3646
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3628
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
3629
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3647
3630
|
};
|
|
3648
3631
|
};
|
|
3649
3632
|
const serializeAws_restJson1PrefetchRetrieval = (input, context) => {
|
|
3650
3633
|
return {
|
|
3651
|
-
...(input.DynamicVariables
|
|
3652
|
-
input.DynamicVariables !== null && {
|
|
3634
|
+
...(input.DynamicVariables != null && {
|
|
3653
3635
|
DynamicVariables: serializeAws_restJson1__mapOf__string(input.DynamicVariables, context),
|
|
3654
3636
|
}),
|
|
3655
|
-
...(input.EndTime
|
|
3656
|
-
|
|
3657
|
-
...(input.StartTime !== undefined &&
|
|
3658
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3637
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
3638
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3659
3639
|
};
|
|
3660
3640
|
};
|
|
3661
3641
|
const serializeAws_restJson1RequestOutputItem = (input, context) => {
|
|
3662
3642
|
return {
|
|
3663
|
-
...(input.DashPlaylistSettings
|
|
3664
|
-
input.DashPlaylistSettings !== null && {
|
|
3643
|
+
...(input.DashPlaylistSettings != null && {
|
|
3665
3644
|
DashPlaylistSettings: serializeAws_restJson1DashPlaylistSettings(input.DashPlaylistSettings, context),
|
|
3666
3645
|
}),
|
|
3667
|
-
...(input.HlsPlaylistSettings
|
|
3668
|
-
input.HlsPlaylistSettings !== null && {
|
|
3646
|
+
...(input.HlsPlaylistSettings != null && {
|
|
3669
3647
|
HlsPlaylistSettings: serializeAws_restJson1HlsPlaylistSettings(input.HlsPlaylistSettings, context),
|
|
3670
3648
|
}),
|
|
3671
|
-
...(input.ManifestName
|
|
3672
|
-
...(input.SourceGroup
|
|
3649
|
+
...(input.ManifestName != null && { ManifestName: input.ManifestName }),
|
|
3650
|
+
...(input.SourceGroup != null && { SourceGroup: input.SourceGroup }),
|
|
3673
3651
|
};
|
|
3674
3652
|
};
|
|
3675
3653
|
const serializeAws_restJson1RequestOutputs = (input, context) => {
|
|
@@ -3684,52 +3662,43 @@ const serializeAws_restJson1RequestOutputs = (input, context) => {
|
|
|
3684
3662
|
};
|
|
3685
3663
|
const serializeAws_restJson1ScheduleConfiguration = (input, context) => {
|
|
3686
3664
|
return {
|
|
3687
|
-
...(input.Transition
|
|
3688
|
-
input.Transition !== null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }),
|
|
3665
|
+
...(input.Transition != null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }),
|
|
3689
3666
|
};
|
|
3690
3667
|
};
|
|
3691
3668
|
const serializeAws_restJson1SecretsManagerAccessTokenConfiguration = (input, context) => {
|
|
3692
3669
|
return {
|
|
3693
|
-
...(input.HeaderName
|
|
3694
|
-
...(input.SecretArn
|
|
3695
|
-
...(input.SecretStringKey
|
|
3696
|
-
input.SecretStringKey !== null && { SecretStringKey: input.SecretStringKey }),
|
|
3670
|
+
...(input.HeaderName != null && { HeaderName: input.HeaderName }),
|
|
3671
|
+
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
3672
|
+
...(input.SecretStringKey != null && { SecretStringKey: input.SecretStringKey }),
|
|
3697
3673
|
};
|
|
3698
3674
|
};
|
|
3699
3675
|
const serializeAws_restJson1SegmentDeliveryConfiguration = (input, context) => {
|
|
3700
3676
|
return {
|
|
3701
|
-
...(input.BaseUrl
|
|
3702
|
-
...(input.Name
|
|
3677
|
+
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
3678
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3703
3679
|
};
|
|
3704
3680
|
};
|
|
3705
3681
|
const serializeAws_restJson1SlateSource = (input, context) => {
|
|
3706
3682
|
return {
|
|
3707
|
-
...(input.SourceLocationName
|
|
3708
|
-
|
|
3709
|
-
...(input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }),
|
|
3683
|
+
...(input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName }),
|
|
3684
|
+
...(input.VodSourceName != null && { VodSourceName: input.VodSourceName }),
|
|
3710
3685
|
};
|
|
3711
3686
|
};
|
|
3712
3687
|
const serializeAws_restJson1SpliceInsertMessage = (input, context) => {
|
|
3713
3688
|
return {
|
|
3714
|
-
...(input.AvailNum
|
|
3715
|
-
...(input.AvailsExpected
|
|
3716
|
-
|
|
3717
|
-
...(input.
|
|
3718
|
-
...(input.UniqueProgramId !== undefined &&
|
|
3719
|
-
input.UniqueProgramId !== null && { UniqueProgramId: input.UniqueProgramId }),
|
|
3689
|
+
...(input.AvailNum != null && { AvailNum: input.AvailNum }),
|
|
3690
|
+
...(input.AvailsExpected != null && { AvailsExpected: input.AvailsExpected }),
|
|
3691
|
+
...(input.SpliceEventId != null && { SpliceEventId: input.SpliceEventId }),
|
|
3692
|
+
...(input.UniqueProgramId != null && { UniqueProgramId: input.UniqueProgramId }),
|
|
3720
3693
|
};
|
|
3721
3694
|
};
|
|
3722
3695
|
const serializeAws_restJson1Transition = (input, context) => {
|
|
3723
3696
|
return {
|
|
3724
|
-
...(input.DurationMillis
|
|
3725
|
-
|
|
3726
|
-
...(input.
|
|
3727
|
-
|
|
3728
|
-
...(input.
|
|
3729
|
-
input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram }),
|
|
3730
|
-
...(input.ScheduledStartTimeMillis !== undefined &&
|
|
3731
|
-
input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
3732
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
3697
|
+
...(input.DurationMillis != null && { DurationMillis: input.DurationMillis }),
|
|
3698
|
+
...(input.RelativePosition != null && { RelativePosition: input.RelativePosition }),
|
|
3699
|
+
...(input.RelativeProgram != null && { RelativeProgram: input.RelativeProgram }),
|
|
3700
|
+
...(input.ScheduledStartTimeMillis != null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
3701
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3733
3702
|
};
|
|
3734
3703
|
};
|
|
3735
3704
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -3889,8 +3858,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
3889
3858
|
const deserializeAws_restJson1AccessConfiguration = (output, context) => {
|
|
3890
3859
|
return {
|
|
3891
3860
|
AccessType: (0, smithy_client_1.expectString)(output.AccessType),
|
|
3892
|
-
SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration
|
|
3893
|
-
output.SecretsManagerAccessTokenConfiguration !== null
|
|
3861
|
+
SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration != null
|
|
3894
3862
|
? deserializeAws_restJson1SecretsManagerAccessTokenConfiguration(output.SecretsManagerAccessTokenConfiguration, context)
|
|
3895
3863
|
: undefined,
|
|
3896
3864
|
};
|
|
@@ -3899,10 +3867,8 @@ const deserializeAws_restJson1AdBreak = (output, context) => {
|
|
|
3899
3867
|
return {
|
|
3900
3868
|
MessageType: (0, smithy_client_1.expectString)(output.MessageType),
|
|
3901
3869
|
OffsetMillis: (0, smithy_client_1.expectLong)(output.OffsetMillis),
|
|
3902
|
-
Slate: output.Slate
|
|
3903
|
-
|
|
3904
|
-
: undefined,
|
|
3905
|
-
SpliceInsertMessage: output.SpliceInsertMessage !== undefined && output.SpliceInsertMessage !== null
|
|
3870
|
+
Slate: output.Slate != null ? deserializeAws_restJson1SlateSource(output.Slate, context) : undefined,
|
|
3871
|
+
SpliceInsertMessage: output.SpliceInsertMessage != null
|
|
3906
3872
|
? deserializeAws_restJson1SpliceInsertMessage(output.SpliceInsertMessage, context)
|
|
3907
3873
|
: undefined,
|
|
3908
3874
|
};
|
|
@@ -3916,10 +3882,10 @@ const deserializeAws_restJson1Alert = (output, context) => {
|
|
|
3916
3882
|
return {
|
|
3917
3883
|
AlertCode: (0, smithy_client_1.expectString)(output.AlertCode),
|
|
3918
3884
|
AlertMessage: (0, smithy_client_1.expectString)(output.AlertMessage),
|
|
3919
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3885
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3920
3886
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3921
3887
|
: undefined,
|
|
3922
|
-
RelatedResourceArns: output.RelatedResourceArns
|
|
3888
|
+
RelatedResourceArns: output.RelatedResourceArns != null
|
|
3923
3889
|
? deserializeAws_restJson1__listOf__string(output.RelatedResourceArns, context)
|
|
3924
3890
|
: undefined,
|
|
3925
3891
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
@@ -3954,22 +3920,16 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
3954
3920
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
3955
3921
|
ChannelName: (0, smithy_client_1.expectString)(output.ChannelName),
|
|
3956
3922
|
ChannelState: (0, smithy_client_1.expectString)(output.ChannelState),
|
|
3957
|
-
CreationTime: output.CreationTime
|
|
3923
|
+
CreationTime: output.CreationTime != null
|
|
3958
3924
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3959
3925
|
: undefined,
|
|
3960
|
-
FillerSlate: output.FillerSlate
|
|
3961
|
-
|
|
3962
|
-
: undefined,
|
|
3963
|
-
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3926
|
+
FillerSlate: output.FillerSlate != null ? deserializeAws_restJson1SlateSource(output.FillerSlate, context) : undefined,
|
|
3927
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3964
3928
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3965
3929
|
: undefined,
|
|
3966
|
-
Outputs: output.Outputs
|
|
3967
|
-
? deserializeAws_restJson1ResponseOutputs(output.Outputs, context)
|
|
3968
|
-
: undefined,
|
|
3930
|
+
Outputs: output.Outputs != null ? deserializeAws_restJson1ResponseOutputs(output.Outputs, context) : undefined,
|
|
3969
3931
|
PlaybackMode: (0, smithy_client_1.expectString)(output.PlaybackMode),
|
|
3970
|
-
Tags: output.tags
|
|
3971
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
3972
|
-
: undefined,
|
|
3932
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
3973
3933
|
Tier: (0, smithy_client_1.expectString)(output.Tier),
|
|
3974
3934
|
};
|
|
3975
3935
|
};
|
|
@@ -4046,20 +4006,18 @@ const deserializeAws_restJson1LivePreRollConfiguration = (output, context) => {
|
|
|
4046
4006
|
const deserializeAws_restJson1LiveSource = (output, context) => {
|
|
4047
4007
|
return {
|
|
4048
4008
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4049
|
-
CreationTime: output.CreationTime
|
|
4009
|
+
CreationTime: output.CreationTime != null
|
|
4050
4010
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4051
4011
|
: undefined,
|
|
4052
|
-
HttpPackageConfigurations: output.HttpPackageConfigurations
|
|
4012
|
+
HttpPackageConfigurations: output.HttpPackageConfigurations != null
|
|
4053
4013
|
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
4054
4014
|
: undefined,
|
|
4055
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4015
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4056
4016
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4057
4017
|
: undefined,
|
|
4058
4018
|
LiveSourceName: (0, smithy_client_1.expectString)(output.LiveSourceName),
|
|
4059
4019
|
SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
|
|
4060
|
-
Tags: output.tags
|
|
4061
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4062
|
-
: undefined,
|
|
4020
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4063
4021
|
};
|
|
4064
4022
|
};
|
|
4065
4023
|
const deserializeAws_restJson1LogConfiguration = (output, context) => {
|
|
@@ -4069,7 +4027,7 @@ const deserializeAws_restJson1LogConfiguration = (output, context) => {
|
|
|
4069
4027
|
};
|
|
4070
4028
|
const deserializeAws_restJson1ManifestProcessingRules = (output, context) => {
|
|
4071
4029
|
return {
|
|
4072
|
-
AdMarkerPassthrough: output.AdMarkerPassthrough
|
|
4030
|
+
AdMarkerPassthrough: output.AdMarkerPassthrough != null
|
|
4073
4031
|
? deserializeAws_restJson1AdMarkerPassthrough(output.AdMarkerPassthrough, context)
|
|
4074
4032
|
: undefined,
|
|
4075
4033
|
};
|
|
@@ -4077,31 +4035,29 @@ const deserializeAws_restJson1ManifestProcessingRules = (output, context) => {
|
|
|
4077
4035
|
const deserializeAws_restJson1PlaybackConfiguration = (output, context) => {
|
|
4078
4036
|
return {
|
|
4079
4037
|
AdDecisionServerUrl: (0, smithy_client_1.expectString)(output.AdDecisionServerUrl),
|
|
4080
|
-
AvailSuppression: output.AvailSuppression
|
|
4038
|
+
AvailSuppression: output.AvailSuppression != null
|
|
4081
4039
|
? deserializeAws_restJson1AvailSuppression(output.AvailSuppression, context)
|
|
4082
4040
|
: undefined,
|
|
4083
|
-
Bumper: output.Bumper
|
|
4084
|
-
|
|
4085
|
-
: undefined,
|
|
4086
|
-
CdnConfiguration: output.CdnConfiguration !== undefined && output.CdnConfiguration !== null
|
|
4041
|
+
Bumper: output.Bumper != null ? deserializeAws_restJson1Bumper(output.Bumper, context) : undefined,
|
|
4042
|
+
CdnConfiguration: output.CdnConfiguration != null
|
|
4087
4043
|
? deserializeAws_restJson1CdnConfiguration(output.CdnConfiguration, context)
|
|
4088
4044
|
: undefined,
|
|
4089
|
-
ConfigurationAliases: output.ConfigurationAliases
|
|
4045
|
+
ConfigurationAliases: output.ConfigurationAliases != null
|
|
4090
4046
|
? deserializeAws_restJson1ConfigurationAliasesResponse(output.ConfigurationAliases, context)
|
|
4091
4047
|
: undefined,
|
|
4092
|
-
DashConfiguration: output.DashConfiguration
|
|
4048
|
+
DashConfiguration: output.DashConfiguration != null
|
|
4093
4049
|
? deserializeAws_restJson1DashConfiguration(output.DashConfiguration, context)
|
|
4094
4050
|
: undefined,
|
|
4095
|
-
HlsConfiguration: output.HlsConfiguration
|
|
4051
|
+
HlsConfiguration: output.HlsConfiguration != null
|
|
4096
4052
|
? deserializeAws_restJson1HlsConfiguration(output.HlsConfiguration, context)
|
|
4097
4053
|
: undefined,
|
|
4098
|
-
LivePreRollConfiguration: output.LivePreRollConfiguration
|
|
4054
|
+
LivePreRollConfiguration: output.LivePreRollConfiguration != null
|
|
4099
4055
|
? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
|
|
4100
4056
|
: undefined,
|
|
4101
|
-
LogConfiguration: output.LogConfiguration
|
|
4057
|
+
LogConfiguration: output.LogConfiguration != null
|
|
4102
4058
|
? deserializeAws_restJson1LogConfiguration(output.LogConfiguration, context)
|
|
4103
4059
|
: undefined,
|
|
4104
|
-
ManifestProcessingRules: output.ManifestProcessingRules
|
|
4060
|
+
ManifestProcessingRules: output.ManifestProcessingRules != null
|
|
4105
4061
|
? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
|
|
4106
4062
|
: undefined,
|
|
4107
4063
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -4110,59 +4066,45 @@ const deserializeAws_restJson1PlaybackConfiguration = (output, context) => {
|
|
|
4110
4066
|
PlaybackEndpointPrefix: (0, smithy_client_1.expectString)(output.PlaybackEndpointPrefix),
|
|
4111
4067
|
SessionInitializationEndpointPrefix: (0, smithy_client_1.expectString)(output.SessionInitializationEndpointPrefix),
|
|
4112
4068
|
SlateAdUrl: (0, smithy_client_1.expectString)(output.SlateAdUrl),
|
|
4113
|
-
Tags: output.tags
|
|
4114
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4115
|
-
: undefined,
|
|
4069
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4116
4070
|
TranscodeProfileName: (0, smithy_client_1.expectString)(output.TranscodeProfileName),
|
|
4117
4071
|
VideoContentSourceUrl: (0, smithy_client_1.expectString)(output.VideoContentSourceUrl),
|
|
4118
4072
|
};
|
|
4119
4073
|
};
|
|
4120
4074
|
const deserializeAws_restJson1PrefetchConsumption = (output, context) => {
|
|
4121
4075
|
return {
|
|
4122
|
-
AvailMatchingCriteria: output.AvailMatchingCriteria
|
|
4076
|
+
AvailMatchingCriteria: output.AvailMatchingCriteria != null
|
|
4123
4077
|
? deserializeAws_restJson1__listOfAvailMatchingCriteria(output.AvailMatchingCriteria, context)
|
|
4124
4078
|
: undefined,
|
|
4125
|
-
EndTime: output.EndTime
|
|
4126
|
-
|
|
4127
|
-
: undefined,
|
|
4128
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4129
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4130
|
-
: undefined,
|
|
4079
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
4080
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4131
4081
|
};
|
|
4132
4082
|
};
|
|
4133
4083
|
const deserializeAws_restJson1PrefetchRetrieval = (output, context) => {
|
|
4134
4084
|
return {
|
|
4135
|
-
DynamicVariables: output.DynamicVariables
|
|
4085
|
+
DynamicVariables: output.DynamicVariables != null
|
|
4136
4086
|
? deserializeAws_restJson1__mapOf__string(output.DynamicVariables, context)
|
|
4137
4087
|
: undefined,
|
|
4138
|
-
EndTime: output.EndTime
|
|
4139
|
-
|
|
4140
|
-
: undefined,
|
|
4141
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4142
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4143
|
-
: undefined,
|
|
4088
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
4089
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4144
4090
|
};
|
|
4145
4091
|
};
|
|
4146
4092
|
const deserializeAws_restJson1PrefetchSchedule = (output, context) => {
|
|
4147
4093
|
return {
|
|
4148
4094
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4149
|
-
Consumption: output.Consumption
|
|
4150
|
-
? deserializeAws_restJson1PrefetchConsumption(output.Consumption, context)
|
|
4151
|
-
: undefined,
|
|
4095
|
+
Consumption: output.Consumption != null ? deserializeAws_restJson1PrefetchConsumption(output.Consumption, context) : undefined,
|
|
4152
4096
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4153
4097
|
PlaybackConfigurationName: (0, smithy_client_1.expectString)(output.PlaybackConfigurationName),
|
|
4154
|
-
Retrieval: output.Retrieval
|
|
4155
|
-
? deserializeAws_restJson1PrefetchRetrieval(output.Retrieval, context)
|
|
4156
|
-
: undefined,
|
|
4098
|
+
Retrieval: output.Retrieval != null ? deserializeAws_restJson1PrefetchRetrieval(output.Retrieval, context) : undefined,
|
|
4157
4099
|
StreamId: (0, smithy_client_1.expectString)(output.StreamId),
|
|
4158
4100
|
};
|
|
4159
4101
|
};
|
|
4160
4102
|
const deserializeAws_restJson1ResponseOutputItem = (output, context) => {
|
|
4161
4103
|
return {
|
|
4162
|
-
DashPlaylistSettings: output.DashPlaylistSettings
|
|
4104
|
+
DashPlaylistSettings: output.DashPlaylistSettings != null
|
|
4163
4105
|
? deserializeAws_restJson1DashPlaylistSettings(output.DashPlaylistSettings, context)
|
|
4164
4106
|
: undefined,
|
|
4165
|
-
HlsPlaylistSettings: output.HlsPlaylistSettings
|
|
4107
|
+
HlsPlaylistSettings: output.HlsPlaylistSettings != null
|
|
4166
4108
|
? deserializeAws_restJson1HlsPlaylistSettings(output.HlsPlaylistSettings, context)
|
|
4167
4109
|
: undefined,
|
|
4168
4110
|
ManifestName: (0, smithy_client_1.expectString)(output.ManifestName),
|
|
@@ -4184,7 +4126,7 @@ const deserializeAws_restJson1ResponseOutputs = (output, context) => {
|
|
|
4184
4126
|
const deserializeAws_restJson1ScheduleAdBreak = (output, context) => {
|
|
4185
4127
|
return {
|
|
4186
4128
|
ApproximateDurationSeconds: (0, smithy_client_1.expectLong)(output.ApproximateDurationSeconds),
|
|
4187
|
-
ApproximateStartTime: output.ApproximateStartTime
|
|
4129
|
+
ApproximateStartTime: output.ApproximateStartTime != null
|
|
4188
4130
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApproximateStartTime)))
|
|
4189
4131
|
: undefined,
|
|
4190
4132
|
SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
|
|
@@ -4194,14 +4136,14 @@ const deserializeAws_restJson1ScheduleAdBreak = (output, context) => {
|
|
|
4194
4136
|
const deserializeAws_restJson1ScheduleEntry = (output, context) => {
|
|
4195
4137
|
return {
|
|
4196
4138
|
ApproximateDurationSeconds: (0, smithy_client_1.expectLong)(output.ApproximateDurationSeconds),
|
|
4197
|
-
ApproximateStartTime: output.ApproximateStartTime
|
|
4139
|
+
ApproximateStartTime: output.ApproximateStartTime != null
|
|
4198
4140
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApproximateStartTime)))
|
|
4199
4141
|
: undefined,
|
|
4200
4142
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4201
4143
|
ChannelName: (0, smithy_client_1.expectString)(output.ChannelName),
|
|
4202
4144
|
LiveSourceName: (0, smithy_client_1.expectString)(output.LiveSourceName),
|
|
4203
4145
|
ProgramName: (0, smithy_client_1.expectString)(output.ProgramName),
|
|
4204
|
-
ScheduleAdBreaks: output.ScheduleAdBreaks
|
|
4146
|
+
ScheduleAdBreaks: output.ScheduleAdBreaks != null
|
|
4205
4147
|
? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
|
|
4206
4148
|
: undefined,
|
|
4207
4149
|
ScheduleEntryType: (0, smithy_client_1.expectString)(output.ScheduleEntryType),
|
|
@@ -4230,29 +4172,27 @@ const deserializeAws_restJson1SlateSource = (output, context) => {
|
|
|
4230
4172
|
};
|
|
4231
4173
|
const deserializeAws_restJson1SourceLocation = (output, context) => {
|
|
4232
4174
|
return {
|
|
4233
|
-
AccessConfiguration: output.AccessConfiguration
|
|
4175
|
+
AccessConfiguration: output.AccessConfiguration != null
|
|
4234
4176
|
? deserializeAws_restJson1AccessConfiguration(output.AccessConfiguration, context)
|
|
4235
4177
|
: undefined,
|
|
4236
4178
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4237
|
-
CreationTime: output.CreationTime
|
|
4179
|
+
CreationTime: output.CreationTime != null
|
|
4238
4180
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4239
4181
|
: undefined,
|
|
4240
|
-
DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration
|
|
4182
|
+
DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration != null
|
|
4241
4183
|
? deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(output.DefaultSegmentDeliveryConfiguration, context)
|
|
4242
4184
|
: undefined,
|
|
4243
|
-
HttpConfiguration: output.HttpConfiguration
|
|
4185
|
+
HttpConfiguration: output.HttpConfiguration != null
|
|
4244
4186
|
? deserializeAws_restJson1HttpConfiguration(output.HttpConfiguration, context)
|
|
4245
4187
|
: undefined,
|
|
4246
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4188
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4247
4189
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4248
4190
|
: undefined,
|
|
4249
|
-
SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations
|
|
4191
|
+
SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations != null
|
|
4250
4192
|
? deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(output.SegmentDeliveryConfigurations, context)
|
|
4251
4193
|
: undefined,
|
|
4252
4194
|
SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
|
|
4253
|
-
Tags: output.tags
|
|
4254
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4255
|
-
: undefined,
|
|
4195
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4256
4196
|
};
|
|
4257
4197
|
};
|
|
4258
4198
|
const deserializeAws_restJson1SpliceInsertMessage = (output, context) => {
|
|
@@ -4266,19 +4206,17 @@ const deserializeAws_restJson1SpliceInsertMessage = (output, context) => {
|
|
|
4266
4206
|
const deserializeAws_restJson1VodSource = (output, context) => {
|
|
4267
4207
|
return {
|
|
4268
4208
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4269
|
-
CreationTime: output.CreationTime
|
|
4209
|
+
CreationTime: output.CreationTime != null
|
|
4270
4210
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4271
4211
|
: undefined,
|
|
4272
|
-
HttpPackageConfigurations: output.HttpPackageConfigurations
|
|
4212
|
+
HttpPackageConfigurations: output.HttpPackageConfigurations != null
|
|
4273
4213
|
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
4274
4214
|
: undefined,
|
|
4275
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4215
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4276
4216
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4277
4217
|
: undefined,
|
|
4278
4218
|
SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
|
|
4279
|
-
Tags: output.tags
|
|
4280
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4281
|
-
: undefined,
|
|
4219
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4282
4220
|
VodSourceName: (0, smithy_client_1.expectString)(output.VodSourceName),
|
|
4283
4221
|
};
|
|
4284
4222
|
};
|
|
@@ -4331,5 +4269,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4331
4269
|
if (data["__type"] !== undefined) {
|
|
4332
4270
|
return sanitizeErrorCode(data["__type"]);
|
|
4333
4271
|
}
|
|
4334
|
-
return "";
|
|
4335
4272
|
};
|