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 type * as sdb from "@distilled.cloud/aws/simpledb";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { RuntimeContext } from "../../RuntimeContext.ts";
import type { Domain } from "./Domain.ts";
export interface PutAttributesRequest extends Omit<
sdb.PutAttributesRequest,
"DomainName"
> {}
/**
* Runtime binding for `sdb:PutAttributes`.
*
* Bind this operation to a {@link Domain} inside a function runtime to get a
* callable that automatically injects the domain name.
* @binding
* @section Writing Items
* @example Put Attributes on an Item
* ```typescript
* const putAttributes = yield* AWS.SimpleDB.PutAttributes(domain);
*
* yield* putAttributes({
* ItemName: "user#123",
* Attributes: [
* { Name: "email", Value: "[email protected]", Replace: true },
* { Name: "plan", Value: "pro", Replace: true },
* ],
* });
* ```
*/
export interface PutAttributes extends Binding.Service<
PutAttributes,
"AWS.SimpleDB.PutAttributes",
(
domain: Domain,
) => Effect.Effect<
(
request: PutAttributesRequest,
) => Effect.Effect<
sdb.PutAttributesResponse,
sdb.PutAttributesError,
RuntimeContext
>
>
> {}
export const PutAttributes = Binding.Service<PutAttributes>(
"AWS.SimpleDB.PutAttributes",
);