@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
22 lines (21 loc) • 1.1 kB
TypeScript
import { Construct } from "constructs";
import * as lambda from "aws-cdk-lib/aws-lambda";
import * as sns from "aws-cdk-lib/aws-sns";
export interface MonitoringProps {
/** Ops alert recipients, one subscription each. AWS sends every address a
* "Confirm subscription" email on first deploy — it gets nothing until clicked. */
readonly alertEmails: readonly string[];
/** The vend API Lambda — error/throttle alarms + DENIED-spike on its logs. */
readonly vendingFn: lambda.Function;
/** Public issuer URL; the canary probes its discovery document + JWKS. */
readonly issuerUrl: string;
/** The active signer's KMS key id — the canary requires it in the JWKS. */
readonly signingKeyId: string;
}
/** Lambda error/throttle alarms, a DENIED-spike alarm, and an issuer health
* canary — all fanned out through one SNS topic. */
export declare class Monitoring extends Construct {
/** All alarms notify here; add subscriptions to add recipients. */
readonly topic: sns.Topic;
constructor(scope: Construct, id: string, props: MonitoringProps);
}