@cloud-copilot/iam-collect
Version:
Collect IAM information from AWS Accounts
21 lines • 1.1 kB
TypeScript
import { type S3StorageConfig } from '../../config/config.js';
import { type PathBasedPersistenceAdapter } from '../PathBasedPersistenceAdapter.js';
export declare class S3PathBasedPersistenceAdapter implements PathBasedPersistenceAdapter {
private readonly storageConfig;
private readonly deleteData;
private storageAuthAccountId;
constructor(storageConfig: S3StorageConfig, deleteData: boolean);
private getClient;
writeFile(filePath: string, data: string | Buffer): Promise<void>;
writeWithOptimisticLock(filePath: string, data: string | Buffer, lockId: string): Promise<boolean>;
readFile(filePath: string): Promise<string | undefined>;
readFileWithHash(filePath: string): Promise<{
data: string;
hash: string;
} | undefined>;
deleteFile(filePath: string): Promise<void>;
deleteDirectory(dirPath: string): Promise<void>;
listDirectory(dirPath: string): Promise<string[]>;
findWithPattern(baseDir: string, pathParts: string[], filename: string): Promise<string[]>;
}
//# sourceMappingURL=S3PathBasedPersistenceAdapter.d.ts.map