UNPKG

@cloud-copilot/iam-simulate

Version:
30 lines 1.05 kB
/** * This class manages a set of context keys, allowing for both literal * and pattern-based (regex) matching. It provides functionality to check if * a given key is included based on the configured keys. */ export declare class StrictContextKeys { private includedKeys; private keyLiterals; private keyPatterns; private initialized; /** * Create an instance * Can accept literal keys or regex patterns. A regex pattern is enclosed in slashes (/pattern/). * * @param includedKeys the list of context keys, which can be literals or regex patterns. */ constructor(includedKeys: string[]); /** * Lazy initialization of strict keys into literals and patterns. */ private initialize; /** * Checks if a given key is included in the strict context keys literals and patterns * * @param key the context key to check * @returns true if the key is included, false otherwise */ has(key: string): boolean; } //# sourceMappingURL=strictContextKeys.d.ts.map