tencentcloud.ScfFunction
Explore with Pulumi AI
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:
- Async
Run stringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - Cfs
Configs List<ScfFunction Cfs Config> - List of CFS configurations.
- Cls
Logset stringId - cls logset id of the SCF function.
- Cls
Topic stringId - cls topic id of the SCF function.
- Cos
Bucket stringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - Cos
Bucket stringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - Cos
Object stringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - Description string
- 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 boolConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - Enable
Public boolNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - Environment Dictionary<string, string>
- Environment of the SCF function.
- Func
Type 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. - Image
Configs List<ScfFunction Image Config> - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - Intranet
Config ScfFunction Intranet Config - Intranet access configuration.
- L5Enable bool
- Enable L5 for SCF function, default is
false
. - Layers
List<Scf
Function Layer> - The list of association layers.
- Mem
Size double - Memory size of the SCF function, unit is MB. The default is
128
MB. 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
, andCustomRuntime
, default isPython2.7
. - Scf
Function stringId - ID of the resource.
- Subnet
Id string - Subnet ID of the SCF function.
- 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<Scf
Function Trigger> - 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 string - VPC ID of the SCF function.
- Zip
File string - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
- Async
Run stringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - Cfs
Configs []ScfFunction Cfs Config Args - List of CFS configurations.
- Cls
Logset stringId - cls logset id of the SCF function.
- Cls
Topic stringId - cls topic id of the SCF function.
- Cos
Bucket stringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - Cos
Bucket stringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - Cos
Object stringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - Description string
- 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 boolConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - Enable
Public boolNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - Environment map[string]string
- Environment of the SCF function.
- Func
Type 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. - Image
Configs []ScfFunction Image Config Args - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - Intranet
Config ScfFunction Intranet Config Args - Intranet access configuration.
- L5Enable bool
- Enable L5 for SCF function, default is
false
. - Layers
[]Scf
Function Layer Args - The list of association layers.
- Mem
Size float64 - Memory size of the SCF function, unit is MB. The default is
128
MB. 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
, andCustomRuntime
, default isPython2.7
. - Scf
Function stringId - ID of the resource.
- Subnet
Id string - Subnet ID of the SCF function.
- 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
[]Scf
Function Trigger Args - 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 string - VPC ID of the SCF function.
- Zip
File string - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
- async
Run StringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - cfs
Configs List<ScfFunction Cfs Config> - List of CFS configurations.
- cls
Logset StringId - cls logset id of the SCF function.
- cls
Topic StringId - cls topic id of the SCF function.
- cos
Bucket StringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - cos
Bucket StringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - cos
Object StringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - description String
- Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
- dns
Cache Boolean - Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
- enable
Eip BooleanConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - enable
Public BooleanNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - environment Map<String,String>
- Environment of the SCF function.
- func
Type 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. - image
Configs List<ScfFunction Image Config> - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - intranet
Config ScfFunction Intranet Config - Intranet access configuration.
- l5Enable Boolean
- Enable L5 for SCF function, default is
false
. - layers
List<Scf
Function Layer> - The list of association layers.
- mem
Size Double - Memory size of the SCF function, unit is MB. The default is
128
MB. 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
, andCustomRuntime
, default isPython2.7
. - scf
Function StringId - ID of the resource.
- subnet
Id String - Subnet ID of the SCF function.
- 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<Scf
Function Trigger> - 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 String - VPC ID of the SCF function.
- zip
File String - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
- async
Run stringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - cfs
Configs ScfFunction Cfs Config[] - List of CFS configurations.
- cls
Logset stringId - cls logset id of the SCF function.
- cls
Topic stringId - cls topic id of the SCF function.
- cos
Bucket stringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - cos
Bucket stringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - cos
Object stringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - description string
- Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
- dns
Cache boolean - Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
- enable
Eip booleanConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - enable
Public booleanNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - environment {[key: string]: string}
- Environment of the SCF function.
- func
Type 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. - image
Configs ScfFunction Image Config[] - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - intranet
Config ScfFunction Intranet Config - Intranet access configuration.
- l5Enable boolean
- Enable L5 for SCF function, default is
false
. - layers
Scf
Function Layer[] - The list of association layers.
- mem
Size number - Memory size of the SCF function, unit is MB. The default is
128
MB. 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
, andCustomRuntime
, default isPython2.7
. - scf
Function stringId - ID of the resource.
- subnet
Id string - Subnet ID of the SCF function.
- {[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
Scf
Function Trigger[] - 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 string - VPC ID of the SCF function.
- zip
File string - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
- async_
run_ strenable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - cfs_
configs Sequence[ScfFunction Cfs Config Args] - List of CFS configurations.
- cls_
logset_ strid - cls logset id of the SCF function.
- cls_
topic_ strid - cls topic id of the SCF function.
- cos_
bucket_ strname - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - cos_
bucket_ strregion - Cos bucket region of the SCF function, conflict with
zip_file
. - cos_
object_ strname - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_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_ boolconfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - enable_
public_ boolnet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_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[ScfFunction Image Config Args] - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - intranet_
config ScfFunction Intranet Config Args - Intranet access configuration.
- l5_
enable bool - Enable L5 for SCF function, default is
false
. - layers
Sequence[Scf
Function Layer Args] - The list of association layers.
- mem_
size float - Memory size of the SCF function, unit is MB. The default is
128
MB. 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
, andCustomRuntime
, default isPython2.7
. - scf_
function_ strid - ID of the resource.
- subnet_
id str - Subnet ID of the SCF function.
- 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[Scf
Function Trigger Args] - 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
.
- async
Run StringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - cfs
Configs List<Property Map> - List of CFS configurations.
- cls
Logset StringId - cls logset id of the SCF function.
- cls
Topic StringId - cls topic id of the SCF function.
- cos
Bucket StringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - cos
Bucket StringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - cos
Object StringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - description String
- Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
- dns
Cache Boolean - Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
- enable
Eip BooleanConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - enable
Public BooleanNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - environment Map<String>
- Environment of the SCF function.
- func
Type 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. - image
Configs List<Property Map> - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - intranet
Config Property Map - Intranet access configuration.
- l5Enable Boolean
- Enable L5 for SCF function, default is
false
. - layers List<Property Map>
- The list of association layers.
- mem
Size Number - Memory size of the SCF function, unit is MB. The default is
128
MB. 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
, andCustomRuntime
, default isPython2.7
. - scf
Function StringId - ID of the resource.
- subnet
Id String - Subnet ID of the SCF function.
- 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:
- vpc
Id String - VPC ID of the SCF function.
- zip
File 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:
- Code
Error string - SCF function code error message.
- Code
Result string - SCF function code is correct.
- Code
Size double - SCF function code size, unit is M.
- Eip
Fixed bool - Whether EIP is a fixed IP.
- Eips List<string>
- SCF function EIP list.
- Err
No double - SCF function code error code.
- Function
Id string - function ID.
- Host string
- SCF function domain name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Install
Dependency bool - Whether to automatically install dependencies.
- Modify
Time string - Modify time of SCF function trigger.
- Status string
- SCF function status.
- Status
Desc string - SCF status description.
- Trigger
Infos List<ScfFunction Trigger Info> - SCF trigger details list. Each element contains the following attributes:
- Vip string
- SCF function vip.
- Code
Error string - SCF function code error message.
- Code
Result string - SCF function code is correct.
- Code
Size float64 - SCF function code size, unit is M.
- Eip
Fixed bool - Whether EIP is a fixed IP.
- Eips []string
- SCF function EIP list.
- Err
No float64 - SCF function code error code.
- Function
Id string - function ID.
- Host string
- SCF function domain name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Install
Dependency bool - Whether to automatically install dependencies.
- Modify
Time string - Modify time of SCF function trigger.
- Status string
- SCF function status.
- Status
Desc string - SCF status description.
- Trigger
Infos []ScfFunction Trigger Info - SCF trigger details list. Each element contains the following attributes:
- Vip string
- SCF function vip.
- code
Error String - SCF function code error message.
- code
Result String - SCF function code is correct.
- code
Size Double - SCF function code size, unit is M.
- eip
Fixed Boolean - Whether EIP is a fixed IP.
- eips List<String>
- SCF function EIP list.
- err
No Double - SCF function code error code.
- function
Id String - function ID.
- host String
- SCF function domain name.
- id String
- The provider-assigned unique ID for this managed resource.
- install
Dependency Boolean - Whether to automatically install dependencies.
- modify
Time String - Modify time of SCF function trigger.
- status String
- SCF function status.
- status
Desc String - SCF status description.
- trigger
Infos List<ScfFunction Trigger Info> - SCF trigger details list. Each element contains the following attributes:
- vip String
- SCF function vip.
- code
Error string - SCF function code error message.
- code
Result string - SCF function code is correct.
- code
Size number - SCF function code size, unit is M.
- eip
Fixed boolean - Whether EIP is a fixed IP.
- eips string[]
- SCF function EIP list.
- err
No number - SCF function code error code.
- function
Id string - function ID.
- host string
- SCF function domain name.
- id string
- The provider-assigned unique ID for this managed resource.
- install
Dependency boolean - Whether to automatically install dependencies.
- modify
Time string - Modify time of SCF function trigger.
- status string
- SCF function status.
- status
Desc string - SCF status description.
- trigger
Infos ScfFunction Trigger Info[] - 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[ScfFunction Trigger Info] - SCF trigger details list. Each element contains the following attributes:
- vip str
- SCF function vip.
- code
Error String - SCF function code error message.
- code
Result String - SCF function code is correct.
- code
Size Number - SCF function code size, unit is M.
- eip
Fixed Boolean - Whether EIP is a fixed IP.
- eips List<String>
- SCF function EIP list.
- err
No Number - SCF function code error code.
- function
Id String - function ID.
- host String
- SCF function domain name.
- id String
- The provider-assigned unique ID for this managed resource.
- install
Dependency Boolean - Whether to automatically install dependencies.
- modify
Time String - Modify time of SCF function trigger.
- status String
- SCF function status.
- status
Desc String - SCF status description.
- trigger
Infos 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.
- Async
Run stringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - Cfs
Configs List<ScfFunction Cfs Config> - List of CFS configurations.
- Cls
Logset stringId - cls logset id of the SCF function.
- Cls
Topic stringId - cls topic id of the SCF function.
- Code
Error string - SCF function code error message.
- Code
Result string - SCF function code is correct.
- Code
Size double - SCF function code size, unit is M.
- Cos
Bucket stringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - Cos
Bucket stringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - Cos
Object stringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - Description string
- 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 List<string>
- SCF function EIP list.
- Enable
Eip boolConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - Enable
Public boolNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - Environment Dictionary<string, string>
- Environment of the SCF function.
- Err
No double - SCF function code error code.
- Func
Type 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.
- Function
Id 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.
- Image
Configs List<ScfFunction Image Config> - 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 ScfFunction Intranet Config - Intranet access configuration.
- L5Enable bool
- Enable L5 for SCF function, default is
false
. - Layers
List<Scf
Function Layer> - The list of association layers.
- Mem
Size double - Memory size of the SCF function, unit is MB. The default is
128
MB. The ladder is 128M. - Modify
Time 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
, andCustomRuntime
, default isPython2.7
. - Scf
Function stringId - ID of the resource.
- Status string
- SCF function status.
- Status
Desc string - SCF status description.
- Subnet
Id string - Subnet ID of the SCF function.
- 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. - Trigger
Infos List<ScfFunction Trigger Info> - SCF trigger details list. Each element contains the following attributes:
- Triggers
List<Scf
Function Trigger> - 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.
- Vpc
Id string - VPC ID of the SCF function.
- Zip
File string - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
- Async
Run stringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - Cfs
Configs []ScfFunction Cfs Config Args - List of CFS configurations.
- Cls
Logset stringId - cls logset id of the SCF function.
- Cls
Topic stringId - cls topic id of the SCF function.
- Code
Error string - SCF function code error message.
- Code
Result string - SCF function code is correct.
- Code
Size float64 - SCF function code size, unit is M.
- Cos
Bucket stringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - Cos
Bucket stringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - Cos
Object stringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - Description string
- 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 []string
- SCF function EIP list.
- Enable
Eip boolConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - Enable
Public boolNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - Environment map[string]string
- Environment of the SCF function.
- Err
No float64 - SCF function code error code.
- Func
Type 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.
- Function
Id 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.
- Image
Configs []ScfFunction Image Config Args - 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 ScfFunction Intranet Config Args - Intranet access configuration.
- L5Enable bool
- Enable L5 for SCF function, default is
false
. - Layers
[]Scf
Function Layer Args - The list of association layers.
- Mem
Size float64 - Memory size of the SCF function, unit is MB. The default is
128
MB. The ladder is 128M. - Modify
Time 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
, andCustomRuntime
, default isPython2.7
. - Scf
Function stringId - ID of the resource.
- Status string
- SCF function status.
- Status
Desc string - SCF status description.
- Subnet
Id string - Subnet ID of the SCF function.
- 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. - Trigger
Infos []ScfFunction Trigger Info Args - SCF trigger details list. Each element contains the following attributes:
- Triggers
[]Scf
Function Trigger Args - 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.
- Vpc
Id string - VPC ID of the SCF function.
- Zip
File string - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
- async
Run StringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - cfs
Configs List<ScfFunction Cfs Config> - List of CFS configurations.
- cls
Logset StringId - cls logset id of the SCF function.
- cls
Topic StringId - cls topic id of the SCF function.
- code
Error String - SCF function code error message.
- code
Result String - SCF function code is correct.
- code
Size Double - SCF function code size, unit is M.
- cos
Bucket StringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - cos
Bucket StringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - cos
Object StringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - description String
- Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
- dns
Cache Boolean - Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
- eip
Fixed Boolean - Whether EIP is a fixed IP.
- eips List<String>
- SCF function EIP list.
- enable
Eip BooleanConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - enable
Public BooleanNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - environment Map<String,String>
- Environment of the SCF function.
- err
No Double - SCF function code error code.
- func
Type 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.
- function
Id 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.
- image
Configs List<ScfFunction Image Config> - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - install
Dependency Boolean - Whether to automatically install dependencies.
- intranet
Config ScfFunction Intranet Config - Intranet access configuration.
- l5Enable Boolean
- Enable L5 for SCF function, default is
false
. - layers
List<Scf
Function Layer> - The list of association layers.
- mem
Size Double - Memory size of the SCF function, unit is MB. The default is
128
MB. The ladder is 128M. - modify
Time 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
, andCustomRuntime
, default isPython2.7
. - scf
Function StringId - ID of the resource.
- status String
- SCF function status.
- status
Desc String - SCF status description.
- subnet
Id String - Subnet ID of the SCF function.
- 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. - trigger
Infos List<ScfFunction Trigger Info> - SCF trigger details list. Each element contains the following attributes:
- triggers
List<Scf
Function Trigger> - 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.
- vpc
Id String - VPC ID of the SCF function.
- zip
File String - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
- async
Run stringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - cfs
Configs ScfFunction Cfs Config[] - List of CFS configurations.
- cls
Logset stringId - cls logset id of the SCF function.
- cls
Topic stringId - cls topic id of the SCF function.
- code
Error string - SCF function code error message.
- code
Result string - SCF function code is correct.
- code
Size number - SCF function code size, unit is M.
- cos
Bucket stringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - cos
Bucket stringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - cos
Object stringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - description string
- Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
- dns
Cache boolean - Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
- eip
Fixed boolean - Whether EIP is a fixed IP.
- eips string[]
- SCF function EIP list.
- enable
Eip booleanConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - enable
Public booleanNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - environment {[key: string]: string}
- Environment of the SCF function.
- err
No number - SCF function code error code.
- func
Type 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.
- function
Id 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.
- image
Configs ScfFunction Image Config[] - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - install
Dependency boolean - Whether to automatically install dependencies.
- intranet
Config ScfFunction Intranet Config - Intranet access configuration.
- l5Enable boolean
- Enable L5 for SCF function, default is
false
. - layers
Scf
Function Layer[] - The list of association layers.
- mem
Size number - Memory size of the SCF function, unit is MB. The default is
128
MB. The ladder is 128M. - modify
Time 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
, andCustomRuntime
, default isPython2.7
. - scf
Function stringId - ID of the resource.
- status string
- SCF function status.
- status
Desc string - SCF status description.
- subnet
Id string - Subnet ID of the SCF function.
- {[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. - trigger
Infos ScfFunction Trigger Info[] - SCF trigger details list. Each element contains the following attributes:
- triggers
Scf
Function Trigger[] - 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.
- vpc
Id string - VPC ID of the SCF function.
- zip
File string - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
- async_
run_ strenable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - cfs_
configs Sequence[ScfFunction Cfs Config Args] - List of CFS configurations.
- cls_
logset_ strid - cls logset id of the SCF function.
- cls_
topic_ strid - 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_ strname - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - cos_
bucket_ strregion - Cos bucket region of the SCF function, conflict with
zip_file
. - cos_
object_ strname - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_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_ boolconfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - enable_
public_ boolnet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_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[ScfFunction Image Config Args] - 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 ScfFunction Intranet Config Args - Intranet access configuration.
- l5_
enable bool - Enable L5 for SCF function, default is
false
. - layers
Sequence[Scf
Function Layer Args] - The list of association layers.
- mem_
size float - Memory size of the SCF function, unit is MB. The default is
128
MB. 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
, andCustomRuntime
, default isPython2.7
. - scf_
function_ strid - ID of the resource.
- status str
- SCF function status.
- status_
desc str - SCF status description.
- subnet_
id str - Subnet ID of the SCF function.
- 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[ScfFunction Trigger Info Args] - SCF trigger details list. Each element contains the following attributes:
- triggers
Sequence[Scf
Function Trigger Args] - 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
.
- async
Run StringEnable - Whether SCF function asynchronous attribute is enabled.
TRUE
is open,FALSE
is close. - cfs
Configs List<Property Map> - List of CFS configurations.
- cls
Logset StringId - cls logset id of the SCF function.
- cls
Topic StringId - cls topic id of the SCF function.
- code
Error String - SCF function code error message.
- code
Result String - SCF function code is correct.
- code
Size Number - SCF function code size, unit is M.
- cos
Bucket StringName - Cos bucket name of the SCF function, such as
cos-1234567890
, conflict withzip_file
. - cos
Bucket StringRegion - Cos bucket region of the SCF function, conflict with
zip_file
. - cos
Object StringName - Cos object name of the SCF function, should have suffix
.zip
or.jar
, conflict withzip_file
. - description String
- Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
- dns
Cache Boolean - Whether to enable Dns caching capability, only the EVENT function is supported. Default is false.
- eip
Fixed Boolean - Whether EIP is a fixed IP.
- eips List<String>
- SCF function EIP list.
- enable
Eip BooleanConfig - Indicates whether EIP config set to
ENABLE
whenenable_public_net
was true. Defaultfalse
. - enable
Public BooleanNet - Indicates whether public net config enabled. Default
false
. NOTE: onlyvpc_id
specified can disable public net config. - environment Map<String>
- Environment of the SCF function.
- err
No Number - SCF function code error code.
- func
Type 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.
- function
Id 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.
- image
Configs List<Property Map> - Image of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
,zip_file
. - install
Dependency Boolean - Whether to automatically install dependencies.
- intranet
Config Property Map - Intranet access configuration.
- l5Enable Boolean
- Enable L5 for SCF function, default is
false
. - layers List<Property Map>
- The list of association layers.
- mem
Size Number - Memory size of the SCF function, unit is MB. The default is
128
MB. The ladder is 128M. - modify
Time 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
, andCustomRuntime
, default isPython2.7
. - scf
Function StringId - ID of the resource.
- status String
- SCF function status.
- status
Desc String - SCF status description.
- subnet
Id String - Subnet ID of the SCF function.
- Map<String>
- Tags of the SCF function.
- timeout Number
- Timeout of the SCF function, unit is second. Default
3
. Available value is 1-900. - trigger
Infos 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.
- vpc
Id String - VPC ID of the SCF function.
- zip
File String - Zip file of the SCF function, conflict with
cos_bucket_name
,cos_object_name
,cos_bucket_region
.
Supporting Types
ScfFunctionCfsConfig, ScfFunctionCfsConfigArgs
- Cfs
Id string - File system instance ID.
- Local
Mount stringDir - Local mount directory.
- Mount
Ins stringId - File system mount instance ID.
- Remote
Mount stringDir - Remote mount directory.
- User
Group stringId - ID of user group.
- User
Id string - ID of user.
- Ip
Address string - (Readonly) File system ip address.
- Mount
Subnet stringId - (Readonly) File system subnet ID.
- Mount
Vpc stringId - (Readonly) File system virtual private network ID.
- Cfs
Id string - File system instance ID.
- Local
Mount stringDir - Local mount directory.
- Mount
Ins stringId - File system mount instance ID.
- Remote
Mount stringDir - Remote mount directory.
- User
Group stringId - ID of user group.
- User
Id string - ID of user.
- Ip
Address string - (Readonly) File system ip address.
- Mount
Subnet stringId - (Readonly) File system subnet ID.
- Mount
Vpc stringId - (Readonly) File system virtual private network ID.
- cfs
Id String - File system instance ID.
- local
Mount StringDir - Local mount directory.
- mount
Ins StringId - File system mount instance ID.
- remote
Mount StringDir - Remote mount directory.
- user
Group StringId - ID of user group.
- user
Id String - ID of user.
- ip
Address String - (Readonly) File system ip address.
- mount
Subnet StringId - (Readonly) File system subnet ID.
- mount
Vpc StringId - (Readonly) File system virtual private network ID.
- cfs
Id string - File system instance ID.
- local
Mount stringDir - Local mount directory.
- mount
Ins stringId - File system mount instance ID.
- remote
Mount stringDir - Remote mount directory.
- user
Group stringId - ID of user group.
- user
Id string - ID of user.
- ip
Address string - (Readonly) File system ip address.
- mount
Subnet stringId - (Readonly) File system subnet ID.
- mount
Vpc stringId - (Readonly) File system virtual private network ID.
- cfs_
id str - File system instance ID.
- local_
mount_ strdir - Local mount directory.
- mount_
ins_ strid - File system mount instance ID.
- remote_
mount_ strdir - Remote mount directory.
- user_
group_ strid - ID of user group.
- user_
id str - ID of user.
- ip_
address str - (Readonly) File system ip address.
- mount_
subnet_ strid - (Readonly) File system subnet ID.
- mount_
vpc_ strid - (Readonly) File system virtual private network ID.
- cfs
Id String - File system instance ID.
- local
Mount StringDir - Local mount directory.
- mount
Ins StringId - File system mount instance ID.
- remote
Mount StringDir - Remote mount directory.
- user
Group StringId - ID of user group.
- user
Id String - ID of user.
- ip
Address String - (Readonly) File system ip address.
- mount
Subnet StringId - (Readonly) File system subnet ID.
- mount
Vpc StringId - (Readonly) File system virtual private network ID.
ScfFunctionImageConfig, ScfFunctionImageConfigArgs
- Image
Type string - The image type. personal or enterprise.
- Image
Uri string - The uri of image.
- Args string
- the parameters of command.
- Command string
- The command of entrypoint.
- Container
Image boolAccelerate - Image accelerate switch.
- Entry
Point string - The entrypoint of app.
- Image
Port double - Image function port setting. Default is
9000
, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535. - Registry
Id string - The registry id of TCR. When image type is enterprise, it must be set.
- Image
Type string - The image type. personal or enterprise.
- Image
Uri string - The uri of image.
- Args string
- the parameters of command.
- Command string
- The command of entrypoint.
- Container
Image boolAccelerate - Image accelerate switch.
- Entry
Point string - The entrypoint of app.
- Image
Port float64 - Image function port setting. Default is
9000
, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535. - Registry
Id string - The registry id of TCR. When image type is enterprise, it must be set.
- image
Type String - The image type. personal or enterprise.
- image
Uri String - The uri of image.
- args String
- the parameters of command.
- command String
- The command of entrypoint.
- container
Image BooleanAccelerate - Image accelerate switch.
- entry
Point String - The entrypoint of app.
- image
Port Double - Image function port setting. Default is
9000
, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535. - registry
Id String - The registry id of TCR. When image type is enterprise, it must be set.
- image
Type string - The image type. personal or enterprise.
- image
Uri string - The uri of image.
- args string
- the parameters of command.
- command string
- The command of entrypoint.
- container
Image booleanAccelerate - Image accelerate switch.
- entry
Point string - The entrypoint of app.
- image
Port number - Image function port setting. Default is
9000
, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535. - registry
Id 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_ boolaccelerate - 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.
- image
Type String - The image type. personal or enterprise.
- image
Uri String - The uri of image.
- args String
- the parameters of command.
- command String
- The command of entrypoint.
- container
Image BooleanAccelerate - Image accelerate switch.
- entry
Point String - The entrypoint of app.
- image
Port Number - Image function port setting. Default is
9000
, -1 indicates no port mirroring function. Other value ranges 0 ~ 65535. - registry
Id String - The registry id of TCR. When image type is enterprise, it must be set.
ScfFunctionIntranetConfig, ScfFunctionIntranetConfigArgs
- Ip
Fixed string - Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
- Ip
Addresses List<string> - If fixed intranet IP is enabled, this field returns the IP list used.
- Ip
Fixed string - Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
- Ip
Addresses []string - If fixed intranet IP is enabled, this field returns the IP list used.
- ip
Fixed String - Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
- ip
Addresses List<String> - If fixed intranet IP is enabled, this field returns the IP list used.
- ip
Fixed string - Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
- ip
Addresses 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.
- ip
Fixed String - Whether to enable fixed intranet IP, ENABLE is enabled, DISABLE is disabled.
- ip
Addresses List<String> - If fixed intranet IP is enabled, this field returns the IP list used.
ScfFunctionLayer, ScfFunctionLayerArgs
- Layer
Name string - The name of Layer.
- Layer
Version double - The version of layer.
- Layer
Name string - The name of Layer.
- Layer
Version float64 - The version of layer.
- layer
Name String - The name of Layer.
- layer
Version Double - The version of layer.
- layer
Name string - The name of Layer.
- layer
Version number - The version of layer.
- layer_
name str - The name of Layer.
- layer_
version float - The version of layer.
- layer
Name String - The name of Layer.
- layer
Version Number - The version of layer.
ScfFunctionTrigger, ScfFunctionTriggerArgs
- Name string
- Name of the SCF function trigger, if
type
isckafka
, the format of name must be<ckafkaInstanceId>-<topicId>
; iftype
iscos
, 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 string - TriggerDesc of the SCF function trigger, parameter format of
timer
is linux cron expression; parameter ofcos
type is json string{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}
, wherebucketUrl
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
. - Cos
Region string - Region of cos bucket. if
type
iscos
,cos_region
is required.
- Name string
- Name of the SCF function trigger, if
type
isckafka
, the format of name must be<ckafkaInstanceId>-<topicId>
; iftype
iscos
, 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 string - TriggerDesc of the SCF function trigger, parameter format of
timer
is linux cron expression; parameter ofcos
type is json string{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}
, wherebucketUrl
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
. - Cos
Region string - Region of cos bucket. if
type
iscos
,cos_region
is required.
- name String
- Name of the SCF function trigger, if
type
isckafka
, the format of name must be<ckafkaInstanceId>-<topicId>
; iftype
iscos
, 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 String - TriggerDesc of the SCF function trigger, parameter format of
timer
is linux cron expression; parameter ofcos
type is json string{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}
, wherebucketUrl
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
. - cos
Region String - Region of cos bucket. if
type
iscos
,cos_region
is required.
- name string
- Name of the SCF function trigger, if
type
isckafka
, the format of name must be<ckafkaInstanceId>-<topicId>
; iftype
iscos
, 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 string - TriggerDesc of the SCF function trigger, parameter format of
timer
is linux cron expression; parameter ofcos
type is json string{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}
, wherebucketUrl
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
. - cos
Region string - Region of cos bucket. if
type
iscos
,cos_region
is required.
- name str
- Name of the SCF function trigger, if
type
isckafka
, the format of name must be<ckafkaInstanceId>-<topicId>
; iftype
iscos
, 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 ofcos
type is json string{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}
, wherebucketUrl
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
iscos
,cos_region
is required.
- name String
- Name of the SCF function trigger, if
type
isckafka
, the format of name must be<ckafkaInstanceId>-<topicId>
; iftype
iscos
, 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 String - TriggerDesc of the SCF function trigger, parameter format of
timer
is linux cron expression; parameter ofcos
type is json string{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}
, wherebucketUrl
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
. - cos
Region String - Region of cos bucket. if
type
iscos
,cos_region
is required.
ScfFunctionTriggerInfo, ScfFunctionTriggerInfoArgs
- Create
Time string - Create time of SCF function trigger.
- Custom
Argument string - User-defined parameters of SCF function trigger.
- Enable bool
- Whether SCF function trigger is enable.
- Modify
Time 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. - Trigger
Desc string - TriggerDesc of SCF function trigger.
- Type string
- Type of SCF function trigger.
- Create
Time string - Create time of SCF function trigger.
- Custom
Argument string - User-defined parameters of SCF function trigger.
- Enable bool
- Whether SCF function trigger is enable.
- Modify
Time 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. - Trigger
Desc string - TriggerDesc of SCF function trigger.
- Type string
- Type of SCF function trigger.
- create
Time String - Create time of SCF function trigger.
- custom
Argument String - User-defined parameters of SCF function trigger.
- enable Boolean
- Whether SCF function trigger is enable.
- modify
Time 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. - trigger
Desc String - TriggerDesc of SCF function trigger.
- type String
- Type of SCF function trigger.
- create
Time string - Create time of SCF function trigger.
- custom
Argument string - User-defined parameters of SCF function trigger.
- enable boolean
- Whether SCF function trigger is enable.
- modify
Time 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. - trigger
Desc 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.
- create
Time String - Create time of SCF function trigger.
- custom
Argument String - User-defined parameters of SCF function trigger.
- enable Boolean
- Whether SCF function trigger is enable.
- modify
Time 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. - trigger
Desc 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.