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 DisableOndemand = null,
object DiskSize = null,
object EnvironmentVariables = null,
object GpuConfig = null,
object InstanceConcurrency = null,
object InstanceIsolationMode = 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 SessionAffinity = null,
object SessionAffinityConfig = null,
TagsProperty[] Tags = 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. |
DisableOndemand | object | Property disableOndemand: Whether to disable the creation of on-demand instances. |
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. |
InstanceIsolationMode | object | Property instanceIsolationMode: Instance isolation mode. |
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. |
SessionAffinity | object | Property sessionAffinity: The session affinity policy for Function Compute requests. |
SessionAffinityConfig | object | Property sessionAffinityConfig: Session affinity configuration. |
Tags | TagsProperty[] | Property tags: Tags to attach to function. |
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.
DisableOndemandOptional
public object DisableOndemand { get; set; }
- Type: object
Property disableOndemand: Whether to disable the creation of on-demand instances.
When enabled, on-demand instances will not be created, and only reserved instances can be used.
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.
InstanceIsolationModeOptional
public object InstanceIsolationMode { get; set; }
- Type: object
Property instanceIsolationMode: Instance isolation mode.
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.
SessionAffinityOptional
public object SessionAffinity { get; set; }
- Type: object
Property sessionAffinity: The session affinity policy for Function Compute requests.
Set to MCP_SSE to implement MCP SSE protocol request affinity. Set to GENERATED_COOKIE for cookie-based affinity. Set to HEADER_FIELD for header-based affinity. If not set or set to NONE, there is no affinity effect, and requests are routed according to the default scheduling policy of Function Compute.
SessionAffinityConfigOptional
public object SessionAffinityConfig { get; set; }
- Type: object
Property sessionAffinityConfig: Session affinity configuration.
TagsOptional
public TagsProperty[] Tags { get; set; }
- Type: TagsProperty[]
Property tags: Tags to attach to function.
Max support 20 tags to add during create function. Each tag with two properties Key and Value, and Key is required.
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.