FunctionProps
Properties for defining a Function
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc3-function
Initializer
using AlibabaCloud.SDK.ROS.CDK.Fc3;
new FunctionProps {
object FunctionName,
object Handler,
object Runtime,
object Code = null,
object Cpu = null,
object CustomContainerConfig = null,
object CustomDns = null,
object CustomRuntimeConfig = null,
object Description = null,
object DiskSize = null,
object EnvironmentVariables = null,
object GpuConfig = null,
object InstanceConcurrency = null,
object InstanceLifecycleConfig = null,
object InternetAccess = null,
object Layers = null,
object LogConfig = null,
object MemorySize = null,
object NasConfig = null,
object OssMountConfig = null,
object Role = null,
object Timeout = null,
object TracingConfig = null,
object VpcConfig = null
};
Properties
Name | Type | Description |
---|---|---|
FunctionName |
object |
Property functionName: The name of the function. |
Handler |
object |
Property handler: The handler of the function. |
Runtime |
object |
Property runtime: The programming language of the function. |
Code |
object |
Property code: Function code ZIP package. |
Cpu |
object |
Property cpu: The CPU size of the function in vCPU as a multiple of 0.05 vCPU. The minimum value is 0.05 and the maximum value is 16. At the same time, the ratio of cpu to memorySize (in GB) should be between 1:1 and 1:4. |
CustomContainerConfig |
object |
Property customContainerConfig: Custom container configuration. |
CustomDns |
object |
Property customDns: Custom DNS configuration. |
CustomRuntimeConfig |
object |
Property customRuntimeConfig: Custom runtime configuration. |
Description |
object |
Property description: Function description. |
DiskSize |
object |
Property diskSize: The disk size of the function, in MB. |
EnvironmentVariables |
object |
Property environmentVariables: The environment variables of the function. |
GpuConfig |
object |
Property gpuConfig: The GPU configuration of the function. |
InstanceConcurrency |
object |
Property instanceConcurrency: The maximum number of concurrent instances of the function. |
InstanceLifecycleConfig |
object |
Property instanceLifecycleConfig: The instance lifecycle configuration of the function. |
InternetAccess |
object |
Property internetAccess: Whether the function can access the Internet. |
Layers |
object |
Property layers: The layers of the function. |
LogConfig |
object |
Property logConfig: The log configuration of the function. |
MemorySize |
object |
Property memorySize: The memory size of the function, in MB. |
NasConfig |
object |
Property nasConfig: The NAS configuration of the function. |
OssMountConfig |
object |
Property ossMountConfig: The OSS mount configuration of the function. |
Role |
object |
Property role: The user is authorized to the RAM role of Function Compute. |
Timeout |
object |
Property timeout: The timeout of the function. |
TracingConfig |
object |
Property tracingConfig: The tracing configuration of the function. |
VpcConfig |
object |
Property vpcConfig: The VPC configuration of the function. |
FunctionName
Required
public object FunctionName { get; set; }
- Type: object
Property functionName: The name of the function.
Handler
Required
public object Handler { get; set; }
- Type: object
Property handler: The handler of the function.
Runtime
Required
public object Runtime { get; set; }
- Type: object
Property runtime: The programming language of the function.
Code
Optional
public object Code { get; set; }
- Type: object
Property code: Function code ZIP package.
Choose one of Code and CustomContainerConfig.
Cpu
Optional
public object Cpu { get; set; }
- Type: object
Property cpu: The CPU size of the function in vCPU as a multiple of 0.05 vCPU. The minimum value is 0.05 and the maximum value is 16. At the same time, the ratio of cpu to memorySize (in GB) should be between 1:1 and 1:4.
CustomContainerConfig
Optional
public object CustomContainerConfig { get; set; }
- Type: object
Property customContainerConfig: Custom container configuration.
Choose one of Code and CustomContainerConfig.
CustomDns
Optional
public object CustomDns { get; set; }
- Type: object
Property customDns: Custom DNS configuration.
CustomRuntimeConfig
Optional
public object CustomRuntimeConfig { get; set; }
- Type: object
Property customRuntimeConfig: Custom runtime configuration.
Description
Optional
public object Description { get; set; }
- Type: object
Property description: Function description.
DiskSize
Optional
public object DiskSize { get; set; }
- Type: object
Property diskSize: The disk size of the function, in MB.
EnvironmentVariables
Optional
public object EnvironmentVariables { get; set; }
- Type: object
Property environmentVariables: The environment variables of the function.
GpuConfig
Optional
public object GpuConfig { get; set; }
- Type: object
Property gpuConfig: The GPU configuration of the function.
InstanceConcurrency
Optional
public object InstanceConcurrency { get; set; }
- Type: object
Property instanceConcurrency: The maximum number of concurrent instances of the function.
InstanceLifecycleConfig
Optional
public object InstanceLifecycleConfig { get; set; }
- Type: object
Property instanceLifecycleConfig: The instance lifecycle configuration of the function.
InternetAccess
Optional
public object InternetAccess { get; set; }
- Type: object
Property internetAccess: Whether the function can access the Internet.
Layers
Optional
public object Layers { get; set; }
- Type: object
Property layers: The layers of the function.
LogConfig
Optional
public object LogConfig { get; set; }
- Type: object
Property logConfig: The log configuration of the function.
MemorySize
Optional
public object MemorySize { get; set; }
- Type: object
Property memorySize: The memory size of the function, in MB.
NasConfig
Optional
public object NasConfig { get; set; }
- Type: object
Property nasConfig: The NAS configuration of the function.
OssMountConfig
Optional
public object OssMountConfig { get; set; }
- Type: object
Property ossMountConfig: The OSS mount configuration of the function.
Role
Optional
public object Role { get; set; }
- Type: object
Property role: The user is authorized to the RAM role of Function Compute.
After setting, Function Compute will assume the role and generate temporary access credentials. The temporary access credentials of this role can be used in functions to access specified Alibaba Cloud services, such as OSS and OTS.
Timeout
Optional
public object Timeout { get; set; }
- Type: object
Property timeout: The timeout of the function.
TracingConfig
Optional
public object TracingConfig { get; set; }
- Type: object
Property tracingConfig: The tracing configuration of the function.
VpcConfig
Optional
public object VpcConfig { get; set; }
- Type: object
Property vpcConfig: The VPC configuration of the function.