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

tencentcloud.TeoFunctionRulePriority

Explore with Pulumi AI

Provides a resource to create a teo teo_function_rule_priority

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const teoFunctionRulePriority = new tencentcloud.TeoFunctionRulePriority("teoFunctionRulePriority", {
    functionId: "ef-txx7fnua",
    ruleIds: [
        "rule-equpbht3",
        "rule-ax28n3g6",
    ],
    zoneId: "zone-2qtuhspy7cr6",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

teo_function_rule_priority = tencentcloud.TeoFunctionRulePriority("teoFunctionRulePriority",
    function_id="ef-txx7fnua",
    rule_ids=[
        "rule-equpbht3",
        "rule-ax28n3g6",
    ],
    zone_id="zone-2qtuhspy7cr6")
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.NewTeoFunctionRulePriority(ctx, "teoFunctionRulePriority", &tencentcloud.TeoFunctionRulePriorityArgs{
			FunctionId: pulumi.String("ef-txx7fnua"),
			RuleIds: pulumi.StringArray{
				pulumi.String("rule-equpbht3"),
				pulumi.String("rule-ax28n3g6"),
			},
			ZoneId: pulumi.String("zone-2qtuhspy7cr6"),
		})
		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 teoFunctionRulePriority = new Tencentcloud.TeoFunctionRulePriority("teoFunctionRulePriority", new()
    {
        FunctionId = "ef-txx7fnua",
        RuleIds = new[]
        {
            "rule-equpbht3",
            "rule-ax28n3g6",
        },
        ZoneId = "zone-2qtuhspy7cr6",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoFunctionRulePriority;
import com.pulumi.tencentcloud.TeoFunctionRulePriorityArgs;
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 teoFunctionRulePriority = new TeoFunctionRulePriority("teoFunctionRulePriority", TeoFunctionRulePriorityArgs.builder()
            .functionId("ef-txx7fnua")
            .ruleIds(            
                "rule-equpbht3",
                "rule-ax28n3g6")
            .zoneId("zone-2qtuhspy7cr6")
            .build());

    }
}
Copy
resources:
  teoFunctionRulePriority:
    type: tencentcloud:TeoFunctionRulePriority
    properties:
      functionId: ef-txx7fnua
      ruleIds:
        - rule-equpbht3
        - rule-ax28n3g6
      zoneId: zone-2qtuhspy7cr6
Copy

Create TeoFunctionRulePriority Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TeoFunctionRulePriority(name: string, args: TeoFunctionRulePriorityArgs, opts?: CustomResourceOptions);
@overload
def TeoFunctionRulePriority(resource_name: str,
                            args: TeoFunctionRulePriorityArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def TeoFunctionRulePriority(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            function_id: Optional[str] = None,
                            rule_ids: Optional[Sequence[str]] = None,
                            zone_id: Optional[str] = None,
                            teo_function_rule_priority_id: Optional[str] = None)
func NewTeoFunctionRulePriority(ctx *Context, name string, args TeoFunctionRulePriorityArgs, opts ...ResourceOption) (*TeoFunctionRulePriority, error)
public TeoFunctionRulePriority(string name, TeoFunctionRulePriorityArgs args, CustomResourceOptions? opts = null)
public TeoFunctionRulePriority(String name, TeoFunctionRulePriorityArgs args)
public TeoFunctionRulePriority(String name, TeoFunctionRulePriorityArgs args, CustomResourceOptions options)
type: tencentcloud:TeoFunctionRulePriority
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. TeoFunctionRulePriorityArgs
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. TeoFunctionRulePriorityArgs
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. TeoFunctionRulePriorityArgs
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. TeoFunctionRulePriorityArgs
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. TeoFunctionRulePriorityArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TeoFunctionRulePriority 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 TeoFunctionRulePriority resource accepts the following input properties:

FunctionId This property is required. string
ID of the Function.
RuleIds This property is required. List<string>
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
ZoneId This property is required. string
ID of the site.
TeoFunctionRulePriorityId string
ID of the resource.
FunctionId This property is required. string
ID of the Function.
RuleIds This property is required. []string
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
ZoneId This property is required. string
ID of the site.
TeoFunctionRulePriorityId string
ID of the resource.
functionId This property is required. String
ID of the Function.
ruleIds This property is required. List<String>
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
zoneId This property is required. String
ID of the site.
teoFunctionRulePriorityId String
ID of the resource.
functionId This property is required. string
ID of the Function.
ruleIds This property is required. string[]
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
zoneId This property is required. string
ID of the site.
teoFunctionRulePriorityId string
ID of the resource.
function_id This property is required. str
ID of the Function.
rule_ids This property is required. Sequence[str]
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
zone_id This property is required. str
ID of the site.
teo_function_rule_priority_id str
ID of the resource.
functionId This property is required. String
ID of the Function.
ruleIds This property is required. List<String>
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
zoneId This property is required. String
ID of the site.
teoFunctionRulePriorityId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the TeoFunctionRulePriority 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 TeoFunctionRulePriority Resource

Get an existing TeoFunctionRulePriority 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?: TeoFunctionRulePriorityState, opts?: CustomResourceOptions): TeoFunctionRulePriority
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        function_id: Optional[str] = None,
        rule_ids: Optional[Sequence[str]] = None,
        teo_function_rule_priority_id: Optional[str] = None,
        zone_id: Optional[str] = None) -> TeoFunctionRulePriority
func GetTeoFunctionRulePriority(ctx *Context, name string, id IDInput, state *TeoFunctionRulePriorityState, opts ...ResourceOption) (*TeoFunctionRulePriority, error)
public static TeoFunctionRulePriority Get(string name, Input<string> id, TeoFunctionRulePriorityState? state, CustomResourceOptions? opts = null)
public static TeoFunctionRulePriority get(String name, Output<String> id, TeoFunctionRulePriorityState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:TeoFunctionRulePriority    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:
FunctionId string
ID of the Function.
RuleIds List<string>
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
TeoFunctionRulePriorityId string
ID of the resource.
ZoneId string
ID of the site.
FunctionId string
ID of the Function.
RuleIds []string
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
TeoFunctionRulePriorityId string
ID of the resource.
ZoneId string
ID of the site.
functionId String
ID of the Function.
ruleIds List<String>
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
teoFunctionRulePriorityId String
ID of the resource.
zoneId String
ID of the site.
functionId string
ID of the Function.
ruleIds string[]
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
teoFunctionRulePriorityId string
ID of the resource.
zoneId string
ID of the site.
function_id str
ID of the Function.
rule_ids Sequence[str]
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
teo_function_rule_priority_id str
ID of the resource.
zone_id str
ID of the site.
functionId String
ID of the Function.
ruleIds List<String>
he list of rule IDs. It is required to include all rule IDs after adjusting their priorities. The execution order of multiple rules follows a top-down sequence. If not specified, the original priority order will be maintained.
teoFunctionRulePriorityId String
ID of the resource.
zoneId String
ID of the site.

Import

teo teo_function_rule_priority can be imported using the id, e.g.

$ pulumi import tencentcloud:index/teoFunctionRulePriority:TeoFunctionRulePriority teo_function_rule_priority zone_id#function_id
Copy

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.