1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. fc
  5. V2Function
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

alicloud.fc.V2Function

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

    Provides a FCV2 Function resource. Function is the unit of system scheduling and operation. Functions must be subordinate to services. All functions under the same service share some identical settings, such as service authorization and log configuration.

    For information about FCV2 Function and how to use it, see What is Function.

    NOTE: Available since v1.208.0.

    Create V2Function Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new V2Function(name: string, args: V2FunctionArgs, opts?: CustomResourceOptions);
    @overload
    def V2Function(resource_name: str,
                   args: V2FunctionArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def V2Function(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   function_name: Optional[str] = None,
                   service_name: Optional[str] = None,
                   runtime: Optional[str] = None,
                   handler: Optional[str] = None,
                   gpu_memory_size: Optional[int] = None,
                   cpu: Optional[float] = None,
                   custom_health_check_config: Optional[V2FunctionCustomHealthCheckConfigArgs] = None,
                   custom_runtime_config: Optional[V2FunctionCustomRuntimeConfigArgs] = None,
                   description: Optional[str] = None,
                   disk_size: Optional[int] = None,
                   environment_variables: Optional[Mapping[str, str]] = None,
                   custom_container_config: Optional[V2FunctionCustomContainerConfigArgs] = None,
                   ca_port: Optional[int] = None,
                   custom_dns: Optional[V2FunctionCustomDnsArgs] = None,
                   initialization_timeout: Optional[int] = None,
                   initializer: Optional[str] = None,
                   instance_concurrency: Optional[int] = None,
                   instance_lifecycle_config: Optional[V2FunctionInstanceLifecycleConfigArgs] = None,
                   instance_type: Optional[str] = None,
                   layers: Optional[Sequence[str]] = None,
                   memory_size: Optional[int] = None,
                   code_checksum: Optional[str] = None,
                   code: Optional[V2FunctionCodeArgs] = None,
                   timeout: Optional[int] = None)
    func NewV2Function(ctx *Context, name string, args V2FunctionArgs, opts ...ResourceOption) (*V2Function, error)
    public V2Function(string name, V2FunctionArgs args, CustomResourceOptions? opts = null)
    public V2Function(String name, V2FunctionArgs args)
    public V2Function(String name, V2FunctionArgs args, CustomResourceOptions options)
    
    type: alicloud:fc:V2Function
    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 V2FunctionArgs
    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 V2FunctionArgs
    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 V2FunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V2FunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V2FunctionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var v2functionResource = new AliCloud.FC.V2Function("v2functionResource", new()
    {
        FunctionName = "string",
        ServiceName = "string",
        Runtime = "string",
        Handler = "string",
        GpuMemorySize = 0,
        Cpu = 0,
        CustomHealthCheckConfig = new AliCloud.FC.Inputs.V2FunctionCustomHealthCheckConfigArgs
        {
            FailureThreshold = 0,
            HttpGetUrl = "string",
            InitialDelaySeconds = 0,
            PeriodSeconds = 0,
            SuccessThreshold = 0,
            TimeoutSeconds = 0,
        },
        CustomRuntimeConfig = new AliCloud.FC.Inputs.V2FunctionCustomRuntimeConfigArgs
        {
            Args = new[]
            {
                "string",
            },
            Commands = new[]
            {
                "string",
            },
        },
        Description = "string",
        DiskSize = 0,
        EnvironmentVariables = 
        {
            { "string", "string" },
        },
        CustomContainerConfig = new AliCloud.FC.Inputs.V2FunctionCustomContainerConfigArgs
        {
            AccelerationType = "string",
            Args = "string",
            Command = "string",
            Image = "string",
            WebServerMode = false,
        },
        CaPort = 0,
        CustomDns = new AliCloud.FC.Inputs.V2FunctionCustomDnsArgs
        {
            DnsOptions = new[]
            {
                new AliCloud.FC.Inputs.V2FunctionCustomDnsDnsOptionArgs
                {
                    Name = "string",
                    Value = "string",
                },
            },
            NameServers = new[]
            {
                "string",
            },
            Searches = new[]
            {
                "string",
            },
        },
        InitializationTimeout = 0,
        Initializer = "string",
        InstanceConcurrency = 0,
        InstanceLifecycleConfig = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigArgs
        {
            PreFreeze = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreFreezeArgs
            {
                Handler = "string",
                Timeout = 0,
            },
            PreStop = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreStopArgs
            {
                Handler = "string",
                Timeout = 0,
            },
        },
        InstanceType = "string",
        Layers = new[]
        {
            "string",
        },
        MemorySize = 0,
        CodeChecksum = "string",
        Code = new AliCloud.FC.Inputs.V2FunctionCodeArgs
        {
            OssBucketName = "string",
            OssObjectName = "string",
            ZipFile = "string",
        },
        Timeout = 0,
    });
    
    example, err := fc.NewV2Function(ctx, "v2functionResource", &fc.V2FunctionArgs{
    	FunctionName:  pulumi.String("string"),
    	ServiceName:   pulumi.String("string"),
    	Runtime:       pulumi.String("string"),
    	Handler:       pulumi.String("string"),
    	GpuMemorySize: pulumi.Int(0),
    	Cpu:           pulumi.Float64(0),
    	CustomHealthCheckConfig: &fc.V2FunctionCustomHealthCheckConfigArgs{
    		FailureThreshold:    pulumi.Int(0),
    		HttpGetUrl:          pulumi.String("string"),
    		InitialDelaySeconds: pulumi.Int(0),
    		PeriodSeconds:       pulumi.Int(0),
    		SuccessThreshold:    pulumi.Int(0),
    		TimeoutSeconds:      pulumi.Int(0),
    	},
    	CustomRuntimeConfig: &fc.V2FunctionCustomRuntimeConfigArgs{
    		Args: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Commands: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Description: pulumi.String("string"),
    	DiskSize:    pulumi.Int(0),
    	EnvironmentVariables: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	CustomContainerConfig: &fc.V2FunctionCustomContainerConfigArgs{
    		AccelerationType: pulumi.String("string"),
    		Args:             pulumi.String("string"),
    		Command:          pulumi.String("string"),
    		Image:            pulumi.String("string"),
    		WebServerMode:    pulumi.Bool(false),
    	},
    	CaPort: pulumi.Int(0),
    	CustomDns: &fc.V2FunctionCustomDnsArgs{
    		DnsOptions: fc.V2FunctionCustomDnsDnsOptionArray{
    			&fc.V2FunctionCustomDnsDnsOptionArgs{
    				Name:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		NameServers: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Searches: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	InitializationTimeout: pulumi.Int(0),
    	Initializer:           pulumi.String("string"),
    	InstanceConcurrency:   pulumi.Int(0),
    	InstanceLifecycleConfig: &fc.V2FunctionInstanceLifecycleConfigArgs{
    		PreFreeze: &fc.V2FunctionInstanceLifecycleConfigPreFreezeArgs{
    			Handler: pulumi.String("string"),
    			Timeout: pulumi.Int(0),
    		},
    		PreStop: &fc.V2FunctionInstanceLifecycleConfigPreStopArgs{
    			Handler: pulumi.String("string"),
    			Timeout: pulumi.Int(0),
    		},
    	},
    	InstanceType: pulumi.String("string"),
    	Layers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	MemorySize:   pulumi.Int(0),
    	CodeChecksum: pulumi.String("string"),
    	Code: &fc.V2FunctionCodeArgs{
    		OssBucketName: pulumi.String("string"),
    		OssObjectName: pulumi.String("string"),
    		ZipFile:       pulumi.String("string"),
    	},
    	Timeout: pulumi.Int(0),
    })
    
    var v2functionResource = new V2Function("v2functionResource", V2FunctionArgs.builder()
        .functionName("string")
        .serviceName("string")
        .runtime("string")
        .handler("string")
        .gpuMemorySize(0)
        .cpu(0.0)
        .customHealthCheckConfig(V2FunctionCustomHealthCheckConfigArgs.builder()
            .failureThreshold(0)
            .httpGetUrl("string")
            .initialDelaySeconds(0)
            .periodSeconds(0)
            .successThreshold(0)
            .timeoutSeconds(0)
            .build())
        .customRuntimeConfig(V2FunctionCustomRuntimeConfigArgs.builder()
            .args("string")
            .commands("string")
            .build())
        .description("string")
        .diskSize(0)
        .environmentVariables(Map.of("string", "string"))
        .customContainerConfig(V2FunctionCustomContainerConfigArgs.builder()
            .accelerationType("string")
            .args("string")
            .command("string")
            .image("string")
            .webServerMode(false)
            .build())
        .caPort(0)
        .customDns(V2FunctionCustomDnsArgs.builder()
            .dnsOptions(V2FunctionCustomDnsDnsOptionArgs.builder()
                .name("string")
                .value("string")
                .build())
            .nameServers("string")
            .searches("string")
            .build())
        .initializationTimeout(0)
        .initializer("string")
        .instanceConcurrency(0)
        .instanceLifecycleConfig(V2FunctionInstanceLifecycleConfigArgs.builder()
            .preFreeze(V2FunctionInstanceLifecycleConfigPreFreezeArgs.builder()
                .handler("string")
                .timeout(0)
                .build())
            .preStop(V2FunctionInstanceLifecycleConfigPreStopArgs.builder()
                .handler("string")
                .timeout(0)
                .build())
            .build())
        .instanceType("string")
        .layers("string")
        .memorySize(0)
        .codeChecksum("string")
        .code(V2FunctionCodeArgs.builder()
            .ossBucketName("string")
            .ossObjectName("string")
            .zipFile("string")
            .build())
        .timeout(0)
        .build());
    
    v2function_resource = alicloud.fc.V2Function("v2functionResource",
        function_name="string",
        service_name="string",
        runtime="string",
        handler="string",
        gpu_memory_size=0,
        cpu=0,
        custom_health_check_config={
            "failure_threshold": 0,
            "http_get_url": "string",
            "initial_delay_seconds": 0,
            "period_seconds": 0,
            "success_threshold": 0,
            "timeout_seconds": 0,
        },
        custom_runtime_config={
            "args": ["string"],
            "commands": ["string"],
        },
        description="string",
        disk_size=0,
        environment_variables={
            "string": "string",
        },
        custom_container_config={
            "acceleration_type": "string",
            "args": "string",
            "command": "string",
            "image": "string",
            "web_server_mode": False,
        },
        ca_port=0,
        custom_dns={
            "dns_options": [{
                "name": "string",
                "value": "string",
            }],
            "name_servers": ["string"],
            "searches": ["string"],
        },
        initialization_timeout=0,
        initializer="string",
        instance_concurrency=0,
        instance_lifecycle_config={
            "pre_freeze": {
                "handler": "string",
                "timeout": 0,
            },
            "pre_stop": {
                "handler": "string",
                "timeout": 0,
            },
        },
        instance_type="string",
        layers=["string"],
        memory_size=0,
        code_checksum="string",
        code={
            "oss_bucket_name": "string",
            "oss_object_name": "string",
            "zip_file": "string",
        },
        timeout=0)
    
    const v2functionResource = new alicloud.fc.V2Function("v2functionResource", {
        functionName: "string",
        serviceName: "string",
        runtime: "string",
        handler: "string",
        gpuMemorySize: 0,
        cpu: 0,
        customHealthCheckConfig: {
            failureThreshold: 0,
            httpGetUrl: "string",
            initialDelaySeconds: 0,
            periodSeconds: 0,
            successThreshold: 0,
            timeoutSeconds: 0,
        },
        customRuntimeConfig: {
            args: ["string"],
            commands: ["string"],
        },
        description: "string",
        diskSize: 0,
        environmentVariables: {
            string: "string",
        },
        customContainerConfig: {
            accelerationType: "string",
            args: "string",
            command: "string",
            image: "string",
            webServerMode: false,
        },
        caPort: 0,
        customDns: {
            dnsOptions: [{
                name: "string",
                value: "string",
            }],
            nameServers: ["string"],
            searches: ["string"],
        },
        initializationTimeout: 0,
        initializer: "string",
        instanceConcurrency: 0,
        instanceLifecycleConfig: {
            preFreeze: {
                handler: "string",
                timeout: 0,
            },
            preStop: {
                handler: "string",
                timeout: 0,
            },
        },
        instanceType: "string",
        layers: ["string"],
        memorySize: 0,
        codeChecksum: "string",
        code: {
            ossBucketName: "string",
            ossObjectName: "string",
            zipFile: "string",
        },
        timeout: 0,
    });
    
    type: alicloud:fc:V2Function
    properties:
        caPort: 0
        code:
            ossBucketName: string
            ossObjectName: string
            zipFile: string
        codeChecksum: string
        cpu: 0
        customContainerConfig:
            accelerationType: string
            args: string
            command: string
            image: string
            webServerMode: false
        customDns:
            dnsOptions:
                - name: string
                  value: string
            nameServers:
                - string
            searches:
                - string
        customHealthCheckConfig:
            failureThreshold: 0
            httpGetUrl: string
            initialDelaySeconds: 0
            periodSeconds: 0
            successThreshold: 0
            timeoutSeconds: 0
        customRuntimeConfig:
            args:
                - string
            commands:
                - string
        description: string
        diskSize: 0
        environmentVariables:
            string: string
        functionName: string
        gpuMemorySize: 0
        handler: string
        initializationTimeout: 0
        initializer: string
        instanceConcurrency: 0
        instanceLifecycleConfig:
            preFreeze:
                handler: string
                timeout: 0
            preStop:
                handler: string
                timeout: 0
        instanceType: string
        layers:
            - string
        memorySize: 0
        runtime: string
        serviceName: string
        timeout: 0
    

    V2Function 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 V2Function resource accepts the following input properties:

    FunctionName string
    function name.
    Handler string
    entry point of function.
    Runtime string
    runtime of function code.
    ServiceName string
    The name of the function Service.
    CaPort int
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    Code Pulumi.AliCloud.FC.Inputs.V2FunctionCode
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    CodeChecksum string
    crc64 of function code.
    Cpu double
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    CustomContainerConfig Pulumi.AliCloud.FC.Inputs.V2FunctionCustomContainerConfig
    Custom-container runtime related function configuration. See custom_container_config below.
    CustomDns Pulumi.AliCloud.FC.Inputs.V2FunctionCustomDns
    Function custom DNS configuration. See custom_dns below.
    CustomHealthCheckConfig Pulumi.AliCloud.FC.Inputs.V2FunctionCustomHealthCheckConfig
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    CustomRuntimeConfig Pulumi.AliCloud.FC.Inputs.V2FunctionCustomRuntimeConfig
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    Description string
    description of function.
    DiskSize int
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    EnvironmentVariables Dictionary<string, string>
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    GpuMemorySize int
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    InitializationTimeout int
    max running time of initializer.
    Initializer string
    initializer entry point of function.
    InstanceConcurrency int
    The maximum concurrency allowed for a single function instance.
    InstanceLifecycleConfig Pulumi.AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfig
    Instance lifecycle configuration. See instance_lifecycle_config below.
    InstanceType string
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    Layers List<string>

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    MemorySize int
    memory size needed by function.
    Timeout int
    max running time of function.
    FunctionName string
    function name.
    Handler string
    entry point of function.
    Runtime string
    runtime of function code.
    ServiceName string
    The name of the function Service.
    CaPort int
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    Code V2FunctionCodeArgs
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    CodeChecksum string
    crc64 of function code.
    Cpu float64
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    CustomContainerConfig V2FunctionCustomContainerConfigArgs
    Custom-container runtime related function configuration. See custom_container_config below.
    CustomDns V2FunctionCustomDnsArgs
    Function custom DNS configuration. See custom_dns below.
    CustomHealthCheckConfig V2FunctionCustomHealthCheckConfigArgs
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    CustomRuntimeConfig V2FunctionCustomRuntimeConfigArgs
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    Description string
    description of function.
    DiskSize int
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    EnvironmentVariables map[string]string
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    GpuMemorySize int
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    InitializationTimeout int
    max running time of initializer.
    Initializer string
    initializer entry point of function.
    InstanceConcurrency int
    The maximum concurrency allowed for a single function instance.
    InstanceLifecycleConfig V2FunctionInstanceLifecycleConfigArgs
    Instance lifecycle configuration. See instance_lifecycle_config below.
    InstanceType string
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    Layers []string

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    MemorySize int
    memory size needed by function.
    Timeout int
    max running time of function.
    functionName String
    function name.
    handler String
    entry point of function.
    runtime String
    runtime of function code.
    serviceName String
    The name of the function Service.
    caPort Integer
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    code V2FunctionCode
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    codeChecksum String
    crc64 of function code.
    cpu Double
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    customContainerConfig V2FunctionCustomContainerConfig
    Custom-container runtime related function configuration. See custom_container_config below.
    customDns V2FunctionCustomDns
    Function custom DNS configuration. See custom_dns below.
    customHealthCheckConfig V2FunctionCustomHealthCheckConfig
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    customRuntimeConfig V2FunctionCustomRuntimeConfig
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    description String
    description of function.
    diskSize Integer
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    environmentVariables Map<String,String>
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    gpuMemorySize Integer
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    initializationTimeout Integer
    max running time of initializer.
    initializer String
    initializer entry point of function.
    instanceConcurrency Integer
    The maximum concurrency allowed for a single function instance.
    instanceLifecycleConfig V2FunctionInstanceLifecycleConfig
    Instance lifecycle configuration. See instance_lifecycle_config below.
    instanceType String
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    layers List<String>

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    memorySize Integer
    memory size needed by function.
    timeout Integer
    max running time of function.
    functionName string
    function name.
    handler string
    entry point of function.
    runtime string
    runtime of function code.
    serviceName string
    The name of the function Service.
    caPort number
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    code V2FunctionCode
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    codeChecksum string
    crc64 of function code.
    cpu number
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    customContainerConfig V2FunctionCustomContainerConfig
    Custom-container runtime related function configuration. See custom_container_config below.
    customDns V2FunctionCustomDns
    Function custom DNS configuration. See custom_dns below.
    customHealthCheckConfig V2FunctionCustomHealthCheckConfig
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    customRuntimeConfig V2FunctionCustomRuntimeConfig
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    description string
    description of function.
    diskSize number
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    environmentVariables {[key: string]: string}
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    gpuMemorySize number
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    initializationTimeout number
    max running time of initializer.
    initializer string
    initializer entry point of function.
    instanceConcurrency number
    The maximum concurrency allowed for a single function instance.
    instanceLifecycleConfig V2FunctionInstanceLifecycleConfig
    Instance lifecycle configuration. See instance_lifecycle_config below.
    instanceType string
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    layers string[]

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    memorySize number
    memory size needed by function.
    timeout number
    max running time of function.
    function_name str
    function name.
    handler str
    entry point of function.
    runtime str
    runtime of function code.
    service_name str
    The name of the function Service.
    ca_port int
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    code V2FunctionCodeArgs
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    code_checksum str
    crc64 of function code.
    cpu float
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    custom_container_config V2FunctionCustomContainerConfigArgs
    Custom-container runtime related function configuration. See custom_container_config below.
    custom_dns V2FunctionCustomDnsArgs
    Function custom DNS configuration. See custom_dns below.
    custom_health_check_config V2FunctionCustomHealthCheckConfigArgs
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    custom_runtime_config V2FunctionCustomRuntimeConfigArgs
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    description str
    description of function.
    disk_size int
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    environment_variables Mapping[str, str]
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    gpu_memory_size int
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    initialization_timeout int
    max running time of initializer.
    initializer str
    initializer entry point of function.
    instance_concurrency int
    The maximum concurrency allowed for a single function instance.
    instance_lifecycle_config V2FunctionInstanceLifecycleConfigArgs
    Instance lifecycle configuration. See instance_lifecycle_config below.
    instance_type str
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    layers Sequence[str]

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    memory_size int
    memory size needed by function.
    timeout int
    max running time of function.
    functionName String
    function name.
    handler String
    entry point of function.
    runtime String
    runtime of function code.
    serviceName String
    The name of the function Service.
    caPort Number
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    code Property Map
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    codeChecksum String
    crc64 of function code.
    cpu Number
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    customContainerConfig Property Map
    Custom-container runtime related function configuration. See custom_container_config below.
    customDns Property Map
    Function custom DNS configuration. See custom_dns below.
    customHealthCheckConfig Property Map
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    customRuntimeConfig Property Map
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    description String
    description of function.
    diskSize Number
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    environmentVariables Map<String>
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    gpuMemorySize Number
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    initializationTimeout Number
    max running time of initializer.
    initializer String
    initializer entry point of function.
    instanceConcurrency Number
    The maximum concurrency allowed for a single function instance.
    instanceLifecycleConfig Property Map
    Instance lifecycle configuration. See instance_lifecycle_config below.
    instanceType String
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    layers List<String>

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    memorySize Number
    memory size needed by function.
    timeout Number
    max running time of function.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the V2Function resource produces the following output properties:

    CreateTime string
    create time of function.
    FunctionArn string
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    create time of function.
    FunctionArn string
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    create time of function.
    functionArn String
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    create time of function.
    functionArn string
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    create time of function.
    function_arn str
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    create time of function.
    functionArn String
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing V2Function Resource

    Get an existing V2Function 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?: V2FunctionState, opts?: CustomResourceOptions): V2Function
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ca_port: Optional[int] = None,
            code: Optional[V2FunctionCodeArgs] = None,
            code_checksum: Optional[str] = None,
            cpu: Optional[float] = None,
            create_time: Optional[str] = None,
            custom_container_config: Optional[V2FunctionCustomContainerConfigArgs] = None,
            custom_dns: Optional[V2FunctionCustomDnsArgs] = None,
            custom_health_check_config: Optional[V2FunctionCustomHealthCheckConfigArgs] = None,
            custom_runtime_config: Optional[V2FunctionCustomRuntimeConfigArgs] = None,
            description: Optional[str] = None,
            disk_size: Optional[int] = None,
            environment_variables: Optional[Mapping[str, str]] = None,
            function_arn: Optional[str] = None,
            function_name: Optional[str] = None,
            gpu_memory_size: Optional[int] = None,
            handler: Optional[str] = None,
            initialization_timeout: Optional[int] = None,
            initializer: Optional[str] = None,
            instance_concurrency: Optional[int] = None,
            instance_lifecycle_config: Optional[V2FunctionInstanceLifecycleConfigArgs] = None,
            instance_type: Optional[str] = None,
            layers: Optional[Sequence[str]] = None,
            memory_size: Optional[int] = None,
            runtime: Optional[str] = None,
            service_name: Optional[str] = None,
            timeout: Optional[int] = None) -> V2Function
    func GetV2Function(ctx *Context, name string, id IDInput, state *V2FunctionState, opts ...ResourceOption) (*V2Function, error)
    public static V2Function Get(string name, Input<string> id, V2FunctionState? state, CustomResourceOptions? opts = null)
    public static V2Function get(String name, Output<String> id, V2FunctionState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:fc:V2Function    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:
    CaPort int
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    Code Pulumi.AliCloud.FC.Inputs.V2FunctionCode
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    CodeChecksum string
    crc64 of function code.
    Cpu double
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    CreateTime string
    create time of function.
    CustomContainerConfig Pulumi.AliCloud.FC.Inputs.V2FunctionCustomContainerConfig
    Custom-container runtime related function configuration. See custom_container_config below.
    CustomDns Pulumi.AliCloud.FC.Inputs.V2FunctionCustomDns
    Function custom DNS configuration. See custom_dns below.
    CustomHealthCheckConfig Pulumi.AliCloud.FC.Inputs.V2FunctionCustomHealthCheckConfig
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    CustomRuntimeConfig Pulumi.AliCloud.FC.Inputs.V2FunctionCustomRuntimeConfig
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    Description string
    description of function.
    DiskSize int
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    EnvironmentVariables Dictionary<string, string>
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    FunctionArn string
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    FunctionName string
    function name.
    GpuMemorySize int
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    Handler string
    entry point of function.
    InitializationTimeout int
    max running time of initializer.
    Initializer string
    initializer entry point of function.
    InstanceConcurrency int
    The maximum concurrency allowed for a single function instance.
    InstanceLifecycleConfig Pulumi.AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfig
    Instance lifecycle configuration. See instance_lifecycle_config below.
    InstanceType string
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    Layers List<string>

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    MemorySize int
    memory size needed by function.
    Runtime string
    runtime of function code.
    ServiceName string
    The name of the function Service.
    Timeout int
    max running time of function.
    CaPort int
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    Code V2FunctionCodeArgs
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    CodeChecksum string
    crc64 of function code.
    Cpu float64
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    CreateTime string
    create time of function.
    CustomContainerConfig V2FunctionCustomContainerConfigArgs
    Custom-container runtime related function configuration. See custom_container_config below.
    CustomDns V2FunctionCustomDnsArgs
    Function custom DNS configuration. See custom_dns below.
    CustomHealthCheckConfig V2FunctionCustomHealthCheckConfigArgs
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    CustomRuntimeConfig V2FunctionCustomRuntimeConfigArgs
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    Description string
    description of function.
    DiskSize int
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    EnvironmentVariables map[string]string
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    FunctionArn string
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    FunctionName string
    function name.
    GpuMemorySize int
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    Handler string
    entry point of function.
    InitializationTimeout int
    max running time of initializer.
    Initializer string
    initializer entry point of function.
    InstanceConcurrency int
    The maximum concurrency allowed for a single function instance.
    InstanceLifecycleConfig V2FunctionInstanceLifecycleConfigArgs
    Instance lifecycle configuration. See instance_lifecycle_config below.
    InstanceType string
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    Layers []string

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    MemorySize int
    memory size needed by function.
    Runtime string
    runtime of function code.
    ServiceName string
    The name of the function Service.
    Timeout int
    max running time of function.
    caPort Integer
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    code V2FunctionCode
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    codeChecksum String
    crc64 of function code.
    cpu Double
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    createTime String
    create time of function.
    customContainerConfig V2FunctionCustomContainerConfig
    Custom-container runtime related function configuration. See custom_container_config below.
    customDns V2FunctionCustomDns
    Function custom DNS configuration. See custom_dns below.
    customHealthCheckConfig V2FunctionCustomHealthCheckConfig
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    customRuntimeConfig V2FunctionCustomRuntimeConfig
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    description String
    description of function.
    diskSize Integer
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    environmentVariables Map<String,String>
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    functionArn String
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    functionName String
    function name.
    gpuMemorySize Integer
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    handler String
    entry point of function.
    initializationTimeout Integer
    max running time of initializer.
    initializer String
    initializer entry point of function.
    instanceConcurrency Integer
    The maximum concurrency allowed for a single function instance.
    instanceLifecycleConfig V2FunctionInstanceLifecycleConfig
    Instance lifecycle configuration. See instance_lifecycle_config below.
    instanceType String
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    layers List<String>

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    memorySize Integer
    memory size needed by function.
    runtime String
    runtime of function code.
    serviceName String
    The name of the function Service.
    timeout Integer
    max running time of function.
    caPort number
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    code V2FunctionCode
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    codeChecksum string
    crc64 of function code.
    cpu number
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    createTime string
    create time of function.
    customContainerConfig V2FunctionCustomContainerConfig
    Custom-container runtime related function configuration. See custom_container_config below.
    customDns V2FunctionCustomDns
    Function custom DNS configuration. See custom_dns below.
    customHealthCheckConfig V2FunctionCustomHealthCheckConfig
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    customRuntimeConfig V2FunctionCustomRuntimeConfig
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    description string
    description of function.
    diskSize number
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    environmentVariables {[key: string]: string}
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    functionArn string
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    functionName string
    function name.
    gpuMemorySize number
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    handler string
    entry point of function.
    initializationTimeout number
    max running time of initializer.
    initializer string
    initializer entry point of function.
    instanceConcurrency number
    The maximum concurrency allowed for a single function instance.
    instanceLifecycleConfig V2FunctionInstanceLifecycleConfig
    Instance lifecycle configuration. See instance_lifecycle_config below.
    instanceType string
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    layers string[]

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    memorySize number
    memory size needed by function.
    runtime string
    runtime of function code.
    serviceName string
    The name of the function Service.
    timeout number
    max running time of function.
    ca_port int
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    code V2FunctionCodeArgs
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    code_checksum str
    crc64 of function code.
    cpu float
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    create_time str
    create time of function.
    custom_container_config V2FunctionCustomContainerConfigArgs
    Custom-container runtime related function configuration. See custom_container_config below.
    custom_dns V2FunctionCustomDnsArgs
    Function custom DNS configuration. See custom_dns below.
    custom_health_check_config V2FunctionCustomHealthCheckConfigArgs
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    custom_runtime_config V2FunctionCustomRuntimeConfigArgs
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    description str
    description of function.
    disk_size int
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    environment_variables Mapping[str, str]
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    function_arn str
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    function_name str
    function name.
    gpu_memory_size int
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    handler str
    entry point of function.
    initialization_timeout int
    max running time of initializer.
    initializer str
    initializer entry point of function.
    instance_concurrency int
    The maximum concurrency allowed for a single function instance.
    instance_lifecycle_config V2FunctionInstanceLifecycleConfigArgs
    Instance lifecycle configuration. See instance_lifecycle_config below.
    instance_type str
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    layers Sequence[str]

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    memory_size int
    memory size needed by function.
    runtime str
    runtime of function code.
    service_name str
    The name of the function Service.
    timeout int
    max running time of function.
    caPort Number
    The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
    code Property Map
    Function Code ZIP package. code and customContainerConfig choose one. See code below.
    codeChecksum String
    crc64 of function code.
    cpu Number
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    createTime String
    create time of function.
    customContainerConfig Property Map
    Custom-container runtime related function configuration. See custom_container_config below.
    customDns Property Map
    Function custom DNS configuration. See custom_dns below.
    customHealthCheckConfig Property Map
    Custom runtime/container Custom health check configuration. See custom_health_check_config below.
    customRuntimeConfig Property Map
    Detailed configuration of Custom Runtime function. See custom_runtime_config below.
    description String
    description of function.
    diskSize Number
    The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
    environmentVariables Map<String>
    The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
    functionArn String
    The Function Compute service function arn. It formats as acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>.
    functionName String
    function name.
    gpuMemorySize Number
    The GPU memory specification of the function, in MB, is a multiple of 1024MB.
    handler String
    entry point of function.
    initializationTimeout Number
    max running time of initializer.
    initializer String
    initializer entry point of function.
    instanceConcurrency Number
    The maximum concurrency allowed for a single function instance.
    instanceLifecycleConfig Property Map
    Instance lifecycle configuration. See instance_lifecycle_config below.
    instanceType String
    The instance type of the function. Valid values:

    • e1: Elastic instance.
    • c1: performance instance.
    • fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
    • fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
    • g1: Same as fc.gpu.tesla.1.
    layers List<String>

    List of layers.

    NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.

    memorySize Number
    memory size needed by function.
    runtime String
    runtime of function code.
    serviceName String
    The name of the function Service.
    timeout Number
    max running time of function.

    Supporting Types

    V2FunctionCode, V2FunctionCodeArgs

    OssBucketName string
    The OSS bucket name of the function code package.
    OssObjectName string
    The OSS object name of the function code package.
    ZipFile string
    Upload the base64 encoding of the code zip package directly in the request body.
    OssBucketName string
    The OSS bucket name of the function code package.
    OssObjectName string
    The OSS object name of the function code package.
    ZipFile string
    Upload the base64 encoding of the code zip package directly in the request body.
    ossBucketName String
    The OSS bucket name of the function code package.
    ossObjectName String
    The OSS object name of the function code package.
    zipFile String
    Upload the base64 encoding of the code zip package directly in the request body.
    ossBucketName string
    The OSS bucket name of the function code package.
    ossObjectName string
    The OSS object name of the function code package.
    zipFile string
    Upload the base64 encoding of the code zip package directly in the request body.
    oss_bucket_name str
    The OSS bucket name of the function code package.
    oss_object_name str
    The OSS object name of the function code package.
    zip_file str
    Upload the base64 encoding of the code zip package directly in the request body.
    ossBucketName String
    The OSS bucket name of the function code package.
    ossObjectName String
    The OSS object name of the function code package.
    zipFile String
    Upload the base64 encoding of the code zip package directly in the request body.

    V2FunctionCustomContainerConfig, V2FunctionCustomContainerConfigArgs

    AccelerationType string
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    Args string
    Container startup parameters.
    Command string
    Container start command, equivalent to Docker ENTRYPOINT.
    Image string
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    WebServerMode bool
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    AccelerationType string
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    Args string
    Container startup parameters.
    Command string
    Container start command, equivalent to Docker ENTRYPOINT.
    Image string
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    WebServerMode bool
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    accelerationType String
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    args String
    Container startup parameters.
    command String
    Container start command, equivalent to Docker ENTRYPOINT.
    image String
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    webServerMode Boolean
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    accelerationType string
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    args string
    Container startup parameters.
    command string
    Container start command, equivalent to Docker ENTRYPOINT.
    image string
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    webServerMode boolean
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    acceleration_type str
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    args str
    Container startup parameters.
    command str
    Container start command, equivalent to Docker ENTRYPOINT.
    image str
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    web_server_mode bool
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    accelerationType String
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    args String
    Container startup parameters.
    command String
    Container start command, equivalent to Docker ENTRYPOINT.
    image String
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    webServerMode Boolean
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.

    V2FunctionCustomDns, V2FunctionCustomDnsArgs

    DnsOptions List<Pulumi.AliCloud.FC.Inputs.V2FunctionCustomDnsDnsOption>
    DNS resolver configuration parameter list. See dns_options below.
    NameServers List<string>
    List of IP addresses of DNS servers.
    Searches List<string>
    List of DNS search domains.
    DnsOptions []V2FunctionCustomDnsDnsOption
    DNS resolver configuration parameter list. See dns_options below.
    NameServers []string
    List of IP addresses of DNS servers.
    Searches []string
    List of DNS search domains.
    dnsOptions List<V2FunctionCustomDnsDnsOption>
    DNS resolver configuration parameter list. See dns_options below.
    nameServers List<String>
    List of IP addresses of DNS servers.
    searches List<String>
    List of DNS search domains.
    dnsOptions V2FunctionCustomDnsDnsOption[]
    DNS resolver configuration parameter list. See dns_options below.
    nameServers string[]
    List of IP addresses of DNS servers.
    searches string[]
    List of DNS search domains.
    dns_options Sequence[V2FunctionCustomDnsDnsOption]
    DNS resolver configuration parameter list. See dns_options below.
    name_servers Sequence[str]
    List of IP addresses of DNS servers.
    searches Sequence[str]
    List of DNS search domains.
    dnsOptions List<Property Map>
    DNS resolver configuration parameter list. See dns_options below.
    nameServers List<String>
    List of IP addresses of DNS servers.
    searches List<String>
    List of DNS search domains.

    V2FunctionCustomDnsDnsOption, V2FunctionCustomDnsDnsOptionArgs

    Name string
    DNS option name.
    Value string
    DNS option value.
    Name string
    DNS option name.
    Value string
    DNS option value.
    name String
    DNS option name.
    value String
    DNS option value.
    name string
    DNS option name.
    value string
    DNS option value.
    name str
    DNS option name.
    value str
    DNS option value.
    name String
    DNS option name.
    value String
    DNS option value.

    V2FunctionCustomHealthCheckConfig, V2FunctionCustomHealthCheckConfigArgs

    FailureThreshold int
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    HttpGetUrl string
    Container custom health check URL address.
    InitialDelaySeconds int
    Delay from container startup to initiation of health check.
    PeriodSeconds int
    Health check cycle.
    SuccessThreshold int
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    TimeoutSeconds int
    Health check timeout.
    FailureThreshold int
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    HttpGetUrl string
    Container custom health check URL address.
    InitialDelaySeconds int
    Delay from container startup to initiation of health check.
    PeriodSeconds int
    Health check cycle.
    SuccessThreshold int
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    TimeoutSeconds int
    Health check timeout.
    failureThreshold Integer
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    httpGetUrl String
    Container custom health check URL address.
    initialDelaySeconds Integer
    Delay from container startup to initiation of health check.
    periodSeconds Integer
    Health check cycle.
    successThreshold Integer
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    timeoutSeconds Integer
    Health check timeout.
    failureThreshold number
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    httpGetUrl string
    Container custom health check URL address.
    initialDelaySeconds number
    Delay from container startup to initiation of health check.
    periodSeconds number
    Health check cycle.
    successThreshold number
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    timeoutSeconds number
    Health check timeout.
    failure_threshold int
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    http_get_url str
    Container custom health check URL address.
    initial_delay_seconds int
    Delay from container startup to initiation of health check.
    period_seconds int
    Health check cycle.
    success_threshold int
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    timeout_seconds int
    Health check timeout.
    failureThreshold Number
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    httpGetUrl String
    Container custom health check URL address.
    initialDelaySeconds Number
    Delay from container startup to initiation of health check.
    periodSeconds Number
    Health check cycle.
    successThreshold Number
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    timeoutSeconds Number
    Health check timeout.

    V2FunctionCustomRuntimeConfig, V2FunctionCustomRuntimeConfigArgs

    Args List<string>
    Parameters received by the start entry command.
    Commands List<string>
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    Args []string
    Parameters received by the start entry command.
    Commands []string
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    args List<String>
    Parameters received by the start entry command.
    commands List<String>
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    args string[]
    Parameters received by the start entry command.
    commands string[]
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    args Sequence[str]
    Parameters received by the start entry command.
    commands Sequence[str]
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    args List<String>
    Parameters received by the start entry command.
    commands List<String>
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.

    V2FunctionInstanceLifecycleConfig, V2FunctionInstanceLifecycleConfigArgs

    PreFreeze Pulumi.AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    PreStop Pulumi.AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    PreFreeze V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    PreStop V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    preFreeze V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    preStop V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    preFreeze V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    preStop V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    pre_freeze V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    pre_stop V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    preFreeze Property Map
    PreFreeze function configuration. See pre_freeze below.
    preStop Property Map
    PreStop function configuration. See pre_stop below.

    V2FunctionInstanceLifecycleConfigPreFreeze, V2FunctionInstanceLifecycleConfigPreFreezeArgs

    Handler string
    entry point of function.
    Timeout int
    max running time of function.
    Handler string
    entry point of function.
    Timeout int
    max running time of function.
    handler String
    entry point of function.
    timeout Integer
    max running time of function.
    handler string
    entry point of function.
    timeout number
    max running time of function.
    handler str
    entry point of function.
    timeout int
    max running time of function.
    handler String
    entry point of function.
    timeout Number
    max running time of function.

    V2FunctionInstanceLifecycleConfigPreStop, V2FunctionInstanceLifecycleConfigPreStopArgs

    Handler string
    entry point of function.
    Timeout int
    max running time of function.
    Handler string
    entry point of function.
    Timeout int
    max running time of function.
    handler String
    entry point of function.
    timeout Integer
    max running time of function.
    handler string
    entry point of function.
    timeout number
    max running time of function.
    handler str
    entry point of function.
    timeout int
    max running time of function.
    handler String
    entry point of function.
    timeout Number
    max running time of function.

    Import

    FCV2 Function can be imported using the id, e.g.

    $ pulumi import alicloud:fc/v2Function:V2Function example <service_name>:<function_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi