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