CreateFunctionRequest: {
    description?: string;
    environmentVariables?: Record<string, string>;
    handler?: string;
    httpOption?: FunctionHttpOption;
    maxScale?: number;
    memoryLimit?: number;
    minScale?: number;
    name?: string;
    namespaceId: string;
    privacy?: FunctionPrivacy;
    region?: Region;
    runtime?: FunctionRuntime;
    sandbox?: FunctionSandbox;
    secretEnvironmentVariables?: Function.v1beta1.Secret[];
    timeout?: string;
}

Type declaration

  • Optionaldescription?: string

    Description of the function.

  • OptionalenvironmentVariables?: Record<string, string>

    Environment variables of the function.

  • Optionalhandler?: string

    Handler to use with the function.

  • OptionalhttpOption?: FunctionHttpOption

    Possible values:

    • Redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
    • Enabled: Serve both HTTP and HTTPS traffic.
  • OptionalmaxScale?: number

    Maximum number of instances to scale the function to.

  • OptionalmemoryLimit?: number

    Memory limit of the function in MB.

  • OptionalminScale?: number

    Minumum number of instances to scale the function to.

  • Optionalname?: string

    Name of the function to create.

  • namespaceId: string

    UUID of the namespace the function will be created in.

  • Optionalprivacy?: FunctionPrivacy

    Privacy setting of the function.

  • Optionalregion?: Region

    Region to target. If none is passed will use default region from the config.

  • Optionalruntime?: FunctionRuntime

    Runtime to use with the function.

  • Optionalsandbox?: FunctionSandbox

    Execution environment of the function.

  • OptionalsecretEnvironmentVariables?: Function.v1beta1.Secret[]
  • Optionaltimeout?: string

    Request processing time limit for the function.