@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
11 lines (10 loc) • 690 B
TypeScript
import type * as dynamodb from "aws-cdk-lib/aws-dynamodb";
import type * as iam from "aws-cdk-lib/aws-iam";
export interface PluginRuntimeTables {
readonly catalogTable: dynamodb.ITable;
readonly accountsTable: dynamodb.ITable;
}
/** Env for any Lambda that READS the plugin catalog. The catalog implies the accounts catalog (binding
* availability — pluginAccess.registeredAccounts throws without it), so the two always travel together. */
export declare function pluginRuntimeEnv(tables: PluginRuntimeTables, discoveryRefreshSeconds?: number): Record<string, string>;
export declare function grantPluginRuntimeRead(grantee: iam.IGrantable, tables: PluginRuntimeTables): void;