@aws-sdk/client-mediapackage 3.312.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 +566 -903
- package/dist-es/protocols/Aws_restJson1.js +538 -875
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MediaPackageServiceException as __BaseException } from "../models/MediaPackageServiceException";
|
|
4
4
|
import { ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnprocessableEntityException, } from "../models/models_0";
|
|
5
5
|
export const se_ConfigureLogsCommand = async (input, context) => {
|
|
@@ -10,12 +10,10 @@ export const se_ConfigureLogsCommand = async (input, context) => {
|
|
|
10
10
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}/configure_logs";
|
|
11
11
|
resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}),
|
|
18
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
|
|
15
|
+
ingressAccessLogs: [, (_) => se_IngressAccessLogs(_, context), `IngressAccessLogs`],
|
|
16
|
+
}));
|
|
19
17
|
return new __HttpRequest({
|
|
20
18
|
protocol,
|
|
21
19
|
hostname,
|
|
@@ -33,11 +31,11 @@ export const se_CreateChannelCommand = async (input, context) => {
|
|
|
33
31
|
};
|
|
34
32
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
35
33
|
let body;
|
|
36
|
-
body = JSON.stringify({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
34
|
+
body = JSON.stringify(take(input, {
|
|
35
|
+
description: [, , `Description`],
|
|
36
|
+
id: [, , `Id`],
|
|
37
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
38
|
+
}));
|
|
41
39
|
return new __HttpRequest({
|
|
42
40
|
protocol,
|
|
43
41
|
hostname,
|
|
@@ -55,13 +53,13 @@ export const se_CreateHarvestJobCommand = async (input, context) => {
|
|
|
55
53
|
};
|
|
56
54
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/harvest_jobs";
|
|
57
55
|
let body;
|
|
58
|
-
body = JSON.stringify({
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
56
|
+
body = JSON.stringify(take(input, {
|
|
57
|
+
endTime: [, , `EndTime`],
|
|
58
|
+
id: [, , `Id`],
|
|
59
|
+
originEndpointId: [, , `OriginEndpointId`],
|
|
60
|
+
s3Destination: [, (_) => se_S3Destination(_, context), `S3Destination`],
|
|
61
|
+
startTime: [, , `StartTime`],
|
|
62
|
+
}));
|
|
65
63
|
return new __HttpRequest({
|
|
66
64
|
protocol,
|
|
67
65
|
hostname,
|
|
@@ -79,24 +77,22 @@ export const se_CreateOriginEndpointCommand = async (input, context) => {
|
|
|
79
77
|
};
|
|
80
78
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints";
|
|
81
79
|
let body;
|
|
82
|
-
body = JSON.stringify({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
...(input.Whitelist != null && { whitelist: se___listOf__string(input.Whitelist, context) }),
|
|
99
|
-
});
|
|
80
|
+
body = JSON.stringify(take(input, {
|
|
81
|
+
authorization: [, (_) => se_Authorization(_, context), `Authorization`],
|
|
82
|
+
channelId: [, , `ChannelId`],
|
|
83
|
+
cmafPackage: [, (_) => se_CmafPackageCreateOrUpdateParameters(_, context), `CmafPackage`],
|
|
84
|
+
dashPackage: [, (_) => se_DashPackage(_, context), `DashPackage`],
|
|
85
|
+
description: [, , `Description`],
|
|
86
|
+
hlsPackage: [, (_) => se_HlsPackage(_, context), `HlsPackage`],
|
|
87
|
+
id: [, , `Id`],
|
|
88
|
+
manifestName: [, , `ManifestName`],
|
|
89
|
+
mssPackage: [, (_) => se_MssPackage(_, context), `MssPackage`],
|
|
90
|
+
origination: [, , `Origination`],
|
|
91
|
+
startoverWindowSeconds: [, , `StartoverWindowSeconds`],
|
|
92
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
93
|
+
timeDelaySeconds: [, , `TimeDelaySeconds`],
|
|
94
|
+
whitelist: [, (_) => _json(_), `Whitelist`],
|
|
95
|
+
}));
|
|
100
96
|
return new __HttpRequest({
|
|
101
97
|
protocol,
|
|
102
98
|
hostname,
|
|
@@ -308,9 +304,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
308
304
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
309
305
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
310
306
|
let body;
|
|
311
|
-
body = JSON.stringify({
|
|
312
|
-
|
|
313
|
-
});
|
|
307
|
+
body = JSON.stringify(take(input, {
|
|
308
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
309
|
+
}));
|
|
314
310
|
return new __HttpRequest({
|
|
315
311
|
protocol,
|
|
316
312
|
hostname,
|
|
@@ -352,9 +348,9 @@ export const se_UpdateChannelCommand = async (input, context) => {
|
|
|
352
348
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}";
|
|
353
349
|
resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
354
350
|
let body;
|
|
355
|
-
body = JSON.stringify({
|
|
356
|
-
|
|
357
|
-
});
|
|
351
|
+
body = JSON.stringify(take(input, {
|
|
352
|
+
description: [, , `Description`],
|
|
353
|
+
}));
|
|
358
354
|
return new __HttpRequest({
|
|
359
355
|
protocol,
|
|
360
356
|
hostname,
|
|
@@ -373,21 +369,19 @@ export const se_UpdateOriginEndpointCommand = async (input, context) => {
|
|
|
373
369
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints/{Id}";
|
|
374
370
|
resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
375
371
|
let body;
|
|
376
|
-
body = JSON.stringify({
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
...(input.Whitelist != null && { whitelist: se___listOf__string(input.Whitelist, context) }),
|
|
390
|
-
});
|
|
372
|
+
body = JSON.stringify(take(input, {
|
|
373
|
+
authorization: [, (_) => se_Authorization(_, context), `Authorization`],
|
|
374
|
+
cmafPackage: [, (_) => se_CmafPackageCreateOrUpdateParameters(_, context), `CmafPackage`],
|
|
375
|
+
dashPackage: [, (_) => se_DashPackage(_, context), `DashPackage`],
|
|
376
|
+
description: [, , `Description`],
|
|
377
|
+
hlsPackage: [, (_) => se_HlsPackage(_, context), `HlsPackage`],
|
|
378
|
+
manifestName: [, , `ManifestName`],
|
|
379
|
+
mssPackage: [, (_) => se_MssPackage(_, context), `MssPackage`],
|
|
380
|
+
origination: [, , `Origination`],
|
|
381
|
+
startoverWindowSeconds: [, , `StartoverWindowSeconds`],
|
|
382
|
+
timeDelaySeconds: [, , `TimeDelaySeconds`],
|
|
383
|
+
whitelist: [, (_) => _json(_), `Whitelist`],
|
|
384
|
+
}));
|
|
391
385
|
return new __HttpRequest({
|
|
392
386
|
protocol,
|
|
393
387
|
hostname,
|
|
@@ -406,30 +400,17 @@ export const de_ConfigureLogsCommand = async (output, context) => {
|
|
|
406
400
|
$metadata: deserializeMetadata(output),
|
|
407
401
|
});
|
|
408
402
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
if (data.hlsIngest != null) {
|
|
422
|
-
contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
|
|
423
|
-
}
|
|
424
|
-
if (data.id != null) {
|
|
425
|
-
contents.Id = __expectString(data.id);
|
|
426
|
-
}
|
|
427
|
-
if (data.ingressAccessLogs != null) {
|
|
428
|
-
contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
|
|
429
|
-
}
|
|
430
|
-
if (data.tags != null) {
|
|
431
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
432
|
-
}
|
|
403
|
+
const doc = take(data, {
|
|
404
|
+
Arn: [, __expectString, `arn`],
|
|
405
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
406
|
+
Description: [, __expectString, `description`],
|
|
407
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
408
|
+
HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
|
|
409
|
+
Id: [, __expectString, `id`],
|
|
410
|
+
IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
|
|
411
|
+
Tags: [, _json, `tags`],
|
|
412
|
+
});
|
|
413
|
+
Object.assign(contents, doc);
|
|
433
414
|
return contents;
|
|
434
415
|
};
|
|
435
416
|
const de_ConfigureLogsCommandError = async (output, context) => {
|
|
@@ -459,10 +440,9 @@ const de_ConfigureLogsCommandError = async (output, context) => {
|
|
|
459
440
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
460
441
|
default:
|
|
461
442
|
const parsedBody = parsedOutput.body;
|
|
462
|
-
throwDefaultError({
|
|
443
|
+
return throwDefaultError({
|
|
463
444
|
output,
|
|
464
445
|
parsedBody,
|
|
465
|
-
exceptionCtor: __BaseException,
|
|
466
446
|
errorCode,
|
|
467
447
|
});
|
|
468
448
|
}
|
|
@@ -475,30 +455,17 @@ export const de_CreateChannelCommand = async (output, context) => {
|
|
|
475
455
|
$metadata: deserializeMetadata(output),
|
|
476
456
|
});
|
|
477
457
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
490
|
-
if (data.hlsIngest != null) {
|
|
491
|
-
contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
|
|
492
|
-
}
|
|
493
|
-
if (data.id != null) {
|
|
494
|
-
contents.Id = __expectString(data.id);
|
|
495
|
-
}
|
|
496
|
-
if (data.ingressAccessLogs != null) {
|
|
497
|
-
contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
|
|
498
|
-
}
|
|
499
|
-
if (data.tags != null) {
|
|
500
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
501
|
-
}
|
|
458
|
+
const doc = take(data, {
|
|
459
|
+
Arn: [, __expectString, `arn`],
|
|
460
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
461
|
+
Description: [, __expectString, `description`],
|
|
462
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
463
|
+
HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
|
|
464
|
+
Id: [, __expectString, `id`],
|
|
465
|
+
IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
|
|
466
|
+
Tags: [, _json, `tags`],
|
|
467
|
+
});
|
|
468
|
+
Object.assign(contents, doc);
|
|
502
469
|
return contents;
|
|
503
470
|
};
|
|
504
471
|
const de_CreateChannelCommandError = async (output, context) => {
|
|
@@ -528,10 +495,9 @@ const de_CreateChannelCommandError = async (output, context) => {
|
|
|
528
495
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
529
496
|
default:
|
|
530
497
|
const parsedBody = parsedOutput.body;
|
|
531
|
-
throwDefaultError({
|
|
498
|
+
return throwDefaultError({
|
|
532
499
|
output,
|
|
533
500
|
parsedBody,
|
|
534
|
-
exceptionCtor: __BaseException,
|
|
535
501
|
errorCode,
|
|
536
502
|
});
|
|
537
503
|
}
|
|
@@ -544,33 +510,18 @@ export const de_CreateHarvestJobCommand = async (output, context) => {
|
|
|
544
510
|
$metadata: deserializeMetadata(output),
|
|
545
511
|
});
|
|
546
512
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
if (data.id != null) {
|
|
560
|
-
contents.Id = __expectString(data.id);
|
|
561
|
-
}
|
|
562
|
-
if (data.originEndpointId != null) {
|
|
563
|
-
contents.OriginEndpointId = __expectString(data.originEndpointId);
|
|
564
|
-
}
|
|
565
|
-
if (data.s3Destination != null) {
|
|
566
|
-
contents.S3Destination = de_S3Destination(data.s3Destination, context);
|
|
567
|
-
}
|
|
568
|
-
if (data.startTime != null) {
|
|
569
|
-
contents.StartTime = __expectString(data.startTime);
|
|
570
|
-
}
|
|
571
|
-
if (data.status != null) {
|
|
572
|
-
contents.Status = __expectString(data.status);
|
|
573
|
-
}
|
|
513
|
+
const doc = take(data, {
|
|
514
|
+
Arn: [, __expectString, `arn`],
|
|
515
|
+
ChannelId: [, __expectString, `channelId`],
|
|
516
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
517
|
+
EndTime: [, __expectString, `endTime`],
|
|
518
|
+
Id: [, __expectString, `id`],
|
|
519
|
+
OriginEndpointId: [, __expectString, `originEndpointId`],
|
|
520
|
+
S3Destination: [, (_) => de_S3Destination(_, context), `s3Destination`],
|
|
521
|
+
StartTime: [, __expectString, `startTime`],
|
|
522
|
+
Status: [, __expectString, `status`],
|
|
523
|
+
});
|
|
524
|
+
Object.assign(contents, doc);
|
|
574
525
|
return contents;
|
|
575
526
|
};
|
|
576
527
|
const de_CreateHarvestJobCommandError = async (output, context) => {
|
|
@@ -600,10 +551,9 @@ const de_CreateHarvestJobCommandError = async (output, context) => {
|
|
|
600
551
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
601
552
|
default:
|
|
602
553
|
const parsedBody = parsedOutput.body;
|
|
603
|
-
throwDefaultError({
|
|
554
|
+
return throwDefaultError({
|
|
604
555
|
output,
|
|
605
556
|
parsedBody,
|
|
606
|
-
exceptionCtor: __BaseException,
|
|
607
557
|
errorCode,
|
|
608
558
|
});
|
|
609
559
|
}
|
|
@@ -616,57 +566,26 @@ export const de_CreateOriginEndpointCommand = async (output, context) => {
|
|
|
616
566
|
$metadata: deserializeMetadata(output),
|
|
617
567
|
});
|
|
618
568
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
}
|
|
640
|
-
if (data.hlsPackage != null) {
|
|
641
|
-
contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
|
|
642
|
-
}
|
|
643
|
-
if (data.id != null) {
|
|
644
|
-
contents.Id = __expectString(data.id);
|
|
645
|
-
}
|
|
646
|
-
if (data.manifestName != null) {
|
|
647
|
-
contents.ManifestName = __expectString(data.manifestName);
|
|
648
|
-
}
|
|
649
|
-
if (data.mssPackage != null) {
|
|
650
|
-
contents.MssPackage = de_MssPackage(data.mssPackage, context);
|
|
651
|
-
}
|
|
652
|
-
if (data.origination != null) {
|
|
653
|
-
contents.Origination = __expectString(data.origination);
|
|
654
|
-
}
|
|
655
|
-
if (data.startoverWindowSeconds != null) {
|
|
656
|
-
contents.StartoverWindowSeconds = __expectInt32(data.startoverWindowSeconds);
|
|
657
|
-
}
|
|
658
|
-
if (data.tags != null) {
|
|
659
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
660
|
-
}
|
|
661
|
-
if (data.timeDelaySeconds != null) {
|
|
662
|
-
contents.TimeDelaySeconds = __expectInt32(data.timeDelaySeconds);
|
|
663
|
-
}
|
|
664
|
-
if (data.url != null) {
|
|
665
|
-
contents.Url = __expectString(data.url);
|
|
666
|
-
}
|
|
667
|
-
if (data.whitelist != null) {
|
|
668
|
-
contents.Whitelist = de___listOf__string(data.whitelist, context);
|
|
669
|
-
}
|
|
569
|
+
const doc = take(data, {
|
|
570
|
+
Arn: [, __expectString, `arn`],
|
|
571
|
+
Authorization: [, (_) => de_Authorization(_, context), `authorization`],
|
|
572
|
+
ChannelId: [, __expectString, `channelId`],
|
|
573
|
+
CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
|
|
574
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
575
|
+
DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
|
|
576
|
+
Description: [, __expectString, `description`],
|
|
577
|
+
HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
|
|
578
|
+
Id: [, __expectString, `id`],
|
|
579
|
+
ManifestName: [, __expectString, `manifestName`],
|
|
580
|
+
MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
|
|
581
|
+
Origination: [, __expectString, `origination`],
|
|
582
|
+
StartoverWindowSeconds: [, __expectInt32, `startoverWindowSeconds`],
|
|
583
|
+
Tags: [, _json, `tags`],
|
|
584
|
+
TimeDelaySeconds: [, __expectInt32, `timeDelaySeconds`],
|
|
585
|
+
Url: [, __expectString, `url`],
|
|
586
|
+
Whitelist: [, _json, `whitelist`],
|
|
587
|
+
});
|
|
588
|
+
Object.assign(contents, doc);
|
|
670
589
|
return contents;
|
|
671
590
|
};
|
|
672
591
|
const de_CreateOriginEndpointCommandError = async (output, context) => {
|
|
@@ -696,10 +615,9 @@ const de_CreateOriginEndpointCommandError = async (output, context) => {
|
|
|
696
615
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
697
616
|
default:
|
|
698
617
|
const parsedBody = parsedOutput.body;
|
|
699
|
-
throwDefaultError({
|
|
618
|
+
return throwDefaultError({
|
|
700
619
|
output,
|
|
701
620
|
parsedBody,
|
|
702
|
-
exceptionCtor: __BaseException,
|
|
703
621
|
errorCode,
|
|
704
622
|
});
|
|
705
623
|
}
|
|
@@ -741,10 +659,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
|
|
|
741
659
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
742
660
|
default:
|
|
743
661
|
const parsedBody = parsedOutput.body;
|
|
744
|
-
throwDefaultError({
|
|
662
|
+
return throwDefaultError({
|
|
745
663
|
output,
|
|
746
664
|
parsedBody,
|
|
747
|
-
exceptionCtor: __BaseException,
|
|
748
665
|
errorCode,
|
|
749
666
|
});
|
|
750
667
|
}
|
|
@@ -786,10 +703,9 @@ const de_DeleteOriginEndpointCommandError = async (output, context) => {
|
|
|
786
703
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
787
704
|
default:
|
|
788
705
|
const parsedBody = parsedOutput.body;
|
|
789
|
-
throwDefaultError({
|
|
706
|
+
return throwDefaultError({
|
|
790
707
|
output,
|
|
791
708
|
parsedBody,
|
|
792
|
-
exceptionCtor: __BaseException,
|
|
793
709
|
errorCode,
|
|
794
710
|
});
|
|
795
711
|
}
|
|
@@ -802,30 +718,17 @@ export const de_DescribeChannelCommand = async (output, context) => {
|
|
|
802
718
|
$metadata: deserializeMetadata(output),
|
|
803
719
|
});
|
|
804
720
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
}
|
|
817
|
-
if (data.hlsIngest != null) {
|
|
818
|
-
contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
|
|
819
|
-
}
|
|
820
|
-
if (data.id != null) {
|
|
821
|
-
contents.Id = __expectString(data.id);
|
|
822
|
-
}
|
|
823
|
-
if (data.ingressAccessLogs != null) {
|
|
824
|
-
contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
|
|
825
|
-
}
|
|
826
|
-
if (data.tags != null) {
|
|
827
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
828
|
-
}
|
|
721
|
+
const doc = take(data, {
|
|
722
|
+
Arn: [, __expectString, `arn`],
|
|
723
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
724
|
+
Description: [, __expectString, `description`],
|
|
725
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
726
|
+
HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
|
|
727
|
+
Id: [, __expectString, `id`],
|
|
728
|
+
IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
|
|
729
|
+
Tags: [, _json, `tags`],
|
|
730
|
+
});
|
|
731
|
+
Object.assign(contents, doc);
|
|
829
732
|
return contents;
|
|
830
733
|
};
|
|
831
734
|
const de_DescribeChannelCommandError = async (output, context) => {
|
|
@@ -855,10 +758,9 @@ const de_DescribeChannelCommandError = async (output, context) => {
|
|
|
855
758
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
856
759
|
default:
|
|
857
760
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
throwDefaultError({
|
|
761
|
+
return throwDefaultError({
|
|
859
762
|
output,
|
|
860
763
|
parsedBody,
|
|
861
|
-
exceptionCtor: __BaseException,
|
|
862
764
|
errorCode,
|
|
863
765
|
});
|
|
864
766
|
}
|
|
@@ -871,33 +773,18 @@ export const de_DescribeHarvestJobCommand = async (output, context) => {
|
|
|
871
773
|
$metadata: deserializeMetadata(output),
|
|
872
774
|
});
|
|
873
775
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
if (data.id != null) {
|
|
887
|
-
contents.Id = __expectString(data.id);
|
|
888
|
-
}
|
|
889
|
-
if (data.originEndpointId != null) {
|
|
890
|
-
contents.OriginEndpointId = __expectString(data.originEndpointId);
|
|
891
|
-
}
|
|
892
|
-
if (data.s3Destination != null) {
|
|
893
|
-
contents.S3Destination = de_S3Destination(data.s3Destination, context);
|
|
894
|
-
}
|
|
895
|
-
if (data.startTime != null) {
|
|
896
|
-
contents.StartTime = __expectString(data.startTime);
|
|
897
|
-
}
|
|
898
|
-
if (data.status != null) {
|
|
899
|
-
contents.Status = __expectString(data.status);
|
|
900
|
-
}
|
|
776
|
+
const doc = take(data, {
|
|
777
|
+
Arn: [, __expectString, `arn`],
|
|
778
|
+
ChannelId: [, __expectString, `channelId`],
|
|
779
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
780
|
+
EndTime: [, __expectString, `endTime`],
|
|
781
|
+
Id: [, __expectString, `id`],
|
|
782
|
+
OriginEndpointId: [, __expectString, `originEndpointId`],
|
|
783
|
+
S3Destination: [, (_) => de_S3Destination(_, context), `s3Destination`],
|
|
784
|
+
StartTime: [, __expectString, `startTime`],
|
|
785
|
+
Status: [, __expectString, `status`],
|
|
786
|
+
});
|
|
787
|
+
Object.assign(contents, doc);
|
|
901
788
|
return contents;
|
|
902
789
|
};
|
|
903
790
|
const de_DescribeHarvestJobCommandError = async (output, context) => {
|
|
@@ -927,10 +814,9 @@ const de_DescribeHarvestJobCommandError = async (output, context) => {
|
|
|
927
814
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
928
815
|
default:
|
|
929
816
|
const parsedBody = parsedOutput.body;
|
|
930
|
-
throwDefaultError({
|
|
817
|
+
return throwDefaultError({
|
|
931
818
|
output,
|
|
932
819
|
parsedBody,
|
|
933
|
-
exceptionCtor: __BaseException,
|
|
934
820
|
errorCode,
|
|
935
821
|
});
|
|
936
822
|
}
|
|
@@ -943,57 +829,26 @@ export const de_DescribeOriginEndpointCommand = async (output, context) => {
|
|
|
943
829
|
$metadata: deserializeMetadata(output),
|
|
944
830
|
});
|
|
945
831
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}
|
|
967
|
-
if (data.hlsPackage != null) {
|
|
968
|
-
contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
|
|
969
|
-
}
|
|
970
|
-
if (data.id != null) {
|
|
971
|
-
contents.Id = __expectString(data.id);
|
|
972
|
-
}
|
|
973
|
-
if (data.manifestName != null) {
|
|
974
|
-
contents.ManifestName = __expectString(data.manifestName);
|
|
975
|
-
}
|
|
976
|
-
if (data.mssPackage != null) {
|
|
977
|
-
contents.MssPackage = de_MssPackage(data.mssPackage, context);
|
|
978
|
-
}
|
|
979
|
-
if (data.origination != null) {
|
|
980
|
-
contents.Origination = __expectString(data.origination);
|
|
981
|
-
}
|
|
982
|
-
if (data.startoverWindowSeconds != null) {
|
|
983
|
-
contents.StartoverWindowSeconds = __expectInt32(data.startoverWindowSeconds);
|
|
984
|
-
}
|
|
985
|
-
if (data.tags != null) {
|
|
986
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
987
|
-
}
|
|
988
|
-
if (data.timeDelaySeconds != null) {
|
|
989
|
-
contents.TimeDelaySeconds = __expectInt32(data.timeDelaySeconds);
|
|
990
|
-
}
|
|
991
|
-
if (data.url != null) {
|
|
992
|
-
contents.Url = __expectString(data.url);
|
|
993
|
-
}
|
|
994
|
-
if (data.whitelist != null) {
|
|
995
|
-
contents.Whitelist = de___listOf__string(data.whitelist, context);
|
|
996
|
-
}
|
|
832
|
+
const doc = take(data, {
|
|
833
|
+
Arn: [, __expectString, `arn`],
|
|
834
|
+
Authorization: [, (_) => de_Authorization(_, context), `authorization`],
|
|
835
|
+
ChannelId: [, __expectString, `channelId`],
|
|
836
|
+
CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
|
|
837
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
838
|
+
DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
|
|
839
|
+
Description: [, __expectString, `description`],
|
|
840
|
+
HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
|
|
841
|
+
Id: [, __expectString, `id`],
|
|
842
|
+
ManifestName: [, __expectString, `manifestName`],
|
|
843
|
+
MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
|
|
844
|
+
Origination: [, __expectString, `origination`],
|
|
845
|
+
StartoverWindowSeconds: [, __expectInt32, `startoverWindowSeconds`],
|
|
846
|
+
Tags: [, _json, `tags`],
|
|
847
|
+
TimeDelaySeconds: [, __expectInt32, `timeDelaySeconds`],
|
|
848
|
+
Url: [, __expectString, `url`],
|
|
849
|
+
Whitelist: [, _json, `whitelist`],
|
|
850
|
+
});
|
|
851
|
+
Object.assign(contents, doc);
|
|
997
852
|
return contents;
|
|
998
853
|
};
|
|
999
854
|
const de_DescribeOriginEndpointCommandError = async (output, context) => {
|
|
@@ -1023,10 +878,9 @@ const de_DescribeOriginEndpointCommandError = async (output, context) => {
|
|
|
1023
878
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1024
879
|
default:
|
|
1025
880
|
const parsedBody = parsedOutput.body;
|
|
1026
|
-
throwDefaultError({
|
|
881
|
+
return throwDefaultError({
|
|
1027
882
|
output,
|
|
1028
883
|
parsedBody,
|
|
1029
|
-
exceptionCtor: __BaseException,
|
|
1030
884
|
errorCode,
|
|
1031
885
|
});
|
|
1032
886
|
}
|
|
@@ -1039,12 +893,11 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
1039
893
|
$metadata: deserializeMetadata(output),
|
|
1040
894
|
});
|
|
1041
895
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
}
|
|
896
|
+
const doc = take(data, {
|
|
897
|
+
Channels: [, (_) => de___listOfChannel(_, context), `channels`],
|
|
898
|
+
NextToken: [, __expectString, `nextToken`],
|
|
899
|
+
});
|
|
900
|
+
Object.assign(contents, doc);
|
|
1048
901
|
return contents;
|
|
1049
902
|
};
|
|
1050
903
|
const de_ListChannelsCommandError = async (output, context) => {
|
|
@@ -1074,10 +927,9 @@ const de_ListChannelsCommandError = async (output, context) => {
|
|
|
1074
927
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1075
928
|
default:
|
|
1076
929
|
const parsedBody = parsedOutput.body;
|
|
1077
|
-
throwDefaultError({
|
|
930
|
+
return throwDefaultError({
|
|
1078
931
|
output,
|
|
1079
932
|
parsedBody,
|
|
1080
|
-
exceptionCtor: __BaseException,
|
|
1081
933
|
errorCode,
|
|
1082
934
|
});
|
|
1083
935
|
}
|
|
@@ -1090,12 +942,11 @@ export const de_ListHarvestJobsCommand = async (output, context) => {
|
|
|
1090
942
|
$metadata: deserializeMetadata(output),
|
|
1091
943
|
});
|
|
1092
944
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
}
|
|
945
|
+
const doc = take(data, {
|
|
946
|
+
HarvestJobs: [, (_) => de___listOfHarvestJob(_, context), `harvestJobs`],
|
|
947
|
+
NextToken: [, __expectString, `nextToken`],
|
|
948
|
+
});
|
|
949
|
+
Object.assign(contents, doc);
|
|
1099
950
|
return contents;
|
|
1100
951
|
};
|
|
1101
952
|
const de_ListHarvestJobsCommandError = async (output, context) => {
|
|
@@ -1125,10 +976,9 @@ const de_ListHarvestJobsCommandError = async (output, context) => {
|
|
|
1125
976
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1126
977
|
default:
|
|
1127
978
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
throwDefaultError({
|
|
979
|
+
return throwDefaultError({
|
|
1129
980
|
output,
|
|
1130
981
|
parsedBody,
|
|
1131
|
-
exceptionCtor: __BaseException,
|
|
1132
982
|
errorCode,
|
|
1133
983
|
});
|
|
1134
984
|
}
|
|
@@ -1141,12 +991,11 @@ export const de_ListOriginEndpointsCommand = async (output, context) => {
|
|
|
1141
991
|
$metadata: deserializeMetadata(output),
|
|
1142
992
|
});
|
|
1143
993
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
}
|
|
994
|
+
const doc = take(data, {
|
|
995
|
+
NextToken: [, __expectString, `nextToken`],
|
|
996
|
+
OriginEndpoints: [, (_) => de___listOfOriginEndpoint(_, context), `originEndpoints`],
|
|
997
|
+
});
|
|
998
|
+
Object.assign(contents, doc);
|
|
1150
999
|
return contents;
|
|
1151
1000
|
};
|
|
1152
1001
|
const de_ListOriginEndpointsCommandError = async (output, context) => {
|
|
@@ -1176,10 +1025,9 @@ const de_ListOriginEndpointsCommandError = async (output, context) => {
|
|
|
1176
1025
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1177
1026
|
default:
|
|
1178
1027
|
const parsedBody = parsedOutput.body;
|
|
1179
|
-
throwDefaultError({
|
|
1028
|
+
return throwDefaultError({
|
|
1180
1029
|
output,
|
|
1181
1030
|
parsedBody,
|
|
1182
|
-
exceptionCtor: __BaseException,
|
|
1183
1031
|
errorCode,
|
|
1184
1032
|
});
|
|
1185
1033
|
}
|
|
@@ -1192,9 +1040,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1192
1040
|
$metadata: deserializeMetadata(output),
|
|
1193
1041
|
});
|
|
1194
1042
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
}
|
|
1043
|
+
const doc = take(data, {
|
|
1044
|
+
Tags: [, _json, `tags`],
|
|
1045
|
+
});
|
|
1046
|
+
Object.assign(contents, doc);
|
|
1198
1047
|
return contents;
|
|
1199
1048
|
};
|
|
1200
1049
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1204,10 +1053,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1204
1053
|
};
|
|
1205
1054
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1055
|
const parsedBody = parsedOutput.body;
|
|
1207
|
-
throwDefaultError({
|
|
1056
|
+
return throwDefaultError({
|
|
1208
1057
|
output,
|
|
1209
1058
|
parsedBody,
|
|
1210
|
-
exceptionCtor: __BaseException,
|
|
1211
1059
|
errorCode,
|
|
1212
1060
|
});
|
|
1213
1061
|
};
|
|
@@ -1219,30 +1067,17 @@ export const de_RotateChannelCredentialsCommand = async (output, context) => {
|
|
|
1219
1067
|
$metadata: deserializeMetadata(output),
|
|
1220
1068
|
});
|
|
1221
1069
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
}
|
|
1234
|
-
if (data.hlsIngest != null) {
|
|
1235
|
-
contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
|
|
1236
|
-
}
|
|
1237
|
-
if (data.id != null) {
|
|
1238
|
-
contents.Id = __expectString(data.id);
|
|
1239
|
-
}
|
|
1240
|
-
if (data.ingressAccessLogs != null) {
|
|
1241
|
-
contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
|
|
1242
|
-
}
|
|
1243
|
-
if (data.tags != null) {
|
|
1244
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1245
|
-
}
|
|
1070
|
+
const doc = take(data, {
|
|
1071
|
+
Arn: [, __expectString, `arn`],
|
|
1072
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
1073
|
+
Description: [, __expectString, `description`],
|
|
1074
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
1075
|
+
HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
|
|
1076
|
+
Id: [, __expectString, `id`],
|
|
1077
|
+
IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
|
|
1078
|
+
Tags: [, _json, `tags`],
|
|
1079
|
+
});
|
|
1080
|
+
Object.assign(contents, doc);
|
|
1246
1081
|
return contents;
|
|
1247
1082
|
};
|
|
1248
1083
|
const de_RotateChannelCredentialsCommandError = async (output, context) => {
|
|
@@ -1272,10 +1107,9 @@ const de_RotateChannelCredentialsCommandError = async (output, context) => {
|
|
|
1272
1107
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1273
1108
|
default:
|
|
1274
1109
|
const parsedBody = parsedOutput.body;
|
|
1275
|
-
throwDefaultError({
|
|
1110
|
+
return throwDefaultError({
|
|
1276
1111
|
output,
|
|
1277
1112
|
parsedBody,
|
|
1278
|
-
exceptionCtor: __BaseException,
|
|
1279
1113
|
errorCode,
|
|
1280
1114
|
});
|
|
1281
1115
|
}
|
|
@@ -1288,30 +1122,17 @@ export const de_RotateIngestEndpointCredentialsCommand = async (output, context)
|
|
|
1288
1122
|
$metadata: deserializeMetadata(output),
|
|
1289
1123
|
});
|
|
1290
1124
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
}
|
|
1303
|
-
if (data.hlsIngest != null) {
|
|
1304
|
-
contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
|
|
1305
|
-
}
|
|
1306
|
-
if (data.id != null) {
|
|
1307
|
-
contents.Id = __expectString(data.id);
|
|
1308
|
-
}
|
|
1309
|
-
if (data.ingressAccessLogs != null) {
|
|
1310
|
-
contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
|
|
1311
|
-
}
|
|
1312
|
-
if (data.tags != null) {
|
|
1313
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1314
|
-
}
|
|
1125
|
+
const doc = take(data, {
|
|
1126
|
+
Arn: [, __expectString, `arn`],
|
|
1127
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
1128
|
+
Description: [, __expectString, `description`],
|
|
1129
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
1130
|
+
HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
|
|
1131
|
+
Id: [, __expectString, `id`],
|
|
1132
|
+
IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
|
|
1133
|
+
Tags: [, _json, `tags`],
|
|
1134
|
+
});
|
|
1135
|
+
Object.assign(contents, doc);
|
|
1315
1136
|
return contents;
|
|
1316
1137
|
};
|
|
1317
1138
|
const de_RotateIngestEndpointCredentialsCommandError = async (output, context) => {
|
|
@@ -1341,10 +1162,9 @@ const de_RotateIngestEndpointCredentialsCommandError = async (output, context) =
|
|
|
1341
1162
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1342
1163
|
default:
|
|
1343
1164
|
const parsedBody = parsedOutput.body;
|
|
1344
|
-
throwDefaultError({
|
|
1165
|
+
return throwDefaultError({
|
|
1345
1166
|
output,
|
|
1346
1167
|
parsedBody,
|
|
1347
|
-
exceptionCtor: __BaseException,
|
|
1348
1168
|
errorCode,
|
|
1349
1169
|
});
|
|
1350
1170
|
}
|
|
@@ -1366,10 +1186,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1366
1186
|
};
|
|
1367
1187
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
1188
|
const parsedBody = parsedOutput.body;
|
|
1369
|
-
throwDefaultError({
|
|
1189
|
+
return throwDefaultError({
|
|
1370
1190
|
output,
|
|
1371
1191
|
parsedBody,
|
|
1372
|
-
exceptionCtor: __BaseException,
|
|
1373
1192
|
errorCode,
|
|
1374
1193
|
});
|
|
1375
1194
|
};
|
|
@@ -1390,10 +1209,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1390
1209
|
};
|
|
1391
1210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1211
|
const parsedBody = parsedOutput.body;
|
|
1393
|
-
throwDefaultError({
|
|
1212
|
+
return throwDefaultError({
|
|
1394
1213
|
output,
|
|
1395
1214
|
parsedBody,
|
|
1396
|
-
exceptionCtor: __BaseException,
|
|
1397
1215
|
errorCode,
|
|
1398
1216
|
});
|
|
1399
1217
|
};
|
|
@@ -1405,30 +1223,17 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1405
1223
|
$metadata: deserializeMetadata(output),
|
|
1406
1224
|
});
|
|
1407
1225
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1420
|
-
if (data.hlsIngest != null) {
|
|
1421
|
-
contents.HlsIngest = de_HlsIngest(data.hlsIngest, context);
|
|
1422
|
-
}
|
|
1423
|
-
if (data.id != null) {
|
|
1424
|
-
contents.Id = __expectString(data.id);
|
|
1425
|
-
}
|
|
1426
|
-
if (data.ingressAccessLogs != null) {
|
|
1427
|
-
contents.IngressAccessLogs = de_IngressAccessLogs(data.ingressAccessLogs, context);
|
|
1428
|
-
}
|
|
1429
|
-
if (data.tags != null) {
|
|
1430
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1431
|
-
}
|
|
1226
|
+
const doc = take(data, {
|
|
1227
|
+
Arn: [, __expectString, `arn`],
|
|
1228
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
1229
|
+
Description: [, __expectString, `description`],
|
|
1230
|
+
EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
1231
|
+
HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
|
|
1232
|
+
Id: [, __expectString, `id`],
|
|
1233
|
+
IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
|
|
1234
|
+
Tags: [, _json, `tags`],
|
|
1235
|
+
});
|
|
1236
|
+
Object.assign(contents, doc);
|
|
1432
1237
|
return contents;
|
|
1433
1238
|
};
|
|
1434
1239
|
const de_UpdateChannelCommandError = async (output, context) => {
|
|
@@ -1458,10 +1263,9 @@ const de_UpdateChannelCommandError = async (output, context) => {
|
|
|
1458
1263
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1459
1264
|
default:
|
|
1460
1265
|
const parsedBody = parsedOutput.body;
|
|
1461
|
-
throwDefaultError({
|
|
1266
|
+
return throwDefaultError({
|
|
1462
1267
|
output,
|
|
1463
1268
|
parsedBody,
|
|
1464
|
-
exceptionCtor: __BaseException,
|
|
1465
1269
|
errorCode,
|
|
1466
1270
|
});
|
|
1467
1271
|
}
|
|
@@ -1474,57 +1278,26 @@ export const de_UpdateOriginEndpointCommand = async (output, context) => {
|
|
|
1474
1278
|
$metadata: deserializeMetadata(output),
|
|
1475
1279
|
});
|
|
1476
1280
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
}
|
|
1498
|
-
if (data.hlsPackage != null) {
|
|
1499
|
-
contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
|
|
1500
|
-
}
|
|
1501
|
-
if (data.id != null) {
|
|
1502
|
-
contents.Id = __expectString(data.id);
|
|
1503
|
-
}
|
|
1504
|
-
if (data.manifestName != null) {
|
|
1505
|
-
contents.ManifestName = __expectString(data.manifestName);
|
|
1506
|
-
}
|
|
1507
|
-
if (data.mssPackage != null) {
|
|
1508
|
-
contents.MssPackage = de_MssPackage(data.mssPackage, context);
|
|
1509
|
-
}
|
|
1510
|
-
if (data.origination != null) {
|
|
1511
|
-
contents.Origination = __expectString(data.origination);
|
|
1512
|
-
}
|
|
1513
|
-
if (data.startoverWindowSeconds != null) {
|
|
1514
|
-
contents.StartoverWindowSeconds = __expectInt32(data.startoverWindowSeconds);
|
|
1515
|
-
}
|
|
1516
|
-
if (data.tags != null) {
|
|
1517
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1518
|
-
}
|
|
1519
|
-
if (data.timeDelaySeconds != null) {
|
|
1520
|
-
contents.TimeDelaySeconds = __expectInt32(data.timeDelaySeconds);
|
|
1521
|
-
}
|
|
1522
|
-
if (data.url != null) {
|
|
1523
|
-
contents.Url = __expectString(data.url);
|
|
1524
|
-
}
|
|
1525
|
-
if (data.whitelist != null) {
|
|
1526
|
-
contents.Whitelist = de___listOf__string(data.whitelist, context);
|
|
1527
|
-
}
|
|
1281
|
+
const doc = take(data, {
|
|
1282
|
+
Arn: [, __expectString, `arn`],
|
|
1283
|
+
Authorization: [, (_) => de_Authorization(_, context), `authorization`],
|
|
1284
|
+
ChannelId: [, __expectString, `channelId`],
|
|
1285
|
+
CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
|
|
1286
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
1287
|
+
DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
|
|
1288
|
+
Description: [, __expectString, `description`],
|
|
1289
|
+
HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
|
|
1290
|
+
Id: [, __expectString, `id`],
|
|
1291
|
+
ManifestName: [, __expectString, `manifestName`],
|
|
1292
|
+
MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
|
|
1293
|
+
Origination: [, __expectString, `origination`],
|
|
1294
|
+
StartoverWindowSeconds: [, __expectInt32, `startoverWindowSeconds`],
|
|
1295
|
+
Tags: [, _json, `tags`],
|
|
1296
|
+
TimeDelaySeconds: [, __expectInt32, `timeDelaySeconds`],
|
|
1297
|
+
Url: [, __expectString, `url`],
|
|
1298
|
+
Whitelist: [, _json, `whitelist`],
|
|
1299
|
+
});
|
|
1300
|
+
Object.assign(contents, doc);
|
|
1528
1301
|
return contents;
|
|
1529
1302
|
};
|
|
1530
1303
|
const de_UpdateOriginEndpointCommandError = async (output, context) => {
|
|
@@ -1554,21 +1327,21 @@ const de_UpdateOriginEndpointCommandError = async (output, context) => {
|
|
|
1554
1327
|
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1555
1328
|
default:
|
|
1556
1329
|
const parsedBody = parsedOutput.body;
|
|
1557
|
-
throwDefaultError({
|
|
1330
|
+
return throwDefaultError({
|
|
1558
1331
|
output,
|
|
1559
1332
|
parsedBody,
|
|
1560
|
-
exceptionCtor: __BaseException,
|
|
1561
1333
|
errorCode,
|
|
1562
1334
|
});
|
|
1563
1335
|
}
|
|
1564
1336
|
};
|
|
1565
|
-
const
|
|
1337
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1566
1338
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1567
1339
|
const contents = map({});
|
|
1568
1340
|
const data = parsedOutput.body;
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
}
|
|
1341
|
+
const doc = take(data, {
|
|
1342
|
+
Message: [, __expectString, `message`],
|
|
1343
|
+
});
|
|
1344
|
+
Object.assign(contents, doc);
|
|
1572
1345
|
const exception = new ForbiddenException({
|
|
1573
1346
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1574
1347
|
...contents,
|
|
@@ -1578,9 +1351,10 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
1578
1351
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1579
1352
|
const contents = map({});
|
|
1580
1353
|
const data = parsedOutput.body;
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
}
|
|
1354
|
+
const doc = take(data, {
|
|
1355
|
+
Message: [, __expectString, `message`],
|
|
1356
|
+
});
|
|
1357
|
+
Object.assign(contents, doc);
|
|
1584
1358
|
const exception = new InternalServerErrorException({
|
|
1585
1359
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1586
1360
|
...contents,
|
|
@@ -1590,9 +1364,10 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1590
1364
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1591
1365
|
const contents = map({});
|
|
1592
1366
|
const data = parsedOutput.body;
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
}
|
|
1367
|
+
const doc = take(data, {
|
|
1368
|
+
Message: [, __expectString, `message`],
|
|
1369
|
+
});
|
|
1370
|
+
Object.assign(contents, doc);
|
|
1596
1371
|
const exception = new NotFoundException({
|
|
1597
1372
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1598
1373
|
...contents,
|
|
@@ -1602,9 +1377,10 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1602
1377
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1603
1378
|
const contents = map({});
|
|
1604
1379
|
const data = parsedOutput.body;
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
}
|
|
1380
|
+
const doc = take(data, {
|
|
1381
|
+
Message: [, __expectString, `message`],
|
|
1382
|
+
});
|
|
1383
|
+
Object.assign(contents, doc);
|
|
1608
1384
|
const exception = new ServiceUnavailableException({
|
|
1609
1385
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1610
1386
|
...contents,
|
|
@@ -1614,9 +1390,10 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1614
1390
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1615
1391
|
const contents = map({});
|
|
1616
1392
|
const data = parsedOutput.body;
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
}
|
|
1393
|
+
const doc = take(data, {
|
|
1394
|
+
Message: [, __expectString, `message`],
|
|
1395
|
+
});
|
|
1396
|
+
Object.assign(contents, doc);
|
|
1620
1397
|
const exception = new TooManyRequestsException({
|
|
1621
1398
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1622
1399
|
...contents,
|
|
@@ -1626,29 +1403,16 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1626
1403
|
const de_UnprocessableEntityExceptionRes = async (parsedOutput, context) => {
|
|
1627
1404
|
const contents = map({});
|
|
1628
1405
|
const data = parsedOutput.body;
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
}
|
|
1406
|
+
const doc = take(data, {
|
|
1407
|
+
Message: [, __expectString, `message`],
|
|
1408
|
+
});
|
|
1409
|
+
Object.assign(contents, doc);
|
|
1632
1410
|
const exception = new UnprocessableEntityException({
|
|
1633
1411
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1634
1412
|
...contents,
|
|
1635
1413
|
});
|
|
1636
1414
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1637
1415
|
};
|
|
1638
|
-
const se___listOf__PeriodTriggersElement = (input, context) => {
|
|
1639
|
-
return input
|
|
1640
|
-
.filter((e) => e != null)
|
|
1641
|
-
.map((entry) => {
|
|
1642
|
-
return entry;
|
|
1643
|
-
});
|
|
1644
|
-
};
|
|
1645
|
-
const se___listOf__string = (input, context) => {
|
|
1646
|
-
return input
|
|
1647
|
-
.filter((e) => e != null)
|
|
1648
|
-
.map((entry) => {
|
|
1649
|
-
return entry;
|
|
1650
|
-
});
|
|
1651
|
-
};
|
|
1652
1416
|
const se___listOfHlsManifestCreateOrUpdateParameters = (input, context) => {
|
|
1653
1417
|
return input
|
|
1654
1418
|
.filter((e) => e != null)
|
|
@@ -1656,216 +1420,154 @@ const se___listOfHlsManifestCreateOrUpdateParameters = (input, context) => {
|
|
|
1656
1420
|
return se_HlsManifestCreateOrUpdateParameters(entry, context);
|
|
1657
1421
|
});
|
|
1658
1422
|
};
|
|
1659
|
-
const se___mapOf__string = (input, context) => {
|
|
1660
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1661
|
-
if (value === null) {
|
|
1662
|
-
return acc;
|
|
1663
|
-
}
|
|
1664
|
-
acc[key] = value;
|
|
1665
|
-
return acc;
|
|
1666
|
-
}, {});
|
|
1667
|
-
};
|
|
1668
|
-
const se_AdTriggers = (input, context) => {
|
|
1669
|
-
return input
|
|
1670
|
-
.filter((e) => e != null)
|
|
1671
|
-
.map((entry) => {
|
|
1672
|
-
return entry;
|
|
1673
|
-
});
|
|
1674
|
-
};
|
|
1675
1423
|
const se_Authorization = (input, context) => {
|
|
1676
|
-
return {
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
};
|
|
1424
|
+
return take(input, {
|
|
1425
|
+
cdnIdentifierSecret: [, , `CdnIdentifierSecret`],
|
|
1426
|
+
secretsRoleArn: [, , `SecretsRoleArn`],
|
|
1427
|
+
});
|
|
1680
1428
|
};
|
|
1681
1429
|
const se_CmafEncryption = (input, context) => {
|
|
1682
|
-
return {
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
|
|
1689
|
-
};
|
|
1430
|
+
return take(input, {
|
|
1431
|
+
constantInitializationVector: [, , `ConstantInitializationVector`],
|
|
1432
|
+
encryptionMethod: [, , `EncryptionMethod`],
|
|
1433
|
+
keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
|
|
1434
|
+
spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
|
|
1435
|
+
});
|
|
1690
1436
|
};
|
|
1691
1437
|
const se_CmafPackageCreateOrUpdateParameters = (input, context) => {
|
|
1692
|
-
return {
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
|
|
1700
|
-
};
|
|
1438
|
+
return take(input, {
|
|
1439
|
+
encryption: [, (_) => se_CmafEncryption(_, context), `Encryption`],
|
|
1440
|
+
hlsManifests: [, (_) => se___listOfHlsManifestCreateOrUpdateParameters(_, context), `HlsManifests`],
|
|
1441
|
+
segmentDurationSeconds: [, , `SegmentDurationSeconds`],
|
|
1442
|
+
segmentPrefix: [, , `SegmentPrefix`],
|
|
1443
|
+
streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
|
|
1444
|
+
});
|
|
1701
1445
|
};
|
|
1702
1446
|
const se_DashEncryption = (input, context) => {
|
|
1703
|
-
return {
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
};
|
|
1447
|
+
return take(input, {
|
|
1448
|
+
keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
|
|
1449
|
+
spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
|
|
1450
|
+
});
|
|
1707
1451
|
};
|
|
1708
1452
|
const se_DashPackage = (input, context) => {
|
|
1709
|
-
return {
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
}),
|
|
1728
|
-
...(input.UtcTiming != null && { utcTiming: input.UtcTiming }),
|
|
1729
|
-
...(input.UtcTimingUri != null && { utcTimingUri: input.UtcTimingUri }),
|
|
1730
|
-
};
|
|
1453
|
+
return take(input, {
|
|
1454
|
+
adTriggers: [, _json, `AdTriggers`],
|
|
1455
|
+
adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
|
|
1456
|
+
encryption: [, (_) => se_DashEncryption(_, context), `Encryption`],
|
|
1457
|
+
includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
|
|
1458
|
+
manifestLayout: [, , `ManifestLayout`],
|
|
1459
|
+
manifestWindowSeconds: [, , `ManifestWindowSeconds`],
|
|
1460
|
+
minBufferTimeSeconds: [, , `MinBufferTimeSeconds`],
|
|
1461
|
+
minUpdatePeriodSeconds: [, , `MinUpdatePeriodSeconds`],
|
|
1462
|
+
periodTriggers: [, _json, `PeriodTriggers`],
|
|
1463
|
+
profile: [, , `Profile`],
|
|
1464
|
+
segmentDurationSeconds: [, , `SegmentDurationSeconds`],
|
|
1465
|
+
segmentTemplateFormat: [, , `SegmentTemplateFormat`],
|
|
1466
|
+
streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
|
|
1467
|
+
suggestedPresentationDelaySeconds: [, , `SuggestedPresentationDelaySeconds`],
|
|
1468
|
+
utcTiming: [, , `UtcTiming`],
|
|
1469
|
+
utcTimingUri: [, , `UtcTimingUri`],
|
|
1470
|
+
});
|
|
1731
1471
|
};
|
|
1732
1472
|
const se_EgressAccessLogs = (input, context) => {
|
|
1733
|
-
return {
|
|
1734
|
-
|
|
1735
|
-
};
|
|
1473
|
+
return take(input, {
|
|
1474
|
+
logGroupName: [, , `LogGroupName`],
|
|
1475
|
+
});
|
|
1736
1476
|
};
|
|
1737
1477
|
const se_EncryptionContractConfiguration = (input, context) => {
|
|
1738
|
-
return {
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
};
|
|
1478
|
+
return take(input, {
|
|
1479
|
+
presetSpeke20Audio: [, , `PresetSpeke20Audio`],
|
|
1480
|
+
presetSpeke20Video: [, , `PresetSpeke20Video`],
|
|
1481
|
+
});
|
|
1742
1482
|
};
|
|
1743
1483
|
const se_HlsEncryption = (input, context) => {
|
|
1744
|
-
return {
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
|
|
1752
|
-
};
|
|
1484
|
+
return take(input, {
|
|
1485
|
+
constantInitializationVector: [, , `ConstantInitializationVector`],
|
|
1486
|
+
encryptionMethod: [, , `EncryptionMethod`],
|
|
1487
|
+
keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
|
|
1488
|
+
repeatExtXKey: [, , `RepeatExtXKey`],
|
|
1489
|
+
spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
|
|
1490
|
+
});
|
|
1753
1491
|
};
|
|
1754
1492
|
const se_HlsManifestCreateOrUpdateParameters = (input, context) => {
|
|
1755
|
-
return {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
}),
|
|
1767
|
-
};
|
|
1493
|
+
return take(input, {
|
|
1494
|
+
adMarkers: [, , `AdMarkers`],
|
|
1495
|
+
adTriggers: [, _json, `AdTriggers`],
|
|
1496
|
+
adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
|
|
1497
|
+
id: [, , `Id`],
|
|
1498
|
+
includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
|
|
1499
|
+
manifestName: [, , `ManifestName`],
|
|
1500
|
+
playlistType: [, , `PlaylistType`],
|
|
1501
|
+
playlistWindowSeconds: [, , `PlaylistWindowSeconds`],
|
|
1502
|
+
programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
|
|
1503
|
+
});
|
|
1768
1504
|
};
|
|
1769
1505
|
const se_HlsPackage = (input, context) => {
|
|
1770
|
-
return {
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
...(input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
|
|
1785
|
-
};
|
|
1506
|
+
return take(input, {
|
|
1507
|
+
adMarkers: [, , `AdMarkers`],
|
|
1508
|
+
adTriggers: [, _json, `AdTriggers`],
|
|
1509
|
+
adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
|
|
1510
|
+
encryption: [, (_) => se_HlsEncryption(_, context), `Encryption`],
|
|
1511
|
+
includeDvbSubtitles: [, , `IncludeDvbSubtitles`],
|
|
1512
|
+
includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
|
|
1513
|
+
playlistType: [, , `PlaylistType`],
|
|
1514
|
+
playlistWindowSeconds: [, , `PlaylistWindowSeconds`],
|
|
1515
|
+
programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
|
|
1516
|
+
segmentDurationSeconds: [, , `SegmentDurationSeconds`],
|
|
1517
|
+
streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
|
|
1518
|
+
useAudioRenditionGroup: [, , `UseAudioRenditionGroup`],
|
|
1519
|
+
});
|
|
1786
1520
|
};
|
|
1787
1521
|
const se_IngressAccessLogs = (input, context) => {
|
|
1788
|
-
return {
|
|
1789
|
-
|
|
1790
|
-
};
|
|
1522
|
+
return take(input, {
|
|
1523
|
+
logGroupName: [, , `LogGroupName`],
|
|
1524
|
+
});
|
|
1791
1525
|
};
|
|
1792
1526
|
const se_MssEncryption = (input, context) => {
|
|
1793
|
-
return {
|
|
1794
|
-
|
|
1795
|
-
};
|
|
1527
|
+
return take(input, {
|
|
1528
|
+
spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
|
|
1529
|
+
});
|
|
1796
1530
|
};
|
|
1797
1531
|
const se_MssPackage = (input, context) => {
|
|
1798
|
-
return {
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
};
|
|
1532
|
+
return take(input, {
|
|
1533
|
+
encryption: [, (_) => se_MssEncryption(_, context), `Encryption`],
|
|
1534
|
+
manifestWindowSeconds: [, , `ManifestWindowSeconds`],
|
|
1535
|
+
segmentDurationSeconds: [, , `SegmentDurationSeconds`],
|
|
1536
|
+
streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
|
|
1537
|
+
});
|
|
1804
1538
|
};
|
|
1805
1539
|
const se_S3Destination = (input, context) => {
|
|
1806
|
-
return {
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
};
|
|
1540
|
+
return take(input, {
|
|
1541
|
+
bucketName: [, , `BucketName`],
|
|
1542
|
+
manifestKey: [, , `ManifestKey`],
|
|
1543
|
+
roleArn: [, , `RoleArn`],
|
|
1544
|
+
});
|
|
1811
1545
|
};
|
|
1812
1546
|
const se_SpekeKeyProvider = (input, context) => {
|
|
1813
|
-
return {
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
const se_StreamSelection = (input, context) => {
|
|
1825
|
-
return {
|
|
1826
|
-
...(input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
|
|
1827
|
-
...(input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
|
|
1828
|
-
...(input.StreamOrder != null && { streamOrder: input.StreamOrder }),
|
|
1829
|
-
};
|
|
1830
|
-
};
|
|
1831
|
-
const se_Tags = (input, context) => {
|
|
1832
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1833
|
-
if (value === null) {
|
|
1834
|
-
return acc;
|
|
1835
|
-
}
|
|
1836
|
-
acc[key] = value;
|
|
1837
|
-
return acc;
|
|
1838
|
-
}, {});
|
|
1839
|
-
};
|
|
1840
|
-
const de___listOf__PeriodTriggersElement = (output, context) => {
|
|
1841
|
-
const retVal = (output || [])
|
|
1842
|
-
.filter((e) => e != null)
|
|
1843
|
-
.map((entry) => {
|
|
1844
|
-
if (entry === null) {
|
|
1845
|
-
return null;
|
|
1846
|
-
}
|
|
1847
|
-
return __expectString(entry);
|
|
1547
|
+
return take(input, {
|
|
1548
|
+
certificateArn: [, , `CertificateArn`],
|
|
1549
|
+
encryptionContractConfiguration: [
|
|
1550
|
+
,
|
|
1551
|
+
(_) => se_EncryptionContractConfiguration(_, context),
|
|
1552
|
+
`EncryptionContractConfiguration`,
|
|
1553
|
+
],
|
|
1554
|
+
resourceId: [, , `ResourceId`],
|
|
1555
|
+
roleArn: [, , `RoleArn`],
|
|
1556
|
+
systemIds: [, _json, `SystemIds`],
|
|
1557
|
+
url: [, , `Url`],
|
|
1848
1558
|
});
|
|
1849
|
-
return retVal;
|
|
1850
1559
|
};
|
|
1851
|
-
const
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
return null;
|
|
1857
|
-
}
|
|
1858
|
-
return __expectString(entry);
|
|
1560
|
+
const se_StreamSelection = (input, context) => {
|
|
1561
|
+
return take(input, {
|
|
1562
|
+
maxVideoBitsPerSecond: [, , `MaxVideoBitsPerSecond`],
|
|
1563
|
+
minVideoBitsPerSecond: [, , `MinVideoBitsPerSecond`],
|
|
1564
|
+
streamOrder: [, , `StreamOrder`],
|
|
1859
1565
|
});
|
|
1860
|
-
return retVal;
|
|
1861
1566
|
};
|
|
1862
1567
|
const de___listOfChannel = (output, context) => {
|
|
1863
1568
|
const retVal = (output || [])
|
|
1864
1569
|
.filter((e) => e != null)
|
|
1865
1570
|
.map((entry) => {
|
|
1866
|
-
if (entry === null) {
|
|
1867
|
-
return null;
|
|
1868
|
-
}
|
|
1869
1571
|
return de_Channel(entry, context);
|
|
1870
1572
|
});
|
|
1871
1573
|
return retVal;
|
|
@@ -1874,9 +1576,6 @@ const de___listOfHarvestJob = (output, context) => {
|
|
|
1874
1576
|
const retVal = (output || [])
|
|
1875
1577
|
.filter((e) => e != null)
|
|
1876
1578
|
.map((entry) => {
|
|
1877
|
-
if (entry === null) {
|
|
1878
|
-
return null;
|
|
1879
|
-
}
|
|
1880
1579
|
return de_HarvestJob(entry, context);
|
|
1881
1580
|
});
|
|
1882
1581
|
return retVal;
|
|
@@ -1885,9 +1584,6 @@ const de___listOfHlsManifest = (output, context) => {
|
|
|
1885
1584
|
const retVal = (output || [])
|
|
1886
1585
|
.filter((e) => e != null)
|
|
1887
1586
|
.map((entry) => {
|
|
1888
|
-
if (entry === null) {
|
|
1889
|
-
return null;
|
|
1890
|
-
}
|
|
1891
1587
|
return de_HlsManifest(entry, context);
|
|
1892
1588
|
});
|
|
1893
1589
|
return retVal;
|
|
@@ -1896,9 +1592,6 @@ const de___listOfIngestEndpoint = (output, context) => {
|
|
|
1896
1592
|
const retVal = (output || [])
|
|
1897
1593
|
.filter((e) => e != null)
|
|
1898
1594
|
.map((entry) => {
|
|
1899
|
-
if (entry === null) {
|
|
1900
|
-
return null;
|
|
1901
|
-
}
|
|
1902
1595
|
return de_IngestEndpoint(entry, context);
|
|
1903
1596
|
});
|
|
1904
1597
|
return retVal;
|
|
@@ -1907,243 +1600,213 @@ const de___listOfOriginEndpoint = (output, context) => {
|
|
|
1907
1600
|
const retVal = (output || [])
|
|
1908
1601
|
.filter((e) => e != null)
|
|
1909
1602
|
.map((entry) => {
|
|
1910
|
-
if (entry === null) {
|
|
1911
|
-
return null;
|
|
1912
|
-
}
|
|
1913
1603
|
return de_OriginEndpoint(entry, context);
|
|
1914
1604
|
});
|
|
1915
1605
|
return retVal;
|
|
1916
1606
|
};
|
|
1917
|
-
const de___mapOf__string = (output, context) => {
|
|
1918
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1919
|
-
if (value === null) {
|
|
1920
|
-
return acc;
|
|
1921
|
-
}
|
|
1922
|
-
acc[key] = __expectString(value);
|
|
1923
|
-
return acc;
|
|
1924
|
-
}, {});
|
|
1925
|
-
};
|
|
1926
|
-
const de_AdTriggers = (output, context) => {
|
|
1927
|
-
const retVal = (output || [])
|
|
1928
|
-
.filter((e) => e != null)
|
|
1929
|
-
.map((entry) => {
|
|
1930
|
-
if (entry === null) {
|
|
1931
|
-
return null;
|
|
1932
|
-
}
|
|
1933
|
-
return __expectString(entry);
|
|
1934
|
-
});
|
|
1935
|
-
return retVal;
|
|
1936
|
-
};
|
|
1937
1607
|
const de_Authorization = (output, context) => {
|
|
1938
|
-
return {
|
|
1939
|
-
CdnIdentifierSecret: __expectString
|
|
1940
|
-
SecretsRoleArn: __expectString
|
|
1941
|
-
};
|
|
1608
|
+
return take(output, {
|
|
1609
|
+
CdnIdentifierSecret: [, __expectString, `cdnIdentifierSecret`],
|
|
1610
|
+
SecretsRoleArn: [, __expectString, `secretsRoleArn`],
|
|
1611
|
+
});
|
|
1942
1612
|
};
|
|
1943
1613
|
const de_Channel = (output, context) => {
|
|
1944
|
-
return {
|
|
1945
|
-
Arn: __expectString
|
|
1946
|
-
CreatedAt: __expectString
|
|
1947
|
-
Description: __expectString
|
|
1948
|
-
EgressAccessLogs:
|
|
1949
|
-
HlsIngest:
|
|
1950
|
-
Id: __expectString
|
|
1951
|
-
IngressAccessLogs:
|
|
1952
|
-
Tags:
|
|
1953
|
-
};
|
|
1614
|
+
return take(output, {
|
|
1615
|
+
Arn: [, __expectString, `arn`],
|
|
1616
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
1617
|
+
Description: [, __expectString, `description`],
|
|
1618
|
+
EgressAccessLogs: (_) => [, de_EgressAccessLogs(_, context), `egressAccessLogs`],
|
|
1619
|
+
HlsIngest: (_) => [, de_HlsIngest(_, context), `hlsIngest`],
|
|
1620
|
+
Id: [, __expectString, `id`],
|
|
1621
|
+
IngressAccessLogs: (_) => [, de_IngressAccessLogs(_, context), `ingressAccessLogs`],
|
|
1622
|
+
Tags: [, _json, `tags`],
|
|
1623
|
+
});
|
|
1954
1624
|
};
|
|
1955
1625
|
const de_CmafEncryption = (output, context) => {
|
|
1956
|
-
return {
|
|
1957
|
-
ConstantInitializationVector: __expectString
|
|
1958
|
-
EncryptionMethod: __expectString
|
|
1959
|
-
KeyRotationIntervalSeconds: __expectInt32
|
|
1960
|
-
SpekeKeyProvider:
|
|
1961
|
-
};
|
|
1626
|
+
return take(output, {
|
|
1627
|
+
ConstantInitializationVector: [, __expectString, `constantInitializationVector`],
|
|
1628
|
+
EncryptionMethod: [, __expectString, `encryptionMethod`],
|
|
1629
|
+
KeyRotationIntervalSeconds: [, __expectInt32, `keyRotationIntervalSeconds`],
|
|
1630
|
+
SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
|
|
1631
|
+
});
|
|
1962
1632
|
};
|
|
1963
1633
|
const de_CmafPackage = (output, context) => {
|
|
1964
|
-
return {
|
|
1965
|
-
Encryption:
|
|
1966
|
-
HlsManifests:
|
|
1967
|
-
SegmentDurationSeconds: __expectInt32
|
|
1968
|
-
SegmentPrefix: __expectString
|
|
1969
|
-
StreamSelection:
|
|
1970
|
-
};
|
|
1634
|
+
return take(output, {
|
|
1635
|
+
Encryption: (_) => [, de_CmafEncryption(_, context), `encryption`],
|
|
1636
|
+
HlsManifests: (_) => [, de___listOfHlsManifest(_, context), `hlsManifests`],
|
|
1637
|
+
SegmentDurationSeconds: [, __expectInt32, `segmentDurationSeconds`],
|
|
1638
|
+
SegmentPrefix: [, __expectString, `segmentPrefix`],
|
|
1639
|
+
StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
|
|
1640
|
+
});
|
|
1971
1641
|
};
|
|
1972
1642
|
const de_DashEncryption = (output, context) => {
|
|
1973
|
-
return {
|
|
1974
|
-
KeyRotationIntervalSeconds: __expectInt32
|
|
1975
|
-
SpekeKeyProvider:
|
|
1976
|
-
};
|
|
1643
|
+
return take(output, {
|
|
1644
|
+
KeyRotationIntervalSeconds: [, __expectInt32, `keyRotationIntervalSeconds`],
|
|
1645
|
+
SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
|
|
1646
|
+
});
|
|
1977
1647
|
};
|
|
1978
1648
|
const de_DashPackage = (output, context) => {
|
|
1979
|
-
return {
|
|
1980
|
-
AdTriggers:
|
|
1981
|
-
AdsOnDeliveryRestrictions: __expectString
|
|
1982
|
-
Encryption:
|
|
1983
|
-
IncludeIframeOnlyStream: __expectBoolean
|
|
1984
|
-
ManifestLayout: __expectString
|
|
1985
|
-
ManifestWindowSeconds: __expectInt32
|
|
1986
|
-
MinBufferTimeSeconds: __expectInt32
|
|
1987
|
-
MinUpdatePeriodSeconds: __expectInt32
|
|
1988
|
-
PeriodTriggers:
|
|
1989
|
-
Profile: __expectString
|
|
1990
|
-
SegmentDurationSeconds: __expectInt32
|
|
1991
|
-
SegmentTemplateFormat: __expectString
|
|
1992
|
-
StreamSelection:
|
|
1993
|
-
SuggestedPresentationDelaySeconds: __expectInt32
|
|
1994
|
-
UtcTiming: __expectString
|
|
1995
|
-
UtcTimingUri: __expectString
|
|
1996
|
-
};
|
|
1649
|
+
return take(output, {
|
|
1650
|
+
AdTriggers: [, _json, `adTriggers`],
|
|
1651
|
+
AdsOnDeliveryRestrictions: [, __expectString, `adsOnDeliveryRestrictions`],
|
|
1652
|
+
Encryption: (_) => [, de_DashEncryption(_, context), `encryption`],
|
|
1653
|
+
IncludeIframeOnlyStream: [, __expectBoolean, `includeIframeOnlyStream`],
|
|
1654
|
+
ManifestLayout: [, __expectString, `manifestLayout`],
|
|
1655
|
+
ManifestWindowSeconds: [, __expectInt32, `manifestWindowSeconds`],
|
|
1656
|
+
MinBufferTimeSeconds: [, __expectInt32, `minBufferTimeSeconds`],
|
|
1657
|
+
MinUpdatePeriodSeconds: [, __expectInt32, `minUpdatePeriodSeconds`],
|
|
1658
|
+
PeriodTriggers: [, _json, `periodTriggers`],
|
|
1659
|
+
Profile: [, __expectString, `profile`],
|
|
1660
|
+
SegmentDurationSeconds: [, __expectInt32, `segmentDurationSeconds`],
|
|
1661
|
+
SegmentTemplateFormat: [, __expectString, `segmentTemplateFormat`],
|
|
1662
|
+
StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
|
|
1663
|
+
SuggestedPresentationDelaySeconds: [, __expectInt32, `suggestedPresentationDelaySeconds`],
|
|
1664
|
+
UtcTiming: [, __expectString, `utcTiming`],
|
|
1665
|
+
UtcTimingUri: [, __expectString, `utcTimingUri`],
|
|
1666
|
+
});
|
|
1997
1667
|
};
|
|
1998
1668
|
const de_EgressAccessLogs = (output, context) => {
|
|
1999
|
-
return {
|
|
2000
|
-
LogGroupName: __expectString
|
|
2001
|
-
};
|
|
1669
|
+
return take(output, {
|
|
1670
|
+
LogGroupName: [, __expectString, `logGroupName`],
|
|
1671
|
+
});
|
|
2002
1672
|
};
|
|
2003
1673
|
const de_EncryptionContractConfiguration = (output, context) => {
|
|
2004
|
-
return {
|
|
2005
|
-
PresetSpeke20Audio: __expectString
|
|
2006
|
-
PresetSpeke20Video: __expectString
|
|
2007
|
-
};
|
|
1674
|
+
return take(output, {
|
|
1675
|
+
PresetSpeke20Audio: [, __expectString, `presetSpeke20Audio`],
|
|
1676
|
+
PresetSpeke20Video: [, __expectString, `presetSpeke20Video`],
|
|
1677
|
+
});
|
|
2008
1678
|
};
|
|
2009
1679
|
const de_HarvestJob = (output, context) => {
|
|
2010
|
-
return {
|
|
2011
|
-
Arn: __expectString
|
|
2012
|
-
ChannelId: __expectString
|
|
2013
|
-
CreatedAt: __expectString
|
|
2014
|
-
EndTime: __expectString
|
|
2015
|
-
Id: __expectString
|
|
2016
|
-
OriginEndpointId: __expectString
|
|
2017
|
-
S3Destination:
|
|
2018
|
-
StartTime: __expectString
|
|
2019
|
-
Status: __expectString
|
|
2020
|
-
};
|
|
1680
|
+
return take(output, {
|
|
1681
|
+
Arn: [, __expectString, `arn`],
|
|
1682
|
+
ChannelId: [, __expectString, `channelId`],
|
|
1683
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
1684
|
+
EndTime: [, __expectString, `endTime`],
|
|
1685
|
+
Id: [, __expectString, `id`],
|
|
1686
|
+
OriginEndpointId: [, __expectString, `originEndpointId`],
|
|
1687
|
+
S3Destination: (_) => [, de_S3Destination(_, context), `s3Destination`],
|
|
1688
|
+
StartTime: [, __expectString, `startTime`],
|
|
1689
|
+
Status: [, __expectString, `status`],
|
|
1690
|
+
});
|
|
2021
1691
|
};
|
|
2022
1692
|
const de_HlsEncryption = (output, context) => {
|
|
2023
|
-
return {
|
|
2024
|
-
ConstantInitializationVector: __expectString
|
|
2025
|
-
EncryptionMethod: __expectString
|
|
2026
|
-
KeyRotationIntervalSeconds: __expectInt32
|
|
2027
|
-
RepeatExtXKey: __expectBoolean
|
|
2028
|
-
SpekeKeyProvider:
|
|
2029
|
-
};
|
|
1693
|
+
return take(output, {
|
|
1694
|
+
ConstantInitializationVector: [, __expectString, `constantInitializationVector`],
|
|
1695
|
+
EncryptionMethod: [, __expectString, `encryptionMethod`],
|
|
1696
|
+
KeyRotationIntervalSeconds: [, __expectInt32, `keyRotationIntervalSeconds`],
|
|
1697
|
+
RepeatExtXKey: [, __expectBoolean, `repeatExtXKey`],
|
|
1698
|
+
SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
|
|
1699
|
+
});
|
|
2030
1700
|
};
|
|
2031
1701
|
const de_HlsIngest = (output, context) => {
|
|
2032
|
-
return {
|
|
2033
|
-
IngestEndpoints:
|
|
2034
|
-
};
|
|
1702
|
+
return take(output, {
|
|
1703
|
+
IngestEndpoints: (_) => [, de___listOfIngestEndpoint(_, context), `ingestEndpoints`],
|
|
1704
|
+
});
|
|
2035
1705
|
};
|
|
2036
1706
|
const de_HlsManifest = (output, context) => {
|
|
2037
|
-
return {
|
|
2038
|
-
AdMarkers: __expectString
|
|
2039
|
-
AdTriggers:
|
|
2040
|
-
AdsOnDeliveryRestrictions: __expectString
|
|
2041
|
-
Id: __expectString
|
|
2042
|
-
IncludeIframeOnlyStream: __expectBoolean
|
|
2043
|
-
ManifestName: __expectString
|
|
2044
|
-
PlaylistType: __expectString
|
|
2045
|
-
PlaylistWindowSeconds: __expectInt32
|
|
2046
|
-
ProgramDateTimeIntervalSeconds: __expectInt32
|
|
2047
|
-
Url: __expectString
|
|
2048
|
-
};
|
|
1707
|
+
return take(output, {
|
|
1708
|
+
AdMarkers: [, __expectString, `adMarkers`],
|
|
1709
|
+
AdTriggers: [, _json, `adTriggers`],
|
|
1710
|
+
AdsOnDeliveryRestrictions: [, __expectString, `adsOnDeliveryRestrictions`],
|
|
1711
|
+
Id: [, __expectString, `id`],
|
|
1712
|
+
IncludeIframeOnlyStream: [, __expectBoolean, `includeIframeOnlyStream`],
|
|
1713
|
+
ManifestName: [, __expectString, `manifestName`],
|
|
1714
|
+
PlaylistType: [, __expectString, `playlistType`],
|
|
1715
|
+
PlaylistWindowSeconds: [, __expectInt32, `playlistWindowSeconds`],
|
|
1716
|
+
ProgramDateTimeIntervalSeconds: [, __expectInt32, `programDateTimeIntervalSeconds`],
|
|
1717
|
+
Url: [, __expectString, `url`],
|
|
1718
|
+
});
|
|
2049
1719
|
};
|
|
2050
1720
|
const de_HlsPackage = (output, context) => {
|
|
2051
|
-
return {
|
|
2052
|
-
AdMarkers: __expectString
|
|
2053
|
-
AdTriggers:
|
|
2054
|
-
AdsOnDeliveryRestrictions: __expectString
|
|
2055
|
-
Encryption:
|
|
2056
|
-
IncludeDvbSubtitles: __expectBoolean
|
|
2057
|
-
IncludeIframeOnlyStream: __expectBoolean
|
|
2058
|
-
PlaylistType: __expectString
|
|
2059
|
-
PlaylistWindowSeconds: __expectInt32
|
|
2060
|
-
ProgramDateTimeIntervalSeconds: __expectInt32
|
|
2061
|
-
SegmentDurationSeconds: __expectInt32
|
|
2062
|
-
StreamSelection:
|
|
2063
|
-
UseAudioRenditionGroup: __expectBoolean
|
|
2064
|
-
};
|
|
1721
|
+
return take(output, {
|
|
1722
|
+
AdMarkers: [, __expectString, `adMarkers`],
|
|
1723
|
+
AdTriggers: [, _json, `adTriggers`],
|
|
1724
|
+
AdsOnDeliveryRestrictions: [, __expectString, `adsOnDeliveryRestrictions`],
|
|
1725
|
+
Encryption: (_) => [, de_HlsEncryption(_, context), `encryption`],
|
|
1726
|
+
IncludeDvbSubtitles: [, __expectBoolean, `includeDvbSubtitles`],
|
|
1727
|
+
IncludeIframeOnlyStream: [, __expectBoolean, `includeIframeOnlyStream`],
|
|
1728
|
+
PlaylistType: [, __expectString, `playlistType`],
|
|
1729
|
+
PlaylistWindowSeconds: [, __expectInt32, `playlistWindowSeconds`],
|
|
1730
|
+
ProgramDateTimeIntervalSeconds: [, __expectInt32, `programDateTimeIntervalSeconds`],
|
|
1731
|
+
SegmentDurationSeconds: [, __expectInt32, `segmentDurationSeconds`],
|
|
1732
|
+
StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
|
|
1733
|
+
UseAudioRenditionGroup: [, __expectBoolean, `useAudioRenditionGroup`],
|
|
1734
|
+
});
|
|
2065
1735
|
};
|
|
2066
1736
|
const de_IngestEndpoint = (output, context) => {
|
|
2067
|
-
return {
|
|
2068
|
-
Id: __expectString
|
|
2069
|
-
Password: __expectString
|
|
2070
|
-
Url: __expectString
|
|
2071
|
-
Username: __expectString
|
|
2072
|
-
};
|
|
1737
|
+
return take(output, {
|
|
1738
|
+
Id: [, __expectString, `id`],
|
|
1739
|
+
Password: [, __expectString, `password`],
|
|
1740
|
+
Url: [, __expectString, `url`],
|
|
1741
|
+
Username: [, __expectString, `username`],
|
|
1742
|
+
});
|
|
2073
1743
|
};
|
|
2074
1744
|
const de_IngressAccessLogs = (output, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
LogGroupName: __expectString
|
|
2077
|
-
};
|
|
1745
|
+
return take(output, {
|
|
1746
|
+
LogGroupName: [, __expectString, `logGroupName`],
|
|
1747
|
+
});
|
|
2078
1748
|
};
|
|
2079
1749
|
const de_MssEncryption = (output, context) => {
|
|
2080
|
-
return {
|
|
2081
|
-
SpekeKeyProvider:
|
|
2082
|
-
};
|
|
1750
|
+
return take(output, {
|
|
1751
|
+
SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
|
|
1752
|
+
});
|
|
2083
1753
|
};
|
|
2084
1754
|
const de_MssPackage = (output, context) => {
|
|
2085
|
-
return {
|
|
2086
|
-
Encryption:
|
|
2087
|
-
ManifestWindowSeconds: __expectInt32
|
|
2088
|
-
SegmentDurationSeconds: __expectInt32
|
|
2089
|
-
StreamSelection:
|
|
2090
|
-
};
|
|
1755
|
+
return take(output, {
|
|
1756
|
+
Encryption: (_) => [, de_MssEncryption(_, context), `encryption`],
|
|
1757
|
+
ManifestWindowSeconds: [, __expectInt32, `manifestWindowSeconds`],
|
|
1758
|
+
SegmentDurationSeconds: [, __expectInt32, `segmentDurationSeconds`],
|
|
1759
|
+
StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
|
|
1760
|
+
});
|
|
2091
1761
|
};
|
|
2092
1762
|
const de_OriginEndpoint = (output, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
Arn: __expectString
|
|
2095
|
-
Authorization:
|
|
2096
|
-
ChannelId: __expectString
|
|
2097
|
-
CmafPackage:
|
|
2098
|
-
CreatedAt: __expectString
|
|
2099
|
-
DashPackage:
|
|
2100
|
-
Description: __expectString
|
|
2101
|
-
HlsPackage:
|
|
2102
|
-
Id: __expectString
|
|
2103
|
-
ManifestName: __expectString
|
|
2104
|
-
MssPackage:
|
|
2105
|
-
Origination: __expectString
|
|
2106
|
-
StartoverWindowSeconds: __expectInt32
|
|
2107
|
-
Tags:
|
|
2108
|
-
TimeDelaySeconds: __expectInt32
|
|
2109
|
-
Url: __expectString
|
|
2110
|
-
Whitelist:
|
|
2111
|
-
};
|
|
1763
|
+
return take(output, {
|
|
1764
|
+
Arn: [, __expectString, `arn`],
|
|
1765
|
+
Authorization: (_) => [, de_Authorization(_, context), `authorization`],
|
|
1766
|
+
ChannelId: [, __expectString, `channelId`],
|
|
1767
|
+
CmafPackage: (_) => [, de_CmafPackage(_, context), `cmafPackage`],
|
|
1768
|
+
CreatedAt: [, __expectString, `createdAt`],
|
|
1769
|
+
DashPackage: (_) => [, de_DashPackage(_, context), `dashPackage`],
|
|
1770
|
+
Description: [, __expectString, `description`],
|
|
1771
|
+
HlsPackage: (_) => [, de_HlsPackage(_, context), `hlsPackage`],
|
|
1772
|
+
Id: [, __expectString, `id`],
|
|
1773
|
+
ManifestName: [, __expectString, `manifestName`],
|
|
1774
|
+
MssPackage: (_) => [, de_MssPackage(_, context), `mssPackage`],
|
|
1775
|
+
Origination: [, __expectString, `origination`],
|
|
1776
|
+
StartoverWindowSeconds: [, __expectInt32, `startoverWindowSeconds`],
|
|
1777
|
+
Tags: [, _json, `tags`],
|
|
1778
|
+
TimeDelaySeconds: [, __expectInt32, `timeDelaySeconds`],
|
|
1779
|
+
Url: [, __expectString, `url`],
|
|
1780
|
+
Whitelist: [, _json, `whitelist`],
|
|
1781
|
+
});
|
|
2112
1782
|
};
|
|
2113
1783
|
const de_S3Destination = (output, context) => {
|
|
2114
|
-
return {
|
|
2115
|
-
BucketName: __expectString
|
|
2116
|
-
ManifestKey: __expectString
|
|
2117
|
-
RoleArn: __expectString
|
|
2118
|
-
};
|
|
1784
|
+
return take(output, {
|
|
1785
|
+
BucketName: [, __expectString, `bucketName`],
|
|
1786
|
+
ManifestKey: [, __expectString, `manifestKey`],
|
|
1787
|
+
RoleArn: [, __expectString, `roleArn`],
|
|
1788
|
+
});
|
|
2119
1789
|
};
|
|
2120
1790
|
const de_SpekeKeyProvider = (output, context) => {
|
|
2121
|
-
return {
|
|
2122
|
-
CertificateArn: __expectString
|
|
2123
|
-
EncryptionContractConfiguration:
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
1791
|
+
return take(output, {
|
|
1792
|
+
CertificateArn: [, __expectString, `certificateArn`],
|
|
1793
|
+
EncryptionContractConfiguration: (_) => [
|
|
1794
|
+
,
|
|
1795
|
+
de_EncryptionContractConfiguration(_, context),
|
|
1796
|
+
`encryptionContractConfiguration`,
|
|
1797
|
+
],
|
|
1798
|
+
ResourceId: [, __expectString, `resourceId`],
|
|
1799
|
+
RoleArn: [, __expectString, `roleArn`],
|
|
1800
|
+
SystemIds: [, _json, `systemIds`],
|
|
1801
|
+
Url: [, __expectString, `url`],
|
|
1802
|
+
});
|
|
2131
1803
|
};
|
|
2132
1804
|
const de_StreamSelection = (output, context) => {
|
|
2133
|
-
return {
|
|
2134
|
-
MaxVideoBitsPerSecond: __expectInt32
|
|
2135
|
-
MinVideoBitsPerSecond: __expectInt32
|
|
2136
|
-
StreamOrder: __expectString
|
|
2137
|
-
};
|
|
2138
|
-
};
|
|
2139
|
-
const de_Tags = (output, context) => {
|
|
2140
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2141
|
-
if (value === null) {
|
|
2142
|
-
return acc;
|
|
2143
|
-
}
|
|
2144
|
-
acc[key] = __expectString(value);
|
|
2145
|
-
return acc;
|
|
2146
|
-
}, {});
|
|
1805
|
+
return take(output, {
|
|
1806
|
+
MaxVideoBitsPerSecond: [, __expectInt32, `maxVideoBitsPerSecond`],
|
|
1807
|
+
MinVideoBitsPerSecond: [, __expectInt32, `minVideoBitsPerSecond`],
|
|
1808
|
+
StreamOrder: [, __expectString, `streamOrder`],
|
|
1809
|
+
});
|
|
2147
1810
|
};
|
|
2148
1811
|
const deserializeMetadata = (output) => ({
|
|
2149
1812
|
httpStatusCode: output.statusCode,
|