awscdk-construct-scte-scheduler
Version:
AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
78 lines (77 loc) • 2.06 kB
JavaScript
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
const k = "ref";
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
const _data = {
conditions: [
[]],
[],
["aws.partition", j, d],
[]: "UseFIPS" }, b]],
[]: "UseDualStack" }, b]],
[] }, b]],
[] }, b]],
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
],
results: [
[],
[],
[],
[],
["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
[],
["https://portal.sso.{Region}.amazonaws.com", i],
["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
[],
["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
[],
["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
[],
],
};
const root = 2;
const r = 100_000_000;
const nodes = new Int32Array([
-1,
1,
-1,
0,
13,
3,
1,
4,
r + 12,
2,
5,
r + 12,
3,
8,
6,
4,
7,
r + 11,
5,
r + 9,
r + 10,
4,
11,
9,
6,
10,
r + 8,
7,
r + 6,
r + 7,
5,
12,
r + 5,
6,
r + 4,
r + 5,
3,
r + 1,
14,
4,
r + 2,
r + 3,
]);
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);