@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
31 lines (30 loc) • 1.64 kB
TypeScript
import * as cdk from "aws-cdk-lib";
import { Construct } from "constructs";
import * as acm from "aws-cdk-lib/aws-certificatemanager";
import { WebDomains } from "./web-stack";
import { WafLimits } from "./constructs/web-acl";
import type { OidcIssuerProps } from "./constructs/oidc-issuer";
export interface WebCertStackProps extends cdk.StackProps {
/** The issuer host — its CloudFront certificate is minted here. */
readonly issuer: Pick<OidcIssuerProps, "hostedZoneId" | "zoneName" | "domainName">;
/** Omit when the app stays on the raw CloudFront URL — no web cert then. */
readonly web?: WebDomains;
/** Resolved WAF limits → builds the CloudFront web ACL here (WAF's only
* region for CloudFront); only the per-IP limit applies to it — the
* per-token rule lives on the API stage (creds-stack.ts). Omit = no WAF. */
readonly waf?: WafLimits;
/** Names the web ACL; must match the other hub stacks'. */
readonly resourcePrefix?: string;
}
/** us-east-1 companion: what CloudFront only accepts from there — the
* issuer's certificate, the web + auth-domain certificate (Cognito's too)
* and the WAF web ACL. Never deployed alone — it rides along as a
* CredsStack + WebStack dependency. */
export declare class WebCertStack extends cdk.Stack {
readonly issuerCertificate: acm.ICertificate;
readonly certificate?: acm.ICertificate;
readonly webAclArn?: string;
/** Observe-only ACL for the issuer distribution — it never blocks STS. */
readonly issuerWebAclArn?: string;
constructor(scope: Construct, id: string, props: WebCertStackProps);
}