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 Lambda from "@distilled.cloud/aws/lambda";
import * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { Function } from "./Function.ts";
export interface GetFunctionRequest extends Omit<
Lambda.GetFunctionRequest,
"FunctionName"
> {}
/**
* Runtime binding for `lambda:GetFunction`.
*
* Reads the bound {@link Function}'s configuration, code location, and tags —
* useful for introspection and operational tooling at runtime. Provide the
* `GetFunctionHttp` layer on the Function to satisfy the binding.
* @binding
* @section Function Metadata
* @example Read a function's configuration
* ```typescript
* const getFunction = yield* AWS.Lambda.GetFunction(target);
*
* const response = yield* getFunction();
* const memory = response.Configuration?.MemorySize;
* ```
*/
export interface GetFunction extends Binding.Service<
GetFunction,
"AWS.Lambda.GetFunction",
(
func: Function,
) => Effect.Effect<
(
request?: GetFunctionRequest,
) => Effect.Effect<Lambda.GetFunctionResponse, Lambda.GetFunctionError>
>
> {}
export const GetFunction = Binding.Service<GetFunction>(
"AWS.Lambda.GetFunction",
);