1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. fc
  5. V3Function
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.fc.V3Function

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a FCV3 Function resource.

    The resource scheduling and running of Function Compute is based on functions. The FC function consists of function code and function configuration.

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

    NOTE: Available since v1.228.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new random.index.Uuid("default", {});
    const defaultBucket = new alicloud.oss.Bucket("default", {bucket: `${name}-${_default.result}`});
    const defaultBucketObject = new alicloud.oss.BucketObject("default", {
        bucket: defaultBucket.bucket,
        key: "FCV3Py39.zip",
        content: "print('hello')",
    });
    const defaultV3Function = new alicloud.fc.V3Function("default", {
        description: "Create",
        memorySize: 512,
        layers: ["acs:fc:cn-shanghai:official:layers/Python39-Aliyun-SDK/versions/3"],
        timeout: 3,
        runtime: "custom.debian10",
        handler: "index.handler",
        diskSize: 512,
        customRuntimeConfig: {
            commands: [
                "python",
                "-c",
                "example",
            ],
            args: [
                "app.py",
                "xx",
                "x",
            ],
            port: 9000,
            healthCheckConfig: {
                httpGetUrl: "/ready",
                initialDelaySeconds: 1,
                periodSeconds: 10,
                successThreshold: 1,
                timeoutSeconds: 1,
                failureThreshold: 3,
            },
        },
        logConfig: {
            logBeginRule: "None",
        },
        code: {
            ossBucketName: defaultBucket.bucket,
            ossObjectName: defaultBucketObject.key,
            checksum: "4270285996107335518",
        },
        instanceLifecycleConfig: {
            initializer: {
                timeout: 1,
                handler: "index.init",
            },
            preStop: {
                timeout: 1,
                handler: "index.stop",
            },
        },
        cpu: 0.5,
        instanceConcurrency: 2,
        functionName: `${name}-${_default.result}`,
        environmentVariables: {
            EnvKey: "EnvVal",
        },
        internetAccess: true,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = random.index.Uuid("default")
    default_bucket = alicloud.oss.Bucket("default", bucket=f"{name}-{default['result']}")
    default_bucket_object = alicloud.oss.BucketObject("default",
        bucket=default_bucket.bucket,
        key="FCV3Py39.zip",
        content="print('hello')")
    default_v3_function = alicloud.fc.V3Function("default",
        description="Create",
        memory_size=512,
        layers=["acs:fc:cn-shanghai:official:layers/Python39-Aliyun-SDK/versions/3"],
        timeout=3,
        runtime="custom.debian10",
        handler="index.handler",
        disk_size=512,
        custom_runtime_config={
            "commands": [
                "python",
                "-c",
                "example",
            ],
            "args": [
                "app.py",
                "xx",
                "x",
            ],
            "port": 9000,
            "health_check_config": {
                "http_get_url": "/ready",
                "initial_delay_seconds": 1,
                "period_seconds": 10,
                "success_threshold": 1,
                "timeout_seconds": 1,
                "failure_threshold": 3,
            },
        },
        log_config={
            "log_begin_rule": "None",
        },
        code={
            "oss_bucket_name": default_bucket.bucket,
            "oss_object_name": default_bucket_object.key,
            "checksum": "4270285996107335518",
        },
        instance_lifecycle_config={
            "initializer": {
                "timeout": 1,
                "handler": "index.init",
            },
            "pre_stop": {
                "timeout": 1,
                "handler": "index.stop",
            },
        },
        cpu=0.5,
        instance_concurrency=2,
        function_name=f"{name}-{default['result']}",
        environment_variables={
            "EnvKey": "EnvVal",
        },
        internet_access=True)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := random.NewUuid(ctx, "default", nil)
    		if err != nil {
    			return err
    		}
    		defaultBucket, err := oss.NewBucket(ctx, "default", &oss.BucketArgs{
    			Bucket: pulumi.Sprintf("%v-%v", name, _default.Result),
    		})
    		if err != nil {
    			return err
    		}
    		defaultBucketObject, err := oss.NewBucketObject(ctx, "default", &oss.BucketObjectArgs{
    			Bucket:  defaultBucket.Bucket,
    			Key:     pulumi.String("FCV3Py39.zip"),
    			Content: pulumi.String("print('hello')"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = fc.NewV3Function(ctx, "default", &fc.V3FunctionArgs{
    			Description: pulumi.String("Create"),
    			MemorySize:  pulumi.Int(512),
    			Layers: pulumi.StringArray{
    				pulumi.String("acs:fc:cn-shanghai:official:layers/Python39-Aliyun-SDK/versions/3"),
    			},
    			Timeout:  pulumi.Int(3),
    			Runtime:  pulumi.String("custom.debian10"),
    			Handler:  pulumi.String("index.handler"),
    			DiskSize: pulumi.Int(512),
    			CustomRuntimeConfig: &fc.V3FunctionCustomRuntimeConfigArgs{
    				Commands: pulumi.StringArray{
    					pulumi.String("python"),
    					pulumi.String("-c"),
    					pulumi.String("example"),
    				},
    				Args: pulumi.StringArray{
    					pulumi.String("app.py"),
    					pulumi.String("xx"),
    					pulumi.String("x"),
    				},
    				Port: pulumi.Int(9000),
    				HealthCheckConfig: &fc.V3FunctionCustomRuntimeConfigHealthCheckConfigArgs{
    					HttpGetUrl:          pulumi.String("/ready"),
    					InitialDelaySeconds: pulumi.Int(1),
    					PeriodSeconds:       pulumi.Int(10),
    					SuccessThreshold:    pulumi.Int(1),
    					TimeoutSeconds:      pulumi.Int(1),
    					FailureThreshold:    pulumi.Int(3),
    				},
    			},
    			LogConfig: &fc.V3FunctionLogConfigArgs{
    				LogBeginRule: pulumi.String("None"),
    			},
    			Code: &fc.V3FunctionCodeArgs{
    				OssBucketName: defaultBucket.Bucket,
    				OssObjectName: defaultBucketObject.Key,
    				Checksum:      pulumi.String("4270285996107335518"),
    			},
    			InstanceLifecycleConfig: &fc.V3FunctionInstanceLifecycleConfigArgs{
    				Initializer: &fc.V3FunctionInstanceLifecycleConfigInitializerArgs{
    					Timeout: pulumi.Int(1),
    					Handler: pulumi.String("index.init"),
    				},
    				PreStop: &fc.V3FunctionInstanceLifecycleConfigPreStopArgs{
    					Timeout: pulumi.Int(1),
    					Handler: pulumi.String("index.stop"),
    				},
    			},
    			Cpu:                 pulumi.Float64(0.5),
    			InstanceConcurrency: pulumi.Int(2),
    			FunctionName:        pulumi.Sprintf("%v-%v", name, _default.Result),
    			EnvironmentVariables: pulumi.StringMap{
    				"EnvKey": pulumi.String("EnvVal"),
    			},
    			InternetAccess: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new Random.Index.Uuid("default");
    
        var defaultBucket = new AliCloud.Oss.Bucket("default", new()
        {
            BucketName = $"{name}-{@default.Result}",
        });
    
        var defaultBucketObject = new AliCloud.Oss.BucketObject("default", new()
        {
            Bucket = defaultBucket.BucketName,
            Key = "FCV3Py39.zip",
            Content = "print('hello')",
        });
    
        var defaultV3Function = new AliCloud.FC.V3Function("default", new()
        {
            Description = "Create",
            MemorySize = 512,
            Layers = new[]
            {
                "acs:fc:cn-shanghai:official:layers/Python39-Aliyun-SDK/versions/3",
            },
            Timeout = 3,
            Runtime = "custom.debian10",
            Handler = "index.handler",
            DiskSize = 512,
            CustomRuntimeConfig = new AliCloud.FC.Inputs.V3FunctionCustomRuntimeConfigArgs
            {
                Commands = new[]
                {
                    "python",
                    "-c",
                    "example",
                },
                Args = new[]
                {
                    "app.py",
                    "xx",
                    "x",
                },
                Port = 9000,
                HealthCheckConfig = new AliCloud.FC.Inputs.V3FunctionCustomRuntimeConfigHealthCheckConfigArgs
                {
                    HttpGetUrl = "/ready",
                    InitialDelaySeconds = 1,
                    PeriodSeconds = 10,
                    SuccessThreshold = 1,
                    TimeoutSeconds = 1,
                    FailureThreshold = 3,
                },
            },
            LogConfig = new AliCloud.FC.Inputs.V3FunctionLogConfigArgs
            {
                LogBeginRule = "None",
            },
            Code = new AliCloud.FC.Inputs.V3FunctionCodeArgs
            {
                OssBucketName = defaultBucket.BucketName,
                OssObjectName = defaultBucketObject.Key,
                Checksum = "4270285996107335518",
            },
            InstanceLifecycleConfig = new AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfigArgs
            {
                Initializer = new AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfigInitializerArgs
                {
                    Timeout = 1,
                    Handler = "index.init",
                },
                PreStop = new AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfigPreStopArgs
                {
                    Timeout = 1,
                    Handler = "index.stop",
                },
            },
            Cpu = 0.5,
            InstanceConcurrency = 2,
            FunctionName = $"{name}-{@default.Result}",
            EnvironmentVariables = 
            {
                { "EnvKey", "EnvVal" },
            },
            InternetAccess = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.uuid;
    import com.pulumi.alicloud.oss.Bucket;
    import com.pulumi.alicloud.oss.BucketArgs;
    import com.pulumi.alicloud.oss.BucketObject;
    import com.pulumi.alicloud.oss.BucketObjectArgs;
    import com.pulumi.alicloud.fc.V3Function;
    import com.pulumi.alicloud.fc.V3FunctionArgs;
    import com.pulumi.alicloud.fc.inputs.V3FunctionCustomRuntimeConfigArgs;
    import com.pulumi.alicloud.fc.inputs.V3FunctionCustomRuntimeConfigHealthCheckConfigArgs;
    import com.pulumi.alicloud.fc.inputs.V3FunctionLogConfigArgs;
    import com.pulumi.alicloud.fc.inputs.V3FunctionCodeArgs;
    import com.pulumi.alicloud.fc.inputs.V3FunctionInstanceLifecycleConfigArgs;
    import com.pulumi.alicloud.fc.inputs.V3FunctionInstanceLifecycleConfigInitializerArgs;
    import com.pulumi.alicloud.fc.inputs.V3FunctionInstanceLifecycleConfigPreStopArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new Uuid("default");
    
            var defaultBucket = new Bucket("defaultBucket", BucketArgs.builder()
                .bucket(String.format("%s-%s", name,default_.result()))
                .build());
    
            var defaultBucketObject = new BucketObject("defaultBucketObject", BucketObjectArgs.builder()
                .bucket(defaultBucket.bucket())
                .key("FCV3Py39.zip")
                .content("print('hello')")
                .build());
    
            var defaultV3Function = new V3Function("defaultV3Function", V3FunctionArgs.builder()
                .description("Create")
                .memorySize("512")
                .layers("acs:fc:cn-shanghai:official:layers/Python39-Aliyun-SDK/versions/3")
                .timeout("3")
                .runtime("custom.debian10")
                .handler("index.handler")
                .diskSize("512")
                .customRuntimeConfig(V3FunctionCustomRuntimeConfigArgs.builder()
                    .commands(                
                        "python",
                        "-c",
                        "example")
                    .args(                
                        "app.py",
                        "xx",
                        "x")
                    .port("9000")
                    .healthCheckConfig(V3FunctionCustomRuntimeConfigHealthCheckConfigArgs.builder()
                        .httpGetUrl("/ready")
                        .initialDelaySeconds("1")
                        .periodSeconds("10")
                        .successThreshold("1")
                        .timeoutSeconds("1")
                        .failureThreshold("3")
                        .build())
                    .build())
                .logConfig(V3FunctionLogConfigArgs.builder()
                    .logBeginRule("None")
                    .build())
                .code(V3FunctionCodeArgs.builder()
                    .ossBucketName(defaultBucket.bucket())
                    .ossObjectName(defaultBucketObject.key())
                    .checksum("4270285996107335518")
                    .build())
                .instanceLifecycleConfig(V3FunctionInstanceLifecycleConfigArgs.builder()
                    .initializer(V3FunctionInstanceLifecycleConfigInitializerArgs.builder()
                        .timeout("1")
                        .handler("index.init")
                        .build())
                    .preStop(V3FunctionInstanceLifecycleConfigPreStopArgs.builder()
                        .timeout("1")
                        .handler("index.stop")
                        .build())
                    .build())
                .cpu("0.5")
                .instanceConcurrency("2")
                .functionName(String.format("%s-%s", name,default_.result()))
                .environmentVariables(Map.of("EnvKey", "EnvVal"))
                .internetAccess("true")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: random:uuid
      defaultBucket:
        type: alicloud:oss:Bucket
        name: default
        properties:
          bucket: ${name}-${default.result}
      defaultBucketObject:
        type: alicloud:oss:BucketObject
        name: default
        properties:
          bucket: ${defaultBucket.bucket}
          key: FCV3Py39.zip
          content: print('hello')
      defaultV3Function:
        type: alicloud:fc:V3Function
        name: default
        properties:
          description: Create
          memorySize: '512'
          layers:
            - acs:fc:cn-shanghai:official:layers/Python39-Aliyun-SDK/versions/3
          timeout: '3'
          runtime: custom.debian10
          handler: index.handler
          diskSize: '512'
          customRuntimeConfig:
            commands:
              - python
              - -c
              - example
            args:
              - app.py
              - xx
              - x
            port: '9000'
            healthCheckConfig:
              httpGetUrl: /ready
              initialDelaySeconds: '1'
              periodSeconds: '10'
              successThreshold: '1'
              timeoutSeconds: '1'
              failureThreshold: '3'
          logConfig:
            logBeginRule: None
          code:
            ossBucketName: ${defaultBucket.bucket}
            ossObjectName: ${defaultBucketObject.key}
            checksum: '4270285996107335518'
          instanceLifecycleConfig:
            initializer:
              timeout: '1'
              handler: index.init
            preStop:
              timeout: '1'
              handler: index.stop
          cpu: '0.5'
          instanceConcurrency: '2'
          functionName: ${name}-${default.result}
          environmentVariables:
            EnvKey: EnvVal
          internetAccess: 'true'
    

    Create V3Function Resource

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

    Constructor syntax

    new V3Function(name: string, args: V3FunctionArgs, opts?: CustomResourceOptions);
    @overload
    def V3Function(resource_name: str,
                   args: V3FunctionArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def V3Function(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   handler: Optional[str] = None,
                   runtime: Optional[str] = None,
                   description: Optional[str] = None,
                   internet_access: Optional[bool] = None,
                   custom_runtime_config: Optional[V3FunctionCustomRuntimeConfigArgs] = None,
                   code: Optional[V3FunctionCodeArgs] = None,
                   disk_size: Optional[int] = None,
                   environment_variables: Optional[Mapping[str, str]] = None,
                   function_name: Optional[str] = None,
                   gpu_config: Optional[V3FunctionGpuConfigArgs] = None,
                   custom_container_config: Optional[V3FunctionCustomContainerConfigArgs] = None,
                   instance_concurrency: Optional[int] = None,
                   instance_lifecycle_config: Optional[V3FunctionInstanceLifecycleConfigArgs] = None,
                   custom_dns: Optional[V3FunctionCustomDnsArgs] = None,
                   layers: Optional[Sequence[str]] = None,
                   log_config: Optional[V3FunctionLogConfigArgs] = None,
                   memory_size: Optional[int] = None,
                   nas_config: Optional[V3FunctionNasConfigArgs] = None,
                   oss_mount_config: Optional[V3FunctionOssMountConfigArgs] = None,
                   role: Optional[str] = None,
                   cpu: Optional[float] = None,
                   timeout: Optional[int] = None,
                   vpc_config: Optional[V3FunctionVpcConfigArgs] = None)
    func NewV3Function(ctx *Context, name string, args V3FunctionArgs, opts ...ResourceOption) (*V3Function, error)
    public V3Function(string name, V3FunctionArgs args, CustomResourceOptions? opts = null)
    public V3Function(String name, V3FunctionArgs args)
    public V3Function(String name, V3FunctionArgs args, CustomResourceOptions options)
    
    type: alicloud:fc:V3Function
    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 V3FunctionArgs
    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 V3FunctionArgs
    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 V3FunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V3FunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V3FunctionArgs
    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 v3functionResource = new AliCloud.FC.V3Function("v3functionResource", new()
    {
        Handler = "string",
        Runtime = "string",
        Description = "string",
        InternetAccess = false,
        CustomRuntimeConfig = new AliCloud.FC.Inputs.V3FunctionCustomRuntimeConfigArgs
        {
            Args = new[]
            {
                "string",
            },
            Commands = new[]
            {
                "string",
            },
            HealthCheckConfig = new AliCloud.FC.Inputs.V3FunctionCustomRuntimeConfigHealthCheckConfigArgs
            {
                FailureThreshold = 0,
                HttpGetUrl = "string",
                InitialDelaySeconds = 0,
                PeriodSeconds = 0,
                SuccessThreshold = 0,
                TimeoutSeconds = 0,
            },
            Port = 0,
        },
        Code = new AliCloud.FC.Inputs.V3FunctionCodeArgs
        {
            Checksum = "string",
            OssBucketName = "string",
            OssObjectName = "string",
            ZipFile = "string",
        },
        DiskSize = 0,
        EnvironmentVariables = 
        {
            { "string", "string" },
        },
        FunctionName = "string",
        GpuConfig = new AliCloud.FC.Inputs.V3FunctionGpuConfigArgs
        {
            GpuMemorySize = 0,
            GpuType = "string",
        },
        CustomContainerConfig = new AliCloud.FC.Inputs.V3FunctionCustomContainerConfigArgs
        {
            Commands = new[]
            {
                "string",
            },
            Entrypoints = new[]
            {
                "string",
            },
            HealthCheckConfig = new AliCloud.FC.Inputs.V3FunctionCustomContainerConfigHealthCheckConfigArgs
            {
                FailureThreshold = 0,
                HttpGetUrl = "string",
                InitialDelaySeconds = 0,
                PeriodSeconds = 0,
                SuccessThreshold = 0,
                TimeoutSeconds = 0,
            },
            Image = "string",
            Port = 0,
            ResolvedImageUri = "string",
        },
        InstanceConcurrency = 0,
        InstanceLifecycleConfig = new AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfigArgs
        {
            Initializer = new AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfigInitializerArgs
            {
                Handler = "string",
                Timeout = 0,
            },
            PreStop = new AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfigPreStopArgs
            {
                Handler = "string",
                Timeout = 0,
            },
        },
        CustomDns = new AliCloud.FC.Inputs.V3FunctionCustomDnsArgs
        {
            DnsOptions = new[]
            {
                new AliCloud.FC.Inputs.V3FunctionCustomDnsDnsOptionArgs
                {
                    Name = "string",
                    Value = "string",
                },
            },
            NameServers = new[]
            {
                "string",
            },
            Searches = new[]
            {
                "string",
            },
        },
        Layers = new[]
        {
            "string",
        },
        LogConfig = new AliCloud.FC.Inputs.V3FunctionLogConfigArgs
        {
            EnableInstanceMetrics = false,
            EnableRequestMetrics = false,
            LogBeginRule = "string",
            Logstore = "string",
            Project = "string",
        },
        MemorySize = 0,
        NasConfig = new AliCloud.FC.Inputs.V3FunctionNasConfigArgs
        {
            GroupId = 0,
            MountPoints = new[]
            {
                new AliCloud.FC.Inputs.V3FunctionNasConfigMountPointArgs
                {
                    EnableTls = false,
                    MountDir = "string",
                    ServerAddr = "string",
                },
            },
            UserId = 0,
        },
        OssMountConfig = new AliCloud.FC.Inputs.V3FunctionOssMountConfigArgs
        {
            MountPoints = new[]
            {
                new AliCloud.FC.Inputs.V3FunctionOssMountConfigMountPointArgs
                {
                    BucketName = "string",
                    BucketPath = "string",
                    Endpoint = "string",
                    MountDir = "string",
                    ReadOnly = false,
                },
            },
        },
        Role = "string",
        Cpu = 0,
        Timeout = 0,
        VpcConfig = new AliCloud.FC.Inputs.V3FunctionVpcConfigArgs
        {
            SecurityGroupId = "string",
            VpcId = "string",
            VswitchIds = new[]
            {
                "string",
            },
        },
    });
    
    example, err := fc.NewV3Function(ctx, "v3functionResource", &fc.V3FunctionArgs{
    	Handler:        pulumi.String("string"),
    	Runtime:        pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	InternetAccess: pulumi.Bool(false),
    	CustomRuntimeConfig: &fc.V3FunctionCustomRuntimeConfigArgs{
    		Args: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Commands: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		HealthCheckConfig: &fc.V3FunctionCustomRuntimeConfigHealthCheckConfigArgs{
    			FailureThreshold:    pulumi.Int(0),
    			HttpGetUrl:          pulumi.String("string"),
    			InitialDelaySeconds: pulumi.Int(0),
    			PeriodSeconds:       pulumi.Int(0),
    			SuccessThreshold:    pulumi.Int(0),
    			TimeoutSeconds:      pulumi.Int(0),
    		},
    		Port: pulumi.Int(0),
    	},
    	Code: &fc.V3FunctionCodeArgs{
    		Checksum:      pulumi.String("string"),
    		OssBucketName: pulumi.String("string"),
    		OssObjectName: pulumi.String("string"),
    		ZipFile:       pulumi.String("string"),
    	},
    	DiskSize: pulumi.Int(0),
    	EnvironmentVariables: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FunctionName: pulumi.String("string"),
    	GpuConfig: &fc.V3FunctionGpuConfigArgs{
    		GpuMemorySize: pulumi.Int(0),
    		GpuType:       pulumi.String("string"),
    	},
    	CustomContainerConfig: &fc.V3FunctionCustomContainerConfigArgs{
    		Commands: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Entrypoints: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		HealthCheckConfig: &fc.V3FunctionCustomContainerConfigHealthCheckConfigArgs{
    			FailureThreshold:    pulumi.Int(0),
    			HttpGetUrl:          pulumi.String("string"),
    			InitialDelaySeconds: pulumi.Int(0),
    			PeriodSeconds:       pulumi.Int(0),
    			SuccessThreshold:    pulumi.Int(0),
    			TimeoutSeconds:      pulumi.Int(0),
    		},
    		Image:            pulumi.String("string"),
    		Port:             pulumi.Int(0),
    		ResolvedImageUri: pulumi.String("string"),
    	},
    	InstanceConcurrency: pulumi.Int(0),
    	InstanceLifecycleConfig: &fc.V3FunctionInstanceLifecycleConfigArgs{
    		Initializer: &fc.V3FunctionInstanceLifecycleConfigInitializerArgs{
    			Handler: pulumi.String("string"),
    			Timeout: pulumi.Int(0),
    		},
    		PreStop: &fc.V3FunctionInstanceLifecycleConfigPreStopArgs{
    			Handler: pulumi.String("string"),
    			Timeout: pulumi.Int(0),
    		},
    	},
    	CustomDns: &fc.V3FunctionCustomDnsArgs{
    		DnsOptions: fc.V3FunctionCustomDnsDnsOptionArray{
    			&fc.V3FunctionCustomDnsDnsOptionArgs{
    				Name:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		NameServers: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Searches: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Layers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LogConfig: &fc.V3FunctionLogConfigArgs{
    		EnableInstanceMetrics: pulumi.Bool(false),
    		EnableRequestMetrics:  pulumi.Bool(false),
    		LogBeginRule:          pulumi.String("string"),
    		Logstore:              pulumi.String("string"),
    		Project:               pulumi.String("string"),
    	},
    	MemorySize: pulumi.Int(0),
    	NasConfig: &fc.V3FunctionNasConfigArgs{
    		GroupId: pulumi.Int(0),
    		MountPoints: fc.V3FunctionNasConfigMountPointArray{
    			&fc.V3FunctionNasConfigMountPointArgs{
    				EnableTls:  pulumi.Bool(false),
    				MountDir:   pulumi.String("string"),
    				ServerAddr: pulumi.String("string"),
    			},
    		},
    		UserId: pulumi.Int(0),
    	},
    	OssMountConfig: &fc.V3FunctionOssMountConfigArgs{
    		MountPoints: fc.V3FunctionOssMountConfigMountPointArray{
    			&fc.V3FunctionOssMountConfigMountPointArgs{
    				BucketName: pulumi.String("string"),
    				BucketPath: pulumi.String("string"),
    				Endpoint:   pulumi.String("string"),
    				MountDir:   pulumi.String("string"),
    				ReadOnly:   pulumi.Bool(false),
    			},
    		},
    	},
    	Role:    pulumi.String("string"),
    	Cpu:     pulumi.Float64(0),
    	Timeout: pulumi.Int(0),
    	VpcConfig: &fc.V3FunctionVpcConfigArgs{
    		SecurityGroupId: pulumi.String("string"),
    		VpcId:           pulumi.String("string"),
    		VswitchIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var v3functionResource = new V3Function("v3functionResource", V3FunctionArgs.builder()
        .handler("string")
        .runtime("string")
        .description("string")
        .internetAccess(false)
        .customRuntimeConfig(V3FunctionCustomRuntimeConfigArgs.builder()
            .args("string")
            .commands("string")
            .healthCheckConfig(V3FunctionCustomRuntimeConfigHealthCheckConfigArgs.builder()
                .failureThreshold(0)
                .httpGetUrl("string")
                .initialDelaySeconds(0)
                .periodSeconds(0)
                .successThreshold(0)
                .timeoutSeconds(0)
                .build())
            .port(0)
            .build())
        .code(V3FunctionCodeArgs.builder()
            .checksum("string")
            .ossBucketName("string")
            .ossObjectName("string")
            .zipFile("string")
            .build())
        .diskSize(0)
        .environmentVariables(Map.of("string", "string"))
        .functionName("string")
        .gpuConfig(V3FunctionGpuConfigArgs.builder()
            .gpuMemorySize(0)
            .gpuType("string")
            .build())
        .customContainerConfig(V3FunctionCustomContainerConfigArgs.builder()
            .commands("string")
            .entrypoints("string")
            .healthCheckConfig(V3FunctionCustomContainerConfigHealthCheckConfigArgs.builder()
                .failureThreshold(0)
                .httpGetUrl("string")
                .initialDelaySeconds(0)
                .periodSeconds(0)
                .successThreshold(0)
                .timeoutSeconds(0)
                .build())
            .image("string")
            .port(0)
            .resolvedImageUri("string")
            .build())
        .instanceConcurrency(0)
        .instanceLifecycleConfig(V3FunctionInstanceLifecycleConfigArgs.builder()
            .initializer(V3FunctionInstanceLifecycleConfigInitializerArgs.builder()
                .handler("string")
                .timeout(0)
                .build())
            .preStop(V3FunctionInstanceLifecycleConfigPreStopArgs.builder()
                .handler("string")
                .timeout(0)
                .build())
            .build())
        .customDns(V3FunctionCustomDnsArgs.builder()
            .dnsOptions(V3FunctionCustomDnsDnsOptionArgs.builder()
                .name("string")
                .value("string")
                .build())
            .nameServers("string")
            .searches("string")
            .build())
        .layers("string")
        .logConfig(V3FunctionLogConfigArgs.builder()
            .enableInstanceMetrics(false)
            .enableRequestMetrics(false)
            .logBeginRule("string")
            .logstore("string")
            .project("string")
            .build())
        .memorySize(0)
        .nasConfig(V3FunctionNasConfigArgs.builder()
            .groupId(0)
            .mountPoints(V3FunctionNasConfigMountPointArgs.builder()
                .enableTls(false)
                .mountDir("string")
                .serverAddr("string")
                .build())
            .userId(0)
            .build())
        .ossMountConfig(V3FunctionOssMountConfigArgs.builder()
            .mountPoints(V3FunctionOssMountConfigMountPointArgs.builder()
                .bucketName("string")
                .bucketPath("string")
                .endpoint("string")
                .mountDir("string")
                .readOnly(false)
                .build())
            .build())
        .role("string")
        .cpu(0)
        .timeout(0)
        .vpcConfig(V3FunctionVpcConfigArgs.builder()
            .securityGroupId("string")
            .vpcId("string")
            .vswitchIds("string")
            .build())
        .build());
    
    v3function_resource = alicloud.fc.V3Function("v3functionResource",
        handler="string",
        runtime="string",
        description="string",
        internet_access=False,
        custom_runtime_config={
            "args": ["string"],
            "commands": ["string"],
            "health_check_config": {
                "failure_threshold": 0,
                "http_get_url": "string",
                "initial_delay_seconds": 0,
                "period_seconds": 0,
                "success_threshold": 0,
                "timeout_seconds": 0,
            },
            "port": 0,
        },
        code={
            "checksum": "string",
            "oss_bucket_name": "string",
            "oss_object_name": "string",
            "zip_file": "string",
        },
        disk_size=0,
        environment_variables={
            "string": "string",
        },
        function_name="string",
        gpu_config={
            "gpu_memory_size": 0,
            "gpu_type": "string",
        },
        custom_container_config={
            "commands": ["string"],
            "entrypoints": ["string"],
            "health_check_config": {
                "failure_threshold": 0,
                "http_get_url": "string",
                "initial_delay_seconds": 0,
                "period_seconds": 0,
                "success_threshold": 0,
                "timeout_seconds": 0,
            },
            "image": "string",
            "port": 0,
            "resolved_image_uri": "string",
        },
        instance_concurrency=0,
        instance_lifecycle_config={
            "initializer": {
                "handler": "string",
                "timeout": 0,
            },
            "pre_stop": {
                "handler": "string",
                "timeout": 0,
            },
        },
        custom_dns={
            "dns_options": [{
                "name": "string",
                "value": "string",
            }],
            "name_servers": ["string"],
            "searches": ["string"],
        },
        layers=["string"],
        log_config={
            "enable_instance_metrics": False,
            "enable_request_metrics": False,
            "log_begin_rule": "string",
            "logstore": "string",
            "project": "string",
        },
        memory_size=0,
        nas_config={
            "group_id": 0,
            "mount_points": [{
                "enable_tls": False,
                "mount_dir": "string",
                "server_addr": "string",
            }],
            "user_id": 0,
        },
        oss_mount_config={
            "mount_points": [{
                "bucket_name": "string",
                "bucket_path": "string",
                "endpoint": "string",
                "mount_dir": "string",
                "read_only": False,
            }],
        },
        role="string",
        cpu=0,
        timeout=0,
        vpc_config={
            "security_group_id": "string",
            "vpc_id": "string",
            "vswitch_ids": ["string"],
        })
    
    const v3functionResource = new alicloud.fc.V3Function("v3functionResource", {
        handler: "string",
        runtime: "string",
        description: "string",
        internetAccess: false,
        customRuntimeConfig: {
            args: ["string"],
            commands: ["string"],
            healthCheckConfig: {
                failureThreshold: 0,
                httpGetUrl: "string",
                initialDelaySeconds: 0,
                periodSeconds: 0,
                successThreshold: 0,
                timeoutSeconds: 0,
            },
            port: 0,
        },
        code: {
            checksum: "string",
            ossBucketName: "string",
            ossObjectName: "string",
            zipFile: "string",
        },
        diskSize: 0,
        environmentVariables: {
            string: "string",
        },
        functionName: "string",
        gpuConfig: {
            gpuMemorySize: 0,
            gpuType: "string",
        },
        customContainerConfig: {
            commands: ["string"],
            entrypoints: ["string"],
            healthCheckConfig: {
                failureThreshold: 0,
                httpGetUrl: "string",
                initialDelaySeconds: 0,
                periodSeconds: 0,
                successThreshold: 0,
                timeoutSeconds: 0,
            },
            image: "string",
            port: 0,
            resolvedImageUri: "string",
        },
        instanceConcurrency: 0,
        instanceLifecycleConfig: {
            initializer: {
                handler: "string",
                timeout: 0,
            },
            preStop: {
                handler: "string",
                timeout: 0,
            },
        },
        customDns: {
            dnsOptions: [{
                name: "string",
                value: "string",
            }],
            nameServers: ["string"],
            searches: ["string"],
        },
        layers: ["string"],
        logConfig: {
            enableInstanceMetrics: false,
            enableRequestMetrics: false,
            logBeginRule: "string",
            logstore: "string",
            project: "string",
        },
        memorySize: 0,
        nasConfig: {
            groupId: 0,
            mountPoints: [{
                enableTls: false,
                mountDir: "string",
                serverAddr: "string",
            }],
            userId: 0,
        },
        ossMountConfig: {
            mountPoints: [{
                bucketName: "string",
                bucketPath: "string",
                endpoint: "string",
                mountDir: "string",
                readOnly: false,
            }],
        },
        role: "string",
        cpu: 0,
        timeout: 0,
        vpcConfig: {
            securityGroupId: "string",
            vpcId: "string",
            vswitchIds: ["string"],
        },
    });
    
    type: alicloud:fc:V3Function
    properties:
        code:
            checksum: string
            ossBucketName: string
            ossObjectName: string
            zipFile: string
        cpu: 0
        customContainerConfig:
            commands:
                - string
            entrypoints:
                - string
            healthCheckConfig:
                failureThreshold: 0
                httpGetUrl: string
                initialDelaySeconds: 0
                periodSeconds: 0
                successThreshold: 0
                timeoutSeconds: 0
            image: string
            port: 0
            resolvedImageUri: string
        customDns:
            dnsOptions:
                - name: string
                  value: string
            nameServers:
                - string
            searches:
                - string
        customRuntimeConfig:
            args:
                - string
            commands:
                - string
            healthCheckConfig:
                failureThreshold: 0
                httpGetUrl: string
                initialDelaySeconds: 0
                periodSeconds: 0
                successThreshold: 0
                timeoutSeconds: 0
            port: 0
        description: string
        diskSize: 0
        environmentVariables:
            string: string
        functionName: string
        gpuConfig:
            gpuMemorySize: 0
            gpuType: string
        handler: string
        instanceConcurrency: 0
        instanceLifecycleConfig:
            initializer:
                handler: string
                timeout: 0
            preStop:
                handler: string
                timeout: 0
        internetAccess: false
        layers:
            - string
        logConfig:
            enableInstanceMetrics: false
            enableRequestMetrics: false
            logBeginRule: string
            logstore: string
            project: string
        memorySize: 0
        nasConfig:
            groupId: 0
            mountPoints:
                - enableTls: false
                  mountDir: string
                  serverAddr: string
            userId: 0
        ossMountConfig:
            mountPoints:
                - bucketName: string
                  bucketPath: string
                  endpoint: string
                  mountDir: string
                  readOnly: false
        role: string
        runtime: string
        timeout: 0
        vpcConfig:
            securityGroupId: string
            vpcId: string
            vswitchIds:
                - string
    

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

    Handler string
    Function Handler: the call entry for the function compute system to run your function.
    Runtime string
    Function runtime type
    Code Pulumi.AliCloud.FC.Inputs.V3FunctionCode
    Function code ZIP package. code and customContainerConfig. See code below.
    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.V3FunctionCustomContainerConfig
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    CustomDns Pulumi.AliCloud.FC.Inputs.V3FunctionCustomDns
    Function custom DNS configuration See custom_dns below.
    CustomRuntimeConfig Pulumi.AliCloud.FC.Inputs.V3FunctionCustomRuntimeConfig
    Customize the runtime configuration. See custom_runtime_config below.
    Description string
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    DiskSize int
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    EnvironmentVariables Dictionary<string, string>
    The environment variable set for the function, you can get the value of the environment variable in the function.
    FunctionName string
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    GpuConfig Pulumi.AliCloud.FC.Inputs.V3FunctionGpuConfig
    Function GPU configuration. See gpu_config below.
    InstanceConcurrency int
    Maximum instance concurrency.
    InstanceLifecycleConfig Pulumi.AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfig
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    InternetAccess bool
    Allow function to access public network
    Layers List<string>
    The list of layers.
    LogConfig Pulumi.AliCloud.FC.Inputs.V3FunctionLogConfig
    The logs generated by the function are written to the configured Logstore. See log_config below.
    MemorySize int
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    NasConfig Pulumi.AliCloud.FC.Inputs.V3FunctionNasConfig
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    OssMountConfig Pulumi.AliCloud.FC.Inputs.V3FunctionOssMountConfig
    OSS mount configuration See oss_mount_config below.
    Role string
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    Timeout int
    The maximum running time of the function, in seconds.
    VpcConfig Pulumi.AliCloud.FC.Inputs.V3FunctionVpcConfig
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    Handler string
    Function Handler: the call entry for the function compute system to run your function.
    Runtime string
    Function runtime type
    Code V3FunctionCodeArgs
    Function code ZIP package. code and customContainerConfig. See code below.
    Cpu float64
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    CustomContainerConfig V3FunctionCustomContainerConfigArgs
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    CustomDns V3FunctionCustomDnsArgs
    Function custom DNS configuration See custom_dns below.
    CustomRuntimeConfig V3FunctionCustomRuntimeConfigArgs
    Customize the runtime configuration. See custom_runtime_config below.
    Description string
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    DiskSize int
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    EnvironmentVariables map[string]string
    The environment variable set for the function, you can get the value of the environment variable in the function.
    FunctionName string
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    GpuConfig V3FunctionGpuConfigArgs
    Function GPU configuration. See gpu_config below.
    InstanceConcurrency int
    Maximum instance concurrency.
    InstanceLifecycleConfig V3FunctionInstanceLifecycleConfigArgs
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    InternetAccess bool
    Allow function to access public network
    Layers []string
    The list of layers.
    LogConfig V3FunctionLogConfigArgs
    The logs generated by the function are written to the configured Logstore. See log_config below.
    MemorySize int
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    NasConfig V3FunctionNasConfigArgs
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    OssMountConfig V3FunctionOssMountConfigArgs
    OSS mount configuration See oss_mount_config below.
    Role string
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    Timeout int
    The maximum running time of the function, in seconds.
    VpcConfig V3FunctionVpcConfigArgs
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    handler String
    Function Handler: the call entry for the function compute system to run your function.
    runtime String
    Function runtime type
    code V3FunctionCode
    Function code ZIP package. code and customContainerConfig. See code below.
    cpu Double
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    customContainerConfig V3FunctionCustomContainerConfig
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    customDns V3FunctionCustomDns
    Function custom DNS configuration See custom_dns below.
    customRuntimeConfig V3FunctionCustomRuntimeConfig
    Customize the runtime configuration. See custom_runtime_config below.
    description String
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    diskSize Integer
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    environmentVariables Map<String,String>
    The environment variable set for the function, you can get the value of the environment variable in the function.
    functionName String
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    gpuConfig V3FunctionGpuConfig
    Function GPU configuration. See gpu_config below.
    instanceConcurrency Integer
    Maximum instance concurrency.
    instanceLifecycleConfig V3FunctionInstanceLifecycleConfig
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    internetAccess Boolean
    Allow function to access public network
    layers List<String>
    The list of layers.
    logConfig V3FunctionLogConfig
    The logs generated by the function are written to the configured Logstore. See log_config below.
    memorySize Integer
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    nasConfig V3FunctionNasConfig
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    ossMountConfig V3FunctionOssMountConfig
    OSS mount configuration See oss_mount_config below.
    role String
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    timeout Integer
    The maximum running time of the function, in seconds.
    vpcConfig V3FunctionVpcConfig
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    handler string
    Function Handler: the call entry for the function compute system to run your function.
    runtime string
    Function runtime type
    code V3FunctionCode
    Function code ZIP package. code and customContainerConfig. See code below.
    cpu number
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    customContainerConfig V3FunctionCustomContainerConfig
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    customDns V3FunctionCustomDns
    Function custom DNS configuration See custom_dns below.
    customRuntimeConfig V3FunctionCustomRuntimeConfig
    Customize the runtime configuration. See custom_runtime_config below.
    description string
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    diskSize number
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    environmentVariables {[key: string]: string}
    The environment variable set for the function, you can get the value of the environment variable in the function.
    functionName string
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    gpuConfig V3FunctionGpuConfig
    Function GPU configuration. See gpu_config below.
    instanceConcurrency number
    Maximum instance concurrency.
    instanceLifecycleConfig V3FunctionInstanceLifecycleConfig
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    internetAccess boolean
    Allow function to access public network
    layers string[]
    The list of layers.
    logConfig V3FunctionLogConfig
    The logs generated by the function are written to the configured Logstore. See log_config below.
    memorySize number
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    nasConfig V3FunctionNasConfig
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    ossMountConfig V3FunctionOssMountConfig
    OSS mount configuration See oss_mount_config below.
    role string
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    timeout number
    The maximum running time of the function, in seconds.
    vpcConfig V3FunctionVpcConfig
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    handler str
    Function Handler: the call entry for the function compute system to run your function.
    runtime str
    Function runtime type
    code V3FunctionCodeArgs
    Function code ZIP package. code and customContainerConfig. See code below.
    cpu float
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    custom_container_config V3FunctionCustomContainerConfigArgs
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    custom_dns V3FunctionCustomDnsArgs
    Function custom DNS configuration See custom_dns below.
    custom_runtime_config V3FunctionCustomRuntimeConfigArgs
    Customize the runtime configuration. See custom_runtime_config below.
    description str
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    disk_size int
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    environment_variables Mapping[str, str]
    The environment variable set for the function, you can get the value of the environment variable in the function.
    function_name str
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    gpu_config V3FunctionGpuConfigArgs
    Function GPU configuration. See gpu_config below.
    instance_concurrency int
    Maximum instance concurrency.
    instance_lifecycle_config V3FunctionInstanceLifecycleConfigArgs
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    internet_access bool
    Allow function to access public network
    layers Sequence[str]
    The list of layers.
    log_config V3FunctionLogConfigArgs
    The logs generated by the function are written to the configured Logstore. See log_config below.
    memory_size int
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    nas_config V3FunctionNasConfigArgs
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    oss_mount_config V3FunctionOssMountConfigArgs
    OSS mount configuration See oss_mount_config below.
    role str
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    timeout int
    The maximum running time of the function, in seconds.
    vpc_config V3FunctionVpcConfigArgs
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    handler String
    Function Handler: the call entry for the function compute system to run your function.
    runtime String
    Function runtime type
    code Property Map
    Function code ZIP package. code and customContainerConfig. See code below.
    cpu Number
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    customContainerConfig Property Map
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    customDns Property Map
    Function custom DNS configuration See custom_dns below.
    customRuntimeConfig Property Map
    Customize the runtime configuration. See custom_runtime_config below.
    description String
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    diskSize Number
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    environmentVariables Map<String>
    The environment variable set for the function, you can get the value of the environment variable in the function.
    functionName String
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    gpuConfig Property Map
    Function GPU configuration. See gpu_config below.
    instanceConcurrency Number
    Maximum instance concurrency.
    instanceLifecycleConfig Property Map
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    internetAccess Boolean
    Allow function to access public network
    layers List<String>
    The list of layers.
    logConfig Property Map
    The logs generated by the function are written to the configured Logstore. See log_config below.
    memorySize Number
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    nasConfig Property Map
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    ossMountConfig Property Map
    OSS mount configuration See oss_mount_config below.
    role String
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    timeout Number
    The maximum running time of the function, in seconds.
    vpcConfig Property Map
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.

    Outputs

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

    CodeSize int
    The code package size of the function returned by the system, in byte Example : 1024
    CreateTime string
    The creation time of the function.
    FunctionArn string
    ARN of function
    FunctionId string
    The first ID of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    Last time the function was Updated
    LastUpdateStatus string
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    LastUpdateStatusReason string
    The reason that caused the last function to update the Operation State to the current value
    LastUpdateStatusReasonCode string
    Status code of the reason that caused the last function update operation status to the current value
    State string
    Function Status
    StateReason string
    The reason why the function is in the current state
    StateReasonCode string
    The status code of the reason the function is in the current state.
    TracingConfig Pulumi.AliCloud.FC.Outputs.V3FunctionTracingConfig
    Tracing configuration
    CodeSize int
    The code package size of the function returned by the system, in byte Example : 1024
    CreateTime string
    The creation time of the function.
    FunctionArn string
    ARN of function
    FunctionId string
    The first ID of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    Last time the function was Updated
    LastUpdateStatus string
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    LastUpdateStatusReason string
    The reason that caused the last function to update the Operation State to the current value
    LastUpdateStatusReasonCode string
    Status code of the reason that caused the last function update operation status to the current value
    State string
    Function Status
    StateReason string
    The reason why the function is in the current state
    StateReasonCode string
    The status code of the reason the function is in the current state.
    TracingConfig V3FunctionTracingConfig
    Tracing configuration
    codeSize Integer
    The code package size of the function returned by the system, in byte Example : 1024
    createTime String
    The creation time of the function.
    functionArn String
    ARN of function
    functionId String
    The first ID of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    Last time the function was Updated
    lastUpdateStatus String
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    lastUpdateStatusReason String
    The reason that caused the last function to update the Operation State to the current value
    lastUpdateStatusReasonCode String
    Status code of the reason that caused the last function update operation status to the current value
    state String
    Function Status
    stateReason String
    The reason why the function is in the current state
    stateReasonCode String
    The status code of the reason the function is in the current state.
    tracingConfig V3FunctionTracingConfig
    Tracing configuration
    codeSize number
    The code package size of the function returned by the system, in byte Example : 1024
    createTime string
    The creation time of the function.
    functionArn string
    ARN of function
    functionId string
    The first ID of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime string
    Last time the function was Updated
    lastUpdateStatus string
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    lastUpdateStatusReason string
    The reason that caused the last function to update the Operation State to the current value
    lastUpdateStatusReasonCode string
    Status code of the reason that caused the last function update operation status to the current value
    state string
    Function Status
    stateReason string
    The reason why the function is in the current state
    stateReasonCode string
    The status code of the reason the function is in the current state.
    tracingConfig V3FunctionTracingConfig
    Tracing configuration
    code_size int
    The code package size of the function returned by the system, in byte Example : 1024
    create_time str
    The creation time of the function.
    function_arn str
    ARN of function
    function_id str
    The first ID of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_time str
    Last time the function was Updated
    last_update_status str
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    last_update_status_reason str
    The reason that caused the last function to update the Operation State to the current value
    last_update_status_reason_code str
    Status code of the reason that caused the last function update operation status to the current value
    state str
    Function Status
    state_reason str
    The reason why the function is in the current state
    state_reason_code str
    The status code of the reason the function is in the current state.
    tracing_config V3FunctionTracingConfig
    Tracing configuration
    codeSize Number
    The code package size of the function returned by the system, in byte Example : 1024
    createTime String
    The creation time of the function.
    functionArn String
    ARN of function
    functionId String
    The first ID of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    Last time the function was Updated
    lastUpdateStatus String
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    lastUpdateStatusReason String
    The reason that caused the last function to update the Operation State to the current value
    lastUpdateStatusReasonCode String
    Status code of the reason that caused the last function update operation status to the current value
    state String
    Function Status
    stateReason String
    The reason why the function is in the current state
    stateReasonCode String
    The status code of the reason the function is in the current state.
    tracingConfig Property Map
    Tracing configuration

    Look up Existing V3Function Resource

    Get an existing V3Function 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?: V3FunctionState, opts?: CustomResourceOptions): V3Function
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            code: Optional[V3FunctionCodeArgs] = None,
            code_size: Optional[int] = None,
            cpu: Optional[float] = None,
            create_time: Optional[str] = None,
            custom_container_config: Optional[V3FunctionCustomContainerConfigArgs] = None,
            custom_dns: Optional[V3FunctionCustomDnsArgs] = None,
            custom_runtime_config: Optional[V3FunctionCustomRuntimeConfigArgs] = None,
            description: Optional[str] = None,
            disk_size: Optional[int] = None,
            environment_variables: Optional[Mapping[str, str]] = None,
            function_arn: Optional[str] = None,
            function_id: Optional[str] = None,
            function_name: Optional[str] = None,
            gpu_config: Optional[V3FunctionGpuConfigArgs] = None,
            handler: Optional[str] = None,
            instance_concurrency: Optional[int] = None,
            instance_lifecycle_config: Optional[V3FunctionInstanceLifecycleConfigArgs] = None,
            internet_access: Optional[bool] = None,
            last_modified_time: Optional[str] = None,
            last_update_status: Optional[str] = None,
            last_update_status_reason: Optional[str] = None,
            last_update_status_reason_code: Optional[str] = None,
            layers: Optional[Sequence[str]] = None,
            log_config: Optional[V3FunctionLogConfigArgs] = None,
            memory_size: Optional[int] = None,
            nas_config: Optional[V3FunctionNasConfigArgs] = None,
            oss_mount_config: Optional[V3FunctionOssMountConfigArgs] = None,
            role: Optional[str] = None,
            runtime: Optional[str] = None,
            state: Optional[str] = None,
            state_reason: Optional[str] = None,
            state_reason_code: Optional[str] = None,
            timeout: Optional[int] = None,
            tracing_config: Optional[V3FunctionTracingConfigArgs] = None,
            vpc_config: Optional[V3FunctionVpcConfigArgs] = None) -> V3Function
    func GetV3Function(ctx *Context, name string, id IDInput, state *V3FunctionState, opts ...ResourceOption) (*V3Function, error)
    public static V3Function Get(string name, Input<string> id, V3FunctionState? state, CustomResourceOptions? opts = null)
    public static V3Function get(String name, Output<String> id, V3FunctionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Code Pulumi.AliCloud.FC.Inputs.V3FunctionCode
    Function code ZIP package. code and customContainerConfig. See code below.
    CodeSize int
    The code package size of the function returned by the system, in byte Example : 1024
    Cpu double
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    CreateTime string
    The creation time of the function.
    CustomContainerConfig Pulumi.AliCloud.FC.Inputs.V3FunctionCustomContainerConfig
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    CustomDns Pulumi.AliCloud.FC.Inputs.V3FunctionCustomDns
    Function custom DNS configuration See custom_dns below.
    CustomRuntimeConfig Pulumi.AliCloud.FC.Inputs.V3FunctionCustomRuntimeConfig
    Customize the runtime configuration. See custom_runtime_config below.
    Description string
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    DiskSize int
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    EnvironmentVariables Dictionary<string, string>
    The environment variable set for the function, you can get the value of the environment variable in the function.
    FunctionArn string
    ARN of function
    FunctionId string
    The first ID of the resource
    FunctionName string
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    GpuConfig Pulumi.AliCloud.FC.Inputs.V3FunctionGpuConfig
    Function GPU configuration. See gpu_config below.
    Handler string
    Function Handler: the call entry for the function compute system to run your function.
    InstanceConcurrency int
    Maximum instance concurrency.
    InstanceLifecycleConfig Pulumi.AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfig
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    InternetAccess bool
    Allow function to access public network
    LastModifiedTime string
    Last time the function was Updated
    LastUpdateStatus string
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    LastUpdateStatusReason string
    The reason that caused the last function to update the Operation State to the current value
    LastUpdateStatusReasonCode string
    Status code of the reason that caused the last function update operation status to the current value
    Layers List<string>
    The list of layers.
    LogConfig Pulumi.AliCloud.FC.Inputs.V3FunctionLogConfig
    The logs generated by the function are written to the configured Logstore. See log_config below.
    MemorySize int
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    NasConfig Pulumi.AliCloud.FC.Inputs.V3FunctionNasConfig
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    OssMountConfig Pulumi.AliCloud.FC.Inputs.V3FunctionOssMountConfig
    OSS mount configuration See oss_mount_config below.
    Role string
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    Runtime string
    Function runtime type
    State string
    Function Status
    StateReason string
    The reason why the function is in the current state
    StateReasonCode string
    The status code of the reason the function is in the current state.
    Timeout int
    The maximum running time of the function, in seconds.
    TracingConfig Pulumi.AliCloud.FC.Inputs.V3FunctionTracingConfig
    Tracing configuration
    VpcConfig Pulumi.AliCloud.FC.Inputs.V3FunctionVpcConfig
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    Code V3FunctionCodeArgs
    Function code ZIP package. code and customContainerConfig. See code below.
    CodeSize int
    The code package size of the function returned by the system, in byte Example : 1024
    Cpu float64
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    CreateTime string
    The creation time of the function.
    CustomContainerConfig V3FunctionCustomContainerConfigArgs
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    CustomDns V3FunctionCustomDnsArgs
    Function custom DNS configuration See custom_dns below.
    CustomRuntimeConfig V3FunctionCustomRuntimeConfigArgs
    Customize the runtime configuration. See custom_runtime_config below.
    Description string
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    DiskSize int
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    EnvironmentVariables map[string]string
    The environment variable set for the function, you can get the value of the environment variable in the function.
    FunctionArn string
    ARN of function
    FunctionId string
    The first ID of the resource
    FunctionName string
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    GpuConfig V3FunctionGpuConfigArgs
    Function GPU configuration. See gpu_config below.
    Handler string
    Function Handler: the call entry for the function compute system to run your function.
    InstanceConcurrency int
    Maximum instance concurrency.
    InstanceLifecycleConfig V3FunctionInstanceLifecycleConfigArgs
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    InternetAccess bool
    Allow function to access public network
    LastModifiedTime string
    Last time the function was Updated
    LastUpdateStatus string
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    LastUpdateStatusReason string
    The reason that caused the last function to update the Operation State to the current value
    LastUpdateStatusReasonCode string
    Status code of the reason that caused the last function update operation status to the current value
    Layers []string
    The list of layers.
    LogConfig V3FunctionLogConfigArgs
    The logs generated by the function are written to the configured Logstore. See log_config below.
    MemorySize int
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    NasConfig V3FunctionNasConfigArgs
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    OssMountConfig V3FunctionOssMountConfigArgs
    OSS mount configuration See oss_mount_config below.
    Role string
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    Runtime string
    Function runtime type
    State string
    Function Status
    StateReason string
    The reason why the function is in the current state
    StateReasonCode string
    The status code of the reason the function is in the current state.
    Timeout int
    The maximum running time of the function, in seconds.
    TracingConfig V3FunctionTracingConfigArgs
    Tracing configuration
    VpcConfig V3FunctionVpcConfigArgs
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    code V3FunctionCode
    Function code ZIP package. code and customContainerConfig. See code below.
    codeSize Integer
    The code package size of the function returned by the system, in byte Example : 1024
    cpu Double
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    createTime String
    The creation time of the function.
    customContainerConfig V3FunctionCustomContainerConfig
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    customDns V3FunctionCustomDns
    Function custom DNS configuration See custom_dns below.
    customRuntimeConfig V3FunctionCustomRuntimeConfig
    Customize the runtime configuration. See custom_runtime_config below.
    description String
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    diskSize Integer
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    environmentVariables Map<String,String>
    The environment variable set for the function, you can get the value of the environment variable in the function.
    functionArn String
    ARN of function
    functionId String
    The first ID of the resource
    functionName String
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    gpuConfig V3FunctionGpuConfig
    Function GPU configuration. See gpu_config below.
    handler String
    Function Handler: the call entry for the function compute system to run your function.
    instanceConcurrency Integer
    Maximum instance concurrency.
    instanceLifecycleConfig V3FunctionInstanceLifecycleConfig
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    internetAccess Boolean
    Allow function to access public network
    lastModifiedTime String
    Last time the function was Updated
    lastUpdateStatus String
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    lastUpdateStatusReason String
    The reason that caused the last function to update the Operation State to the current value
    lastUpdateStatusReasonCode String
    Status code of the reason that caused the last function update operation status to the current value
    layers List<String>
    The list of layers.
    logConfig V3FunctionLogConfig
    The logs generated by the function are written to the configured Logstore. See log_config below.
    memorySize Integer
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    nasConfig V3FunctionNasConfig
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    ossMountConfig V3FunctionOssMountConfig
    OSS mount configuration See oss_mount_config below.
    role String
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    runtime String
    Function runtime type
    state String
    Function Status
    stateReason String
    The reason why the function is in the current state
    stateReasonCode String
    The status code of the reason the function is in the current state.
    timeout Integer
    The maximum running time of the function, in seconds.
    tracingConfig V3FunctionTracingConfig
    Tracing configuration
    vpcConfig V3FunctionVpcConfig
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    code V3FunctionCode
    Function code ZIP package. code and customContainerConfig. See code below.
    codeSize number
    The code package size of the function returned by the system, in byte Example : 1024
    cpu number
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    createTime string
    The creation time of the function.
    customContainerConfig V3FunctionCustomContainerConfig
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    customDns V3FunctionCustomDns
    Function custom DNS configuration See custom_dns below.
    customRuntimeConfig V3FunctionCustomRuntimeConfig
    Customize the runtime configuration. See custom_runtime_config below.
    description string
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    diskSize number
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    environmentVariables {[key: string]: string}
    The environment variable set for the function, you can get the value of the environment variable in the function.
    functionArn string
    ARN of function
    functionId string
    The first ID of the resource
    functionName string
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    gpuConfig V3FunctionGpuConfig
    Function GPU configuration. See gpu_config below.
    handler string
    Function Handler: the call entry for the function compute system to run your function.
    instanceConcurrency number
    Maximum instance concurrency.
    instanceLifecycleConfig V3FunctionInstanceLifecycleConfig
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    internetAccess boolean
    Allow function to access public network
    lastModifiedTime string
    Last time the function was Updated
    lastUpdateStatus string
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    lastUpdateStatusReason string
    The reason that caused the last function to update the Operation State to the current value
    lastUpdateStatusReasonCode string
    Status code of the reason that caused the last function update operation status to the current value
    layers string[]
    The list of layers.
    logConfig V3FunctionLogConfig
    The logs generated by the function are written to the configured Logstore. See log_config below.
    memorySize number
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    nasConfig V3FunctionNasConfig
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    ossMountConfig V3FunctionOssMountConfig
    OSS mount configuration See oss_mount_config below.
    role string
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    runtime string
    Function runtime type
    state string
    Function Status
    stateReason string
    The reason why the function is in the current state
    stateReasonCode string
    The status code of the reason the function is in the current state.
    timeout number
    The maximum running time of the function, in seconds.
    tracingConfig V3FunctionTracingConfig
    Tracing configuration
    vpcConfig V3FunctionVpcConfig
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    code V3FunctionCodeArgs
    Function code ZIP package. code and customContainerConfig. See code below.
    code_size int
    The code package size of the function returned by the system, in byte Example : 1024
    cpu float
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    create_time str
    The creation time of the function.
    custom_container_config V3FunctionCustomContainerConfigArgs
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    custom_dns V3FunctionCustomDnsArgs
    Function custom DNS configuration See custom_dns below.
    custom_runtime_config V3FunctionCustomRuntimeConfigArgs
    Customize the runtime configuration. See custom_runtime_config below.
    description str
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    disk_size int
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    environment_variables Mapping[str, str]
    The environment variable set for the function, you can get the value of the environment variable in the function.
    function_arn str
    ARN of function
    function_id str
    The first ID of the resource
    function_name str
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    gpu_config V3FunctionGpuConfigArgs
    Function GPU configuration. See gpu_config below.
    handler str
    Function Handler: the call entry for the function compute system to run your function.
    instance_concurrency int
    Maximum instance concurrency.
    instance_lifecycle_config V3FunctionInstanceLifecycleConfigArgs
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    internet_access bool
    Allow function to access public network
    last_modified_time str
    Last time the function was Updated
    last_update_status str
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    last_update_status_reason str
    The reason that caused the last function to update the Operation State to the current value
    last_update_status_reason_code str
    Status code of the reason that caused the last function update operation status to the current value
    layers Sequence[str]
    The list of layers.
    log_config V3FunctionLogConfigArgs
    The logs generated by the function are written to the configured Logstore. See log_config below.
    memory_size int
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    nas_config V3FunctionNasConfigArgs
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    oss_mount_config V3FunctionOssMountConfigArgs
    OSS mount configuration See oss_mount_config below.
    role str
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    runtime str
    Function runtime type
    state str
    Function Status
    state_reason str
    The reason why the function is in the current state
    state_reason_code str
    The status code of the reason the function is in the current state.
    timeout int
    The maximum running time of the function, in seconds.
    tracing_config V3FunctionTracingConfigArgs
    Tracing configuration
    vpc_config V3FunctionVpcConfigArgs
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.
    code Property Map
    Function code ZIP package. code and customContainerConfig. See code below.
    codeSize Number
    The code package size of the function returned by the system, in byte Example : 1024
    cpu Number
    The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
    createTime String
    The creation time of the function.
    customContainerConfig Property Map
    The configuration of the custom container runtime. After the configuration is successful, the function can use the custom container image to execute the function. code and customContainerConfig. See custom_container_config below.
    customDns Property Map
    Function custom DNS configuration See custom_dns below.
    customRuntimeConfig Property Map
    Customize the runtime configuration. See custom_runtime_config below.
    description String
    The description of the function. The function compute system does not use this attribute value, but we recommend that you set a concise and clear description for the function.
    diskSize Number
    The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
    environmentVariables Map<String>
    The environment variable set for the function, you can get the value of the environment variable in the function.
    functionArn String
    ARN of function
    functionId String
    The first ID of the resource
    functionName String
    The function name. Consists of uppercase and lowercase letters, digits (0 to 9), underscores (), and dashes (-). It must begin with an English letter (a ~ z), (A ~ Z), or an underscore (). Case sensitive. The length is 1~128 characters.
    gpuConfig Property Map
    Function GPU configuration. See gpu_config below.
    handler String
    Function Handler: the call entry for the function compute system to run your function.
    instanceConcurrency Number
    Maximum instance concurrency.
    instanceLifecycleConfig Property Map
    Instance lifecycle callback method configuration. See instance_lifecycle_config below.
    internetAccess Boolean
    Allow function to access public network
    lastModifiedTime String
    Last time the function was Updated
    lastUpdateStatus String
    The status of the last function update operation. When the function is created successfully, the value is Successful. Optional values are Successful, Failed, and InProgress.
    lastUpdateStatusReason String
    The reason that caused the last function to update the Operation State to the current value
    lastUpdateStatusReasonCode String
    Status code of the reason that caused the last function update operation status to the current value
    layers List<String>
    The list of layers.
    logConfig Property Map
    The logs generated by the function are written to the configured Logstore. See log_config below.
    memorySize Number
    The memory specification of the function. The unit is MB. The memory size is a multiple of 64MB. The minimum value is 128MB and the maximum value is 32GB. At the same time, the ratio of cpu to memorySize (calculated by GB) should be between 1:1 and 1:4.
    nasConfig Property Map
    NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See nas_config below.
    ossMountConfig Property Map
    OSS mount configuration See oss_mount_config below.
    role String
    The user is authorized to the RAM role of function compute. After the configuration, function compute will assume this role to generate temporary access credentials. In the function, you can use the temporary access credentials of the role to access the specified Alibaba cloud service, such as OSS and OTS
    runtime String
    Function runtime type
    state String
    Function Status
    stateReason String
    The reason why the function is in the current state
    stateReasonCode String
    The status code of the reason the function is in the current state.
    timeout Number
    The maximum running time of the function, in seconds.
    tracingConfig Property Map
    Tracing configuration
    vpcConfig Property Map
    VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See vpc_config below.

    Supporting Types

    V3FunctionCode, V3FunctionCodeArgs

    Checksum string
    The CRC-64 value of the function code package.
    OssBucketName string
    The name of the OSS Bucket that stores the function code ZIP package.
    OssObjectName string
    The name of the OSS Object that stores the function code ZIP package.
    ZipFile string
    The Base 64 encoding of the function code ZIP package.
    Checksum string
    The CRC-64 value of the function code package.
    OssBucketName string
    The name of the OSS Bucket that stores the function code ZIP package.
    OssObjectName string
    The name of the OSS Object that stores the function code ZIP package.
    ZipFile string
    The Base 64 encoding of the function code ZIP package.
    checksum String
    The CRC-64 value of the function code package.
    ossBucketName String
    The name of the OSS Bucket that stores the function code ZIP package.
    ossObjectName String
    The name of the OSS Object that stores the function code ZIP package.
    zipFile String
    The Base 64 encoding of the function code ZIP package.
    checksum string
    The CRC-64 value of the function code package.
    ossBucketName string
    The name of the OSS Bucket that stores the function code ZIP package.
    ossObjectName string
    The name of the OSS Object that stores the function code ZIP package.
    zipFile string
    The Base 64 encoding of the function code ZIP package.
    checksum str
    The CRC-64 value of the function code package.
    oss_bucket_name str
    The name of the OSS Bucket that stores the function code ZIP package.
    oss_object_name str
    The name of the OSS Object that stores the function code ZIP package.
    zip_file str
    The Base 64 encoding of the function code ZIP package.
    checksum String
    The CRC-64 value of the function code package.
    ossBucketName String
    The name of the OSS Bucket that stores the function code ZIP package.
    ossObjectName String
    The name of the OSS Object that stores the function code ZIP package.
    zipFile String
    The Base 64 encoding of the function code ZIP package.

    V3FunctionCustomContainerConfig, V3FunctionCustomContainerConfigArgs

    AccelerationInfo Pulumi.AliCloud.FC.Inputs.V3FunctionCustomContainerConfigAccelerationInfo
    (Deprecated) Image Acceleration Information (Obsolete).

    Deprecated: Field 'acceleration_info' has been deprecated from provider version 1.228.0. Image Acceleration Information (Obsolete)

    AccelerationType string
    Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete).

    Deprecated: Field 'acceleration_type' has been deprecated from provider version 1.228.0. Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete)

    AcrInstanceId string
    ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete).

    Deprecated: Field 'acr_instance_id' has been deprecated from provider version 1.228.0. ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete)

    Commands List<string>
    Container startup parameters.
    Entrypoints List<string>
    Container start command.
    HealthCheckConfig Pulumi.AliCloud.FC.Inputs.V3FunctionCustomContainerConfigHealthCheckConfig
    Function custom health check configuration See health_check_config below.
    Image string
    The container Image address.
    Port int
    The listening port of the HTTP Server when the custom container runs.
    ResolvedImageUri string
    The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
    AccelerationInfo V3FunctionCustomContainerConfigAccelerationInfo
    (Deprecated) Image Acceleration Information (Obsolete).

    Deprecated: Field 'acceleration_info' has been deprecated from provider version 1.228.0. Image Acceleration Information (Obsolete)

    AccelerationType string
    Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete).

    Deprecated: Field 'acceleration_type' has been deprecated from provider version 1.228.0. Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete)

    AcrInstanceId string
    ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete).

    Deprecated: Field 'acr_instance_id' has been deprecated from provider version 1.228.0. ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete)

    Commands []string
    Container startup parameters.
    Entrypoints []string
    Container start command.
    HealthCheckConfig V3FunctionCustomContainerConfigHealthCheckConfig
    Function custom health check configuration See health_check_config below.
    Image string
    The container Image address.
    Port int
    The listening port of the HTTP Server when the custom container runs.
    ResolvedImageUri string
    The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
    accelerationInfo V3FunctionCustomContainerConfigAccelerationInfo
    (Deprecated) Image Acceleration Information (Obsolete).

    Deprecated: Field 'acceleration_info' has been deprecated from provider version 1.228.0. Image Acceleration Information (Obsolete)

    accelerationType String
    Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete).

    Deprecated: Field 'acceleration_type' has been deprecated from provider version 1.228.0. Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete)

    acrInstanceId String
    ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete).

    Deprecated: Field 'acr_instance_id' has been deprecated from provider version 1.228.0. ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete)

    commands List<String>
    Container startup parameters.
    entrypoints List<String>
    Container start command.
    healthCheckConfig V3FunctionCustomContainerConfigHealthCheckConfig
    Function custom health check configuration See health_check_config below.
    image String
    The container Image address.
    port Integer
    The listening port of the HTTP Server when the custom container runs.
    resolvedImageUri String
    The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
    accelerationInfo V3FunctionCustomContainerConfigAccelerationInfo
    (Deprecated) Image Acceleration Information (Obsolete).

    Deprecated: Field 'acceleration_info' has been deprecated from provider version 1.228.0. Image Acceleration Information (Obsolete)

    accelerationType string
    Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete).

    Deprecated: Field 'acceleration_type' has been deprecated from provider version 1.228.0. Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete)

    acrInstanceId string
    ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete).

    Deprecated: Field 'acr_instance_id' has been deprecated from provider version 1.228.0. ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete)

    commands string[]
    Container startup parameters.
    entrypoints string[]
    Container start command.
    healthCheckConfig V3FunctionCustomContainerConfigHealthCheckConfig
    Function custom health check configuration See health_check_config below.
    image string
    The container Image address.
    port number
    The listening port of the HTTP Server when the custom container runs.
    resolvedImageUri string
    The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
    acceleration_info V3FunctionCustomContainerConfigAccelerationInfo
    (Deprecated) Image Acceleration Information (Obsolete).

    Deprecated: Field 'acceleration_info' has been deprecated from provider version 1.228.0. Image Acceleration Information (Obsolete)

    acceleration_type str
    Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete).

    Deprecated: Field 'acceleration_type' has been deprecated from provider version 1.228.0. Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete)

    acr_instance_id str
    ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete).

    Deprecated: Field 'acr_instance_id' has been deprecated from provider version 1.228.0. ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete)

    commands Sequence[str]
    Container startup parameters.
    entrypoints Sequence[str]
    Container start command.
    health_check_config V3FunctionCustomContainerConfigHealthCheckConfig
    Function custom health check configuration See health_check_config below.
    image str
    The container Image address.
    port int
    The listening port of the HTTP Server when the custom container runs.
    resolved_image_uri str
    The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
    accelerationInfo Property Map
    (Deprecated) Image Acceleration Information (Obsolete).

    Deprecated: Field 'acceleration_info' has been deprecated from provider version 1.228.0. Image Acceleration Information (Obsolete)

    accelerationType String
    Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete).

    Deprecated: Field 'acceleration_type' has been deprecated from provider version 1.228.0. Whether to enable Image acceleration. Default: The Default value, indicating that image acceleration is enabled. None: indicates that image acceleration is disabled. (Obsolete)

    acrInstanceId String
    ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete).

    Deprecated: Field 'acr_instance_id' has been deprecated from provider version 1.228.0. ACR Enterprise version Image Repository ID, which must be entered when using ACR Enterprise version image. (Obsolete)

    commands List<String>
    Container startup parameters.
    entrypoints List<String>
    Container start command.
    healthCheckConfig Property Map
    Function custom health check configuration See health_check_config below.
    image String
    The container Image address.
    port Number
    The listening port of the HTTP Server when the custom container runs.
    resolvedImageUri String
    The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.

    V3FunctionCustomContainerConfigAccelerationInfo, V3FunctionCustomContainerConfigAccelerationInfoArgs

    Status string
    Image Acceleration Status (Deprecated).

    Deprecated: Field 'status' has been deprecated from provider version 1.228.0. Image Acceleration Status (Deprecated)

    Status string
    Image Acceleration Status (Deprecated).

    Deprecated: Field 'status' has been deprecated from provider version 1.228.0. Image Acceleration Status (Deprecated)

    status String
    Image Acceleration Status (Deprecated).

    Deprecated: Field 'status' has been deprecated from provider version 1.228.0. Image Acceleration Status (Deprecated)

    status string
    Image Acceleration Status (Deprecated).

    Deprecated: Field 'status' has been deprecated from provider version 1.228.0. Image Acceleration Status (Deprecated)

    status str
    Image Acceleration Status (Deprecated).

    Deprecated: Field 'status' has been deprecated from provider version 1.228.0. Image Acceleration Status (Deprecated)

    status String
    Image Acceleration Status (Deprecated).

    Deprecated: Field 'status' has been deprecated from provider version 1.228.0. Image Acceleration Status (Deprecated)

    V3FunctionCustomContainerConfigHealthCheckConfig, V3FunctionCustomContainerConfigHealthCheckConfigArgs

    V3FunctionCustomDns, V3FunctionCustomDnsArgs

    DnsOptions List<Pulumi.AliCloud.FC.Inputs.V3FunctionCustomDnsDnsOption>
    List of configuration items in the resolv.conf file. Each item corresponds to a key-value pair in the format of key:value, where the key is required. See dns_options below.
    NameServers List<string>
    IP Address List of DNS servers.
    Searches List<string>
    DNS search domain list.
    DnsOptions []V3FunctionCustomDnsDnsOption
    List of configuration items in the resolv.conf file. Each item corresponds to a key-value pair in the format of key:value, where the key is required. See dns_options below.
    NameServers []string
    IP Address List of DNS servers.
    Searches []string
    DNS search domain list.
    dnsOptions List<V3FunctionCustomDnsDnsOption>
    List of configuration items in the resolv.conf file. Each item corresponds to a key-value pair in the format of key:value, where the key is required. See dns_options below.
    nameServers List<String>
    IP Address List of DNS servers.
    searches List<String>
    DNS search domain list.
    dnsOptions V3FunctionCustomDnsDnsOption[]
    List of configuration items in the resolv.conf file. Each item corresponds to a key-value pair in the format of key:value, where the key is required. See dns_options below.
    nameServers string[]
    IP Address List of DNS servers.
    searches string[]
    DNS search domain list.
    dns_options Sequence[V3FunctionCustomDnsDnsOption]
    List of configuration items in the resolv.conf file. Each item corresponds to a key-value pair in the format of key:value, where the key is required. See dns_options below.
    name_servers Sequence[str]
    IP Address List of DNS servers.
    searches Sequence[str]
    DNS search domain list.
    dnsOptions List<Property Map>
    List of configuration items in the resolv.conf file. Each item corresponds to a key-value pair in the format of key:value, where the key is required. See dns_options below.
    nameServers List<String>
    IP Address List of DNS servers.
    searches List<String>
    DNS search domain list.

    V3FunctionCustomDnsDnsOption, V3FunctionCustomDnsDnsOptionArgs

    Name string
    Configuration Item Name.
    Value string
    Configuration Item Value.
    Name string
    Configuration Item Name.
    Value string
    Configuration Item Value.
    name String
    Configuration Item Name.
    value String
    Configuration Item Value.
    name string
    Configuration Item Name.
    value string
    Configuration Item Value.
    name str
    Configuration Item Name.
    value str
    Configuration Item Value.
    name String
    Configuration Item Name.
    value String
    Configuration Item Value.

    V3FunctionCustomRuntimeConfig, V3FunctionCustomRuntimeConfigArgs

    Args List<string>
    Instance startup parameters.
    Commands List<string>
    Instance start command.
    HealthCheckConfig Pulumi.AliCloud.FC.Inputs.V3FunctionCustomRuntimeConfigHealthCheckConfig
    Function custom health check configuration. See health_check_config below.
    Port int
    The listening port of the HTTP Server.
    Args []string
    Instance startup parameters.
    Commands []string
    Instance start command.
    HealthCheckConfig V3FunctionCustomRuntimeConfigHealthCheckConfig
    Function custom health check configuration. See health_check_config below.
    Port int
    The listening port of the HTTP Server.
    args List<String>
    Instance startup parameters.
    commands List<String>
    Instance start command.
    healthCheckConfig V3FunctionCustomRuntimeConfigHealthCheckConfig
    Function custom health check configuration. See health_check_config below.
    port Integer
    The listening port of the HTTP Server.
    args string[]
    Instance startup parameters.
    commands string[]
    Instance start command.
    healthCheckConfig V3FunctionCustomRuntimeConfigHealthCheckConfig
    Function custom health check configuration. See health_check_config below.
    port number
    The listening port of the HTTP Server.
    args Sequence[str]
    Instance startup parameters.
    commands Sequence[str]
    Instance start command.
    health_check_config V3FunctionCustomRuntimeConfigHealthCheckConfig
    Function custom health check configuration. See health_check_config below.
    port int
    The listening port of the HTTP Server.
    args List<String>
    Instance startup parameters.
    commands List<String>
    Instance start command.
    healthCheckConfig Property Map
    Function custom health check configuration. See health_check_config below.
    port Number
    The listening port of the HTTP Server.

    V3FunctionCustomRuntimeConfigHealthCheckConfig, V3FunctionCustomRuntimeConfigHealthCheckConfigArgs

    V3FunctionGpuConfig, V3FunctionGpuConfigArgs

    GpuMemorySize int
    GPU memory specification, unit: MB, multiple of 1024MB.
    GpuType string
    GPU card architecture.

    • fc.gpu.tesla indicates the type of the Tesla Architecture Series card of the GPU instance (the same as the NVIDIA T4 card type).
    • fc.gpu.ampere indicates the GPU instance type of Ampere Architecture Series card (same as NVIDIA A10 card type).
    • fc.gpu.ada Indicates the GPU instance Ada Lovelace architecture family card type.
    GpuMemorySize int
    GPU memory specification, unit: MB, multiple of 1024MB.
    GpuType string
    GPU card architecture.

    • fc.gpu.tesla indicates the type of the Tesla Architecture Series card of the GPU instance (the same as the NVIDIA T4 card type).
    • fc.gpu.ampere indicates the GPU instance type of Ampere Architecture Series card (same as NVIDIA A10 card type).
    • fc.gpu.ada Indicates the GPU instance Ada Lovelace architecture family card type.
    gpuMemorySize Integer
    GPU memory specification, unit: MB, multiple of 1024MB.
    gpuType String
    GPU card architecture.

    • fc.gpu.tesla indicates the type of the Tesla Architecture Series card of the GPU instance (the same as the NVIDIA T4 card type).
    • fc.gpu.ampere indicates the GPU instance type of Ampere Architecture Series card (same as NVIDIA A10 card type).
    • fc.gpu.ada Indicates the GPU instance Ada Lovelace architecture family card type.
    gpuMemorySize number
    GPU memory specification, unit: MB, multiple of 1024MB.
    gpuType string
    GPU card architecture.

    • fc.gpu.tesla indicates the type of the Tesla Architecture Series card of the GPU instance (the same as the NVIDIA T4 card type).
    • fc.gpu.ampere indicates the GPU instance type of Ampere Architecture Series card (same as NVIDIA A10 card type).
    • fc.gpu.ada Indicates the GPU instance Ada Lovelace architecture family card type.
    gpu_memory_size int
    GPU memory specification, unit: MB, multiple of 1024MB.
    gpu_type str
    GPU card architecture.

    • fc.gpu.tesla indicates the type of the Tesla Architecture Series card of the GPU instance (the same as the NVIDIA T4 card type).
    • fc.gpu.ampere indicates the GPU instance type of Ampere Architecture Series card (same as NVIDIA A10 card type).
    • fc.gpu.ada Indicates the GPU instance Ada Lovelace architecture family card type.
    gpuMemorySize Number
    GPU memory specification, unit: MB, multiple of 1024MB.
    gpuType String
    GPU card architecture.

    • fc.gpu.tesla indicates the type of the Tesla Architecture Series card of the GPU instance (the same as the NVIDIA T4 card type).
    • fc.gpu.ampere indicates the GPU instance type of Ampere Architecture Series card (same as NVIDIA A10 card type).
    • fc.gpu.ada Indicates the GPU instance Ada Lovelace architecture family card type.

    V3FunctionInstanceLifecycleConfig, V3FunctionInstanceLifecycleConfigArgs

    Initializer Pulumi.AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfigInitializer
    Initializer handler method configuration See initializer below.
    PreStop Pulumi.AliCloud.FC.Inputs.V3FunctionInstanceLifecycleConfigPreStop
    PreStop handler method configuration See pre_stop below.
    Initializer V3FunctionInstanceLifecycleConfigInitializer
    Initializer handler method configuration See initializer below.
    PreStop V3FunctionInstanceLifecycleConfigPreStop
    PreStop handler method configuration See pre_stop below.
    initializer V3FunctionInstanceLifecycleConfigInitializer
    Initializer handler method configuration See initializer below.
    preStop V3FunctionInstanceLifecycleConfigPreStop
    PreStop handler method configuration See pre_stop below.
    initializer V3FunctionInstanceLifecycleConfigInitializer
    Initializer handler method configuration See initializer below.
    preStop V3FunctionInstanceLifecycleConfigPreStop
    PreStop handler method configuration See pre_stop below.
    initializer V3FunctionInstanceLifecycleConfigInitializer
    Initializer handler method configuration See initializer below.
    pre_stop V3FunctionInstanceLifecycleConfigPreStop
    PreStop handler method configuration See pre_stop below.
    initializer Property Map
    Initializer handler method configuration See initializer below.
    preStop Property Map
    PreStop handler method configuration See pre_stop below.

    V3FunctionInstanceLifecycleConfigInitializer, V3FunctionInstanceLifecycleConfigInitializerArgs

    Handler string
    Function Handler: the call entry for the function compute system to run your function.
    Timeout int
    The maximum running time of the function, in seconds.
    Handler string
    Function Handler: the call entry for the function compute system to run your function.
    Timeout int
    The maximum running time of the function, in seconds.
    handler String
    Function Handler: the call entry for the function compute system to run your function.
    timeout Integer
    The maximum running time of the function, in seconds.
    handler string
    Function Handler: the call entry for the function compute system to run your function.
    timeout number
    The maximum running time of the function, in seconds.
    handler str
    Function Handler: the call entry for the function compute system to run your function.
    timeout int
    The maximum running time of the function, in seconds.
    handler String
    Function Handler: the call entry for the function compute system to run your function.
    timeout Number
    The maximum running time of the function, in seconds.

    V3FunctionInstanceLifecycleConfigPreStop, V3FunctionInstanceLifecycleConfigPreStopArgs

    Handler string
    Function Handler: the call entry for the function compute system to run your function.
    Timeout int
    The maximum running time of the function, in seconds.
    Handler string
    Function Handler: the call entry for the function compute system to run your function.
    Timeout int
    The maximum running time of the function, in seconds.
    handler String
    Function Handler: the call entry for the function compute system to run your function.
    timeout Integer
    The maximum running time of the function, in seconds.
    handler string
    Function Handler: the call entry for the function compute system to run your function.
    timeout number
    The maximum running time of the function, in seconds.
    handler str
    Function Handler: the call entry for the function compute system to run your function.
    timeout int
    The maximum running time of the function, in seconds.
    handler String
    Function Handler: the call entry for the function compute system to run your function.
    timeout Number
    The maximum running time of the function, in seconds.

    V3FunctionLogConfig, V3FunctionLogConfigArgs

    EnableInstanceMetrics bool
    After this feature is enabled, you can view core metrics such as instance-level CPU usage, memory usage, instance network status, and the number of requests within an instance. false: The default value, which means that instance-level metrics are turned off. true: indicates that instance-level metrics are enabled.
    EnableRequestMetrics bool
    After this function is enabled, you can view the time and memory consumed by a call to all functions under this service. false: indicates that request-level metrics are turned off. true: The default value, indicating that request-level metrics are enabled.
    LogBeginRule string
    Log Line First Matching Rules.
    Logstore string
    The Logstore name of log service.
    Project string
    The name of the log service Project.
    EnableInstanceMetrics bool
    After this feature is enabled, you can view core metrics such as instance-level CPU usage, memory usage, instance network status, and the number of requests within an instance. false: The default value, which means that instance-level metrics are turned off. true: indicates that instance-level metrics are enabled.
    EnableRequestMetrics bool
    After this function is enabled, you can view the time and memory consumed by a call to all functions under this service. false: indicates that request-level metrics are turned off. true: The default value, indicating that request-level metrics are enabled.
    LogBeginRule string
    Log Line First Matching Rules.
    Logstore string
    The Logstore name of log service.
    Project string
    The name of the log service Project.
    enableInstanceMetrics Boolean
    After this feature is enabled, you can view core metrics such as instance-level CPU usage, memory usage, instance network status, and the number of requests within an instance. false: The default value, which means that instance-level metrics are turned off. true: indicates that instance-level metrics are enabled.
    enableRequestMetrics Boolean
    After this function is enabled, you can view the time and memory consumed by a call to all functions under this service. false: indicates that request-level metrics are turned off. true: The default value, indicating that request-level metrics are enabled.
    logBeginRule String
    Log Line First Matching Rules.
    logstore String
    The Logstore name of log service.
    project String
    The name of the log service Project.
    enableInstanceMetrics boolean
    After this feature is enabled, you can view core metrics such as instance-level CPU usage, memory usage, instance network status, and the number of requests within an instance. false: The default value, which means that instance-level metrics are turned off. true: indicates that instance-level metrics are enabled.
    enableRequestMetrics boolean
    After this function is enabled, you can view the time and memory consumed by a call to all functions under this service. false: indicates that request-level metrics are turned off. true: The default value, indicating that request-level metrics are enabled.
    logBeginRule string
    Log Line First Matching Rules.
    logstore string
    The Logstore name of log service.
    project string
    The name of the log service Project.
    enable_instance_metrics bool
    After this feature is enabled, you can view core metrics such as instance-level CPU usage, memory usage, instance network status, and the number of requests within an instance. false: The default value, which means that instance-level metrics are turned off. true: indicates that instance-level metrics are enabled.
    enable_request_metrics bool
    After this function is enabled, you can view the time and memory consumed by a call to all functions under this service. false: indicates that request-level metrics are turned off. true: The default value, indicating that request-level metrics are enabled.
    log_begin_rule str
    Log Line First Matching Rules.
    logstore str
    The Logstore name of log service.
    project str
    The name of the log service Project.
    enableInstanceMetrics Boolean
    After this feature is enabled, you can view core metrics such as instance-level CPU usage, memory usage, instance network status, and the number of requests within an instance. false: The default value, which means that instance-level metrics are turned off. true: indicates that instance-level metrics are enabled.
    enableRequestMetrics Boolean
    After this function is enabled, you can view the time and memory consumed by a call to all functions under this service. false: indicates that request-level metrics are turned off. true: The default value, indicating that request-level metrics are enabled.
    logBeginRule String
    Log Line First Matching Rules.
    logstore String
    The Logstore name of log service.
    project String
    The name of the log service Project.

    V3FunctionNasConfig, V3FunctionNasConfigArgs

    GroupId int
    Group ID.
    MountPoints List<Pulumi.AliCloud.FC.Inputs.V3FunctionNasConfigMountPoint>
    Mount point list. See mount_points below.
    UserId int
    Account ID.
    GroupId int
    Group ID.
    MountPoints []V3FunctionNasConfigMountPoint
    Mount point list. See mount_points below.
    UserId int
    Account ID.
    groupId Integer
    Group ID.
    mountPoints List<V3FunctionNasConfigMountPoint>
    Mount point list. See mount_points below.
    userId Integer
    Account ID.
    groupId number
    Group ID.
    mountPoints V3FunctionNasConfigMountPoint[]
    Mount point list. See mount_points below.
    userId number
    Account ID.
    group_id int
    Group ID.
    mount_points Sequence[V3FunctionNasConfigMountPoint]
    Mount point list. See mount_points below.
    user_id int
    Account ID.
    groupId Number
    Group ID.
    mountPoints List<Property Map>
    Mount point list. See mount_points below.
    userId Number
    Account ID.

    V3FunctionNasConfigMountPoint, V3FunctionNasConfigMountPointArgs

    EnableTls bool
    Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
    MountDir string
    ServerAddr string
    NAS server address.
    EnableTls bool
    Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
    MountDir string
    ServerAddr string
    NAS server address.
    enableTls Boolean
    Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
    mountDir String
    serverAddr String
    NAS server address.
    enableTls boolean
    Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
    mountDir string
    serverAddr string
    NAS server address.
    enable_tls bool
    Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
    mount_dir str
    server_addr str
    NAS server address.
    enableTls Boolean
    Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
    mountDir String
    serverAddr String
    NAS server address.

    V3FunctionOssMountConfig, V3FunctionOssMountConfigArgs

    MountPoints []V3FunctionOssMountConfigMountPoint
    OSS mount point list. See mount_points below.
    mountPoints List<V3FunctionOssMountConfigMountPoint>
    OSS mount point list. See mount_points below.
    mountPoints V3FunctionOssMountConfigMountPoint[]
    OSS mount point list. See mount_points below.
    mount_points Sequence[V3FunctionOssMountConfigMountPoint]
    OSS mount point list. See mount_points below.
    mountPoints List<Property Map>
    OSS mount point list. See mount_points below.

    V3FunctionOssMountConfigMountPoint, V3FunctionOssMountConfigMountPointArgs

    BucketName string
    OSS Bucket name.
    BucketPath string
    Path of the mounted OSS Bucket.
    Endpoint string
    OSS access endpoint.
    MountDir string
    ReadOnly bool
    Read-only.
    BucketName string
    OSS Bucket name.
    BucketPath string
    Path of the mounted OSS Bucket.
    Endpoint string
    OSS access endpoint.
    MountDir string
    ReadOnly bool
    Read-only.
    bucketName String
    OSS Bucket name.
    bucketPath String
    Path of the mounted OSS Bucket.
    endpoint String
    OSS access endpoint.
    mountDir String
    readOnly Boolean
    Read-only.
    bucketName string
    OSS Bucket name.
    bucketPath string
    Path of the mounted OSS Bucket.
    endpoint string
    OSS access endpoint.
    mountDir string
    readOnly boolean
    Read-only.
    bucket_name str
    OSS Bucket name.
    bucket_path str
    Path of the mounted OSS Bucket.
    endpoint str
    OSS access endpoint.
    mount_dir str
    read_only bool
    Read-only.
    bucketName String
    OSS Bucket name.
    bucketPath String
    Path of the mounted OSS Bucket.
    endpoint String
    OSS access endpoint.
    mountDir String
    readOnly Boolean
    Read-only.

    V3FunctionTracingConfig, V3FunctionTracingConfigArgs

    Params Dictionary<string, string>
    Tracing parameters.
    Type string
    The tracing protocol type. Currently, only Jaeger is supported.
    Params map[string]string
    Tracing parameters.
    Type string
    The tracing protocol type. Currently, only Jaeger is supported.
    params Map<String,String>
    Tracing parameters.
    type String
    The tracing protocol type. Currently, only Jaeger is supported.
    params {[key: string]: string}
    Tracing parameters.
    type string
    The tracing protocol type. Currently, only Jaeger is supported.
    params Mapping[str, str]
    Tracing parameters.
    type str
    The tracing protocol type. Currently, only Jaeger is supported.
    params Map<String>
    Tracing parameters.
    type String
    The tracing protocol type. Currently, only Jaeger is supported.

    V3FunctionVpcConfig, V3FunctionVpcConfigArgs

    SecurityGroupId string
    Security group ID.
    VpcId string
    VPC network ID.
    VswitchIds List<string>
    Switch List.
    SecurityGroupId string
    Security group ID.
    VpcId string
    VPC network ID.
    VswitchIds []string
    Switch List.
    securityGroupId String
    Security group ID.
    vpcId String
    VPC network ID.
    vswitchIds List<String>
    Switch List.
    securityGroupId string
    Security group ID.
    vpcId string
    VPC network ID.
    vswitchIds string[]
    Switch List.
    security_group_id str
    Security group ID.
    vpc_id str
    VPC network ID.
    vswitch_ids Sequence[str]
    Switch List.
    securityGroupId String
    Security group ID.
    vpcId String
    VPC network ID.
    vswitchIds List<String>
    Switch List.

    Import

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

    $ pulumi import alicloud:fc/v3Function:V3Function example <id>
    

    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.66.0 published on Friday, Nov 15, 2024 by Pulumi