UNPKG

aws-iam-policy-tool

Version:
19 lines (18 loc) 628 B
import { RoleNode, RoleEntry } from '../aws/role'; import { Result } from '../utils/result'; export declare class InvalidRoleError extends Error { target: any; diff: any; constructor(msg: string, target: string, diff?: any); } export declare class RoleValidator { private _color; private _invalidCnt; constructor(opts?: any); validate(roleEntry: RoleEntry): Promise<Result[]>; _validateRoleOrRoleWithInstanceProfile(definedRole: RoleNode): Promise<void>; private _getRoleOrRoleWithInstanceProfile; private _validatePolicies; isValid(): boolean; _convertForDiff(role: any): any; }