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 Lambda from "@distilled.cloud/aws/lambda"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | import type { Function } from "./Function.ts"; |
| 5 | |
| 6 | export interface GetFunctionRequest extends Omit<Lambda.GetFunctionRequest, "FunctionName"> {} |
| 7 | |
| 8 | /** |
| 9 | * Runtime binding for `lambda:GetFunction`. |
| 10 | * |
| 11 | * Reads the bound {@link Function}'s configuration, code location, and tags — |
| 12 | * useful for introspection and operational tooling at runtime. Provide the |
| 13 | * `GetFunctionHttp` layer on the Function to satisfy the binding. |
| 14 | * ### Function Metadata |
| 15 | * **Example:** Read a function's configuration |
| 16 | * ```typescript |
| 17 | * const getFunction = yield* AWS.Lambda.GetFunction(target); |
| 18 | * |
| 19 | * const response = yield* getFunction(); |
| 20 | * const memory = response.Configuration?.MemorySize; |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface GetFunction extends Binding.Service< |
| 26 | GetFunction, |
| 27 | "AWS.Lambda.GetFunction", |
| 28 | ( |
| 29 | func: Function, |
| 30 | ) => Effect.Effect< |
| 31 | ( |
| 32 | request?: GetFunctionRequest, |
| 33 | ) => Effect.Effect<Lambda.GetFunctionResponse, Lambda.GetFunctionError> |
| 34 | > |
| 35 | > {} |
| 36 | export const GetFunction = Binding.Service<GetFunction>("AWS.Lambda.GetFunction"); |