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.
import * as docdbelastic from "@distilled.cloud/aws/docdb-elastic";
import * as Layer from "effect/Layer";
import {
makeDocDBElasticClusterHttpBinding,
SNAPSHOT_ARN_WILDCARD,
} from "./BindingHttp.ts";
import { CreateClusterSnapshot } from "./CreateClusterSnapshot.ts";
export const CreateClusterSnapshotHttp = Layer.effect(
CreateClusterSnapshot,
makeDocDBElasticClusterHttpBinding({
tag: "AWS.DocDBElastic.CreateClusterSnapshot",
operation: docdbelastic.createClusterSnapshot,
actions: [
"docdb-elastic:CreateClusterSnapshot",
"docdb-elastic:TagResource",
],
// The action authorizes against both the source cluster and the
// to-be-created snapshot (whose UUID-based ARN is server-generated).
extraResources: [SNAPSHOT_ARN_WILDCARD],
}),
);