UNPKG

@cloud-copilot/iam-lens

Version:

Visibility in IAM in and across AWS accounts

56 lines 1.44 kB
import { type AwsIamStore } from '@cloud-copilot/iam-collect'; /** * Useful functions for unit tests. */ /** * Save a managed policy * * @param store the AWS IAM store * @param details the details of the managed policy */ export declare function saveManagedPolicy(store: AwsIamStore, details: { arn: string; description?: string; policy: any; }): Promise<void>; /** * Save a user for testing * * @param store the AWS IAM store * @param details the details of the user */ export declare function saveUser(store: AwsIamStore, details: { arn: string; description?: string; inlinePolicies?: any[]; managedPolicies?: string[]; groups?: string[]; permissionBoundary?: string; }): Promise<void>; /** * Save a role for testing * * @param store the AWS IAM store * @param details the details of the role */ export declare function saveRole(store: AwsIamStore, details: { arn: string; description?: string; inlinePolicies?: any[]; managedPolicies?: string[]; permissionBoundary?: string; trustPolicy?: any; }): Promise<void>; /** * Save a group for testing * * @param store the AWS IAM store * @param details the details of the group */ export declare function saveGroup(store: AwsIamStore, details: { arn: string; description?: string; inlinePolicies?: any[]; managedPolicies?: string[]; }): Promise<void>; //# sourceMappingURL=testUtils.d.ts.map