cdk-insights
Version:
AWS CDK security and cost analysis tool with AI-powered insights
11 lines (10 loc) • 601 B
TypeScript
/**
* Generates a stable, anonymous resource identifier based on stackName and logicalId.
* This hash is deterministic and stable across runs for the same logical resource,
* while maintaining anonymity (cannot reverse engineer the logical ID from the hash).
*
* @param stackName - The CloudFormation stack name
* @param logicalId - The CloudFormation logical ID (e.g., "MyBucket", "MyLambdaFunction")
* @returns A stable hash that uniquely identifies the resource while maintaining anonymity
*/
export declare const generateStableResourceId: (stackName: string, logicalId: string) => string;