@aws-sdk/client-mediapackage-vod 3.310.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +421 -643
- package/dist-es/protocols/Aws_restJson1.js +395 -617
- package/package.json +6 -6
|
@@ -13,9 +13,9 @@ const se_ConfigureLogsCommand = async (input, context) => {
|
|
|
13
13
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}/configure_logs";
|
|
14
14
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
|
|
18
|
+
}));
|
|
19
19
|
return new protocol_http_1.HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -34,14 +34,14 @@ const se_CreateAssetCommand = async (input, context) => {
|
|
|
34
34
|
};
|
|
35
35
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
|
|
36
36
|
let body;
|
|
37
|
-
body = JSON.stringify({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
37
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
|
+
id: [, , `Id`],
|
|
39
|
+
packagingGroupId: [, , `PackagingGroupId`],
|
|
40
|
+
resourceId: [, , `ResourceId`],
|
|
41
|
+
sourceArn: [, , `SourceArn`],
|
|
42
|
+
sourceRoleArn: [, , `SourceRoleArn`],
|
|
43
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
44
|
+
}));
|
|
45
45
|
return new protocol_http_1.HttpRequest({
|
|
46
46
|
protocol,
|
|
47
47
|
hostname,
|
|
@@ -60,15 +60,15 @@ const se_CreatePackagingConfigurationCommand = async (input, context) => {
|
|
|
60
60
|
};
|
|
61
61
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations";
|
|
62
62
|
let body;
|
|
63
|
-
body = JSON.stringify({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
});
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
+
cmafPackage: [, (_) => se_CmafPackage(_, context), `CmafPackage`],
|
|
65
|
+
dashPackage: [, (_) => se_DashPackage(_, context), `DashPackage`],
|
|
66
|
+
hlsPackage: [, (_) => se_HlsPackage(_, context), `HlsPackage`],
|
|
67
|
+
id: [, , `Id`],
|
|
68
|
+
mssPackage: [, (_) => se_MssPackage(_, context), `MssPackage`],
|
|
69
|
+
packagingGroupId: [, , `PackagingGroupId`],
|
|
70
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
71
|
+
}));
|
|
72
72
|
return new protocol_http_1.HttpRequest({
|
|
73
73
|
protocol,
|
|
74
74
|
hostname,
|
|
@@ -87,12 +87,12 @@ const se_CreatePackagingGroupCommand = async (input, context) => {
|
|
|
87
87
|
};
|
|
88
88
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups";
|
|
89
89
|
let body;
|
|
90
|
-
body = JSON.stringify({
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
});
|
|
90
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
91
|
+
authorization: [, (_) => se_Authorization(_, context), `Authorization`],
|
|
92
|
+
egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
|
|
93
|
+
id: [, , `Id`],
|
|
94
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
95
|
+
}));
|
|
96
96
|
return new protocol_http_1.HttpRequest({
|
|
97
97
|
protocol,
|
|
98
98
|
hostname,
|
|
@@ -210,7 +210,7 @@ const se_ListAssetsCommand = async (input, context) => {
|
|
|
210
210
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
211
|
const headers = {};
|
|
212
212
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
|
|
213
|
-
const query = map({
|
|
213
|
+
const query = (0, smithy_client_1.map)({
|
|
214
214
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
215
215
|
nextToken: [, input.NextToken],
|
|
216
216
|
packagingGroupId: [, input.PackagingGroupId],
|
|
@@ -232,7 +232,7 @@ const se_ListPackagingConfigurationsCommand = async (input, context) => {
|
|
|
232
232
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
233
233
|
const headers = {};
|
|
234
234
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations";
|
|
235
|
-
const query = map({
|
|
235
|
+
const query = (0, smithy_client_1.map)({
|
|
236
236
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
237
237
|
nextToken: [, input.NextToken],
|
|
238
238
|
packagingGroupId: [, input.PackagingGroupId],
|
|
@@ -254,7 +254,7 @@ const se_ListPackagingGroupsCommand = async (input, context) => {
|
|
|
254
254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
255
255
|
const headers = {};
|
|
256
256
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups";
|
|
257
|
-
const query = map({
|
|
257
|
+
const query = (0, smithy_client_1.map)({
|
|
258
258
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
259
259
|
nextToken: [, input.NextToken],
|
|
260
260
|
});
|
|
@@ -296,9 +296,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
296
296
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
297
297
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
298
298
|
let body;
|
|
299
|
-
body = JSON.stringify({
|
|
300
|
-
|
|
301
|
-
});
|
|
299
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
300
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
301
|
+
}));
|
|
302
302
|
return new protocol_http_1.HttpRequest({
|
|
303
303
|
protocol,
|
|
304
304
|
hostname,
|
|
@@ -315,7 +315,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
315
315
|
const headers = {};
|
|
316
316
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
317
317
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
318
|
-
const query = map({
|
|
318
|
+
const query = (0, smithy_client_1.map)({
|
|
319
319
|
tagKeys: [
|
|
320
320
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
321
321
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -342,9 +342,9 @@ const se_UpdatePackagingGroupCommand = async (input, context) => {
|
|
|
342
342
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}";
|
|
343
343
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
344
344
|
let body;
|
|
345
|
-
body = JSON.stringify({
|
|
346
|
-
|
|
347
|
-
});
|
|
345
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
346
|
+
authorization: [, (_) => se_Authorization(_, context), `Authorization`],
|
|
347
|
+
}));
|
|
348
348
|
return new protocol_http_1.HttpRequest({
|
|
349
349
|
protocol,
|
|
350
350
|
hostname,
|
|
@@ -360,31 +360,20 @@ const de_ConfigureLogsCommand = async (output, context) => {
|
|
|
360
360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
361
361
|
return de_ConfigureLogsCommandError(output, context);
|
|
362
362
|
}
|
|
363
|
-
const contents = map({
|
|
363
|
+
const contents = (0, smithy_client_1.map)({
|
|
364
364
|
$metadata: deserializeMetadata(output),
|
|
365
365
|
});
|
|
366
366
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
contents.DomainName = (0, smithy_client_1.expectString)(data.domainName);
|
|
378
|
-
}
|
|
379
|
-
if (data.egressAccessLogs != null) {
|
|
380
|
-
contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
|
|
381
|
-
}
|
|
382
|
-
if (data.id != null) {
|
|
383
|
-
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
384
|
-
}
|
|
385
|
-
if (data.tags != null) {
|
|
386
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
387
|
-
}
|
|
367
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
368
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
369
|
+
Authorization: [, (_) => de_Authorization(_, context), `authorization`],
|
|
370
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
371
|
+
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
372
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
373
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
374
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
375
|
+
});
|
|
376
|
+
Object.assign(contents, doc);
|
|
388
377
|
return contents;
|
|
389
378
|
};
|
|
390
379
|
exports.de_ConfigureLogsCommand = de_ConfigureLogsCommand;
|
|
@@ -415,10 +404,9 @@ const de_ConfigureLogsCommandError = async (output, context) => {
|
|
|
415
404
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
416
405
|
default:
|
|
417
406
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
|
|
407
|
+
return throwDefaultError({
|
|
419
408
|
output,
|
|
420
409
|
parsedBody,
|
|
421
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
422
410
|
errorCode,
|
|
423
411
|
});
|
|
424
412
|
}
|
|
@@ -427,37 +415,22 @@ const de_CreateAssetCommand = async (output, context) => {
|
|
|
427
415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
416
|
return de_CreateAssetCommandError(output, context);
|
|
429
417
|
}
|
|
430
|
-
const contents = map({
|
|
418
|
+
const contents = (0, smithy_client_1.map)({
|
|
431
419
|
$metadata: deserializeMetadata(output),
|
|
432
420
|
});
|
|
433
421
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
if (data.packagingGroupId != null) {
|
|
447
|
-
contents.PackagingGroupId = (0, smithy_client_1.expectString)(data.packagingGroupId);
|
|
448
|
-
}
|
|
449
|
-
if (data.resourceId != null) {
|
|
450
|
-
contents.ResourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
451
|
-
}
|
|
452
|
-
if (data.sourceArn != null) {
|
|
453
|
-
contents.SourceArn = (0, smithy_client_1.expectString)(data.sourceArn);
|
|
454
|
-
}
|
|
455
|
-
if (data.sourceRoleArn != null) {
|
|
456
|
-
contents.SourceRoleArn = (0, smithy_client_1.expectString)(data.sourceRoleArn);
|
|
457
|
-
}
|
|
458
|
-
if (data.tags != null) {
|
|
459
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
460
|
-
}
|
|
422
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
423
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
424
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
425
|
+
EgressEndpoints: [, (_) => de___listOfEgressEndpoint(_, context), `egressEndpoints`],
|
|
426
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
427
|
+
PackagingGroupId: [, smithy_client_1.expectString, `packagingGroupId`],
|
|
428
|
+
ResourceId: [, smithy_client_1.expectString, `resourceId`],
|
|
429
|
+
SourceArn: [, smithy_client_1.expectString, `sourceArn`],
|
|
430
|
+
SourceRoleArn: [, smithy_client_1.expectString, `sourceRoleArn`],
|
|
431
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
432
|
+
});
|
|
433
|
+
Object.assign(contents, doc);
|
|
461
434
|
return contents;
|
|
462
435
|
};
|
|
463
436
|
exports.de_CreateAssetCommand = de_CreateAssetCommand;
|
|
@@ -488,10 +461,9 @@ const de_CreateAssetCommandError = async (output, context) => {
|
|
|
488
461
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
489
462
|
default:
|
|
490
463
|
const parsedBody = parsedOutput.body;
|
|
491
|
-
|
|
464
|
+
return throwDefaultError({
|
|
492
465
|
output,
|
|
493
466
|
parsedBody,
|
|
494
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
495
467
|
errorCode,
|
|
496
468
|
});
|
|
497
469
|
}
|
|
@@ -500,37 +472,22 @@ const de_CreatePackagingConfigurationCommand = async (output, context) => {
|
|
|
500
472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
501
473
|
return de_CreatePackagingConfigurationCommandError(output, context);
|
|
502
474
|
}
|
|
503
|
-
const contents = map({
|
|
475
|
+
const contents = (0, smithy_client_1.map)({
|
|
504
476
|
$metadata: deserializeMetadata(output),
|
|
505
477
|
});
|
|
506
478
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
if (data.hlsPackage != null) {
|
|
520
|
-
contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
|
|
521
|
-
}
|
|
522
|
-
if (data.id != null) {
|
|
523
|
-
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
524
|
-
}
|
|
525
|
-
if (data.mssPackage != null) {
|
|
526
|
-
contents.MssPackage = de_MssPackage(data.mssPackage, context);
|
|
527
|
-
}
|
|
528
|
-
if (data.packagingGroupId != null) {
|
|
529
|
-
contents.PackagingGroupId = (0, smithy_client_1.expectString)(data.packagingGroupId);
|
|
530
|
-
}
|
|
531
|
-
if (data.tags != null) {
|
|
532
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
533
|
-
}
|
|
479
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
480
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
481
|
+
CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
|
|
482
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
483
|
+
DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
|
|
484
|
+
HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
|
|
485
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
486
|
+
MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
|
|
487
|
+
PackagingGroupId: [, smithy_client_1.expectString, `packagingGroupId`],
|
|
488
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
489
|
+
});
|
|
490
|
+
Object.assign(contents, doc);
|
|
534
491
|
return contents;
|
|
535
492
|
};
|
|
536
493
|
exports.de_CreatePackagingConfigurationCommand = de_CreatePackagingConfigurationCommand;
|
|
@@ -561,10 +518,9 @@ const de_CreatePackagingConfigurationCommandError = async (output, context) => {
|
|
|
561
518
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
562
519
|
default:
|
|
563
520
|
const parsedBody = parsedOutput.body;
|
|
564
|
-
|
|
521
|
+
return throwDefaultError({
|
|
565
522
|
output,
|
|
566
523
|
parsedBody,
|
|
567
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
568
524
|
errorCode,
|
|
569
525
|
});
|
|
570
526
|
}
|
|
@@ -573,31 +529,20 @@ const de_CreatePackagingGroupCommand = async (output, context) => {
|
|
|
573
529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
530
|
return de_CreatePackagingGroupCommandError(output, context);
|
|
575
531
|
}
|
|
576
|
-
const contents = map({
|
|
532
|
+
const contents = (0, smithy_client_1.map)({
|
|
577
533
|
$metadata: deserializeMetadata(output),
|
|
578
534
|
});
|
|
579
535
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
contents.DomainName = (0, smithy_client_1.expectString)(data.domainName);
|
|
591
|
-
}
|
|
592
|
-
if (data.egressAccessLogs != null) {
|
|
593
|
-
contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
|
|
594
|
-
}
|
|
595
|
-
if (data.id != null) {
|
|
596
|
-
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
597
|
-
}
|
|
598
|
-
if (data.tags != null) {
|
|
599
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
600
|
-
}
|
|
536
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
537
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
538
|
+
Authorization: [, (_) => de_Authorization(_, context), `authorization`],
|
|
539
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
540
|
+
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
541
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
542
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
543
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
544
|
+
});
|
|
545
|
+
Object.assign(contents, doc);
|
|
601
546
|
return contents;
|
|
602
547
|
};
|
|
603
548
|
exports.de_CreatePackagingGroupCommand = de_CreatePackagingGroupCommand;
|
|
@@ -628,10 +573,9 @@ const de_CreatePackagingGroupCommandError = async (output, context) => {
|
|
|
628
573
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
629
574
|
default:
|
|
630
575
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
|
|
576
|
+
return throwDefaultError({
|
|
632
577
|
output,
|
|
633
578
|
parsedBody,
|
|
634
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
635
579
|
errorCode,
|
|
636
580
|
});
|
|
637
581
|
}
|
|
@@ -640,7 +584,7 @@ const de_DeleteAssetCommand = async (output, context) => {
|
|
|
640
584
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
641
585
|
return de_DeleteAssetCommandError(output, context);
|
|
642
586
|
}
|
|
643
|
-
const contents = map({
|
|
587
|
+
const contents = (0, smithy_client_1.map)({
|
|
644
588
|
$metadata: deserializeMetadata(output),
|
|
645
589
|
});
|
|
646
590
|
await collectBody(output.body, context);
|
|
@@ -674,10 +618,9 @@ const de_DeleteAssetCommandError = async (output, context) => {
|
|
|
674
618
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
675
619
|
default:
|
|
676
620
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
621
|
+
return throwDefaultError({
|
|
678
622
|
output,
|
|
679
623
|
parsedBody,
|
|
680
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
681
624
|
errorCode,
|
|
682
625
|
});
|
|
683
626
|
}
|
|
@@ -686,7 +629,7 @@ const de_DeletePackagingConfigurationCommand = async (output, context) => {
|
|
|
686
629
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
687
630
|
return de_DeletePackagingConfigurationCommandError(output, context);
|
|
688
631
|
}
|
|
689
|
-
const contents = map({
|
|
632
|
+
const contents = (0, smithy_client_1.map)({
|
|
690
633
|
$metadata: deserializeMetadata(output),
|
|
691
634
|
});
|
|
692
635
|
await collectBody(output.body, context);
|
|
@@ -720,10 +663,9 @@ const de_DeletePackagingConfigurationCommandError = async (output, context) => {
|
|
|
720
663
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
721
664
|
default:
|
|
722
665
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
666
|
+
return throwDefaultError({
|
|
724
667
|
output,
|
|
725
668
|
parsedBody,
|
|
726
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
727
669
|
errorCode,
|
|
728
670
|
});
|
|
729
671
|
}
|
|
@@ -732,7 +674,7 @@ const de_DeletePackagingGroupCommand = async (output, context) => {
|
|
|
732
674
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
733
675
|
return de_DeletePackagingGroupCommandError(output, context);
|
|
734
676
|
}
|
|
735
|
-
const contents = map({
|
|
677
|
+
const contents = (0, smithy_client_1.map)({
|
|
736
678
|
$metadata: deserializeMetadata(output),
|
|
737
679
|
});
|
|
738
680
|
await collectBody(output.body, context);
|
|
@@ -766,10 +708,9 @@ const de_DeletePackagingGroupCommandError = async (output, context) => {
|
|
|
766
708
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
767
709
|
default:
|
|
768
710
|
const parsedBody = parsedOutput.body;
|
|
769
|
-
|
|
711
|
+
return throwDefaultError({
|
|
770
712
|
output,
|
|
771
713
|
parsedBody,
|
|
772
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
773
714
|
errorCode,
|
|
774
715
|
});
|
|
775
716
|
}
|
|
@@ -778,37 +719,22 @@ const de_DescribeAssetCommand = async (output, context) => {
|
|
|
778
719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
779
720
|
return de_DescribeAssetCommandError(output, context);
|
|
780
721
|
}
|
|
781
|
-
const contents = map({
|
|
722
|
+
const contents = (0, smithy_client_1.map)({
|
|
782
723
|
$metadata: deserializeMetadata(output),
|
|
783
724
|
});
|
|
784
725
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
if (data.packagingGroupId != null) {
|
|
798
|
-
contents.PackagingGroupId = (0, smithy_client_1.expectString)(data.packagingGroupId);
|
|
799
|
-
}
|
|
800
|
-
if (data.resourceId != null) {
|
|
801
|
-
contents.ResourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
802
|
-
}
|
|
803
|
-
if (data.sourceArn != null) {
|
|
804
|
-
contents.SourceArn = (0, smithy_client_1.expectString)(data.sourceArn);
|
|
805
|
-
}
|
|
806
|
-
if (data.sourceRoleArn != null) {
|
|
807
|
-
contents.SourceRoleArn = (0, smithy_client_1.expectString)(data.sourceRoleArn);
|
|
808
|
-
}
|
|
809
|
-
if (data.tags != null) {
|
|
810
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
811
|
-
}
|
|
726
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
727
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
728
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
729
|
+
EgressEndpoints: [, (_) => de___listOfEgressEndpoint(_, context), `egressEndpoints`],
|
|
730
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
731
|
+
PackagingGroupId: [, smithy_client_1.expectString, `packagingGroupId`],
|
|
732
|
+
ResourceId: [, smithy_client_1.expectString, `resourceId`],
|
|
733
|
+
SourceArn: [, smithy_client_1.expectString, `sourceArn`],
|
|
734
|
+
SourceRoleArn: [, smithy_client_1.expectString, `sourceRoleArn`],
|
|
735
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
736
|
+
});
|
|
737
|
+
Object.assign(contents, doc);
|
|
812
738
|
return contents;
|
|
813
739
|
};
|
|
814
740
|
exports.de_DescribeAssetCommand = de_DescribeAssetCommand;
|
|
@@ -839,10 +765,9 @@ const de_DescribeAssetCommandError = async (output, context) => {
|
|
|
839
765
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
840
766
|
default:
|
|
841
767
|
const parsedBody = parsedOutput.body;
|
|
842
|
-
|
|
768
|
+
return throwDefaultError({
|
|
843
769
|
output,
|
|
844
770
|
parsedBody,
|
|
845
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
846
771
|
errorCode,
|
|
847
772
|
});
|
|
848
773
|
}
|
|
@@ -851,37 +776,22 @@ const de_DescribePackagingConfigurationCommand = async (output, context) => {
|
|
|
851
776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
852
777
|
return de_DescribePackagingConfigurationCommandError(output, context);
|
|
853
778
|
}
|
|
854
|
-
const contents = map({
|
|
779
|
+
const contents = (0, smithy_client_1.map)({
|
|
855
780
|
$metadata: deserializeMetadata(output),
|
|
856
781
|
});
|
|
857
782
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
if (data.hlsPackage != null) {
|
|
871
|
-
contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
|
|
872
|
-
}
|
|
873
|
-
if (data.id != null) {
|
|
874
|
-
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
875
|
-
}
|
|
876
|
-
if (data.mssPackage != null) {
|
|
877
|
-
contents.MssPackage = de_MssPackage(data.mssPackage, context);
|
|
878
|
-
}
|
|
879
|
-
if (data.packagingGroupId != null) {
|
|
880
|
-
contents.PackagingGroupId = (0, smithy_client_1.expectString)(data.packagingGroupId);
|
|
881
|
-
}
|
|
882
|
-
if (data.tags != null) {
|
|
883
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
884
|
-
}
|
|
783
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
784
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
785
|
+
CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
|
|
786
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
787
|
+
DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
|
|
788
|
+
HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
|
|
789
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
790
|
+
MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
|
|
791
|
+
PackagingGroupId: [, smithy_client_1.expectString, `packagingGroupId`],
|
|
792
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
793
|
+
});
|
|
794
|
+
Object.assign(contents, doc);
|
|
885
795
|
return contents;
|
|
886
796
|
};
|
|
887
797
|
exports.de_DescribePackagingConfigurationCommand = de_DescribePackagingConfigurationCommand;
|
|
@@ -912,10 +822,9 @@ const de_DescribePackagingConfigurationCommandError = async (output, context) =>
|
|
|
912
822
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
913
823
|
default:
|
|
914
824
|
const parsedBody = parsedOutput.body;
|
|
915
|
-
|
|
825
|
+
return throwDefaultError({
|
|
916
826
|
output,
|
|
917
827
|
parsedBody,
|
|
918
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
919
828
|
errorCode,
|
|
920
829
|
});
|
|
921
830
|
}
|
|
@@ -924,34 +833,21 @@ const de_DescribePackagingGroupCommand = async (output, context) => {
|
|
|
924
833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
925
834
|
return de_DescribePackagingGroupCommandError(output, context);
|
|
926
835
|
}
|
|
927
|
-
const contents = map({
|
|
836
|
+
const contents = (0, smithy_client_1.map)({
|
|
928
837
|
$metadata: deserializeMetadata(output),
|
|
929
838
|
});
|
|
930
839
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}
|
|
943
|
-
if (data.domainName != null) {
|
|
944
|
-
contents.DomainName = (0, smithy_client_1.expectString)(data.domainName);
|
|
945
|
-
}
|
|
946
|
-
if (data.egressAccessLogs != null) {
|
|
947
|
-
contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
|
|
948
|
-
}
|
|
949
|
-
if (data.id != null) {
|
|
950
|
-
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
951
|
-
}
|
|
952
|
-
if (data.tags != null) {
|
|
953
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
954
|
-
}
|
|
840
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
841
|
+
ApproximateAssetCount: [, smithy_client_1.expectInt32, `approximateAssetCount`],
|
|
842
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
843
|
+
Authorization: [, (_) => de_Authorization(_, context), `authorization`],
|
|
844
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
845
|
+
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
846
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
847
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
848
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
849
|
+
});
|
|
850
|
+
Object.assign(contents, doc);
|
|
955
851
|
return contents;
|
|
956
852
|
};
|
|
957
853
|
exports.de_DescribePackagingGroupCommand = de_DescribePackagingGroupCommand;
|
|
@@ -982,10 +878,9 @@ const de_DescribePackagingGroupCommandError = async (output, context) => {
|
|
|
982
878
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
983
879
|
default:
|
|
984
880
|
const parsedBody = parsedOutput.body;
|
|
985
|
-
|
|
881
|
+
return throwDefaultError({
|
|
986
882
|
output,
|
|
987
883
|
parsedBody,
|
|
988
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
989
884
|
errorCode,
|
|
990
885
|
});
|
|
991
886
|
}
|
|
@@ -994,16 +889,15 @@ const de_ListAssetsCommand = async (output, context) => {
|
|
|
994
889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
890
|
return de_ListAssetsCommandError(output, context);
|
|
996
891
|
}
|
|
997
|
-
const contents = map({
|
|
892
|
+
const contents = (0, smithy_client_1.map)({
|
|
998
893
|
$metadata: deserializeMetadata(output),
|
|
999
894
|
});
|
|
1000
895
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
}
|
|
896
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
897
|
+
Assets: [, (_) => de___listOfAssetShallow(_, context), `assets`],
|
|
898
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
899
|
+
});
|
|
900
|
+
Object.assign(contents, doc);
|
|
1007
901
|
return contents;
|
|
1008
902
|
};
|
|
1009
903
|
exports.de_ListAssetsCommand = de_ListAssetsCommand;
|
|
@@ -1034,10 +928,9 @@ const de_ListAssetsCommandError = async (output, context) => {
|
|
|
1034
928
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1035
929
|
default:
|
|
1036
930
|
const parsedBody = parsedOutput.body;
|
|
1037
|
-
|
|
931
|
+
return throwDefaultError({
|
|
1038
932
|
output,
|
|
1039
933
|
parsedBody,
|
|
1040
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
1041
934
|
errorCode,
|
|
1042
935
|
});
|
|
1043
936
|
}
|
|
@@ -1046,16 +939,15 @@ const de_ListPackagingConfigurationsCommand = async (output, context) => {
|
|
|
1046
939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
940
|
return de_ListPackagingConfigurationsCommandError(output, context);
|
|
1048
941
|
}
|
|
1049
|
-
const contents = map({
|
|
942
|
+
const contents = (0, smithy_client_1.map)({
|
|
1050
943
|
$metadata: deserializeMetadata(output),
|
|
1051
944
|
});
|
|
1052
945
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
}
|
|
946
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
947
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
948
|
+
PackagingConfigurations: [, (_) => de___listOfPackagingConfiguration(_, context), `packagingConfigurations`],
|
|
949
|
+
});
|
|
950
|
+
Object.assign(contents, doc);
|
|
1059
951
|
return contents;
|
|
1060
952
|
};
|
|
1061
953
|
exports.de_ListPackagingConfigurationsCommand = de_ListPackagingConfigurationsCommand;
|
|
@@ -1086,10 +978,9 @@ const de_ListPackagingConfigurationsCommandError = async (output, context) => {
|
|
|
1086
978
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1087
979
|
default:
|
|
1088
980
|
const parsedBody = parsedOutput.body;
|
|
1089
|
-
|
|
981
|
+
return throwDefaultError({
|
|
1090
982
|
output,
|
|
1091
983
|
parsedBody,
|
|
1092
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
1093
984
|
errorCode,
|
|
1094
985
|
});
|
|
1095
986
|
}
|
|
@@ -1098,16 +989,15 @@ const de_ListPackagingGroupsCommand = async (output, context) => {
|
|
|
1098
989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
990
|
return de_ListPackagingGroupsCommandError(output, context);
|
|
1100
991
|
}
|
|
1101
|
-
const contents = map({
|
|
992
|
+
const contents = (0, smithy_client_1.map)({
|
|
1102
993
|
$metadata: deserializeMetadata(output),
|
|
1103
994
|
});
|
|
1104
995
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
}
|
|
996
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
997
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
998
|
+
PackagingGroups: [, (_) => de___listOfPackagingGroup(_, context), `packagingGroups`],
|
|
999
|
+
});
|
|
1000
|
+
Object.assign(contents, doc);
|
|
1111
1001
|
return contents;
|
|
1112
1002
|
};
|
|
1113
1003
|
exports.de_ListPackagingGroupsCommand = de_ListPackagingGroupsCommand;
|
|
@@ -1138,10 +1028,9 @@ const de_ListPackagingGroupsCommandError = async (output, context) => {
|
|
|
1138
1028
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1139
1029
|
default:
|
|
1140
1030
|
const parsedBody = parsedOutput.body;
|
|
1141
|
-
|
|
1031
|
+
return throwDefaultError({
|
|
1142
1032
|
output,
|
|
1143
1033
|
parsedBody,
|
|
1144
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
1145
1034
|
errorCode,
|
|
1146
1035
|
});
|
|
1147
1036
|
}
|
|
@@ -1150,13 +1039,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1150
1039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
1040
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1152
1041
|
}
|
|
1153
|
-
const contents = map({
|
|
1042
|
+
const contents = (0, smithy_client_1.map)({
|
|
1154
1043
|
$metadata: deserializeMetadata(output),
|
|
1155
1044
|
});
|
|
1156
1045
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}
|
|
1046
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1047
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1048
|
+
});
|
|
1049
|
+
Object.assign(contents, doc);
|
|
1160
1050
|
return contents;
|
|
1161
1051
|
};
|
|
1162
1052
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1167,10 +1057,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1167
1057
|
};
|
|
1168
1058
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
1059
|
const parsedBody = parsedOutput.body;
|
|
1170
|
-
|
|
1060
|
+
return throwDefaultError({
|
|
1171
1061
|
output,
|
|
1172
1062
|
parsedBody,
|
|
1173
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
1174
1063
|
errorCode,
|
|
1175
1064
|
});
|
|
1176
1065
|
};
|
|
@@ -1178,7 +1067,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1178
1067
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1179
1068
|
return de_TagResourceCommandError(output, context);
|
|
1180
1069
|
}
|
|
1181
|
-
const contents = map({
|
|
1070
|
+
const contents = (0, smithy_client_1.map)({
|
|
1182
1071
|
$metadata: deserializeMetadata(output),
|
|
1183
1072
|
});
|
|
1184
1073
|
await collectBody(output.body, context);
|
|
@@ -1192,10 +1081,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1192
1081
|
};
|
|
1193
1082
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1083
|
const parsedBody = parsedOutput.body;
|
|
1195
|
-
|
|
1084
|
+
return throwDefaultError({
|
|
1196
1085
|
output,
|
|
1197
1086
|
parsedBody,
|
|
1198
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
1199
1087
|
errorCode,
|
|
1200
1088
|
});
|
|
1201
1089
|
};
|
|
@@ -1203,7 +1091,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1203
1091
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1204
1092
|
return de_UntagResourceCommandError(output, context);
|
|
1205
1093
|
}
|
|
1206
|
-
const contents = map({
|
|
1094
|
+
const contents = (0, smithy_client_1.map)({
|
|
1207
1095
|
$metadata: deserializeMetadata(output),
|
|
1208
1096
|
});
|
|
1209
1097
|
await collectBody(output.body, context);
|
|
@@ -1217,10 +1105,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1217
1105
|
};
|
|
1218
1106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
1107
|
const parsedBody = parsedOutput.body;
|
|
1220
|
-
|
|
1108
|
+
return throwDefaultError({
|
|
1221
1109
|
output,
|
|
1222
1110
|
parsedBody,
|
|
1223
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
1224
1111
|
errorCode,
|
|
1225
1112
|
});
|
|
1226
1113
|
};
|
|
@@ -1228,34 +1115,21 @@ const de_UpdatePackagingGroupCommand = async (output, context) => {
|
|
|
1228
1115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1229
1116
|
return de_UpdatePackagingGroupCommandError(output, context);
|
|
1230
1117
|
}
|
|
1231
|
-
const contents = map({
|
|
1118
|
+
const contents = (0, smithy_client_1.map)({
|
|
1232
1119
|
$metadata: deserializeMetadata(output),
|
|
1233
1120
|
});
|
|
1234
1121
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
}
|
|
1247
|
-
if (data.domainName != null) {
|
|
1248
|
-
contents.DomainName = (0, smithy_client_1.expectString)(data.domainName);
|
|
1249
|
-
}
|
|
1250
|
-
if (data.egressAccessLogs != null) {
|
|
1251
|
-
contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
|
|
1252
|
-
}
|
|
1253
|
-
if (data.id != null) {
|
|
1254
|
-
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
1255
|
-
}
|
|
1256
|
-
if (data.tags != null) {
|
|
1257
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1258
|
-
}
|
|
1122
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1123
|
+
ApproximateAssetCount: [, smithy_client_1.expectInt32, `approximateAssetCount`],
|
|
1124
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
1125
|
+
Authorization: [, (_) => de_Authorization(_, context), `authorization`],
|
|
1126
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
1127
|
+
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
1128
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
1129
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
1130
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1131
|
+
});
|
|
1132
|
+
Object.assign(contents, doc);
|
|
1259
1133
|
return contents;
|
|
1260
1134
|
};
|
|
1261
1135
|
exports.de_UpdatePackagingGroupCommand = de_UpdatePackagingGroupCommand;
|
|
@@ -1286,21 +1160,21 @@ const de_UpdatePackagingGroupCommandError = async (output, context) => {
|
|
|
1286
1160
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1287
1161
|
default:
|
|
1288
1162
|
const parsedBody = parsedOutput.body;
|
|
1289
|
-
|
|
1163
|
+
return throwDefaultError({
|
|
1290
1164
|
output,
|
|
1291
1165
|
parsedBody,
|
|
1292
|
-
exceptionCtor: MediaPackageVodServiceException_1.MediaPackageVodServiceException,
|
|
1293
1166
|
errorCode,
|
|
1294
1167
|
});
|
|
1295
1168
|
}
|
|
1296
1169
|
};
|
|
1297
|
-
const
|
|
1170
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(MediaPackageVodServiceException_1.MediaPackageVodServiceException);
|
|
1298
1171
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1299
|
-
const contents = map({});
|
|
1172
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1300
1173
|
const data = parsedOutput.body;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
}
|
|
1174
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1175
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1176
|
+
});
|
|
1177
|
+
Object.assign(contents, doc);
|
|
1304
1178
|
const exception = new models_0_1.ForbiddenException({
|
|
1305
1179
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1306
1180
|
...contents,
|
|
@@ -1308,11 +1182,12 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
1308
1182
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1309
1183
|
};
|
|
1310
1184
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1311
|
-
const contents = map({});
|
|
1185
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1312
1186
|
const data = parsedOutput.body;
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
}
|
|
1187
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1188
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1189
|
+
});
|
|
1190
|
+
Object.assign(contents, doc);
|
|
1316
1191
|
const exception = new models_0_1.InternalServerErrorException({
|
|
1317
1192
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1318
1193
|
...contents,
|
|
@@ -1320,11 +1195,12 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1320
1195
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1321
1196
|
};
|
|
1322
1197
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1323
|
-
const contents = map({});
|
|
1198
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1324
1199
|
const data = parsedOutput.body;
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
}
|
|
1200
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1201
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1202
|
+
});
|
|
1203
|
+
Object.assign(contents, doc);
|
|
1328
1204
|
const exception = new models_0_1.NotFoundException({
|
|
1329
1205
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1330
1206
|
...contents,
|
|
@@ -1332,11 +1208,12 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1332
1208
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1333
1209
|
};
|
|
1334
1210
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1335
|
-
const contents = map({});
|
|
1211
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1336
1212
|
const data = parsedOutput.body;
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
}
|
|
1213
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1214
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1215
|
+
});
|
|
1216
|
+
Object.assign(contents, doc);
|
|
1340
1217
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
1341
1218
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1342
1219
|
...contents,
|
|
@@ -1344,11 +1221,12 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1344
1221
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1345
1222
|
};
|
|
1346
1223
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1347
|
-
const contents = map({});
|
|
1224
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1348
1225
|
const data = parsedOutput.body;
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
}
|
|
1226
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1227
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1228
|
+
});
|
|
1229
|
+
Object.assign(contents, doc);
|
|
1352
1230
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1353
1231
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1354
1232
|
...contents,
|
|
@@ -1356,31 +1234,18 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1356
1234
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1357
1235
|
};
|
|
1358
1236
|
const de_UnprocessableEntityExceptionRes = async (parsedOutput, context) => {
|
|
1359
|
-
const contents = map({});
|
|
1237
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1360
1238
|
const data = parsedOutput.body;
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
}
|
|
1239
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1240
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1241
|
+
});
|
|
1242
|
+
Object.assign(contents, doc);
|
|
1364
1243
|
const exception = new models_0_1.UnprocessableEntityException({
|
|
1365
1244
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
1245
|
...contents,
|
|
1367
1246
|
});
|
|
1368
1247
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1369
1248
|
};
|
|
1370
|
-
const se___listOf__PeriodTriggersElement = (input, context) => {
|
|
1371
|
-
return input
|
|
1372
|
-
.filter((e) => e != null)
|
|
1373
|
-
.map((entry) => {
|
|
1374
|
-
return entry;
|
|
1375
|
-
});
|
|
1376
|
-
};
|
|
1377
|
-
const se___listOf__string = (input, context) => {
|
|
1378
|
-
return input
|
|
1379
|
-
.filter((e) => e != null)
|
|
1380
|
-
.map((entry) => {
|
|
1381
|
-
return entry;
|
|
1382
|
-
});
|
|
1383
|
-
};
|
|
1384
1249
|
const se___listOfDashManifest = (input, context) => {
|
|
1385
1250
|
return input
|
|
1386
1251
|
.filter((e) => e != null)
|
|
@@ -1402,183 +1267,130 @@ const se___listOfMssManifest = (input, context) => {
|
|
|
1402
1267
|
return se_MssManifest(entry, context);
|
|
1403
1268
|
});
|
|
1404
1269
|
};
|
|
1405
|
-
const se___mapOf__string = (input, context) => {
|
|
1406
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1407
|
-
if (value === null) {
|
|
1408
|
-
return acc;
|
|
1409
|
-
}
|
|
1410
|
-
acc[key] = value;
|
|
1411
|
-
return acc;
|
|
1412
|
-
}, {});
|
|
1413
|
-
};
|
|
1414
1270
|
const se_Authorization = (input, context) => {
|
|
1415
|
-
return {
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
};
|
|
1271
|
+
return (0, smithy_client_1.take)(input, {
|
|
1272
|
+
cdnIdentifierSecret: [, , `CdnIdentifierSecret`],
|
|
1273
|
+
secretsRoleArn: [, , `SecretsRoleArn`],
|
|
1274
|
+
});
|
|
1419
1275
|
};
|
|
1420
1276
|
const se_CmafEncryption = (input, context) => {
|
|
1421
|
-
return {
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
|
|
1426
|
-
};
|
|
1277
|
+
return (0, smithy_client_1.take)(input, {
|
|
1278
|
+
constantInitializationVector: [, , `ConstantInitializationVector`],
|
|
1279
|
+
spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
|
|
1280
|
+
});
|
|
1427
1281
|
};
|
|
1428
1282
|
const se_CmafPackage = (input, context) => {
|
|
1429
|
-
return {
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
|
|
1436
|
-
};
|
|
1283
|
+
return (0, smithy_client_1.take)(input, {
|
|
1284
|
+
encryption: [, (_) => se_CmafEncryption(_, context), `Encryption`],
|
|
1285
|
+
hlsManifests: [, (_) => se___listOfHlsManifest(_, context), `HlsManifests`],
|
|
1286
|
+
includeEncoderConfigurationInSegments: [, , `IncludeEncoderConfigurationInSegments`],
|
|
1287
|
+
segmentDurationSeconds: [, , `SegmentDurationSeconds`],
|
|
1288
|
+
});
|
|
1437
1289
|
};
|
|
1438
1290
|
const se_DashEncryption = (input, context) => {
|
|
1439
|
-
return {
|
|
1440
|
-
|
|
1441
|
-
};
|
|
1291
|
+
return (0, smithy_client_1.take)(input, {
|
|
1292
|
+
spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
|
|
1293
|
+
});
|
|
1442
1294
|
};
|
|
1443
1295
|
const se_DashManifest = (input, context) => {
|
|
1444
|
-
return {
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
};
|
|
1296
|
+
return (0, smithy_client_1.take)(input, {
|
|
1297
|
+
manifestLayout: [, , `ManifestLayout`],
|
|
1298
|
+
manifestName: [, , `ManifestName`],
|
|
1299
|
+
minBufferTimeSeconds: [, , `MinBufferTimeSeconds`],
|
|
1300
|
+
profile: [, , `Profile`],
|
|
1301
|
+
scteMarkersSource: [, , `ScteMarkersSource`],
|
|
1302
|
+
streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
|
|
1303
|
+
});
|
|
1452
1304
|
};
|
|
1453
1305
|
const se_DashPackage = (input, context) => {
|
|
1454
|
-
return {
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
}),
|
|
1464
|
-
...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
|
|
1465
|
-
...(input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat }),
|
|
1466
|
-
};
|
|
1306
|
+
return (0, smithy_client_1.take)(input, {
|
|
1307
|
+
dashManifests: [, (_) => se___listOfDashManifest(_, context), `DashManifests`],
|
|
1308
|
+
encryption: [, (_) => se_DashEncryption(_, context), `Encryption`],
|
|
1309
|
+
includeEncoderConfigurationInSegments: [, , `IncludeEncoderConfigurationInSegments`],
|
|
1310
|
+
includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
|
|
1311
|
+
periodTriggers: [, smithy_client_1._json, `PeriodTriggers`],
|
|
1312
|
+
segmentDurationSeconds: [, , `SegmentDurationSeconds`],
|
|
1313
|
+
segmentTemplateFormat: [, , `SegmentTemplateFormat`],
|
|
1314
|
+
});
|
|
1467
1315
|
};
|
|
1468
1316
|
const se_EgressAccessLogs = (input, context) => {
|
|
1469
|
-
return {
|
|
1470
|
-
|
|
1471
|
-
};
|
|
1317
|
+
return (0, smithy_client_1.take)(input, {
|
|
1318
|
+
logGroupName: [, , `LogGroupName`],
|
|
1319
|
+
});
|
|
1472
1320
|
};
|
|
1473
1321
|
const se_EncryptionContractConfiguration = (input, context) => {
|
|
1474
|
-
return {
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
};
|
|
1322
|
+
return (0, smithy_client_1.take)(input, {
|
|
1323
|
+
presetSpeke20Audio: [, , `PresetSpeke20Audio`],
|
|
1324
|
+
presetSpeke20Video: [, , `PresetSpeke20Video`],
|
|
1325
|
+
});
|
|
1478
1326
|
};
|
|
1479
1327
|
const se_HlsEncryption = (input, context) => {
|
|
1480
|
-
return {
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
|
|
1486
|
-
};
|
|
1328
|
+
return (0, smithy_client_1.take)(input, {
|
|
1329
|
+
constantInitializationVector: [, , `ConstantInitializationVector`],
|
|
1330
|
+
encryptionMethod: [, , `EncryptionMethod`],
|
|
1331
|
+
spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
|
|
1332
|
+
});
|
|
1487
1333
|
};
|
|
1488
1334
|
const se_HlsManifest = (input, context) => {
|
|
1489
|
-
return {
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
|
|
1498
|
-
};
|
|
1335
|
+
return (0, smithy_client_1.take)(input, {
|
|
1336
|
+
adMarkers: [, , `AdMarkers`],
|
|
1337
|
+
includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
|
|
1338
|
+
manifestName: [, , `ManifestName`],
|
|
1339
|
+
programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
|
|
1340
|
+
repeatExtXKey: [, , `RepeatExtXKey`],
|
|
1341
|
+
streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
|
|
1342
|
+
});
|
|
1499
1343
|
};
|
|
1500
1344
|
const se_HlsPackage = (input, context) => {
|
|
1501
|
-
return {
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
};
|
|
1345
|
+
return (0, smithy_client_1.take)(input, {
|
|
1346
|
+
encryption: [, (_) => se_HlsEncryption(_, context), `Encryption`],
|
|
1347
|
+
hlsManifests: [, (_) => se___listOfHlsManifest(_, context), `HlsManifests`],
|
|
1348
|
+
includeDvbSubtitles: [, , `IncludeDvbSubtitles`],
|
|
1349
|
+
segmentDurationSeconds: [, , `SegmentDurationSeconds`],
|
|
1350
|
+
useAudioRenditionGroup: [, , `UseAudioRenditionGroup`],
|
|
1351
|
+
});
|
|
1508
1352
|
};
|
|
1509
1353
|
const se_MssEncryption = (input, context) => {
|
|
1510
|
-
return {
|
|
1511
|
-
|
|
1512
|
-
};
|
|
1354
|
+
return (0, smithy_client_1.take)(input, {
|
|
1355
|
+
spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
|
|
1356
|
+
});
|
|
1513
1357
|
};
|
|
1514
1358
|
const se_MssManifest = (input, context) => {
|
|
1515
|
-
return {
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
};
|
|
1359
|
+
return (0, smithy_client_1.take)(input, {
|
|
1360
|
+
manifestName: [, , `ManifestName`],
|
|
1361
|
+
streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
|
|
1362
|
+
});
|
|
1519
1363
|
};
|
|
1520
1364
|
const se_MssPackage = (input, context) => {
|
|
1521
|
-
return {
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
};
|
|
1365
|
+
return (0, smithy_client_1.take)(input, {
|
|
1366
|
+
encryption: [, (_) => se_MssEncryption(_, context), `Encryption`],
|
|
1367
|
+
mssManifests: [, (_) => se___listOfMssManifest(_, context), `MssManifests`],
|
|
1368
|
+
segmentDurationSeconds: [, , `SegmentDurationSeconds`],
|
|
1369
|
+
});
|
|
1526
1370
|
};
|
|
1527
1371
|
const se_SpekeKeyProvider = (input, context) => {
|
|
1528
|
-
return {
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
const se_StreamSelection = (input, context) => {
|
|
1538
|
-
return {
|
|
1539
|
-
...(input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
|
|
1540
|
-
...(input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
|
|
1541
|
-
...(input.StreamOrder != null && { streamOrder: input.StreamOrder }),
|
|
1542
|
-
};
|
|
1543
|
-
};
|
|
1544
|
-
const se_Tags = (input, context) => {
|
|
1545
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1546
|
-
if (value === null) {
|
|
1547
|
-
return acc;
|
|
1548
|
-
}
|
|
1549
|
-
acc[key] = value;
|
|
1550
|
-
return acc;
|
|
1551
|
-
}, {});
|
|
1552
|
-
};
|
|
1553
|
-
const de___listOf__PeriodTriggersElement = (output, context) => {
|
|
1554
|
-
const retVal = (output || [])
|
|
1555
|
-
.filter((e) => e != null)
|
|
1556
|
-
.map((entry) => {
|
|
1557
|
-
if (entry === null) {
|
|
1558
|
-
return null;
|
|
1559
|
-
}
|
|
1560
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1372
|
+
return (0, smithy_client_1.take)(input, {
|
|
1373
|
+
encryptionContractConfiguration: [
|
|
1374
|
+
,
|
|
1375
|
+
(_) => se_EncryptionContractConfiguration(_, context),
|
|
1376
|
+
`EncryptionContractConfiguration`,
|
|
1377
|
+
],
|
|
1378
|
+
roleArn: [, , `RoleArn`],
|
|
1379
|
+
systemIds: [, smithy_client_1._json, `SystemIds`],
|
|
1380
|
+
url: [, , `Url`],
|
|
1561
1381
|
});
|
|
1562
|
-
return retVal;
|
|
1563
1382
|
};
|
|
1564
|
-
const
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
return null;
|
|
1570
|
-
}
|
|
1571
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1383
|
+
const se_StreamSelection = (input, context) => {
|
|
1384
|
+
return (0, smithy_client_1.take)(input, {
|
|
1385
|
+
maxVideoBitsPerSecond: [, , `MaxVideoBitsPerSecond`],
|
|
1386
|
+
minVideoBitsPerSecond: [, , `MinVideoBitsPerSecond`],
|
|
1387
|
+
streamOrder: [, , `StreamOrder`],
|
|
1572
1388
|
});
|
|
1573
|
-
return retVal;
|
|
1574
1389
|
};
|
|
1575
1390
|
const de___listOfAssetShallow = (output, context) => {
|
|
1576
1391
|
const retVal = (output || [])
|
|
1577
1392
|
.filter((e) => e != null)
|
|
1578
1393
|
.map((entry) => {
|
|
1579
|
-
if (entry === null) {
|
|
1580
|
-
return null;
|
|
1581
|
-
}
|
|
1582
1394
|
return de_AssetShallow(entry, context);
|
|
1583
1395
|
});
|
|
1584
1396
|
return retVal;
|
|
@@ -1587,9 +1399,6 @@ const de___listOfDashManifest = (output, context) => {
|
|
|
1587
1399
|
const retVal = (output || [])
|
|
1588
1400
|
.filter((e) => e != null)
|
|
1589
1401
|
.map((entry) => {
|
|
1590
|
-
if (entry === null) {
|
|
1591
|
-
return null;
|
|
1592
|
-
}
|
|
1593
1402
|
return de_DashManifest(entry, context);
|
|
1594
1403
|
});
|
|
1595
1404
|
return retVal;
|
|
@@ -1598,9 +1407,6 @@ const de___listOfEgressEndpoint = (output, context) => {
|
|
|
1598
1407
|
const retVal = (output || [])
|
|
1599
1408
|
.filter((e) => e != null)
|
|
1600
1409
|
.map((entry) => {
|
|
1601
|
-
if (entry === null) {
|
|
1602
|
-
return null;
|
|
1603
|
-
}
|
|
1604
1410
|
return de_EgressEndpoint(entry, context);
|
|
1605
1411
|
});
|
|
1606
1412
|
return retVal;
|
|
@@ -1609,9 +1415,6 @@ const de___listOfHlsManifest = (output, context) => {
|
|
|
1609
1415
|
const retVal = (output || [])
|
|
1610
1416
|
.filter((e) => e != null)
|
|
1611
1417
|
.map((entry) => {
|
|
1612
|
-
if (entry === null) {
|
|
1613
|
-
return null;
|
|
1614
|
-
}
|
|
1615
1418
|
return de_HlsManifest(entry, context);
|
|
1616
1419
|
});
|
|
1617
1420
|
return retVal;
|
|
@@ -1620,9 +1423,6 @@ const de___listOfMssManifest = (output, context) => {
|
|
|
1620
1423
|
const retVal = (output || [])
|
|
1621
1424
|
.filter((e) => e != null)
|
|
1622
1425
|
.map((entry) => {
|
|
1623
|
-
if (entry === null) {
|
|
1624
|
-
return null;
|
|
1625
|
-
}
|
|
1626
1426
|
return de_MssManifest(entry, context);
|
|
1627
1427
|
});
|
|
1628
1428
|
return retVal;
|
|
@@ -1631,9 +1431,6 @@ const de___listOfPackagingConfiguration = (output, context) => {
|
|
|
1631
1431
|
const retVal = (output || [])
|
|
1632
1432
|
.filter((e) => e != null)
|
|
1633
1433
|
.map((entry) => {
|
|
1634
|
-
if (entry === null) {
|
|
1635
|
-
return null;
|
|
1636
|
-
}
|
|
1637
1434
|
return de_PackagingConfiguration(entry, context);
|
|
1638
1435
|
});
|
|
1639
1436
|
return retVal;
|
|
@@ -1642,192 +1439,173 @@ const de___listOfPackagingGroup = (output, context) => {
|
|
|
1642
1439
|
const retVal = (output || [])
|
|
1643
1440
|
.filter((e) => e != null)
|
|
1644
1441
|
.map((entry) => {
|
|
1645
|
-
if (entry === null) {
|
|
1646
|
-
return null;
|
|
1647
|
-
}
|
|
1648
1442
|
return de_PackagingGroup(entry, context);
|
|
1649
1443
|
});
|
|
1650
1444
|
return retVal;
|
|
1651
1445
|
};
|
|
1652
|
-
const de___mapOf__string = (output, context) => {
|
|
1653
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1654
|
-
if (value === null) {
|
|
1655
|
-
return acc;
|
|
1656
|
-
}
|
|
1657
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1658
|
-
return acc;
|
|
1659
|
-
}, {});
|
|
1660
|
-
};
|
|
1661
1446
|
const de_AssetShallow = (output, context) => {
|
|
1662
|
-
return {
|
|
1663
|
-
Arn:
|
|
1664
|
-
CreatedAt:
|
|
1665
|
-
Id:
|
|
1666
|
-
PackagingGroupId:
|
|
1667
|
-
ResourceId:
|
|
1668
|
-
SourceArn:
|
|
1669
|
-
SourceRoleArn:
|
|
1670
|
-
Tags:
|
|
1671
|
-
};
|
|
1447
|
+
return (0, smithy_client_1.take)(output, {
|
|
1448
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
1449
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
1450
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
1451
|
+
PackagingGroupId: [, smithy_client_1.expectString, `packagingGroupId`],
|
|
1452
|
+
ResourceId: [, smithy_client_1.expectString, `resourceId`],
|
|
1453
|
+
SourceArn: [, smithy_client_1.expectString, `sourceArn`],
|
|
1454
|
+
SourceRoleArn: [, smithy_client_1.expectString, `sourceRoleArn`],
|
|
1455
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1456
|
+
});
|
|
1672
1457
|
};
|
|
1673
1458
|
const de_Authorization = (output, context) => {
|
|
1674
|
-
return {
|
|
1675
|
-
CdnIdentifierSecret:
|
|
1676
|
-
SecretsRoleArn:
|
|
1677
|
-
};
|
|
1459
|
+
return (0, smithy_client_1.take)(output, {
|
|
1460
|
+
CdnIdentifierSecret: [, smithy_client_1.expectString, `cdnIdentifierSecret`],
|
|
1461
|
+
SecretsRoleArn: [, smithy_client_1.expectString, `secretsRoleArn`],
|
|
1462
|
+
});
|
|
1678
1463
|
};
|
|
1679
1464
|
const de_CmafEncryption = (output, context) => {
|
|
1680
|
-
return {
|
|
1681
|
-
ConstantInitializationVector:
|
|
1682
|
-
SpekeKeyProvider:
|
|
1683
|
-
};
|
|
1465
|
+
return (0, smithy_client_1.take)(output, {
|
|
1466
|
+
ConstantInitializationVector: [, smithy_client_1.expectString, `constantInitializationVector`],
|
|
1467
|
+
SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
|
|
1468
|
+
});
|
|
1684
1469
|
};
|
|
1685
1470
|
const de_CmafPackage = (output, context) => {
|
|
1686
|
-
return {
|
|
1687
|
-
Encryption:
|
|
1688
|
-
HlsManifests:
|
|
1689
|
-
IncludeEncoderConfigurationInSegments:
|
|
1690
|
-
SegmentDurationSeconds:
|
|
1691
|
-
};
|
|
1471
|
+
return (0, smithy_client_1.take)(output, {
|
|
1472
|
+
Encryption: (_) => [, de_CmafEncryption(_, context), `encryption`],
|
|
1473
|
+
HlsManifests: (_) => [, de___listOfHlsManifest(_, context), `hlsManifests`],
|
|
1474
|
+
IncludeEncoderConfigurationInSegments: [, smithy_client_1.expectBoolean, `includeEncoderConfigurationInSegments`],
|
|
1475
|
+
SegmentDurationSeconds: [, smithy_client_1.expectInt32, `segmentDurationSeconds`],
|
|
1476
|
+
});
|
|
1692
1477
|
};
|
|
1693
1478
|
const de_DashEncryption = (output, context) => {
|
|
1694
|
-
return {
|
|
1695
|
-
SpekeKeyProvider:
|
|
1696
|
-
};
|
|
1479
|
+
return (0, smithy_client_1.take)(output, {
|
|
1480
|
+
SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
|
|
1481
|
+
});
|
|
1697
1482
|
};
|
|
1698
1483
|
const de_DashManifest = (output, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
ManifestLayout:
|
|
1701
|
-
ManifestName:
|
|
1702
|
-
MinBufferTimeSeconds:
|
|
1703
|
-
Profile:
|
|
1704
|
-
ScteMarkersSource:
|
|
1705
|
-
StreamSelection:
|
|
1706
|
-
};
|
|
1484
|
+
return (0, smithy_client_1.take)(output, {
|
|
1485
|
+
ManifestLayout: [, smithy_client_1.expectString, `manifestLayout`],
|
|
1486
|
+
ManifestName: [, smithy_client_1.expectString, `manifestName`],
|
|
1487
|
+
MinBufferTimeSeconds: [, smithy_client_1.expectInt32, `minBufferTimeSeconds`],
|
|
1488
|
+
Profile: [, smithy_client_1.expectString, `profile`],
|
|
1489
|
+
ScteMarkersSource: [, smithy_client_1.expectString, `scteMarkersSource`],
|
|
1490
|
+
StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
|
|
1491
|
+
});
|
|
1707
1492
|
};
|
|
1708
1493
|
const de_DashPackage = (output, context) => {
|
|
1709
|
-
return {
|
|
1710
|
-
DashManifests:
|
|
1711
|
-
Encryption:
|
|
1712
|
-
IncludeEncoderConfigurationInSegments:
|
|
1713
|
-
IncludeIframeOnlyStream:
|
|
1714
|
-
PeriodTriggers:
|
|
1715
|
-
SegmentDurationSeconds:
|
|
1716
|
-
SegmentTemplateFormat:
|
|
1717
|
-
};
|
|
1494
|
+
return (0, smithy_client_1.take)(output, {
|
|
1495
|
+
DashManifests: (_) => [, de___listOfDashManifest(_, context), `dashManifests`],
|
|
1496
|
+
Encryption: (_) => [, de_DashEncryption(_, context), `encryption`],
|
|
1497
|
+
IncludeEncoderConfigurationInSegments: [, smithy_client_1.expectBoolean, `includeEncoderConfigurationInSegments`],
|
|
1498
|
+
IncludeIframeOnlyStream: [, smithy_client_1.expectBoolean, `includeIframeOnlyStream`],
|
|
1499
|
+
PeriodTriggers: [, smithy_client_1._json, `periodTriggers`],
|
|
1500
|
+
SegmentDurationSeconds: [, smithy_client_1.expectInt32, `segmentDurationSeconds`],
|
|
1501
|
+
SegmentTemplateFormat: [, smithy_client_1.expectString, `segmentTemplateFormat`],
|
|
1502
|
+
});
|
|
1718
1503
|
};
|
|
1719
1504
|
const de_EgressAccessLogs = (output, context) => {
|
|
1720
|
-
return {
|
|
1721
|
-
LogGroupName:
|
|
1722
|
-
};
|
|
1505
|
+
return (0, smithy_client_1.take)(output, {
|
|
1506
|
+
LogGroupName: [, smithy_client_1.expectString, `logGroupName`],
|
|
1507
|
+
});
|
|
1723
1508
|
};
|
|
1724
1509
|
const de_EgressEndpoint = (output, context) => {
|
|
1725
|
-
return {
|
|
1726
|
-
PackagingConfigurationId:
|
|
1727
|
-
Status:
|
|
1728
|
-
Url:
|
|
1729
|
-
};
|
|
1510
|
+
return (0, smithy_client_1.take)(output, {
|
|
1511
|
+
PackagingConfigurationId: [, smithy_client_1.expectString, `packagingConfigurationId`],
|
|
1512
|
+
Status: [, smithy_client_1.expectString, `status`],
|
|
1513
|
+
Url: [, smithy_client_1.expectString, `url`],
|
|
1514
|
+
});
|
|
1730
1515
|
};
|
|
1731
1516
|
const de_EncryptionContractConfiguration = (output, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
PresetSpeke20Audio:
|
|
1734
|
-
PresetSpeke20Video:
|
|
1735
|
-
};
|
|
1517
|
+
return (0, smithy_client_1.take)(output, {
|
|
1518
|
+
PresetSpeke20Audio: [, smithy_client_1.expectString, `presetSpeke20Audio`],
|
|
1519
|
+
PresetSpeke20Video: [, smithy_client_1.expectString, `presetSpeke20Video`],
|
|
1520
|
+
});
|
|
1736
1521
|
};
|
|
1737
1522
|
const de_HlsEncryption = (output, context) => {
|
|
1738
|
-
return {
|
|
1739
|
-
ConstantInitializationVector:
|
|
1740
|
-
EncryptionMethod:
|
|
1741
|
-
SpekeKeyProvider:
|
|
1742
|
-
};
|
|
1523
|
+
return (0, smithy_client_1.take)(output, {
|
|
1524
|
+
ConstantInitializationVector: [, smithy_client_1.expectString, `constantInitializationVector`],
|
|
1525
|
+
EncryptionMethod: [, smithy_client_1.expectString, `encryptionMethod`],
|
|
1526
|
+
SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
|
|
1527
|
+
});
|
|
1743
1528
|
};
|
|
1744
1529
|
const de_HlsManifest = (output, context) => {
|
|
1745
|
-
return {
|
|
1746
|
-
AdMarkers:
|
|
1747
|
-
IncludeIframeOnlyStream:
|
|
1748
|
-
ManifestName:
|
|
1749
|
-
ProgramDateTimeIntervalSeconds:
|
|
1750
|
-
RepeatExtXKey:
|
|
1751
|
-
StreamSelection:
|
|
1752
|
-
};
|
|
1530
|
+
return (0, smithy_client_1.take)(output, {
|
|
1531
|
+
AdMarkers: [, smithy_client_1.expectString, `adMarkers`],
|
|
1532
|
+
IncludeIframeOnlyStream: [, smithy_client_1.expectBoolean, `includeIframeOnlyStream`],
|
|
1533
|
+
ManifestName: [, smithy_client_1.expectString, `manifestName`],
|
|
1534
|
+
ProgramDateTimeIntervalSeconds: [, smithy_client_1.expectInt32, `programDateTimeIntervalSeconds`],
|
|
1535
|
+
RepeatExtXKey: [, smithy_client_1.expectBoolean, `repeatExtXKey`],
|
|
1536
|
+
StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
|
|
1537
|
+
});
|
|
1753
1538
|
};
|
|
1754
1539
|
const de_HlsPackage = (output, context) => {
|
|
1755
|
-
return {
|
|
1756
|
-
Encryption:
|
|
1757
|
-
HlsManifests:
|
|
1758
|
-
IncludeDvbSubtitles:
|
|
1759
|
-
SegmentDurationSeconds:
|
|
1760
|
-
UseAudioRenditionGroup:
|
|
1761
|
-
};
|
|
1540
|
+
return (0, smithy_client_1.take)(output, {
|
|
1541
|
+
Encryption: (_) => [, de_HlsEncryption(_, context), `encryption`],
|
|
1542
|
+
HlsManifests: (_) => [, de___listOfHlsManifest(_, context), `hlsManifests`],
|
|
1543
|
+
IncludeDvbSubtitles: [, smithy_client_1.expectBoolean, `includeDvbSubtitles`],
|
|
1544
|
+
SegmentDurationSeconds: [, smithy_client_1.expectInt32, `segmentDurationSeconds`],
|
|
1545
|
+
UseAudioRenditionGroup: [, smithy_client_1.expectBoolean, `useAudioRenditionGroup`],
|
|
1546
|
+
});
|
|
1762
1547
|
};
|
|
1763
1548
|
const de_MssEncryption = (output, context) => {
|
|
1764
|
-
return {
|
|
1765
|
-
SpekeKeyProvider:
|
|
1766
|
-
};
|
|
1549
|
+
return (0, smithy_client_1.take)(output, {
|
|
1550
|
+
SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
|
|
1551
|
+
});
|
|
1767
1552
|
};
|
|
1768
1553
|
const de_MssManifest = (output, context) => {
|
|
1769
|
-
return {
|
|
1770
|
-
ManifestName:
|
|
1771
|
-
StreamSelection:
|
|
1772
|
-
};
|
|
1554
|
+
return (0, smithy_client_1.take)(output, {
|
|
1555
|
+
ManifestName: [, smithy_client_1.expectString, `manifestName`],
|
|
1556
|
+
StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
|
|
1557
|
+
});
|
|
1773
1558
|
};
|
|
1774
1559
|
const de_MssPackage = (output, context) => {
|
|
1775
|
-
return {
|
|
1776
|
-
Encryption:
|
|
1777
|
-
MssManifests:
|
|
1778
|
-
SegmentDurationSeconds:
|
|
1779
|
-
};
|
|
1560
|
+
return (0, smithy_client_1.take)(output, {
|
|
1561
|
+
Encryption: (_) => [, de_MssEncryption(_, context), `encryption`],
|
|
1562
|
+
MssManifests: (_) => [, de___listOfMssManifest(_, context), `mssManifests`],
|
|
1563
|
+
SegmentDurationSeconds: [, smithy_client_1.expectInt32, `segmentDurationSeconds`],
|
|
1564
|
+
});
|
|
1780
1565
|
};
|
|
1781
1566
|
const de_PackagingConfiguration = (output, context) => {
|
|
1782
|
-
return {
|
|
1783
|
-
Arn:
|
|
1784
|
-
CmafPackage:
|
|
1785
|
-
CreatedAt:
|
|
1786
|
-
DashPackage:
|
|
1787
|
-
HlsPackage:
|
|
1788
|
-
Id:
|
|
1789
|
-
MssPackage:
|
|
1790
|
-
PackagingGroupId:
|
|
1791
|
-
Tags:
|
|
1792
|
-
};
|
|
1567
|
+
return (0, smithy_client_1.take)(output, {
|
|
1568
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
1569
|
+
CmafPackage: (_) => [, de_CmafPackage(_, context), `cmafPackage`],
|
|
1570
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
1571
|
+
DashPackage: (_) => [, de_DashPackage(_, context), `dashPackage`],
|
|
1572
|
+
HlsPackage: (_) => [, de_HlsPackage(_, context), `hlsPackage`],
|
|
1573
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
1574
|
+
MssPackage: (_) => [, de_MssPackage(_, context), `mssPackage`],
|
|
1575
|
+
PackagingGroupId: [, smithy_client_1.expectString, `packagingGroupId`],
|
|
1576
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1577
|
+
});
|
|
1793
1578
|
};
|
|
1794
1579
|
const de_PackagingGroup = (output, context) => {
|
|
1795
|
-
return {
|
|
1796
|
-
ApproximateAssetCount:
|
|
1797
|
-
Arn:
|
|
1798
|
-
Authorization:
|
|
1799
|
-
CreatedAt:
|
|
1800
|
-
DomainName:
|
|
1801
|
-
EgressAccessLogs:
|
|
1802
|
-
Id:
|
|
1803
|
-
Tags:
|
|
1804
|
-
};
|
|
1580
|
+
return (0, smithy_client_1.take)(output, {
|
|
1581
|
+
ApproximateAssetCount: [, smithy_client_1.expectInt32, `approximateAssetCount`],
|
|
1582
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
1583
|
+
Authorization: (_) => [, de_Authorization(_, context), `authorization`],
|
|
1584
|
+
CreatedAt: [, smithy_client_1.expectString, `createdAt`],
|
|
1585
|
+
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
1586
|
+
EgressAccessLogs: (_) => [, de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
1587
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
1588
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1589
|
+
});
|
|
1805
1590
|
};
|
|
1806
1591
|
const de_SpekeKeyProvider = (output, context) => {
|
|
1807
|
-
return {
|
|
1808
|
-
EncryptionContractConfiguration:
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1592
|
+
return (0, smithy_client_1.take)(output, {
|
|
1593
|
+
EncryptionContractConfiguration: (_) => [
|
|
1594
|
+
,
|
|
1595
|
+
de_EncryptionContractConfiguration(_, context),
|
|
1596
|
+
`encryptionContractConfiguration`,
|
|
1597
|
+
],
|
|
1598
|
+
RoleArn: [, smithy_client_1.expectString, `roleArn`],
|
|
1599
|
+
SystemIds: [, smithy_client_1._json, `systemIds`],
|
|
1600
|
+
Url: [, smithy_client_1.expectString, `url`],
|
|
1601
|
+
});
|
|
1815
1602
|
};
|
|
1816
1603
|
const de_StreamSelection = (output, context) => {
|
|
1817
|
-
return {
|
|
1818
|
-
MaxVideoBitsPerSecond:
|
|
1819
|
-
MinVideoBitsPerSecond:
|
|
1820
|
-
StreamOrder:
|
|
1821
|
-
};
|
|
1822
|
-
};
|
|
1823
|
-
const de_Tags = (output, context) => {
|
|
1824
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1825
|
-
if (value === null) {
|
|
1826
|
-
return acc;
|
|
1827
|
-
}
|
|
1828
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1829
|
-
return acc;
|
|
1830
|
-
}, {});
|
|
1604
|
+
return (0, smithy_client_1.take)(output, {
|
|
1605
|
+
MaxVideoBitsPerSecond: [, smithy_client_1.expectInt32, `maxVideoBitsPerSecond`],
|
|
1606
|
+
MinVideoBitsPerSecond: [, smithy_client_1.expectInt32, `minVideoBitsPerSecond`],
|
|
1607
|
+
StreamOrder: [, smithy_client_1.expectString, `streamOrder`],
|
|
1608
|
+
});
|
|
1831
1609
|
};
|
|
1832
1610
|
const deserializeMetadata = (output) => ({
|
|
1833
1611
|
httpStatusCode: output.statusCode,
|