1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ScfSyncInvokeFunction
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

invoke_function = tencentcloud.ScfSyncInvokeFunction("invokeFunction",
    function_name="keep-1676351130",
    namespace="default",
    qualifier="2")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  invokeFunction:
    type: tencentcloud:ScfSyncInvokeFunction
    properties:
      functionName: keep-1676351130
      namespace: default
      qualifier: '2'
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ScfSyncInvokeFunctionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ScfSyncInvokeFunctionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ScfSyncInvokeFunctionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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:

FunctionName This property is required. 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.
LogType 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.
RoutingKey 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.
ScfSyncInvokeFunctionId string
ID of the resource.
FunctionName This property is required. 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.
LogType 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.
RoutingKey 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.
ScfSyncInvokeFunctionId string
ID of the resource.
functionName This property is required. 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.
logType 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.
routingKey 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.
scfSyncInvokeFunctionId String
ID of the resource.
functionName This property is required. 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.
logType 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.
routingKey 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.
scfSyncInvokeFunctionId string
ID of the resource.
function_name This property is required. 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_invoke_function_id str
ID of the resource.
functionName This property is required. 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.
logType 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.
routingKey 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.
scfSyncInvokeFunctionId String
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Event string
Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to event input parameter.
FunctionName string
Function name.
LogType 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.
RoutingKey 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.
ScfSyncInvokeFunctionId string
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.
FunctionName string
Function name.
LogType 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.
RoutingKey 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.
ScfSyncInvokeFunctionId string
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.
functionName String
Function name.
logType 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.
routingKey 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.
scfSyncInvokeFunctionId String
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.
functionName string
Function name.
logType 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.
routingKey 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.
scfSyncInvokeFunctionId string
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_invoke_function_id str
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.
functionName String
Function name.
logType 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.
routingKey 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.
scfSyncInvokeFunctionId String
ID of the resource.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.