alicloud.fc.V2Function
Explore with Pulumi AI
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)
.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 - Handler string
- Runtime string
- Service
Name string - Ca
Port int - Code
Pulumi.
Ali Cloud. FC. Inputs. V2Function Code - Code
Checksum string - Cpu double
- Custom
Container Pulumi.Config Ali Cloud. FC. Inputs. V2Function Custom Container Config - Custom
Dns Pulumi.Ali Cloud. FC. Inputs. V2Function Custom Dns - Custom
Health Pulumi.Check Config Ali Cloud. FC. Inputs. V2Function Custom Health Check Config - Custom
Runtime Pulumi.Config Ali Cloud. FC. Inputs. V2Function Custom Runtime Config - Description string
- Disk
Size int - Environment
Variables Dictionary<string, string> - Gpu
Memory intSize - Initialization
Timeout int - Initializer string
- Instance
Concurrency int - Instance
Lifecycle Pulumi.Config Ali Cloud. FC. Inputs. V2Function Instance Lifecycle Config - Instance
Type string - Layers List<string>
- Memory
Size int - Timeout int
- Function
Name string - Handler string
- Runtime string
- Service
Name string - Ca
Port int - Code
V2Function
Code Args - Code
Checksum string - Cpu float64
- Custom
Container V2FunctionConfig Custom Container Config Args - Custom
Dns V2FunctionCustom Dns Args - Custom
Health V2FunctionCheck Config Custom Health Check Config Args - Custom
Runtime V2FunctionConfig Custom Runtime Config Args - Description string
- Disk
Size int - Environment
Variables map[string]string - Gpu
Memory intSize - Initialization
Timeout int - Initializer string
- Instance
Concurrency int - Instance
Lifecycle V2FunctionConfig Instance Lifecycle Config Args - Instance
Type string - Layers []string
- Memory
Size int - Timeout int
- function
Name String - handler String
- runtime String
- service
Name String - ca
Port Integer - code
V2Function
Code - code
Checksum String - cpu Double
- custom
Container V2FunctionConfig Custom Container Config - custom
Dns V2FunctionCustom Dns - custom
Health V2FunctionCheck Config Custom Health Check Config - custom
Runtime V2FunctionConfig Custom Runtime Config - description String
- disk
Size Integer - environment
Variables Map<String,String> - gpu
Memory IntegerSize - initialization
Timeout Integer - initializer String
- instance
Concurrency Integer - instance
Lifecycle V2FunctionConfig Instance Lifecycle Config - instance
Type String - layers List<String>
- memory
Size Integer - timeout Integer
- function
Name string - handler string
- runtime string
- service
Name string - ca
Port number - code
V2Function
Code - code
Checksum string - cpu number
- custom
Container V2FunctionConfig Custom Container Config - custom
Dns V2FunctionCustom Dns - custom
Health V2FunctionCheck Config Custom Health Check Config - custom
Runtime V2FunctionConfig Custom Runtime Config - description string
- disk
Size number - environment
Variables {[key: string]: string} - gpu
Memory numberSize - initialization
Timeout number - initializer string
- instance
Concurrency number - instance
Lifecycle V2FunctionConfig Instance Lifecycle Config - instance
Type string - layers string[]
- memory
Size number - timeout number
- function_
name str - handler str
- runtime str
- service_
name str - ca_
port int - code
V2Function
Code Args - code_
checksum str - cpu float
- custom_
container_ V2Functionconfig Custom Container Config Args - custom_
dns V2FunctionCustom Dns Args - custom_
health_ V2Functioncheck_ config Custom Health Check Config Args - custom_
runtime_ V2Functionconfig Custom Runtime Config Args - description str
- disk_
size int - environment_
variables Mapping[str, str] - gpu_
memory_ intsize - initialization_
timeout int - initializer str
- instance_
concurrency int - instance_
lifecycle_ V2Functionconfig Instance Lifecycle Config Args - instance_
type str - layers Sequence[str]
- memory_
size int - timeout int
- function
Name String - handler String
- runtime String
- service
Name String - ca
Port Number - code Property Map
- code
Checksum String - cpu Number
- custom
Container Property MapConfig - custom
Dns Property Map - custom
Health Property MapCheck Config - custom
Runtime Property MapConfig - description String
- disk
Size Number - environment
Variables Map<String> - gpu
Memory NumberSize - initialization
Timeout Number - initializer String
- instance
Concurrency Number - instance
Lifecycle Property MapConfig - instance
Type String - layers List<String>
- memory
Size Number - timeout Number
Outputs
All input properties are implicitly available as output properties. Additionally, the V2Function resource produces the following output properties:
- Create
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - 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_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)
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.
- Ca
Port int - Code
Pulumi.
Ali Cloud. FC. Inputs. V2Function Code - Code
Checksum string - Cpu double
- Create
Time string - Custom
Container Pulumi.Config Ali Cloud. FC. Inputs. V2Function Custom Container Config - Custom
Dns Pulumi.Ali Cloud. FC. Inputs. V2Function Custom Dns - Custom
Health Pulumi.Check Config Ali Cloud. FC. Inputs. V2Function Custom Health Check Config - Custom
Runtime Pulumi.Config Ali Cloud. FC. Inputs. V2Function Custom Runtime Config - Description string
- Disk
Size int - Environment
Variables Dictionary<string, string> - Function
Name string - Gpu
Memory intSize - Handler string
- Initialization
Timeout int - Initializer string
- Instance
Concurrency int - Instance
Lifecycle Pulumi.Config Ali Cloud. FC. Inputs. V2Function Instance Lifecycle Config - Instance
Type string - Layers List<string>
- Memory
Size int - Runtime string
- Service
Name string - Timeout int
- Ca
Port int - Code
V2Function
Code Args - Code
Checksum string - Cpu float64
- Create
Time string - Custom
Container V2FunctionConfig Custom Container Config Args - Custom
Dns V2FunctionCustom Dns Args - Custom
Health V2FunctionCheck Config Custom Health Check Config Args - Custom
Runtime V2FunctionConfig Custom Runtime Config Args - Description string
- Disk
Size int - Environment
Variables map[string]string - Function
Name string - Gpu
Memory intSize - Handler string
- Initialization
Timeout int - Initializer string
- Instance
Concurrency int - Instance
Lifecycle V2FunctionConfig Instance Lifecycle Config Args - Instance
Type string - Layers []string
- Memory
Size int - Runtime string
- Service
Name string - Timeout int
- ca
Port Integer - code
V2Function
Code - code
Checksum String - cpu Double
- create
Time String - custom
Container V2FunctionConfig Custom Container Config - custom
Dns V2FunctionCustom Dns - custom
Health V2FunctionCheck Config Custom Health Check Config - custom
Runtime V2FunctionConfig Custom Runtime Config - description String
- disk
Size Integer - environment
Variables Map<String,String> - function
Name String - gpu
Memory IntegerSize - handler String
- initialization
Timeout Integer - initializer String
- instance
Concurrency Integer - instance
Lifecycle V2FunctionConfig Instance Lifecycle Config - instance
Type String - layers List<String>
- memory
Size Integer - runtime String
- service
Name String - timeout Integer
- ca
Port number - code
V2Function
Code - code
Checksum string - cpu number
- create
Time string - custom
Container V2FunctionConfig Custom Container Config - custom
Dns V2FunctionCustom Dns - custom
Health V2FunctionCheck Config Custom Health Check Config - custom
Runtime V2FunctionConfig Custom Runtime Config - description string
- disk
Size number - environment
Variables {[key: string]: string} - function
Name string - gpu
Memory numberSize - handler string
- initialization
Timeout number - initializer string
- instance
Concurrency number - instance
Lifecycle V2FunctionConfig Instance Lifecycle Config - instance
Type string - layers string[]
- memory
Size number - runtime string
- service
Name string - timeout number
- ca_
port int - code
V2Function
Code Args - code_
checksum str - cpu float
- create_
time str - custom_
container_ V2Functionconfig Custom Container Config Args - custom_
dns V2FunctionCustom Dns Args - custom_
health_ V2Functioncheck_ config Custom Health Check Config Args - custom_
runtime_ V2Functionconfig Custom Runtime Config Args - description str
- disk_
size int - environment_
variables Mapping[str, str] - function_
name str - gpu_
memory_ intsize - handler str
- initialization_
timeout int - initializer str
- instance_
concurrency int - instance_
lifecycle_ V2Functionconfig Instance Lifecycle Config Args - instance_
type str - layers Sequence[str]
- memory_
size int - runtime str
- service_
name str - timeout int
- ca
Port Number - code Property Map
- code
Checksum String - cpu Number
- create
Time String - custom
Container Property MapConfig - custom
Dns Property Map - custom
Health Property MapCheck Config - custom
Runtime Property MapConfig - description String
- disk
Size Number - environment
Variables Map<String> - function
Name String - gpu
Memory NumberSize - handler String
- initialization
Timeout Number - initializer String
- instance
Concurrency Number - instance
Lifecycle Property MapConfig - instance
Type String - layers List<String>
- memory
Size Number - runtime String
- service
Name String - timeout Number
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
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.