1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TsfLaneRule
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TsfLaneRule

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tsf lane_rule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const laneRule = new tencentcloud.TsfLaneRule("laneRule", {
        enable: false,
        laneId: "lane-abw5oo5a",
        remark: "terraform-test",
        ruleName: "terraform-rule-name",
        ruleTagLists: [{
            tagName: "xxx",
            tagOperator: "EQUAL",
            tagValue: "222",
        }],
        ruleTagRelationship: "RELEATION_AND",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    lane_rule = tencentcloud.TsfLaneRule("laneRule",
        enable=False,
        lane_id="lane-abw5oo5a",
        remark="terraform-test",
        rule_name="terraform-rule-name",
        rule_tag_lists=[{
            "tag_name": "xxx",
            "tag_operator": "EQUAL",
            "tag_value": "222",
        }],
        rule_tag_relationship="RELEATION_AND")
    
    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.NewTsfLaneRule(ctx, "laneRule", &tencentcloud.TsfLaneRuleArgs{
    			Enable:   pulumi.Bool(false),
    			LaneId:   pulumi.String("lane-abw5oo5a"),
    			Remark:   pulumi.String("terraform-test"),
    			RuleName: pulumi.String("terraform-rule-name"),
    			RuleTagLists: tencentcloud.TsfLaneRuleRuleTagListArray{
    				&tencentcloud.TsfLaneRuleRuleTagListArgs{
    					TagName:     pulumi.String("xxx"),
    					TagOperator: pulumi.String("EQUAL"),
    					TagValue:    pulumi.String("222"),
    				},
    			},
    			RuleTagRelationship: pulumi.String("RELEATION_AND"),
    		})
    		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 laneRule = new Tencentcloud.TsfLaneRule("laneRule", new()
        {
            Enable = false,
            LaneId = "lane-abw5oo5a",
            Remark = "terraform-test",
            RuleName = "terraform-rule-name",
            RuleTagLists = new[]
            {
                new Tencentcloud.Inputs.TsfLaneRuleRuleTagListArgs
                {
                    TagName = "xxx",
                    TagOperator = "EQUAL",
                    TagValue = "222",
                },
            },
            RuleTagRelationship = "RELEATION_AND",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TsfLaneRule;
    import com.pulumi.tencentcloud.TsfLaneRuleArgs;
    import com.pulumi.tencentcloud.inputs.TsfLaneRuleRuleTagListArgs;
    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 laneRule = new TsfLaneRule("laneRule", TsfLaneRuleArgs.builder()
                .enable(false)
                .laneId("lane-abw5oo5a")
                .remark("terraform-test")
                .ruleName("terraform-rule-name")
                .ruleTagLists(TsfLaneRuleRuleTagListArgs.builder()
                    .tagName("xxx")
                    .tagOperator("EQUAL")
                    .tagValue("222")
                    .build())
                .ruleTagRelationship("RELEATION_AND")
                .build());
    
        }
    }
    
    resources:
      laneRule:
        type: tencentcloud:TsfLaneRule
        properties:
          enable: false
          laneId: lane-abw5oo5a
          remark: terraform-test
          ruleName: terraform-rule-name
          ruleTagLists:
            - tagName: xxx
              tagOperator: EQUAL
              tagValue: '222'
          ruleTagRelationship: RELEATION_AND
    

    Create TsfLaneRule Resource

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

    Constructor syntax

    new TsfLaneRule(name: string, args: TsfLaneRuleArgs, opts?: CustomResourceOptions);
    @overload
    def TsfLaneRule(resource_name: str,
                    args: TsfLaneRuleArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def TsfLaneRule(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    enable: Optional[bool] = None,
                    lane_id: Optional[str] = None,
                    remark: Optional[str] = None,
                    rule_name: Optional[str] = None,
                    rule_tag_lists: Optional[Sequence[TsfLaneRuleRuleTagListArgs]] = None,
                    rule_tag_relationship: Optional[str] = None,
                    program_id_lists: Optional[Sequence[str]] = None,
                    tsf_lane_rule_id: Optional[str] = None)
    func NewTsfLaneRule(ctx *Context, name string, args TsfLaneRuleArgs, opts ...ResourceOption) (*TsfLaneRule, error)
    public TsfLaneRule(string name, TsfLaneRuleArgs args, CustomResourceOptions? opts = null)
    public TsfLaneRule(String name, TsfLaneRuleArgs args)
    public TsfLaneRule(String name, TsfLaneRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TsfLaneRule
    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 TsfLaneRuleArgs
    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 TsfLaneRuleArgs
    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 TsfLaneRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TsfLaneRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TsfLaneRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Enable bool
    open state, true/false, default: false.
    LaneId string
    lane ID.
    Remark string
    Lane rule notes.
    RuleName string
    lane rule name.
    RuleTagLists List<TsfLaneRuleRuleTagList>
    list of swimlane rule labels.
    RuleTagRelationship string
    lane rule label relationship.
    ProgramIdLists List<string>
    Program id list.
    TsfLaneRuleId string
    ID of the resource.
    Enable bool
    open state, true/false, default: false.
    LaneId string
    lane ID.
    Remark string
    Lane rule notes.
    RuleName string
    lane rule name.
    RuleTagLists []TsfLaneRuleRuleTagListArgs
    list of swimlane rule labels.
    RuleTagRelationship string
    lane rule label relationship.
    ProgramIdLists []string
    Program id list.
    TsfLaneRuleId string
    ID of the resource.
    enable Boolean
    open state, true/false, default: false.
    laneId String
    lane ID.
    remark String
    Lane rule notes.
    ruleName String
    lane rule name.
    ruleTagLists List<TsfLaneRuleRuleTagList>
    list of swimlane rule labels.
    ruleTagRelationship String
    lane rule label relationship.
    programIdLists List<String>
    Program id list.
    tsfLaneRuleId String
    ID of the resource.
    enable boolean
    open state, true/false, default: false.
    laneId string
    lane ID.
    remark string
    Lane rule notes.
    ruleName string
    lane rule name.
    ruleTagLists TsfLaneRuleRuleTagList[]
    list of swimlane rule labels.
    ruleTagRelationship string
    lane rule label relationship.
    programIdLists string[]
    Program id list.
    tsfLaneRuleId string
    ID of the resource.
    enable bool
    open state, true/false, default: false.
    lane_id str
    lane ID.
    remark str
    Lane rule notes.
    rule_name str
    lane rule name.
    rule_tag_lists Sequence[TsfLaneRuleRuleTagListArgs]
    list of swimlane rule labels.
    rule_tag_relationship str
    lane rule label relationship.
    program_id_lists Sequence[str]
    Program id list.
    tsf_lane_rule_id str
    ID of the resource.
    enable Boolean
    open state, true/false, default: false.
    laneId String
    lane ID.
    remark String
    Lane rule notes.
    ruleName String
    lane rule name.
    ruleTagLists List<Property Map>
    list of swimlane rule labels.
    ruleTagRelationship String
    lane rule label relationship.
    programIdLists List<String>
    Program id list.
    tsfLaneRuleId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TsfLaneRule resource produces the following output properties:

    CreateTime double
    creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Priority double
    Priority.
    RuleId string
    Rule id.
    UpdateTime double
    update time.
    CreateTime float64
    creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Priority float64
    Priority.
    RuleId string
    Rule id.
    UpdateTime float64
    update time.
    createTime Double
    creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    priority Double
    Priority.
    ruleId String
    Rule id.
    updateTime Double
    update time.
    createTime number
    creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    priority number
    Priority.
    ruleId string
    Rule id.
    updateTime number
    update time.
    create_time float
    creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    priority float
    Priority.
    rule_id str
    Rule id.
    update_time float
    update time.
    createTime Number
    creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    priority Number
    Priority.
    ruleId String
    Rule id.
    updateTime Number
    update time.

    Look up Existing TsfLaneRule Resource

    Get an existing TsfLaneRule 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?: TsfLaneRuleState, opts?: CustomResourceOptions): TsfLaneRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[float] = None,
            enable: Optional[bool] = None,
            lane_id: Optional[str] = None,
            priority: Optional[float] = None,
            program_id_lists: Optional[Sequence[str]] = None,
            remark: Optional[str] = None,
            rule_id: Optional[str] = None,
            rule_name: Optional[str] = None,
            rule_tag_lists: Optional[Sequence[TsfLaneRuleRuleTagListArgs]] = None,
            rule_tag_relationship: Optional[str] = None,
            tsf_lane_rule_id: Optional[str] = None,
            update_time: Optional[float] = None) -> TsfLaneRule
    func GetTsfLaneRule(ctx *Context, name string, id IDInput, state *TsfLaneRuleState, opts ...ResourceOption) (*TsfLaneRule, error)
    public static TsfLaneRule Get(string name, Input<string> id, TsfLaneRuleState? state, CustomResourceOptions? opts = null)
    public static TsfLaneRule get(String name, Output<String> id, TsfLaneRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TsfLaneRule    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.
    The following state arguments are supported:
    CreateTime double
    creation time.
    Enable bool
    open state, true/false, default: false.
    LaneId string
    lane ID.
    Priority double
    Priority.
    ProgramIdLists List<string>
    Program id list.
    Remark string
    Lane rule notes.
    RuleId string
    Rule id.
    RuleName string
    lane rule name.
    RuleTagLists List<TsfLaneRuleRuleTagList>
    list of swimlane rule labels.
    RuleTagRelationship string
    lane rule label relationship.
    TsfLaneRuleId string
    ID of the resource.
    UpdateTime double
    update time.
    CreateTime float64
    creation time.
    Enable bool
    open state, true/false, default: false.
    LaneId string
    lane ID.
    Priority float64
    Priority.
    ProgramIdLists []string
    Program id list.
    Remark string
    Lane rule notes.
    RuleId string
    Rule id.
    RuleName string
    lane rule name.
    RuleTagLists []TsfLaneRuleRuleTagListArgs
    list of swimlane rule labels.
    RuleTagRelationship string
    lane rule label relationship.
    TsfLaneRuleId string
    ID of the resource.
    UpdateTime float64
    update time.
    createTime Double
    creation time.
    enable Boolean
    open state, true/false, default: false.
    laneId String
    lane ID.
    priority Double
    Priority.
    programIdLists List<String>
    Program id list.
    remark String
    Lane rule notes.
    ruleId String
    Rule id.
    ruleName String
    lane rule name.
    ruleTagLists List<TsfLaneRuleRuleTagList>
    list of swimlane rule labels.
    ruleTagRelationship String
    lane rule label relationship.
    tsfLaneRuleId String
    ID of the resource.
    updateTime Double
    update time.
    createTime number
    creation time.
    enable boolean
    open state, true/false, default: false.
    laneId string
    lane ID.
    priority number
    Priority.
    programIdLists string[]
    Program id list.
    remark string
    Lane rule notes.
    ruleId string
    Rule id.
    ruleName string
    lane rule name.
    ruleTagLists TsfLaneRuleRuleTagList[]
    list of swimlane rule labels.
    ruleTagRelationship string
    lane rule label relationship.
    tsfLaneRuleId string
    ID of the resource.
    updateTime number
    update time.
    create_time float
    creation time.
    enable bool
    open state, true/false, default: false.
    lane_id str
    lane ID.
    priority float
    Priority.
    program_id_lists Sequence[str]
    Program id list.
    remark str
    Lane rule notes.
    rule_id str
    Rule id.
    rule_name str
    lane rule name.
    rule_tag_lists Sequence[TsfLaneRuleRuleTagListArgs]
    list of swimlane rule labels.
    rule_tag_relationship str
    lane rule label relationship.
    tsf_lane_rule_id str
    ID of the resource.
    update_time float
    update time.
    createTime Number
    creation time.
    enable Boolean
    open state, true/false, default: false.
    laneId String
    lane ID.
    priority Number
    Priority.
    programIdLists List<String>
    Program id list.
    remark String
    Lane rule notes.
    ruleId String
    Rule id.
    ruleName String
    lane rule name.
    ruleTagLists List<Property Map>
    list of swimlane rule labels.
    ruleTagRelationship String
    lane rule label relationship.
    tsfLaneRuleId String
    ID of the resource.
    updateTime Number
    update time.

    Supporting Types

    TsfLaneRuleRuleTagList, TsfLaneRuleRuleTagListArgs

    TagName string
    label name.
    TagOperator string
    label operator.
    TagValue string
    tag value.
    CreateTime double
    creation time.
    LaneRuleId string
    lane rule ID.
    TagId string
    label ID.
    UpdateTime double
    update time.
    TagName string
    label name.
    TagOperator string
    label operator.
    TagValue string
    tag value.
    CreateTime float64
    creation time.
    LaneRuleId string
    lane rule ID.
    TagId string
    label ID.
    UpdateTime float64
    update time.
    tagName String
    label name.
    tagOperator String
    label operator.
    tagValue String
    tag value.
    createTime Double
    creation time.
    laneRuleId String
    lane rule ID.
    tagId String
    label ID.
    updateTime Double
    update time.
    tagName string
    label name.
    tagOperator string
    label operator.
    tagValue string
    tag value.
    createTime number
    creation time.
    laneRuleId string
    lane rule ID.
    tagId string
    label ID.
    updateTime number
    update time.
    tag_name str
    label name.
    tag_operator str
    label operator.
    tag_value str
    tag value.
    create_time float
    creation time.
    lane_rule_id str
    lane rule ID.
    tag_id str
    label ID.
    update_time float
    update time.
    tagName String
    label name.
    tagOperator String
    label operator.
    tagValue String
    tag value.
    createTime Number
    creation time.
    laneRuleId String
    lane rule ID.
    tagId String
    label ID.
    updateTime Number
    update time.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack