cdk-nextjs
Version:
Deploy Next.js apps on AWS with CDK
16 lines (15 loc) • 471 B
TypeScript
interface PruneS3Props {
bucketName: string;
currentBuildId: string;
/**
* Time to live in milliseconds.
*/
msTtl: number;
}
/**
* Given `bucketName`, `currentBuildId`, and `msTtl`, list all objects
* in the bucket and delete any that 1/ do not have a metadata key of "next-build-id"
* and value of `currentBuildId` and 2/ were created more than `msTtl` ago
*/
export declare function pruneS3(props: PruneS3Props): Promise<void>;
export {};