tencentcloud.ScfTriggerConfig
Explore with Pulumi AI
Provides a resource to create a scf trigger_config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const triggerConfig = new tencentcloud.ScfTriggerConfig("triggerConfig", {
customArgument: "Information",
description: "func",
enable: "OPEN",
functionName: "keep-1676351130",
namespace: "default",
qualifier: "$DEFAULT",
triggerDesc: "* 1 2 * * * *",
triggerName: "SCF-timer-1685540160",
type: "timer",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
trigger_config = tencentcloud.ScfTriggerConfig("triggerConfig",
custom_argument="Information",
description="func",
enable="OPEN",
function_name="keep-1676351130",
namespace="default",
qualifier="$DEFAULT",
trigger_desc="* 1 2 * * * *",
trigger_name="SCF-timer-1685540160",
type="timer")
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.NewScfTriggerConfig(ctx, "triggerConfig", &tencentcloud.ScfTriggerConfigArgs{
CustomArgument: pulumi.String("Information"),
Description: pulumi.String("func"),
Enable: pulumi.String("OPEN"),
FunctionName: pulumi.String("keep-1676351130"),
Namespace: pulumi.String("default"),
Qualifier: pulumi.String("$DEFAULT"),
TriggerDesc: pulumi.String("* 1 2 * * * *"),
TriggerName: pulumi.String("SCF-timer-1685540160"),
Type: pulumi.String("timer"),
})
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 triggerConfig = new Tencentcloud.ScfTriggerConfig("triggerConfig", new()
{
CustomArgument = "Information",
Description = "func",
Enable = "OPEN",
FunctionName = "keep-1676351130",
Namespace = "default",
Qualifier = "$DEFAULT",
TriggerDesc = "* 1 2 * * * *",
TriggerName = "SCF-timer-1685540160",
Type = "timer",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ScfTriggerConfig;
import com.pulumi.tencentcloud.ScfTriggerConfigArgs;
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 triggerConfig = new ScfTriggerConfig("triggerConfig", ScfTriggerConfigArgs.builder()
.customArgument("Information")
.description("func")
.enable("OPEN")
.functionName("keep-1676351130")
.namespace("default")
.qualifier("$DEFAULT")
.triggerDesc("* 1 2 * * * *")
.triggerName("SCF-timer-1685540160")
.type("timer")
.build());
}
}
resources:
triggerConfig:
type: tencentcloud:ScfTriggerConfig
properties:
customArgument: Information
description: func
enable: OPEN
functionName: keep-1676351130
namespace: default
qualifier: $DEFAULT
triggerDesc: '* 1 2 * * * *'
triggerName: SCF-timer-1685540160
type: timer
Create ScfTriggerConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScfTriggerConfig(name: string, args: ScfTriggerConfigArgs, opts?: CustomResourceOptions);
@overload
def ScfTriggerConfig(resource_name: str,
args: ScfTriggerConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScfTriggerConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
trigger_name: Optional[str] = None,
type: Optional[str] = None,
custom_argument: Optional[str] = None,
description: Optional[str] = None,
enable: Optional[str] = None,
namespace: Optional[str] = None,
qualifier: Optional[str] = None,
scf_trigger_config_id: Optional[str] = None,
trigger_desc: Optional[str] = None)
func NewScfTriggerConfig(ctx *Context, name string, args ScfTriggerConfigArgs, opts ...ResourceOption) (*ScfTriggerConfig, error)
public ScfTriggerConfig(string name, ScfTriggerConfigArgs args, CustomResourceOptions? opts = null)
public ScfTriggerConfig(String name, ScfTriggerConfigArgs args)
public ScfTriggerConfig(String name, ScfTriggerConfigArgs args, CustomResourceOptions options)
type: tencentcloud:ScfTriggerConfig
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 ScfTriggerConfigArgs
- 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 ScfTriggerConfigArgs
- 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 ScfTriggerConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScfTriggerConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScfTriggerConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ScfTriggerConfig 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 ScfTriggerConfig resource accepts the following input properties:
- Function
Name string - Function name.
- Trigger
Name string - Trigger Name.
- Type string
- Trigger type.
- Custom
Argument string - User Additional Information.
- Description string
- Trigger description.
- Enable string
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- Namespace string
- Function namespace.
- Qualifier string
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - Scf
Trigger stringConfig Id - ID of the resource.
- Trigger
Desc string - TriggerDesc parameter.
- Function
Name string - Function name.
- Trigger
Name string - Trigger Name.
- Type string
- Trigger type.
- Custom
Argument string - User Additional Information.
- Description string
- Trigger description.
- Enable string
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- Namespace string
- Function namespace.
- Qualifier string
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - Scf
Trigger stringConfig Id - ID of the resource.
- Trigger
Desc string - TriggerDesc parameter.
- function
Name String - Function name.
- trigger
Name String - Trigger Name.
- type String
- Trigger type.
- custom
Argument String - User Additional Information.
- description String
- Trigger description.
- enable String
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- namespace String
- Function namespace.
- qualifier String
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - scf
Trigger StringConfig Id - ID of the resource.
- trigger
Desc String - TriggerDesc parameter.
- function
Name string - Function name.
- trigger
Name string - Trigger Name.
- type string
- Trigger type.
- custom
Argument string - User Additional Information.
- description string
- Trigger description.
- enable string
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- namespace string
- Function namespace.
- qualifier string
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - scf
Trigger stringConfig Id - ID of the resource.
- trigger
Desc string - TriggerDesc parameter.
- function_
name str - Function name.
- trigger_
name str - Trigger Name.
- type str
- Trigger type.
- custom_
argument str - User Additional Information.
- description str
- Trigger description.
- enable str
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- namespace str
- Function namespace.
- qualifier str
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - scf_
trigger_ strconfig_ id - ID of the resource.
- trigger_
desc str - TriggerDesc parameter.
- function
Name String - Function name.
- trigger
Name String - Trigger Name.
- type String
- Trigger type.
- custom
Argument String - User Additional Information.
- description String
- Trigger description.
- enable String
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- namespace String
- Function namespace.
- qualifier String
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - scf
Trigger StringConfig Id - ID of the resource.
- trigger
Desc String - TriggerDesc parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScfTriggerConfig 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 ScfTriggerConfig Resource
Get an existing ScfTriggerConfig 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?: ScfTriggerConfigState, opts?: CustomResourceOptions): ScfTriggerConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_argument: Optional[str] = None,
description: Optional[str] = None,
enable: Optional[str] = None,
function_name: Optional[str] = None,
namespace: Optional[str] = None,
qualifier: Optional[str] = None,
scf_trigger_config_id: Optional[str] = None,
trigger_desc: Optional[str] = None,
trigger_name: Optional[str] = None,
type: Optional[str] = None) -> ScfTriggerConfig
func GetScfTriggerConfig(ctx *Context, name string, id IDInput, state *ScfTriggerConfigState, opts ...ResourceOption) (*ScfTriggerConfig, error)
public static ScfTriggerConfig Get(string name, Input<string> id, ScfTriggerConfigState? state, CustomResourceOptions? opts = null)
public static ScfTriggerConfig get(String name, Output<String> id, ScfTriggerConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ScfTriggerConfig 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.
- Custom
Argument string - User Additional Information.
- Description string
- Trigger description.
- Enable string
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- Function
Name string - Function name.
- Namespace string
- Function namespace.
- Qualifier string
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - Scf
Trigger stringConfig Id - ID of the resource.
- Trigger
Desc string - TriggerDesc parameter.
- Trigger
Name string - Trigger Name.
- Type string
- Trigger type.
- Custom
Argument string - User Additional Information.
- Description string
- Trigger description.
- Enable string
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- Function
Name string - Function name.
- Namespace string
- Function namespace.
- Qualifier string
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - Scf
Trigger stringConfig Id - ID of the resource.
- Trigger
Desc string - TriggerDesc parameter.
- Trigger
Name string - Trigger Name.
- Type string
- Trigger type.
- custom
Argument String - User Additional Information.
- description String
- Trigger description.
- enable String
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- function
Name String - Function name.
- namespace String
- Function namespace.
- qualifier String
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - scf
Trigger StringConfig Id - ID of the resource.
- trigger
Desc String - TriggerDesc parameter.
- trigger
Name String - Trigger Name.
- type String
- Trigger type.
- custom
Argument string - User Additional Information.
- description string
- Trigger description.
- enable string
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- function
Name string - Function name.
- namespace string
- Function namespace.
- qualifier string
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - scf
Trigger stringConfig Id - ID of the resource.
- trigger
Desc string - TriggerDesc parameter.
- trigger
Name string - Trigger Name.
- type string
- Trigger type.
- custom_
argument str - User Additional Information.
- description str
- Trigger description.
- enable str
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- function_
name str - Function name.
- namespace str
- Function namespace.
- qualifier str
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - scf_
trigger_ strconfig_ id - ID of the resource.
- trigger_
desc str - TriggerDesc parameter.
- trigger_
name str - Trigger Name.
- type str
- Trigger type.
- custom
Argument String - User Additional Information.
- description String
- Trigger description.
- enable String
- Status of trigger. Values: OPEN (enabled); CLOSE disabled).
- function
Name String - Function name.
- namespace String
- Function namespace.
- qualifier String
- Function version. It defaults to
$LATEST
. It's recommended to use[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)
for canary release. - scf
Trigger StringConfig Id - ID of the resource.
- trigger
Desc String - TriggerDesc parameter.
- trigger
Name String - Trigger Name.
- type String
- Trigger type.
Import
scf trigger_config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/scfTriggerConfig:ScfTriggerConfig trigger_config functionName#namespace#triggerName
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.