@openhi/constructs 0.0.126 → 0.0.128
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/lib/{chunk-ZHMHLK3S.mjs → chunk-7BQHLC7U.mjs} +3 -3
- package/lib/{chunk-7WDX6GPO.mjs → chunk-AWYZJFPL.mjs} +3 -3
- package/lib/{chunk-AHYQFT4N.mjs → chunk-E6MCKJVS.mjs} +3 -3
- package/lib/{chunk-W4KR4CSL.mjs → chunk-M7Y3BOQW.mjs} +2 -2
- package/lib/chunk-M7Y3BOQW.mjs.map +1 -0
- package/lib/{chunk-U7L7T4XU.mjs → chunk-MVQWAIMC.mjs} +2 -2
- package/lib/{chunk-U7L7T4XU.mjs.map → chunk-MVQWAIMC.mjs.map} +1 -1
- package/lib/{chunk-VXX4I3EF.mjs → chunk-SVXLZCF7.mjs} +1 -1
- package/lib/{chunk-VXX4I3EF.mjs.map → chunk-SVXLZCF7.mjs.map} +1 -1
- package/lib/{chunk-YYRWDEG4.mjs → chunk-UT7ADSEJ.mjs} +3 -3
- package/lib/{chunk-YYRWDEG4.mjs.map → chunk-UT7ADSEJ.mjs.map} +1 -1
- package/lib/{chunk-6NBGYGFL.mjs → chunk-VZCPGQXA.mjs} +13 -12
- package/lib/chunk-VZCPGQXA.mjs.map +1 -0
- package/lib/{chunk-WXS3PUHR.mjs → chunk-WGA43MMY.mjs} +4 -4
- package/lib/{chunk-WQWFVEVX.mjs → chunk-X5E4YJGZ.mjs} +2 -2
- package/lib/{chunk-KO64HPWQ.mjs → chunk-ZWSGM6PZ.mjs} +2 -2
- package/lib/delete-chunk.handler.d.mts +1 -1
- package/lib/delete-chunk.handler.d.ts +1 -1
- package/lib/delete-chunk.handler.js +12 -11
- package/lib/delete-chunk.handler.js.map +1 -1
- package/lib/delete-chunk.handler.mjs +2 -2
- package/lib/delete-chunk.handler.mjs.map +1 -1
- package/lib/{events-BfrkMoBD.d.mts → events-COI0BuMM.d.mts} +1 -1
- package/lib/{events-BfrkMoBD.d.ts → events-COI0BuMM.d.ts} +1 -1
- package/lib/index.d.mts +55 -12
- package/lib/index.d.ts +56 -13
- package/lib/index.js +127 -81
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +118 -71
- package/lib/index.mjs.map +1 -1
- package/lib/list-chunks.handler.d.mts +1 -1
- package/lib/list-chunks.handler.d.ts +1 -1
- package/lib/list-chunks.handler.js +12 -11
- package/lib/list-chunks.handler.js.map +1 -1
- package/lib/list-chunks.handler.mjs +2 -2
- package/lib/list-chunks.handler.mjs.map +1 -1
- package/lib/platform-deploy-bridge.handler.d.mts +1 -1
- package/lib/platform-deploy-bridge.handler.d.ts +1 -1
- package/lib/platform-deploy-bridge.handler.js.map +1 -1
- package/lib/platform-deploy-bridge.handler.mjs +1 -1
- package/lib/pre-token-generation.handler.js +12 -11
- package/lib/pre-token-generation.handler.js.map +1 -1
- package/lib/pre-token-generation.handler.mjs +4 -4
- package/lib/provision-default-workspace.handler.js +12 -11
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +4 -4
- package/lib/rename-list-targets.handler.d.mts +1 -1
- package/lib/rename-list-targets.handler.d.ts +1 -1
- package/lib/rename-list-targets.handler.js +12 -11
- package/lib/rename-list-targets.handler.js.map +1 -1
- package/lib/rename-list-targets.handler.mjs +2 -2
- package/lib/rename-list-targets.handler.mjs.map +1 -1
- package/lib/rename-rewrite-chunk.handler.d.mts +1 -1
- package/lib/rename-rewrite-chunk.handler.d.ts +1 -1
- package/lib/rename-rewrite-chunk.handler.js +12 -11
- package/lib/rename-rewrite-chunk.handler.js.map +1 -1
- package/lib/rename-rewrite-chunk.handler.mjs +2 -2
- package/lib/rename-rewrite-chunk.handler.mjs.map +1 -1
- package/lib/rest-api-lambda.handler.js +12 -11
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +7 -7
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/lib/seed-demo-data.handler.js +12 -11
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +5 -5
- package/lib/seed-system-data.handler.js +12 -11
- package/lib/seed-system-data.handler.js.map +1 -1
- package/lib/seed-system-data.handler.mjs +2 -2
- package/lib/static-hosting.viewer-request-handler.d.mts +1 -1
- package/lib/static-hosting.viewer-request-handler.d.ts +1 -1
- package/lib/static-hosting.viewer-request-handler.js.map +1 -1
- package/lib/static-hosting.viewer-request-handler.mjs.map +1 -1
- package/package.json +7 -7
- package/lib/chunk-6NBGYGFL.mjs.map +0 -1
- package/lib/chunk-W4KR4CSL.mjs.map +0 -1
- /package/lib/{chunk-ZHMHLK3S.mjs.map → chunk-7BQHLC7U.mjs.map} +0 -0
- /package/lib/{chunk-7WDX6GPO.mjs.map → chunk-AWYZJFPL.mjs.map} +0 -0
- /package/lib/{chunk-AHYQFT4N.mjs.map → chunk-E6MCKJVS.mjs.map} +0 -0
- /package/lib/{chunk-WXS3PUHR.mjs.map → chunk-WGA43MMY.mjs.map} +0 -0
- /package/lib/{chunk-WQWFVEVX.mjs.map → chunk-X5E4YJGZ.mjs.map} +0 -0
- /package/lib/{chunk-KO64HPWQ.mjs.map → chunk-ZWSGM6PZ.mjs.map} +0 -0
package/lib/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
demoScenarioIdentifier,
|
|
29
29
|
import_workflows,
|
|
30
30
|
openhiResourceIdentifier
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WGA43MMY.mjs";
|
|
32
32
|
import {
|
|
33
33
|
OWNING_DELETE_CASCADE_CONSUMER_NAME,
|
|
34
34
|
OWNING_DELETE_CASCADE_DEFAULT_CONCURRENCY,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
RENAME_CASCADE_SLOW_THRESHOLD_SECONDS,
|
|
45
45
|
import_workflows as import_workflows4
|
|
46
46
|
} from "./chunk-23PUSHBV.mjs";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-E6MCKJVS.mjs";
|
|
48
48
|
import {
|
|
49
49
|
PROVISION_DEFAULT_WORKSPACE_DETAIL_TYPE,
|
|
50
50
|
USER_ONBOARDING_EVENT_SOURCE,
|
|
@@ -58,16 +58,16 @@ import {
|
|
|
58
58
|
OPENHI_REPO_TAG_KEY_ENV_VAR,
|
|
59
59
|
OPENHI_TAG_KEY_PREFIX_ENV_VAR,
|
|
60
60
|
PLATFORM_DEPLOY_BRIDGE_ACTOR_SYSTEM
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-SVXLZCF7.mjs";
|
|
62
62
|
import {
|
|
63
63
|
require_lib
|
|
64
64
|
} from "./chunk-ZM4GDHHC.mjs";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-AWYZJFPL.mjs";
|
|
66
66
|
import "./chunk-HQ67J7BP.mjs";
|
|
67
67
|
import "./chunk-QJDHVMKT.mjs";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-MVQWAIMC.mjs";
|
|
69
69
|
import "./chunk-FYHBHHWK.mjs";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-VZCPGQXA.mjs";
|
|
71
71
|
import "./chunk-TRY7JGWO.mjs";
|
|
72
72
|
import {
|
|
73
73
|
__commonJS,
|
|
@@ -181,7 +181,6 @@ var OpenHiEnvironment = class _OpenHiEnvironment extends Stage {
|
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Finds the OpenHiEnvironment that contains the given construct.
|
|
184
|
-
* ```
|
|
185
184
|
*/
|
|
186
185
|
static of(construct) {
|
|
187
186
|
return construct.node.scopes.reverse().find(_OpenHiEnvironment.isOpenHiEnvironment);
|
|
@@ -372,7 +371,7 @@ var OpenHiService = class extends Stack {
|
|
|
372
371
|
* @param id - Unique identifier for this service stack (e.g., "user-service")
|
|
373
372
|
* @param props - Optional properties for configuring the service
|
|
374
373
|
*
|
|
375
|
-
* @throws {Error} If account and region are not defined in props or environment
|
|
374
|
+
* @throws \{Error\} If account and region are not defined in props or environment
|
|
376
375
|
*
|
|
377
376
|
*/
|
|
378
377
|
constructor(ohEnv, id, props = {}) {
|
|
@@ -1487,32 +1486,14 @@ import { Construct as Construct7 } from "constructs";
|
|
|
1487
1486
|
var RootHostedZone = class extends Construct7 {
|
|
1488
1487
|
};
|
|
1489
1488
|
|
|
1490
|
-
// src/components/static-hosting/
|
|
1491
|
-
import {
|
|
1492
|
-
import {
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
const {
|
|
1499
|
-
bucket,
|
|
1500
|
-
contentSourceDirectory,
|
|
1501
|
-
contentDestinationDirectory = "/",
|
|
1502
|
-
subDomain = stack.branchName,
|
|
1503
|
-
fullDomain
|
|
1504
|
-
} = props;
|
|
1505
|
-
const keyPrefix = [paramCase2(subDomain), fullDomain].join(".");
|
|
1506
|
-
const isTestEnv = process.env.JEST_WORKER_ID !== void 0;
|
|
1507
|
-
const sources = isTestEnv ? [] : [Source.asset(contentSourceDirectory)];
|
|
1508
|
-
new BucketDeployment(this, "deploy", {
|
|
1509
|
-
sources,
|
|
1510
|
-
destinationBucket: bucket,
|
|
1511
|
-
retainOnDelete: false,
|
|
1512
|
-
destinationKeyPrefix: `${keyPrefix}${contentDestinationDirectory}`
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1489
|
+
// src/components/static-hosting/per-branch-hostname.ts
|
|
1490
|
+
import { Distribution as Distribution2 } from "aws-cdk-lib/aws-cloudfront";
|
|
1491
|
+
import {
|
|
1492
|
+
ARecord as ARecord2,
|
|
1493
|
+
RecordTarget as RecordTarget2
|
|
1494
|
+
} from "aws-cdk-lib/aws-route53";
|
|
1495
|
+
import { CloudFrontTarget as CloudFrontTarget2 } from "aws-cdk-lib/aws-route53-targets";
|
|
1496
|
+
import { Construct as Construct9 } from "constructs";
|
|
1516
1497
|
|
|
1517
1498
|
// src/components/static-hosting/static-hosting.ts
|
|
1518
1499
|
import * as fs6 from "fs";
|
|
@@ -1543,9 +1524,9 @@ import {
|
|
|
1543
1524
|
} from "aws-cdk-lib/aws-route53";
|
|
1544
1525
|
import { CloudFrontTarget } from "aws-cdk-lib/aws-route53-targets";
|
|
1545
1526
|
import { Bucket as Bucket2 } from "aws-cdk-lib/aws-s3";
|
|
1546
|
-
import { Construct as
|
|
1527
|
+
import { Construct as Construct8 } from "constructs";
|
|
1547
1528
|
var STATIC_HOSTING_SERVICE_TYPE = "website";
|
|
1548
|
-
var _StaticHosting = class _StaticHosting extends
|
|
1529
|
+
var _StaticHosting = class _StaticHosting extends Construct8 {
|
|
1549
1530
|
/**
|
|
1550
1531
|
* Returns true when `domainName` begins with a wildcard label (`*.`),
|
|
1551
1532
|
* indicating it is an alt-name on the CloudFront cert but cannot be
|
|
@@ -1742,6 +1723,71 @@ _StaticHosting.SSM_PARAM_NAME_DISTRIBUTION_DOMAIN = "STATIC_HOSTING_DISTRIBUTION
|
|
|
1742
1723
|
_StaticHosting.SSM_PARAM_NAME_DISTRIBUTION_ID = "STATIC_HOSTING_DISTRIBUTION_ID";
|
|
1743
1724
|
var StaticHosting = _StaticHosting;
|
|
1744
1725
|
|
|
1726
|
+
// src/components/static-hosting/per-branch-hostname.ts
|
|
1727
|
+
var PerBranchHostname = class extends Construct9 {
|
|
1728
|
+
constructor(scope, id, props) {
|
|
1729
|
+
super(scope, id);
|
|
1730
|
+
const stack = OpenHiService.of(scope);
|
|
1731
|
+
const serviceType = props.serviceType ?? STATIC_HOSTING_SERVICE_TYPE;
|
|
1732
|
+
const distributionDomain = DiscoverableStringParameter.valueForLookupName(
|
|
1733
|
+
this,
|
|
1734
|
+
{
|
|
1735
|
+
ssmParamName: StaticHosting.SSM_PARAM_NAME_DISTRIBUTION_DOMAIN,
|
|
1736
|
+
serviceType,
|
|
1737
|
+
branchHash: stack.releaseBranchHash
|
|
1738
|
+
}
|
|
1739
|
+
);
|
|
1740
|
+
const distributionId = DiscoverableStringParameter.valueForLookupName(
|
|
1741
|
+
this,
|
|
1742
|
+
{
|
|
1743
|
+
ssmParamName: StaticHosting.SSM_PARAM_NAME_DISTRIBUTION_ID,
|
|
1744
|
+
serviceType,
|
|
1745
|
+
branchHash: stack.releaseBranchHash
|
|
1746
|
+
}
|
|
1747
|
+
);
|
|
1748
|
+
const distribution = Distribution2.fromDistributionAttributes(
|
|
1749
|
+
this,
|
|
1750
|
+
"imported-distribution",
|
|
1751
|
+
{
|
|
1752
|
+
domainName: distributionDomain,
|
|
1753
|
+
distributionId
|
|
1754
|
+
}
|
|
1755
|
+
);
|
|
1756
|
+
this.record = new ARecord2(this, "alias-record", {
|
|
1757
|
+
zone: props.hostedZone,
|
|
1758
|
+
recordName: props.hostname,
|
|
1759
|
+
target: RecordTarget2.fromAlias(new CloudFrontTarget2(distribution))
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1764
|
+
// src/components/static-hosting/static-content.ts
|
|
1765
|
+
import { BucketDeployment, Source } from "aws-cdk-lib/aws-s3-deployment";
|
|
1766
|
+
import { paramCase as paramCase2 } from "change-case";
|
|
1767
|
+
import { Construct as Construct10 } from "constructs";
|
|
1768
|
+
var StaticContent = class extends Construct10 {
|
|
1769
|
+
constructor(scope, id, props) {
|
|
1770
|
+
super(scope, id);
|
|
1771
|
+
const stack = OpenHiService.of(scope);
|
|
1772
|
+
const {
|
|
1773
|
+
bucket,
|
|
1774
|
+
contentSourceDirectory,
|
|
1775
|
+
contentDestinationDirectory = "/",
|
|
1776
|
+
subDomain = stack.branchName,
|
|
1777
|
+
fullDomain
|
|
1778
|
+
} = props;
|
|
1779
|
+
const keyPrefix = [paramCase2(subDomain), fullDomain].join(".");
|
|
1780
|
+
const isTestEnv = process.env.JEST_WORKER_ID !== void 0;
|
|
1781
|
+
const sources = isTestEnv ? [] : [Source.asset(contentSourceDirectory)];
|
|
1782
|
+
new BucketDeployment(this, "deploy", {
|
|
1783
|
+
sources,
|
|
1784
|
+
destinationBucket: bucket,
|
|
1785
|
+
retainOnDelete: false,
|
|
1786
|
+
destinationKeyPrefix: `${keyPrefix}${contentDestinationDirectory}`
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
};
|
|
1790
|
+
|
|
1745
1791
|
// src/services/open-hi-auth-service.ts
|
|
1746
1792
|
import {
|
|
1747
1793
|
LambdaVersion,
|
|
@@ -1771,7 +1817,7 @@ import {
|
|
|
1771
1817
|
import { StringParameter as StringParameter3 } from "aws-cdk-lib/aws-ssm";
|
|
1772
1818
|
|
|
1773
1819
|
// src/workflows/control-plane/platform-deploy-bridge/platform-deploy-bridge.ts
|
|
1774
|
-
import { Construct as
|
|
1820
|
+
import { Construct as Construct12 } from "constructs";
|
|
1775
1821
|
|
|
1776
1822
|
// src/workflows/control-plane/platform-deploy-bridge/platform-deploy-bridge-lambda.ts
|
|
1777
1823
|
import fs7 from "fs";
|
|
@@ -1782,7 +1828,7 @@ import { LambdaFunction } from "aws-cdk-lib/aws-events-targets";
|
|
|
1782
1828
|
import { Effect as Effect2, PolicyStatement as PolicyStatement2 } from "aws-cdk-lib/aws-iam";
|
|
1783
1829
|
import { Runtime as Runtime7 } from "aws-cdk-lib/aws-lambda";
|
|
1784
1830
|
import { NodejsFunction as NodejsFunction7 } from "aws-cdk-lib/aws-lambda-nodejs";
|
|
1785
|
-
import { Construct as
|
|
1831
|
+
import { Construct as Construct11 } from "constructs";
|
|
1786
1832
|
var HANDLER_NAME6 = "platform-deploy-bridge.handler.js";
|
|
1787
1833
|
function resolveHandlerEntry6(dirname) {
|
|
1788
1834
|
const sameDir = path7.join(dirname, HANDLER_NAME6);
|
|
@@ -1791,7 +1837,7 @@ function resolveHandlerEntry6(dirname) {
|
|
|
1791
1837
|
}
|
|
1792
1838
|
return path7.join(dirname, "..", "..", "..", "..", "lib", HANDLER_NAME6);
|
|
1793
1839
|
}
|
|
1794
|
-
var PlatformDeployBridgeLambda = class extends
|
|
1840
|
+
var PlatformDeployBridgeLambda = class extends Construct11 {
|
|
1795
1841
|
constructor(scope, props) {
|
|
1796
1842
|
super(scope, "platform-deploy-bridge-lambda");
|
|
1797
1843
|
const service = OpenHiService.of(this);
|
|
@@ -1847,7 +1893,7 @@ var PlatformDeployBridgeLambda = class extends Construct10 {
|
|
|
1847
1893
|
};
|
|
1848
1894
|
|
|
1849
1895
|
// src/workflows/control-plane/platform-deploy-bridge/platform-deploy-bridge.ts
|
|
1850
|
-
var PlatformDeployBridge = class extends
|
|
1896
|
+
var PlatformDeployBridge = class extends Construct12 {
|
|
1851
1897
|
constructor(scope, props) {
|
|
1852
1898
|
super(scope, "platform-deploy-bridge");
|
|
1853
1899
|
this.bridgeLambda = new PlatformDeployBridgeLambda(this, {
|
|
@@ -2048,7 +2094,7 @@ import { LambdaFunction as LambdaFunction2 } from "aws-cdk-lib/aws-events-target
|
|
|
2048
2094
|
import { Effect as Effect3, PolicyStatement as PolicyStatement3 } from "aws-cdk-lib/aws-iam";
|
|
2049
2095
|
import { Runtime as Runtime8 } from "aws-cdk-lib/aws-lambda";
|
|
2050
2096
|
import { NodejsFunction as NodejsFunction8 } from "aws-cdk-lib/aws-lambda-nodejs";
|
|
2051
|
-
import { Construct as
|
|
2097
|
+
import { Construct as Construct13 } from "constructs";
|
|
2052
2098
|
var HANDLER_NAME7 = "seed-demo-data.handler.js";
|
|
2053
2099
|
function resolveHandlerEntry7(dirname) {
|
|
2054
2100
|
const sameDir = path8.join(dirname, HANDLER_NAME7);
|
|
@@ -2057,7 +2103,7 @@ function resolveHandlerEntry7(dirname) {
|
|
|
2057
2103
|
}
|
|
2058
2104
|
return path8.join(dirname, "..", "..", "..", "..", "lib", HANDLER_NAME7);
|
|
2059
2105
|
}
|
|
2060
|
-
var SeedDemoDataLambda = class extends
|
|
2106
|
+
var SeedDemoDataLambda = class extends Construct13 {
|
|
2061
2107
|
constructor(scope, props) {
|
|
2062
2108
|
super(scope, "seed-demo-data-lambda");
|
|
2063
2109
|
this.lambda = new NodejsFunction8(this, "handler", {
|
|
@@ -2118,8 +2164,8 @@ var SeedDemoDataLambda = class extends Construct12 {
|
|
|
2118
2164
|
};
|
|
2119
2165
|
|
|
2120
2166
|
// src/workflows/control-plane/seed-demo-data/seed-demo-data-workflow.ts
|
|
2121
|
-
import { Construct as
|
|
2122
|
-
var SeedDemoDataWorkflow = class extends
|
|
2167
|
+
import { Construct as Construct14 } from "constructs";
|
|
2168
|
+
var SeedDemoDataWorkflow = class extends Construct14 {
|
|
2123
2169
|
constructor(scope, props) {
|
|
2124
2170
|
super(scope, "seed-demo-data-workflow");
|
|
2125
2171
|
this.seedDemoData = new SeedDemoDataLambda(this, {
|
|
@@ -2145,7 +2191,7 @@ import { LambdaFunction as LambdaFunction3 } from "aws-cdk-lib/aws-events-target
|
|
|
2145
2191
|
import { Effect as Effect4, PolicyStatement as PolicyStatement4 } from "aws-cdk-lib/aws-iam";
|
|
2146
2192
|
import { Runtime as Runtime9 } from "aws-cdk-lib/aws-lambda";
|
|
2147
2193
|
import { NodejsFunction as NodejsFunction9 } from "aws-cdk-lib/aws-lambda-nodejs";
|
|
2148
|
-
import { Construct as
|
|
2194
|
+
import { Construct as Construct15 } from "constructs";
|
|
2149
2195
|
var HANDLER_NAME8 = "seed-system-data.handler.js";
|
|
2150
2196
|
function resolveHandlerEntry8(dirname) {
|
|
2151
2197
|
const sameDir = path9.join(dirname, HANDLER_NAME8);
|
|
@@ -2154,7 +2200,7 @@ function resolveHandlerEntry8(dirname) {
|
|
|
2154
2200
|
}
|
|
2155
2201
|
return path9.join(dirname, "..", "..", "..", "..", "lib", HANDLER_NAME8);
|
|
2156
2202
|
}
|
|
2157
|
-
var SeedSystemDataLambda = class extends
|
|
2203
|
+
var SeedSystemDataLambda = class extends Construct15 {
|
|
2158
2204
|
constructor(scope, props) {
|
|
2159
2205
|
super(scope, "seed-system-data-lambda");
|
|
2160
2206
|
this.lambda = new NodejsFunction9(this, "handler", {
|
|
@@ -2206,8 +2252,8 @@ var SeedSystemDataLambda = class extends Construct14 {
|
|
|
2206
2252
|
};
|
|
2207
2253
|
|
|
2208
2254
|
// src/workflows/control-plane/seed-system-data/seed-system-data-workflow.ts
|
|
2209
|
-
import { Construct as
|
|
2210
|
-
var SeedSystemDataWorkflow = class extends
|
|
2255
|
+
import { Construct as Construct16 } from "constructs";
|
|
2256
|
+
var SeedSystemDataWorkflow = class extends Construct16 {
|
|
2211
2257
|
constructor(scope, props) {
|
|
2212
2258
|
super(scope, "seed-system-data-workflow");
|
|
2213
2259
|
this.seedSystemData = new SeedSystemDataLambda(this, {
|
|
@@ -2341,7 +2387,7 @@ import { LambdaFunction as LambdaFunction4 } from "aws-cdk-lib/aws-events-target
|
|
|
2341
2387
|
import { Effect as Effect5, PolicyStatement as PolicyStatement5 } from "aws-cdk-lib/aws-iam";
|
|
2342
2388
|
import { Runtime as Runtime10 } from "aws-cdk-lib/aws-lambda";
|
|
2343
2389
|
import { NodejsFunction as NodejsFunction10 } from "aws-cdk-lib/aws-lambda-nodejs";
|
|
2344
|
-
import { Construct as
|
|
2390
|
+
import { Construct as Construct17 } from "constructs";
|
|
2345
2391
|
var HANDLER_NAME9 = "provision-default-workspace.handler.js";
|
|
2346
2392
|
function resolveHandlerEntry9(dirname) {
|
|
2347
2393
|
const sameDir = path10.join(dirname, HANDLER_NAME9);
|
|
@@ -2350,7 +2396,7 @@ function resolveHandlerEntry9(dirname) {
|
|
|
2350
2396
|
}
|
|
2351
2397
|
return path10.join(dirname, "..", "..", "..", "..", "lib", HANDLER_NAME9);
|
|
2352
2398
|
}
|
|
2353
|
-
var ProvisionDefaultWorkspaceLambda = class extends
|
|
2399
|
+
var ProvisionDefaultWorkspaceLambda = class extends Construct17 {
|
|
2354
2400
|
constructor(scope, props) {
|
|
2355
2401
|
super(scope, "provision-default-workspace-lambda");
|
|
2356
2402
|
this.lambda = new NodejsFunction10(this, "handler", {
|
|
@@ -2390,8 +2436,8 @@ var ProvisionDefaultWorkspaceLambda = class extends Construct16 {
|
|
|
2390
2436
|
};
|
|
2391
2437
|
|
|
2392
2438
|
// src/workflows/control-plane/user-onboarding/user-onboarding-workflow.ts
|
|
2393
|
-
import { Construct as
|
|
2394
|
-
var UserOnboardingWorkflow = class extends
|
|
2439
|
+
import { Construct as Construct18 } from "constructs";
|
|
2440
|
+
var UserOnboardingWorkflow = class extends Construct18 {
|
|
2395
2441
|
constructor(scope, props) {
|
|
2396
2442
|
super(scope, "user-onboarding-workflow");
|
|
2397
2443
|
this.provisionDefaultWorkspace = new ProvisionDefaultWorkspaceLambda(this, {
|
|
@@ -2678,20 +2724,20 @@ import { HttpUserPoolAuthorizer } from "aws-cdk-lib/aws-apigatewayv2-authorizers
|
|
|
2678
2724
|
import { HttpLambdaIntegration } from "aws-cdk-lib/aws-apigatewayv2-integrations";
|
|
2679
2725
|
import { Effect as Effect7, PolicyStatement as PolicyStatement7 } from "aws-cdk-lib/aws-iam";
|
|
2680
2726
|
import {
|
|
2681
|
-
ARecord as
|
|
2727
|
+
ARecord as ARecord3,
|
|
2682
2728
|
HostedZone as HostedZone3,
|
|
2683
|
-
RecordTarget as
|
|
2729
|
+
RecordTarget as RecordTarget3
|
|
2684
2730
|
} from "aws-cdk-lib/aws-route53";
|
|
2685
2731
|
import { ApiGatewayv2DomainProperties } from "aws-cdk-lib/aws-route53-targets";
|
|
2686
2732
|
import { Duration as Duration10 } from "aws-cdk-lib/core";
|
|
2687
|
-
import { Construct as
|
|
2733
|
+
import { Construct as Construct21 } from "constructs";
|
|
2688
2734
|
|
|
2689
2735
|
// src/data/lambda/cors-options-lambda.ts
|
|
2690
2736
|
import fs11 from "fs";
|
|
2691
2737
|
import path11 from "path";
|
|
2692
2738
|
import { Runtime as Runtime11 } from "aws-cdk-lib/aws-lambda";
|
|
2693
2739
|
import { NodejsFunction as NodejsFunction11 } from "aws-cdk-lib/aws-lambda-nodejs";
|
|
2694
|
-
import { Construct as
|
|
2740
|
+
import { Construct as Construct19 } from "constructs";
|
|
2695
2741
|
var HANDLER_NAME10 = "cors-options-lambda.handler.js";
|
|
2696
2742
|
function resolveHandlerEntry10(dirname) {
|
|
2697
2743
|
const sameDir = path11.join(dirname, HANDLER_NAME10);
|
|
@@ -2701,7 +2747,7 @@ function resolveHandlerEntry10(dirname) {
|
|
|
2701
2747
|
const fromLib = path11.join(dirname, "..", "..", "..", "lib", HANDLER_NAME10);
|
|
2702
2748
|
return fromLib;
|
|
2703
2749
|
}
|
|
2704
|
-
var CorsOptionsLambda = class extends
|
|
2750
|
+
var CorsOptionsLambda = class extends Construct19 {
|
|
2705
2751
|
constructor(scope, id = "cors-options-lambda") {
|
|
2706
2752
|
super(scope, id);
|
|
2707
2753
|
this.lambda = new NodejsFunction11(this, "handler", {
|
|
@@ -2717,7 +2763,7 @@ import fs12 from "fs";
|
|
|
2717
2763
|
import path12 from "path";
|
|
2718
2764
|
import { Runtime as Runtime12 } from "aws-cdk-lib/aws-lambda";
|
|
2719
2765
|
import { NodejsFunction as NodejsFunction12 } from "aws-cdk-lib/aws-lambda-nodejs";
|
|
2720
|
-
import { Construct as
|
|
2766
|
+
import { Construct as Construct20 } from "constructs";
|
|
2721
2767
|
var HANDLER_NAME11 = "rest-api-lambda.handler.js";
|
|
2722
2768
|
function resolveHandlerEntry11(dirname) {
|
|
2723
2769
|
const sameDir = path12.join(dirname, HANDLER_NAME11);
|
|
@@ -2727,7 +2773,7 @@ function resolveHandlerEntry11(dirname) {
|
|
|
2727
2773
|
const fromLib = path12.join(dirname, "..", "..", "..", "lib", HANDLER_NAME11);
|
|
2728
2774
|
return fromLib;
|
|
2729
2775
|
}
|
|
2730
|
-
var RestApiLambda = class extends
|
|
2776
|
+
var RestApiLambda = class extends Construct20 {
|
|
2731
2777
|
constructor(scope, props) {
|
|
2732
2778
|
super(scope, "rest-api-lambda");
|
|
2733
2779
|
this.lambda = new NodejsFunction12(this, "handler", {
|
|
@@ -2838,7 +2884,7 @@ var _OpenHiRestApiService = class _OpenHiRestApiService extends OpenHiService {
|
|
|
2838
2884
|
return OpenHiGlobalService.rootWildcardCertificateFromConstruct(this);
|
|
2839
2885
|
}
|
|
2840
2886
|
/**
|
|
2841
|
-
* Returns the API domain name string (e.g. api.example.com or api
|
|
2887
|
+
* Returns the API domain name string (e.g. api.example.com or api-\{prefix\}.example.com).
|
|
2842
2888
|
* Override to customize.
|
|
2843
2889
|
*/
|
|
2844
2890
|
createApiDomainNameString(hostedZone) {
|
|
@@ -2993,10 +3039,10 @@ var _OpenHiRestApiService = class _OpenHiRestApiService extends OpenHiService {
|
|
|
2993
3039
|
integration
|
|
2994
3040
|
});
|
|
2995
3041
|
const apiPrefix = this.branchName === "main" ? `api` : `api-${this.childZonePrefix}`;
|
|
2996
|
-
new
|
|
3042
|
+
new ARecord3(this, "api-a-record", {
|
|
2997
3043
|
zone: hostedZone,
|
|
2998
3044
|
recordName: apiPrefix,
|
|
2999
|
-
target:
|
|
3045
|
+
target: RecordTarget3.fromAlias(
|
|
3000
3046
|
new ApiGatewayv2DomainProperties(
|
|
3001
3047
|
domainName.regionalDomainName,
|
|
3002
3048
|
domainName.regionalHostedZoneId
|
|
@@ -3069,7 +3115,7 @@ var _OpenHiRestApiService = class _OpenHiRestApiService extends OpenHiService {
|
|
|
3069
3115
|
if (this.props.runtimeConfig === void 0) {
|
|
3070
3116
|
return void 0;
|
|
3071
3117
|
}
|
|
3072
|
-
const cognitoScope = new
|
|
3118
|
+
const cognitoScope = new Construct21(this, "runtime-config");
|
|
3073
3119
|
const userPool = OpenHiAuthService.userPoolFromConstruct(cognitoScope);
|
|
3074
3120
|
const userPoolClient = OpenHiAuthService.userPoolClientFromConstruct(cognitoScope);
|
|
3075
3121
|
const userPoolDomain = OpenHiAuthService.userPoolDomainFromConstruct(cognitoScope);
|
|
@@ -3329,7 +3375,7 @@ import { Duration as Duration11 } from "aws-cdk-lib";
|
|
|
3329
3375
|
import { Effect as Effect8, PolicyStatement as PolicyStatement8 } from "aws-cdk-lib/aws-iam";
|
|
3330
3376
|
import { Runtime as Runtime13 } from "aws-cdk-lib/aws-lambda";
|
|
3331
3377
|
import { NodejsFunction as NodejsFunction13 } from "aws-cdk-lib/aws-lambda-nodejs";
|
|
3332
|
-
import { Construct as
|
|
3378
|
+
import { Construct as Construct22 } from "constructs";
|
|
3333
3379
|
function resolveHandlerEntry12(dirname, handlerName) {
|
|
3334
3380
|
const sameDir = path13.join(dirname, handlerName);
|
|
3335
3381
|
if (fs13.existsSync(sameDir)) {
|
|
@@ -3338,7 +3384,7 @@ function resolveHandlerEntry12(dirname, handlerName) {
|
|
|
3338
3384
|
const libDir = path13.join(dirname, "..", "..", "..", "..", "lib", handlerName);
|
|
3339
3385
|
return { entry: libDir, handler: "handler" };
|
|
3340
3386
|
}
|
|
3341
|
-
var OwningDeleteCascadeLambdas = class extends
|
|
3387
|
+
var OwningDeleteCascadeLambdas = class extends Construct22 {
|
|
3342
3388
|
constructor(scope, props) {
|
|
3343
3389
|
super(scope, "owning-delete-cascade-lambdas");
|
|
3344
3390
|
const listResolved = resolveHandlerEntry12(
|
|
@@ -3416,8 +3462,8 @@ import {
|
|
|
3416
3462
|
WaitTime
|
|
3417
3463
|
} from "aws-cdk-lib/aws-stepfunctions";
|
|
3418
3464
|
import { LambdaInvoke } from "aws-cdk-lib/aws-stepfunctions-tasks";
|
|
3419
|
-
import { Construct as
|
|
3420
|
-
var OwningDeleteCascadeWorkflow = class extends
|
|
3465
|
+
import { Construct as Construct23 } from "constructs";
|
|
3466
|
+
var OwningDeleteCascadeWorkflow = class extends Construct23 {
|
|
3421
3467
|
constructor(scope, props) {
|
|
3422
3468
|
super(scope, "owning-delete-cascade-workflow");
|
|
3423
3469
|
this.lambdas = new OwningDeleteCascadeLambdas(this, {
|
|
@@ -3582,7 +3628,7 @@ import { Duration as Duration13 } from "aws-cdk-lib";
|
|
|
3582
3628
|
import { Effect as Effect9, PolicyStatement as PolicyStatement9 } from "aws-cdk-lib/aws-iam";
|
|
3583
3629
|
import { Runtime as Runtime14 } from "aws-cdk-lib/aws-lambda";
|
|
3584
3630
|
import { NodejsFunction as NodejsFunction14 } from "aws-cdk-lib/aws-lambda-nodejs";
|
|
3585
|
-
import { Construct as
|
|
3631
|
+
import { Construct as Construct24 } from "constructs";
|
|
3586
3632
|
function resolveHandlerEntry13(dirname, handlerName) {
|
|
3587
3633
|
const sameDir = path14.join(dirname, handlerName);
|
|
3588
3634
|
if (fs14.existsSync(sameDir)) {
|
|
@@ -3591,7 +3637,7 @@ function resolveHandlerEntry13(dirname, handlerName) {
|
|
|
3591
3637
|
const libDir = path14.join(dirname, "..", "..", "..", "..", "lib", handlerName);
|
|
3592
3638
|
return { entry: libDir, handler: "handler" };
|
|
3593
3639
|
}
|
|
3594
|
-
var RenameCascadeLambdas = class extends
|
|
3640
|
+
var RenameCascadeLambdas = class extends Construct24 {
|
|
3595
3641
|
constructor(scope, props) {
|
|
3596
3642
|
super(scope, "rename-cascade-lambdas");
|
|
3597
3643
|
const listResolved = resolveHandlerEntry13(
|
|
@@ -3665,8 +3711,8 @@ import {
|
|
|
3665
3711
|
TaskInput as TaskInput2
|
|
3666
3712
|
} from "aws-cdk-lib/aws-stepfunctions";
|
|
3667
3713
|
import { LambdaInvoke as LambdaInvoke2 } from "aws-cdk-lib/aws-stepfunctions-tasks";
|
|
3668
|
-
import { Construct as
|
|
3669
|
-
var RenameCascadeWorkflow = class extends
|
|
3714
|
+
import { Construct as Construct25 } from "constructs";
|
|
3715
|
+
var RenameCascadeWorkflow = class extends Construct25 {
|
|
3670
3716
|
constructor(scope, props) {
|
|
3671
3717
|
super(scope, "rename-cascade-workflow");
|
|
3672
3718
|
this.lambdas = new RenameCascadeLambdas(this, {
|
|
@@ -3899,6 +3945,7 @@ export {
|
|
|
3899
3945
|
POSTGRES_REPLICA_DATABASE_NAME_SSM_NAME,
|
|
3900
3946
|
POSTGRES_REPLICA_SECRET_ARN_SSM_NAME,
|
|
3901
3947
|
PROVISION_DEFAULT_WORKSPACE_DETAIL_TYPE,
|
|
3948
|
+
PerBranchHostname,
|
|
3902
3949
|
PlatformDeployBridge,
|
|
3903
3950
|
PlatformDeployBridgeLambda,
|
|
3904
3951
|
export_PlatformDeploymentCompletedV1 as PlatformDeploymentCompletedV1,
|