1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ScfFunction
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.ScfFunction

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provide a resource to create a SCF function.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.ScfFunction("foo", {
        cosBucketName: "scf-code-1234567890",
        cosBucketRegion: "ap-guangzhou",
        cosObjectName: "code.zip",
        handler: "main.do_it",
        runtime: "Python3.6",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.ScfFunction("foo",
        cos_bucket_name="scf-code-1234567890",
        cos_bucket_region="ap-guangzhou",
        cos_object_name="code.zip",
        handler="main.do_it",
        runtime="Python3.6")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewScfFunction(ctx, "foo", &tencentcloud.ScfFunctionArgs{
    			CosBucketName:   pulumi.String("scf-code-1234567890"),
    			CosBucketRegion: pulumi.String("ap-guangzhou"),
    			CosObjectName:   pulumi.String("code.zip"),
    			Handler:         pulumi.String("main.do_it"),
    			Runtime:         pulumi.String("Python3.6"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.ScfFunction("foo", new()
        {
            CosBucketName = "scf-code-1234567890",
            CosBucketRegion = "ap-guangzhou",
            CosObjectName = "code.zip",
            Handler = "main.do_it",
            Runtime = "Python3.6",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ScfFunction;
    import com.pulumi.tencentcloud.ScfFunctionArgs;
    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 foo = new ScfFunction("foo", ScfFunctionArgs.builder()
                .cosBucketName("scf-code-1234567890")
                .cosBucketRegion("ap-guangzhou")
                .cosObjectName("code.zip")
                .handler("main.do_it")
                .runtime("Python3.6")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:ScfFunction
        properties:
          cosBucketName: scf-code-1234567890
          cosBucketRegion: ap-guangzhou
          cosObjectName: code.zip
          handler: main.do_it
          runtime: Python3.6
    

    Using Zip file

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.ScfFunction("foo", {
        dnsCache: true,
        enablePublicNet: true,
        handler: "first.do_it_first",
        intranetConfig: {
            ipFixed: "ENABLE",
        },
        runtime: "Python3.6",
        subnetId: "subnet-ljyn7h30",
        tags: {
            env: "test",
        },
        vpcId: "vpc-391sv4w3",
        zipFile: "/scf/first.zip",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.ScfFunction("foo",
        dns_cache=True,
        enable_public_net=True,
        handler="first.do_it_first",
        intranet_config={
            "ip_fixed": "ENABLE",
        },
        runtime="Python3.6",
        subnet_id="subnet-ljyn7h30",
        tags={
            "env": "test",
        },
        vpc_id="vpc-391sv4w3",
        zip_file="/scf/first.zip")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewScfFunction(ctx, "foo", &tencentcloud.ScfFunctionArgs{
    			DnsCache:        pulumi.Bool(true),
    			EnablePublicNet: pulumi.Bool(true),
    			Handler:         pulumi.String("first.do_it_first"),
    			IntranetConfig: &tencentcloud.ScfFunctionIntranetConfigArgs{
    				IpFixed: pulumi.String("ENABLE"),
    			},
    			Runtime:  pulumi.String("Python3.6"),
    			SubnetId: pulumi.String("subnet-ljyn7h30"),
    			Tags: pulumi.StringMap{
    				"env": pulumi.String("test"),
    			},
    			VpcId:   pulumi.String("vpc-391sv4w3"),
    			ZipFile: pulumi.String("/scf/first.zip"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.ScfFunction("foo", new()
        {
            DnsCache = true,
            EnablePublicNet = true,
            Handler = "first.do_it_first",
            IntranetConfig = new Tencentcloud.Inputs.ScfFunctionIntranetConfigArgs
            {
                IpFixed = "ENABLE",
            },
            Runtime = "Python3.6",
            SubnetId = "subnet-ljyn7h30",
            Tags = 
            {
                { "env", "test" },
            },
            VpcId = "vpc-391sv4w3",
            ZipFile = "/scf/first.zip",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ScfFunction;
    import com.pulumi.tencentcloud.ScfFunctionArgs;
    import com.pulumi.tencentcloud.inputs.ScfFunctionIntranetConfigArgs;
    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 foo = new ScfFunction("foo", ScfFunctionArgs.builder()
                .dnsCache(true)
                .enablePublicNet(true)
                .handler("first.do_it_first")
                .intranetConfig(ScfFunctionIntranetConfigArgs.builder()
                    .ipFixed("ENABLE")
                    .build())
                .runtime("Python3.6")
                .subnetId("subnet-ljyn7h30")
                .tags(Map.of("env", "test"))
                .vpcId("vpc-391sv4w3")
                .zipFile("/scf/first.zip")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:ScfFunction
        properties:
          dnsCache: true
          enablePublicNet: true
          handler: first.do_it_first
          intranetConfig:
            ipFixed: ENABLE
          runtime: Python3.6
          subnetId: subnet-ljyn7h30
          tags:
            env: test
          vpcId: vpc-391sv4w3
          zipFile: /scf/first.zip
    

    Using CFS config

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.ScfFunction("foo", {
        cfsConfigs: [{
            cfsId: "cfs-xxxxxxxx",
            localMountDir: "/mnt",
            mountInsId: "cfs-xxxxxxxx",
            remoteMountDir: "/",
            userGroupId: "10000",
            userId: "10000",
        }],
        handler: "main.do_it",
        runtime: "Python3.6",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.ScfFunction("foo",
        cfs_configs=[{
            "cfs_id": "cfs-xxxxxxxx",
            "local_mount_dir": "/mnt",
            "mount_ins_id": "cfs-xxxxxxxx",
            "remote_mount_dir": "/",
            "user_group_id": "10000",
            "user_id": "10000",
        }],
        handler="main.do_it",
        runtime="Python3.6")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewScfFunction(ctx, "foo", &tencentcloud.ScfFunctionArgs{
    			CfsConfigs: tencentcloud.ScfFunctionCfsConfigArray{
    				&tencentcloud.ScfFunctionCfsConfigArgs{
    					CfsId:          pulumi.String("cfs-xxxxxxxx"),
    					LocalMountDir:  pulumi.String("/mnt"),
    					MountInsId:     pulumi.String("cfs-xxxxxxxx"),
    					RemoteMountDir: pulumi.String("/"),
    					UserGroupId:    pulumi.String("10000"),
    					UserId:         pulumi.String("10000"),
    				},
    			},
    			Handler: pulumi.String("main.do_it"),
    			Runtime: pulumi.String("Python3.6"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.ScfFunction("foo", new()
        {
            CfsConfigs = new[]
            {
                new Tencentcloud.Inputs.ScfFunctionCfsConfigArgs
                {
                    CfsId = "cfs-xxxxxxxx",
                    LocalMountDir = "/mnt",
                    MountInsId = "cfs-xxxxxxxx",
                    RemoteMountDir = "/",
                    UserGroupId = "10000",
                    UserId = "10000",
                },
            },
            Handler = "main.do_it",
            Runtime = "Python3.6",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ScfFunction;
    import com.pulumi.tencentcloud.ScfFunctionArgs;
    import com.pulumi.tencentcloud.inputs.ScfFunctionCfsConfigArgs;
    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 foo = new ScfFunction("foo", ScfFunctionArgs.builder()
                .cfsConfigs(ScfFunctionCfsConfigArgs.builder()
                    .cfsId("cfs-xxxxxxxx")
                    .localMountDir("/mnt")
                    .mountInsId("cfs-xxxxxxxx")
                    .remoteMountDir("/")
                    .userGroupId("10000")
                    .userId("10000")
                    .build())
                .handler("main.do_it")
                .runtime("Python3.6")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:ScfFunction
        properties:
          cfsConfigs:
            - cfsId: cfs-xxxxxxxx
              localMountDir: /mnt
              mountInsId: cfs-xxxxxxxx
              remoteMountDir: /
              userGroupId: '10000'
              userId: '10000'
          handler: main.do_it
          runtime: Python3.6
    

    Using triggers

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.ScfFunction("foo", {
        handler: "first.do_it_first",
        runtime: "Python3.6",
        enablePublicNet: true,
        zipFile: "/scf/first.zip",
        triggers: [
            {
                name: "tf-test-fn-trigger",
                type: "timer",
                triggerDesc: "*/5 * * * * * *",
            },
            {
                name: "scf-bucket-1308919341.cos.ap-guangzhou.myqcloud.com",
                cosRegion: "ap-guangzhou",
                type: "cos",
                triggerDesc: "{\"event\":\"cos:ObjectCreated:Put\",\"filter\":{\"Prefix\":\"\",\"Suffix\":\"\"}}",
            },
            {
                name: "tf-test-fn-trigger",
                type: "http",
                triggerDesc: JSON.stringify({
                    AuthType: "NONE",
                    NetConfig: {
                        EnableIntranet: true,
                        EnableExtranet: false,
                    },
                }),
            },
        ],
    });
    
    import pulumi
    import json
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.ScfFunction("foo",
        handler="first.do_it_first",
        runtime="Python3.6",
        enable_public_net=True,
        zip_file="/scf/first.zip",
        triggers=[
            {
                "name": "tf-test-fn-trigger",
                "type": "timer",
                "trigger_desc": "*/5 * * * * * *",
            },
            {
                "name": "scf-bucket-1308919341.cos.ap-guangzhou.myqcloud.com",
                "cos_region": "ap-guangzhou",
                "type": "cos",
                "trigger_desc": "{\"event\":\"cos:ObjectCreated:Put\",\"filter\":{\"Prefix\":\"\",\"Suffix\":\"\"}}",
            },
            {
                "name": "tf-test-fn-trigger",
                "type": "http",
                "trigger_desc": json.dumps({
                    "AuthType": "NONE",
                    "NetConfig": {
                        "EnableIntranet": True,
                        "EnableExtranet": False,
                    },
                }),
            },
        ])
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"AuthType": "NONE",
    			"NetConfig": map[string]interface{}{
    				"EnableIntranet": true,
    				"EnableExtranet": false,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = tencentcloud.NewScfFunction(ctx, "foo", &tencentcloud.ScfFunctionArgs{
    			Handler:         pulumi.String("first.do_it_first"),
    			Runtime:         pulumi.String("Python3.6"),
    			EnablePublicNet: pulumi.Bool(true),
    			ZipFile:         pulumi.String("/scf/first.zip"),
    			Triggers: tencentcloud.ScfFunctionTriggerArray{
    				&tencentcloud.ScfFunctionTriggerArgs{
    					Name:        pulumi.String("tf-test-fn-trigger"),
    					Type:        pulumi.String("timer"),
    					TriggerDesc: pulumi.String("*/5 * * * * * *"),
    				},
    				&tencentcloud.ScfFunctionTriggerArgs{
    					Name:        pulumi.String("scf-bucket-1308919341.cos.ap-guangzhou.myqcloud.com"),
    					CosRegion:   pulumi.String("ap-guangzhou"),
    					Type:        pulumi.String("cos"),
    					TriggerDesc: pulumi.String("{\"event\":\"cos:ObjectCreated:Put\",\"filter\":{\"Prefix\":\"\",\"Suffix\":\"\"}}"),
    				},
    				&tencentcloud.ScfFunctionTriggerArgs{
    					Name:        pulumi.String("tf-test-fn-trigger"),
    					Type:        pulumi.String("http"),
    					TriggerDesc: pulumi.String(json0),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.ScfFunction("foo", new()
        {
            Handler = "first.do_it_first",
            Runtime = "Python3.6",
            EnablePublicNet = true,
            ZipFile = "/scf/first.zip",
            Triggers = new[]
            {
                new Tencentcloud.Inputs.ScfFunctionTriggerArgs
                {
                    Name = "tf-test-fn-trigger",
                    Type = "timer",
                    TriggerDesc = "*/5 * * * * * *",
                },
                new Tencentcloud.Inputs.ScfFunctionTriggerArgs
                {
                    Name = "scf-bucket-1308919341.cos.ap-guangzhou.myqcloud.com",
                    CosRegion = "ap-guangzhou",
                    Type = "cos",
                    TriggerDesc = "{\"event\":\"cos:ObjectCreated:Put\",\"filter\":{\"Prefix\":\"\",\"Suffix\":\"\"}}",
                },
                new Tencentcloud.Inputs.ScfFunctionTriggerArgs
                {
                    Name = "tf-test-fn-trigger",
                    Type = "http",
                    TriggerDesc = JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["AuthType"] = "NONE",
                        ["NetConfig"] = new Dictionary<string, object?>
                        {
                            ["EnableIntranet"] = true,
                            ["EnableExtranet"] = false,
                        },
                    }),
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ScfFunction;
    import com.pulumi.tencentcloud.ScfFunctionArgs;
    import com.pulumi.tencentcloud.inputs.ScfFunctionTriggerArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 foo = new ScfFunction("foo", ScfFunctionArgs.builder()
                .handler("first.do_it_first")
                .runtime("Python3.6")
                .enablePublicNet(true)
                .zipFile("/scf/first.zip")
                .triggers(            
                    ScfFunctionTriggerArgs.builder()
                        .name("tf-test-fn-trigger")
                        .type("timer")
                        .triggerDesc("*/5 * * * * * *")
                        .build(),
                    ScfFunctionTriggerArgs.builder()
                        .name("scf-bucket-1308919341.cos.ap-guangzhou.myqcloud.com")
                        .cosRegion("ap-guangzhou")
                        .type("cos")
                        .triggerDesc("{\"event\":\"cos:ObjectCreated:Put\",\"filter\":{\"Prefix\":\"\",\"Suffix\":\"\"}}")
                        .build(),
                    ScfFunctionTriggerArgs.builder()
                        .name("tf-test-fn-trigger")
                        .type("http")
                        .triggerDesc(serializeJson(
                            jsonObject(
                                jsonProperty("AuthType", "NONE"),
                                jsonProperty("NetConfig", jsonObject(
                                    jsonProperty("EnableIntranet", true),
                                    jsonProperty("EnableExtranet", false)
                                ))
                            )))
                        .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:ScfFunction
        properties:
          handler: first.do_it_first
          runtime: Python3.6
          enablePublicNet: true
          zipFile: /scf/first.zip
          triggers:
            - name: tf-test-fn-trigger
              type: timer
              triggerDesc: '*/5 * * * * * *'
            - name: scf-bucket-1308919341.cos.ap-guangzhou.myqcloud.com
              cosRegion: ap-guangzhou
              type: cos
              triggerDesc: '{"event":"cos:ObjectCreated:Put","filter":{"Prefix":"","Suffix":""}}'
            - name: tf-test-fn-trigger
              type: http
              triggerDesc:
                fn::toJSON:
                  AuthType: NONE
                  NetConfig:
                    EnableIntranet: true
                    EnableExtranet: false
    

    Create ScfFunction Resource

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

    Constructor syntax

    new ScfFunction(name: string, args?: ScfFunctionArgs, opts?: CustomResourceOptions);
    @overload
    def ScfFunction(resource_name: str,
                    args: Optional[ScfFunctionArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ScfFunction(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    async_run_enable: Optional[str] = None,
                    cfs_configs: Optional[Sequence[ScfFunctionCfsConfigArgs]] = None,
                    cls_logset_id: Optional[str] = None,
                    cls_topic_id: Optional[str] = None,
                    cos_bucket_name: Optional[str] = None,
                    cos_bucket_region: Optional[str] = None,
                    cos_object_name: Optional[str] = None,
                    description: Optional[str] = None,
                    dns_cache: Optional[bool] = None,
                    enable_eip_config: Optional[bool] = None,
                    enable_public_net: Optional[bool] = None,
                    environment: Optional[Mapping[str, str]] = None,
                    func_type: Optional[str] = None,
                    handler: Optional[str] = None,
                    image_configs: Optional[Sequence[ScfFunctionImageConfigArgs]] = None,
                    intranet_config: Optional[ScfFunctionIntranetConfigArgs] = None,
                    l5_enable: Optional[bool] = None,
                    layers: Optional[Sequence[ScfFunctionLayerArgs]] = None,
                    mem_size: Optional[float] = None,
                    name: Optional[str] = None,
                    namespace: Optional[str] = None,
                    role: Optional[str] = None,
                    runtime: Optional[str] = None,
                    scf_function_id: Optional[str] = None,
                    subnet_id: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    timeout: Optional[float] = None,
                    triggers: Optional[Sequence[ScfFunctionTriggerArgs]] = None,
                    vpc_id: Optional[str] = None,
                    zip_file: Optional[str] = None)
    func NewScfFunction(ctx *Context, name string, args *ScfFunctionArgs, opts ...ResourceOption) (*ScfFunction, error)
    public ScfFunction(string name, ScfFunctionArgs? args = null, CustomResourceOptions? opts = null)
    public ScfFunction(String name, ScfFunctionArgs args)
    public ScfFunction(String name, ScfFunctionArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ScfFunction
    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 ScfFunctionArgs
    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 ScfFunctionArgs
    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 ScfFunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScfFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScfFunctionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ScfFunction 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 ScfFunction resource accepts the following input properties:

    AsyncRunEnable string
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    CfsConfigs List<ScfFunctionCfsConfig>
    List of CFS configurations.
    ClsLogsetId string
    cls logset id of the SCF function.
    ClsTopicId string
    cls topic id of the SCF function.
    CosBucketName string
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    CosBucketRegion string
    Cos bucket region of the SCF function, conflict with zip_file.
    CosObjectName string
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    Description string
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    DnsCache bool
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    EnableEipConfig bool
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    EnablePublicNet bool
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    Environment Dictionary<string, string>
    Environment of the SCF function.
    FuncType string
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    Handler string
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    ImageConfigs List<ScfFunctionImageConfig>
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    IntranetConfig ScfFunctionIntranetConfig
    Intranet access configuration.
    L5Enable bool
    Enable L5 for SCF function, default is false.
    Layers List<ScfFunctionLayer>
    The list of association layers.
    MemSize double
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    Name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    Namespace string
    Namespace of the SCF function, default is default.
    Role string
    Role of the SCF function.
    Runtime string
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    ScfFunctionId string
    ID of the resource.
    SubnetId string
    Subnet ID of the SCF function.
    Tags Dictionary<string, string>
    Tags of the SCF function.
    Timeout double
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    Triggers List<ScfFunctionTrigger>
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    VpcId string
    VPC ID of the SCF function.
    ZipFile string
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    AsyncRunEnable string
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    CfsConfigs []ScfFunctionCfsConfigArgs
    List of CFS configurations.
    ClsLogsetId string
    cls logset id of the SCF function.
    ClsTopicId string
    cls topic id of the SCF function.
    CosBucketName string
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    CosBucketRegion string
    Cos bucket region of the SCF function, conflict with zip_file.
    CosObjectName string
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    Description string
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    DnsCache bool
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    EnableEipConfig bool
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    EnablePublicNet bool
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    Environment map[string]string
    Environment of the SCF function.
    FuncType string
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    Handler string
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    ImageConfigs []ScfFunctionImageConfigArgs
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    IntranetConfig ScfFunctionIntranetConfigArgs
    Intranet access configuration.
    L5Enable bool
    Enable L5 for SCF function, default is false.
    Layers []ScfFunctionLayerArgs
    The list of association layers.
    MemSize float64
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    Name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    Namespace string
    Namespace of the SCF function, default is default.
    Role string
    Role of the SCF function.
    Runtime string
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    ScfFunctionId string
    ID of the resource.
    SubnetId string
    Subnet ID of the SCF function.
    Tags map[string]string
    Tags of the SCF function.
    Timeout float64
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    Triggers []ScfFunctionTriggerArgs
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    VpcId string
    VPC ID of the SCF function.
    ZipFile string
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    asyncRunEnable String
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    cfsConfigs List<ScfFunctionCfsConfig>
    List of CFS configurations.
    clsLogsetId String
    cls logset id of the SCF function.
    clsTopicId String
    cls topic id of the SCF function.
    cosBucketName String
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    cosBucketRegion String
    Cos bucket region of the SCF function, conflict with zip_file.
    cosObjectName String
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    description String
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    dnsCache Boolean
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    enableEipConfig Boolean
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    enablePublicNet Boolean
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    environment Map<String,String>
    Environment of the SCF function.
    funcType String
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    handler String
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    imageConfigs List<ScfFunctionImageConfig>
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    intranetConfig ScfFunctionIntranetConfig
    Intranet access configuration.
    l5Enable Boolean
    Enable L5 for SCF function, default is false.
    layers List<ScfFunctionLayer>
    The list of association layers.
    memSize Double
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    name String
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    namespace String
    Namespace of the SCF function, default is default.
    role String
    Role of the SCF function.
    runtime String
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    scfFunctionId String
    ID of the resource.
    subnetId String
    Subnet ID of the SCF function.
    tags Map<String,String>
    Tags of the SCF function.
    timeout Double
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    triggers List<ScfFunctionTrigger>
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    vpcId String
    VPC ID of the SCF function.
    zipFile String
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    asyncRunEnable string
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    cfsConfigs ScfFunctionCfsConfig[]
    List of CFS configurations.
    clsLogsetId string
    cls logset id of the SCF function.
    clsTopicId string
    cls topic id of the SCF function.
    cosBucketName string
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    cosBucketRegion string
    Cos bucket region of the SCF function, conflict with zip_file.
    cosObjectName string
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    description string
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    dnsCache boolean
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    enableEipConfig boolean
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    enablePublicNet boolean
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    environment {[key: string]: string}
    Environment of the SCF function.
    funcType string
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    handler string
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    imageConfigs ScfFunctionImageConfig[]
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    intranetConfig ScfFunctionIntranetConfig
    Intranet access configuration.
    l5Enable boolean
    Enable L5 for SCF function, default is false.
    layers ScfFunctionLayer[]
    The list of association layers.
    memSize number
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    namespace string
    Namespace of the SCF function, default is default.
    role string
    Role of the SCF function.
    runtime string
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    scfFunctionId string
    ID of the resource.
    subnetId string
    Subnet ID of the SCF function.
    tags {[key: string]: string}
    Tags of the SCF function.
    timeout number
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    triggers ScfFunctionTrigger[]
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    vpcId string
    VPC ID of the SCF function.
    zipFile string
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    async_run_enable str
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    cfs_configs Sequence[ScfFunctionCfsConfigArgs]
    List of CFS configurations.
    cls_logset_id str
    cls logset id of the SCF function.
    cls_topic_id str
    cls topic id of the SCF function.
    cos_bucket_name str
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    cos_bucket_region str
    Cos bucket region of the SCF function, conflict with zip_file.
    cos_object_name str
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    description str
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    dns_cache bool
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    enable_eip_config bool
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    enable_public_net bool
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    environment Mapping[str, str]
    Environment of the SCF function.
    func_type str
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    handler str
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    image_configs Sequence[ScfFunctionImageConfigArgs]
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    intranet_config ScfFunctionIntranetConfigArgs
    Intranet access configuration.
    l5_enable bool
    Enable L5 for SCF function, default is false.
    layers Sequence[ScfFunctionLayerArgs]
    The list of association layers.
    mem_size float
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    name str
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    namespace str
    Namespace of the SCF function, default is default.
    role str
    Role of the SCF function.
    runtime str
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    scf_function_id str
    ID of the resource.
    subnet_id str
    Subnet ID of the SCF function.
    tags Mapping[str, str]
    Tags of the SCF function.
    timeout float
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    triggers Sequence[ScfFunctionTriggerArgs]
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    vpc_id str
    VPC ID of the SCF function.
    zip_file str
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    asyncRunEnable String
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    cfsConfigs List<Property Map>
    List of CFS configurations.
    clsLogsetId String
    cls logset id of the SCF function.
    clsTopicId String
    cls topic id of the SCF function.
    cosBucketName String
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    cosBucketRegion String
    Cos bucket region of the SCF function, conflict with zip_file.
    cosObjectName String
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    description String
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    dnsCache Boolean
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    enableEipConfig Boolean
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    enablePublicNet Boolean
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    environment Map<String>
    Environment of the SCF function.
    funcType String
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    handler String
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    imageConfigs List<Property Map>
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    intranetConfig Property Map
    Intranet access configuration.
    l5Enable Boolean
    Enable L5 for SCF function, default is false.
    layers List<Property Map>
    The list of association layers.
    memSize Number
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    name String
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    namespace String
    Namespace of the SCF function, default is default.
    role String
    Role of the SCF function.
    runtime String
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    scfFunctionId String
    ID of the resource.
    subnetId String
    Subnet ID of the SCF function.
    tags Map<String>
    Tags of the SCF function.
    timeout Number
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    triggers List<Property Map>
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    vpcId String
    VPC ID of the SCF function.
    zipFile String
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.

    Outputs

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

    CodeError string
    SCF function code error message.
    CodeResult string
    SCF function code is correct.
    CodeSize double
    SCF function code size, unit is M.
    EipFixed bool
    Whether EIP is a fixed IP.
    Eips List<string>
    SCF function EIP list.
    ErrNo double
    SCF function code error code.
    FunctionId string
    function ID.
    Host string
    SCF function domain name.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstallDependency bool
    Whether to automatically install dependencies.
    ModifyTime string
    Modify time of SCF function trigger.
    Status string
    SCF function status.
    StatusDesc string
    SCF status description.
    TriggerInfos List<ScfFunctionTriggerInfo>
    SCF trigger details list. Each element contains the following attributes:
    Vip string
    SCF function vip.
    CodeError string
    SCF function code error message.
    CodeResult string
    SCF function code is correct.
    CodeSize float64
    SCF function code size, unit is M.
    EipFixed bool
    Whether EIP is a fixed IP.
    Eips []string
    SCF function EIP list.
    ErrNo float64
    SCF function code error code.
    FunctionId string
    function ID.
    Host string
    SCF function domain name.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstallDependency bool
    Whether to automatically install dependencies.
    ModifyTime string
    Modify time of SCF function trigger.
    Status string
    SCF function status.
    StatusDesc string
    SCF status description.
    TriggerInfos []ScfFunctionTriggerInfo
    SCF trigger details list. Each element contains the following attributes:
    Vip string
    SCF function vip.
    codeError String
    SCF function code error message.
    codeResult String
    SCF function code is correct.
    codeSize Double
    SCF function code size, unit is M.
    eipFixed Boolean
    Whether EIP is a fixed IP.
    eips List<String>
    SCF function EIP list.
    errNo Double
    SCF function code error code.
    functionId String
    function ID.
    host String
    SCF function domain name.
    id String
    The provider-assigned unique ID for this managed resource.
    installDependency Boolean
    Whether to automatically install dependencies.
    modifyTime String
    Modify time of SCF function trigger.
    status String
    SCF function status.
    statusDesc String
    SCF status description.
    triggerInfos List<ScfFunctionTriggerInfo>
    SCF trigger details list. Each element contains the following attributes:
    vip String
    SCF function vip.
    codeError string
    SCF function code error message.
    codeResult string
    SCF function code is correct.
    codeSize number
    SCF function code size, unit is M.
    eipFixed boolean
    Whether EIP is a fixed IP.
    eips string[]
    SCF function EIP list.
    errNo number
    SCF function code error code.
    functionId string
    function ID.
    host string
    SCF function domain name.
    id string
    The provider-assigned unique ID for this managed resource.
    installDependency boolean
    Whether to automatically install dependencies.
    modifyTime string
    Modify time of SCF function trigger.
    status string
    SCF function status.
    statusDesc string
    SCF status description.
    triggerInfos ScfFunctionTriggerInfo[]
    SCF trigger details list. Each element contains the following attributes:
    vip string
    SCF function vip.
    code_error str
    SCF function code error message.
    code_result str
    SCF function code is correct.
    code_size float
    SCF function code size, unit is M.
    eip_fixed bool
    Whether EIP is a fixed IP.
    eips Sequence[str]
    SCF function EIP list.
    err_no float
    SCF function code error code.
    function_id str
    function ID.
    host str
    SCF function domain name.
    id str
    The provider-assigned unique ID for this managed resource.
    install_dependency bool
    Whether to automatically install dependencies.
    modify_time str
    Modify time of SCF function trigger.
    status str
    SCF function status.
    status_desc str
    SCF status description.
    trigger_infos Sequence[ScfFunctionTriggerInfo]
    SCF trigger details list. Each element contains the following attributes:
    vip str
    SCF function vip.
    codeError String
    SCF function code error message.
    codeResult String
    SCF function code is correct.
    codeSize Number
    SCF function code size, unit is M.
    eipFixed Boolean
    Whether EIP is a fixed IP.
    eips List<String>
    SCF function EIP list.
    errNo Number
    SCF function code error code.
    functionId String
    function ID.
    host String
    SCF function domain name.
    id String
    The provider-assigned unique ID for this managed resource.
    installDependency Boolean
    Whether to automatically install dependencies.
    modifyTime String
    Modify time of SCF function trigger.
    status String
    SCF function status.
    statusDesc String
    SCF status description.
    triggerInfos List<Property Map>
    SCF trigger details list. Each element contains the following attributes:
    vip String
    SCF function vip.

    Look up Existing ScfFunction Resource

    Get an existing ScfFunction 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?: ScfFunctionState, opts?: CustomResourceOptions): ScfFunction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            async_run_enable: Optional[str] = None,
            cfs_configs: Optional[Sequence[ScfFunctionCfsConfigArgs]] = None,
            cls_logset_id: Optional[str] = None,
            cls_topic_id: Optional[str] = None,
            code_error: Optional[str] = None,
            code_result: Optional[str] = None,
            code_size: Optional[float] = None,
            cos_bucket_name: Optional[str] = None,
            cos_bucket_region: Optional[str] = None,
            cos_object_name: Optional[str] = None,
            description: Optional[str] = None,
            dns_cache: Optional[bool] = None,
            eip_fixed: Optional[bool] = None,
            eips: Optional[Sequence[str]] = None,
            enable_eip_config: Optional[bool] = None,
            enable_public_net: Optional[bool] = None,
            environment: Optional[Mapping[str, str]] = None,
            err_no: Optional[float] = None,
            func_type: Optional[str] = None,
            function_id: Optional[str] = None,
            handler: Optional[str] = None,
            host: Optional[str] = None,
            image_configs: Optional[Sequence[ScfFunctionImageConfigArgs]] = None,
            install_dependency: Optional[bool] = None,
            intranet_config: Optional[ScfFunctionIntranetConfigArgs] = None,
            l5_enable: Optional[bool] = None,
            layers: Optional[Sequence[ScfFunctionLayerArgs]] = None,
            mem_size: Optional[float] = None,
            modify_time: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            role: Optional[str] = None,
            runtime: Optional[str] = None,
            scf_function_id: Optional[str] = None,
            status: Optional[str] = None,
            status_desc: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeout: Optional[float] = None,
            trigger_infos: Optional[Sequence[ScfFunctionTriggerInfoArgs]] = None,
            triggers: Optional[Sequence[ScfFunctionTriggerArgs]] = None,
            vip: Optional[str] = None,
            vpc_id: Optional[str] = None,
            zip_file: Optional[str] = None) -> ScfFunction
    func GetScfFunction(ctx *Context, name string, id IDInput, state *ScfFunctionState, opts ...ResourceOption) (*ScfFunction, error)
    public static ScfFunction Get(string name, Input<string> id, ScfFunctionState? state, CustomResourceOptions? opts = null)
    public static ScfFunction get(String name, Output<String> id, ScfFunctionState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ScfFunction    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:
    AsyncRunEnable string
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    CfsConfigs List<ScfFunctionCfsConfig>
    List of CFS configurations.
    ClsLogsetId string
    cls logset id of the SCF function.
    ClsTopicId string
    cls topic id of the SCF function.
    CodeError string
    SCF function code error message.
    CodeResult string
    SCF function code is correct.
    CodeSize double
    SCF function code size, unit is M.
    CosBucketName string
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    CosBucketRegion string
    Cos bucket region of the SCF function, conflict with zip_file.
    CosObjectName string
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    Description string
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    DnsCache bool
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    EipFixed bool
    Whether EIP is a fixed IP.
    Eips List<string>
    SCF function EIP list.
    EnableEipConfig bool
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    EnablePublicNet bool
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    Environment Dictionary<string, string>
    Environment of the SCF function.
    ErrNo double
    SCF function code error code.
    FuncType string
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    FunctionId string
    function ID.
    Handler string
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    Host string
    SCF function domain name.
    ImageConfigs List<ScfFunctionImageConfig>
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    InstallDependency bool
    Whether to automatically install dependencies.
    IntranetConfig ScfFunctionIntranetConfig
    Intranet access configuration.
    L5Enable bool
    Enable L5 for SCF function, default is false.
    Layers List<ScfFunctionLayer>
    The list of association layers.
    MemSize double
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    ModifyTime string
    Modify time of SCF function trigger.
    Name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    Namespace string
    Namespace of the SCF function, default is default.
    Role string
    Role of the SCF function.
    Runtime string
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    ScfFunctionId string
    ID of the resource.
    Status string
    SCF function status.
    StatusDesc string
    SCF status description.
    SubnetId string
    Subnet ID of the SCF function.
    Tags Dictionary<string, string>
    Tags of the SCF function.
    Timeout double
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    TriggerInfos List<ScfFunctionTriggerInfo>
    SCF trigger details list. Each element contains the following attributes:
    Triggers List<ScfFunctionTrigger>
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    Vip string
    SCF function vip.
    VpcId string
    VPC ID of the SCF function.
    ZipFile string
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    AsyncRunEnable string
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    CfsConfigs []ScfFunctionCfsConfigArgs
    List of CFS configurations.
    ClsLogsetId string
    cls logset id of the SCF function.
    ClsTopicId string
    cls topic id of the SCF function.
    CodeError string
    SCF function code error message.
    CodeResult string
    SCF function code is correct.
    CodeSize float64
    SCF function code size, unit is M.
    CosBucketName string
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    CosBucketRegion string
    Cos bucket region of the SCF function, conflict with zip_file.
    CosObjectName string
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    Description string
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    DnsCache bool
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    EipFixed bool
    Whether EIP is a fixed IP.
    Eips []string
    SCF function EIP list.
    EnableEipConfig bool
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    EnablePublicNet bool
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    Environment map[string]string
    Environment of the SCF function.
    ErrNo float64
    SCF function code error code.
    FuncType string
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    FunctionId string
    function ID.
    Handler string
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    Host string
    SCF function domain name.
    ImageConfigs []ScfFunctionImageConfigArgs
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    InstallDependency bool
    Whether to automatically install dependencies.
    IntranetConfig ScfFunctionIntranetConfigArgs
    Intranet access configuration.
    L5Enable bool
    Enable L5 for SCF function, default is false.
    Layers []ScfFunctionLayerArgs
    The list of association layers.
    MemSize float64
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    ModifyTime string
    Modify time of SCF function trigger.
    Name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    Namespace string
    Namespace of the SCF function, default is default.
    Role string
    Role of the SCF function.
    Runtime string
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    ScfFunctionId string
    ID of the resource.
    Status string
    SCF function status.
    StatusDesc string
    SCF status description.
    SubnetId string
    Subnet ID of the SCF function.
    Tags map[string]string
    Tags of the SCF function.
    Timeout float64
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    TriggerInfos []ScfFunctionTriggerInfoArgs
    SCF trigger details list. Each element contains the following attributes:
    Triggers []ScfFunctionTriggerArgs
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    Vip string
    SCF function vip.
    VpcId string
    VPC ID of the SCF function.
    ZipFile string
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    asyncRunEnable String
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    cfsConfigs List<ScfFunctionCfsConfig>
    List of CFS configurations.
    clsLogsetId String
    cls logset id of the SCF function.
    clsTopicId String
    cls topic id of the SCF function.
    codeError String
    SCF function code error message.
    codeResult String
    SCF function code is correct.
    codeSize Double
    SCF function code size, unit is M.
    cosBucketName String
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    cosBucketRegion String
    Cos bucket region of the SCF function, conflict with zip_file.
    cosObjectName String
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    description String
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    dnsCache Boolean
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    eipFixed Boolean
    Whether EIP is a fixed IP.
    eips List<String>
    SCF function EIP list.
    enableEipConfig Boolean
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    enablePublicNet Boolean
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    environment Map<String,String>
    Environment of the SCF function.
    errNo Double
    SCF function code error code.
    funcType String
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    functionId String
    function ID.
    handler String
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    host String
    SCF function domain name.
    imageConfigs List<ScfFunctionImageConfig>
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    installDependency Boolean
    Whether to automatically install dependencies.
    intranetConfig ScfFunctionIntranetConfig
    Intranet access configuration.
    l5Enable Boolean
    Enable L5 for SCF function, default is false.
    layers List<ScfFunctionLayer>
    The list of association layers.
    memSize Double
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    modifyTime String
    Modify time of SCF function trigger.
    name String
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    namespace String
    Namespace of the SCF function, default is default.
    role String
    Role of the SCF function.
    runtime String
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    scfFunctionId String
    ID of the resource.
    status String
    SCF function status.
    statusDesc String
    SCF status description.
    subnetId String
    Subnet ID of the SCF function.
    tags Map<String,String>
    Tags of the SCF function.
    timeout Double
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    triggerInfos List<ScfFunctionTriggerInfo>
    SCF trigger details list. Each element contains the following attributes:
    triggers List<ScfFunctionTrigger>
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    vip String
    SCF function vip.
    vpcId String
    VPC ID of the SCF function.
    zipFile String
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    asyncRunEnable string
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    cfsConfigs ScfFunctionCfsConfig[]
    List of CFS configurations.
    clsLogsetId string
    cls logset id of the SCF function.
    clsTopicId string
    cls topic id of the SCF function.
    codeError string
    SCF function code error message.
    codeResult string
    SCF function code is correct.
    codeSize number
    SCF function code size, unit is M.
    cosBucketName string
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    cosBucketRegion string
    Cos bucket region of the SCF function, conflict with zip_file.
    cosObjectName string
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    description string
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    dnsCache boolean
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    eipFixed boolean
    Whether EIP is a fixed IP.
    eips string[]
    SCF function EIP list.
    enableEipConfig boolean
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    enablePublicNet boolean
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    environment {[key: string]: string}
    Environment of the SCF function.
    errNo number
    SCF function code error code.
    funcType string
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    functionId string
    function ID.
    handler string
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    host string
    SCF function domain name.
    imageConfigs ScfFunctionImageConfig[]
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    installDependency boolean
    Whether to automatically install dependencies.
    intranetConfig ScfFunctionIntranetConfig
    Intranet access configuration.
    l5Enable boolean
    Enable L5 for SCF function, default is false.
    layers ScfFunctionLayer[]
    The list of association layers.
    memSize number
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    modifyTime string
    Modify time of SCF function trigger.
    name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    namespace string
    Namespace of the SCF function, default is default.
    role string
    Role of the SCF function.
    runtime string
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    scfFunctionId string
    ID of the resource.
    status string
    SCF function status.
    statusDesc string
    SCF status description.
    subnetId string
    Subnet ID of the SCF function.
    tags {[key: string]: string}
    Tags of the SCF function.
    timeout number
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    triggerInfos ScfFunctionTriggerInfo[]
    SCF trigger details list. Each element contains the following attributes:
    triggers ScfFunctionTrigger[]
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    vip string
    SCF function vip.
    vpcId string
    VPC ID of the SCF function.
    zipFile string
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    async_run_enable str
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    cfs_configs Sequence[ScfFunctionCfsConfigArgs]
    List of CFS configurations.
    cls_logset_id str
    cls logset id of the SCF function.
    cls_topic_id str
    cls topic id of the SCF function.
    code_error str
    SCF function code error message.
    code_result str
    SCF function code is correct.
    code_size float
    SCF function code size, unit is M.
    cos_bucket_name str
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    cos_bucket_region str
    Cos bucket region of the SCF function, conflict with zip_file.
    cos_object_name str
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    description str
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    dns_cache bool
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    eip_fixed bool
    Whether EIP is a fixed IP.
    eips Sequence[str]
    SCF function EIP list.
    enable_eip_config bool
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    enable_public_net bool
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    environment Mapping[str, str]
    Environment of the SCF function.
    err_no float
    SCF function code error code.
    func_type str
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    function_id str
    function ID.
    handler str
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    host str
    SCF function domain name.
    image_configs Sequence[ScfFunctionImageConfigArgs]
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    install_dependency bool
    Whether to automatically install dependencies.
    intranet_config ScfFunctionIntranetConfigArgs
    Intranet access configuration.
    l5_enable bool
    Enable L5 for SCF function, default is false.
    layers Sequence[ScfFunctionLayerArgs]
    The list of association layers.
    mem_size float
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    modify_time str
    Modify time of SCF function trigger.
    name str
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    namespace str
    Namespace of the SCF function, default is default.
    role str
    Role of the SCF function.
    runtime str
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    scf_function_id str
    ID of the resource.
    status str
    SCF function status.
    status_desc str
    SCF status description.
    subnet_id str
    Subnet ID of the SCF function.
    tags Mapping[str, str]
    Tags of the SCF function.
    timeout float
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    trigger_infos Sequence[ScfFunctionTriggerInfoArgs]
    SCF trigger details list. Each element contains the following attributes:
    triggers Sequence[ScfFunctionTriggerArgs]
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    vip str
    SCF function vip.
    vpc_id str
    VPC ID of the SCF function.
    zip_file str
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.
    asyncRunEnable String
    Whether SCF function asynchronous attribute is enabled. TRUE is open, FALSE is close.
    cfsConfigs List<Property Map>
    List of CFS configurations.
    clsLogsetId String
    cls logset id of the SCF function.
    clsTopicId String
    cls topic id of the SCF function.
    codeError String
    SCF function code error message.
    codeResult String
    SCF function code is correct.
    codeSize Number
    SCF function code size, unit is M.
    cosBucketName String
    Cos bucket name of the SCF function, such as cos-1234567890, conflict with zip_file.
    cosBucketRegion String
    Cos bucket region of the SCF function, conflict with zip_file.
    cosObjectName String
    Cos object name of the SCF function, should have suffix .zip or .jar, conflict with zip_file.
    description String
    Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
    dnsCache Boolean
    Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
    eipFixed Boolean
    Whether EIP is a fixed IP.
    eips List<String>
    SCF function EIP list.
    enableEipConfig Boolean
    Indicates whether EIP config set to ENABLE when enable_public_net was true. Default false.
    enablePublicNet Boolean
    Indicates whether public net config enabled. Default false. NOTE: only vpc_id specified can disable public net config.
    environment Map<String>
    Environment of the SCF function.
    errNo Number
    SCF function code error code.
    funcType String
    Function type. The default value is Event. Enter Event if you need to create a trigger function. Enter HTTP if you need to create an HTTP function service.
    functionId String
    function ID.
    handler String
    Handler of the SCF function. The format of name is <filename>.<method_name>, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    host String
    SCF function domain name.
    imageConfigs List<Property Map>
    Image of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region, zip_file.
    installDependency Boolean
    Whether to automatically install dependencies.
    intranetConfig Property Map
    Intranet access configuration.
    l5Enable Boolean
    Enable L5 for SCF function, default is false.
    layers List<Property Map>
    The list of association layers.
    memSize Number
    Memory size of the SCF function, unit is MB. The default is 128MB. The ladder is 128M.
    modifyTime String
    Modify time of SCF function trigger.
    name String
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    namespace String
    Namespace of the SCF function, default is default.
    role String
    Role of the SCF function.
    runtime String
    Runtime of the SCF function, only supports Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5.2, Php7.4, Go1, Java8, and CustomRuntime, default is Python2.7.
    scfFunctionId String
    ID of the resource.
    status String
    SCF function status.
    statusDesc String
    SCF status description.
    subnetId String
    Subnet ID of the SCF function.
    tags Map<String>
    Tags of the SCF function.
    timeout Number
    Timeout of the SCF function, unit is second. Default 3. Available value is 1-900.
    triggerInfos List<Property Map>
    SCF trigger details list. Each element contains the following attributes:
    triggers List<Property Map>
    Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
    vip String
    SCF function vip.
    vpcId String
    VPC ID of the SCF function.
    zipFile String
    Zip file of the SCF function, conflict with cos_bucket_name, cos_object_name, cos_bucket_region.

    Supporting Types

    ScfFunctionCfsConfig, ScfFunctionCfsConfigArgs

    CfsId string
    File system instance ID.
    LocalMountDir string
    Local mount directory.
    MountInsId string
    File system mount instance ID.
    RemoteMountDir string
    Remote mount directory.
    UserGroupId string
    ID of user group.
    UserId string
    ID of user.
    IpAddress string
    (Readonly) File system ip address.
    MountSubnetId string
    (Readonly) File system subnet ID.
    MountVpcId string
    (Readonly) File system virtual private network ID.
    CfsId string
    File system instance ID.
    LocalMountDir string
    Local mount directory.
    MountInsId string
    File system mount instance ID.
    RemoteMountDir string
    Remote mount directory.
    UserGroupId string
    ID of user group.
    UserId string
    ID of user.
    IpAddress string
    (Readonly) File system ip address.
    MountSubnetId string
    (Readonly) File system subnet ID.
    MountVpcId string
    (Readonly) File system virtual private network ID.
    cfsId String
    File system instance ID.
    localMountDir String
    Local mount directory.
    mountInsId String
    File system mount instance ID.
    remoteMountDir String
    Remote mount directory.
    userGroupId String
    ID of user group.
    userId String
    ID of user.
    ipAddress String
    (Readonly) File system ip address.
    mountSubnetId String
    (Readonly) File system subnet ID.
    mountVpcId String
    (Readonly) File system virtual private network ID.
    cfsId string
    File system instance ID.
    localMountDir string
    Local mount directory.
    mountInsId string
    File system mount instance ID.
    remoteMountDir string
    Remote mount directory.
    userGroupId string
    ID of user group.
    userId string
    ID of user.
    ipAddress string
    (Readonly) File system ip address.
    mountSubnetId string
    (Readonly) File system subnet ID.
    mountVpcId string
    (Readonly) File system virtual private network ID.
    cfs_id str
    File system instance ID.
    local_mount_dir str
    Local mount directory.
    mount_ins_id str
    File system mount instance ID.
    remote_mount_dir str
    Remote mount directory.
    user_group_id str
    ID of user group.
    user_id str
    ID of user.
    ip_address str
    (Readonly) File system ip address.
    mount_subnet_id str
    (Readonly) File system subnet ID.
    mount_vpc_id str
    (Readonly) File system virtual private network ID.
    cfsId String
    File system instance ID.
    localMountDir String
    Local mount directory.
    mountInsId String
    File system mount instance ID.
    remoteMountDir String
    Remote mount directory.
    userGroupId String
    ID of user group.
    userId String
    ID of user.
    ipAddress String
    (Readonly) File system ip address.
    mountSubnetId String
    (Readonly) File system subnet ID.
    mountVpcId String
    (Readonly) File system virtual private network ID.

    ScfFunctionImageConfig, ScfFunctionImageConfigArgs

    ImageType string
    The image type. personal or enterprise.
    ImageUri string
    The uri of image.
    Args string
    the parameters of command.
    Command string
    The command of entrypoint.
    ContainerImageAccelerate bool
    Image accelerate switch.
    EntryPoint string
    The entrypoint of app.
    ImagePort double
    Image function port setting. Default is 9000, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535.
    RegistryId string
    The registry id of TCR. When image type is enterprise, it must be set.
    ImageType string
    The image type. personal or enterprise.
    ImageUri string
    The uri of image.
    Args string
    the parameters of command.
    Command string
    The command of entrypoint.
    ContainerImageAccelerate bool
    Image accelerate switch.
    EntryPoint string
    The entrypoint of app.
    ImagePort float64
    Image function port setting. Default is 9000, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535.
    RegistryId string
    The registry id of TCR. When image type is enterprise, it must be set.
    imageType String
    The image type. personal or enterprise.
    imageUri String
    The uri of image.
    args String
    the parameters of command.
    command String
    The command of entrypoint.
    containerImageAccelerate Boolean
    Image accelerate switch.
    entryPoint String
    The entrypoint of app.
    imagePort Double
    Image function port setting. Default is 9000, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535.
    registryId String
    The registry id of TCR. When image type is enterprise, it must be set.
    imageType string
    The image type. personal or enterprise.
    imageUri string
    The uri of image.
    args string
    the parameters of command.
    command string
    The command of entrypoint.
    containerImageAccelerate boolean
    Image accelerate switch.
    entryPoint string
    The entrypoint of app.
    imagePort number
    Image function port setting. Default is 9000, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535.
    registryId string
    The registry id of TCR. When image type is enterprise, it must be set.
    image_type str
    The image type. personal or enterprise.
    image_uri str
    The uri of image.
    args str
    the parameters of command.
    command str
    The command of entrypoint.
    container_image_accelerate bool
    Image accelerate switch.
    entry_point str
    The entrypoint of app.
    image_port float
    Image function port setting. Default is 9000, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535.
    registry_id str
    The registry id of TCR. When image type is enterprise, it must be set.
    imageType String
    The image type. personal or enterprise.
    imageUri String
    The uri of image.
    args String
    the parameters of command.
    command String
    The command of entrypoint.
    containerImageAccelerate Boolean
    Image accelerate switch.
    entryPoint String
    The entrypoint of app.
    imagePort Number
    Image function port setting. Default is 9000, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535.
    registryId String
    The registry id of TCR. When image type is enterprise, it must be set.

    ScfFunctionIntranetConfig, ScfFunctionIntranetConfigArgs

    IpFixed string
    Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
    IpAddresses List<string>
    If fixed intranet IP is enabled, this field returns the IP list used.
    IpFixed string
    Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
    IpAddresses []string
    If fixed intranet IP is enabled, this field returns the IP list used.
    ipFixed String
    Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
    ipAddresses List<String>
    If fixed intranet IP is enabled, this field returns the IP list used.
    ipFixed string
    Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
    ipAddresses string[]
    If fixed intranet IP is enabled, this field returns the IP list used.
    ip_fixed str
    Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
    ip_addresses Sequence[str]
    If fixed intranet IP is enabled, this field returns the IP list used.
    ipFixed String
    Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
    ipAddresses List<String>
    If fixed intranet IP is enabled, this field returns the IP list used.

    ScfFunctionLayer, ScfFunctionLayerArgs

    LayerName string
    The name of Layer.
    LayerVersion double
    The version of layer.
    LayerName string
    The name of Layer.
    LayerVersion float64
    The version of layer.
    layerName String
    The name of Layer.
    layerVersion Double
    The version of layer.
    layerName string
    The name of Layer.
    layerVersion number
    The version of layer.
    layer_name str
    The name of Layer.
    layer_version float
    The version of layer.
    layerName String
    The name of Layer.
    layerVersion Number
    The version of layer.

    ScfFunctionTrigger, ScfFunctionTriggerArgs

    Name string
    Name of the SCF function trigger, if type is ckafka, the format of name must be <ckafkaInstanceId>-<topicId>; if type is cos, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100.
    TriggerDesc string
    TriggerDesc of the SCF function trigger, parameter format of timer is linux cron expression; parameter of cos type is json string {"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}, where bucketUrl is cos bucket (optional), event is the cos event trigger, Prefix is the corresponding file prefix filter condition, Suffix is the suffix filter condition, if not need filter condition can not pass; cmq type does not pass this parameter; ckafka type parameter format is json string {"maxMsgNum":"1","offset":"latest"}; apigw type parameter format is json string {"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}.
    Type string
    Type of the SCF function trigger, support timer, ckafka, custom_kafka, apigw, cmq, cos, mqtt, cls, clb, mps, vod, cm, eb, http.
    CosRegion string
    Region of cos bucket. if type is cos, cos_region is required.
    Name string
    Name of the SCF function trigger, if type is ckafka, the format of name must be <ckafkaInstanceId>-<topicId>; if type is cos, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100.
    TriggerDesc string
    TriggerDesc of the SCF function trigger, parameter format of timer is linux cron expression; parameter of cos type is json string {"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}, where bucketUrl is cos bucket (optional), event is the cos event trigger, Prefix is the corresponding file prefix filter condition, Suffix is the suffix filter condition, if not need filter condition can not pass; cmq type does not pass this parameter; ckafka type parameter format is json string {"maxMsgNum":"1","offset":"latest"}; apigw type parameter format is json string {"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}.
    Type string
    Type of the SCF function trigger, support timer, ckafka, custom_kafka, apigw, cmq, cos, mqtt, cls, clb, mps, vod, cm, eb, http.
    CosRegion string
    Region of cos bucket. if type is cos, cos_region is required.
    name String
    Name of the SCF function trigger, if type is ckafka, the format of name must be <ckafkaInstanceId>-<topicId>; if type is cos, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100.
    triggerDesc String
    TriggerDesc of the SCF function trigger, parameter format of timer is linux cron expression; parameter of cos type is json string {"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}, where bucketUrl is cos bucket (optional), event is the cos event trigger, Prefix is the corresponding file prefix filter condition, Suffix is the suffix filter condition, if not need filter condition can not pass; cmq type does not pass this parameter; ckafka type parameter format is json string {"maxMsgNum":"1","offset":"latest"}; apigw type parameter format is json string {"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}.
    type String
    Type of the SCF function trigger, support timer, ckafka, custom_kafka, apigw, cmq, cos, mqtt, cls, clb, mps, vod, cm, eb, http.
    cosRegion String
    Region of cos bucket. if type is cos, cos_region is required.
    name string
    Name of the SCF function trigger, if type is ckafka, the format of name must be <ckafkaInstanceId>-<topicId>; if type is cos, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100.
    triggerDesc string
    TriggerDesc of the SCF function trigger, parameter format of timer is linux cron expression; parameter of cos type is json string {"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}, where bucketUrl is cos bucket (optional), event is the cos event trigger, Prefix is the corresponding file prefix filter condition, Suffix is the suffix filter condition, if not need filter condition can not pass; cmq type does not pass this parameter; ckafka type parameter format is json string {"maxMsgNum":"1","offset":"latest"}; apigw type parameter format is json string {"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}.
    type string
    Type of the SCF function trigger, support timer, ckafka, custom_kafka, apigw, cmq, cos, mqtt, cls, clb, mps, vod, cm, eb, http.
    cosRegion string
    Region of cos bucket. if type is cos, cos_region is required.
    name str
    Name of the SCF function trigger, if type is ckafka, the format of name must be <ckafkaInstanceId>-<topicId>; if type is cos, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100.
    trigger_desc str
    TriggerDesc of the SCF function trigger, parameter format of timer is linux cron expression; parameter of cos type is json string {"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}, where bucketUrl is cos bucket (optional), event is the cos event trigger, Prefix is the corresponding file prefix filter condition, Suffix is the suffix filter condition, if not need filter condition can not pass; cmq type does not pass this parameter; ckafka type parameter format is json string {"maxMsgNum":"1","offset":"latest"}; apigw type parameter format is json string {"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}.
    type str
    Type of the SCF function trigger, support timer, ckafka, custom_kafka, apigw, cmq, cos, mqtt, cls, clb, mps, vod, cm, eb, http.
    cos_region str
    Region of cos bucket. if type is cos, cos_region is required.
    name String
    Name of the SCF function trigger, if type is ckafka, the format of name must be <ckafkaInstanceId>-<topicId>; if type is cos, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100.
    triggerDesc String
    TriggerDesc of the SCF function trigger, parameter format of timer is linux cron expression; parameter of cos type is json string {"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}, where bucketUrl is cos bucket (optional), event is the cos event trigger, Prefix is the corresponding file prefix filter condition, Suffix is the suffix filter condition, if not need filter condition can not pass; cmq type does not pass this parameter; ckafka type parameter format is json string {"maxMsgNum":"1","offset":"latest"}; apigw type parameter format is json string {"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}.
    type String
    Type of the SCF function trigger, support timer, ckafka, custom_kafka, apigw, cmq, cos, mqtt, cls, clb, mps, vod, cm, eb, http.
    cosRegion String
    Region of cos bucket. if type is cos, cos_region is required.

    ScfFunctionTriggerInfo, ScfFunctionTriggerInfoArgs

    CreateTime string
    Create time of SCF function trigger.
    CustomArgument string
    User-defined parameters of SCF function trigger.
    Enable bool
    Whether SCF function trigger is enable.
    ModifyTime string
    Modify time of SCF function trigger.
    Name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    TriggerDesc string
    TriggerDesc of SCF function trigger.
    Type string
    Type of SCF function trigger.
    CreateTime string
    Create time of SCF function trigger.
    CustomArgument string
    User-defined parameters of SCF function trigger.
    Enable bool
    Whether SCF function trigger is enable.
    ModifyTime string
    Modify time of SCF function trigger.
    Name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    TriggerDesc string
    TriggerDesc of SCF function trigger.
    Type string
    Type of SCF function trigger.
    createTime String
    Create time of SCF function trigger.
    customArgument String
    User-defined parameters of SCF function trigger.
    enable Boolean
    Whether SCF function trigger is enable.
    modifyTime String
    Modify time of SCF function trigger.
    name String
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    triggerDesc String
    TriggerDesc of SCF function trigger.
    type String
    Type of SCF function trigger.
    createTime string
    Create time of SCF function trigger.
    customArgument string
    User-defined parameters of SCF function trigger.
    enable boolean
    Whether SCF function trigger is enable.
    modifyTime string
    Modify time of SCF function trigger.
    name string
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    triggerDesc string
    TriggerDesc of SCF function trigger.
    type string
    Type of SCF function trigger.
    create_time str
    Create time of SCF function trigger.
    custom_argument str
    User-defined parameters of SCF function trigger.
    enable bool
    Whether SCF function trigger is enable.
    modify_time str
    Modify time of SCF function trigger.
    name str
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    trigger_desc str
    TriggerDesc of SCF function trigger.
    type str
    Type of SCF function trigger.
    createTime String
    Create time of SCF function trigger.
    customArgument String
    User-defined parameters of SCF function trigger.
    enable Boolean
    Whether SCF function trigger is enable.
    modifyTime String
    Modify time of SCF function trigger.
    name String
    Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be - or _. Available length is 2-60.
    triggerDesc String
    TriggerDesc of SCF function trigger.
    type String
    Type of SCF function trigger.

    Import

    SCF function can be imported, e.g.

    -> NOTE: function id is <function namespace>+<function name>

    $ pulumi import tencentcloud:index/scfFunction:ScfFunction test default+test
    

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

    Package Details

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