cdk-insights
Version:
AWS CDK security and cost analysis tool with AI-powered insights
14 lines (13 loc) • 840 B
TypeScript
import type { CloudFormationResource, Issue, RedactionMapping } from '../../types/analysis.types';
type HashFunction = (resource: CloudFormationResource) => string;
export declare const createRedactResources: (hashFn: HashFunction) => (resources: Record<string, CloudFormationResource>) => {
redactedResources: Record<string, CloudFormationResource>;
mapping: RedactionMapping;
};
export declare const redactResources: (resources: Record<string, CloudFormationResource>, hashFn: HashFunction) => {
redactedResources: Record<string, CloudFormationResource>;
mapping: RedactionMapping;
};
export type RedactResourcesFn = ReturnType<typeof createRedactResources>;
export declare const redactRecommendations: (recommendations: Issue[], mapping: RedactionMapping, pathToLogicalId?: Record<string, string>) => Issue[];
export {};