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. |
FunctionNameRequired
public object FunctionName { get; set; }
- Type: object
Property functionName: The name of the function.
HandlerRequired
public object Handler { get; set; }
- Type: object
Property handler: The handler of the function.
RuntimeRequired
public object Runtime { get; set; }
- Type: object
Property runtime: The programming language of the function.
CodeOptional
public object Code { get; set; }
- Type: object
Property code: Function code ZIP package.
Choose one of Code and CustomContainerConfig.
CpuOptional
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.
CustomContainerConfigOptional
public object CustomContainerConfig { get; set; }
- Type: object
Property customContainerConfig: Custom container configuration.
Choose one of Code and CustomContainerConfig.
CustomDnsOptional
public object CustomDns { get; set; }
- Type: object
Property customDns: Custom DNS configuration.
CustomRuntimeConfigOptional
public object CustomRuntimeConfig { get; set; }
- Type: object
Property customRuntimeConfig: Custom runtime configuration.
DescriptionOptional
public object Description { get; set; }
- Type: object
Property description: Function description.
DiskSizeOptional
public object DiskSize { get; set; }
- Type: object
Property diskSize: The disk size of the function, in MB.
EnvironmentVariablesOptional
public object EnvironmentVariables { get; set; }
- Type: object
Property environmentVariables: The environment variables of the function.
GpuConfigOptional
public object GpuConfig { get; set; }
- Type: object
Property gpuConfig: The GPU configuration of the function.
InstanceConcurrencyOptional
public object InstanceConcurrency { get; set; }
- Type: object
Property instanceConcurrency: The maximum number of concurrent instances of the function.
InstanceLifecycleConfigOptional
public object InstanceLifecycleConfig { get; set; }
- Type: object
Property instanceLifecycleConfig: The instance lifecycle configuration of the function.
InternetAccessOptional
public object InternetAccess { get; set; }
- Type: object
Property internetAccess: Whether the function can access the Internet.
LayersOptional
public object Layers { get; set; }
- Type: object
Property layers: The layers of the function.
LogConfigOptional
public object LogConfig { get; set; }
- Type: object
Property logConfig: The log configuration of the function.
MemorySizeOptional
public object MemorySize { get; set; }
- Type: object
Property memorySize: The memory size of the function, in MB.
NasConfigOptional
public object NasConfig { get; set; }
- Type: object
Property nasConfig: The NAS configuration of the function.
OssMountConfigOptional
public object OssMountConfig { get; set; }
- Type: object
Property ossMountConfig: The OSS mount configuration of the function.
RoleOptional
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.
TimeoutOptional
public object Timeout { get; set; }
- Type: object
Property timeout: The timeout of the function.
TracingConfigOptional
public object TracingConfig { get; set; }
- Type: object
Property tracingConfig: The tracing configuration of the function.
VpcConfigOptional
public object VpcConfig { get; set; }
- Type: object
Property vpcConfig: The VPC configuration of the function.