Open History to see the last commit
1import type * as SVC from "@distilled.cloud/aws/codebuild";
2import * as Binding from "alchemy/Binding";
3import type * as Effect from "effect/Effect";
4import type { Project } from "./Project.ts";
5
6/**
7 * Runtime binding for `codebuild:InvalidateProjectCache` — resets the
8 * bound project's build cache so the next build starts cold.
9 * ### Project Cache
10 * **Example:** Invalidate the Build Cache
11 * ```typescript
12 * const invalidateProjectCache = yield* AWS.CodeBuild.InvalidateProjectCache(project);
13 *
14 * yield* invalidateProjectCache();
15 * ```
16 *
17 * @binding
18 */
19export interface InvalidateProjectCache extends Binding.Service<
20 InvalidateProjectCache,
21 "AWS.CodeBuild.InvalidateProjectCache",
22 <P extends Project>(
23 project: P,
24 ) => Effect.Effect<
25 () => Effect.Effect<SVC.InvalidateProjectCacheOutput, SVC.InvalidateProjectCacheError>
26 >
27> {}
28export const InvalidateProjectCache = Binding.Service<InvalidateProjectCache>(
29 "AWS.CodeBuild.InvalidateProjectCache",
30);