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.

610 B
Raw Blame
import * as redshift from "@distilled.cloud/aws/redshift";
import * as Layer from "effect/Layer";
import {
  clusterSnapshotArnPattern,
  makeRedshiftClusterHttpBinding,
} from "./BindingHttp.ts";
import { CreateClusterSnapshot } from "./CreateClusterSnapshot.ts";

export const CreateClusterSnapshotHttp = Layer.effect(
  CreateClusterSnapshot,
  makeRedshiftClusterHttpBinding({
    tag: "AWS.Redshift.CreateClusterSnapshot",
    operation: redshift.createClusterSnapshot,
    actions: ["redshift:CreateClusterSnapshot"],
    extraResources: (clusterArn) => [clusterSnapshotArnPattern(clusterArn)],
  }),
);