import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::VEFAAS::Function */ export declare function getFunction(args: GetFunctionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getFunction. */ export interface GetFunctionArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getFunction. */ export interface GetFunctionResult { /** * Asynchronous task configuration */ readonly asyncTaskConfig: outputs.vefaas.GetFunctionAsyncTaskConfig; /** * Code package size (MB). */ readonly codeSize: number; /** * Code package size limit. SourceType=zip, CodeSizeLimit=15MB. SourceType=tos, CodeSizeLimit=256MB. */ readonly codeSizeLimit: number; /** * Custom startup command for the instance (currently only supported in native/v1 runtime) */ readonly command: 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 */ readonly cpuStrategy: string; /** * Function creation time */ readonly creationTime: string; /** * Dependency installation task status. */ readonly dependencyInstallStatus: outputs.vefaas.GetFunctionDependencyInstallStatus; /** * Function description. Up to 1000 Unicode characters */ readonly description: string; /** * Whether to enable application monitoring */ readonly enableApmplus: boolean; /** * Enable function dependency installation. true: Enabled. The function installs dependencies after creation. false: Disabled. The function does not automatically install dependencies. */ readonly enableDependencyInstall: boolean; /** * Environment variables. */ readonly envs: outputs.vefaas.GetFunctionEnv[]; /** * 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. */ readonly exclusiveMode: boolean; /** * Function ID */ readonly functionId: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * Function initialization timeout configuration */ readonly initializerSec: number; /** * Instance type of the function instance. Null value: CPU instance. Non-null value: GPU instance. */ readonly instanceType: string; /** * Function update time. */ readonly lastUpdateTime: string; /** * Maximum concurrency per instance. Effective when ExclusiveMode = false. Range: 1–1000 */ readonly maxConcurrency: number; /** * Maximum memory per instance, unit: MiB. Range: 512–4096, in increments of 512. Default: 1024 */ readonly memoryMb: number; /** * 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. */ readonly name: string; /** * NAS file storage mount configuration */ readonly nasStorage: outputs.vefaas.GetFunctionNasStorage; /** * Function owner (Account Id). */ readonly owner: string; /** * Custom listening port for the instance (currently only supported in native/v1 runtime) */ readonly port: number; /** * Project name associated with the function */ readonly projectName: string; /** * Request timeout. Unit: seconds. Range: 1–900. Default: 30. */ readonly requestTimeout: number; /** * IAM role bound to the function instance */ readonly role: 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. */ readonly runtime: string; /** * Code source. Values: zip: Base64-encoded binary ZIP file; tos: string in the format bucket*name:object*key; image: image address in the format host/namespace/repo:tag */ readonly source: string; /** * Image repository access configuration. */ readonly sourceAccessConfig: outputs.vefaas.GetFunctionSourceAccessConfig; /** * Code source type. Values: tos: object storage (TOS); zip: local compressed file; image: image repository (CR), supports Basic and Enterprise editions */ readonly sourceType: string; /** * Function tags */ readonly tags: outputs.vefaas.GetFunctionTag[]; /** * TLS configuration for Log Service */ readonly tlsConfig: outputs.vefaas.GetFunctionTlsConfig; /** * TOS object storage mount configuration */ readonly tosMountConfig: outputs.vefaas.GetFunctionTosMountConfig; /** * Number of triggers for this function. */ readonly triggersCount: number; /** * Private network VPC configuration. */ readonly vpcConfig: outputs.vefaas.GetFunctionVpcConfig; } /** * Data Source schema for Volcengine::VEFAAS::Function */ export declare function getFunctionOutput(args: GetFunctionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getFunction. */ export interface GetFunctionOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }