UNPKG

@oystehr/sdk

Version:

Oystehr SDK

32 lines (29 loc) 1.4 kB
// AUTOGENERATED -- DO NOT EDIT import { ZambdaSchedule } from './ZambdaSchedule'; export interface ZambdaCreateParams { /** * A name for the Zambda Function. May contain letters, numbers, dashes, and underscores. Must be unique within the project. */ name: string; /** * The trigger method for the Zambda Function determines how the Function is invoked. Learn more about the different types here, https://docs.oystehr.com/oystehr/services/zambda/#types-of-zambdas. */ triggerMethod?: 'http_auth' | 'http_open' | 'subscription' | 'cron'; schedule?: ZambdaSchedule; /** * The runtime to use for the Zambda Function. */ runtime: 'nodejs20.x' | 'nodejs22.x' | 'nodejs24.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet8' | 'ruby3.3'; /** * The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB. */ memorySize?: number; /** * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations. */ timeoutInSeconds?: number; /** * The ID of the IAM role that the Zambda Function will assume when it is invoked. */ executionRoleId?: string; }