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 |
---|---|
CfsConfig |
getCfsConfig()
Get File system configuration parameter, which is used for the function to mount the file system
|
String |
getClsLogsetId()
Get CLS Logset ID to which the function logs are shipped
|
String |
getClsTopicId()
Get CLS Topic ID to which the function logs are shipped
|
Code |
getCode()
Get Function code.
|
String |
getCodeSource()
Get Code source.
|
DeadLetterConfig |
getDeadLetterConfig()
Get Dead letter queue parameter
|
String |
getDescription()
Get Function description.
|
Environment |
getEnvironment()
Get Function environment variable
|
String |
getFunctionName()
Get Name of the new function.
|
String |
getHandler()
Get Function handler name.
|
Long |
getInitTimeout()
Get Timeout period for function initialization
|
LayerVersionSimple[] |
getLayers()
Get List of layer versions to be associate with the function.
|
Long |
getMemorySize()
Get Memory size available for function during execution.
|
String |
getNamespace()
Get Function namespace
|
PublicNetConfigIn |
getPublicNetConfig()
Get Public network access configuration
|
String |
getRole()
Get Role bound to the function
|
String |
getRuntime()
Get Function runtime environment.
|
Tag[] |
getTags()
Get Tag parameter of the function.
|
Long |
getTimeout()
Get Maximum execution duration of function in seconds.
|
String |
getType()
Get Function type.
|
VpcConfig |
getVpcConfig()
Get Function VPC configuration
|
void |
setCfsConfig(CfsConfig CfsConfig)
Set File system configuration parameter, which is used for the function to mount the file system
|
void |
setClsLogsetId(String ClsLogsetId)
Set CLS Logset ID to which the function logs are shipped
|
void |
setClsTopicId(String ClsTopicId)
Set CLS Topic ID to which the function logs are shipped
|
void |
setCode(Code Code)
Set Function code.
|
void |
setCodeSource(String CodeSource)
Set Code source.
|
void |
setDeadLetterConfig(DeadLetterConfig DeadLetterConfig)
Set Dead letter queue parameter
|
void |
setDescription(String Description)
Set Function description.
|
void |
setEnvironment(Environment Environment)
Set Function environment variable
|
void |
setFunctionName(String FunctionName)
Set Name of the new function.
|
void |
setHandler(String Handler)
Set Function handler name.
|
void |
setInitTimeout(Long InitTimeout)
Set Timeout period for function initialization
|
void |
setLayers(LayerVersionSimple[] Layers)
Set List of layer versions to be associate with the function.
|
void |
setMemorySize(Long MemorySize)
Set Memory size available for function during execution.
|
void |
setNamespace(String Namespace)
Set Function namespace
|
void |
setPublicNetConfig(PublicNetConfigIn PublicNetConfig)
Set Public network access configuration
|
void |
setRole(String Role)
Set Role bound to the function
|
void |
setRuntime(String Runtime)
Set Function runtime environment.
|
void |
setTags(Tag[] Tags)
Set Tag parameter of the function.
|
void |
setTimeout(Long Timeout)
Set Maximum execution duration of function in seconds.
|
void |
setType(String Type)
Set Function type.
|
void |
setVpcConfig(VpcConfig VpcConfig)
Set Function VPC configuration
|
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
- Name of the new function. The name can contain 2 to 60 characters, including English letters, digits, hyphens (-), and underscores (_). The name must start with a letter and cannot end with a hyphen or underscore.public Code getCode()
public void setCode(Code Code)
Code
- Function code. Note: `COS`, `ZipFile`, and `DemoId` cannot be specified at the same time.public String getHandler()
public void setHandler(String Handler)
Handler
- Function handler name. It supports the format of "file name.handler name" where the file name and handler name are separated with a "." (for Java, it is in the format of "package name.class name::handler name"). File and handler names can contain 2–60 letters, digits, underscores, and dashes and must start and end with letterspublic String getDescription()
public void setDescription(String Description)
Description
- Function description. It can contain up to 1,000 characters including letters, digits, spaces, commas (,), periods (.), and Chinese characters.public Long getMemorySize()
public void setMemorySize(Long MemorySize)
MemorySize
- Memory size available for function during execution. Default value: 128 MB. Value range: 64 or 128-3072 MB in increments of 128 MBpublic Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- Maximum execution duration of function in seconds. Value range: 1-900 seconds. Default value: 3 secondspublic Environment getEnvironment()
public void setEnvironment(Environment Environment)
Environment
- Function environment variablepublic String getRuntime()
public void setRuntime(String Runtime)
Runtime
- Function runtime environment. Valid values: Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5, Php7, Go1, Java8, CustomRuntime. Default value: Python2.7public VpcConfig getVpcConfig()
public void setVpcConfig(VpcConfig VpcConfig)
VpcConfig
- Function VPC configurationpublic String getNamespace()
public void setNamespace(String Namespace)
Namespace
- Function namespacepublic String getRole()
public void setRole(String Role)
Role
- Role bound to the functionpublic String getClsLogsetId()
public void setClsLogsetId(String ClsLogsetId)
ClsLogsetId
- CLS Logset ID to which the function logs are shippedpublic String getClsTopicId()
public void setClsTopicId(String ClsTopicId)
ClsTopicId
- CLS Topic ID to which the function logs are shippedpublic String getType()
public void setType(String Type)
Type
- 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.public String getCodeSource()
public void setCodeSource(String CodeSource)
CodeSource
- Code source. Valid values: ZipFile, Cos, Demopublic LayerVersionSimple[] getLayers()
public void setLayers(LayerVersionSimple[] Layers)
Layers
- List of layer versions to be associate with the function. Layers will be overwritten sequentially in the order in the list.public DeadLetterConfig getDeadLetterConfig()
public void setDeadLetterConfig(DeadLetterConfig DeadLetterConfig)
DeadLetterConfig
- Dead letter queue parameterpublic PublicNetConfigIn getPublicNetConfig()
public void setPublicNetConfig(PublicNetConfigIn PublicNetConfig)
PublicNetConfig
- Public network access configurationpublic CfsConfig getCfsConfig()
public void setCfsConfig(CfsConfig CfsConfig)
CfsConfig
- File system configuration parameter, which is used for the function to mount the file systempublic Long getInitTimeout()
public void setInitTimeout(Long InitTimeout)
InitTimeout
- Timeout period for function initializationpublic Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Tag parameter of the function. It is an array of key-value pairs.Copyright © 2021. All rights reserved.