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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
teoFunctionRulePriority:
type: tencentcloud:TeoFunctionRulePriority
properties:
functionId: ef-txx7fnua
ruleIds:
- rule-equpbht3
- rule-ax28n3g6
zoneId: zone-2qtuhspy7cr6
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 string
- The unique name of the resource.
- args TeoFunctionRulePriorityArgs
- 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 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 string
- The unique name of the resource.
- args TeoFunctionRulePriorityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoFunctionRulePriorityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Function
Id string - ID of the Function.
- Rule
Ids 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.
- Zone
Id string - ID of the site.
- Teo
Function stringRule Priority Id - ID of the resource.
- Function
Id string - ID of the Function.
- Rule
Ids []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.
- Zone
Id string - ID of the site.
- Teo
Function stringRule Priority Id - ID of the resource.
- function
Id String - ID of the Function.
- rule
Ids 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.
- zone
Id String - ID of the site.
- teo
Function StringRule Priority Id - ID of the resource.
- function
Id string - ID of the Function.
- rule
Ids 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.
- zone
Id string - ID of the site.
- teo
Function stringRule Priority Id - ID of the resource.
- 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.
- zone_
id str - ID of the site.
- teo_
function_ strrule_ priority_ id - ID of the resource.
- function
Id String - ID of the Function.
- rule
Ids 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.
- zone
Id String - ID of the site.
- teo
Function StringRule Priority Id - 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
- 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.
- Function
Id string - ID of the Function.
- Rule
Ids 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.
- Teo
Function stringRule Priority Id - ID of the resource.
- Zone
Id string - ID of the site.
- Function
Id string - ID of the Function.
- Rule
Ids []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.
- Teo
Function stringRule Priority Id - ID of the resource.
- Zone
Id string - ID of the site.
- function
Id String - ID of the Function.
- rule
Ids 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.
- teo
Function StringRule Priority Id - ID of the resource.
- zone
Id String - ID of the site.
- function
Id string - ID of the Function.
- rule
Ids 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.
- teo
Function stringRule Priority Id - ID of the resource.
- zone
Id 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_ strrule_ priority_ id - ID of the resource.
- zone_
id str - ID of the site.
- function
Id String - ID of the Function.
- rule
Ids 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.
- teo
Function StringRule Priority Id - ID of the resource.
- zone
Id 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
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.