@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
19 lines • 657 B
TypeScript
import { Policy } from '@cloud-copilot/iam-policy';
/**
* Find all the context keys in a list of policies
*
* @param policies - The list of policies to search
* @returns The list of valid and invalid context keys found in the policies
*/
export declare function findContextKeys(policies: Policy[]): Promise<{
validKeys: string[];
invalidKeys: string[];
}>;
/**
* Get the context variables used in a policy
*
* @param policy - The policy to extract variables from
* @returns The list of variables used in the policy
*/
export declare function getContextKeysFromPolicy(policy: Policy): string[];
//# sourceMappingURL=findContextKeys.d.ts.map