UNPKG

@cloud-copilot/iam-lens

Version:

Visibility in IAM in and across AWS accounts

26 lines 902 B
import { IamCollectClient } from '../collect/client.js'; /** * Input for the can-what command. */ export interface PrincipalCanInput { /** * The ARN of the principal to check permissions for. */ principal: string; /** * Whether to shrink action lists in the resulting policy document. */ shrinkActionLists: boolean; } /** * Get what actions a principal can perform based on their policies. * * @param collectClient the IAM collect client to use for retrieving policies. * @param input the input containing the principal and options. * @returns A promise that resolves to the permissions the principal can perform, or void if the implementation is incomplete. */ export declare function principalCan(collectClient: IamCollectClient, input: PrincipalCanInput): Promise<{ Version: string; Statement: any[]; }>; //# sourceMappingURL=principalCan.d.ts.map