1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. vefaas
  6. Function
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
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:

    AsyncTaskConfig Volcengine.FunctionAsyncTaskConfig
    Asynchronous task configuration
    Command string
    Custom startup command for the instance (currently only supported in native/v1 runtime)
    CpuStrategy 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
    EnableApmplus bool
    Whether to enable application monitoring
    Envs List<Volcengine.FunctionEnv>
    ExclusiveMode 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.
    InitializerSec int
    Function initialization timeout configuration
    MaxConcurrency int
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    MemoryMb 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.
    NasStorage Volcengine.FunctionNasStorage
    NAS file storage mount configuration
    Port int
    Custom listening port for the instance (currently only supported in native/v1 runtime)
    ProjectName string
    Project name associated with the function
    RequestTimeout 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
    SourceAccessConfig Volcengine.FunctionSourceAccessConfig
    Image repository access configuration.
    SourceType string
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    Tags List<Volcengine.FunctionTag>
    TlsConfig Volcengine.FunctionTlsConfig
    TLS configuration for Log Service
    TosMountConfig Volcengine.FunctionTosMountConfig
    TOS object storage mount configuration
    VpcConfig Volcengine.FunctionVpcConfig
    Private network VPC configuration.
    AsyncTaskConfig FunctionAsyncTaskConfigArgs
    Asynchronous task configuration
    Command string
    Custom startup command for the instance (currently only supported in native/v1 runtime)
    CpuStrategy 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
    EnableApmplus bool
    Whether to enable application monitoring
    Envs []FunctionEnvArgs
    ExclusiveMode 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.
    InitializerSec int
    Function initialization timeout configuration
    MaxConcurrency int
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    MemoryMb 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.
    NasStorage FunctionNasStorageArgs
    NAS file storage mount configuration
    Port int
    Custom listening port for the instance (currently only supported in native/v1 runtime)
    ProjectName string
    Project name associated with the function
    RequestTimeout 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
    SourceAccessConfig FunctionSourceAccessConfigArgs
    Image repository access configuration.
    SourceType string
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    Tags []FunctionTagArgs
    TlsConfig FunctionTlsConfigArgs
    TLS configuration for Log Service
    TosMountConfig FunctionTosMountConfigArgs
    TOS object storage mount configuration
    VpcConfig FunctionVpcConfigArgs
    Private network VPC configuration.
    asyncTaskConfig FunctionAsyncTaskConfig
    Asynchronous task configuration
    command String
    Custom startup command for the instance (currently only supported in native/v1 runtime)
    cpuStrategy 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
    enableApmplus Boolean
    Whether to enable application monitoring
    envs List<FunctionEnv>
    exclusiveMode 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.
    initializerSec Integer
    Function initialization timeout configuration
    maxConcurrency Integer
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    memoryMb 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.
    nasStorage FunctionNasStorage
    NAS file storage mount configuration
    port Integer
    Custom listening port for the instance (currently only supported in native/v1 runtime)
    projectName String
    Project name associated with the function
    requestTimeout 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
    sourceAccessConfig FunctionSourceAccessConfig
    Image repository access configuration.
    sourceType String
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    tags List<FunctionTag>
    tlsConfig FunctionTlsConfig
    TLS configuration for Log Service
    tosMountConfig FunctionTosMountConfig
    TOS object storage mount configuration
    vpcConfig FunctionVpcConfig
    Private network VPC configuration.
    asyncTaskConfig FunctionAsyncTaskConfig
    Asynchronous task configuration
    command string
    Custom startup command for the instance (currently only supported in native/v1 runtime)
    cpuStrategy 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
    enableApmplus boolean
    Whether to enable application monitoring
    envs FunctionEnv[]
    exclusiveMode 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.
    initializerSec number
    Function initialization timeout configuration
    maxConcurrency number
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    memoryMb 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.
    nasStorage FunctionNasStorage
    NAS file storage mount configuration
    port number
    Custom listening port for the instance (currently only supported in native/v1 runtime)
    projectName string
    Project name associated with the function
    requestTimeout 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
    sourceAccessConfig FunctionSourceAccessConfig
    Image repository access configuration.
    sourceType string
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    tags FunctionTag[]
    tlsConfig FunctionTlsConfig
    TLS configuration for Log Service
    tosMountConfig FunctionTosMountConfig
    TOS object storage mount configuration
    vpcConfig FunctionVpcConfig
    Private network VPC configuration.
    async_task_config FunctionAsyncTaskConfigArgs
    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[FunctionEnvArgs]
    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 FunctionNasStorageArgs
    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_config FunctionSourceAccessConfigArgs
    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
    tags Sequence[FunctionTagArgs]
    tls_config FunctionTlsConfigArgs
    TLS configuration for Log Service
    tos_mount_config FunctionTosMountConfigArgs
    TOS object storage mount configuration
    vpc_config FunctionVpcConfigArgs
    Private network VPC configuration.
    asyncTaskConfig Property Map
    Asynchronous task configuration
    command String
    Custom startup command for the instance (currently only supported in native/v1 runtime)
    cpuStrategy 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
    enableApmplus Boolean
    Whether to enable application monitoring
    envs List<Property Map>
    exclusiveMode 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.
    initializerSec Number
    Function initialization timeout configuration
    maxConcurrency Number
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    memoryMb 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.
    nasStorage Property Map
    NAS file storage mount configuration
    port Number
    Custom listening port for the instance (currently only supported in native/v1 runtime)
    projectName String
    Project name associated with the function
    requestTimeout 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
    sourceAccessConfig Property Map
    Image repository access configuration.
    sourceType String
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    tags List<Property Map>
    tlsConfig Property Map
    TLS configuration for Log Service
    tosMountConfig Property Map
    TOS object storage mount configuration
    vpcConfig 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:

    CodeSize int
    Code package size (MB).
    CodeSizeLimit int
    Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
    CreationTime string
    Function creation time
    FunctionId string
    Function ID
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceType string
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    LastUpdateTime string
    Function update time.
    Owner string
    Function owner (Account Id).
    TriggersCount int
    Number of triggers for this function.
    CodeSize int
    Code package size (MB).
    CodeSizeLimit int
    Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
    CreationTime string
    Function creation time
    FunctionId string
    Function ID
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceType string
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    LastUpdateTime string
    Function update time.
    Owner string
    Function owner (Account Id).
    TriggersCount int
    Number of triggers for this function.
    codeSize Integer
    Code package size (MB).
    codeSizeLimit Integer
    Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
    creationTime String
    Function creation time
    functionId String
    Function ID
    id String
    The provider-assigned unique ID for this managed resource.
    instanceType String
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    lastUpdateTime String
    Function update time.
    owner String
    Function owner (Account Id).
    triggersCount Integer
    Number of triggers for this function.
    codeSize number
    Code package size (MB).
    codeSizeLimit number
    Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
    creationTime string
    Function creation time
    functionId string
    Function ID
    id string
    The provider-assigned unique ID for this managed resource.
    instanceType string
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    lastUpdateTime string
    Function update time.
    owner string
    Function owner (Account Id).
    triggersCount number
    Number of triggers for this function.
    code_size int
    Code package size (MB).
    code_size_limit int
    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_time str
    Function update time.
    owner str
    Function owner (Account Id).
    triggers_count int
    Number of triggers for this function.
    codeSize Number
    Code package size (MB).
    codeSizeLimit Number
    Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB.
    creationTime String
    Function creation time
    functionId String
    Function ID
    id String
    The provider-assigned unique ID for this managed resource.
    instanceType String
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    lastUpdateTime String
    Function update time.
    owner String
    Function owner (Account Id).
    triggersCount 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) -> Function
    func 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.
    The following state arguments are supported:
    AsyncTaskConfig Volcengine.FunctionAsyncTaskConfig
    Asynchronous task configuration
    CodeSize int
    Code package size (MB).
    CodeSizeLimit int
    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)
    CpuStrategy 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
    CreationTime string
    Function creation time
    Description string
    Function description. Up to 1000 Unicode characters
    EnableApmplus bool
    Whether to enable application monitoring
    Envs List<Volcengine.FunctionEnv>
    ExclusiveMode 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.
    FunctionId string
    Function ID
    InitializerSec int
    Function initialization timeout configuration
    InstanceType string
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    LastUpdateTime string
    Function update time.
    MaxConcurrency int
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    MemoryMb 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.
    NasStorage Volcengine.FunctionNasStorage
    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)
    ProjectName string
    Project name associated with the function
    RequestTimeout 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
    SourceAccessConfig Volcengine.FunctionSourceAccessConfig
    Image repository access configuration.
    SourceType string
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    Tags List<Volcengine.FunctionTag>
    TlsConfig Volcengine.FunctionTlsConfig
    TLS configuration for Log Service
    TosMountConfig Volcengine.FunctionTosMountConfig
    TOS object storage mount configuration
    TriggersCount int
    Number of triggers for this function.
    VpcConfig Volcengine.FunctionVpcConfig
    Private network VPC configuration.
    AsyncTaskConfig FunctionAsyncTaskConfigArgs
    Asynchronous task configuration
    CodeSize int
    Code package size (MB).
    CodeSizeLimit int
    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)
    CpuStrategy 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
    CreationTime string
    Function creation time
    Description string
    Function description. Up to 1000 Unicode characters
    EnableApmplus bool
    Whether to enable application monitoring
    Envs []FunctionEnvArgs
    ExclusiveMode 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.
    FunctionId string
    Function ID
    InitializerSec int
    Function initialization timeout configuration
    InstanceType string
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    LastUpdateTime string
    Function update time.
    MaxConcurrency int
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    MemoryMb 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.
    NasStorage FunctionNasStorageArgs
    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)
    ProjectName string
    Project name associated with the function
    RequestTimeout 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
    SourceAccessConfig FunctionSourceAccessConfigArgs
    Image repository access configuration.
    SourceType string
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    Tags []FunctionTagArgs
    TlsConfig FunctionTlsConfigArgs
    TLS configuration for Log Service
    TosMountConfig FunctionTosMountConfigArgs
    TOS object storage mount configuration
    TriggersCount int
    Number of triggers for this function.
    VpcConfig FunctionVpcConfigArgs
    Private network VPC configuration.
    asyncTaskConfig FunctionAsyncTaskConfig
    Asynchronous task configuration
    codeSize Integer
    Code package size (MB).
    codeSizeLimit Integer
    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)
    cpuStrategy 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
    creationTime String
    Function creation time
    description String
    Function description. Up to 1000 Unicode characters
    enableApmplus Boolean
    Whether to enable application monitoring
    envs List<FunctionEnv>
    exclusiveMode 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.
    functionId String
    Function ID
    initializerSec Integer
    Function initialization timeout configuration
    instanceType String
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    lastUpdateTime String
    Function update time.
    maxConcurrency Integer
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    memoryMb 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.
    nasStorage FunctionNasStorage
    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)
    projectName String
    Project name associated with the function
    requestTimeout 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
    sourceAccessConfig FunctionSourceAccessConfig
    Image repository access configuration.
    sourceType String
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    tags List<FunctionTag>
    tlsConfig FunctionTlsConfig
    TLS configuration for Log Service
    tosMountConfig FunctionTosMountConfig
    TOS object storage mount configuration
    triggersCount Integer
    Number of triggers for this function.
    vpcConfig FunctionVpcConfig
    Private network VPC configuration.
    asyncTaskConfig FunctionAsyncTaskConfig
    Asynchronous task configuration
    codeSize number
    Code package size (MB).
    codeSizeLimit number
    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)
    cpuStrategy 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
    creationTime string
    Function creation time
    description string
    Function description. Up to 1000 Unicode characters
    enableApmplus boolean
    Whether to enable application monitoring
    envs FunctionEnv[]
    exclusiveMode 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.
    functionId string
    Function ID
    initializerSec number
    Function initialization timeout configuration
    instanceType string
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    lastUpdateTime string
    Function update time.
    maxConcurrency number
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    memoryMb 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.
    nasStorage FunctionNasStorage
    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)
    projectName string
    Project name associated with the function
    requestTimeout 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
    sourceAccessConfig FunctionSourceAccessConfig
    Image repository access configuration.
    sourceType string
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    tags FunctionTag[]
    tlsConfig FunctionTlsConfig
    TLS configuration for Log Service
    tosMountConfig FunctionTosMountConfig
    TOS object storage mount configuration
    triggersCount number
    Number of triggers for this function.
    vpcConfig FunctionVpcConfig
    Private network VPC configuration.
    async_task_config FunctionAsyncTaskConfigArgs
    Asynchronous task configuration
    code_size int
    Code package size (MB).
    code_size_limit int
    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[FunctionEnvArgs]
    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_time str
    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 FunctionNasStorageArgs
    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_config FunctionSourceAccessConfigArgs
    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
    tags Sequence[FunctionTagArgs]
    tls_config FunctionTlsConfigArgs
    TLS configuration for Log Service
    tos_mount_config FunctionTosMountConfigArgs
    TOS object storage mount configuration
    triggers_count int
    Number of triggers for this function.
    vpc_config FunctionVpcConfigArgs
    Private network VPC configuration.
    asyncTaskConfig Property Map
    Asynchronous task configuration
    codeSize Number
    Code package size (MB).
    codeSizeLimit Number
    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)
    cpuStrategy 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
    creationTime String
    Function creation time
    description String
    Function description. Up to 1000 Unicode characters
    enableApmplus Boolean
    Whether to enable application monitoring
    envs List<Property Map>
    exclusiveMode 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.
    functionId String
    Function ID
    initializerSec Number
    Function initialization timeout configuration
    instanceType String
    Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance.
    lastUpdateTime String
    Function update time.
    maxConcurrency Number
    Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000
    memoryMb 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.
    nasStorage 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)
    projectName String
    Project name associated with the function
    requestTimeout 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
    sourceAccessConfig Property Map
    Image repository access configuration.
    sourceType String
    Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions
    tags List<Property Map>
    tlsConfig Property Map
    TLS configuration for Log Service
    tosMountConfig Property Map
    TOS object storage mount configuration
    triggersCount Number
    Number of triggers for this function.
    vpcConfig Property Map
    Private network VPC configuration.

    Supporting Types

    FunctionAsyncTaskConfig, FunctionAsyncTaskConfigArgs

    DestinationConfig Volcengine.FunctionAsyncTaskConfigDestinationConfig
    Asynchronous task callback target configuration
    EnableAsyncTask bool
    Whether to enable asynchronous task
    MaxRetry int
    Number of retry attempts for asynchronous task failures. Available values: 0–3
    DestinationConfig FunctionAsyncTaskConfigDestinationConfig
    Asynchronous task callback target configuration
    EnableAsyncTask bool
    Whether to enable asynchronous task
    MaxRetry int
    Number of retry attempts for asynchronous task failures. Available values: 0–3
    destinationConfig FunctionAsyncTaskConfigDestinationConfig
    Asynchronous task callback target configuration
    enableAsyncTask Boolean
    Whether to enable asynchronous task
    maxRetry Integer
    Number of retry attempts for asynchronous task failures. Available values: 0–3
    destinationConfig FunctionAsyncTaskConfigDestinationConfig
    Asynchronous task callback target configuration
    enableAsyncTask boolean
    Whether to enable asynchronous task
    maxRetry number
    Number of retry attempts for asynchronous task failures. Available values: 0–3
    destination_config FunctionAsyncTaskConfigDestinationConfig
    Asynchronous task callback target configuration
    enable_async_task bool
    Whether to enable asynchronous task
    max_retry int
    Number of retry attempts for asynchronous task failures. Available values: 0–3
    destinationConfig Property Map
    Asynchronous task callback target configuration
    enableAsyncTask Boolean
    Whether to enable asynchronous task
    maxRetry Number
    Number of retry attempts for asynchronous task failures. Available values: 0–3

    FunctionAsyncTaskConfigDestinationConfig, FunctionAsyncTaskConfigDestinationConfigArgs

    OnFailure Volcengine.FunctionAsyncTaskConfigDestinationConfigOnFailure
    Callback target configuration when the task fails
    OnSuccess Volcengine.FunctionAsyncTaskConfigDestinationConfigOnSuccess
    Callback target configuration when the task succeeds
    OnFailure FunctionAsyncTaskConfigDestinationConfigOnFailure
    Callback target configuration when the task fails
    OnSuccess FunctionAsyncTaskConfigDestinationConfigOnSuccess
    Callback target configuration when the task succeeds
    onFailure FunctionAsyncTaskConfigDestinationConfigOnFailure
    Callback target configuration when the task fails
    onSuccess FunctionAsyncTaskConfigDestinationConfigOnSuccess
    Callback target configuration when the task succeeds
    onFailure FunctionAsyncTaskConfigDestinationConfigOnFailure
    Callback target configuration when the task fails
    onSuccess FunctionAsyncTaskConfigDestinationConfigOnSuccess
    Callback target configuration when the task succeeds
    on_failure FunctionAsyncTaskConfigDestinationConfigOnFailure
    Callback target configuration when the task fails
    on_success FunctionAsyncTaskConfigDestinationConfigOnSuccess
    Callback target configuration when the task succeeds
    onFailure Property Map
    Callback target configuration when the task fails
    onSuccess 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

    Key string
    Environment variable key. 1–63 characters; can include letters, numbers, and underscores (_), but cannot start with a number. Key must be unique within the same function
    Value string
    Environment variable value
    Key string
    Environment variable key. 1–63 characters; can include letters, numbers, and underscores (_), but cannot start with a number. Key must be unique within the same function
    Value string
    Environment variable value
    key String
    Environment variable key. 1–63 characters; can include letters, numbers, and underscores (_), but cannot start with a number. Key must be unique within the same function
    value String
    Environment variable value
    key string
    Environment variable key. 1–63 characters; can include letters, numbers, and underscores (_), but cannot start with a number. Key must be unique within the same function
    value string
    Environment variable value
    key str
    Environment variable key. 1–63 characters; can include letters, numbers, and underscores (_), but cannot start with a number. Key must be unique within the same function
    value str
    Environment variable value
    key String
    Environment variable key. 1–63 characters; can include letters, numbers, and underscores (_), but cannot start with a number. Key must be unique within the same function
    value String
    Environment variable value

    FunctionNasStorage, FunctionNasStorageArgs

    EnableNas bool
    Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
    NasConfigs List<Volcengine.FunctionNasStorageNasConfig>
    EnableNas bool
    Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
    NasConfigs []FunctionNasStorageNasConfig
    enableNas Boolean
    Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
    nasConfigs List<FunctionNasStorageNasConfig>
    enableNas boolean
    Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
    nasConfigs FunctionNasStorageNasConfig[]
    enable_nas bool
    Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
    nas_configs Sequence[FunctionNasStorageNasConfig]
    enableNas Boolean
    Enable NAS storage mount. true: enabled, store data in NAS. false: disabled.
    nasConfigs List<Property Map>

    FunctionNasStorageNasConfig, FunctionNasStorageNasConfigArgs

    FileSystemId string
    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)
    LocalMountPath string
    Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
    MountPointId string
    NAS mount point ID
    RemotePath 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).
    FileSystemId string
    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)
    LocalMountPath string
    Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
    MountPointId string
    NAS mount point ID
    RemotePath 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).
    fileSystemId String
    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)
    localMountPath String
    Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
    mountPointId String
    NAS mount point ID
    remotePath 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).
    fileSystemId string
    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)
    localMountPath string
    Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
    mountPointId string
    NAS mount point ID
    remotePath 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_id str
    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_path str
    Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
    mount_point_id str
    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).
    fileSystemId String
    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)
    localMountPath String
    Function local mount directory. Length: 1–128 characters, must start with “/”, supports uppercase and lowercase letters, numbers, and special characters ( - . _ ~ / : @ = + ? #).
    mountPointId String
    NAS mount point ID
    remotePath 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

    Password string
    Image repository password
    Username string
    Image repository username
    Password string
    Image repository password
    Username string
    Image repository username
    password String
    Image repository password
    username String
    Image repository username
    password string
    Image repository password
    username string
    Image repository username
    password str
    Image repository password
    username str
    Image repository username
    password String
    Image repository password
    username String
    Image repository username

    FunctionTag, FunctionTagArgs

    Key string
    Function tag key
    Value string
    Function tag value
    Key string
    Function tag key
    Value string
    Function tag value
    key String
    Function tag key
    value String
    Function tag value
    key string
    Function tag key
    value string
    Function tag value
    key str
    Function tag key
    value str
    Function tag value
    key String
    Function tag key
    value String
    Function tag value

    FunctionTlsConfig, FunctionTlsConfigArgs

    EnableLog 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
    TlsProjectId string
    TLS log project ID
    TlsTopicId string
    TLS log topic ID.
    EnableLog 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
    TlsProjectId string
    TLS log project ID
    TlsTopicId string
    TLS log topic ID.
    enableLog 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
    tlsProjectId String
    TLS log project ID
    tlsTopicId String
    TLS log topic ID.
    enableLog 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
    tlsProjectId string
    TLS log project ID
    tlsTopicId string
    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_id str
    TLS log project ID
    tls_topic_id str
    TLS log topic ID.
    enableLog 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
    tlsProjectId String
    TLS log project ID
    tlsTopicId String
    TLS log topic ID.

    FunctionTosMountConfig, FunctionTosMountConfigArgs

    Credentials FunctionTosMountConfigCredentials
    AKSK with TOS domain access permission.
    EnableTos bool
    Enable TOS storage mount.
    MountPoints []FunctionTosMountConfigMountPoint
    credentials FunctionTosMountConfigCredentials
    AKSK with TOS domain access permission.
    enableTos Boolean
    Enable TOS storage mount.
    mountPoints List<FunctionTosMountConfigMountPoint>
    credentials FunctionTosMountConfigCredentials
    AKSK with TOS domain access permission.
    enableTos boolean
    Enable TOS storage mount.
    mountPoints FunctionTosMountConfigMountPoint[]
    credentials Property Map
    AKSK with TOS domain access permission.
    enableTos Boolean
    Enable TOS storage mount.
    mountPoints List<Property Map>

    FunctionTosMountConfigCredentials, FunctionTosMountConfigCredentialsArgs

    AccessKeyId string
    Account AccessKey ID
    SecretAccessKey string
    Account Secret Access Key
    AccessKeyId string
    Account AccessKey ID
    SecretAccessKey string
    Account Secret Access Key
    accessKeyId String
    Account AccessKey ID
    secretAccessKey String
    Account Secret Access Key
    accessKeyId string
    Account AccessKey ID
    secretAccessKey string
    Account Secret Access Key
    access_key_id str
    Account AccessKey ID
    secret_access_key str
    Account Secret Access Key
    accessKeyId String
    Account AccessKey ID
    secretAccessKey String
    Account Secret Access Key

    FunctionTosMountConfigMountPoint, FunctionTosMountConfigMountPointArgs

    BucketName string
    TOS bucket name.
    BucketPath string
    Mounted TOS Bucket path.
    Endpoint string
    TOS access domain name.
    LocalMountPath string
    Function local mount directory.
    ReadOnly 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
    BucketName string
    TOS bucket name.
    BucketPath string
    Mounted TOS Bucket path.
    Endpoint string
    TOS access domain name.
    LocalMountPath string
    Function local mount directory.
    ReadOnly 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
    bucketName String
    TOS bucket name.
    bucketPath String
    Mounted TOS Bucket path.
    endpoint String
    TOS access domain name.
    localMountPath String
    Function local mount directory.
    readOnly 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
    bucketName string
    TOS bucket name.
    bucketPath string
    Mounted TOS Bucket path.
    endpoint string
    TOS access domain name.
    localMountPath string
    Function local mount directory.
    readOnly 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_path str
    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
    bucketName String
    TOS bucket name.
    bucketPath String
    Mounted TOS Bucket path.
    endpoint String
    TOS access domain name.
    localMountPath String
    Function local mount directory.
    readOnly 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

    EnableSharedInternetAccess 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.
    EnableVpc bool
    Whether the function enables private network access
    SecurityGroupIds List<string>
    Security group ID
    SubnetIds List<string>
    Subnet ID
    VpcId string
    VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
    EnableSharedInternetAccess 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.
    EnableVpc bool
    Whether the function enables private network access
    SecurityGroupIds []string
    Security group ID
    SubnetIds []string
    Subnet ID
    VpcId string
    VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
    enableSharedInternetAccess 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.
    enableVpc Boolean
    Whether the function enables private network access
    securityGroupIds List<String>
    Security group ID
    subnetIds List<String>
    Subnet ID
    vpcId String
    VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
    enableSharedInternetAccess 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.
    enableVpc boolean
    Whether the function enables private network access
    securityGroupIds string[]
    Security group ID
    subnetIds string[]
    Subnet ID
    vpcId string
    VPC ID. If the VPC ID is an empty string, it means the current VPC configuration will be deleted
    enable_shared_internet_access 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_ids Sequence[str]
    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
    enableSharedInternetAccess 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.
    enableVpc Boolean
    Whether the function enables private network access
    securityGroupIds List<String>
    Security group ID
    subnetIds List<String>
    Subnet ID
    vpcId 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 volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.