@openhi/constructs 0.0.115 → 0.0.117
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-X5MHU7DA.mjs → chunk-I7IIPV5X.mjs} +25 -5
- package/lib/chunk-I7IIPV5X.mjs.map +1 -0
- package/lib/data-store-postgres-replication.handler.js +24 -4
- package/lib/data-store-postgres-replication.handler.js.map +1 -1
- package/lib/data-store-postgres-replication.handler.mjs +1 -1
- package/lib/firehose-archive-transform.handler.js +24 -4
- package/lib/firehose-archive-transform.handler.js.map +1 -1
- package/lib/firehose-archive-transform.handler.mjs +1 -1
- package/lib/index.d.mts +287 -14
- package/lib/index.d.ts +302 -15
- package/lib/index.js +426 -131
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +473 -169
- package/lib/index.mjs.map +1 -1
- package/lib/static-hosting.viewer-request-handler.d.mts +54 -0
- package/lib/static-hosting.viewer-request-handler.d.ts +54 -0
- package/lib/static-hosting.viewer-request-handler.js +79 -0
- package/lib/static-hosting.viewer-request-handler.js.map +1 -0
- package/lib/static-hosting.viewer-request-handler.mjs +53 -0
- package/lib/static-hosting.viewer-request-handler.mjs.map +1 -0
- package/package.json +3 -3
- package/lib/chunk-X5MHU7DA.mjs.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RemovalPolicy, App, AppProps, Stage, StageProps, Stack, StackProps } from 'aws-cdk-lib';
|
|
1
|
+
import { Duration, RemovalPolicy, App, AppProps, Stage, StageProps, Stack, StackProps } from 'aws-cdk-lib';
|
|
2
2
|
import { Construct, IConstruct } from 'constructs';
|
|
3
3
|
import { ICertificate, Certificate, CertificateProps } from 'aws-cdk-lib/aws-certificatemanager';
|
|
4
4
|
import { IHttpApi, HttpApiProps, HttpApi, DomainName } from 'aws-cdk-lib/aws-apigatewayv2';
|
|
@@ -8,7 +8,7 @@ import { Key, KeyProps, IKey } from 'aws-cdk-lib/aws-kms';
|
|
|
8
8
|
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';
|
|
9
9
|
import { AttributeValue } from '@aws-sdk/client-dynamodb';
|
|
10
10
|
import * as events from 'aws-cdk-lib/aws-events';
|
|
11
|
-
import { EventBus, EventBusProps, Rule, IEventBus } from 'aws-cdk-lib/aws-events';
|
|
11
|
+
import { EventBus, EventBusProps, Archive, Rule, IEventBus } from 'aws-cdk-lib/aws-events';
|
|
12
12
|
import * as kinesis from 'aws-cdk-lib/aws-kinesis';
|
|
13
13
|
import * as kinesisfirehose from 'aws-cdk-lib/aws-kinesisfirehose';
|
|
14
14
|
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
@@ -19,7 +19,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2';
|
|
|
19
19
|
import * as rds from 'aws-cdk-lib/aws-rds';
|
|
20
20
|
import { HostedZone, HostedZoneProps, IHostedZone, HostedZoneAttributes } from 'aws-cdk-lib/aws-route53';
|
|
21
21
|
import { StringParameterProps, StringParameter } from 'aws-cdk-lib/aws-ssm';
|
|
22
|
-
import { Distribution, DistributionProps } from 'aws-cdk-lib/aws-cloudfront';
|
|
22
|
+
import { Distribution, DistributionProps, CachePolicyProps } from 'aws-cdk-lib/aws-cloudfront';
|
|
23
23
|
import { StateMachine } from 'aws-cdk-lib/aws-stepfunctions';
|
|
24
24
|
import { RenamableEntityType } from '@openhi/workflows';
|
|
25
25
|
export { ControlPlaneOwningDeleteCompleteV1, ControlPlaneOwningDeleteCompleteV1Detail, ControlPlaneOwningDeleteFailedV1, ControlPlaneOwningDeleteFailedV1Detail, ControlPlaneOwningDeleteV1, ControlPlaneOwningDeleteV1Detail, ControlPlaneRenameCompleteV1, ControlPlaneRenameCompleteV1Detail, ControlPlaneRenameFailedV1, ControlPlaneRenameFailedV1Detail, ControlPlaneRenameV1, ControlPlaneRenameV1Detail, OPENHI_DATA_SOURCE, OPENHI_OPS_SOURCE, OWNING_ENTITY_TYPE, OwningEntityType, PlatformDeploymentCompletedV1, PlatformSystemDataSeededV1, RENAMABLE_ENTITY_TYPE, RenamableEntityType } from '@openhi/workflows';
|
|
@@ -123,6 +123,21 @@ interface DynamoDbStreamKinesisRecord {
|
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
/**
|
|
127
|
+
* @see sites/www-docs/content/packages/@openhi/constructs/components/static-hosting/static-hosting.viewer-request-handler.md
|
|
128
|
+
*/
|
|
129
|
+
/**
|
|
130
|
+
* Hosting mode controls how path-like URIs get a default document.
|
|
131
|
+
*
|
|
132
|
+
* - `spa`: path-like URIs (e.g. `/dashboard`, `/patients/123`) rewrite to
|
|
133
|
+
* `/index.html` so the single-page app's root index is served and the
|
|
134
|
+
* client-side router handles the path.
|
|
135
|
+
* - `static`: path-like URIs append `/index.html` (e.g. `/docs` becomes
|
|
136
|
+
* `/docs/index.html`) so multi-page static sites can serve distinct
|
|
137
|
+
* HTML per path.
|
|
138
|
+
*/
|
|
139
|
+
type HostingMode = "spa" | "static";
|
|
140
|
+
|
|
126
141
|
/**
|
|
127
142
|
* @see sites/www-docs/content/packages/@openhi/constructs/workflows/control-plane/owning-delete-cascade/events.md
|
|
128
143
|
*
|
|
@@ -868,7 +883,7 @@ declare class OpenHiApp extends App {
|
|
|
868
883
|
*
|
|
869
884
|
* @public
|
|
870
885
|
*/
|
|
871
|
-
type OpenHiServiceType = "auth" | "rest-api" | "data" | "global" | "graphql-api";
|
|
886
|
+
type OpenHiServiceType = "auth" | "rest-api" | "data" | "global" | "graphql-api" | "website";
|
|
872
887
|
/**
|
|
873
888
|
* Tag-key suffixes applied by every OpenHiService stack via Tags.of().
|
|
874
889
|
* Full keys are composed `${appName}:${suffix}` — see {@link openHiTagKey}.
|
|
@@ -1344,9 +1359,14 @@ declare class WorkflowDedupConsumerNameInvalidError extends Error {
|
|
|
1344
1359
|
constructor(message: string);
|
|
1345
1360
|
}
|
|
1346
1361
|
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1362
|
+
interface DataEventBusOptions {
|
|
1363
|
+
/**
|
|
1364
|
+
* Retention for the bus's event archive. Defaults to 7 days. Pass
|
|
1365
|
+
* `Duration.days(0)` (or omit and override the archive in a subclass)
|
|
1366
|
+
* to disable archiving entirely.
|
|
1367
|
+
*/
|
|
1368
|
+
readonly archiveRetention?: Duration;
|
|
1369
|
+
}
|
|
1350
1370
|
declare class DataEventBus extends EventBus {
|
|
1351
1371
|
/*****************************************************************************
|
|
1352
1372
|
*
|
|
@@ -1356,7 +1376,16 @@ declare class DataEventBus extends EventBus {
|
|
|
1356
1376
|
*
|
|
1357
1377
|
****************************************************************************/
|
|
1358
1378
|
static getEventBusName(scope: Construct): string;
|
|
1359
|
-
|
|
1379
|
+
/**
|
|
1380
|
+
* Replay archive of every event written to this bus, retained for the
|
|
1381
|
+
* configured TTL (default 7 days). Enables EventBridge `StartReplay`
|
|
1382
|
+
* for incident response and ad-hoc backfill.
|
|
1383
|
+
*
|
|
1384
|
+
* Named `replayArchive` rather than `archive` to avoid shadowing the
|
|
1385
|
+
* inherited `EventBus.archive(id, options)` instance method.
|
|
1386
|
+
*/
|
|
1387
|
+
readonly replayArchive: Archive;
|
|
1388
|
+
constructor(scope: Construct, props?: (EventBusProps & DataEventBusOptions) | undefined);
|
|
1360
1389
|
}
|
|
1361
1390
|
|
|
1362
1391
|
/**
|
|
@@ -1589,6 +1618,79 @@ declare class DiscoverableStringParameter extends StringParameter {
|
|
|
1589
1618
|
constructor(scope: Construct, id: string, props: DiscoverableStringParameterProps);
|
|
1590
1619
|
}
|
|
1591
1620
|
|
|
1621
|
+
/**
|
|
1622
|
+
* @see sites/www-docs/content/packages/@openhi/constructs/components/static-hosting/static-content.md
|
|
1623
|
+
*/
|
|
1624
|
+
/*******************************************************************************
|
|
1625
|
+
*
|
|
1626
|
+
* STATIC CONTENT UPLOADER
|
|
1627
|
+
*
|
|
1628
|
+
* This construct uploads a directory of content from a local location into S3.
|
|
1629
|
+
*
|
|
1630
|
+
* To support PR and branch specific builds, each S3 bucket can store content
|
|
1631
|
+
* for multiple domains and builds, using the following format:
|
|
1632
|
+
*
|
|
1633
|
+
* S3-bucket/<sub-domain>.<full-domain>/*
|
|
1634
|
+
*
|
|
1635
|
+
* A bucket used to store content for stage.openhi.org might have the
|
|
1636
|
+
* following directory structure (all in the same bucket):
|
|
1637
|
+
*
|
|
1638
|
+
* /www.stage.openhi.org/* -> serves content to www.stage.openhi.org
|
|
1639
|
+
* /feature-7.stage.openhi.org/* -> serves content to feature-7.stage.openhi.org
|
|
1640
|
+
* /pr-123.stage.openhi.org/* -> serves content to pr-123.stage.openhi.org
|
|
1641
|
+
*
|
|
1642
|
+
******************************************************************************/
|
|
1643
|
+
/**
|
|
1644
|
+
* Props for the StaticContent construct.
|
|
1645
|
+
*/
|
|
1646
|
+
interface StaticContentProps {
|
|
1647
|
+
/**
|
|
1648
|
+
* Absolute path to directory containing content for the website.
|
|
1649
|
+
*/
|
|
1650
|
+
readonly contentSourceDirectory: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* Directory to place content into. Should start with a slash.
|
|
1653
|
+
* Example: '/widget'
|
|
1654
|
+
*
|
|
1655
|
+
* @default "/"
|
|
1656
|
+
*/
|
|
1657
|
+
readonly contentDestinationDirectory?: string;
|
|
1658
|
+
/**
|
|
1659
|
+
* The sub domain prefix (e.g. "feature-7"). Used as the per-branch folder
|
|
1660
|
+
* name in the bucket so each branch deploys to its own prefix.
|
|
1661
|
+
*
|
|
1662
|
+
* @default the current stack's branch name (kebab-cased)
|
|
1663
|
+
*/
|
|
1664
|
+
readonly subDomain?: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* The full domain (e.g. "stage.openhi.org"). Used together with
|
|
1667
|
+
* `subDomain` to form the destination prefix
|
|
1668
|
+
* `<sub-domain>.<full-domain>`.
|
|
1669
|
+
*/
|
|
1670
|
+
readonly fullDomain: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* Service type used to look up the static-hosting bucket ARN via
|
|
1673
|
+
* DiscoverableStringParameter.
|
|
1674
|
+
*
|
|
1675
|
+
* @default STATIC_HOSTING_SERVICE_TYPE ("website")
|
|
1676
|
+
*/
|
|
1677
|
+
readonly serviceType?: string;
|
|
1678
|
+
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Static content uploader: deploys a local directory to the static-hosting
|
|
1681
|
+
* S3 bucket under `<sub-domain>.<full-domain>/<dest>` so each branch
|
|
1682
|
+
* deploys to its own prefix without clobbering siblings. The bucket ARN is
|
|
1683
|
+
* looked up via DiscoverableStringParameter so the uploader can run on a
|
|
1684
|
+
* feature-branch stack while the bucket itself was provisioned by the
|
|
1685
|
+
* release-branch service stack.
|
|
1686
|
+
*/
|
|
1687
|
+
declare class StaticContent extends Construct {
|
|
1688
|
+
constructor(scope: Construct, id: string, props: StaticContentProps);
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* @see sites/www-docs/content/packages/@openhi/constructs/components/static-hosting/static-hosting.md
|
|
1693
|
+
*/
|
|
1592
1694
|
/**
|
|
1593
1695
|
* Service type for the website service. Used in SSM parameter paths and by
|
|
1594
1696
|
* OpenHiWebsiteService for fromConstruct() lookups.
|
|
@@ -1603,21 +1705,61 @@ interface StaticHostingProps {
|
|
|
1603
1705
|
*/
|
|
1604
1706
|
readonly bucketProps?: Omit<BucketProps, "bucketName">;
|
|
1605
1707
|
/**
|
|
1606
|
-
* Optional CloudFront distribution props.
|
|
1607
|
-
*
|
|
1708
|
+
* Optional CloudFront distribution props. Defaults wire a custom cache
|
|
1709
|
+
* policy (60s/300s with gzip+brotli), `REDIRECT_TO_HTTPS`, and
|
|
1710
|
+
* `ALLOW_GET_HEAD_OPTIONS` on the default behavior; overrides apply on top.
|
|
1608
1711
|
*/
|
|
1609
1712
|
readonly distributionProps?: Omit<DistributionProps, "defaultBehavior" | "defaultRootObject">;
|
|
1713
|
+
/**
|
|
1714
|
+
* Optional cache policy overrides. Defaults: `defaultTtl=60s`, `maxTtl=300s`,
|
|
1715
|
+
* `minTtl=0s`, gzip+brotli enabled, no headers/cookies/query strings cached.
|
|
1716
|
+
*/
|
|
1717
|
+
readonly cachePolicyProps?: Omit<CachePolicyProps, "cachePolicyName">;
|
|
1718
|
+
/**
|
|
1719
|
+
* Wildcard certificate to attach to the CloudFront distribution. When
|
|
1720
|
+
* supplied together with `hostedZone` and `domainNames`, CloudFront serves
|
|
1721
|
+
* the listed domains and Route53 ARecords are created in the zone.
|
|
1722
|
+
*
|
|
1723
|
+
* @default - no custom certificate; CloudFront default domain is served
|
|
1724
|
+
*/
|
|
1725
|
+
readonly certificate?: ICertificate;
|
|
1726
|
+
/**
|
|
1727
|
+
* Hosted zone to create Route53 ARecords in. Required together with
|
|
1728
|
+
* `certificate` and `domainNames` to attach a custom domain.
|
|
1729
|
+
*/
|
|
1730
|
+
readonly hostedZone?: IHostedZone;
|
|
1731
|
+
/**
|
|
1732
|
+
* Domain names to attach to the CloudFront distribution. Each name also
|
|
1733
|
+
* gets an ARecord in `hostedZone`.
|
|
1734
|
+
*/
|
|
1735
|
+
readonly domainNames?: ReadonlyArray<string>;
|
|
1736
|
+
/**
|
|
1737
|
+
* Selects how path-like URIs are rewritten by the viewer-request
|
|
1738
|
+
* Lambda@Edge handler.
|
|
1739
|
+
*
|
|
1740
|
+
* - `spa` (default): path-like URIs rewrite to `/index.html`.
|
|
1741
|
+
* - `static`: path-like URIs append `/index.html`.
|
|
1742
|
+
*
|
|
1743
|
+
* @default "spa"
|
|
1744
|
+
*/
|
|
1745
|
+
readonly hostingMode?: HostingMode;
|
|
1610
1746
|
/**
|
|
1611
1747
|
* Service type for SSM parameter paths.
|
|
1748
|
+
*
|
|
1612
1749
|
* @default STATIC_HOSTING_SERVICE_TYPE ("website")
|
|
1613
1750
|
*/
|
|
1614
1751
|
readonly serviceType?: string;
|
|
1752
|
+
/**
|
|
1753
|
+
* Optional human-readable description used in distribution comment and
|
|
1754
|
+
* SSM parameter descriptions.
|
|
1755
|
+
*/
|
|
1756
|
+
readonly description?: string;
|
|
1615
1757
|
}
|
|
1616
1758
|
/**
|
|
1617
1759
|
* Static hosting: S3 bucket (private) + CloudFront distribution with Origin
|
|
1618
|
-
* Access Control (OAC)
|
|
1619
|
-
*
|
|
1620
|
-
*
|
|
1760
|
+
* Access Control (OAC) + Lambda@Edge viewer-request handler. Publishes
|
|
1761
|
+
* bucket ARN, distribution ARN, distribution domain, and distribution ID
|
|
1762
|
+
* via DiscoverableStringParameter for cross-stack lookup.
|
|
1621
1763
|
*/
|
|
1622
1764
|
declare class StaticHosting extends Construct {
|
|
1623
1765
|
/**
|
|
@@ -1628,8 +1770,18 @@ declare class StaticHosting extends Construct {
|
|
|
1628
1770
|
* SSM parameter name for the CloudFront distribution ARN.
|
|
1629
1771
|
*/
|
|
1630
1772
|
static readonly SSM_PARAM_NAME_DISTRIBUTION_ARN = "STATIC_HOSTING_DISTRIBUTION_ARN";
|
|
1773
|
+
/**
|
|
1774
|
+
* SSM parameter name for the CloudFront distribution domain
|
|
1775
|
+
* (e.g. dXXXXX.cloudfront.net).
|
|
1776
|
+
*/
|
|
1777
|
+
static readonly SSM_PARAM_NAME_DISTRIBUTION_DOMAIN = "STATIC_HOSTING_DISTRIBUTION_DOMAIN";
|
|
1778
|
+
/**
|
|
1779
|
+
* SSM parameter name for the CloudFront distribution ID.
|
|
1780
|
+
*/
|
|
1781
|
+
static readonly SSM_PARAM_NAME_DISTRIBUTION_ID = "STATIC_HOSTING_DISTRIBUTION_ID";
|
|
1631
1782
|
readonly bucket: IBucket;
|
|
1632
1783
|
readonly distribution: Distribution;
|
|
1784
|
+
readonly viewerRequestHandler: NodejsFunction;
|
|
1633
1785
|
constructor(scope: Construct, id: string, props?: StaticHostingProps);
|
|
1634
1786
|
}
|
|
1635
1787
|
|
|
@@ -2406,6 +2558,141 @@ declare class OpenHiGraphqlService extends OpenHiService {
|
|
|
2406
2558
|
protected createRootGraphqlApi(): RootGraphqlApi;
|
|
2407
2559
|
}
|
|
2408
2560
|
|
|
2561
|
+
/**
|
|
2562
|
+
* @see sites/www-docs/content/packages/@openhi/constructs/services/open-hi-website-service.md
|
|
2563
|
+
*/
|
|
2564
|
+
interface OpenHiWebsiteServiceProps extends OpenHiServiceProps {
|
|
2565
|
+
/**
|
|
2566
|
+
* Sub-domain prefix attached to the child zone (e.g. "www" -> "www.<zone>").
|
|
2567
|
+
*
|
|
2568
|
+
* @default "www"
|
|
2569
|
+
*/
|
|
2570
|
+
readonly domainPrefix?: string;
|
|
2571
|
+
/**
|
|
2572
|
+
* Absolute path to the local directory whose contents should be uploaded
|
|
2573
|
+
* to the static-hosting bucket. Required.
|
|
2574
|
+
*/
|
|
2575
|
+
readonly contentSourceDirectory: string;
|
|
2576
|
+
/**
|
|
2577
|
+
* Path under the per-branch destination prefix to upload into. Should start
|
|
2578
|
+
* with a slash.
|
|
2579
|
+
*
|
|
2580
|
+
* @default "/"
|
|
2581
|
+
*/
|
|
2582
|
+
readonly contentDestinationDirectory?: string;
|
|
2583
|
+
/**
|
|
2584
|
+
* Force the `StaticHosting` infrastructure (bucket + distribution +
|
|
2585
|
+
* Lambda@Edge + DNS + 4 SSM params) to be created on this branch even when
|
|
2586
|
+
* it is not the release branch. Useful for one-off bootstraps and tests.
|
|
2587
|
+
*
|
|
2588
|
+
* When omitted, hosting infrastructure is created only on
|
|
2589
|
+
* `defaultReleaseBranch`. The `StaticContent` uploader is always
|
|
2590
|
+
* created so feature branches can publish their content under their own
|
|
2591
|
+
* sub-domain folder against the release-branch bucket.
|
|
2592
|
+
*
|
|
2593
|
+
* @default - true on release branch, false otherwise
|
|
2594
|
+
*/
|
|
2595
|
+
readonly createHostingInfrastructure?: boolean;
|
|
2596
|
+
}
|
|
2597
|
+
/**
|
|
2598
|
+
* SSM parameter name suffix for the website's full domain
|
|
2599
|
+
* (e.g. www.example.com).
|
|
2600
|
+
*/
|
|
2601
|
+
declare const SSM_PARAM_NAME_FULL_DOMAIN = "WEBSITE_FULL_DOMAIN";
|
|
2602
|
+
/**
|
|
2603
|
+
* Website service stack: composes StaticHosting (only on release-branch
|
|
2604
|
+
* deploys) and StaticContent (always) so feature branches can ship their
|
|
2605
|
+
* content to a per-branch sub-domain folder against the release-branch
|
|
2606
|
+
* bucket without provisioning duplicate infrastructure.
|
|
2607
|
+
*
|
|
2608
|
+
* Resources are created in protected methods; subclasses may override to
|
|
2609
|
+
* customize.
|
|
2610
|
+
*/
|
|
2611
|
+
declare class OpenHiWebsiteService extends OpenHiService {
|
|
2612
|
+
static readonly SERVICE_TYPE: "website";
|
|
2613
|
+
/**
|
|
2614
|
+
* Looks up the static-hosting bucket ARN published by the release-branch
|
|
2615
|
+
* deploy of this service.
|
|
2616
|
+
*/
|
|
2617
|
+
static bucketArnFromConstruct(scope: Construct): string;
|
|
2618
|
+
/**
|
|
2619
|
+
* Looks up the CloudFront distribution ARN published by the release-branch
|
|
2620
|
+
* deploy of this service.
|
|
2621
|
+
*/
|
|
2622
|
+
static distributionArnFromConstruct(scope: Construct): string;
|
|
2623
|
+
/**
|
|
2624
|
+
* Looks up the CloudFront distribution domain
|
|
2625
|
+
* (e.g. dXXXXX.cloudfront.net) published by the release-branch deploy.
|
|
2626
|
+
*/
|
|
2627
|
+
static distributionDomainFromConstruct(scope: Construct): string;
|
|
2628
|
+
/**
|
|
2629
|
+
* Looks up the CloudFront distribution ID published by the release-branch
|
|
2630
|
+
* deploy of this service.
|
|
2631
|
+
*/
|
|
2632
|
+
static distributionIdFromConstruct(scope: Construct): string;
|
|
2633
|
+
/**
|
|
2634
|
+
* Looks up the website's full domain (e.g. www.example.com) published by
|
|
2635
|
+
* the release-branch deploy of this service.
|
|
2636
|
+
*/
|
|
2637
|
+
static fullDomainFromConstruct(scope: Construct): string;
|
|
2638
|
+
get serviceType(): string;
|
|
2639
|
+
/** Override so this.props is typed with this service's options. */
|
|
2640
|
+
props: OpenHiWebsiteServiceProps;
|
|
2641
|
+
/**
|
|
2642
|
+
* Full domain served by this website (e.g. www.example.com). Derived from
|
|
2643
|
+
* `domainPrefix` and the child hosted zone name.
|
|
2644
|
+
*/
|
|
2645
|
+
readonly fullDomain: string;
|
|
2646
|
+
/**
|
|
2647
|
+
* The hosting construct, only created on release-branch deploys (or when
|
|
2648
|
+
* `createHostingInfrastructure` is true).
|
|
2649
|
+
*/
|
|
2650
|
+
readonly staticHosting?: StaticHosting;
|
|
2651
|
+
/**
|
|
2652
|
+
* The content uploader, always created.
|
|
2653
|
+
*/
|
|
2654
|
+
readonly staticContent: StaticContent;
|
|
2655
|
+
constructor(ohEnv: OpenHiEnvironment, props: OpenHiWebsiteServiceProps);
|
|
2656
|
+
/**
|
|
2657
|
+
* Validates that config required for the website stack is present.
|
|
2658
|
+
*/
|
|
2659
|
+
protected validateConfig(props: OpenHiWebsiteServiceProps): void;
|
|
2660
|
+
/**
|
|
2661
|
+
* Looks up the child hosted zone published by the Global service.
|
|
2662
|
+
* Override to customize.
|
|
2663
|
+
*/
|
|
2664
|
+
protected createHostedZone(): IHostedZone;
|
|
2665
|
+
/**
|
|
2666
|
+
* Returns the wildcard certificate looked up from the Global service.
|
|
2667
|
+
* Override to customize.
|
|
2668
|
+
*/
|
|
2669
|
+
protected createCertificate(): ICertificate;
|
|
2670
|
+
/**
|
|
2671
|
+
* Computes the full website domain from `domainPrefix` and the child
|
|
2672
|
+
* zone name.
|
|
2673
|
+
*/
|
|
2674
|
+
protected computeFullDomain(hostedZone: IHostedZone): string;
|
|
2675
|
+
/**
|
|
2676
|
+
* Creates the StaticHosting infrastructure (bucket + distribution +
|
|
2677
|
+
* Lambda@Edge + 4 SSM params + DNS).
|
|
2678
|
+
*/
|
|
2679
|
+
protected createStaticHosting(deps: {
|
|
2680
|
+
certificate: ICertificate;
|
|
2681
|
+
hostedZone: IHostedZone;
|
|
2682
|
+
}): StaticHosting;
|
|
2683
|
+
/**
|
|
2684
|
+
* Creates the SSM parameter that publishes the website's full domain.
|
|
2685
|
+
* Look up via {@link OpenHiWebsiteService.fullDomainFromConstruct}.
|
|
2686
|
+
*/
|
|
2687
|
+
protected createFullDomainParameter(): void;
|
|
2688
|
+
/**
|
|
2689
|
+
* Creates the StaticContent uploader. Always created so feature-branch
|
|
2690
|
+
* deploys can publish content to their own sub-domain folder against the
|
|
2691
|
+
* release-branch bucket.
|
|
2692
|
+
*/
|
|
2693
|
+
protected createStaticContent(): StaticContent;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2409
2696
|
interface OwningDeleteCascadeLambdasProps {
|
|
2410
2697
|
/** Data-store table the cascade reads (Query) and writes (DeleteItem / TransactWriteItems) against. */
|
|
2411
2698
|
readonly dataStoreTable: ITable;
|
|
@@ -2590,5 +2877,5 @@ declare class RenameCascadeWorkflow extends Construct {
|
|
|
2590
2877
|
constructor(scope: Construct, props: RenameCascadeWorkflowProps);
|
|
2591
2878
|
}
|
|
2592
2879
|
|
|
2593
|
-
export { BRIDGED_STATUSES, CLOUDFORMATION_EVENT_SOURCE, CLOUDFORMATION_STACK_STATUS_CHANGE_DETAIL_TYPE, CONTROL_EVENT_BUS_NAME_ENV_VAR, ChildHostedZone, CognitoUserPool, CognitoUserPoolClient, CognitoUserPoolDomain, CognitoUserPoolKmsKey, ControlEventBus, DATA_STORE_CHANGE_DETAIL_MAX_UTF8_BYTES, DATA_STORE_CHANGE_DETAIL_TYPE, DATA_STORE_CHANGE_EVENT_SOURCE, DEMO_DATA_PLANE_FIXTURES, DEMO_PERIOD, DEMO_TENANT_SPECS, DEMO_URN_SYSTEM, DEV_USERS, DataEventBus, DataStoreHistoricalArchive, DataStorePostgresReplica, DiscoverableStringParameter, DynamoDbDataStore, OPENHI_REPO_TAG_KEY_ENV_VAR, OPENHI_RESOURCE_URN_SYSTEM, OPENHI_TAG_KEY_PREFIX_ENV_VAR, OPENHI_TAG_SUFFIX_BRANCH_NAME, OPENHI_TAG_SUFFIX_REPO_NAME, OPENHI_TAG_SUFFIX_SERVICE_TYPE, OPENHI_TAG_SUFFIX_STAGE_TYPE, OWNING_DELETE_CASCADE_CONSUMER_NAME, OWNING_DELETE_CASCADE_DEFAULT_CONCURRENCY, OWNING_DELETE_CASCADE_STUCK_THRESHOLD_MINUTES, OWNING_DELETE_OPS_EVENT_BUS_ENV_VAR, OpenHiApp, OpenHiAuthService, OpenHiDataService, OpenHiEnvironment, OpenHiGlobalService, OpenHiGraphqlService, OpenHiRestApiService, OpenHiService, OpenHiStage, OpsEventBus, OwningDeleteCascadeLambdas, OwningDeleteCascadeWorkflow, PLACEHOLDER_TENANT_ID, PLACEHOLDER_WORKSPACE_ID, PLATFORM_DEPLOY_BRIDGE_ACTOR_SYSTEM, PLATFORM_SCOPE_TENANT_ID, POSTGRES_REPLICA_CLUSTER_ARN_SSM_NAME, POSTGRES_REPLICA_DATABASE_NAME_SSM_NAME, POSTGRES_REPLICA_SECRET_ARN_SSM_NAME, PROVISION_DEFAULT_WORKSPACE_DETAIL_TYPE, PlatformDeployBridge, PlatformDeployBridgeLambda, PostAuthenticationLambda, PostConfirmationLambda, PreTokenGenerationLambda, ProvisionDefaultWorkspaceLambda, RENAME_CASCADE_CONSUMER_NAME, RENAME_CASCADE_DEFAULT_CONCURRENCY, RENAME_CASCADE_FAILED_THRESHOLD, RENAME_CASCADE_OPS_EVENT_BUS_ENV_VAR, RENAME_CASCADE_SLOW_THRESHOLD_SECONDS, REST_API_BASE_URL_SSM_NAME, RenameCascadeLambdas, RenameCascadeWorkflow, RootGraphqlApi, RootHostedZone, RootHttpApi, RootWildcardCertificate, SEED_DEMO_DATA_CONSUMER_NAME, SEED_SYSTEM_DATA_ACTOR_SYSTEM, SEED_SYSTEM_DATA_CONSUMER_NAME, SEED_SYSTEM_DATA_CONTROL_BUS_ENV_VAR, STATIC_HOSTING_SERVICE_TYPE, SeedDemoDataLambda, SeedDemoDataWorkflow, SeedSystemDataLambda, SeedSystemDataWorkflow, StaticHosting, USER_ONBOARDING_EVENT_SOURCE, UserOnboardingWorkflow, WorkflowDedupConsumerNameInvalidError, WorkflowDedupTable, WorkflowDedupTableDuplicateError, buildFhirCurrentResourceChangeDetail, buildProvisionDefaultWorkspaceRequestedDetail, demoMembershipId, demoRoleAssignmentId, demoRolesForUserInTenant, demoScenarioIdentifier, getDynamoDbDataStoreTableName, getPostgresReplicaSchemaName, getWorkflowDedupTableName, openHiTagKey, openhiResourceIdentifier };
|
|
2594
|
-
export type { BridgedStatus, BuildParameterNameProps, CascadeChunkInput, CascadeFinalizeInput, CascadeFinalizeOutput, CascadeListInput, CascadeListOutput, ChildHostedZoneProps, CloudFormationStackStatusChangeDetail, DataStoreHistoricalArchiveProps, DataStorePostgresReplicaProps, DemoDevUser, DemoTenantSpec, DemoWorkspaceDataPlaneFixtures, DemoWorkspaceSpec, DiscoverableStringParameterProps, DynamoDbDataStoreProps, FhirCurrentResourceChangeDetail, GrantConsumerOptions, OpenHiAppProps, OpenHiAuthServiceProps, OpenHiDataServiceProps, OpenHiEnvironmentProps, OpenHiGlobalServiceProps, OpenHiGraphqlServiceProps, OpenHiRestApiServiceProps, OpenHiServiceProps, OpenHiServiceType, OpenHiStageProps, OwningDeleteCascadeLambdasProps, OwningDeleteCascadeWorkflowProps, PlatformDeployBridgeLambdaProps, PlatformDeployBridgeProps, PostConfirmationLambdaProps, PreTokenGenerationLambdaProps, ProvisionDefaultWorkspaceLambdaProps, ProvisionDefaultWorkspaceRequestedDetail, RenameCascadeChunkInput, RenameCascadeFinalizeInput, RenameCascadeFinalizeOutput, RenameCascadeLambdasProps, RenameCascadeListInput, RenameCascadeListOutput, RenameCascadeWorkflowProps, RootGraphqlApiProps, RootHttpApiProps, SeedDemoDataLambdaProps, SeedDemoDataWorkflowProps, SeedSystemDataLambdaProps, SeedSystemDataWorkflowProps, StaticHostingProps, UserOnboardingWorkflowProps, WorkflowDedupTableProps };
|
|
2880
|
+
export { BRIDGED_STATUSES, CLOUDFORMATION_EVENT_SOURCE, CLOUDFORMATION_STACK_STATUS_CHANGE_DETAIL_TYPE, CONTROL_EVENT_BUS_NAME_ENV_VAR, ChildHostedZone, CognitoUserPool, CognitoUserPoolClient, CognitoUserPoolDomain, CognitoUserPoolKmsKey, ControlEventBus, DATA_STORE_CHANGE_DETAIL_MAX_UTF8_BYTES, DATA_STORE_CHANGE_DETAIL_TYPE, DATA_STORE_CHANGE_EVENT_SOURCE, DEMO_DATA_PLANE_FIXTURES, DEMO_PERIOD, DEMO_TENANT_SPECS, DEMO_URN_SYSTEM, DEV_USERS, DataEventBus, DataStoreHistoricalArchive, DataStorePostgresReplica, DiscoverableStringParameter, DynamoDbDataStore, OPENHI_REPO_TAG_KEY_ENV_VAR, OPENHI_RESOURCE_URN_SYSTEM, OPENHI_TAG_KEY_PREFIX_ENV_VAR, OPENHI_TAG_SUFFIX_BRANCH_NAME, OPENHI_TAG_SUFFIX_REPO_NAME, OPENHI_TAG_SUFFIX_SERVICE_TYPE, OPENHI_TAG_SUFFIX_STAGE_TYPE, OWNING_DELETE_CASCADE_CONSUMER_NAME, OWNING_DELETE_CASCADE_DEFAULT_CONCURRENCY, OWNING_DELETE_CASCADE_STUCK_THRESHOLD_MINUTES, OWNING_DELETE_OPS_EVENT_BUS_ENV_VAR, OpenHiApp, OpenHiAuthService, OpenHiDataService, OpenHiEnvironment, OpenHiGlobalService, OpenHiGraphqlService, OpenHiRestApiService, OpenHiService, OpenHiStage, OpenHiWebsiteService, OpsEventBus, OwningDeleteCascadeLambdas, OwningDeleteCascadeWorkflow, PLACEHOLDER_TENANT_ID, PLACEHOLDER_WORKSPACE_ID, PLATFORM_DEPLOY_BRIDGE_ACTOR_SYSTEM, PLATFORM_SCOPE_TENANT_ID, POSTGRES_REPLICA_CLUSTER_ARN_SSM_NAME, POSTGRES_REPLICA_DATABASE_NAME_SSM_NAME, POSTGRES_REPLICA_SECRET_ARN_SSM_NAME, PROVISION_DEFAULT_WORKSPACE_DETAIL_TYPE, PlatformDeployBridge, PlatformDeployBridgeLambda, PostAuthenticationLambda, PostConfirmationLambda, PreTokenGenerationLambda, ProvisionDefaultWorkspaceLambda, RENAME_CASCADE_CONSUMER_NAME, RENAME_CASCADE_DEFAULT_CONCURRENCY, RENAME_CASCADE_FAILED_THRESHOLD, RENAME_CASCADE_OPS_EVENT_BUS_ENV_VAR, RENAME_CASCADE_SLOW_THRESHOLD_SECONDS, REST_API_BASE_URL_SSM_NAME, RenameCascadeLambdas, RenameCascadeWorkflow, RootGraphqlApi, RootHostedZone, RootHttpApi, RootWildcardCertificate, SEED_DEMO_DATA_CONSUMER_NAME, SEED_SYSTEM_DATA_ACTOR_SYSTEM, SEED_SYSTEM_DATA_CONSUMER_NAME, SEED_SYSTEM_DATA_CONTROL_BUS_ENV_VAR, SSM_PARAM_NAME_FULL_DOMAIN, STATIC_HOSTING_SERVICE_TYPE, SeedDemoDataLambda, SeedDemoDataWorkflow, SeedSystemDataLambda, SeedSystemDataWorkflow, StaticContent, StaticHosting, USER_ONBOARDING_EVENT_SOURCE, UserOnboardingWorkflow, WorkflowDedupConsumerNameInvalidError, WorkflowDedupTable, WorkflowDedupTableDuplicateError, buildFhirCurrentResourceChangeDetail, buildProvisionDefaultWorkspaceRequestedDetail, demoMembershipId, demoRoleAssignmentId, demoRolesForUserInTenant, demoScenarioIdentifier, getDynamoDbDataStoreTableName, getPostgresReplicaSchemaName, getWorkflowDedupTableName, openHiTagKey, openhiResourceIdentifier };
|
|
2881
|
+
export type { BridgedStatus, BuildParameterNameProps, CascadeChunkInput, CascadeFinalizeInput, CascadeFinalizeOutput, CascadeListInput, CascadeListOutput, ChildHostedZoneProps, CloudFormationStackStatusChangeDetail, DataEventBusOptions, DataStoreHistoricalArchiveProps, DataStorePostgresReplicaProps, DemoDevUser, DemoTenantSpec, DemoWorkspaceDataPlaneFixtures, DemoWorkspaceSpec, DiscoverableStringParameterProps, DynamoDbDataStoreProps, FhirCurrentResourceChangeDetail, GrantConsumerOptions, HostingMode, OpenHiAppProps, OpenHiAuthServiceProps, OpenHiDataServiceProps, OpenHiEnvironmentProps, OpenHiGlobalServiceProps, OpenHiGraphqlServiceProps, OpenHiRestApiServiceProps, OpenHiServiceProps, OpenHiServiceType, OpenHiStageProps, OpenHiWebsiteServiceProps, OwningDeleteCascadeLambdasProps, OwningDeleteCascadeWorkflowProps, PlatformDeployBridgeLambdaProps, PlatformDeployBridgeProps, PostConfirmationLambdaProps, PreTokenGenerationLambdaProps, ProvisionDefaultWorkspaceLambdaProps, ProvisionDefaultWorkspaceRequestedDetail, RenameCascadeChunkInput, RenameCascadeFinalizeInput, RenameCascadeFinalizeOutput, RenameCascadeLambdasProps, RenameCascadeListInput, RenameCascadeListOutput, RenameCascadeWorkflowProps, RootGraphqlApiProps, RootHttpApiProps, SeedDemoDataLambdaProps, SeedDemoDataWorkflowProps, SeedSystemDataLambdaProps, SeedSystemDataWorkflowProps, StaticContentProps, StaticHostingProps, UserOnboardingWorkflowProps, WorkflowDedupTableProps };
|