UNPKG

aws-iam-policy-tool

Version:
13 lines (12 loc) 442 B
import { IAM } from 'aws-sdk'; export interface RolePolicyPair { RoleName: string; PolicyArn: string; PolicyName?: string; } export declare function diffAttachedPolicies(roleName: string, newPolicies: IAM.AttachedPolicy[]): Promise<{ attaching: RolePolicyPair[]; detaching: RolePolicyPair[]; unchanged: RolePolicyPair[]; }>; export declare function containPolicy(target: any[], expected: IAM.AttachedPolicy): boolean;