@churchapps/apihelper
Version:
Library of helper functions not specific to any one ChurchApps project or framework.
21 lines • 954 B
TypeScript
import { S3Client } from "@aws-sdk/client-s3";
export declare class AwsHelper {
static readParameter(parameterName: string): Promise<string>;
private static _client;
private static getClient;
static S3PresignedUrl(key: string): Promise<{
url: string;
fields: Record<string, string>;
key: string;
}>;
static S3Upload(key: string, contentType: string, contents: Buffer): Promise<void>;
static S3Remove(key: string): Promise<void>;
static S3Rename(oldKey: string, newKey: string): Promise<void>;
static S3Move(oldKey: string, newKey: string): Promise<void>;
static S3Copy(oldKey: string, newKey: string): Promise<void>;
static S3List(path: string): Promise<string[]>;
static S3ListMultiPage(s3: S3Client, bucket: string, path: string): Promise<string[]>;
private static S3ListManual;
static S3Read(key: string): Promise<string | null>;
}
//# sourceMappingURL=AwsHelper.d.ts.map