public class CreateFunctionRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateFunctionRequest() | 
| CreateFunctionRequest(CreateFunctionRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAsyncRunEnable()Get 是否开启异步属性,TRUE 为开启,FALSE为关闭 | 
| String | getAutoCreateClsTopic()Get 是否自动创建cls主题,TRUE 为开启,FALSE为关闭 | 
| String | getAutoDeployClsTopicIndex()Get 是否自动创建cls索引,TRUE 为开启,FALSE为关闭 | 
| CfsConfig | getCfsConfig()Get 文件系统配置参数,用于云函数挂载文件系统 | 
| String | getClsLogsetId()Get 函数日志投递到的CLS LogsetID | 
| String | getClsTopicId()Get 函数日志投递到的CLS TopicID | 
| Code | getCode()Get 函数代码. | 
| String | getCodeSource()Get CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一 | 
| DeadLetterConfig | getDeadLetterConfig()Get 死信队列参数 | 
| String | getDescription()Get 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文 | 
| String | getDnsCache()Get 是否开启Dns缓存能力。只支持EVENT函数。默认为FALSE,TRUE 为开启,FALSE为关闭 | 
| Environment | getEnvironment()Get 函数的环境变量 | 
| String | getFunctionName()Get 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60 | 
| String | getHandler()Get 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符 | 
| Long | getInitTimeout()Get 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。 | 
| String | getInstallDependency()Get [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。 | 
| InstanceConcurrencyConfig | getInstanceConcurrencyConfig()Get 单实例多并发配置。只支持Web函数。 | 
| IntranetConfigIn | getIntranetConfig()Get 内网访问配置 | 
| LayerVersionSimple[] | getLayers()Get 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。 | 
| Long | getMemorySize()Get 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯 | 
| String | getNamespace()Get 函数所属命名空间 | 
| ProtocolParams | getProtocolParams()Get HTTP函数配置ProtocolType访问协议,当前协议可配置的参数 | 
| String | getProtocolType()Get HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS | 
| PublicNetConfigIn | getPublicNetConfig()Get 公网访问配置 | 
| String | getRole()Get 函数绑定的角色 | 
| String | getRuntime()Get 函数运行环境,默认Python2.7
目前支持的运行环境:
- Python2.7
- Python3.6
- Python3.7
- Python3.9
- Python3.10
- Nodejs6.10
- Nodejs8.9
- Nodejs10.15
- Nodejs12.16
- Nodejs14.18
- Nodejs16.13
- Nodejs18.15
- Php5.6
- Php7(7.2版本)
- Php7.4
- Php8.0
- Go1
- Java8
- CustomRuntime | 
| Tag[] | getTags()Get 函数 Tag 参数,以键值对数组形式传入 | 
| Long | getTimeout()Get 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒 | 
| String | getTraceEnable()Get 是否开启事件追踪,TRUE 为开启,FALSE为关闭 | 
| String | getType()Get 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP | 
| VpcConfig | getVpcConfig()Get 函数的私有网络配置 | 
| void | setAsyncRunEnable(String AsyncRunEnable)Set 是否开启异步属性,TRUE 为开启,FALSE为关闭 | 
| void | setAutoCreateClsTopic(String AutoCreateClsTopic)Set 是否自动创建cls主题,TRUE 为开启,FALSE为关闭 | 
| void | setAutoDeployClsTopicIndex(String AutoDeployClsTopicIndex)Set 是否自动创建cls索引,TRUE 为开启,FALSE为关闭 | 
| void | setCfsConfig(CfsConfig CfsConfig)Set 文件系统配置参数,用于云函数挂载文件系统 | 
| void | setClsLogsetId(String ClsLogsetId)Set 函数日志投递到的CLS LogsetID | 
| void | setClsTopicId(String ClsTopicId)Set 函数日志投递到的CLS TopicID | 
| void | setCode(Code Code)Set 函数代码. | 
| void | setCodeSource(String CodeSource)Set CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一 | 
| void | setDeadLetterConfig(DeadLetterConfig DeadLetterConfig)Set 死信队列参数 | 
| void | setDescription(String Description)Set 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文 | 
| void | setDnsCache(String DnsCache)Set 是否开启Dns缓存能力。只支持EVENT函数。默认为FALSE,TRUE 为开启,FALSE为关闭 | 
| void | setEnvironment(Environment Environment)Set 函数的环境变量 | 
| void | setFunctionName(String FunctionName)Set 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60 | 
| void | setHandler(String Handler)Set 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符 | 
| void | setInitTimeout(Long InitTimeout)Set 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。 | 
| void | setInstallDependency(String InstallDependency)Set [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。 | 
| void | setInstanceConcurrencyConfig(InstanceConcurrencyConfig InstanceConcurrencyConfig)Set 单实例多并发配置。只支持Web函数。 | 
| void | setIntranetConfig(IntranetConfigIn IntranetConfig)Set 内网访问配置 | 
| void | setLayers(LayerVersionSimple[] Layers)Set 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。 | 
| void | setMemorySize(Long MemorySize)Set 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯 | 
| void | setNamespace(String Namespace)Set 函数所属命名空间 | 
| void | setProtocolParams(ProtocolParams ProtocolParams)Set HTTP函数配置ProtocolType访问协议,当前协议可配置的参数 | 
| void | setProtocolType(String ProtocolType)Set HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS | 
| void | setPublicNetConfig(PublicNetConfigIn PublicNetConfig)Set 公网访问配置 | 
| void | setRole(String Role)Set 函数绑定的角色 | 
| void | setRuntime(String Runtime)Set 函数运行环境,默认Python2.7
目前支持的运行环境:
- Python2.7
- Python3.6
- Python3.7
- Python3.9
- Python3.10
- Nodejs6.10
- Nodejs8.9
- Nodejs10.15
- Nodejs12.16
- Nodejs14.18
- Nodejs16.13
- Nodejs18.15
- Php5.6
- Php7(7.2版本)
- Php7.4
- Php8.0
- Go1
- Java8
- CustomRuntime | 
| void | setTags(Tag[] Tags)Set 函数 Tag 参数,以键值对数组形式传入 | 
| void | setTimeout(Long Timeout)Set 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒 | 
| void | setTraceEnable(String TraceEnable)Set 是否开启事件追踪,TRUE 为开启,FALSE为关闭 | 
| void | setType(String Type)Set 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP | 
| void | setVpcConfig(VpcConfig VpcConfig)Set 函数的私有网络配置 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateFunctionRequest()
public CreateFunctionRequest(CreateFunctionRequest source)
public String getFunctionName()
public void setFunctionName(String FunctionName)
FunctionName - 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60public Code getCode()
public void setCode(Code Code)
Code - 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。public String getHandler()
public void setHandler(String Handler)
Handler - 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符public String getDescription()
public void setDescription(String Description)
Description - 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文public Long getMemorySize()
public void setMemorySize(Long MemorySize)
MemorySize - 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout - 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒public Environment getEnvironment()
public void setEnvironment(Environment Environment)
Environment - 函数的环境变量public String getRuntime()
public void setRuntime(String Runtime)
Runtime - 函数运行环境,默认Python2.7
目前支持的运行环境:
- Python2.7
- Python3.6
- Python3.7
- Python3.9
- Python3.10
- Nodejs6.10
- Nodejs8.9
- Nodejs10.15
- Nodejs12.16
- Nodejs14.18
- Nodejs16.13
- Nodejs18.15
- Php5.6
- Php7(7.2版本)
- Php7.4
- Php8.0
- Go1
- Java8
- CustomRuntimepublic VpcConfig getVpcConfig()
public void setVpcConfig(VpcConfig VpcConfig)
VpcConfig - 函数的私有网络配置public String getNamespace()
public void setNamespace(String Namespace)
Namespace - 函数所属命名空间public String getRole()
public void setRole(String Role)
Role - 函数绑定的角色public String getInstallDependency()
public void setInstallDependency(String InstallDependency)
InstallDependency - [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。public String getClsLogsetId()
public void setClsLogsetId(String ClsLogsetId)
ClsLogsetId - 函数日志投递到的CLS LogsetIDpublic String getClsTopicId()
public void setClsTopicId(String ClsTopicId)
ClsTopicId - 函数日志投递到的CLS TopicIDpublic String getType()
public void setType(String Type)
Type - 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTPpublic String getCodeSource()
public void setCodeSource(String CodeSource)
CodeSource - CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一public LayerVersionSimple[] getLayers()
public void setLayers(LayerVersionSimple[] Layers)
Layers - 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。public DeadLetterConfig getDeadLetterConfig()
public void setDeadLetterConfig(DeadLetterConfig DeadLetterConfig)
DeadLetterConfig - 死信队列参数public PublicNetConfigIn getPublicNetConfig()
public void setPublicNetConfig(PublicNetConfigIn PublicNetConfig)
PublicNetConfig - 公网访问配置public CfsConfig getCfsConfig()
public void setCfsConfig(CfsConfig CfsConfig)
CfsConfig - 文件系统配置参数,用于云函数挂载文件系统public Long getInitTimeout()
public void setInitTimeout(Long InitTimeout)
InitTimeout - 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - 函数 Tag 参数,以键值对数组形式传入public String getAsyncRunEnable()
public void setAsyncRunEnable(String AsyncRunEnable)
AsyncRunEnable - 是否开启异步属性,TRUE 为开启,FALSE为关闭public String getTraceEnable()
public void setTraceEnable(String TraceEnable)
TraceEnable - 是否开启事件追踪,TRUE 为开启,FALSE为关闭public String getAutoDeployClsTopicIndex()
public void setAutoDeployClsTopicIndex(String AutoDeployClsTopicIndex)
AutoDeployClsTopicIndex - 是否自动创建cls索引,TRUE 为开启,FALSE为关闭public String getAutoCreateClsTopic()
public void setAutoCreateClsTopic(String AutoCreateClsTopic)
AutoCreateClsTopic - 是否自动创建cls主题,TRUE 为开启,FALSE为关闭public String getProtocolType()
public void setProtocolType(String ProtocolType)
ProtocolType - HTTP函数支持的访问协议。当前支持WebSockets协议,值为WSpublic ProtocolParams getProtocolParams()
public void setProtocolParams(ProtocolParams ProtocolParams)
ProtocolParams - HTTP函数配置ProtocolType访问协议,当前协议可配置的参数public InstanceConcurrencyConfig getInstanceConcurrencyConfig()
public void setInstanceConcurrencyConfig(InstanceConcurrencyConfig InstanceConcurrencyConfig)
InstanceConcurrencyConfig - 单实例多并发配置。只支持Web函数。public String getDnsCache()
public void setDnsCache(String DnsCache)
DnsCache - 是否开启Dns缓存能力。只支持EVENT函数。默认为FALSE,TRUE 为开启,FALSE为关闭public IntranetConfigIn getIntranetConfig()
public void setIntranetConfig(IntranetConfigIn IntranetConfig)
IntranetConfig - 内网访问配置Copyright © 2025. All rights reserved.