tencentcloud.TsfLaneRule
Explore with Pulumi AI
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.
- Lane
Id string - lane ID.
- Remark string
- Lane rule notes.
- Rule
Name string - lane rule name.
- Rule
Tag List<TsfLists Lane Rule Rule Tag List> - list of swimlane rule labels.
- Rule
Tag stringRelationship - lane rule label relationship.
- Program
Id List<string>Lists - Program id list.
- Tsf
Lane stringRule Id - ID of the resource.
- Enable bool
- open state, true/false, default: false.
- Lane
Id string - lane ID.
- Remark string
- Lane rule notes.
- Rule
Name string - lane rule name.
- Rule
Tag []TsfLists Lane Rule Rule Tag List Args - list of swimlane rule labels.
- Rule
Tag stringRelationship - lane rule label relationship.
- Program
Id []stringLists - Program id list.
- Tsf
Lane stringRule Id - ID of the resource.
- enable Boolean
- open state, true/false, default: false.
- lane
Id String - lane ID.
- remark String
- Lane rule notes.
- rule
Name String - lane rule name.
- rule
Tag List<TsfLists Lane Rule Rule Tag List> - list of swimlane rule labels.
- rule
Tag StringRelationship - lane rule label relationship.
- program
Id List<String>Lists - Program id list.
- tsf
Lane StringRule Id - ID of the resource.
- enable boolean
- open state, true/false, default: false.
- lane
Id string - lane ID.
- remark string
- Lane rule notes.
- rule
Name string - lane rule name.
- rule
Tag TsfLists Lane Rule Rule Tag List[] - list of swimlane rule labels.
- rule
Tag stringRelationship - lane rule label relationship.
- program
Id string[]Lists - Program id list.
- tsf
Lane stringRule Id - 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_ Sequence[Tsflists Lane Rule Rule Tag List Args] - list of swimlane rule labels.
- rule_
tag_ strrelationship - lane rule label relationship.
- program_
id_ Sequence[str]lists - Program id list.
- tsf_
lane_ strrule_ id - ID of the resource.
- enable Boolean
- open state, true/false, default: false.
- lane
Id String - lane ID.
- remark String
- Lane rule notes.
- rule
Name String - lane rule name.
- rule
Tag List<Property Map>Lists - list of swimlane rule labels.
- rule
Tag StringRelationship - lane rule label relationship.
- program
Id List<String>Lists - Program id list.
- tsf
Lane StringRule Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TsfLaneRule resource produces the following output properties:
- Create
Time double - creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Priority double
- Priority.
- Rule
Id string - Rule id.
- Update
Time double - update time.
- Create
Time float64 - creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Priority float64
- Priority.
- Rule
Id string - Rule id.
- Update
Time float64 - update time.
- create
Time Double - creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- priority Double
- Priority.
- rule
Id String - Rule id.
- update
Time Double - update time.
- create
Time number - creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- priority number
- Priority.
- rule
Id string - Rule id.
- update
Time 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.
- create
Time Number - creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- priority Number
- Priority.
- rule
Id String - Rule id.
- update
Time 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.
- Create
Time double - creation time.
- Enable bool
- open state, true/false, default: false.
- Lane
Id string - lane ID.
- Priority double
- Priority.
- Program
Id List<string>Lists - Program id list.
- Remark string
- Lane rule notes.
- Rule
Id string - Rule id.
- Rule
Name string - lane rule name.
- Rule
Tag List<TsfLists Lane Rule Rule Tag List> - list of swimlane rule labels.
- Rule
Tag stringRelationship - lane rule label relationship.
- Tsf
Lane stringRule Id - ID of the resource.
- Update
Time double - update time.
- Create
Time float64 - creation time.
- Enable bool
- open state, true/false, default: false.
- Lane
Id string - lane ID.
- Priority float64
- Priority.
- Program
Id []stringLists - Program id list.
- Remark string
- Lane rule notes.
- Rule
Id string - Rule id.
- Rule
Name string - lane rule name.
- Rule
Tag []TsfLists Lane Rule Rule Tag List Args - list of swimlane rule labels.
- Rule
Tag stringRelationship - lane rule label relationship.
- Tsf
Lane stringRule Id - ID of the resource.
- Update
Time float64 - update time.
- create
Time Double - creation time.
- enable Boolean
- open state, true/false, default: false.
- lane
Id String - lane ID.
- priority Double
- Priority.
- program
Id List<String>Lists - Program id list.
- remark String
- Lane rule notes.
- rule
Id String - Rule id.
- rule
Name String - lane rule name.
- rule
Tag List<TsfLists Lane Rule Rule Tag List> - list of swimlane rule labels.
- rule
Tag StringRelationship - lane rule label relationship.
- tsf
Lane StringRule Id - ID of the resource.
- update
Time Double - update time.
- create
Time number - creation time.
- enable boolean
- open state, true/false, default: false.
- lane
Id string - lane ID.
- priority number
- Priority.
- program
Id string[]Lists - Program id list.
- remark string
- Lane rule notes.
- rule
Id string - Rule id.
- rule
Name string - lane rule name.
- rule
Tag TsfLists Lane Rule Rule Tag List[] - list of swimlane rule labels.
- rule
Tag stringRelationship - lane rule label relationship.
- tsf
Lane stringRule Id - ID of the resource.
- update
Time 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_ Sequence[str]lists - Program id list.
- remark str
- Lane rule notes.
- rule_
id str - Rule id.
- rule_
name str - lane rule name.
- rule_
tag_ Sequence[Tsflists Lane Rule Rule Tag List Args] - list of swimlane rule labels.
- rule_
tag_ strrelationship - lane rule label relationship.
- tsf_
lane_ strrule_ id - ID of the resource.
- update_
time float - update time.
- create
Time Number - creation time.
- enable Boolean
- open state, true/false, default: false.
- lane
Id String - lane ID.
- priority Number
- Priority.
- program
Id List<String>Lists - Program id list.
- remark String
- Lane rule notes.
- rule
Id String - Rule id.
- rule
Name String - lane rule name.
- rule
Tag List<Property Map>Lists - list of swimlane rule labels.
- rule
Tag StringRelationship - lane rule label relationship.
- tsf
Lane StringRule Id - ID of the resource.
- update
Time Number - update time.
Supporting Types
TsfLaneRuleRuleTagList, TsfLaneRuleRuleTagListArgs
- Tag
Name string - label name.
- Tag
Operator string - label operator.
- Tag
Value string - tag value.
- Create
Time double - creation time.
- Lane
Rule stringId - lane rule ID.
- Tag
Id string - label ID.
- Update
Time double - update time.
- Tag
Name string - label name.
- Tag
Operator string - label operator.
- Tag
Value string - tag value.
- Create
Time float64 - creation time.
- Lane
Rule stringId - lane rule ID.
- Tag
Id string - label ID.
- Update
Time float64 - update time.
- tag
Name String - label name.
- tag
Operator String - label operator.
- tag
Value String - tag value.
- create
Time Double - creation time.
- lane
Rule StringId - lane rule ID.
- tag
Id String - label ID.
- update
Time Double - update time.
- tag
Name string - label name.
- tag
Operator string - label operator.
- tag
Value string - tag value.
- create
Time number - creation time.
- lane
Rule stringId - lane rule ID.
- tag
Id string - label ID.
- update
Time 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_ strid - lane rule ID.
- tag_
id str - label ID.
- update_
time float - update time.
- tag
Name String - label name.
- tag
Operator String - label operator.
- tag
Value String - tag value.
- create
Time Number - creation time.
- lane
Rule StringId - lane rule ID.
- tag
Id String - label ID.
- update
Time Number - update time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.