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
| 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 DeleteAttributesRequest extends Omit<sdb.DeleteAttributesRequest, "DomainName"> {} |
| 8 | |
| 9 | /** |
| 10 | * Runtime binding for `sdb:DeleteAttributes`. |
| 11 | * |
| 12 | * Bind this operation to a {@link Domain} inside a function runtime to get a |
| 13 | * callable that automatically injects the domain name. Omitting `Attributes` |
| 14 | * deletes the whole item. |
| 15 | * ### Deleting Items |
| 16 | * **Example:** Delete a Whole Item |
| 17 | * ```typescript |
| 18 | * const deleteAttributes = yield* AWS.SimpleDB.DeleteAttributes(domain); |
| 19 | * |
| 20 | * yield* deleteAttributes({ ItemName: "user#123" }); |
| 21 | * ``` |
| 22 | * |
| 23 | * **Example:** Delete a Single Attribute |
| 24 | * ```typescript |
| 25 | * yield* deleteAttributes({ |
| 26 | * ItemName: "user#123", |
| 27 | * Attributes: [{ Name: "plan" }], |
| 28 | * }); |
| 29 | * ``` |
| 30 | * |
| 31 | * @binding |
| 32 | */ |
| 33 | export interface DeleteAttributes extends Binding.Service< |
| 34 | DeleteAttributes, |
| 35 | "AWS.SimpleDB.DeleteAttributes", |
| 36 | ( |
| 37 | domain: Domain, |
| 38 | ) => Effect.Effect< |
| 39 | ( |
| 40 | request: DeleteAttributesRequest, |
| 41 | ) => Effect.Effect<sdb.DeleteAttributesResponse, sdb.DeleteAttributesError, RuntimeContext> |
| 42 | > |
| 43 | > {} |
| 44 | export const DeleteAttributes = Binding.Service<DeleteAttributes>("AWS.SimpleDB.DeleteAttributes"); |