published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
A function consists of function code and function configuration. It is the basic unit for scheduling and running function code.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
vefaasFunctionDemo:
type: volcenginecc:vefaas:Function
name: VefaasFunctionDemo
properties:
name: VefaasFunction1001
runtime: native/v1
exclusiveMode: false
maxConcurrency: 10
memoryMb: 512
requestTimeout: 30
port: 8000
vpcConfig:
enable_vpc: true
vpc_id: vpc-rrco37ovjq4gxxxxxxx
subnet_ids:
- subnet-rrwqhg3qzxxxxxxxx
security_group_ids:
- sg-rrco3fkzzy0wxxxxxxxxxxxx
enable_shared_internet_access: true
command: ./run.sh
enableApmplus: false
projectName: default
nasStorage:
enable_nas: true
nas_configs:
- remotePath: /
localMountPath: /mnt/nas
mountPointId: mount-xxxxxxx
fileSystemId: enas-cnbja0bxxxxxxx
gid: 1000
uid: 1000
tosMountConfig:
enable_tos: true
credentials:
accessKeyId: AK**************
secretAccessKey: '*****************=='
mount_points:
- bucketPath: /
localMountPath: /mnt/tos
readOnly: false
bucketName: ccapi-register-test
endpoint: http://tos-cn-beijing.ivolces.com
envs:
- key: env
value: test
asyncTaskConfig:
enable_async_task: true
max_retry: 2
destination_config:
onFailure:
destination: https://ccapi-failure.com
onSuccess:
destination: https://ccapi-success.com
role: trn:iam::*******:role/xxxxxxx
tlsConfig:
enable_log: true
tls_project_id: 9248d829-21b0-43e2-a2f6-xxxxxxxxx
tls_topic_id: 84baf7cf-0f60-44e0-a5f6-xxxxxxxxx
source: https://vefaas-prod-xxxxxxxxxPAYLOAD&X-Tos-Credential=AKxxxxxxxxxxxxFtos-cn-beijing.volces.com%2Ftos%2Frequest&X-Tos-Date=20260327T080542Z&X-Tos-Expires=1800&X-Tos-SignedHeaders=host&X-Tos-Signature=5a60f816def2be59baxxxxxxxxxxxxx
sourceType: tos
Create Function Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Function(name: string, args?: FunctionArgs, opts?: CustomResourceOptions);@overload
def Function(resource_name: str,
args: Optional[FunctionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Function(resource_name: str,
opts: Optional[ResourceOptions] = None,
async_task_config: Optional[FunctionAsyncTaskConfigArgs] = None,
command: Optional[str] = None,
cpu_strategy: Optional[str] = None,
description: Optional[str] = None,
enable_apmplus: Optional[bool] = None,
envs: Optional[Sequence[FunctionEnvArgs]] = None,
exclusive_mode: Optional[bool] = None,
initializer_sec: Optional[int] = None,
max_concurrency: Optional[int] = None,
memory_mb: Optional[int] = None,
name: Optional[str] = None,
nas_storage: Optional[FunctionNasStorageArgs] = None,
port: Optional[int] = None,
project_name: Optional[str] = None,
request_timeout: Optional[int] = None,
role: Optional[str] = None,
runtime: Optional[str] = None,
source: Optional[str] = None,
source_access_config: Optional[FunctionSourceAccessConfigArgs] = None,
source_type: Optional[str] = None,
tags: Optional[Sequence[FunctionTagArgs]] = None,
tls_config: Optional[FunctionTlsConfigArgs] = None,
tos_mount_config: Optional[FunctionTosMountConfigArgs] = None,
vpc_config: Optional[FunctionVpcConfigArgs] = None)func NewFunction(ctx *Context, name string, args *FunctionArgs, opts ...ResourceOption) (*Function, error)public Function(string name, FunctionArgs? args = null, CustomResourceOptions? opts = null)
public Function(String name, FunctionArgs args)
public Function(String name, FunctionArgs args, CustomResourceOptions options)
type: volcenginecc:vefaas:Function
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Function Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Function resource accepts the following input properties:
- Async
Task Volcengine.Config Function Async Task Config - Asynchronous task configuration
- Command string
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- Cpu
Strategy string - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- Description string
- Function description. Up to 1000 Unicode characters
- Enable
Apmplus bool - Whether to enable application monitoring
- Envs
List<Volcengine.
Function Env> - Exclusive
Mode bool - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- Initializer
Sec int - Function initialization timeout configuration
- Max
Concurrency int - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- Memory
Mb int - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- Name string
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- Nas
Storage Volcengine.Function Nas Storage - NAS file storage mount configuration
- Port int
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- Project
Name string - Project name associated with the function
- Request
Timeout int - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- Role string
- IAM role bound to the function instance
- Runtime string
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- Source string
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- Source
Access Volcengine.Config Function Source Access Config - Image repository access configuration.
- Source
Type string - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
List<Volcengine.
Function Tag> - Tls
Config Volcengine.Function Tls Config - TLS configuration for Log Service
- Tos
Mount Volcengine.Config Function Tos Mount Config - TOS object storage mount configuration
- Vpc
Config Volcengine.Function Vpc Config - Private network VPC configuration.
- Async
Task FunctionConfig Async Task Config Args - Asynchronous task configuration
- Command string
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- Cpu
Strategy string - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- Description string
- Function description. Up to 1000 Unicode characters
- Enable
Apmplus bool - Whether to enable application monitoring
- Envs
[]Function
Env Args - Exclusive
Mode bool - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- Initializer
Sec int - Function initialization timeout configuration
- Max
Concurrency int - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- Memory
Mb int - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- Name string
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- Nas
Storage FunctionNas Storage Args - NAS file storage mount configuration
- Port int
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- Project
Name string - Project name associated with the function
- Request
Timeout int - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- Role string
- IAM role bound to the function instance
- Runtime string
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- Source string
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- Source
Access FunctionConfig Source Access Config Args - Image repository access configuration.
- Source
Type string - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
[]Function
Tag Args - Tls
Config FunctionTls Config Args - TLS configuration for Log Service
- Tos
Mount FunctionConfig Tos Mount Config Args - TOS object storage mount configuration
- Vpc
Config FunctionVpc Config Args - Private network VPC configuration.
- async
Task FunctionConfig Async Task Config - Asynchronous task configuration
- command String
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- cpu
Strategy String - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- description String
- Function description. Up to 1000 Unicode characters
- enable
Apmplus Boolean - Whether to enable application monitoring
- envs
List<Function
Env> - exclusive
Mode Boolean - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- initializer
Sec Integer - Function initialization timeout configuration
- max
Concurrency Integer - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- memory
Mb Integer - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- name String
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- nas
Storage FunctionNas Storage - NAS file storage mount configuration
- port Integer
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- project
Name String - Project name associated with the function
- request
Timeout Integer - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- role String
- IAM role bound to the function instance
- runtime String
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- source String
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- source
Access FunctionConfig Source Access Config - Image repository access configuration.
- source
Type String - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
List<Function
Tag> - tls
Config FunctionTls Config - TLS configuration for Log Service
- tos
Mount FunctionConfig Tos Mount Config - TOS object storage mount configuration
- vpc
Config FunctionVpc Config - Private network VPC configuration.
- async
Task FunctionConfig Async Task Config - Asynchronous task configuration
- command string
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- cpu
Strategy string - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- description string
- Function description. Up to 1000 Unicode characters
- enable
Apmplus boolean - Whether to enable application monitoring
- envs
Function
Env[] - exclusive
Mode boolean - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- initializer
Sec number - Function initialization timeout configuration
- max
Concurrency number - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- memory
Mb number - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- name string
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- nas
Storage FunctionNas Storage - NAS file storage mount configuration
- port number
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- project
Name string - Project name associated with the function
- request
Timeout number - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- role string
- IAM role bound to the function instance
- runtime string
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- source string
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- source
Access FunctionConfig Source Access Config - Image repository access configuration.
- source
Type string - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
Function
Tag[] - tls
Config FunctionTls Config - TLS configuration for Log Service
- tos
Mount FunctionConfig Tos Mount Config - TOS object storage mount configuration
- vpc
Config FunctionVpc Config - Private network VPC configuration.
- async_
task_ Functionconfig Async Task Config Args - Asynchronous task configuration
- command str
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- cpu_
strategy str - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- description str
- Function description. Up to 1000 Unicode characters
- enable_
apmplus bool - Whether to enable application monitoring
- envs
Sequence[Function
Env Args] - exclusive_
mode bool - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- initializer_
sec int - Function initialization timeout configuration
- max_
concurrency int - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- memory_
mb int - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- name str
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- nas_
storage FunctionNas Storage Args - NAS file storage mount configuration
- port int
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- project_
name str - Project name associated with the function
- request_
timeout int - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- role str
- IAM role bound to the function instance
- runtime str
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- source str
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- source_
access_ Functionconfig Source Access Config Args - Image repository access configuration.
- source_
type str - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
Sequence[Function
Tag Args] - tls_
config FunctionTls Config Args - TLS configuration for Log Service
- tos_
mount_ Functionconfig Tos Mount Config Args - TOS object storage mount configuration
- vpc_
config FunctionVpc Config Args - Private network VPC configuration.
- async
Task Property MapConfig - Asynchronous task configuration
- command String
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- cpu
Strategy String - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- description String
- Function description. Up to 1000 Unicode characters
- enable
Apmplus Boolean - Whether to enable application monitoring
- envs List<Property Map>
- exclusive
Mode Boolean - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- initializer
Sec Number - Function initialization timeout configuration
- max
Concurrency Number - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- memory
Mb Number - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- name String
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- nas
Storage Property Map - NAS file storage mount configuration
- port Number
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- project
Name String - Project name associated with the function
- request
Timeout Number - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- role String
- IAM role bound to the function instance
- runtime String
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- source String
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- source
Access Property MapConfig - Image repository access configuration.
- source
Type String - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
- List<Property Map>
- tls
Config Property Map - TLS configuration for Log Service
- tos
Mount Property MapConfig - TOS object storage mount configuration
- vpc
Config Property Map - Private network VPC configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the Function resource produces the following output properties:
- Code
Size int - Code package size (MB).
- Code
Size intLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- Creation
Time string - Function creation time
- Function
Id string - Function ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Type string - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- Last
Update stringTime - Function update time.
- Owner string
- Function owner (Account Id).
- Triggers
Count int - Number of triggers for this function.
- Code
Size int - Code package size (MB).
- Code
Size intLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- Creation
Time string - Function creation time
- Function
Id string - Function ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Type string - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- Last
Update stringTime - Function update time.
- Owner string
- Function owner (Account Id).
- Triggers
Count int - Number of triggers for this function.
- code
Size Integer - Code package size (MB).
- code
Size IntegerLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- creation
Time String - Function creation time
- function
Id String - Function ID
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Type String - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- last
Update StringTime - Function update time.
- owner String
- Function owner (Account Id).
- triggers
Count Integer - Number of triggers for this function.
- code
Size number - Code package size (MB).
- code
Size numberLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- creation
Time string - Function creation time
- function
Id string - Function ID
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Type string - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- last
Update stringTime - Function update time.
- owner string
- Function owner (Account Id).
- triggers
Count number - Number of triggers for this function.
- code_
size int - Code package size (MB).
- code_
size_ intlimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- creation_
time str - Function creation time
- function_
id str - Function ID
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
type str - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- last_
update_ strtime - Function update time.
- owner str
- Function owner (Account Id).
- triggers_
count int - Number of triggers for this function.
- code
Size Number - Code package size (MB).
- code
Size NumberLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- creation
Time String - Function creation time
- function
Id String - Function ID
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Type String - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- last
Update StringTime - Function update time.
- owner String
- Function owner (Account Id).
- triggers
Count Number - Number of triggers for this function.
Look up Existing Function Resource
Get an existing Function resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FunctionState, opts?: CustomResourceOptions): Function@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
async_task_config: Optional[FunctionAsyncTaskConfigArgs] = None,
code_size: Optional[int] = None,
code_size_limit: Optional[int] = None,
command: Optional[str] = None,
cpu_strategy: Optional[str] = None,
creation_time: Optional[str] = None,
description: Optional[str] = None,
enable_apmplus: Optional[bool] = None,
envs: Optional[Sequence[FunctionEnvArgs]] = None,
exclusive_mode: Optional[bool] = None,
function_id: Optional[str] = None,
initializer_sec: Optional[int] = None,
instance_type: Optional[str] = None,
last_update_time: Optional[str] = None,
max_concurrency: Optional[int] = None,
memory_mb: Optional[int] = None,
name: Optional[str] = None,
nas_storage: Optional[FunctionNasStorageArgs] = None,
owner: Optional[str] = None,
port: Optional[int] = None,
project_name: Optional[str] = None,
request_timeout: Optional[int] = None,
role: Optional[str] = None,
runtime: Optional[str] = None,
source: Optional[str] = None,
source_access_config: Optional[FunctionSourceAccessConfigArgs] = None,
source_type: Optional[str] = None,
tags: Optional[Sequence[FunctionTagArgs]] = None,
tls_config: Optional[FunctionTlsConfigArgs] = None,
tos_mount_config: Optional[FunctionTosMountConfigArgs] = None,
triggers_count: Optional[int] = None,
vpc_config: Optional[FunctionVpcConfigArgs] = None) -> Functionfunc GetFunction(ctx *Context, name string, id IDInput, state *FunctionState, opts ...ResourceOption) (*Function, error)public static Function Get(string name, Input<string> id, FunctionState? state, CustomResourceOptions? opts = null)public static Function get(String name, Output<String> id, FunctionState state, CustomResourceOptions options)resources: _: type: volcenginecc:vefaas:Function get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Async
Task Volcengine.Config Function Async Task Config - Asynchronous task configuration
- Code
Size int - Code package size (MB).
- Code
Size intLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- Command string
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- Cpu
Strategy string - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- Creation
Time string - Function creation time
- Description string
- Function description. Up to 1000 Unicode characters
- Enable
Apmplus bool - Whether to enable application monitoring
- Envs
List<Volcengine.
Function Env> - Exclusive
Mode bool - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- Function
Id string - Function ID
- Initializer
Sec int - Function initialization timeout configuration
- Instance
Type string - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- Last
Update stringTime - Function update time.
- Max
Concurrency int - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- Memory
Mb int - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- Name string
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- Nas
Storage Volcengine.Function Nas Storage - NAS file storage mount configuration
- Owner string
- Function owner (Account Id).
- Port int
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- Project
Name string - Project name associated with the function
- Request
Timeout int - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- Role string
- IAM role bound to the function instance
- Runtime string
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- Source string
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- Source
Access Volcengine.Config Function Source Access Config - Image repository access configuration.
- Source
Type string - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
List<Volcengine.
Function Tag> - Tls
Config Volcengine.Function Tls Config - TLS configuration for Log Service
- Tos
Mount Volcengine.Config Function Tos Mount Config - TOS object storage mount configuration
- Triggers
Count int - Number of triggers for this function.
- Vpc
Config Volcengine.Function Vpc Config - Private network VPC configuration.
- Async
Task FunctionConfig Async Task Config Args - Asynchronous task configuration
- Code
Size int - Code package size (MB).
- Code
Size intLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- Command string
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- Cpu
Strategy string - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- Creation
Time string - Function creation time
- Description string
- Function description. Up to 1000 Unicode characters
- Enable
Apmplus bool - Whether to enable application monitoring
- Envs
[]Function
Env Args - Exclusive
Mode bool - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- Function
Id string - Function ID
- Initializer
Sec int - Function initialization timeout configuration
- Instance
Type string - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- Last
Update stringTime - Function update time.
- Max
Concurrency int - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- Memory
Mb int - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- Name string
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- Nas
Storage FunctionNas Storage Args - NAS file storage mount configuration
- Owner string
- Function owner (Account Id).
- Port int
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- Project
Name string - Project name associated with the function
- Request
Timeout int - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- Role string
- IAM role bound to the function instance
- Runtime string
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- Source string
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- Source
Access FunctionConfig Source Access Config Args - Image repository access configuration.
- Source
Type string - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
[]Function
Tag Args - Tls
Config FunctionTls Config Args - TLS configuration for Log Service
- Tos
Mount FunctionConfig Tos Mount Config Args - TOS object storage mount configuration
- Triggers
Count int - Number of triggers for this function.
- Vpc
Config FunctionVpc Config Args - Private network VPC configuration.
- async
Task FunctionConfig Async Task Config - Asynchronous task configuration
- code
Size Integer - Code package size (MB).
- code
Size IntegerLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- command String
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- cpu
Strategy String - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- creation
Time String - Function creation time
- description String
- Function description. Up to 1000 Unicode characters
- enable
Apmplus Boolean - Whether to enable application monitoring
- envs
List<Function
Env> - exclusive
Mode Boolean - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- function
Id String - Function ID
- initializer
Sec Integer - Function initialization timeout configuration
- instance
Type String - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- last
Update StringTime - Function update time.
- max
Concurrency Integer - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- memory
Mb Integer - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- name String
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- nas
Storage FunctionNas Storage - NAS file storage mount configuration
- owner String
- Function owner (Account Id).
- port Integer
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- project
Name String - Project name associated with the function
- request
Timeout Integer - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- role String
- IAM role bound to the function instance
- runtime String
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- source String
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- source
Access FunctionConfig Source Access Config - Image repository access configuration.
- source
Type String - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
List<Function
Tag> - tls
Config FunctionTls Config - TLS configuration for Log Service
- tos
Mount FunctionConfig Tos Mount Config - TOS object storage mount configuration
- triggers
Count Integer - Number of triggers for this function.
- vpc
Config FunctionVpc Config - Private network VPC configuration.
- async
Task FunctionConfig Async Task Config - Asynchronous task configuration
- code
Size number - Code package size (MB).
- code
Size numberLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- command string
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- cpu
Strategy string - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- creation
Time string - Function creation time
- description string
- Function description. Up to 1000 Unicode characters
- enable
Apmplus boolean - Whether to enable application monitoring
- envs
Function
Env[] - exclusive
Mode boolean - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- function
Id string - Function ID
- initializer
Sec number - Function initialization timeout configuration
- instance
Type string - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- last
Update stringTime - Function update time.
- max
Concurrency number - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- memory
Mb number - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- name string
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- nas
Storage FunctionNas Storage - NAS file storage mount configuration
- owner string
- Function owner (Account Id).
- port number
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- project
Name string - Project name associated with the function
- request
Timeout number - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- role string
- IAM role bound to the function instance
- runtime string
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- source string
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- source
Access FunctionConfig Source Access Config - Image repository access configuration.
- source
Type string - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
Function
Tag[] - tls
Config FunctionTls Config - TLS configuration for Log Service
- tos
Mount FunctionConfig Tos Mount Config - TOS object storage mount configuration
- triggers
Count number - Number of triggers for this function.
- vpc
Config FunctionVpc Config - Private network VPC configuration.
- async_
task_ Functionconfig Async Task Config Args - Asynchronous task configuration
- code_
size int - Code package size (MB).
- code_
size_ intlimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- command str
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- cpu_
strategy str - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- creation_
time str - Function creation time
- description str
- Function description. Up to 1000 Unicode characters
- enable_
apmplus bool - Whether to enable application monitoring
- envs
Sequence[Function
Env Args] - exclusive_
mode bool - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- function_
id str - Function ID
- initializer_
sec int - Function initialization timeout configuration
- instance_
type str - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- last_
update_ strtime - Function update time.
- max_
concurrency int - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- memory_
mb int - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- name str
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- nas_
storage FunctionNas Storage Args - NAS file storage mount configuration
- owner str
- Function owner (Account Id).
- port int
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- project_
name str - Project name associated with the function
- request_
timeout int - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- role str
- IAM role bound to the function instance
- runtime str
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- source str
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- source_
access_ Functionconfig Source Access Config Args - Image repository access configuration.
- source_
type str - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
-
Sequence[Function
Tag Args] - tls_
config FunctionTls Config Args - TLS configuration for Log Service
- tos_
mount_ Functionconfig Tos Mount Config Args - TOS object storage mount configuration
- triggers_
count int - Number of triggers for this function.
- vpc_
config FunctionVpc Config Args - Private network VPC configuration.
- async
Task Property MapConfig - Asynchronous task configuration
- code
Size Number - Code package size (MB).
- code
Size NumberLimit - Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
- command String
- Custom startup command for the instance (currently only supported in native/v1 runtime)
- cpu
Strategy String - Function CPU billing policy. When creating a microservice application type function, this field must be set to always, meaning at least one instance is running. Other function types do not support this field
- creation
Time String - Function creation time
- description String
- Function description. Up to 1000 Unicode characters
- enable
Apmplus Boolean - Whether to enable application monitoring
- envs List<Property Map>
- exclusive
Mode Boolean - Exclusive mode switch. true: disables multi-concurrency per instance, i.e., exclusive mode where a single instance can only handle one request at a time. false (default): enables multi-concurrency per instance, i.e., non-exclusive mode where a single instance can handle multiple requests at the same time. You can set the maximum concurrent requests per instance using MaxConcurrency.
- function
Id String - Function ID
- initializer
Sec Number - Function initialization timeout configuration
- instance
Type String - Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
- last
Update StringTime - Function update time.
- max
Concurrency Number - Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
- memory
Mb Number - Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024
- name String
- Function name. Function names must be unique within the same account. Function names support uppercase and lowercase English letters, numbers, hyphens (-), and underscores (_), with a length limit of 4–64 characters.
- nas
Storage Property Map - NAS file storage mount configuration
- owner String
- Function owner (Account Id).
- port Number
- Custom listening port for the instance (currently only supported in native/v1 runtime)
- project
Name String - Project name associated with the function
- request
Timeout Number - Request timeout. Unit: seconds. Range: 1–900. Default: 30.
- role String
- IAM role bound to the function instance
- runtime String
- Function runtime. Values: golang/v1, native/v1, nativejava8/v1, node14/v1, node20/v1, nodeprime14/v1, python3.12/v1, python3.8/v1, python3.9/v1.
- source String
- Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucketname:objectkey; image: image address in the format host/namespace/repo:tag
- source
Access Property MapConfig - Image repository access configuration.
- source
Type String - Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
- List<Property Map>
- tls
Config Property Map - TLS configuration for Log Service
- tos
Mount Property MapConfig - TOS object storage mount configuration
- triggers
Count Number - Number of triggers for this function.
- vpc
Config Property Map - Private network VPC configuration.
Supporting Types
FunctionAsyncTaskConfig, FunctionAsyncTaskConfigArgs
- Destination
Config Volcengine.Function Async Task Config Destination Config - Asynchronous task callback target configuration
- Enable
Async boolTask - Whether to enable asynchronous task
- Max
Retry int - Number of retry attempts for asynchronous task failures. Available values: 0–3
- Destination
Config FunctionAsync Task Config Destination Config - Asynchronous task callback target configuration
- Enable
Async boolTask - Whether to enable asynchronous task
- Max
Retry int - Number of retry attempts for asynchronous task failures. Available values: 0–3
- destination
Config FunctionAsync Task Config Destination Config - Asynchronous task callback target configuration
- enable
Async BooleanTask - Whether to enable asynchronous task
- max
Retry Integer - Number of retry attempts for asynchronous task failures. Available values: 0–3
- destination
Config FunctionAsync Task Config Destination Config - Asynchronous task callback target configuration
- enable
Async booleanTask - Whether to enable asynchronous task
- max
Retry number - Number of retry attempts for asynchronous task failures. Available values: 0–3
- destination_
config FunctionAsync Task Config Destination Config - Asynchronous task callback target configuration
- enable_
async_ booltask - Whether to enable asynchronous task
- max_
retry int - Number of retry attempts for asynchronous task failures. Available values: 0–3
- destination
Config Property Map - Asynchronous task callback target configuration
- enable
Async BooleanTask - Whether to enable asynchronous task
- max
Retry Number - Number of retry attempts for asynchronous task failures. Available values: 0–3
FunctionAsyncTaskConfigDestinationConfig, FunctionAsyncTaskConfigDestinationConfigArgs
- On
Failure Volcengine.Function Async Task Config Destination Config On Failure - Callback target configuration when the task fails
- On
Success Volcengine.Function Async Task Config Destination Config On Success - Callback target configuration when the task succeeds
- On
Failure FunctionAsync Task Config Destination Config On Failure - Callback target configuration when the task fails
- On
Success FunctionAsync Task Config Destination Config On Success - Callback target configuration when the task succeeds
- on
Failure FunctionAsync Task Config Destination Config On Failure - Callback target configuration when the task fails
- on
Success FunctionAsync Task Config Destination Config On Success - Callback target configuration when the task succeeds
- on
Failure FunctionAsync Task Config Destination Config On Failure - Callback target configuration when the task fails
- on
Success FunctionAsync Task Config Destination Config On Success - Callback target configuration when the task succeeds
- on_
failure FunctionAsync Task Config Destination Config On Failure - Callback target configuration when the task fails
- on_
success FunctionAsync Task Config Destination Config On Success - Callback target configuration when the task succeeds
- on
Failure Property Map - Callback target configuration when the task fails
- on
Success Property Map - Callback target configuration when the task succeeds
FunctionAsyncTaskConfigDestinationConfigOnFailure, FunctionAsyncTaskConfigDestinationConfigOnFailureArgs
- Destination string
- Specific callback target. Set the value to empty ("") to disable this callback
- Destination string
- Specific callback target. Set the value to empty ("") to disable this callback
- destination String
- Specific callback target. Set the value to empty ("") to disable this callback
- destination string
- Specific callback target. Set the value to empty ("") to disable this callback
- destination str
- Specific callback target. Set the value to empty ("") to disable this callback
- destination String
- Specific callback target. Set the value to empty ("") to disable this callback
FunctionAsyncTaskConfigDestinationConfigOnSuccess, FunctionAsyncTaskConfigDestinationConfigOnSuccessArgs
- Destination string
- Specific callback target. Set the value to empty ("") to disable this callback
- Destination string
- Specific callback target. Set the value to empty ("") to disable this callback
- destination String
- Specific callback target. Set the value to empty ("") to disable this callback
- destination string
- Specific callback target. Set the value to empty ("") to disable this callback
- destination str
- Specific callback target. Set the value to empty ("") to disable this callback
- destination String
- Specific callback target. Set the value to empty ("") to disable this callback
FunctionEnv, FunctionEnvArgs
FunctionNasStorage, FunctionNasStorageArgs
- Enable
Nas bool - Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
- Nas
Configs List<Volcengine.Function Nas Storage Nas Config>
- Enable
Nas bool - Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
- Nas
Configs []FunctionNas Storage Nas Config
- enable
Nas Boolean - Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
- nas
Configs List<FunctionNas Storage Nas Config>
- enable
Nas boolean - Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
- nas
Configs FunctionNas Storage Nas Config[]
- enable_
nas bool - Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
- nas_
configs Sequence[FunctionNas Storage Nas Config]
- enable
Nas Boolean - Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
- nas
Configs List<Property Map>
FunctionNasStorageNasConfig, FunctionNasStorageNasConfigArgs
- File
System stringId - NAS file system ID.
- Gid int
- User group in the file system. Customization is not currently supported. If this parameter is provided, its value is 1000 (consistent with the function run user gid)
- Local
Mount stringPath - Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
- Mount
Point stringId - NAS mount point ID
- Remote
Path string - Remote directory in the file system. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #)
- Uid int
- The user in the file system cannot be customized for now. If this parameter is provided, the value must be 1000 (consistent with the function run user uid).
- File
System stringId - NAS file system ID.
- Gid int
- User group in the file system. Customization is not currently supported. If this parameter is provided, its value is 1000 (consistent with the function run user gid)
- Local
Mount stringPath - Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
- Mount
Point stringId - NAS mount point ID
- Remote
Path string - Remote directory in the file system. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #)
- Uid int
- The user in the file system cannot be customized for now. If this parameter is provided, the value must be 1000 (consistent with the function run user uid).
- file
System StringId - NAS file system ID.
- gid Integer
- User group in the file system. Customization is not currently supported. If this parameter is provided, its value is 1000 (consistent with the function run user gid)
- local
Mount StringPath - Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
- mount
Point StringId - NAS mount point ID
- remote
Path String - Remote directory in the file system. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #)
- uid Integer
- The user in the file system cannot be customized for now. If this parameter is provided, the value must be 1000 (consistent with the function run user uid).
- file
System stringId - NAS file system ID.
- gid number
- User group in the file system. Customization is not currently supported. If this parameter is provided, its value is 1000 (consistent with the function run user gid)
- local
Mount stringPath - Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
- mount
Point stringId - NAS mount point ID
- remote
Path string - Remote directory in the file system. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #)
- uid number
- The user in the file system cannot be customized for now. If this parameter is provided, the value must be 1000 (consistent with the function run user uid).
- file_
system_ strid - NAS file system ID.
- gid int
- User group in the file system. Customization is not currently supported. If this parameter is provided, its value is 1000 (consistent with the function run user gid)
- local_
mount_ strpath - Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
- mount_
point_ strid - NAS mount point ID
- remote_
path str - Remote directory in the file system. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #)
- uid int
- The user in the file system cannot be customized for now. If this parameter is provided, the value must be 1000 (consistent with the function run user uid).
- file
System StringId - NAS file system ID.
- gid Number
- User group in the file system. Customization is not currently supported. If this parameter is provided, its value is 1000 (consistent with the function run user gid)
- local
Mount StringPath - Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
- mount
Point StringId - NAS mount point ID
- remote
Path String - Remote directory in the file system. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #)
- uid Number
- The user in the file system cannot be customized for now. If this parameter is provided, the value must be 1000 (consistent with the function run user uid).
FunctionSourceAccessConfig, FunctionSourceAccessConfigArgs
FunctionTag, FunctionTagArgs
FunctionTlsConfig, FunctionTlsConfigArgs
- Enable
Log bool - TLS log feature toggle. true: enabled, function stdout/stderr logs will be collected to the specified log project and log topic in Log Service. false: disabled, logs will not be collected
- Tls
Project stringId - TLS log project ID
- Tls
Topic stringId - TLS log topic ID.
- Enable
Log bool - TLS log feature toggle. true: enabled, function stdout/stderr logs will be collected to the specified log project and log topic in Log Service. false: disabled, logs will not be collected
- Tls
Project stringId - TLS log project ID
- Tls
Topic stringId - TLS log topic ID.
- enable
Log Boolean - TLS log feature toggle. true: enabled, function stdout/stderr logs will be collected to the specified log project and log topic in Log Service. false: disabled, logs will not be collected
- tls
Project StringId - TLS log project ID
- tls
Topic StringId - TLS log topic ID.
- enable
Log boolean - TLS log feature toggle. true: enabled, function stdout/stderr logs will be collected to the specified log project and log topic in Log Service. false: disabled, logs will not be collected
- tls
Project stringId - TLS log project ID
- tls
Topic stringId - TLS log topic ID.
- enable_
log bool - TLS log feature toggle. true: enabled, function stdout/stderr logs will be collected to the specified log project and log topic in Log Service. false: disabled, logs will not be collected
- tls_
project_ strid - TLS log project ID
- tls_
topic_ strid - TLS log topic ID.
- enable
Log Boolean - TLS log feature toggle. true: enabled, function stdout/stderr logs will be collected to the specified log project and log topic in Log Service. false: disabled, logs will not be collected
- tls
Project StringId - TLS log project ID
- tls
Topic StringId - TLS log topic ID.
FunctionTosMountConfig, FunctionTosMountConfigArgs
- Credentials
Volcengine.
Function Tos Mount Config Credentials - AKSK with TOS domain access permission.
- Enable
Tos bool - Enable TOS storage mount.
- Mount
Points List<Volcengine.Function Tos Mount Config Mount Point>
- Credentials
Function
Tos Mount Config Credentials - AKSK with TOS domain access permission.
- Enable
Tos bool - Enable TOS storage mount.
- Mount
Points []FunctionTos Mount Config Mount Point
- credentials
Function
Tos Mount Config Credentials - AKSK with TOS domain access permission.
- enable
Tos Boolean - Enable TOS storage mount.
- mount
Points List<FunctionTos Mount Config Mount Point>
- credentials
Function
Tos Mount Config Credentials - AKSK with TOS domain access permission.
- enable
Tos boolean - Enable TOS storage mount.
- mount
Points FunctionTos Mount Config Mount Point[]
- credentials
Function
Tos Mount Config Credentials - AKSK with TOS domain access permission.
- enable_
tos bool - Enable TOS storage mount.
- mount_
points Sequence[FunctionTos Mount Config Mount Point]
- credentials Property Map
- AKSK with TOS domain access permission.
- enable
Tos Boolean - Enable TOS storage mount.
- mount
Points List<Property Map>
FunctionTosMountConfigCredentials, FunctionTosMountConfigCredentialsArgs
- Access
Key stringId - Account AccessKey ID
- Secret
Access stringKey - Account Secret Access Key
- Access
Key stringId - Account AccessKey ID
- Secret
Access stringKey - Account Secret Access Key
- access
Key StringId - Account AccessKey ID
- secret
Access StringKey - Account Secret Access Key
- access
Key stringId - Account AccessKey ID
- secret
Access stringKey - Account Secret Access Key
- access_
key_ strid - Account AccessKey ID
- secret_
access_ strkey - Account Secret Access Key
- access
Key StringId - Account AccessKey ID
- secret
Access StringKey - Account Secret Access Key
FunctionTosMountConfigMountPoint, FunctionTosMountConfigMountPointArgs
- Bucket
Name string - TOS bucket name.
- Bucket
Path string - Mounted TOS Bucket path.
- Endpoint string
- TOS access domain name.
- Local
Mount stringPath - Function local mount directory.
- Read
Only bool - Function local directory access permission. After mounting a TOS bucket, whether the function's local mount directory is read-only. true: read-only; false (default): read/write
- Bucket
Name string - TOS bucket name.
- Bucket
Path string - Mounted TOS Bucket path.
- Endpoint string
- TOS access domain name.
- Local
Mount stringPath - Function local mount directory.
- Read
Only bool - Function local directory access permission. After mounting a TOS bucket, whether the function's local mount directory is read-only. true: read-only; false (default): read/write
- bucket
Name String - TOS bucket name.
- bucket
Path String - Mounted TOS Bucket path.
- endpoint String
- TOS access domain name.
- local
Mount StringPath - Function local mount directory.
- read
Only Boolean - Function local directory access permission. After mounting a TOS bucket, whether the function's local mount directory is read-only. true: read-only; false (default): read/write
- bucket
Name string - TOS bucket name.
- bucket
Path string - Mounted TOS Bucket path.
- endpoint string
- TOS access domain name.
- local
Mount stringPath - Function local mount directory.
- read
Only boolean - Function local directory access permission. After mounting a TOS bucket, whether the function's local mount directory is read-only. true: read-only; false (default): read/write
- bucket_
name str - TOS bucket name.
- bucket_
path str - Mounted TOS Bucket path.
- endpoint str
- TOS access domain name.
- local_
mount_ strpath - Function local mount directory.
- read_
only bool - Function local directory access permission. After mounting a TOS bucket, whether the function's local mount directory is read-only. true: read-only; false (default): read/write
- bucket
Name String - TOS bucket name.
- bucket
Path String - Mounted TOS Bucket path.
- endpoint String
- TOS access domain name.
- local
Mount StringPath - Function local mount directory.
- read
Only Boolean - Function local directory access permission. After mounting a TOS bucket, whether the function's local mount directory is read-only. true: read-only; false (default): read/write
FunctionVpcConfig, FunctionVpcConfigArgs
- bool
- Function public network access switch. Whether to access the public network via veFaaS VPC shared NAT gateway. Values: true: enabled, access public network via default network interface. Public outbound traffic fees apply. false: disabled, function cannot access public network via default network interface.
- Enable
Vpc bool - Whether the function enables private network access
- Security
Group List<string>Ids - Security group ID
- Subnet
Ids List<string> - Subnet ID
- Vpc
Id string - VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
- bool
- Function public network access switch. Whether to access the public network via veFaaS VPC shared NAT gateway. Values: true: enabled, access public network via default network interface. Public outbound traffic fees apply. false: disabled, function cannot access public network via default network interface.
- Enable
Vpc bool - Whether the function enables private network access
- Security
Group []stringIds - Security group ID
- Subnet
Ids []string - Subnet ID
- Vpc
Id string - VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
- Boolean
- Function public network access switch. Whether to access the public network via veFaaS VPC shared NAT gateway. Values: true: enabled, access public network via default network interface. Public outbound traffic fees apply. false: disabled, function cannot access public network via default network interface.
- enable
Vpc Boolean - Whether the function enables private network access
- security
Group List<String>Ids - Security group ID
- subnet
Ids List<String> - Subnet ID
- vpc
Id String - VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
- boolean
- Function public network access switch. Whether to access the public network via veFaaS VPC shared NAT gateway. Values: true: enabled, access public network via default network interface. Public outbound traffic fees apply. false: disabled, function cannot access public network via default network interface.
- enable
Vpc boolean - Whether the function enables private network access
- security
Group string[]Ids - Security group ID
- subnet
Ids string[] - Subnet ID
- vpc
Id string - VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
- bool
- Function public network access switch. Whether to access the public network via veFaaS VPC shared NAT gateway. Values: true: enabled, access public network via default network interface. Public outbound traffic fees apply. false: disabled, function cannot access public network via default network interface.
- enable_
vpc bool - Whether the function enables private network access
- security_
group_ Sequence[str]ids - Security group ID
- subnet_
ids Sequence[str] - Subnet ID
- vpc_
id str - VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
- Boolean
- Function public network access switch. Whether to access the public network via veFaaS VPC shared NAT gateway. Values: true: enabled, access public network via default network interface. Public outbound traffic fees apply. false: disabled, function cannot access public network via default network interface.
- enable
Vpc Boolean - Whether the function enables private network access
- security
Group List<String>Ids - Security group ID
- subnet
Ids List<String> - Subnet ID
- vpc
Id String - VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
Import
$ pulumi import volcenginecc:vefaas/function:Function example "function_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
