@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
21 lines (20 loc) • 969 B
TypeScript
import { AccountDimensionsConfig, StageKind } from "./project-config";
/** `accountDimensions` as the deploy uses it: the API's env (ACCOUNT_DIMENSIONS) and config.json's `dimensions`. */
export interface ResolvedAccountDimensions {
readonly enabled: boolean;
readonly labels: {
readonly tenant: string;
readonly project: string;
readonly stage: string;
};
/** Stage value (lower-case) → role-card silhouette. */
readonly stages: Readonly<Record<string, StageKind>>;
}
export declare const DEFAULT_DIMENSION_LABELS: {
readonly tenant: "Tenant";
readonly project: "Project";
readonly stage: "Stage";
};
/** What a stage value means when the block lists none: the dashboard's old name heuristic, made explicit. */
export declare const DEFAULT_STAGE_KINDS: Readonly<Record<string, StageKind>>;
export declare function resolveAccountDimensions(cfg?: AccountDimensionsConfig): ResolvedAccountDimensions | undefined;