Type Alias: CreateFunctionRequest
Properties
| Property | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Function name (example: "process-webhook") |
slug | string | No | URL-friendly slug (auto-generated if not provided) (example: "process-webhook") |
description | string | No | Function description |
code | string | Yes | Initial source code (example: "exports.handler = async (event, ctx) => { return { statusCode: 200, body: \"Hello\" }; };") |
entrypoint | string | No | Entrypoint function name |
runtime | "nodejs20" | "nodejs22" | No | Runtime environment |
authMode | "public" | "api_key" | "signed" | No | Authentication mode |
timeout | number | No | Execution timeout in ms (1000-300000) |
memory | number | No | Memory limit in MB (128-1024) |
envVars | SetEnvVarRequest[] | No | Initial environment variables |
Defined in
4Players/cortex-typescript-sdk/src/resources/functions.ts:32