Item type for creating a new function.

interface ExternalCogniteFunctionItem {
    cpu?: number;
    description?: string;
    envVars?: Record<string, string>;
    externalId?: string;
    extraIndexUrls?: string[];
    fileId: number;
    functionPath?: string;
    indexUrl?: string;
    memory?: number;
    metadata?: Metadata;
    name: string;
    owner?: string;
    runtime?: FunctionRuntime;
    secrets?: Record<string, string>;
}

Hierarchy (view full)

Properties

cpu?: number

Number of CPU cores per function.

description?: string

Description of the function.

envVars?: Record<string, string>

Environment variables for the function.

externalId?: string

External ID of the function.

extraIndexUrls?: string[]

Extra package index URLs to use when building the function.

fileId: number

File ID of the function source code.

functionPath?: string

Relative path from the root folder to the file containing the handle function.

indexUrl?: string

Specify a different python package index.

memory?: number

Memory per function measured in GB.

metadata?: Metadata

Custom metadata for the function.

name: string

Name of the function.

owner?: string

Owner of the function. Typically used to know who created it.

runtime?: FunctionRuntime

The runtime of the function.

secrets?: Record<string, string>

Secrets are returned scrambled if set.