Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1004 B
Raw Blame
import type * as SVC from "@distilled.cloud/aws/codebuild";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { Project } from "./Project.ts";

/**
 * Runtime binding for `codebuild:InvalidateProjectCache` — resets the
 * bound project's build cache so the next build starts cold.
 * @binding
 * @section Project Cache
 * @example Invalidate the Build Cache
 * ```typescript
 * const invalidateProjectCache = yield* AWS.CodeBuild.InvalidateProjectCache(project);
 *
 * yield* invalidateProjectCache();
 * ```
 */
export interface InvalidateProjectCache extends Binding.Service<
  InvalidateProjectCache,
  "AWS.CodeBuild.InvalidateProjectCache",
  <P extends Project>(
    project: P,
  ) => Effect.Effect<
    () => Effect.Effect<
      SVC.InvalidateProjectCacheOutput,
      SVC.InvalidateProjectCacheError
    >
  >
> {}
export const InvalidateProjectCache = Binding.Service<InvalidateProjectCache>(
  "AWS.CodeBuild.InvalidateProjectCache",
);