public class CreateFunctionRequest extends AbstractModel
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为关闭
|
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 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文
|
Environment |
getEnvironment()
Get 函数的环境变量
|
String |
getFunctionName()
Get 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60
|
String |
getHandler()
Get 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符
|
Long |
getInitTimeout()
Get 函数初始化超时时间
|
LayerVersionSimple[] |
getLayers()
Get 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。
|
Long |
getMemorySize()
Get 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯
|
String |
getNamespace()
Get 函数所属命名空间
|
PublicNetConfigIn |
getPublicNetConfig()
Get 公网访问配置
|
String |
getRole()
Get 函数绑定的角色
|
String |
getRuntime()
Get 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5, Php7,Go1,Java8 和 CustomRuntime,默认Python2.7
|
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 |
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 |
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 函数初始化超时时间
|
void |
setLayers(LayerVersionSimple[] Layers)
Set 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。
|
void |
setMemorySize(Long MemorySize)
Set 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯
|
void |
setNamespace(String Namespace)
Set 函数所属命名空间
|
void |
setPublicNetConfig(PublicNetConfigIn PublicNetConfig)
Set 公网访问配置
|
void |
setRole(String Role)
Set 函数绑定的角色
|
void |
setRuntime(String Runtime)
Set 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5, Php7,Go1,Java8 和 CustomRuntime,默认Python2.7
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public 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,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5, Php7,Go1,Java8 和 CustomRuntime,默认Python2.7public 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 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
- 函数初始化超时时间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为关闭Copyright © 2021. All rights reserved.