public class CreateFunctionRequest extends AbstractModel
Constructor and Description |
---|
CreateFunctionRequest() |
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, including ZipFile, Cos, Demo, TempCos, and Git.
|
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 Name of the handler, which is in the 'file name.handler name' form.
|
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.
|
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, including ZipFile, Cos, Demo, TempCos, and Git.
|
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 Name of the handler, which is in the 'file name.handler name' form.
|
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 |
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 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: You cannot specify `Cos` and `ZipFile` at the same time.public String getHandler()
public void setHandler(String Handler)
Handler
- Name of the handler, which is in the 'file name.handler name' form. Use periods (.) to separate a file name and function name. The file name and function name must start and end with a letter and can contain 2 to 60 characters, including letters, digits, hyphens (-), and underscores (_).public 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, Golang1 and Java8. 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, including ZipFile, Cos, Demo, TempCos, and Git. This field is required if the source is Git.public 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 systemCopyright © 2020. All rights reserved.