alicloud.fc.V3Function
Explore with Pulumi AI
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=alicloud.fc.V3FunctionCustomRuntimeConfigArgs(
args=["string"],
commands=["string"],
health_check_config=alicloud.fc.V3FunctionCustomRuntimeConfigHealthCheckConfigArgs(
failure_threshold=0,
http_get_url="string",
initial_delay_seconds=0,
period_seconds=0,
success_threshold=0,
timeout_seconds=0,
),
port=0,
),
code=alicloud.fc.V3FunctionCodeArgs(
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=alicloud.fc.V3FunctionGpuConfigArgs(
gpu_memory_size=0,
gpu_type="string",
),
custom_container_config=alicloud.fc.V3FunctionCustomContainerConfigArgs(
commands=["string"],
entrypoints=["string"],
health_check_config=alicloud.fc.V3FunctionCustomContainerConfigHealthCheckConfigArgs(
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=alicloud.fc.V3FunctionInstanceLifecycleConfigArgs(
initializer=alicloud.fc.V3FunctionInstanceLifecycleConfigInitializerArgs(
handler="string",
timeout=0,
),
pre_stop=alicloud.fc.V3FunctionInstanceLifecycleConfigPreStopArgs(
handler="string",
timeout=0,
),
),
custom_dns=alicloud.fc.V3FunctionCustomDnsArgs(
dns_options=[alicloud.fc.V3FunctionCustomDnsDnsOptionArgs(
name="string",
value="string",
)],
name_servers=["string"],
searches=["string"],
),
layers=["string"],
log_config=alicloud.fc.V3FunctionLogConfigArgs(
enable_instance_metrics=False,
enable_request_metrics=False,
log_begin_rule="string",
logstore="string",
project="string",
),
memory_size=0,
nas_config=alicloud.fc.V3FunctionNasConfigArgs(
group_id=0,
mount_points=[alicloud.fc.V3FunctionNasConfigMountPointArgs(
enable_tls=False,
mount_dir="string",
server_addr="string",
)],
user_id=0,
),
oss_mount_config=alicloud.fc.V3FunctionOssMountConfigArgs(
mount_points=[alicloud.fc.V3FunctionOssMountConfigMountPointArgs(
bucket_name="string",
bucket_path="string",
endpoint="string",
mount_dir="string",
read_only=False,
)],
),
role="string",
cpu=0,
timeout=0,
vpc_config=alicloud.fc.V3FunctionVpcConfigArgs(
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
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.
Ali Cloud. FC. Inputs. V3Function Code - 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.
- Custom
Container Pulumi.Config Ali Cloud. FC. Inputs. V3Function Custom Container Config - 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 Pulumi.Ali Cloud. FC. Inputs. V3Function Custom Dns - Function custom DNS configuration See
custom_dns
below. - Custom
Runtime Pulumi.Config Ali Cloud. FC. Inputs. V3Function Custom Runtime Config - 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.
- Disk
Size int - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- Environment
Variables Dictionary<string, string> - The environment variable set for the function, you can get the value of the environment variable in the function.
- Function
Name 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.
- Gpu
Config Pulumi.Ali Cloud. FC. Inputs. V3Function Gpu Config - Function GPU configuration. See
gpu_config
below. - Instance
Concurrency int - Maximum instance concurrency.
- Instance
Lifecycle Pulumi.Config Ali Cloud. FC. Inputs. V3Function Instance Lifecycle Config - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - Internet
Access bool - Allow function to access public network
- Layers List<string>
- The list of layers.
- Log
Config Pulumi.Ali Cloud. FC. Inputs. V3Function Log Config - 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 Pulumi.Ali Cloud. FC. Inputs. V3Function Nas Config - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - Oss
Mount Pulumi.Config Ali Cloud. FC. Inputs. V3Function Oss Mount Config - 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.
- Vpc
Config Pulumi.Ali Cloud. FC. Inputs. V3Function Vpc Config - 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
V3Function
Code Args - 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.
- Custom
Container V3FunctionConfig Custom Container Config Args - 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 V3FunctionCustom Dns Args - Function custom DNS configuration See
custom_dns
below. - Custom
Runtime V3FunctionConfig Custom Runtime Config Args - 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.
- Disk
Size int - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- Environment
Variables map[string]string - The environment variable set for the function, you can get the value of the environment variable in the function.
- Function
Name 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.
- Gpu
Config V3FunctionGpu Config Args - Function GPU configuration. See
gpu_config
below. - Instance
Concurrency int - Maximum instance concurrency.
- Instance
Lifecycle V3FunctionConfig Instance Lifecycle Config Args - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - Internet
Access bool - Allow function to access public network
- Layers []string
- The list of layers.
- Log
Config V3FunctionLog Config Args - 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 V3FunctionNas Config Args - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - Oss
Mount V3FunctionConfig Oss Mount Config Args - 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.
- Vpc
Config V3FunctionVpc Config Args - 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
V3Function
Code - 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.
- custom
Container V3FunctionConfig Custom Container Config - 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 V3FunctionCustom Dns - Function custom DNS configuration See
custom_dns
below. - custom
Runtime V3FunctionConfig Custom Runtime Config - 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.
- disk
Size Integer - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- environment
Variables Map<String,String> - The environment variable set for the function, you can get the value of the environment variable in the function.
- function
Name 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.
- gpu
Config V3FunctionGpu Config - Function GPU configuration. See
gpu_config
below. - instance
Concurrency Integer - Maximum instance concurrency.
- instance
Lifecycle V3FunctionConfig Instance Lifecycle Config - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - internet
Access Boolean - Allow function to access public network
- layers List<String>
- The list of layers.
- log
Config V3FunctionLog Config - The logs generated by the function are written to the configured Logstore. See
log_config
below. - memory
Size 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.
- nas
Config V3FunctionNas Config - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - oss
Mount V3FunctionConfig Oss Mount Config - 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.
- vpc
Config V3FunctionVpc Config - 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
V3Function
Code - 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.
- custom
Container V3FunctionConfig Custom Container Config - 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 V3FunctionCustom Dns - Function custom DNS configuration See
custom_dns
below. - custom
Runtime V3FunctionConfig Custom Runtime Config - 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.
- disk
Size number - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- environment
Variables {[key: string]: string} - The environment variable set for the function, you can get the value of the environment variable in the function.
- function
Name 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.
- gpu
Config V3FunctionGpu Config - Function GPU configuration. See
gpu_config
below. - instance
Concurrency number - Maximum instance concurrency.
- instance
Lifecycle V3FunctionConfig Instance Lifecycle Config - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - internet
Access boolean - Allow function to access public network
- layers string[]
- The list of layers.
- log
Config V3FunctionLog Config - The logs generated by the function are written to the configured Logstore. See
log_config
below. - memory
Size 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.
- nas
Config V3FunctionNas Config - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - oss
Mount V3FunctionConfig Oss Mount Config - 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.
- vpc
Config V3FunctionVpc Config - 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
V3Function
Code Args - 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_ V3Functionconfig Custom Container Config Args - 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 V3FunctionCustom Dns Args - Function custom DNS configuration See
custom_dns
below. - custom_
runtime_ V3Functionconfig Custom Runtime Config Args - 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 V3FunctionGpu Config Args - Function GPU configuration. See
gpu_config
below. - instance_
concurrency int - Maximum instance concurrency.
- instance_
lifecycle_ V3Functionconfig Instance Lifecycle Config Args - 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 V3FunctionLog Config Args - 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 V3FunctionNas Config Args - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - oss_
mount_ V3Functionconfig Oss Mount Config Args - 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 V3FunctionVpc Config Args - 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.
- custom
Container Property MapConfig - 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 Property Map - Function custom DNS configuration See
custom_dns
below. - custom
Runtime Property MapConfig - 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.
- disk
Size Number - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- environment
Variables Map<String> - The environment variable set for the function, you can get the value of the environment variable in the function.
- function
Name 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.
- gpu
Config Property Map - Function GPU configuration. See
gpu_config
below. - instance
Concurrency Number - Maximum instance concurrency.
- instance
Lifecycle Property MapConfig - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - internet
Access Boolean - Allow function to access public network
- layers List<String>
- The list of layers.
- log
Config Property Map - The logs generated by the function are written to the configured Logstore. See
log_config
below. - memory
Size 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.
- nas
Config Property Map - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - oss
Mount Property MapConfig - 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.
- vpc
Config 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:
- Create
Time string - The creation time of the function.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The creation time of the function.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the function.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The creation time of the function.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The creation time of the function.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the function.
- id String
- The provider-assigned unique ID for this managed resource.
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,
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_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,
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,
timeout: Optional[int] = 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.
- Code
Pulumi.
Ali Cloud. FC. Inputs. V3Function Code - 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.
- Create
Time string - The creation time of the function.
- Custom
Container Pulumi.Config Ali Cloud. FC. Inputs. V3Function Custom Container Config - 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 Pulumi.Ali Cloud. FC. Inputs. V3Function Custom Dns - Function custom DNS configuration See
custom_dns
below. - Custom
Runtime Pulumi.Config Ali Cloud. FC. Inputs. V3Function Custom Runtime Config - 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.
- Disk
Size int - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- Environment
Variables Dictionary<string, string> - The environment variable set for the function, you can get the value of the environment variable in the function.
- Function
Name 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.
- Gpu
Config Pulumi.Ali Cloud. FC. Inputs. V3Function Gpu Config - Function GPU configuration. See
gpu_config
below. - Handler string
- Function Handler: the call entry for the function compute system to run your function.
- Instance
Concurrency int - Maximum instance concurrency.
- Instance
Lifecycle Pulumi.Config Ali Cloud. FC. Inputs. V3Function Instance Lifecycle Config - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - Internet
Access bool - Allow function to access public network
- Layers List<string>
- The list of layers.
- Log
Config Pulumi.Ali Cloud. FC. Inputs. V3Function Log Config - 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 Pulumi.Ali Cloud. FC. Inputs. V3Function Nas Config - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - Oss
Mount Pulumi.Config Ali Cloud. FC. Inputs. V3Function Oss Mount Config - 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
- Timeout int
- The maximum running time of the function, in seconds.
- Vpc
Config Pulumi.Ali Cloud. FC. Inputs. V3Function Vpc Config - VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See
vpc_config
below.
- Code
V3Function
Code Args - 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.
- Create
Time string - The creation time of the function.
- Custom
Container V3FunctionConfig Custom Container Config Args - 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 V3FunctionCustom Dns Args - Function custom DNS configuration See
custom_dns
below. - Custom
Runtime V3FunctionConfig Custom Runtime Config Args - 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.
- Disk
Size int - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- Environment
Variables map[string]string - The environment variable set for the function, you can get the value of the environment variable in the function.
- Function
Name 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.
- Gpu
Config V3FunctionGpu Config Args - Function GPU configuration. See
gpu_config
below. - Handler string
- Function Handler: the call entry for the function compute system to run your function.
- Instance
Concurrency int - Maximum instance concurrency.
- Instance
Lifecycle V3FunctionConfig Instance Lifecycle Config Args - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - Internet
Access bool - Allow function to access public network
- Layers []string
- The list of layers.
- Log
Config V3FunctionLog Config Args - 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 V3FunctionNas Config Args - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - Oss
Mount V3FunctionConfig Oss Mount Config Args - 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
- Timeout int
- The maximum running time of the function, in seconds.
- Vpc
Config V3FunctionVpc Config Args - VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See
vpc_config
below.
- code
V3Function
Code - 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.
- create
Time String - The creation time of the function.
- custom
Container V3FunctionConfig Custom Container Config - 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 V3FunctionCustom Dns - Function custom DNS configuration See
custom_dns
below. - custom
Runtime V3FunctionConfig Custom Runtime Config - 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.
- disk
Size Integer - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- environment
Variables Map<String,String> - The environment variable set for the function, you can get the value of the environment variable in the function.
- function
Name 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.
- gpu
Config V3FunctionGpu Config - Function GPU configuration. See
gpu_config
below. - handler String
- Function Handler: the call entry for the function compute system to run your function.
- instance
Concurrency Integer - Maximum instance concurrency.
- instance
Lifecycle V3FunctionConfig Instance Lifecycle Config - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - internet
Access Boolean - Allow function to access public network
- layers List<String>
- The list of layers.
- log
Config V3FunctionLog Config - The logs generated by the function are written to the configured Logstore. See
log_config
below. - memory
Size 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.
- nas
Config V3FunctionNas Config - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - oss
Mount V3FunctionConfig Oss Mount Config - 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
- timeout Integer
- The maximum running time of the function, in seconds.
- vpc
Config V3FunctionVpc Config - VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See
vpc_config
below.
- code
V3Function
Code - 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.
- create
Time string - The creation time of the function.
- custom
Container V3FunctionConfig Custom Container Config - 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 V3FunctionCustom Dns - Function custom DNS configuration See
custom_dns
below. - custom
Runtime V3FunctionConfig Custom Runtime Config - 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.
- disk
Size number - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- environment
Variables {[key: string]: string} - The environment variable set for the function, you can get the value of the environment variable in the function.
- function
Name 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.
- gpu
Config V3FunctionGpu Config - Function GPU configuration. See
gpu_config
below. - handler string
- Function Handler: the call entry for the function compute system to run your function.
- instance
Concurrency number - Maximum instance concurrency.
- instance
Lifecycle V3FunctionConfig Instance Lifecycle Config - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - internet
Access boolean - Allow function to access public network
- layers string[]
- The list of layers.
- log
Config V3FunctionLog Config - The logs generated by the function are written to the configured Logstore. See
log_config
below. - memory
Size 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.
- nas
Config V3FunctionNas Config - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - oss
Mount V3FunctionConfig Oss Mount Config - 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
- timeout number
- The maximum running time of the function, in seconds.
- vpc
Config V3FunctionVpc Config - VPC configuration. After this parameter is configured, the function can access the specified VPC resources. See
vpc_config
below.
- code
V3Function
Code Args - 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.
- create_
time str - The creation time of the function.
- custom_
container_ V3Functionconfig Custom Container Config Args - 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 V3FunctionCustom Dns Args - Function custom DNS configuration See
custom_dns
below. - custom_
runtime_ V3Functionconfig Custom Runtime Config Args - 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 V3FunctionGpu Config Args - 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_ V3Functionconfig Instance Lifecycle Config Args - 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 V3FunctionLog Config Args - 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 V3FunctionNas Config Args - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - oss_
mount_ V3Functionconfig Oss Mount Config Args - 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
- timeout int
- The maximum running time of the function, in seconds.
- vpc_
config V3FunctionVpc Config Args - 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. - cpu Number
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- create
Time String - The creation time of the function.
- custom
Container Property MapConfig - 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 Property Map - Function custom DNS configuration See
custom_dns
below. - custom
Runtime Property MapConfig - 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.
- disk
Size Number - The disk specification of the function, in MB. The optional value is 512 MB or 10240MB.
- environment
Variables Map<String> - The environment variable set for the function, you can get the value of the environment variable in the function.
- function
Name 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.
- gpu
Config 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.
- instance
Concurrency Number - Maximum instance concurrency.
- instance
Lifecycle Property MapConfig - Instance lifecycle callback method configuration. See
instance_lifecycle_config
below. - internet
Access Boolean - Allow function to access public network
- layers List<String>
- The list of layers.
- log
Config Property Map - The logs generated by the function are written to the configured Logstore. See
log_config
below. - memory
Size 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.
- nas
Config Property Map - NAS configuration. After this parameter is configured, the function can access the specified NAS resource. See
nas_config
below. - oss
Mount Property MapConfig - 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
- timeout Number
- The maximum running time of the function, in seconds.
- vpc
Config 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.
- Oss
Bucket stringName - The name of the OSS Bucket that stores the function code ZIP package.
- Oss
Object stringName - The name of the OSS Object that stores the function code ZIP package.
- Zip
File string - The Base 64 encoding of the function code ZIP package.
- Checksum string
- The CRC-64 value of the function code package.
- Oss
Bucket stringName - The name of the OSS Bucket that stores the function code ZIP package.
- Oss
Object stringName - The name of the OSS Object that stores the function code ZIP package.
- Zip
File string - The Base 64 encoding of the function code ZIP package.
- checksum String
- The CRC-64 value of the function code package.
- oss
Bucket StringName - The name of the OSS Bucket that stores the function code ZIP package.
- oss
Object StringName - The name of the OSS Object that stores the function code ZIP package.
- zip
File String - The Base 64 encoding of the function code ZIP package.
- checksum string
- The CRC-64 value of the function code package.
- oss
Bucket stringName - The name of the OSS Bucket that stores the function code ZIP package.
- oss
Object stringName - The name of the OSS Object that stores the function code ZIP package.
- zip
File string - The Base 64 encoding of the function code ZIP package.
- checksum str
- The CRC-64 value of the function code package.
- oss_
bucket_ strname - The name of the OSS Bucket that stores the function code ZIP package.
- oss_
object_ strname - 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.
- oss
Bucket StringName - The name of the OSS Bucket that stores the function code ZIP package.
- oss
Object StringName - The name of the OSS Object that stores the function code ZIP package.
- zip
File String - The Base 64 encoding of the function code ZIP package.
V3FunctionCustomContainerConfig, V3FunctionCustomContainerConfigArgs
- Acceleration
Info Pulumi.Ali Cloud. FC. Inputs. V3Function Custom Container Config Acceleration Info - Image Acceleration Information (Obsolete).
- Acceleration
Type string - 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 stringId - 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.
- Health
Check Pulumi.Config Ali Cloud. FC. Inputs. V3Function Custom Container Config Health Check Config - 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.
- Resolved
Image stringUri - The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
- Acceleration
Info V3FunctionCustom Container Config Acceleration Info - Image Acceleration Information (Obsolete).
- Acceleration
Type string - 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 stringId - 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.
- Health
Check V3FunctionConfig Custom Container Config Health Check Config - 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.
- Resolved
Image stringUri - The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
- acceleration
Info V3FunctionCustom Container Config Acceleration Info - Image Acceleration Information (Obsolete).
- acceleration
Type String - 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 StringId - 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.
- health
Check V3FunctionConfig Custom Container Config Health Check Config - 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.
- resolved
Image StringUri - The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
- acceleration
Info V3FunctionCustom Container Config Acceleration Info - Image Acceleration Information (Obsolete).
- acceleration
Type string - 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 stringId - 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.
- health
Check V3FunctionConfig Custom Container Config Health Check Config - 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.
- resolved
Image stringUri - The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
- acceleration_
info V3FunctionCustom Container Config Acceleration Info - 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).
- acr_
instance_ strid - 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_ V3Functionconfig Custom Container Config Health Check Config - 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_ struri - The actual digest version of the deployed Image. The code version specified by this digest is used when the function starts.
- acceleration
Info Property Map - Image Acceleration Information (Obsolete).
- acceleration
Type String - 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 StringId - 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.
- health
Check Property MapConfig - 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.
- resolved
Image StringUri - 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).
- Status string
- Image Acceleration Status (Deprecated).
- status String
- Image Acceleration Status (Deprecated).
- status string
- Image Acceleration Status (Deprecated).
- status str
- Image Acceleration Status (Deprecated).
- status String
- Image Acceleration Status (Deprecated).
V3FunctionCustomContainerConfigHealthCheckConfig, V3FunctionCustomContainerConfigHealthCheckConfigArgs
- Failure
Threshold int - Http
Get stringUrl - Initial
Delay intSeconds - Period
Seconds int - Success
Threshold int - Timeout
Seconds int
- Failure
Threshold int - Http
Get stringUrl - Initial
Delay intSeconds - Period
Seconds int - Success
Threshold int - Timeout
Seconds int
- failure
Threshold Integer - http
Get StringUrl - initial
Delay IntegerSeconds - period
Seconds Integer - success
Threshold Integer - timeout
Seconds Integer
- failure
Threshold number - http
Get stringUrl - initial
Delay numberSeconds - period
Seconds number - success
Threshold number - timeout
Seconds number
- failure_
threshold int - http_
get_ strurl - initial_
delay_ intseconds - period_
seconds int - success_
threshold int - timeout_
seconds int
- failure
Threshold Number - http
Get StringUrl - initial
Delay NumberSeconds - period
Seconds Number - success
Threshold Number - timeout
Seconds Number
V3FunctionCustomDns, V3FunctionCustomDnsArgs
- Dns
Options List<Pulumi.Ali Cloud. FC. Inputs. V3Function Custom Dns Dns Option> - 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 List<string> - IP Address List of DNS servers.
- Searches List<string>
- DNS search domain list.
- Dns
Options []V3FunctionCustom Dns Dns Option - 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 []string - IP Address List of DNS servers.
- Searches []string
- DNS search domain list.
- dns
Options List<V3FunctionCustom Dns Dns Option> - 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 List<String> - IP Address List of DNS servers.
- searches List<String>
- DNS search domain list.
- dns
Options V3FunctionCustom Dns Dns Option[] - 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 string[] - IP Address List of DNS servers.
- searches string[]
- DNS search domain list.
- dns_
options Sequence[V3FunctionCustom Dns Dns Option] - 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.
- dns
Options 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. - name
Servers List<String> - IP Address List of DNS servers.
- searches List<String>
- DNS search domain list.
V3FunctionCustomDnsDnsOption, V3FunctionCustomDnsDnsOptionArgs
V3FunctionCustomRuntimeConfig, V3FunctionCustomRuntimeConfigArgs
- Args List<string>
- Instance startup parameters.
- Commands List<string>
- Instance start command.
- Health
Check Pulumi.Config Ali Cloud. FC. Inputs. V3Function Custom Runtime Config Health Check Config - 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.
- Health
Check V3FunctionConfig Custom Runtime Config Health Check Config - 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.
- health
Check V3FunctionConfig Custom Runtime Config Health Check Config - 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.
- health
Check V3FunctionConfig Custom Runtime Config Health Check Config - 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_ V3Functionconfig Custom Runtime Config Health Check Config - 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.
- health
Check Property MapConfig - Function custom health check configuration. See
health_check_config
below. - port Number
- The listening port of the HTTP Server.
V3FunctionCustomRuntimeConfigHealthCheckConfig, V3FunctionCustomRuntimeConfigHealthCheckConfigArgs
- Failure
Threshold int - Http
Get stringUrl - Initial
Delay intSeconds - Period
Seconds int - Success
Threshold int - Timeout
Seconds int
- Failure
Threshold int - Http
Get stringUrl - Initial
Delay intSeconds - Period
Seconds int - Success
Threshold int - Timeout
Seconds int
- failure
Threshold Integer - http
Get StringUrl - initial
Delay IntegerSeconds - period
Seconds Integer - success
Threshold Integer - timeout
Seconds Integer
- failure
Threshold number - http
Get stringUrl - initial
Delay numberSeconds - period
Seconds number - success
Threshold number - timeout
Seconds number
- failure_
threshold int - http_
get_ strurl - initial_
delay_ intseconds - period_
seconds int - success_
threshold int - timeout_
seconds int
- failure
Threshold Number - http
Get StringUrl - initial
Delay NumberSeconds - period
Seconds Number - success
Threshold Number - timeout
Seconds Number
V3FunctionGpuConfig, V3FunctionGpuConfigArgs
- Gpu
Memory intSize - GPU memory specification, unit: MB, multiple of 1024MB.
- Gpu
Type 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 intSize - GPU memory specification, unit: MB, multiple of 1024MB.
- Gpu
Type 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 IntegerSize - GPU memory specification, unit: MB, multiple of 1024MB.
- gpu
Type 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 numberSize - GPU memory specification, unit: MB, multiple of 1024MB.
- gpu
Type 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_ intsize - 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.
- gpu
Memory NumberSize - GPU memory specification, unit: MB, multiple of 1024MB.
- gpu
Type 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.
Ali Cloud. FC. Inputs. V3Function Instance Lifecycle Config Initializer - Initializer handler method configuration. See
initializer
below. - Pre
Stop Pulumi.Ali Cloud. FC. Inputs. V3Function Instance Lifecycle Config Pre Stop - PreStop handler method configuration. See
pre_stop
below.
- Initializer
V3Function
Instance Lifecycle Config Initializer - Initializer handler method configuration. See
initializer
below. - Pre
Stop V3FunctionInstance Lifecycle Config Pre Stop - PreStop handler method configuration. See
pre_stop
below.
- initializer
V3Function
Instance Lifecycle Config Initializer - Initializer handler method configuration. See
initializer
below. - pre
Stop V3FunctionInstance Lifecycle Config Pre Stop - PreStop handler method configuration. See
pre_stop
below.
- initializer
V3Function
Instance Lifecycle Config Initializer - Initializer handler method configuration. See
initializer
below. - pre
Stop V3FunctionInstance Lifecycle Config Pre Stop - PreStop handler method configuration. See
pre_stop
below.
- initializer
V3Function
Instance Lifecycle Config Initializer - Initializer handler method configuration. See
initializer
below. - pre_
stop V3FunctionInstance Lifecycle Config Pre Stop - PreStop handler method configuration. See
pre_stop
below.
- initializer Property Map
- Initializer handler method configuration. See
initializer
below. - pre
Stop Property Map - PreStop handler method configuration. See
pre_stop
below.
V3FunctionInstanceLifecycleConfigInitializer, V3FunctionInstanceLifecycleConfigInitializerArgs
V3FunctionInstanceLifecycleConfigPreStop, V3FunctionInstanceLifecycleConfigPreStopArgs
V3FunctionLogConfig, V3FunctionLogConfigArgs
- Enable
Instance boolMetrics - 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 boolMetrics - 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 stringRule - Log Line First Matching Rules.
- Logstore string
- The Logstore name of log service.
- Project string
- The name of the log service Project.
- Enable
Instance boolMetrics - 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 boolMetrics - 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 stringRule - Log Line First Matching Rules.
- Logstore string
- The Logstore name of log service.
- Project string
- The name of the log service Project.
- enable
Instance BooleanMetrics - 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 BooleanMetrics - 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 StringRule - Log Line First Matching Rules.
- logstore String
- The Logstore name of log service.
- project String
- The name of the log service Project.
- enable
Instance booleanMetrics - 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 booleanMetrics - 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 stringRule - Log Line First Matching Rules.
- logstore string
- The Logstore name of log service.
- project string
- The name of the log service Project.
- enable_
instance_ boolmetrics - 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_ boolmetrics - 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_ strrule - Log Line First Matching Rules.
- logstore str
- The Logstore name of log service.
- project str
- The name of the log service Project.
- enable
Instance BooleanMetrics - 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 BooleanMetrics - 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 StringRule - Log Line First Matching Rules.
- logstore String
- The Logstore name of log service.
- project String
- The name of the log service Project.
V3FunctionNasConfig, V3FunctionNasConfigArgs
- Group
Id int - Group ID.
- Mount
Points List<Pulumi.Ali Cloud. FC. Inputs. V3Function Nas Config Mount Point> - Mount point list. See
mount_points
below. - User
Id int - Account ID.
- Group
Id int - Group ID.
- Mount
Points []V3FunctionNas Config Mount Point - Mount point list. See
mount_points
below. - User
Id int - Account ID.
- group
Id Integer - Group ID.
- mount
Points List<V3FunctionNas Config Mount Point> - Mount point list. See
mount_points
below. - user
Id Integer - Account ID.
- group
Id number - Group ID.
- mount
Points V3FunctionNas Config Mount Point[] - Mount point list. See
mount_points
below. - user
Id number - Account ID.
- group_
id int - Group ID.
- mount_
points Sequence[V3FunctionNas Config Mount Point] - Mount point list. See
mount_points
below. - user_
id int - Account ID.
- group
Id Number - Group ID.
- mount
Points List<Property Map> - Mount point list. See
mount_points
below. - user
Id Number - Account ID.
V3FunctionNasConfigMountPoint, V3FunctionNasConfigMountPointArgs
- Enable
Tls bool - Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
- Mount
Dir string - Server
Addr string - NAS server address.
- Enable
Tls bool - Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
- Mount
Dir string - Server
Addr string - NAS server address.
- enable
Tls Boolean - Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
- mount
Dir String - server
Addr String - NAS server address.
- enable
Tls boolean - Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
- mount
Dir string - server
Addr 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.
- enable
Tls Boolean - Use transport encryption to mount. Note: only general-purpose NAS supports transmission encryption.
- mount
Dir String - server
Addr String - NAS server address.
V3FunctionOssMountConfig, V3FunctionOssMountConfigArgs
- Mount
Points List<Pulumi.Ali Cloud. FC. Inputs. V3Function Oss Mount Config Mount Point> - OSS mount point list. See
mount_points
below.
- Mount
Points []V3FunctionOss Mount Config Mount Point - OSS mount point list. See
mount_points
below.
- mount
Points List<V3FunctionOss Mount Config Mount Point> - OSS mount point list. See
mount_points
below.
- mount
Points V3FunctionOss Mount Config Mount Point[] - OSS mount point list. See
mount_points
below.
- mount_
points Sequence[V3FunctionOss Mount Config Mount Point] - OSS mount point list. See
mount_points
below.
- mount
Points List<Property Map> - OSS mount point list. See
mount_points
below.
V3FunctionOssMountConfigMountPoint, V3FunctionOssMountConfigMountPointArgs
- Bucket
Name string - OSS Bucket name.
- Bucket
Path string - Path of the mounted OSS Bucket.
- Endpoint string
- OSS access endpoint.
- Mount
Dir string - Read
Only bool - Read-only.
- Bucket
Name string - OSS Bucket name.
- Bucket
Path string - Path of the mounted OSS Bucket.
- Endpoint string
- OSS access endpoint.
- Mount
Dir string - Read
Only bool - Read-only.
- bucket
Name String - OSS Bucket name.
- bucket
Path String - Path of the mounted OSS Bucket.
- endpoint String
- OSS access endpoint.
- mount
Dir String - read
Only Boolean - Read-only.
- bucket
Name string - OSS Bucket name.
- bucket
Path string - Path of the mounted OSS Bucket.
- endpoint string
- OSS access endpoint.
- mount
Dir string - read
Only 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.
- bucket
Name String - OSS Bucket name.
- bucket
Path String - Path of the mounted OSS Bucket.
- endpoint String
- OSS access endpoint.
- mount
Dir String - read
Only Boolean - Read-only.
V3FunctionVpcConfig, V3FunctionVpcConfigArgs
- Security
Group stringId - Security group ID.
- Vpc
Id string - VPC network ID.
- Vswitch
Ids List<string> - Switch List.
- Security
Group stringId - Security group ID.
- Vpc
Id string - VPC network ID.
- Vswitch
Ids []string - Switch List.
- security
Group StringId - Security group ID.
- vpc
Id String - VPC network ID.
- vswitch
Ids List<String> - Switch List.
- security
Group stringId - Security group ID.
- vpc
Id string - VPC network ID.
- vswitch
Ids string[] - Switch List.
- security_
group_ strid - Security group ID.
- vpc_
id str - VPC network ID.
- vswitch_
ids Sequence[str] - Switch List.
- security
Group StringId - Security group ID.
- vpc
Id String - VPC network ID.
- vswitch
Ids 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.