aws-iam-policy-tool
Version:
AWS IAM role/policy management cli tool
19 lines (18 loc) • 628 B
TypeScript
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;
}