tencentcloud.ScfSyncInvokeFunction
Explore with Pulumi AI
Provides a resource to create a scf sync_invoke_function
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const invokeFunction = new tencentcloud.ScfSyncInvokeFunction("invokeFunction", {
functionName: "keep-1676351130",
namespace: "default",
qualifier: "2",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
invoke_function = tencentcloud.ScfSyncInvokeFunction("invokeFunction",
function_name="keep-1676351130",
namespace="default",
qualifier="2")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewScfSyncInvokeFunction(ctx, "invokeFunction", &tencentcloud.ScfSyncInvokeFunctionArgs{
FunctionName: pulumi.String("keep-1676351130"),
Namespace: pulumi.String("default"),
Qualifier: pulumi.String("2"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var invokeFunction = new Tencentcloud.ScfSyncInvokeFunction("invokeFunction", new()
{
FunctionName = "keep-1676351130",
Namespace = "default",
Qualifier = "2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ScfSyncInvokeFunction;
import com.pulumi.tencentcloud.ScfSyncInvokeFunctionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var invokeFunction = new ScfSyncInvokeFunction("invokeFunction", ScfSyncInvokeFunctionArgs.builder()
.functionName("keep-1676351130")
.namespace("default")
.qualifier("2")
.build());
}
}
resources:
invokeFunction:
type: tencentcloud:ScfSyncInvokeFunction
properties:
functionName: keep-1676351130
namespace: default
qualifier: '2'
Create ScfSyncInvokeFunction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScfSyncInvokeFunction(name: string, args: ScfSyncInvokeFunctionArgs, opts?: CustomResourceOptions);
@overload
def ScfSyncInvokeFunction(resource_name: str,
args: ScfSyncInvokeFunctionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScfSyncInvokeFunction(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
event: Optional[str] = None,
log_type: Optional[str] = None,
namespace: Optional[str] = None,
qualifier: Optional[str] = None,
routing_key: Optional[str] = None,
scf_sync_invoke_function_id: Optional[str] = None)
func NewScfSyncInvokeFunction(ctx *Context, name string, args ScfSyncInvokeFunctionArgs, opts ...ResourceOption) (*ScfSyncInvokeFunction, error)
public ScfSyncInvokeFunction(string name, ScfSyncInvokeFunctionArgs args, CustomResourceOptions? opts = null)
public ScfSyncInvokeFunction(String name, ScfSyncInvokeFunctionArgs args)
public ScfSyncInvokeFunction(String name, ScfSyncInvokeFunctionArgs args, CustomResourceOptions options)
type: tencentcloud:ScfSyncInvokeFunction
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 ScfSyncInvokeFunctionArgs
- 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 ScfSyncInvokeFunctionArgs
- 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 ScfSyncInvokeFunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScfSyncInvokeFunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScfSyncInvokeFunctionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ScfSyncInvokeFunction 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 ScfSyncInvokeFunction resource accepts the following input properties:
- Function
Name string - Function name.
- Event string
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- Log
Type string - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- Namespace string
- Namespace. default is used if it's left empty.
- Qualifier string
- Version or alias of the function. It defaults to $DEFAULT.
- Routing
Key string - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- Scf
Sync stringInvoke Function Id - ID of the resource.
- Function
Name string - Function name.
- Event string
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- Log
Type string - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- Namespace string
- Namespace. default is used if it's left empty.
- Qualifier string
- Version or alias of the function. It defaults to $DEFAULT.
- Routing
Key string - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- Scf
Sync stringInvoke Function Id - ID of the resource.
- function
Name String - Function name.
- event String
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- log
Type String - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- namespace String
- Namespace. default is used if it's left empty.
- qualifier String
- Version or alias of the function. It defaults to $DEFAULT.
- routing
Key String - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- scf
Sync StringInvoke Function Id - ID of the resource.
- function
Name string - Function name.
- event string
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- log
Type string - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- namespace string
- Namespace. default is used if it's left empty.
- qualifier string
- Version or alias of the function. It defaults to $DEFAULT.
- routing
Key string - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- scf
Sync stringInvoke Function Id - ID of the resource.
- function_
name str - Function name.
- event str
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- log_
type str - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- namespace str
- Namespace. default is used if it's left empty.
- qualifier str
- Version or alias of the function. It defaults to $DEFAULT.
- routing_
key str - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- scf_
sync_ strinvoke_ function_ id - ID of the resource.
- function
Name String - Function name.
- event String
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- log
Type String - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- namespace String
- Namespace. default is used if it's left empty.
- qualifier String
- Version or alias of the function. It defaults to $DEFAULT.
- routing
Key String - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- scf
Sync StringInvoke Function Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScfSyncInvokeFunction resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ScfSyncInvokeFunction Resource
Get an existing ScfSyncInvokeFunction 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?: ScfSyncInvokeFunctionState, opts?: CustomResourceOptions): ScfSyncInvokeFunction
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
event: Optional[str] = None,
function_name: Optional[str] = None,
log_type: Optional[str] = None,
namespace: Optional[str] = None,
qualifier: Optional[str] = None,
routing_key: Optional[str] = None,
scf_sync_invoke_function_id: Optional[str] = None) -> ScfSyncInvokeFunction
func GetScfSyncInvokeFunction(ctx *Context, name string, id IDInput, state *ScfSyncInvokeFunctionState, opts ...ResourceOption) (*ScfSyncInvokeFunction, error)
public static ScfSyncInvokeFunction Get(string name, Input<string> id, ScfSyncInvokeFunctionState? state, CustomResourceOptions? opts = null)
public static ScfSyncInvokeFunction get(String name, Output<String> id, ScfSyncInvokeFunctionState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ScfSyncInvokeFunction 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.
- Event string
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- Function
Name string - Function name.
- Log
Type string - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- Namespace string
- Namespace. default is used if it's left empty.
- Qualifier string
- Version or alias of the function. It defaults to $DEFAULT.
- Routing
Key string - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- Scf
Sync stringInvoke Function Id - ID of the resource.
- Event string
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- Function
Name string - Function name.
- Log
Type string - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- Namespace string
- Namespace. default is used if it's left empty.
- Qualifier string
- Version or alias of the function. It defaults to $DEFAULT.
- Routing
Key string - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- Scf
Sync stringInvoke Function Id - ID of the resource.
- event String
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- function
Name String - Function name.
- log
Type String - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- namespace String
- Namespace. default is used if it's left empty.
- qualifier String
- Version or alias of the function. It defaults to $DEFAULT.
- routing
Key String - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- scf
Sync StringInvoke Function Id - ID of the resource.
- event string
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- function
Name string - Function name.
- log
Type string - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- namespace string
- Namespace. default is used if it's left empty.
- qualifier string
- Version or alias of the function. It defaults to $DEFAULT.
- routing
Key string - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- scf
Sync stringInvoke Function Id - ID of the resource.
- event str
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- function_
name str - Function name.
- log_
type str - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- namespace str
- Namespace. default is used if it's left empty.
- qualifier str
- Version or alias of the function. It defaults to $DEFAULT.
- routing_
key str - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- scf_
sync_ strinvoke_ function_ id - ID of the resource.
- event String
- Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
- function
Name String - Function name.
- log
Type String - Valid value: None (default) or Tail. If the value is Tail, log in the response will contain the corresponding function execution log (up to 4KB).
- namespace String
- Namespace. default is used if it's left empty.
- qualifier String
- Version or alias of the function. It defaults to $DEFAULT.
- routing
Key String - Traffic routing config in json format, e.g., {k:v}. Please note that both k and v must be strings. Up to 1024 bytes allowed.
- scf
Sync StringInvoke Function Id - ID of the resource.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.