@aws-sdk/client-mediapackage 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +145 -251
- package/dist-es/protocols/Aws_restJson1.js +72 -178
- package/package.json +26 -26
|
@@ -24,11 +24,9 @@ export var serializeAws_restJson1ConfigureLogsCommand = function (input, context
|
|
|
24
24
|
else {
|
|
25
25
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
26
26
|
}
|
|
27
|
-
body = JSON.stringify(__assign(__assign({}, (input.EgressAccessLogs
|
|
28
|
-
input.EgressAccessLogs !== null && {
|
|
27
|
+
body = JSON.stringify(__assign(__assign({}, (input.EgressAccessLogs != null && {
|
|
29
28
|
egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
|
|
30
|
-
})), (input.IngressAccessLogs
|
|
31
|
-
input.IngressAccessLogs !== null && {
|
|
29
|
+
})), (input.IngressAccessLogs != null && {
|
|
32
30
|
ingressAccessLogs: serializeAws_restJson1IngressAccessLogs(input.IngressAccessLogs, context),
|
|
33
31
|
})));
|
|
34
32
|
return [2, new __HttpRequest({
|
|
@@ -54,7 +52,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
54
52
|
"content-type": "application/json",
|
|
55
53
|
};
|
|
56
54
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
57
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
55
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { description: input.Description })), (input.Id != null && { id: input.Id })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
58
56
|
return [2, new __HttpRequest({
|
|
59
57
|
protocol: protocol,
|
|
60
58
|
hostname: hostname,
|
|
@@ -78,11 +76,9 @@ export var serializeAws_restJson1CreateHarvestJobCommand = function (input, cont
|
|
|
78
76
|
"content-type": "application/json",
|
|
79
77
|
};
|
|
80
78
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/harvest_jobs";
|
|
81
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime
|
|
82
|
-
input.OriginEndpointId !== null && { originEndpointId: input.OriginEndpointId })), (input.S3Destination !== undefined &&
|
|
83
|
-
input.S3Destination !== null && {
|
|
79
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { endTime: input.EndTime })), (input.Id != null && { id: input.Id })), (input.OriginEndpointId != null && { originEndpointId: input.OriginEndpointId })), (input.S3Destination != null && {
|
|
84
80
|
s3Destination: serializeAws_restJson1S3Destination(input.S3Destination, context),
|
|
85
|
-
})), (input.StartTime
|
|
81
|
+
})), (input.StartTime != null && { startTime: input.StartTime })));
|
|
86
82
|
return [2, new __HttpRequest({
|
|
87
83
|
protocol: protocol,
|
|
88
84
|
hostname: hostname,
|
|
@@ -106,19 +102,11 @@ export var serializeAws_restJson1CreateOriginEndpointCommand = function (input,
|
|
|
106
102
|
"content-type": "application/json",
|
|
107
103
|
};
|
|
108
104
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/origin_endpoints";
|
|
109
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Authorization
|
|
110
|
-
input.Authorization !== null && {
|
|
105
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Authorization != null && {
|
|
111
106
|
authorization: serializeAws_restJson1Authorization(input.Authorization, context),
|
|
112
|
-
})), (input.ChannelId
|
|
113
|
-
input.CmafPackage !== null && {
|
|
107
|
+
})), (input.ChannelId != null && { channelId: input.ChannelId })), (input.CmafPackage != null && {
|
|
114
108
|
cmafPackage: serializeAws_restJson1CmafPackageCreateOrUpdateParameters(input.CmafPackage, context),
|
|
115
|
-
})), (input.DashPackage
|
|
116
|
-
input.DashPackage !== null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.HlsPackage !== undefined &&
|
|
117
|
-
input.HlsPackage !== null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) })), (input.Id !== undefined && input.Id !== null && { id: input.Id })), (input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName })), (input.MssPackage !== undefined &&
|
|
118
|
-
input.MssPackage !== null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) })), (input.Origination !== undefined && input.Origination !== null && { origination: input.Origination })), (input.StartoverWindowSeconds !== undefined &&
|
|
119
|
-
input.StartoverWindowSeconds !== null && { startoverWindowSeconds: input.StartoverWindowSeconds })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.TimeDelaySeconds !== undefined &&
|
|
120
|
-
input.TimeDelaySeconds !== null && { timeDelaySeconds: input.TimeDelaySeconds })), (input.Whitelist !== undefined &&
|
|
121
|
-
input.Whitelist !== null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) })));
|
|
109
|
+
})), (input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) })), (input.Description != null && { description: input.Description })), (input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) })), (input.Id != null && { id: input.Id })), (input.ManifestName != null && { manifestName: input.ManifestName })), (input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) })), (input.Origination != null && { origination: input.Origination })), (input.StartoverWindowSeconds != null && { startoverWindowSeconds: input.StartoverWindowSeconds })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.TimeDelaySeconds != null && { timeDelaySeconds: input.TimeDelaySeconds })), (input.Whitelist != null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) })));
|
|
122
110
|
return [2, new __HttpRequest({
|
|
123
111
|
protocol: protocol,
|
|
124
112
|
hostname: hostname,
|
|
@@ -480,8 +468,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
480
468
|
else {
|
|
481
469
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
482
470
|
}
|
|
483
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
484
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
471
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
485
472
|
return [2, new __HttpRequest({
|
|
486
473
|
protocol: protocol,
|
|
487
474
|
hostname: hostname,
|
|
@@ -548,7 +535,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
548
535
|
else {
|
|
549
536
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
550
537
|
}
|
|
551
|
-
body = JSON.stringify(__assign({}, (input.Description
|
|
538
|
+
body = JSON.stringify(__assign({}, (input.Description != null && { description: input.Description })));
|
|
552
539
|
return [2, new __HttpRequest({
|
|
553
540
|
protocol: protocol,
|
|
554
541
|
hostname: hostname,
|
|
@@ -582,19 +569,11 @@ export var serializeAws_restJson1UpdateOriginEndpointCommand = function (input,
|
|
|
582
569
|
else {
|
|
583
570
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
584
571
|
}
|
|
585
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Authorization
|
|
586
|
-
input.Authorization !== null && {
|
|
572
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Authorization != null && {
|
|
587
573
|
authorization: serializeAws_restJson1Authorization(input.Authorization, context),
|
|
588
|
-
})), (input.CmafPackage
|
|
589
|
-
input.CmafPackage !== null && {
|
|
574
|
+
})), (input.CmafPackage != null && {
|
|
590
575
|
cmafPackage: serializeAws_restJson1CmafPackageCreateOrUpdateParameters(input.CmafPackage, context),
|
|
591
|
-
})), (input.DashPackage
|
|
592
|
-
input.DashPackage !== null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.HlsPackage !== undefined &&
|
|
593
|
-
input.HlsPackage !== null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) })), (input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName })), (input.MssPackage !== undefined &&
|
|
594
|
-
input.MssPackage !== null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) })), (input.Origination !== undefined && input.Origination !== null && { origination: input.Origination })), (input.StartoverWindowSeconds !== undefined &&
|
|
595
|
-
input.StartoverWindowSeconds !== null && { startoverWindowSeconds: input.StartoverWindowSeconds })), (input.TimeDelaySeconds !== undefined &&
|
|
596
|
-
input.TimeDelaySeconds !== null && { timeDelaySeconds: input.TimeDelaySeconds })), (input.Whitelist !== undefined &&
|
|
597
|
-
input.Whitelist !== null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) })));
|
|
576
|
+
})), (input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) })), (input.Description != null && { description: input.Description })), (input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) })), (input.ManifestName != null && { manifestName: input.ManifestName })), (input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) })), (input.Origination != null && { origination: input.Origination })), (input.StartoverWindowSeconds != null && { startoverWindowSeconds: input.StartoverWindowSeconds })), (input.TimeDelaySeconds != null && { timeDelaySeconds: input.TimeDelaySeconds })), (input.Whitelist != null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) })));
|
|
598
577
|
return [2, new __HttpRequest({
|
|
599
578
|
protocol: protocol,
|
|
600
579
|
hostname: hostname,
|
|
@@ -2494,138 +2473,84 @@ var serializeAws_restJson1AdTriggers = function (input, context) {
|
|
|
2494
2473
|
});
|
|
2495
2474
|
};
|
|
2496
2475
|
var serializeAws_restJson1Authorization = function (input, context) {
|
|
2497
|
-
return __assign(__assign({}, (input.CdnIdentifierSecret
|
|
2498
|
-
input.CdnIdentifierSecret !== null && { cdnIdentifierSecret: input.CdnIdentifierSecret })), (input.SecretsRoleArn !== undefined &&
|
|
2499
|
-
input.SecretsRoleArn !== null && { secretsRoleArn: input.SecretsRoleArn }));
|
|
2476
|
+
return __assign(__assign({}, (input.CdnIdentifierSecret != null && { cdnIdentifierSecret: input.CdnIdentifierSecret })), (input.SecretsRoleArn != null && { secretsRoleArn: input.SecretsRoleArn }));
|
|
2500
2477
|
};
|
|
2501
2478
|
var serializeAws_restJson1CmafEncryption = function (input, context) {
|
|
2502
|
-
return __assign(__assign(__assign({}, (input.ConstantInitializationVector
|
|
2503
|
-
input.ConstantInitializationVector !== null && {
|
|
2479
|
+
return __assign(__assign(__assign({}, (input.ConstantInitializationVector != null && {
|
|
2504
2480
|
constantInitializationVector: input.ConstantInitializationVector,
|
|
2505
|
-
})), (input.KeyRotationIntervalSeconds
|
|
2506
|
-
input.KeyRotationIntervalSeconds !== null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds })), (input.SpekeKeyProvider !== undefined &&
|
|
2507
|
-
input.SpekeKeyProvider !== null && {
|
|
2481
|
+
})), (input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds })), (input.SpekeKeyProvider != null && {
|
|
2508
2482
|
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
2509
2483
|
}));
|
|
2510
2484
|
};
|
|
2511
2485
|
var serializeAws_restJson1CmafPackageCreateOrUpdateParameters = function (input, context) {
|
|
2512
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Encryption
|
|
2513
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) })), (input.HlsManifests !== undefined &&
|
|
2514
|
-
input.HlsManifests !== null && {
|
|
2486
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Encryption != null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) })), (input.HlsManifests != null && {
|
|
2515
2487
|
hlsManifests: serializeAws_restJson1__listOfHlsManifestCreateOrUpdateParameters(input.HlsManifests, context),
|
|
2516
|
-
})), (input.SegmentDurationSeconds
|
|
2517
|
-
input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.SegmentPrefix !== undefined && input.SegmentPrefix !== null && { segmentPrefix: input.SegmentPrefix })), (input.StreamSelection !== undefined &&
|
|
2518
|
-
input.StreamSelection !== null && {
|
|
2488
|
+
})), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.SegmentPrefix != null && { segmentPrefix: input.SegmentPrefix })), (input.StreamSelection != null && {
|
|
2519
2489
|
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
2520
2490
|
}));
|
|
2521
2491
|
};
|
|
2522
2492
|
var serializeAws_restJson1DashEncryption = function (input, context) {
|
|
2523
|
-
return __assign(__assign({}, (input.KeyRotationIntervalSeconds
|
|
2524
|
-
input.KeyRotationIntervalSeconds !== null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds })), (input.SpekeKeyProvider !== undefined &&
|
|
2525
|
-
input.SpekeKeyProvider !== null && {
|
|
2493
|
+
return __assign(__assign({}, (input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds })), (input.SpekeKeyProvider != null && {
|
|
2526
2494
|
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
2527
2495
|
}));
|
|
2528
2496
|
};
|
|
2529
2497
|
var serializeAws_restJson1DashPackage = function (input, context) {
|
|
2530
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdTriggers
|
|
2531
|
-
input.AdTriggers !== null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) })), (input.AdsOnDeliveryRestrictions !== undefined &&
|
|
2532
|
-
input.AdsOnDeliveryRestrictions !== null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions })), (input.Encryption !== undefined &&
|
|
2533
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) })), (input.ManifestLayout !== undefined &&
|
|
2534
|
-
input.ManifestLayout !== null && { manifestLayout: input.ManifestLayout })), (input.ManifestWindowSeconds !== undefined &&
|
|
2535
|
-
input.ManifestWindowSeconds !== null && { manifestWindowSeconds: input.ManifestWindowSeconds })), (input.MinBufferTimeSeconds !== undefined &&
|
|
2536
|
-
input.MinBufferTimeSeconds !== null && { minBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.MinUpdatePeriodSeconds !== undefined &&
|
|
2537
|
-
input.MinUpdatePeriodSeconds !== null && { minUpdatePeriodSeconds: input.MinUpdatePeriodSeconds })), (input.PeriodTriggers !== undefined &&
|
|
2538
|
-
input.PeriodTriggers !== null && {
|
|
2498
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) })), (input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions })), (input.Encryption != null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) })), (input.ManifestLayout != null && { manifestLayout: input.ManifestLayout })), (input.ManifestWindowSeconds != null && { manifestWindowSeconds: input.ManifestWindowSeconds })), (input.MinBufferTimeSeconds != null && { minBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.MinUpdatePeriodSeconds != null && { minUpdatePeriodSeconds: input.MinUpdatePeriodSeconds })), (input.PeriodTriggers != null && {
|
|
2539
2499
|
periodTriggers: serializeAws_restJson1__listOf__PeriodTriggersElement(input.PeriodTriggers, context),
|
|
2540
|
-
})), (input.Profile
|
|
2541
|
-
input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.SegmentTemplateFormat !== undefined &&
|
|
2542
|
-
input.SegmentTemplateFormat !== null && { segmentTemplateFormat: input.SegmentTemplateFormat })), (input.StreamSelection !== undefined &&
|
|
2543
|
-
input.StreamSelection !== null && {
|
|
2500
|
+
})), (input.Profile != null && { profile: input.Profile })), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat })), (input.StreamSelection != null && {
|
|
2544
2501
|
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
2545
|
-
})), (input.SuggestedPresentationDelaySeconds
|
|
2546
|
-
input.SuggestedPresentationDelaySeconds !== null && {
|
|
2502
|
+
})), (input.SuggestedPresentationDelaySeconds != null && {
|
|
2547
2503
|
suggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
|
|
2548
|
-
})), (input.UtcTiming
|
|
2504
|
+
})), (input.UtcTiming != null && { utcTiming: input.UtcTiming })), (input.UtcTimingUri != null && { utcTimingUri: input.UtcTimingUri }));
|
|
2549
2505
|
};
|
|
2550
2506
|
var serializeAws_restJson1EgressAccessLogs = function (input, context) {
|
|
2551
|
-
return __assign({}, (input.LogGroupName
|
|
2507
|
+
return __assign({}, (input.LogGroupName != null && { logGroupName: input.LogGroupName }));
|
|
2552
2508
|
};
|
|
2553
2509
|
var serializeAws_restJson1EncryptionContractConfiguration = function (input, context) {
|
|
2554
|
-
return __assign(__assign({}, (input.PresetSpeke20Audio
|
|
2555
|
-
input.PresetSpeke20Audio !== null && { presetSpeke20Audio: input.PresetSpeke20Audio })), (input.PresetSpeke20Video !== undefined &&
|
|
2556
|
-
input.PresetSpeke20Video !== null && { presetSpeke20Video: input.PresetSpeke20Video }));
|
|
2510
|
+
return __assign(__assign({}, (input.PresetSpeke20Audio != null && { presetSpeke20Audio: input.PresetSpeke20Audio })), (input.PresetSpeke20Video != null && { presetSpeke20Video: input.PresetSpeke20Video }));
|
|
2557
2511
|
};
|
|
2558
2512
|
var serializeAws_restJson1HlsEncryption = function (input, context) {
|
|
2559
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ConstantInitializationVector
|
|
2560
|
-
input.ConstantInitializationVector !== null && {
|
|
2513
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ConstantInitializationVector != null && {
|
|
2561
2514
|
constantInitializationVector: input.ConstantInitializationVector,
|
|
2562
|
-
})), (input.EncryptionMethod
|
|
2563
|
-
input.EncryptionMethod !== null && { encryptionMethod: input.EncryptionMethod })), (input.KeyRotationIntervalSeconds !== undefined &&
|
|
2564
|
-
input.KeyRotationIntervalSeconds !== null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds })), (input.RepeatExtXKey !== undefined && input.RepeatExtXKey !== null && { repeatExtXKey: input.RepeatExtXKey })), (input.SpekeKeyProvider !== undefined &&
|
|
2565
|
-
input.SpekeKeyProvider !== null && {
|
|
2515
|
+
})), (input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod })), (input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds })), (input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey })), (input.SpekeKeyProvider != null && {
|
|
2566
2516
|
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
2567
2517
|
}));
|
|
2568
2518
|
};
|
|
2569
2519
|
var serializeAws_restJson1HlsManifestCreateOrUpdateParameters = function (input, context) {
|
|
2570
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdMarkers
|
|
2571
|
-
input.AdTriggers !== null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) })), (input.AdsOnDeliveryRestrictions !== undefined &&
|
|
2572
|
-
input.AdsOnDeliveryRestrictions !== null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions })), (input.Id !== undefined && input.Id !== null && { id: input.Id })), (input.IncludeIframeOnlyStream !== undefined &&
|
|
2573
|
-
input.IncludeIframeOnlyStream !== null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream })), (input.ManifestName !== undefined && input.ManifestName !== null && { manifestName: input.ManifestName })), (input.PlaylistType !== undefined && input.PlaylistType !== null && { playlistType: input.PlaylistType })), (input.PlaylistWindowSeconds !== undefined &&
|
|
2574
|
-
input.PlaylistWindowSeconds !== null && { playlistWindowSeconds: input.PlaylistWindowSeconds })), (input.ProgramDateTimeIntervalSeconds !== undefined &&
|
|
2575
|
-
input.ProgramDateTimeIntervalSeconds !== null && {
|
|
2520
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdMarkers != null && { adMarkers: input.AdMarkers })), (input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) })), (input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions })), (input.Id != null && { id: input.Id })), (input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream })), (input.ManifestName != null && { manifestName: input.ManifestName })), (input.PlaylistType != null && { playlistType: input.PlaylistType })), (input.PlaylistWindowSeconds != null && { playlistWindowSeconds: input.PlaylistWindowSeconds })), (input.ProgramDateTimeIntervalSeconds != null && {
|
|
2576
2521
|
programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
|
|
2577
2522
|
}));
|
|
2578
2523
|
};
|
|
2579
2524
|
var serializeAws_restJson1HlsPackage = function (input, context) {
|
|
2580
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdMarkers
|
|
2581
|
-
input.AdTriggers !== null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) })), (input.AdsOnDeliveryRestrictions !== undefined &&
|
|
2582
|
-
input.AdsOnDeliveryRestrictions !== null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions })), (input.Encryption !== undefined &&
|
|
2583
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) })), (input.IncludeDvbSubtitles !== undefined &&
|
|
2584
|
-
input.IncludeDvbSubtitles !== null && { includeDvbSubtitles: input.IncludeDvbSubtitles })), (input.IncludeIframeOnlyStream !== undefined &&
|
|
2585
|
-
input.IncludeIframeOnlyStream !== null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream })), (input.PlaylistType !== undefined && input.PlaylistType !== null && { playlistType: input.PlaylistType })), (input.PlaylistWindowSeconds !== undefined &&
|
|
2586
|
-
input.PlaylistWindowSeconds !== null && { playlistWindowSeconds: input.PlaylistWindowSeconds })), (input.ProgramDateTimeIntervalSeconds !== undefined &&
|
|
2587
|
-
input.ProgramDateTimeIntervalSeconds !== null && {
|
|
2525
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdMarkers != null && { adMarkers: input.AdMarkers })), (input.AdTriggers != null && { adTriggers: serializeAws_restJson1AdTriggers(input.AdTriggers, context) })), (input.AdsOnDeliveryRestrictions != null && { adsOnDeliveryRestrictions: input.AdsOnDeliveryRestrictions })), (input.Encryption != null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) })), (input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles })), (input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream })), (input.PlaylistType != null && { playlistType: input.PlaylistType })), (input.PlaylistWindowSeconds != null && { playlistWindowSeconds: input.PlaylistWindowSeconds })), (input.ProgramDateTimeIntervalSeconds != null && {
|
|
2588
2526
|
programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
|
|
2589
|
-
})), (input.SegmentDurationSeconds
|
|
2590
|
-
input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.StreamSelection !== undefined &&
|
|
2591
|
-
input.StreamSelection !== null && {
|
|
2527
|
+
})), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.StreamSelection != null && {
|
|
2592
2528
|
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
2593
|
-
})), (input.UseAudioRenditionGroup
|
|
2594
|
-
input.UseAudioRenditionGroup !== null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }));
|
|
2529
|
+
})), (input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }));
|
|
2595
2530
|
};
|
|
2596
2531
|
var serializeAws_restJson1IngressAccessLogs = function (input, context) {
|
|
2597
|
-
return __assign({}, (input.LogGroupName
|
|
2532
|
+
return __assign({}, (input.LogGroupName != null && { logGroupName: input.LogGroupName }));
|
|
2598
2533
|
};
|
|
2599
2534
|
var serializeAws_restJson1MssEncryption = function (input, context) {
|
|
2600
|
-
return __assign({}, (input.SpekeKeyProvider
|
|
2601
|
-
input.SpekeKeyProvider !== null && {
|
|
2535
|
+
return __assign({}, (input.SpekeKeyProvider != null && {
|
|
2602
2536
|
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
2603
2537
|
}));
|
|
2604
2538
|
};
|
|
2605
2539
|
var serializeAws_restJson1MssPackage = function (input, context) {
|
|
2606
|
-
return __assign(__assign(__assign(__assign({}, (input.Encryption
|
|
2607
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) })), (input.ManifestWindowSeconds !== undefined &&
|
|
2608
|
-
input.ManifestWindowSeconds !== null && { manifestWindowSeconds: input.ManifestWindowSeconds })), (input.SegmentDurationSeconds !== undefined &&
|
|
2609
|
-
input.SegmentDurationSeconds !== null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.StreamSelection !== undefined &&
|
|
2610
|
-
input.StreamSelection !== null && {
|
|
2540
|
+
return __assign(__assign(__assign(__assign({}, (input.Encryption != null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) })), (input.ManifestWindowSeconds != null && { manifestWindowSeconds: input.ManifestWindowSeconds })), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.StreamSelection != null && {
|
|
2611
2541
|
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
2612
2542
|
}));
|
|
2613
2543
|
};
|
|
2614
2544
|
var serializeAws_restJson1S3Destination = function (input, context) {
|
|
2615
|
-
return __assign(__assign(__assign({}, (input.BucketName
|
|
2545
|
+
return __assign(__assign(__assign({}, (input.BucketName != null && { bucketName: input.BucketName })), (input.ManifestKey != null && { manifestKey: input.ManifestKey })), (input.RoleArn != null && { roleArn: input.RoleArn }));
|
|
2616
2546
|
};
|
|
2617
2547
|
var serializeAws_restJson1SpekeKeyProvider = function (input, context) {
|
|
2618
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CertificateArn
|
|
2619
|
-
input.CertificateArn !== null && { certificateArn: input.CertificateArn })), (input.EncryptionContractConfiguration !== undefined &&
|
|
2620
|
-
input.EncryptionContractConfiguration !== null && {
|
|
2548
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CertificateArn != null && { certificateArn: input.CertificateArn })), (input.EncryptionContractConfiguration != null && {
|
|
2621
2549
|
encryptionContractConfiguration: serializeAws_restJson1EncryptionContractConfiguration(input.EncryptionContractConfiguration, context),
|
|
2622
|
-
})), (input.ResourceId
|
|
2623
|
-
input.SystemIds !== null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) })), (input.Url !== undefined && input.Url !== null && { url: input.Url }));
|
|
2550
|
+
})), (input.ResourceId != null && { resourceId: input.ResourceId })), (input.RoleArn != null && { roleArn: input.RoleArn })), (input.SystemIds != null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) })), (input.Url != null && { url: input.Url }));
|
|
2624
2551
|
};
|
|
2625
2552
|
var serializeAws_restJson1StreamSelection = function (input, context) {
|
|
2626
|
-
return __assign(__assign(__assign({}, (input.MaxVideoBitsPerSecond
|
|
2627
|
-
input.MaxVideoBitsPerSecond !== null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond })), (input.MinVideoBitsPerSecond !== undefined &&
|
|
2628
|
-
input.MinVideoBitsPerSecond !== null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond })), (input.StreamOrder !== undefined && input.StreamOrder !== null && { streamOrder: input.StreamOrder }));
|
|
2553
|
+
return __assign(__assign(__assign({}, (input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond })), (input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond })), (input.StreamOrder != null && { streamOrder: input.StreamOrder }));
|
|
2629
2554
|
};
|
|
2630
2555
|
var serializeAws_restJson1Tags = function (input, context) {
|
|
2631
2556
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -2745,41 +2670,35 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
2745
2670
|
return {
|
|
2746
2671
|
Arn: __expectString(output.arn),
|
|
2747
2672
|
Description: __expectString(output.description),
|
|
2748
|
-
EgressAccessLogs: output.egressAccessLogs
|
|
2673
|
+
EgressAccessLogs: output.egressAccessLogs != null
|
|
2749
2674
|
? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
|
|
2750
2675
|
: undefined,
|
|
2751
|
-
HlsIngest: output.hlsIngest
|
|
2752
|
-
? deserializeAws_restJson1HlsIngest(output.hlsIngest, context)
|
|
2753
|
-
: undefined,
|
|
2676
|
+
HlsIngest: output.hlsIngest != null ? deserializeAws_restJson1HlsIngest(output.hlsIngest, context) : undefined,
|
|
2754
2677
|
Id: __expectString(output.id),
|
|
2755
|
-
IngressAccessLogs: output.ingressAccessLogs
|
|
2678
|
+
IngressAccessLogs: output.ingressAccessLogs != null
|
|
2756
2679
|
? deserializeAws_restJson1IngressAccessLogs(output.ingressAccessLogs, context)
|
|
2757
2680
|
: undefined,
|
|
2758
|
-
Tags: output.tags
|
|
2759
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2760
|
-
: undefined,
|
|
2681
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2761
2682
|
};
|
|
2762
2683
|
};
|
|
2763
2684
|
var deserializeAws_restJson1CmafEncryption = function (output, context) {
|
|
2764
2685
|
return {
|
|
2765
2686
|
ConstantInitializationVector: __expectString(output.constantInitializationVector),
|
|
2766
2687
|
KeyRotationIntervalSeconds: __expectInt32(output.keyRotationIntervalSeconds),
|
|
2767
|
-
SpekeKeyProvider: output.spekeKeyProvider
|
|
2688
|
+
SpekeKeyProvider: output.spekeKeyProvider != null
|
|
2768
2689
|
? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
|
|
2769
2690
|
: undefined,
|
|
2770
2691
|
};
|
|
2771
2692
|
};
|
|
2772
2693
|
var deserializeAws_restJson1CmafPackage = function (output, context) {
|
|
2773
2694
|
return {
|
|
2774
|
-
Encryption: output.encryption
|
|
2775
|
-
|
|
2776
|
-
: undefined,
|
|
2777
|
-
HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
|
|
2695
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1CmafEncryption(output.encryption, context) : undefined,
|
|
2696
|
+
HlsManifests: output.hlsManifests != null
|
|
2778
2697
|
? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
|
|
2779
2698
|
: undefined,
|
|
2780
2699
|
SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
|
|
2781
2700
|
SegmentPrefix: __expectString(output.segmentPrefix),
|
|
2782
|
-
StreamSelection: output.streamSelection
|
|
2701
|
+
StreamSelection: output.streamSelection != null
|
|
2783
2702
|
? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
|
|
2784
2703
|
: undefined,
|
|
2785
2704
|
};
|
|
@@ -2787,31 +2706,27 @@ var deserializeAws_restJson1CmafPackage = function (output, context) {
|
|
|
2787
2706
|
var deserializeAws_restJson1DashEncryption = function (output, context) {
|
|
2788
2707
|
return {
|
|
2789
2708
|
KeyRotationIntervalSeconds: __expectInt32(output.keyRotationIntervalSeconds),
|
|
2790
|
-
SpekeKeyProvider: output.spekeKeyProvider
|
|
2709
|
+
SpekeKeyProvider: output.spekeKeyProvider != null
|
|
2791
2710
|
? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
|
|
2792
2711
|
: undefined,
|
|
2793
2712
|
};
|
|
2794
2713
|
};
|
|
2795
2714
|
var deserializeAws_restJson1DashPackage = function (output, context) {
|
|
2796
2715
|
return {
|
|
2797
|
-
AdTriggers: output.adTriggers
|
|
2798
|
-
? deserializeAws_restJson1AdTriggers(output.adTriggers, context)
|
|
2799
|
-
: undefined,
|
|
2716
|
+
AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
|
|
2800
2717
|
AdsOnDeliveryRestrictions: __expectString(output.adsOnDeliveryRestrictions),
|
|
2801
|
-
Encryption: output.encryption
|
|
2802
|
-
? deserializeAws_restJson1DashEncryption(output.encryption, context)
|
|
2803
|
-
: undefined,
|
|
2718
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1DashEncryption(output.encryption, context) : undefined,
|
|
2804
2719
|
ManifestLayout: __expectString(output.manifestLayout),
|
|
2805
2720
|
ManifestWindowSeconds: __expectInt32(output.manifestWindowSeconds),
|
|
2806
2721
|
MinBufferTimeSeconds: __expectInt32(output.minBufferTimeSeconds),
|
|
2807
2722
|
MinUpdatePeriodSeconds: __expectInt32(output.minUpdatePeriodSeconds),
|
|
2808
|
-
PeriodTriggers: output.periodTriggers
|
|
2723
|
+
PeriodTriggers: output.periodTriggers != null
|
|
2809
2724
|
? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
|
|
2810
2725
|
: undefined,
|
|
2811
2726
|
Profile: __expectString(output.profile),
|
|
2812
2727
|
SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
|
|
2813
2728
|
SegmentTemplateFormat: __expectString(output.segmentTemplateFormat),
|
|
2814
|
-
StreamSelection: output.streamSelection
|
|
2729
|
+
StreamSelection: output.streamSelection != null
|
|
2815
2730
|
? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
|
|
2816
2731
|
: undefined,
|
|
2817
2732
|
SuggestedPresentationDelaySeconds: __expectInt32(output.suggestedPresentationDelaySeconds),
|
|
@@ -2838,9 +2753,7 @@ var deserializeAws_restJson1HarvestJob = function (output, context) {
|
|
|
2838
2753
|
EndTime: __expectString(output.endTime),
|
|
2839
2754
|
Id: __expectString(output.id),
|
|
2840
2755
|
OriginEndpointId: __expectString(output.originEndpointId),
|
|
2841
|
-
S3Destination: output.s3Destination
|
|
2842
|
-
? deserializeAws_restJson1S3Destination(output.s3Destination, context)
|
|
2843
|
-
: undefined,
|
|
2756
|
+
S3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
|
|
2844
2757
|
StartTime: __expectString(output.startTime),
|
|
2845
2758
|
Status: __expectString(output.status),
|
|
2846
2759
|
};
|
|
@@ -2851,14 +2764,14 @@ var deserializeAws_restJson1HlsEncryption = function (output, context) {
|
|
|
2851
2764
|
EncryptionMethod: __expectString(output.encryptionMethod),
|
|
2852
2765
|
KeyRotationIntervalSeconds: __expectInt32(output.keyRotationIntervalSeconds),
|
|
2853
2766
|
RepeatExtXKey: __expectBoolean(output.repeatExtXKey),
|
|
2854
|
-
SpekeKeyProvider: output.spekeKeyProvider
|
|
2767
|
+
SpekeKeyProvider: output.spekeKeyProvider != null
|
|
2855
2768
|
? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
|
|
2856
2769
|
: undefined,
|
|
2857
2770
|
};
|
|
2858
2771
|
};
|
|
2859
2772
|
var deserializeAws_restJson1HlsIngest = function (output, context) {
|
|
2860
2773
|
return {
|
|
2861
|
-
IngestEndpoints: output.ingestEndpoints
|
|
2774
|
+
IngestEndpoints: output.ingestEndpoints != null
|
|
2862
2775
|
? deserializeAws_restJson1__listOfIngestEndpoint(output.ingestEndpoints, context)
|
|
2863
2776
|
: undefined,
|
|
2864
2777
|
};
|
|
@@ -2878,20 +2791,16 @@ var deserializeAws_restJson1HlsManifest = function (output, context) {
|
|
|
2878
2791
|
var deserializeAws_restJson1HlsPackage = function (output, context) {
|
|
2879
2792
|
return {
|
|
2880
2793
|
AdMarkers: __expectString(output.adMarkers),
|
|
2881
|
-
AdTriggers: output.adTriggers
|
|
2882
|
-
? deserializeAws_restJson1AdTriggers(output.adTriggers, context)
|
|
2883
|
-
: undefined,
|
|
2794
|
+
AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
|
|
2884
2795
|
AdsOnDeliveryRestrictions: __expectString(output.adsOnDeliveryRestrictions),
|
|
2885
|
-
Encryption: output.encryption
|
|
2886
|
-
? deserializeAws_restJson1HlsEncryption(output.encryption, context)
|
|
2887
|
-
: undefined,
|
|
2796
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1HlsEncryption(output.encryption, context) : undefined,
|
|
2888
2797
|
IncludeDvbSubtitles: __expectBoolean(output.includeDvbSubtitles),
|
|
2889
2798
|
IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
|
|
2890
2799
|
PlaylistType: __expectString(output.playlistType),
|
|
2891
2800
|
PlaylistWindowSeconds: __expectInt32(output.playlistWindowSeconds),
|
|
2892
2801
|
ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds),
|
|
2893
2802
|
SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
|
|
2894
|
-
StreamSelection: output.streamSelection
|
|
2803
|
+
StreamSelection: output.streamSelection != null
|
|
2895
2804
|
? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
|
|
2896
2805
|
: undefined,
|
|
2897
2806
|
UseAudioRenditionGroup: __expectBoolean(output.useAudioRenditionGroup),
|
|
@@ -2912,19 +2821,17 @@ var deserializeAws_restJson1IngressAccessLogs = function (output, context) {
|
|
|
2912
2821
|
};
|
|
2913
2822
|
var deserializeAws_restJson1MssEncryption = function (output, context) {
|
|
2914
2823
|
return {
|
|
2915
|
-
SpekeKeyProvider: output.spekeKeyProvider
|
|
2824
|
+
SpekeKeyProvider: output.spekeKeyProvider != null
|
|
2916
2825
|
? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
|
|
2917
2826
|
: undefined,
|
|
2918
2827
|
};
|
|
2919
2828
|
};
|
|
2920
2829
|
var deserializeAws_restJson1MssPackage = function (output, context) {
|
|
2921
2830
|
return {
|
|
2922
|
-
Encryption: output.encryption
|
|
2923
|
-
? deserializeAws_restJson1MssEncryption(output.encryption, context)
|
|
2924
|
-
: undefined,
|
|
2831
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1MssEncryption(output.encryption, context) : undefined,
|
|
2925
2832
|
ManifestWindowSeconds: __expectInt32(output.manifestWindowSeconds),
|
|
2926
2833
|
SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
|
|
2927
|
-
StreamSelection: output.streamSelection
|
|
2834
|
+
StreamSelection: output.streamSelection != null
|
|
2928
2835
|
? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
|
|
2929
2836
|
: undefined,
|
|
2930
2837
|
};
|
|
@@ -2932,35 +2839,21 @@ var deserializeAws_restJson1MssPackage = function (output, context) {
|
|
|
2932
2839
|
var deserializeAws_restJson1OriginEndpoint = function (output, context) {
|
|
2933
2840
|
return {
|
|
2934
2841
|
Arn: __expectString(output.arn),
|
|
2935
|
-
Authorization: output.authorization
|
|
2936
|
-
? deserializeAws_restJson1Authorization(output.authorization, context)
|
|
2937
|
-
: undefined,
|
|
2842
|
+
Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
|
|
2938
2843
|
ChannelId: __expectString(output.channelId),
|
|
2939
|
-
CmafPackage: output.cmafPackage
|
|
2940
|
-
|
|
2941
|
-
: undefined,
|
|
2942
|
-
DashPackage: output.dashPackage !== undefined && output.dashPackage !== null
|
|
2943
|
-
? deserializeAws_restJson1DashPackage(output.dashPackage, context)
|
|
2944
|
-
: undefined,
|
|
2844
|
+
CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
|
|
2845
|
+
DashPackage: output.dashPackage != null ? deserializeAws_restJson1DashPackage(output.dashPackage, context) : undefined,
|
|
2945
2846
|
Description: __expectString(output.description),
|
|
2946
|
-
HlsPackage: output.hlsPackage
|
|
2947
|
-
? deserializeAws_restJson1HlsPackage(output.hlsPackage, context)
|
|
2948
|
-
: undefined,
|
|
2847
|
+
HlsPackage: output.hlsPackage != null ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context) : undefined,
|
|
2949
2848
|
Id: __expectString(output.id),
|
|
2950
2849
|
ManifestName: __expectString(output.manifestName),
|
|
2951
|
-
MssPackage: output.mssPackage
|
|
2952
|
-
? deserializeAws_restJson1MssPackage(output.mssPackage, context)
|
|
2953
|
-
: undefined,
|
|
2850
|
+
MssPackage: output.mssPackage != null ? deserializeAws_restJson1MssPackage(output.mssPackage, context) : undefined,
|
|
2954
2851
|
Origination: __expectString(output.origination),
|
|
2955
2852
|
StartoverWindowSeconds: __expectInt32(output.startoverWindowSeconds),
|
|
2956
|
-
Tags: output.tags
|
|
2957
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2958
|
-
: undefined,
|
|
2853
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2959
2854
|
TimeDelaySeconds: __expectInt32(output.timeDelaySeconds),
|
|
2960
2855
|
Url: __expectString(output.url),
|
|
2961
|
-
Whitelist: output.whitelist
|
|
2962
|
-
? deserializeAws_restJson1__listOf__string(output.whitelist, context)
|
|
2963
|
-
: undefined,
|
|
2856
|
+
Whitelist: output.whitelist != null ? deserializeAws_restJson1__listOf__string(output.whitelist, context) : undefined,
|
|
2964
2857
|
};
|
|
2965
2858
|
};
|
|
2966
2859
|
var deserializeAws_restJson1S3Destination = function (output, context) {
|
|
@@ -2973,14 +2866,12 @@ var deserializeAws_restJson1S3Destination = function (output, context) {
|
|
|
2973
2866
|
var deserializeAws_restJson1SpekeKeyProvider = function (output, context) {
|
|
2974
2867
|
return {
|
|
2975
2868
|
CertificateArn: __expectString(output.certificateArn),
|
|
2976
|
-
EncryptionContractConfiguration: output.encryptionContractConfiguration
|
|
2869
|
+
EncryptionContractConfiguration: output.encryptionContractConfiguration != null
|
|
2977
2870
|
? deserializeAws_restJson1EncryptionContractConfiguration(output.encryptionContractConfiguration, context)
|
|
2978
2871
|
: undefined,
|
|
2979
2872
|
ResourceId: __expectString(output.resourceId),
|
|
2980
2873
|
RoleArn: __expectString(output.roleArn),
|
|
2981
|
-
SystemIds: output.systemIds
|
|
2982
|
-
? deserializeAws_restJson1__listOf__string(output.systemIds, context)
|
|
2983
|
-
: undefined,
|
|
2874
|
+
SystemIds: output.systemIds != null ? deserializeAws_restJson1__listOf__string(output.systemIds, context) : undefined,
|
|
2984
2875
|
Url: __expectString(output.url),
|
|
2985
2876
|
};
|
|
2986
2877
|
};
|
|
@@ -3039,6 +2930,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3039
2930
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3040
2931
|
var sanitizeErrorCode = function (rawValue) {
|
|
3041
2932
|
var cleanValue = rawValue;
|
|
2933
|
+
if (typeof cleanValue === "number") {
|
|
2934
|
+
cleanValue = cleanValue.toString();
|
|
2935
|
+
}
|
|
3042
2936
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3043
2937
|
cleanValue = cleanValue.split(":")[0];
|
|
3044
2938
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediapackage",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediapackage Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|