alicloud.fc.V2Function
Explore with Pulumi AI
Provides a FCV2 Function resource. Function is the unit of system scheduling and operation. Functions must be subordinate to services. All functions under the same service share some identical settings, such as service authorization and log configuration.
For information about FCV2 Function and how to use it, see What is Function.
NOTE: Available since v1.208.0.
Create V2Function Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new V2Function(name: string, args: V2FunctionArgs, opts?: CustomResourceOptions);
@overload
def V2Function(resource_name: str,
args: V2FunctionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def V2Function(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
service_name: Optional[str] = None,
runtime: Optional[str] = None,
handler: Optional[str] = None,
gpu_memory_size: Optional[int] = None,
cpu: Optional[float] = None,
custom_health_check_config: Optional[V2FunctionCustomHealthCheckConfigArgs] = None,
custom_runtime_config: Optional[V2FunctionCustomRuntimeConfigArgs] = None,
description: Optional[str] = None,
disk_size: Optional[int] = None,
environment_variables: Optional[Mapping[str, str]] = None,
custom_container_config: Optional[V2FunctionCustomContainerConfigArgs] = None,
ca_port: Optional[int] = None,
custom_dns: Optional[V2FunctionCustomDnsArgs] = None,
initialization_timeout: Optional[int] = None,
initializer: Optional[str] = None,
instance_concurrency: Optional[int] = None,
instance_lifecycle_config: Optional[V2FunctionInstanceLifecycleConfigArgs] = None,
instance_type: Optional[str] = None,
layers: Optional[Sequence[str]] = None,
memory_size: Optional[int] = None,
code_checksum: Optional[str] = None,
code: Optional[V2FunctionCodeArgs] = None,
timeout: Optional[int] = None)
func NewV2Function(ctx *Context, name string, args V2FunctionArgs, opts ...ResourceOption) (*V2Function, error)
public V2Function(string name, V2FunctionArgs args, CustomResourceOptions? opts = null)
public V2Function(String name, V2FunctionArgs args)
public V2Function(String name, V2FunctionArgs args, CustomResourceOptions options)
type: alicloud:fc:V2Function
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args V2FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args V2FunctionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args V2FunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args V2FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args V2FunctionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var v2functionResource = new AliCloud.FC.V2Function("v2functionResource", new()
{
FunctionName = "string",
ServiceName = "string",
Runtime = "string",
Handler = "string",
GpuMemorySize = 0,
Cpu = 0,
CustomHealthCheckConfig = new AliCloud.FC.Inputs.V2FunctionCustomHealthCheckConfigArgs
{
FailureThreshold = 0,
HttpGetUrl = "string",
InitialDelaySeconds = 0,
PeriodSeconds = 0,
SuccessThreshold = 0,
TimeoutSeconds = 0,
},
CustomRuntimeConfig = new AliCloud.FC.Inputs.V2FunctionCustomRuntimeConfigArgs
{
Args = new[]
{
"string",
},
Commands = new[]
{
"string",
},
},
Description = "string",
DiskSize = 0,
EnvironmentVariables =
{
{ "string", "string" },
},
CustomContainerConfig = new AliCloud.FC.Inputs.V2FunctionCustomContainerConfigArgs
{
AccelerationType = "string",
Args = "string",
Command = "string",
Image = "string",
WebServerMode = false,
},
CaPort = 0,
CustomDns = new AliCloud.FC.Inputs.V2FunctionCustomDnsArgs
{
DnsOptions = new[]
{
new AliCloud.FC.Inputs.V2FunctionCustomDnsDnsOptionArgs
{
Name = "string",
Value = "string",
},
},
NameServers = new[]
{
"string",
},
Searches = new[]
{
"string",
},
},
InitializationTimeout = 0,
Initializer = "string",
InstanceConcurrency = 0,
InstanceLifecycleConfig = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigArgs
{
PreFreeze = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreFreezeArgs
{
Handler = "string",
Timeout = 0,
},
PreStop = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreStopArgs
{
Handler = "string",
Timeout = 0,
},
},
InstanceType = "string",
Layers = new[]
{
"string",
},
MemorySize = 0,
CodeChecksum = "string",
Code = new AliCloud.FC.Inputs.V2FunctionCodeArgs
{
OssBucketName = "string",
OssObjectName = "string",
ZipFile = "string",
},
Timeout = 0,
});
example, err := fc.NewV2Function(ctx, "v2functionResource", &fc.V2FunctionArgs{
FunctionName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Runtime: pulumi.String("string"),
Handler: pulumi.String("string"),
GpuMemorySize: pulumi.Int(0),
Cpu: pulumi.Float64(0),
CustomHealthCheckConfig: &fc.V2FunctionCustomHealthCheckConfigArgs{
FailureThreshold: pulumi.Int(0),
HttpGetUrl: pulumi.String("string"),
InitialDelaySeconds: pulumi.Int(0),
PeriodSeconds: pulumi.Int(0),
SuccessThreshold: pulumi.Int(0),
TimeoutSeconds: pulumi.Int(0),
},
CustomRuntimeConfig: &fc.V2FunctionCustomRuntimeConfigArgs{
Args: pulumi.StringArray{
pulumi.String("string"),
},
Commands: pulumi.StringArray{
pulumi.String("string"),
},
},
Description: pulumi.String("string"),
DiskSize: pulumi.Int(0),
EnvironmentVariables: pulumi.StringMap{
"string": pulumi.String("string"),
},
CustomContainerConfig: &fc.V2FunctionCustomContainerConfigArgs{
AccelerationType: pulumi.String("string"),
Args: pulumi.String("string"),
Command: pulumi.String("string"),
Image: pulumi.String("string"),
WebServerMode: pulumi.Bool(false),
},
CaPort: pulumi.Int(0),
CustomDns: &fc.V2FunctionCustomDnsArgs{
DnsOptions: fc.V2FunctionCustomDnsDnsOptionArray{
&fc.V2FunctionCustomDnsDnsOptionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
NameServers: pulumi.StringArray{
pulumi.String("string"),
},
Searches: pulumi.StringArray{
pulumi.String("string"),
},
},
InitializationTimeout: pulumi.Int(0),
Initializer: pulumi.String("string"),
InstanceConcurrency: pulumi.Int(0),
InstanceLifecycleConfig: &fc.V2FunctionInstanceLifecycleConfigArgs{
PreFreeze: &fc.V2FunctionInstanceLifecycleConfigPreFreezeArgs{
Handler: pulumi.String("string"),
Timeout: pulumi.Int(0),
},
PreStop: &fc.V2FunctionInstanceLifecycleConfigPreStopArgs{
Handler: pulumi.String("string"),
Timeout: pulumi.Int(0),
},
},
InstanceType: pulumi.String("string"),
Layers: pulumi.StringArray{
pulumi.String("string"),
},
MemorySize: pulumi.Int(0),
CodeChecksum: pulumi.String("string"),
Code: &fc.V2FunctionCodeArgs{
OssBucketName: pulumi.String("string"),
OssObjectName: pulumi.String("string"),
ZipFile: pulumi.String("string"),
},
Timeout: pulumi.Int(0),
})
var v2functionResource = new V2Function("v2functionResource", V2FunctionArgs.builder()
.functionName("string")
.serviceName("string")
.runtime("string")
.handler("string")
.gpuMemorySize(0)
.cpu(0.0)
.customHealthCheckConfig(V2FunctionCustomHealthCheckConfigArgs.builder()
.failureThreshold(0)
.httpGetUrl("string")
.initialDelaySeconds(0)
.periodSeconds(0)
.successThreshold(0)
.timeoutSeconds(0)
.build())
.customRuntimeConfig(V2FunctionCustomRuntimeConfigArgs.builder()
.args("string")
.commands("string")
.build())
.description("string")
.diskSize(0)
.environmentVariables(Map.of("string", "string"))
.customContainerConfig(V2FunctionCustomContainerConfigArgs.builder()
.accelerationType("string")
.args("string")
.command("string")
.image("string")
.webServerMode(false)
.build())
.caPort(0)
.customDns(V2FunctionCustomDnsArgs.builder()
.dnsOptions(V2FunctionCustomDnsDnsOptionArgs.builder()
.name("string")
.value("string")
.build())
.nameServers("string")
.searches("string")
.build())
.initializationTimeout(0)
.initializer("string")
.instanceConcurrency(0)
.instanceLifecycleConfig(V2FunctionInstanceLifecycleConfigArgs.builder()
.preFreeze(V2FunctionInstanceLifecycleConfigPreFreezeArgs.builder()
.handler("string")
.timeout(0)
.build())
.preStop(V2FunctionInstanceLifecycleConfigPreStopArgs.builder()
.handler("string")
.timeout(0)
.build())
.build())
.instanceType("string")
.layers("string")
.memorySize(0)
.codeChecksum("string")
.code(V2FunctionCodeArgs.builder()
.ossBucketName("string")
.ossObjectName("string")
.zipFile("string")
.build())
.timeout(0)
.build());
v2function_resource = alicloud.fc.V2Function("v2functionResource",
function_name="string",
service_name="string",
runtime="string",
handler="string",
gpu_memory_size=0,
cpu=0,
custom_health_check_config={
"failure_threshold": 0,
"http_get_url": "string",
"initial_delay_seconds": 0,
"period_seconds": 0,
"success_threshold": 0,
"timeout_seconds": 0,
},
custom_runtime_config={
"args": ["string"],
"commands": ["string"],
},
description="string",
disk_size=0,
environment_variables={
"string": "string",
},
custom_container_config={
"acceleration_type": "string",
"args": "string",
"command": "string",
"image": "string",
"web_server_mode": False,
},
ca_port=0,
custom_dns={
"dns_options": [{
"name": "string",
"value": "string",
}],
"name_servers": ["string"],
"searches": ["string"],
},
initialization_timeout=0,
initializer="string",
instance_concurrency=0,
instance_lifecycle_config={
"pre_freeze": {
"handler": "string",
"timeout": 0,
},
"pre_stop": {
"handler": "string",
"timeout": 0,
},
},
instance_type="string",
layers=["string"],
memory_size=0,
code_checksum="string",
code={
"oss_bucket_name": "string",
"oss_object_name": "string",
"zip_file": "string",
},
timeout=0)
const v2functionResource = new alicloud.fc.V2Function("v2functionResource", {
functionName: "string",
serviceName: "string",
runtime: "string",
handler: "string",
gpuMemorySize: 0,
cpu: 0,
customHealthCheckConfig: {
failureThreshold: 0,
httpGetUrl: "string",
initialDelaySeconds: 0,
periodSeconds: 0,
successThreshold: 0,
timeoutSeconds: 0,
},
customRuntimeConfig: {
args: ["string"],
commands: ["string"],
},
description: "string",
diskSize: 0,
environmentVariables: {
string: "string",
},
customContainerConfig: {
accelerationType: "string",
args: "string",
command: "string",
image: "string",
webServerMode: false,
},
caPort: 0,
customDns: {
dnsOptions: [{
name: "string",
value: "string",
}],
nameServers: ["string"],
searches: ["string"],
},
initializationTimeout: 0,
initializer: "string",
instanceConcurrency: 0,
instanceLifecycleConfig: {
preFreeze: {
handler: "string",
timeout: 0,
},
preStop: {
handler: "string",
timeout: 0,
},
},
instanceType: "string",
layers: ["string"],
memorySize: 0,
codeChecksum: "string",
code: {
ossBucketName: "string",
ossObjectName: "string",
zipFile: "string",
},
timeout: 0,
});
type: alicloud:fc:V2Function
properties:
caPort: 0
code:
ossBucketName: string
ossObjectName: string
zipFile: string
codeChecksum: string
cpu: 0
customContainerConfig:
accelerationType: string
args: string
command: string
image: string
webServerMode: false
customDns:
dnsOptions:
- name: string
value: string
nameServers:
- string
searches:
- string
customHealthCheckConfig:
failureThreshold: 0
httpGetUrl: string
initialDelaySeconds: 0
periodSeconds: 0
successThreshold: 0
timeoutSeconds: 0
customRuntimeConfig:
args:
- string
commands:
- string
description: string
diskSize: 0
environmentVariables:
string: string
functionName: string
gpuMemorySize: 0
handler: string
initializationTimeout: 0
initializer: string
instanceConcurrency: 0
instanceLifecycleConfig:
preFreeze:
handler: string
timeout: 0
preStop:
handler: string
timeout: 0
instanceType: string
layers:
- string
memorySize: 0
runtime: string
serviceName: string
timeout: 0
V2Function Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The V2Function resource accepts the following input properties:
- Function
Name string - function name.
- Handler string
- entry point of function.
- Runtime string
- runtime of function code.
- Service
Name string - The name of the function Service.
- Ca
Port int - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- Code
Pulumi.
Ali Cloud. FC. Inputs. V2Function Code - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - Code
Checksum string - crc64 of function code.
- Cpu double
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- Custom
Container Pulumi.Config Ali Cloud. FC. Inputs. V2Function Custom Container Config - Custom-container runtime related function configuration. See
custom_container_config
below. - Custom
Dns Pulumi.Ali Cloud. FC. Inputs. V2Function Custom Dns - Function custom DNS configuration. See
custom_dns
below. - Custom
Health Pulumi.Check Config Ali Cloud. FC. Inputs. V2Function Custom Health Check Config - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - Custom
Runtime Pulumi.Config Ali Cloud. FC. Inputs. V2Function Custom Runtime Config - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - Description string
- description of function.
- Disk
Size int - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- Environment
Variables Dictionary<string, string> - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- Gpu
Memory intSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- Initialization
Timeout int - max running time of initializer.
- Initializer string
- initializer entry point of function.
- Instance
Concurrency int - The maximum concurrency allowed for a single function instance.
- Instance
Lifecycle Pulumi.Config Ali Cloud. FC. Inputs. V2Function Instance Lifecycle Config - Instance lifecycle configuration. See
instance_lifecycle_config
below. - Instance
Type string - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- Layers List<string>
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- Memory
Size int - memory size needed by function.
- Timeout int
- max running time of function.
- Function
Name string - function name.
- Handler string
- entry point of function.
- Runtime string
- runtime of function code.
- Service
Name string - The name of the function Service.
- Ca
Port int - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- Code
V2Function
Code Args - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - Code
Checksum string - crc64 of function code.
- Cpu float64
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- Custom
Container V2FunctionConfig Custom Container Config Args - Custom-container runtime related function configuration. See
custom_container_config
below. - Custom
Dns V2FunctionCustom Dns Args - Function custom DNS configuration. See
custom_dns
below. - Custom
Health V2FunctionCheck Config Custom Health Check Config Args - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - Custom
Runtime V2FunctionConfig Custom Runtime Config Args - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - Description string
- description of function.
- Disk
Size int - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- Environment
Variables map[string]string - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- Gpu
Memory intSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- Initialization
Timeout int - max running time of initializer.
- Initializer string
- initializer entry point of function.
- Instance
Concurrency int - The maximum concurrency allowed for a single function instance.
- Instance
Lifecycle V2FunctionConfig Instance Lifecycle Config Args - Instance lifecycle configuration. See
instance_lifecycle_config
below. - Instance
Type string - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- Layers []string
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- Memory
Size int - memory size needed by function.
- Timeout int
- max running time of function.
- function
Name String - function name.
- handler String
- entry point of function.
- runtime String
- runtime of function code.
- service
Name String - The name of the function Service.
- ca
Port Integer - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- code
V2Function
Code - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - code
Checksum String - crc64 of function code.
- cpu Double
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- custom
Container V2FunctionConfig Custom Container Config - Custom-container runtime related function configuration. See
custom_container_config
below. - custom
Dns V2FunctionCustom Dns - Function custom DNS configuration. See
custom_dns
below. - custom
Health V2FunctionCheck Config Custom Health Check Config - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - custom
Runtime V2FunctionConfig Custom Runtime Config - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - description String
- description of function.
- disk
Size Integer - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- environment
Variables Map<String,String> - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- gpu
Memory IntegerSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- initialization
Timeout Integer - max running time of initializer.
- initializer String
- initializer entry point of function.
- instance
Concurrency Integer - The maximum concurrency allowed for a single function instance.
- instance
Lifecycle V2FunctionConfig Instance Lifecycle Config - Instance lifecycle configuration. See
instance_lifecycle_config
below. - instance
Type String - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- layers List<String>
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- memory
Size Integer - memory size needed by function.
- timeout Integer
- max running time of function.
- function
Name string - function name.
- handler string
- entry point of function.
- runtime string
- runtime of function code.
- service
Name string - The name of the function Service.
- ca
Port number - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- code
V2Function
Code - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - code
Checksum string - crc64 of function code.
- cpu number
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- custom
Container V2FunctionConfig Custom Container Config - Custom-container runtime related function configuration. See
custom_container_config
below. - custom
Dns V2FunctionCustom Dns - Function custom DNS configuration. See
custom_dns
below. - custom
Health V2FunctionCheck Config Custom Health Check Config - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - custom
Runtime V2FunctionConfig Custom Runtime Config - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - description string
- description of function.
- disk
Size number - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- environment
Variables {[key: string]: string} - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- gpu
Memory numberSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- initialization
Timeout number - max running time of initializer.
- initializer string
- initializer entry point of function.
- instance
Concurrency number - The maximum concurrency allowed for a single function instance.
- instance
Lifecycle V2FunctionConfig Instance Lifecycle Config - Instance lifecycle configuration. See
instance_lifecycle_config
below. - instance
Type string - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- layers string[]
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- memory
Size number - memory size needed by function.
- timeout number
- max running time of function.
- function_
name str - function name.
- handler str
- entry point of function.
- runtime str
- runtime of function code.
- service_
name str - The name of the function Service.
- ca_
port int - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- code
V2Function
Code Args - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - code_
checksum str - crc64 of function code.
- cpu float
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- custom_
container_ V2Functionconfig Custom Container Config Args - Custom-container runtime related function configuration. See
custom_container_config
below. - custom_
dns V2FunctionCustom Dns Args - Function custom DNS configuration. See
custom_dns
below. - custom_
health_ V2Functioncheck_ config Custom Health Check Config Args - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - custom_
runtime_ V2Functionconfig Custom Runtime Config Args - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - description str
- description of function.
- disk_
size int - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- environment_
variables Mapping[str, str] - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- gpu_
memory_ intsize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- initialization_
timeout int - max running time of initializer.
- initializer str
- initializer entry point of function.
- instance_
concurrency int - The maximum concurrency allowed for a single function instance.
- instance_
lifecycle_ V2Functionconfig Instance Lifecycle Config Args - Instance lifecycle configuration. See
instance_lifecycle_config
below. - instance_
type str - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- layers Sequence[str]
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- memory_
size int - memory size needed by function.
- timeout int
- max running time of function.
- function
Name String - function name.
- handler String
- entry point of function.
- runtime String
- runtime of function code.
- service
Name String - The name of the function Service.
- ca
Port Number - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- code Property Map
- Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - code
Checksum String - crc64 of function code.
- cpu Number
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- custom
Container Property MapConfig - Custom-container runtime related function configuration. See
custom_container_config
below. - custom
Dns Property Map - Function custom DNS configuration. See
custom_dns
below. - custom
Health Property MapCheck Config - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - custom
Runtime Property MapConfig - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - description String
- description of function.
- disk
Size Number - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- environment
Variables Map<String> - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- gpu
Memory NumberSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- initialization
Timeout Number - max running time of initializer.
- initializer String
- initializer entry point of function.
- instance
Concurrency Number - The maximum concurrency allowed for a single function instance.
- instance
Lifecycle Property MapConfig - Instance lifecycle configuration. See
instance_lifecycle_config
below. - instance
Type String - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- layers List<String>
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- memory
Size Number - memory size needed by function.
- timeout Number
- max running time of function.
Outputs
All input properties are implicitly available as output properties. Additionally, the V2Function resource produces the following output properties:
- Create
Time string - create time of function.
- Function
Arn string - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - create time of function.
- Function
Arn string - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - create time of function.
- function
Arn String - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - create time of function.
- function
Arn string - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - create time of function.
- function_
arn str - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - create time of function.
- function
Arn String - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - id String
- The provider-assigned unique ID for this managed resource.
Look up Existing V2Function Resource
Get an existing V2Function resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: V2FunctionState, opts?: CustomResourceOptions): V2Function
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ca_port: Optional[int] = None,
code: Optional[V2FunctionCodeArgs] = None,
code_checksum: Optional[str] = None,
cpu: Optional[float] = None,
create_time: Optional[str] = None,
custom_container_config: Optional[V2FunctionCustomContainerConfigArgs] = None,
custom_dns: Optional[V2FunctionCustomDnsArgs] = None,
custom_health_check_config: Optional[V2FunctionCustomHealthCheckConfigArgs] = None,
custom_runtime_config: Optional[V2FunctionCustomRuntimeConfigArgs] = None,
description: Optional[str] = None,
disk_size: Optional[int] = None,
environment_variables: Optional[Mapping[str, str]] = None,
function_arn: Optional[str] = None,
function_name: Optional[str] = None,
gpu_memory_size: Optional[int] = None,
handler: Optional[str] = None,
initialization_timeout: Optional[int] = None,
initializer: Optional[str] = None,
instance_concurrency: Optional[int] = None,
instance_lifecycle_config: Optional[V2FunctionInstanceLifecycleConfigArgs] = None,
instance_type: Optional[str] = None,
layers: Optional[Sequence[str]] = None,
memory_size: Optional[int] = None,
runtime: Optional[str] = None,
service_name: Optional[str] = None,
timeout: Optional[int] = None) -> V2Function
func GetV2Function(ctx *Context, name string, id IDInput, state *V2FunctionState, opts ...ResourceOption) (*V2Function, error)
public static V2Function Get(string name, Input<string> id, V2FunctionState? state, CustomResourceOptions? opts = null)
public static V2Function get(String name, Output<String> id, V2FunctionState state, CustomResourceOptions options)
resources: _: type: alicloud:fc:V2Function get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ca
Port int - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- Code
Pulumi.
Ali Cloud. FC. Inputs. V2Function Code - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - Code
Checksum string - crc64 of function code.
- Cpu double
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- Create
Time string - create time of function.
- Custom
Container Pulumi.Config Ali Cloud. FC. Inputs. V2Function Custom Container Config - Custom-container runtime related function configuration. See
custom_container_config
below. - Custom
Dns Pulumi.Ali Cloud. FC. Inputs. V2Function Custom Dns - Function custom DNS configuration. See
custom_dns
below. - Custom
Health Pulumi.Check Config Ali Cloud. FC. Inputs. V2Function Custom Health Check Config - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - Custom
Runtime Pulumi.Config Ali Cloud. FC. Inputs. V2Function Custom Runtime Config - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - Description string
- description of function.
- Disk
Size int - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- Environment
Variables Dictionary<string, string> - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- Function
Arn string - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - Function
Name string - function name.
- Gpu
Memory intSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- Handler string
- entry point of function.
- Initialization
Timeout int - max running time of initializer.
- Initializer string
- initializer entry point of function.
- Instance
Concurrency int - The maximum concurrency allowed for a single function instance.
- Instance
Lifecycle Pulumi.Config Ali Cloud. FC. Inputs. V2Function Instance Lifecycle Config - Instance lifecycle configuration. See
instance_lifecycle_config
below. - Instance
Type string - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- Layers List<string>
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- Memory
Size int - memory size needed by function.
- Runtime string
- runtime of function code.
- Service
Name string - The name of the function Service.
- Timeout int
- max running time of function.
- Ca
Port int - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- Code
V2Function
Code Args - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - Code
Checksum string - crc64 of function code.
- Cpu float64
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- Create
Time string - create time of function.
- Custom
Container V2FunctionConfig Custom Container Config Args - Custom-container runtime related function configuration. See
custom_container_config
below. - Custom
Dns V2FunctionCustom Dns Args - Function custom DNS configuration. See
custom_dns
below. - Custom
Health V2FunctionCheck Config Custom Health Check Config Args - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - Custom
Runtime V2FunctionConfig Custom Runtime Config Args - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - Description string
- description of function.
- Disk
Size int - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- Environment
Variables map[string]string - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- Function
Arn string - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - Function
Name string - function name.
- Gpu
Memory intSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- Handler string
- entry point of function.
- Initialization
Timeout int - max running time of initializer.
- Initializer string
- initializer entry point of function.
- Instance
Concurrency int - The maximum concurrency allowed for a single function instance.
- Instance
Lifecycle V2FunctionConfig Instance Lifecycle Config Args - Instance lifecycle configuration. See
instance_lifecycle_config
below. - Instance
Type string - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- Layers []string
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- Memory
Size int - memory size needed by function.
- Runtime string
- runtime of function code.
- Service
Name string - The name of the function Service.
- Timeout int
- max running time of function.
- ca
Port Integer - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- code
V2Function
Code - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - code
Checksum String - crc64 of function code.
- cpu Double
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- create
Time String - create time of function.
- custom
Container V2FunctionConfig Custom Container Config - Custom-container runtime related function configuration. See
custom_container_config
below. - custom
Dns V2FunctionCustom Dns - Function custom DNS configuration. See
custom_dns
below. - custom
Health V2FunctionCheck Config Custom Health Check Config - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - custom
Runtime V2FunctionConfig Custom Runtime Config - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - description String
- description of function.
- disk
Size Integer - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- environment
Variables Map<String,String> - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- function
Arn String - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - function
Name String - function name.
- gpu
Memory IntegerSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- handler String
- entry point of function.
- initialization
Timeout Integer - max running time of initializer.
- initializer String
- initializer entry point of function.
- instance
Concurrency Integer - The maximum concurrency allowed for a single function instance.
- instance
Lifecycle V2FunctionConfig Instance Lifecycle Config - Instance lifecycle configuration. See
instance_lifecycle_config
below. - instance
Type String - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- layers List<String>
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- memory
Size Integer - memory size needed by function.
- runtime String
- runtime of function code.
- service
Name String - The name of the function Service.
- timeout Integer
- max running time of function.
- ca
Port number - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- code
V2Function
Code - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - code
Checksum string - crc64 of function code.
- cpu number
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- create
Time string - create time of function.
- custom
Container V2FunctionConfig Custom Container Config - Custom-container runtime related function configuration. See
custom_container_config
below. - custom
Dns V2FunctionCustom Dns - Function custom DNS configuration. See
custom_dns
below. - custom
Health V2FunctionCheck Config Custom Health Check Config - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - custom
Runtime V2FunctionConfig Custom Runtime Config - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - description string
- description of function.
- disk
Size number - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- environment
Variables {[key: string]: string} - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- function
Arn string - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - function
Name string - function name.
- gpu
Memory numberSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- handler string
- entry point of function.
- initialization
Timeout number - max running time of initializer.
- initializer string
- initializer entry point of function.
- instance
Concurrency number - The maximum concurrency allowed for a single function instance.
- instance
Lifecycle V2FunctionConfig Instance Lifecycle Config - Instance lifecycle configuration. See
instance_lifecycle_config
below. - instance
Type string - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- layers string[]
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- memory
Size number - memory size needed by function.
- runtime string
- runtime of function code.
- service
Name string - The name of the function Service.
- timeout number
- max running time of function.
- ca_
port int - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- code
V2Function
Code Args - Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - code_
checksum str - crc64 of function code.
- cpu float
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- create_
time str - create time of function.
- custom_
container_ V2Functionconfig Custom Container Config Args - Custom-container runtime related function configuration. See
custom_container_config
below. - custom_
dns V2FunctionCustom Dns Args - Function custom DNS configuration. See
custom_dns
below. - custom_
health_ V2Functioncheck_ config Custom Health Check Config Args - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - custom_
runtime_ V2Functionconfig Custom Runtime Config Args - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - description str
- description of function.
- disk_
size int - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- environment_
variables Mapping[str, str] - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- function_
arn str - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - function_
name str - function name.
- gpu_
memory_ intsize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- handler str
- entry point of function.
- initialization_
timeout int - max running time of initializer.
- initializer str
- initializer entry point of function.
- instance_
concurrency int - The maximum concurrency allowed for a single function instance.
- instance_
lifecycle_ V2Functionconfig Instance Lifecycle Config Args - Instance lifecycle configuration. See
instance_lifecycle_config
below. - instance_
type str - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- layers Sequence[str]
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- memory_
size int - memory size needed by function.
- runtime str
- runtime of function code.
- service_
name str - The name of the function Service.
- timeout int
- max running time of function.
- ca
Port Number - The listening port of the HTTP Server when the Custom Runtime or Custom Container is running.
- code Property Map
- Function Code ZIP package. code and customContainerConfig choose one. See
code
below. - code
Checksum String - crc64 of function code.
- cpu Number
- The CPU specification of the function. The unit is vCPU, which is a multiple of the 0.05 vCPU.
- create
Time String - create time of function.
- custom
Container Property MapConfig - Custom-container runtime related function configuration. See
custom_container_config
below. - custom
Dns Property Map - Function custom DNS configuration. See
custom_dns
below. - custom
Health Property MapCheck Config - Custom runtime/container Custom health check configuration. See
custom_health_check_config
below. - custom
Runtime Property MapConfig - Detailed configuration of Custom Runtime function. See
custom_runtime_config
below. - description String
- description of function.
- disk
Size Number - The disk specification of the function. The unit is MB. The optional value is 512 MB or 10240MB.
- environment
Variables Map<String> - The environment variable set for the function can get the value of the environment variable in the function. For more information, see Environment Variables.
- function
Arn String - The Function Compute service function arn. It formats as
acs:fc:<region>:<uid>:services/<serviceName>.LATEST/functions/<functionName>
. - function
Name String - function name.
- gpu
Memory NumberSize - The GPU memory specification of the function, in MB, is a multiple of 1024MB.
- handler String
- entry point of function.
- initialization
Timeout Number - max running time of initializer.
- initializer String
- initializer entry point of function.
- instance
Concurrency Number - The maximum concurrency allowed for a single function instance.
- instance
Lifecycle Property MapConfig - Instance lifecycle configuration. See
instance_lifecycle_config
below. - instance
Type String - The instance type of the function. Valid values:
- e1: Elastic instance.
- c1: performance instance.
- fc.gpu.tesla.1: the T4 card type of the Tesla series of GPU instances.
- fc.gpu.ampere.1: The Ampere series A10 card type of the GPU instance.
- g1: Same as fc.gpu.tesla.1.
- layers List<String>
List of layers.
NOTE: Multiple layers will be merged in the order of array subscripts from large to small, and the contents of layers with small subscripts will overwrite the files with the same name of layers with large subscripts.
- memory
Size Number - memory size needed by function.
- runtime String
- runtime of function code.
- service
Name String - The name of the function Service.
- timeout Number
- max running time of function.
Supporting Types
V2FunctionCode, V2FunctionCodeArgs
- Oss
Bucket stringName - The OSS bucket name of the function code package.
- Oss
Object stringName - The OSS object name of the function code package.
- Zip
File string - Upload the base64 encoding of the code zip package directly in the request body.
- Oss
Bucket stringName - The OSS bucket name of the function code package.
- Oss
Object stringName - The OSS object name of the function code package.
- Zip
File string - Upload the base64 encoding of the code zip package directly in the request body.
- oss
Bucket StringName - The OSS bucket name of the function code package.
- oss
Object StringName - The OSS object name of the function code package.
- zip
File String - Upload the base64 encoding of the code zip package directly in the request body.
- oss
Bucket stringName - The OSS bucket name of the function code package.
- oss
Object stringName - The OSS object name of the function code package.
- zip
File string - Upload the base64 encoding of the code zip package directly in the request body.
- oss_
bucket_ strname - The OSS bucket name of the function code package.
- oss_
object_ strname - The OSS object name of the function code package.
- zip_
file str - Upload the base64 encoding of the code zip package directly in the request body.
- oss
Bucket StringName - The OSS bucket name of the function code package.
- oss
Object StringName - The OSS object name of the function code package.
- zip
File String - Upload the base64 encoding of the code zip package directly in the request body.
V2FunctionCustomContainerConfig, V2FunctionCustomContainerConfigArgs
- Acceleration
Type string - Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
- Args string
- Container startup parameters.
- Command string
- Container start command, equivalent to Docker ENTRYPOINT.
- Image string
- Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
- Web
Server boolMode - Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
- Acceleration
Type string - Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
- Args string
- Container startup parameters.
- Command string
- Container start command, equivalent to Docker ENTRYPOINT.
- Image string
- Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
- Web
Server boolMode - Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
- acceleration
Type String - Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
- args String
- Container startup parameters.
- command String
- Container start command, equivalent to Docker ENTRYPOINT.
- image String
- Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
- web
Server BooleanMode - Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
- acceleration
Type string - Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
- args string
- Container startup parameters.
- command string
- Container start command, equivalent to Docker ENTRYPOINT.
- image string
- Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
- web
Server booleanMode - Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
- acceleration_
type str - Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
- args str
- Container startup parameters.
- command str
- Container start command, equivalent to Docker ENTRYPOINT.
- image str
- Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
- web_
server_ boolmode - Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
- acceleration
Type String - Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
- args String
- Container startup parameters.
- command String
- Container start command, equivalent to Docker ENTRYPOINT.
- image String
- Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
- web
Server BooleanMode - Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
V2FunctionCustomDns, V2FunctionCustomDnsArgs
- Dns
Options List<Pulumi.Ali Cloud. FC. Inputs. V2Function Custom Dns Dns Option> - DNS resolver configuration parameter list. See
dns_options
below. - Name
Servers List<string> - List of IP addresses of DNS servers.
- Searches List<string>
- List of DNS search domains.
- Dns
Options []V2FunctionCustom Dns Dns Option - DNS resolver configuration parameter list. See
dns_options
below. - Name
Servers []string - List of IP addresses of DNS servers.
- Searches []string
- List of DNS search domains.
- dns
Options List<V2FunctionCustom Dns Dns Option> - DNS resolver configuration parameter list. See
dns_options
below. - name
Servers List<String> - List of IP addresses of DNS servers.
- searches List<String>
- List of DNS search domains.
- dns
Options V2FunctionCustom Dns Dns Option[] - DNS resolver configuration parameter list. See
dns_options
below. - name
Servers string[] - List of IP addresses of DNS servers.
- searches string[]
- List of DNS search domains.
- dns_
options Sequence[V2FunctionCustom Dns Dns Option] - DNS resolver configuration parameter list. See
dns_options
below. - name_
servers Sequence[str] - List of IP addresses of DNS servers.
- searches Sequence[str]
- List of DNS search domains.
- dns
Options List<Property Map> - DNS resolver configuration parameter list. See
dns_options
below. - name
Servers List<String> - List of IP addresses of DNS servers.
- searches List<String>
- List of DNS search domains.
V2FunctionCustomDnsDnsOption, V2FunctionCustomDnsDnsOptionArgs
V2FunctionCustomHealthCheckConfig, V2FunctionCustomHealthCheckConfigArgs
- Failure
Threshold int - The threshold for the number of health check failures. The system considers the check failed after the health check fails.
- Http
Get stringUrl - Container custom health check URL address.
- Initial
Delay intSeconds - Delay from container startup to initiation of health check.
- Period
Seconds int - Health check cycle.
- Success
Threshold int - The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
- Timeout
Seconds int - Health check timeout.
- Failure
Threshold int - The threshold for the number of health check failures. The system considers the check failed after the health check fails.
- Http
Get stringUrl - Container custom health check URL address.
- Initial
Delay intSeconds - Delay from container startup to initiation of health check.
- Period
Seconds int - Health check cycle.
- Success
Threshold int - The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
- Timeout
Seconds int - Health check timeout.
- failure
Threshold Integer - The threshold for the number of health check failures. The system considers the check failed after the health check fails.
- http
Get StringUrl - Container custom health check URL address.
- initial
Delay IntegerSeconds - Delay from container startup to initiation of health check.
- period
Seconds Integer - Health check cycle.
- success
Threshold Integer - The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
- timeout
Seconds Integer - Health check timeout.
- failure
Threshold number - The threshold for the number of health check failures. The system considers the check failed after the health check fails.
- http
Get stringUrl - Container custom health check URL address.
- initial
Delay numberSeconds - Delay from container startup to initiation of health check.
- period
Seconds number - Health check cycle.
- success
Threshold number - The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
- timeout
Seconds number - Health check timeout.
- failure_
threshold int - The threshold for the number of health check failures. The system considers the check failed after the health check fails.
- http_
get_ strurl - Container custom health check URL address.
- initial_
delay_ intseconds - Delay from container startup to initiation of health check.
- period_
seconds int - Health check cycle.
- success_
threshold int - The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
- timeout_
seconds int - Health check timeout.
- failure
Threshold Number - The threshold for the number of health check failures. The system considers the check failed after the health check fails.
- http
Get StringUrl - Container custom health check URL address.
- initial
Delay NumberSeconds - Delay from container startup to initiation of health check.
- period
Seconds Number - Health check cycle.
- success
Threshold Number - The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
- timeout
Seconds Number - Health check timeout.
V2FunctionCustomRuntimeConfig, V2FunctionCustomRuntimeConfigArgs
V2FunctionInstanceLifecycleConfig, V2FunctionInstanceLifecycleConfigArgs
- Pre
Freeze Pulumi.Ali Cloud. FC. Inputs. V2Function Instance Lifecycle Config Pre Freeze - PreFreeze function configuration. See
pre_freeze
below. - Pre
Stop Pulumi.Ali Cloud. FC. Inputs. V2Function Instance Lifecycle Config Pre Stop - PreStop function configuration. See
pre_stop
below.
- Pre
Freeze V2FunctionInstance Lifecycle Config Pre Freeze - PreFreeze function configuration. See
pre_freeze
below. - Pre
Stop V2FunctionInstance Lifecycle Config Pre Stop - PreStop function configuration. See
pre_stop
below.
- pre
Freeze V2FunctionInstance Lifecycle Config Pre Freeze - PreFreeze function configuration. See
pre_freeze
below. - pre
Stop V2FunctionInstance Lifecycle Config Pre Stop - PreStop function configuration. See
pre_stop
below.
- pre
Freeze V2FunctionInstance Lifecycle Config Pre Freeze - PreFreeze function configuration. See
pre_freeze
below. - pre
Stop V2FunctionInstance Lifecycle Config Pre Stop - PreStop function configuration. See
pre_stop
below.
- pre_
freeze V2FunctionInstance Lifecycle Config Pre Freeze - PreFreeze function configuration. See
pre_freeze
below. - pre_
stop V2FunctionInstance Lifecycle Config Pre Stop - PreStop function configuration. See
pre_stop
below.
- pre
Freeze Property Map - PreFreeze function configuration. See
pre_freeze
below. - pre
Stop Property Map - PreStop function configuration. See
pre_stop
below.
V2FunctionInstanceLifecycleConfigPreFreeze, V2FunctionInstanceLifecycleConfigPreFreezeArgs
V2FunctionInstanceLifecycleConfigPreStop, V2FunctionInstanceLifecycleConfigPreStopArgs
Import
FCV2 Function can be imported using the id, e.g.
$ pulumi import alicloud:fc/v2Function:V2Function example <service_name>:<function_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.