1. Packages
  2. Ibm Provider
  3. API Docs
  4. CodeEngineFunction
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.CodeEngineFunction

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, and delete code_engine_functions with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const codeEngineFunctionInstance = new ibm.CodeEngineFunction("codeEngineFunctionInstance", {
        projectId: ibm_code_engine_project.code_engine_project_instance.project_id,
        runtime: "nodejs-20",
        codeReference: "icr.io/codeengine/samples/function-nodejs-codebundle",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    code_engine_function_instance = ibm.CodeEngineFunction("codeEngineFunctionInstance",
        project_id=ibm_code_engine_project["code_engine_project_instance"]["project_id"],
        runtime="nodejs-20",
        code_reference="icr.io/codeengine/samples/function-nodejs-codebundle")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewCodeEngineFunction(ctx, "codeEngineFunctionInstance", &ibm.CodeEngineFunctionArgs{
    			ProjectId:     pulumi.Any(ibm_code_engine_project.Code_engine_project_instance.Project_id),
    			Runtime:       pulumi.String("nodejs-20"),
    			CodeReference: pulumi.String("icr.io/codeengine/samples/function-nodejs-codebundle"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var codeEngineFunctionInstance = new Ibm.CodeEngineFunction("codeEngineFunctionInstance", new()
        {
            ProjectId = ibm_code_engine_project.Code_engine_project_instance.Project_id,
            Runtime = "nodejs-20",
            CodeReference = "icr.io/codeengine/samples/function-nodejs-codebundle",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.CodeEngineFunction;
    import com.pulumi.ibm.CodeEngineFunctionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var codeEngineFunctionInstance = new CodeEngineFunction("codeEngineFunctionInstance", CodeEngineFunctionArgs.builder()
                .projectId(ibm_code_engine_project.code_engine_project_instance().project_id())
                .runtime("nodejs-20")
                .codeReference("icr.io/codeengine/samples/function-nodejs-codebundle")
                .build());
    
        }
    }
    
    resources:
      codeEngineFunctionInstance:
        type: ibm:CodeEngineFunction
        properties:
          projectId: ${ibm_code_engine_project.code_engine_project_instance.project_id}
          runtime: nodejs-20
          codeReference: icr.io/codeengine/samples/function-nodejs-codebundle
    

    Create CodeEngineFunction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CodeEngineFunction(name: string, args: CodeEngineFunctionArgs, opts?: CustomResourceOptions);
    @overload
    def CodeEngineFunction(resource_name: str,
                           args: CodeEngineFunctionArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CodeEngineFunction(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           code_reference: Optional[str] = None,
                           runtime: Optional[str] = None,
                           project_id: Optional[str] = None,
                           run_env_variables: Optional[Sequence[CodeEngineFunctionRunEnvVariableArgs]] = None,
                           code_secret: Optional[str] = None,
                           managed_domain_mappings: Optional[str] = None,
                           name: Optional[str] = None,
                           code_main: Optional[str] = None,
                           code_binary: Optional[bool] = None,
                           code_engine_function_id: Optional[str] = None,
                           scale_concurrency: Optional[float] = None,
                           scale_cpu_limit: Optional[str] = None,
                           scale_down_delay: Optional[float] = None,
                           scale_max_execution_time: Optional[float] = None,
                           scale_memory_limit: Optional[str] = None,
                           timeouts: Optional[CodeEngineFunctionTimeoutsArgs] = None)
    func NewCodeEngineFunction(ctx *Context, name string, args CodeEngineFunctionArgs, opts ...ResourceOption) (*CodeEngineFunction, error)
    public CodeEngineFunction(string name, CodeEngineFunctionArgs args, CustomResourceOptions? opts = null)
    public CodeEngineFunction(String name, CodeEngineFunctionArgs args)
    public CodeEngineFunction(String name, CodeEngineFunctionArgs args, CustomResourceOptions options)
    
    type: ibm:CodeEngineFunction
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CodeEngineFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CodeEngineFunctionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CodeEngineFunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CodeEngineFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CodeEngineFunctionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var codeEngineFunctionResource = new Ibm.CodeEngineFunction("codeEngineFunctionResource", new()
    {
        CodeReference = "string",
        Runtime = "string",
        ProjectId = "string",
        RunEnvVariables = new[]
        {
            new Ibm.Inputs.CodeEngineFunctionRunEnvVariableArgs
            {
                Key = "string",
                Name = "string",
                Prefix = "string",
                Reference = "string",
                Type = "string",
                Value = "string",
            },
        },
        CodeSecret = "string",
        ManagedDomainMappings = "string",
        Name = "string",
        CodeMain = "string",
        CodeBinary = false,
        CodeEngineFunctionId = "string",
        ScaleConcurrency = 0,
        ScaleCpuLimit = "string",
        ScaleDownDelay = 0,
        ScaleMaxExecutionTime = 0,
        ScaleMemoryLimit = "string",
        Timeouts = new Ibm.Inputs.CodeEngineFunctionTimeoutsArgs
        {
            Create = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewCodeEngineFunction(ctx, "codeEngineFunctionResource", &ibm.CodeEngineFunctionArgs{
    	CodeReference: pulumi.String("string"),
    	Runtime:       pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    	RunEnvVariables: ibm.CodeEngineFunctionRunEnvVariableArray{
    		&ibm.CodeEngineFunctionRunEnvVariableArgs{
    			Key:       pulumi.String("string"),
    			Name:      pulumi.String("string"),
    			Prefix:    pulumi.String("string"),
    			Reference: pulumi.String("string"),
    			Type:      pulumi.String("string"),
    			Value:     pulumi.String("string"),
    		},
    	},
    	CodeSecret:            pulumi.String("string"),
    	ManagedDomainMappings: pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	CodeMain:              pulumi.String("string"),
    	CodeBinary:            pulumi.Bool(false),
    	CodeEngineFunctionId:  pulumi.String("string"),
    	ScaleConcurrency:      pulumi.Float64(0),
    	ScaleCpuLimit:         pulumi.String("string"),
    	ScaleDownDelay:        pulumi.Float64(0),
    	ScaleMaxExecutionTime: pulumi.Float64(0),
    	ScaleMemoryLimit:      pulumi.String("string"),
    	Timeouts: &ibm.CodeEngineFunctionTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var codeEngineFunctionResource = new CodeEngineFunction("codeEngineFunctionResource", CodeEngineFunctionArgs.builder()
        .codeReference("string")
        .runtime("string")
        .projectId("string")
        .runEnvVariables(CodeEngineFunctionRunEnvVariableArgs.builder()
            .key("string")
            .name("string")
            .prefix("string")
            .reference("string")
            .type("string")
            .value("string")
            .build())
        .codeSecret("string")
        .managedDomainMappings("string")
        .name("string")
        .codeMain("string")
        .codeBinary(false)
        .codeEngineFunctionId("string")
        .scaleConcurrency(0)
        .scaleCpuLimit("string")
        .scaleDownDelay(0)
        .scaleMaxExecutionTime(0)
        .scaleMemoryLimit("string")
        .timeouts(CodeEngineFunctionTimeoutsArgs.builder()
            .create("string")
            .update("string")
            .build())
        .build());
    
    code_engine_function_resource = ibm.CodeEngineFunction("codeEngineFunctionResource",
        code_reference="string",
        runtime="string",
        project_id="string",
        run_env_variables=[{
            "key": "string",
            "name": "string",
            "prefix": "string",
            "reference": "string",
            "type": "string",
            "value": "string",
        }],
        code_secret="string",
        managed_domain_mappings="string",
        name="string",
        code_main="string",
        code_binary=False,
        code_engine_function_id="string",
        scale_concurrency=0,
        scale_cpu_limit="string",
        scale_down_delay=0,
        scale_max_execution_time=0,
        scale_memory_limit="string",
        timeouts={
            "create": "string",
            "update": "string",
        })
    
    const codeEngineFunctionResource = new ibm.CodeEngineFunction("codeEngineFunctionResource", {
        codeReference: "string",
        runtime: "string",
        projectId: "string",
        runEnvVariables: [{
            key: "string",
            name: "string",
            prefix: "string",
            reference: "string",
            type: "string",
            value: "string",
        }],
        codeSecret: "string",
        managedDomainMappings: "string",
        name: "string",
        codeMain: "string",
        codeBinary: false,
        codeEngineFunctionId: "string",
        scaleConcurrency: 0,
        scaleCpuLimit: "string",
        scaleDownDelay: 0,
        scaleMaxExecutionTime: 0,
        scaleMemoryLimit: "string",
        timeouts: {
            create: "string",
            update: "string",
        },
    });
    
    type: ibm:CodeEngineFunction
    properties:
        codeBinary: false
        codeEngineFunctionId: string
        codeMain: string
        codeReference: string
        codeSecret: string
        managedDomainMappings: string
        name: string
        projectId: string
        runEnvVariables:
            - key: string
              name: string
              prefix: string
              reference: string
              type: string
              value: string
        runtime: string
        scaleConcurrency: 0
        scaleCpuLimit: string
        scaleDownDelay: 0
        scaleMaxExecutionTime: 0
        scaleMemoryLimit: string
        timeouts:
            create: string
            update: string
    

    CodeEngineFunction Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CodeEngineFunction resource accepts the following input properties:

    CodeReference string
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Runtime string
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    CodeBinary bool
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    CodeEngineFunctionId string
    The unique identifier of the code_engine_function.
    CodeMain string
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    CodeSecret string
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ManagedDomainMappings string
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    Name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    RunEnvVariables List<CodeEngineFunctionRunEnvVariable>
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    ScaleConcurrency double
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    ScaleCpuLimit string
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    ScaleDownDelay double
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    ScaleMaxExecutionTime double
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    ScaleMemoryLimit string
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    Timeouts CodeEngineFunctionTimeouts
    CodeReference string
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Runtime string
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    CodeBinary bool
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    CodeEngineFunctionId string
    The unique identifier of the code_engine_function.
    CodeMain string
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    CodeSecret string
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ManagedDomainMappings string
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    Name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    RunEnvVariables []CodeEngineFunctionRunEnvVariableArgs
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    ScaleConcurrency float64
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    ScaleCpuLimit string
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    ScaleDownDelay float64
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    ScaleMaxExecutionTime float64
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    ScaleMemoryLimit string
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    Timeouts CodeEngineFunctionTimeoutsArgs
    codeReference String
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    runtime String
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    codeBinary Boolean
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    codeEngineFunctionId String
    The unique identifier of the code_engine_function.
    codeMain String
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    codeSecret String
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    managedDomainMappings String
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    name String
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    runEnvVariables List<CodeEngineFunctionRunEnvVariable>
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    scaleConcurrency Double
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    scaleCpuLimit String
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    scaleDownDelay Double
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    scaleMaxExecutionTime Double
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    scaleMemoryLimit String
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    timeouts CodeEngineFunctionTimeouts
    codeReference string
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    projectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    runtime string
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    codeBinary boolean
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    codeEngineFunctionId string
    The unique identifier of the code_engine_function.
    codeMain string
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    codeSecret string
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    managedDomainMappings string
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    runEnvVariables CodeEngineFunctionRunEnvVariable[]
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    scaleConcurrency number
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    scaleCpuLimit string
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    scaleDownDelay number
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    scaleMaxExecutionTime number
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    scaleMemoryLimit string
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    timeouts CodeEngineFunctionTimeouts
    code_reference str
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    project_id str
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    runtime str
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    code_binary bool
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    code_engine_function_id str
    The unique identifier of the code_engine_function.
    code_main str
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    code_secret str
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    managed_domain_mappings str
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    name str
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    run_env_variables Sequence[CodeEngineFunctionRunEnvVariableArgs]
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    scale_concurrency float
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    scale_cpu_limit str
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    scale_down_delay float
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    scale_max_execution_time float
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    scale_memory_limit str
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    timeouts CodeEngineFunctionTimeoutsArgs
    codeReference String
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    runtime String
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    codeBinary Boolean
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    codeEngineFunctionId String
    The unique identifier of the code_engine_function.
    codeMain String
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    codeSecret String
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    managedDomainMappings String
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    name String
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    runEnvVariables List<Property Map>
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    scaleConcurrency Number
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    scaleCpuLimit String
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    scaleDownDelay Number
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    scaleMaxExecutionTime Number
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    scaleMemoryLimit String
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CodeEngineFunction resource produces the following output properties:

    ComputedEnvVariables List<CodeEngineFunctionComputedEnvVariable>
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    CreatedAt string
    (String) The timestamp when the resource was created.
    Endpoint string
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    EndpointInternal string
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    EntityTag string
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_function.
    FunctionId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Href string
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    Status string
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    StatusDetails List<CodeEngineFunctionStatusDetail>
    (List) The detailed status of the function. Nested schema for status_details:
    ComputedEnvVariables []CodeEngineFunctionComputedEnvVariable
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    CreatedAt string
    (String) The timestamp when the resource was created.
    Endpoint string
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    EndpointInternal string
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    EntityTag string
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_function.
    FunctionId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Href string
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    Status string
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    StatusDetails []CodeEngineFunctionStatusDetail
    (List) The detailed status of the function. Nested schema for status_details:
    computedEnvVariables List<CodeEngineFunctionComputedEnvVariable>
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    createdAt String
    (String) The timestamp when the resource was created.
    endpoint String
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    endpointInternal String
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    entityTag String
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_function.
    functionId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    href String
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    status String
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    statusDetails List<CodeEngineFunctionStatusDetail>
    (List) The detailed status of the function. Nested schema for status_details:
    computedEnvVariables CodeEngineFunctionComputedEnvVariable[]
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    createdAt string
    (String) The timestamp when the resource was created.
    endpoint string
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    endpointInternal string
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    entityTag string
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag string
    ETag identifier for code_engine_function.
    functionId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    href string
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType string
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    status string
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    statusDetails CodeEngineFunctionStatusDetail[]
    (List) The detailed status of the function. Nested schema for status_details:
    computed_env_variables Sequence[CodeEngineFunctionComputedEnvVariable]
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    created_at str
    (String) The timestamp when the resource was created.
    endpoint str
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    endpoint_internal str
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    entity_tag str
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag str
    ETag identifier for code_engine_function.
    function_id str
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    href str
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resource_type str
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    status str
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    status_details Sequence[CodeEngineFunctionStatusDetail]
    (List) The detailed status of the function. Nested schema for status_details:
    computedEnvVariables List<Property Map>
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    createdAt String
    (String) The timestamp when the resource was created.
    endpoint String
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    endpointInternal String
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    entityTag String
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_function.
    functionId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    href String
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    status String
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    statusDetails List<Property Map>
    (List) The detailed status of the function. Nested schema for status_details:

    Look up Existing CodeEngineFunction Resource

    Get an existing CodeEngineFunction resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CodeEngineFunctionState, opts?: CustomResourceOptions): CodeEngineFunction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            code_binary: Optional[bool] = None,
            code_engine_function_id: Optional[str] = None,
            code_main: Optional[str] = None,
            code_reference: Optional[str] = None,
            code_secret: Optional[str] = None,
            computed_env_variables: Optional[Sequence[CodeEngineFunctionComputedEnvVariableArgs]] = None,
            created_at: Optional[str] = None,
            endpoint: Optional[str] = None,
            endpoint_internal: Optional[str] = None,
            entity_tag: Optional[str] = None,
            etag: Optional[str] = None,
            function_id: Optional[str] = None,
            href: Optional[str] = None,
            managed_domain_mappings: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            resource_type: Optional[str] = None,
            run_env_variables: Optional[Sequence[CodeEngineFunctionRunEnvVariableArgs]] = None,
            runtime: Optional[str] = None,
            scale_concurrency: Optional[float] = None,
            scale_cpu_limit: Optional[str] = None,
            scale_down_delay: Optional[float] = None,
            scale_max_execution_time: Optional[float] = None,
            scale_memory_limit: Optional[str] = None,
            status: Optional[str] = None,
            status_details: Optional[Sequence[CodeEngineFunctionStatusDetailArgs]] = None,
            timeouts: Optional[CodeEngineFunctionTimeoutsArgs] = None) -> CodeEngineFunction
    func GetCodeEngineFunction(ctx *Context, name string, id IDInput, state *CodeEngineFunctionState, opts ...ResourceOption) (*CodeEngineFunction, error)
    public static CodeEngineFunction Get(string name, Input<string> id, CodeEngineFunctionState? state, CustomResourceOptions? opts = null)
    public static CodeEngineFunction get(String name, Output<String> id, CodeEngineFunctionState state, CustomResourceOptions options)
    resources:  _:    type: ibm:CodeEngineFunction    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CodeBinary bool
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    CodeEngineFunctionId string
    The unique identifier of the code_engine_function.
    CodeMain string
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    CodeReference string
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    CodeSecret string
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ComputedEnvVariables List<CodeEngineFunctionComputedEnvVariable>
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    CreatedAt string
    (String) The timestamp when the resource was created.
    Endpoint string
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    EndpointInternal string
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    EntityTag string
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_function.
    FunctionId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Href string
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    ManagedDomainMappings string
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    Name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    RunEnvVariables List<CodeEngineFunctionRunEnvVariable>
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    Runtime string
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    ScaleConcurrency double
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    ScaleCpuLimit string
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    ScaleDownDelay double
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    ScaleMaxExecutionTime double
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    ScaleMemoryLimit string
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    Status string
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    StatusDetails List<CodeEngineFunctionStatusDetail>
    (List) The detailed status of the function. Nested schema for status_details:
    Timeouts CodeEngineFunctionTimeouts
    CodeBinary bool
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    CodeEngineFunctionId string
    The unique identifier of the code_engine_function.
    CodeMain string
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    CodeReference string
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    CodeSecret string
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ComputedEnvVariables []CodeEngineFunctionComputedEnvVariableArgs
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    CreatedAt string
    (String) The timestamp when the resource was created.
    Endpoint string
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    EndpointInternal string
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    EntityTag string
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_function.
    FunctionId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Href string
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    ManagedDomainMappings string
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    Name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    RunEnvVariables []CodeEngineFunctionRunEnvVariableArgs
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    Runtime string
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    ScaleConcurrency float64
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    ScaleCpuLimit string
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    ScaleDownDelay float64
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    ScaleMaxExecutionTime float64
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    ScaleMemoryLimit string
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    Status string
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    StatusDetails []CodeEngineFunctionStatusDetailArgs
    (List) The detailed status of the function. Nested schema for status_details:
    Timeouts CodeEngineFunctionTimeoutsArgs
    codeBinary Boolean
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    codeEngineFunctionId String
    The unique identifier of the code_engine_function.
    codeMain String
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    codeReference String
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    codeSecret String
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    computedEnvVariables List<CodeEngineFunctionComputedEnvVariable>
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    createdAt String
    (String) The timestamp when the resource was created.
    endpoint String
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    endpointInternal String
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    entityTag String
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_function.
    functionId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    href String
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    managedDomainMappings String
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    name String
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    runEnvVariables List<CodeEngineFunctionRunEnvVariable>
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    runtime String
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    scaleConcurrency Double
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    scaleCpuLimit String
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    scaleDownDelay Double
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    scaleMaxExecutionTime Double
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    scaleMemoryLimit String
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    status String
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    statusDetails List<CodeEngineFunctionStatusDetail>
    (List) The detailed status of the function. Nested schema for status_details:
    timeouts CodeEngineFunctionTimeouts
    codeBinary boolean
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    codeEngineFunctionId string
    The unique identifier of the code_engine_function.
    codeMain string
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    codeReference string
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    codeSecret string
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    computedEnvVariables CodeEngineFunctionComputedEnvVariable[]
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    createdAt string
    (String) The timestamp when the resource was created.
    endpoint string
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    endpointInternal string
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    entityTag string
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag string
    ETag identifier for code_engine_function.
    functionId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    href string
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    managedDomainMappings string
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    projectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType string
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    runEnvVariables CodeEngineFunctionRunEnvVariable[]
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    runtime string
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    scaleConcurrency number
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    scaleCpuLimit string
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    scaleDownDelay number
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    scaleMaxExecutionTime number
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    scaleMemoryLimit string
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    status string
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    statusDetails CodeEngineFunctionStatusDetail[]
    (List) The detailed status of the function. Nested schema for status_details:
    timeouts CodeEngineFunctionTimeouts
    code_binary bool
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    code_engine_function_id str
    The unique identifier of the code_engine_function.
    code_main str
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    code_reference str
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    code_secret str
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    computed_env_variables Sequence[CodeEngineFunctionComputedEnvVariableArgs]
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    created_at str
    (String) The timestamp when the resource was created.
    endpoint str
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    endpoint_internal str
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    entity_tag str
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag str
    ETag identifier for code_engine_function.
    function_id str
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    href str
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    managed_domain_mappings str
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    name str
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    project_id str
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    region str
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resource_type str
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    run_env_variables Sequence[CodeEngineFunctionRunEnvVariableArgs]
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    runtime str
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    scale_concurrency float
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    scale_cpu_limit str
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    scale_down_delay float
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    scale_max_execution_time float
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    scale_memory_limit str
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    status str
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    status_details Sequence[CodeEngineFunctionStatusDetailArgs]
    (List) The detailed status of the function. Nested schema for status_details:
    timeouts CodeEngineFunctionTimeoutsArgs
    codeBinary Boolean
    Specifies whether the code is binary or not. Defaults to false when code_reference is set to a data URL. When code_reference is set to a code bundle URL, this field is always true.
    codeEngineFunctionId String
    The unique identifier of the code_engine_function.
    codeMain String
    Specifies the name of the function that should be invoked.

    • Constraints: The default value is main. The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    codeReference String
    Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

    • Constraints: The maximum length is 1048576 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$|data:([-\\w]+\/[-+\\w.]+)?(;?\\w+=[-\\w]+)*;base64,.*/.
    codeSecret String
    The name of the secret that is used to access the specified code_reference. The secret is used to authenticate with a non-public endpoint that is specified ascode_reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    computedEnvVariables List<Property Map>
    (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for computed_env_variables:
    createdAt String
    (String) The timestamp when the resource was created.
    endpoint String
    (String) URL to invoke the function.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    endpointInternal String
    (String) URL to function that is only visible within the project.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    entityTag String
    (String) The version of the function instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_function.
    functionId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    href String
    (String) When you provision a new function, a relative URL path is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    managedDomainMappings String
    Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

    • Constraints: The default value is local_public. Allowable values are: local, local_private, local_public.
    name String
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the function.

    • Constraints: Allowable values are: function_v2.
    runEnvVariables List<Property Map>
    References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items. Nested schema for run_env_variables:
    runtime String
    The managed runtime used to execute the injected code.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[a-z]*\\-[0-9]*(\\.[0-9]*)?$/.
    scaleConcurrency Number
    Number of parallel requests handled by a single instance, supported only by Node.js, default is 1.

    • Constraints: The default value is 1. The maximum value is 100. The minimum value is 1.
    scaleCpuLimit String
    Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

    • Constraints: The default value is 1. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    scaleDownDelay Number
    Optional amount of time in seconds that delays the scale down behavior for a function.

    • Constraints: The default value is 1. The maximum value is 600. The minimum value is 0.
    scaleMaxExecutionTime Number
    Timeout in secs after which the function is terminated.

    • Constraints: The default value is 60. The maximum value is 120. The minimum value is 1.
    scaleMemoryLimit String
    Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

    • Constraints: The default value is 4G. The maximum length is 10 characters. The minimum length is 0 characters. The value must match regular expression /^([0-9.]+)([eEinumkKMGTPB]*)$/.
    status String
    (String) The current status of the function.

    • Constraints: Allowable values are: offline, deploying, ready, failed.
    statusDetails List<Property Map>
    (List) The detailed status of the function. Nested schema for status_details:
    timeouts Property Map

    Supporting Types

    CodeEngineFunctionComputedEnvVariable, CodeEngineFunctionComputedEnvVariableArgs

    Key string
    (String) The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    Name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    Prefix string
    (String) A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    Reference string
    (String) The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    Type string
    (String) Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/.
    Value string
    (String) The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    Key string
    (String) The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    Name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    Prefix string
    (String) A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    Reference string
    (String) The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    Type string
    (String) Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/.
    Value string
    (String) The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    key String
    (String) The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    name String
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    prefix String
    (String) A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    reference String
    (String) The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    type String
    (String) Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/.
    value String
    (String) The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    key string
    (String) The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    name string
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    prefix string
    (String) A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    reference string
    (String) The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    type string
    (String) Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/.
    value string
    (String) The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    key str
    (String) The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    name str
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    prefix str
    (String) A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    reference str
    (String) The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    type str
    (String) Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/.
    value str
    (String) The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    key String
    (String) The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    name String
    The name of the function.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    prefix String
    (String) A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    reference String
    (String) The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    type String
    (String) Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/.
    value String
    (String) The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.

    CodeEngineFunctionRunEnvVariable, CodeEngineFunctionRunEnvVariableArgs

    Key string
    The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    Name string
    The name of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    Prefix string
    A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    Reference string
    The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    Type string
    Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/. When referencing a secret or configmap, the reference must be specified. When referencing a secret or configmap key, a key must also be specified.
    Value string
    The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    Key string
    The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    Name string
    The name of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    Prefix string
    A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    Reference string
    The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    Type string
    Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/. When referencing a secret or configmap, the reference must be specified. When referencing a secret or configmap key, a key must also be specified.
    Value string
    The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    key String
    The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    name String
    The name of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    prefix String
    A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    reference String
    The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    type String
    Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/. When referencing a secret or configmap, the reference must be specified. When referencing a secret or configmap key, a key must also be specified.
    value String
    The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    key string
    The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    name string
    The name of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    prefix string
    A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    reference string
    The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    type string
    Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/. When referencing a secret or configmap, the reference must be specified. When referencing a secret or configmap key, a key must also be specified.
    value string
    The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    key str
    The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    name str
    The name of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    prefix str
    A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    reference str
    The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    type str
    Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/. When referencing a secret or configmap, the reference must be specified. When referencing a secret or configmap key, a key must also be specified.
    value str
    The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    key String
    The key to reference as environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    name String
    The name of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.
    prefix String
    A prefix that can be added to all keys of a full secret or config map reference.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z_][a-zA-Z0-9_]*$/.
    reference String
    The name of the secret or config map.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    type String
    Specify the type of the environment variable.

    • Constraints: The default value is literal. Allowable values are: literal, config_map_full_reference, secret_full_reference, config_map_key_reference, secret_key_reference. The value must match regular expression /^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/. When referencing a secret or configmap, the reference must be specified. When referencing a secret or configmap key, a key must also be specified.
    value String
    The literal value of the environment variable.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\-._a-zA-Z0-9]+$/.

    CodeEngineFunctionStatusDetail, CodeEngineFunctionStatusDetailArgs

    Reason string
    (String) Provides additional information about the status of the function.

    • Constraints: Allowable values are: offline, deploying_configuring_routes, ready_update_in_progress, deploying, ready_last_update_failed, ready, unknown_reason, no_code_bundle.
    Reason string
    (String) Provides additional information about the status of the function.

    • Constraints: Allowable values are: offline, deploying_configuring_routes, ready_update_in_progress, deploying, ready_last_update_failed, ready, unknown_reason, no_code_bundle.
    reason String
    (String) Provides additional information about the status of the function.

    • Constraints: Allowable values are: offline, deploying_configuring_routes, ready_update_in_progress, deploying, ready_last_update_failed, ready, unknown_reason, no_code_bundle.
    reason string
    (String) Provides additional information about the status of the function.

    • Constraints: Allowable values are: offline, deploying_configuring_routes, ready_update_in_progress, deploying, ready_last_update_failed, ready, unknown_reason, no_code_bundle.
    reason str
    (String) Provides additional information about the status of the function.

    • Constraints: Allowable values are: offline, deploying_configuring_routes, ready_update_in_progress, deploying, ready_last_update_failed, ready, unknown_reason, no_code_bundle.
    reason String
    (String) Provides additional information about the status of the function.

    • Constraints: Allowable values are: offline, deploying_configuring_routes, ready_update_in_progress, deploying, ready_last_update_failed, ready, unknown_reason, no_code_bundle.

    CodeEngineFunctionTimeouts, CodeEngineFunctionTimeoutsArgs

    Create string
    Update string
    Create string
    Update string
    create String
    update String
    create string
    update string
    create str
    update str
    create String
    update String

    Import

    You can import the ibm_code_engine_function resource by using name.

    The name property can be formed from project_id, and name in the following format:

    
    <project_id>/<name>
    
    
    • project_id: A string in the format 15314cc3-85b4-4338-903f-c28cdee6d005. The ID of the project.

    • name: A string in the format my-function. The name of the function.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/codeEngineFunction:CodeEngineFunction code_engine_function <project_id>/<name>
    ```
    
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud