@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 41 lines 1.27 KB
Raw
1 import type * as sdb from "@distilled.cloud/aws/simpledb";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { Domain } from "./Domain.ts";
6
7 export interface PutAttributesRequest extends Omit<sdb.PutAttributesRequest, "DomainName"> {}
8
9 /**
10 * Runtime binding for `sdb:PutAttributes`.
11 *
12 * Bind this operation to a {@link Domain} inside a function runtime to get a
13 * callable that automatically injects the domain name.
14 * ### Writing Items
15 * **Example:** Put Attributes on an Item
16 * ```typescript
17 * const putAttributes = yield* AWS.SimpleDB.PutAttributes(domain);
18 *
19 * yield* putAttributes({
20 * ItemName: "user#123",
21 * Attributes: [
22 * { Name: "email", Value: "a@b.com", Replace: true },
23 * { Name: "plan", Value: "pro", Replace: true },
24 * ],
25 * });
26 * ```
27 *
28 * @binding
29 */
30 export interface PutAttributes extends Binding.Service<
31 PutAttributes,
32 "AWS.SimpleDB.PutAttributes",
33 (
34 domain: Domain,
35 ) => Effect.Effect<
36 (
37 request: PutAttributesRequest,
38 ) => Effect.Effect<sdb.PutAttributesResponse, sdb.PutAttributesError, RuntimeContext>
39 >
40 > {}
41 export const PutAttributes = Binding.Service<PutAttributes>("AWS.SimpleDB.PutAttributes");