Skip to content

GetFunction

Source: src/AWS/Lambda/GetFunction.ts

Runtime binding for lambda:GetFunction.

Reads the bound 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.

const getFunction = yield* AWS.Lambda.GetFunction(target);
const response = yield* getFunction();
const memory = response.Configuration?.MemorySize;