datadog.TagPipelineRuleset
Provides a Datadog Tag Pipeline Ruleset resource.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
example:
type: datadog:TagPipelineRuleset
properties:
name: Complete Tag Pipeline Example
enabled: true
rules:
- name: standardize-environment
enabled: true
mapping:
- destinationKey: env
ifNotExists: true
sourceKeys:
- environment
- stage
- tier
- name: assign-team-tags
enabled: true
query:
- query: service:web* OR service:frontend*
caseInsensitivity: true
ifNotExists: true
addition:
- key: team
value: frontend
- name: enrich-service-metadata
enabled: true
referenceTable:
- tableName: service_catalog
caseInsensitivity: true
ifNotExists: true
sourceKeys:
- service
fieldPairs:
- inputColumn: owner_team
outputKey: owner
- inputColumn: business_unit
outputKey: business_unit
Create TagPipelineRuleset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TagPipelineRuleset(name: string, args: TagPipelineRulesetArgs, opts?: CustomResourceOptions);
@overload
def TagPipelineRuleset(resource_name: str,
args: TagPipelineRulesetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TagPipelineRuleset(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
enabled: Optional[bool] = None,
rules: Optional[Sequence[TagPipelineRulesetRuleArgs]] = None)
func NewTagPipelineRuleset(ctx *Context, name string, args TagPipelineRulesetArgs, opts ...ResourceOption) (*TagPipelineRuleset, error)
public TagPipelineRuleset(string name, TagPipelineRulesetArgs args, CustomResourceOptions? opts = null)
public TagPipelineRuleset(String name, TagPipelineRulesetArgs args)
public TagPipelineRuleset(String name, TagPipelineRulesetArgs args, CustomResourceOptions options)
type: datadog:TagPipelineRuleset
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 TagPipelineRulesetArgs
- 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 TagPipelineRulesetArgs
- 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 TagPipelineRulesetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagPipelineRulesetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TagPipelineRulesetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var tagPipelineRulesetResource = new Datadog.TagPipelineRuleset("tagPipelineRulesetResource", new()
{
Name = "string",
Enabled = false,
Rules = new[]
{
new Datadog.Inputs.TagPipelineRulesetRuleArgs
{
Enabled = false,
Name = "string",
Mapping = new Datadog.Inputs.TagPipelineRulesetRuleMappingArgs
{
DestinationKey = "string",
IfNotExists = false,
SourceKeys = new[]
{
"string",
},
},
Metadata =
{
{ "string", "string" },
},
Query = new Datadog.Inputs.TagPipelineRulesetRuleQueryArgs
{
Addition = new Datadog.Inputs.TagPipelineRulesetRuleQueryAdditionArgs
{
Key = "string",
Value = "string",
},
CaseInsensitivity = false,
IfNotExists = false,
Query = "string",
},
ReferenceTable = new Datadog.Inputs.TagPipelineRulesetRuleReferenceTableArgs
{
CaseInsensitivity = false,
FieldPairs = new[]
{
new Datadog.Inputs.TagPipelineRulesetRuleReferenceTableFieldPairArgs
{
InputColumn = "string",
OutputKey = "string",
},
},
IfNotExists = false,
SourceKeys = new[]
{
"string",
},
TableName = "string",
},
},
},
});
example, err := datadog.NewTagPipelineRuleset(ctx, "tagPipelineRulesetResource", &datadog.TagPipelineRulesetArgs{
Name: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Rules: datadog.TagPipelineRulesetRuleArray{
&datadog.TagPipelineRulesetRuleArgs{
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Mapping: &datadog.TagPipelineRulesetRuleMappingArgs{
DestinationKey: pulumi.String("string"),
IfNotExists: pulumi.Bool(false),
SourceKeys: pulumi.StringArray{
pulumi.String("string"),
},
},
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Query: &datadog.TagPipelineRulesetRuleQueryArgs{
Addition: &datadog.TagPipelineRulesetRuleQueryAdditionArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
CaseInsensitivity: pulumi.Bool(false),
IfNotExists: pulumi.Bool(false),
Query: pulumi.String("string"),
},
ReferenceTable: &datadog.TagPipelineRulesetRuleReferenceTableArgs{
CaseInsensitivity: pulumi.Bool(false),
FieldPairs: datadog.TagPipelineRulesetRuleReferenceTableFieldPairArray{
&datadog.TagPipelineRulesetRuleReferenceTableFieldPairArgs{
InputColumn: pulumi.String("string"),
OutputKey: pulumi.String("string"),
},
},
IfNotExists: pulumi.Bool(false),
SourceKeys: pulumi.StringArray{
pulumi.String("string"),
},
TableName: pulumi.String("string"),
},
},
},
})
var tagPipelineRulesetResource = new TagPipelineRuleset("tagPipelineRulesetResource", TagPipelineRulesetArgs.builder()
.name("string")
.enabled(false)
.rules(TagPipelineRulesetRuleArgs.builder()
.enabled(false)
.name("string")
.mapping(TagPipelineRulesetRuleMappingArgs.builder()
.destinationKey("string")
.ifNotExists(false)
.sourceKeys("string")
.build())
.metadata(Map.of("string", "string"))
.query(TagPipelineRulesetRuleQueryArgs.builder()
.addition(TagPipelineRulesetRuleQueryAdditionArgs.builder()
.key("string")
.value("string")
.build())
.caseInsensitivity(false)
.ifNotExists(false)
.query("string")
.build())
.referenceTable(TagPipelineRulesetRuleReferenceTableArgs.builder()
.caseInsensitivity(false)
.fieldPairs(TagPipelineRulesetRuleReferenceTableFieldPairArgs.builder()
.inputColumn("string")
.outputKey("string")
.build())
.ifNotExists(false)
.sourceKeys("string")
.tableName("string")
.build())
.build())
.build());
tag_pipeline_ruleset_resource = datadog.TagPipelineRuleset("tagPipelineRulesetResource",
name="string",
enabled=False,
rules=[{
"enabled": False,
"name": "string",
"mapping": {
"destination_key": "string",
"if_not_exists": False,
"source_keys": ["string"],
},
"metadata": {
"string": "string",
},
"query": {
"addition": {
"key": "string",
"value": "string",
},
"case_insensitivity": False,
"if_not_exists": False,
"query": "string",
},
"reference_table": {
"case_insensitivity": False,
"field_pairs": [{
"input_column": "string",
"output_key": "string",
}],
"if_not_exists": False,
"source_keys": ["string"],
"table_name": "string",
},
}])
const tagPipelineRulesetResource = new datadog.TagPipelineRuleset("tagPipelineRulesetResource", {
name: "string",
enabled: false,
rules: [{
enabled: false,
name: "string",
mapping: {
destinationKey: "string",
ifNotExists: false,
sourceKeys: ["string"],
},
metadata: {
string: "string",
},
query: {
addition: {
key: "string",
value: "string",
},
caseInsensitivity: false,
ifNotExists: false,
query: "string",
},
referenceTable: {
caseInsensitivity: false,
fieldPairs: [{
inputColumn: "string",
outputKey: "string",
}],
ifNotExists: false,
sourceKeys: ["string"],
tableName: "string",
},
}],
});
type: datadog:TagPipelineRuleset
properties:
enabled: false
name: string
rules:
- enabled: false
mapping:
destinationKey: string
ifNotExists: false
sourceKeys:
- string
metadata:
string: string
name: string
query:
addition:
key: string
value: string
caseInsensitivity: false
ifNotExists: false
query: string
referenceTable:
caseInsensitivity: false
fieldPairs:
- inputColumn: string
outputKey: string
ifNotExists: false
sourceKeys:
- string
tableName: string
TagPipelineRuleset 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 TagPipelineRuleset resource accepts the following input properties:
- Name string
- The name of the ruleset.
- Enabled bool
- Whether the ruleset is enabled.
- Rules
List<Tag
Pipeline Ruleset Rule> - The rules in the ruleset.
- Name string
- The name of the ruleset.
- Enabled bool
- Whether the ruleset is enabled.
- Rules
[]Tag
Pipeline Ruleset Rule Args - The rules in the ruleset.
- name String
- The name of the ruleset.
- enabled Boolean
- Whether the ruleset is enabled.
- rules
List<Tag
Pipeline Ruleset Rule> - The rules in the ruleset.
- name string
- The name of the ruleset.
- enabled boolean
- Whether the ruleset is enabled.
- rules
Tag
Pipeline Ruleset Rule[] - The rules in the ruleset.
- name str
- The name of the ruleset.
- enabled bool
- Whether the ruleset is enabled.
- rules
Sequence[Tag
Pipeline Ruleset Rule Args] - The rules in the ruleset.
- name String
- The name of the ruleset.
- enabled Boolean
- Whether the ruleset is enabled.
- rules List<Property Map>
- The rules in the ruleset.
Outputs
All input properties are implicitly available as output properties. Additionally, the TagPipelineRuleset resource produces the following output properties:
Look up Existing TagPipelineRuleset Resource
Get an existing TagPipelineRuleset 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?: TagPipelineRulesetState, opts?: CustomResourceOptions): TagPipelineRuleset
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
position: Optional[int] = None,
rules: Optional[Sequence[TagPipelineRulesetRuleArgs]] = None,
version: Optional[int] = None) -> TagPipelineRuleset
func GetTagPipelineRuleset(ctx *Context, name string, id IDInput, state *TagPipelineRulesetState, opts ...ResourceOption) (*TagPipelineRuleset, error)
public static TagPipelineRuleset Get(string name, Input<string> id, TagPipelineRulesetState? state, CustomResourceOptions? opts = null)
public static TagPipelineRuleset get(String name, Output<String> id, TagPipelineRulesetState state, CustomResourceOptions options)
resources: _: type: datadog:TagPipelineRuleset 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.
Supporting Types
TagPipelineRulesetRule, TagPipelineRulesetRuleArgs
- Enabled bool
- Whether the rule is enabled.
- Name string
- The name of the rule.
- Mapping
Tag
Pipeline Ruleset Rule Mapping - The mapping configuration for the rule.
- Metadata Dictionary<string, string>
- Rule metadata key-value pairs.
- Query
Tag
Pipeline Ruleset Rule Query - The query configuration for the rule.
- Reference
Table TagPipeline Ruleset Rule Reference Table - The reference table configuration for the rule.
- Enabled bool
- Whether the rule is enabled.
- Name string
- The name of the rule.
- Mapping
Tag
Pipeline Ruleset Rule Mapping - The mapping configuration for the rule.
- Metadata map[string]string
- Rule metadata key-value pairs.
- Query
Tag
Pipeline Ruleset Rule Query - The query configuration for the rule.
- Reference
Table TagPipeline Ruleset Rule Reference Table - The reference table configuration for the rule.
- enabled Boolean
- Whether the rule is enabled.
- name String
- The name of the rule.
- mapping
Tag
Pipeline Ruleset Rule Mapping - The mapping configuration for the rule.
- metadata Map<String,String>
- Rule metadata key-value pairs.
- query
Tag
Pipeline Ruleset Rule Query - The query configuration for the rule.
- reference
Table TagPipeline Ruleset Rule Reference Table - The reference table configuration for the rule.
- enabled boolean
- Whether the rule is enabled.
- name string
- The name of the rule.
- mapping
Tag
Pipeline Ruleset Rule Mapping - The mapping configuration for the rule.
- metadata {[key: string]: string}
- Rule metadata key-value pairs.
- query
Tag
Pipeline Ruleset Rule Query - The query configuration for the rule.
- reference
Table TagPipeline Ruleset Rule Reference Table - The reference table configuration for the rule.
- enabled bool
- Whether the rule is enabled.
- name str
- The name of the rule.
- mapping
Tag
Pipeline Ruleset Rule Mapping - The mapping configuration for the rule.
- metadata Mapping[str, str]
- Rule metadata key-value pairs.
- query
Tag
Pipeline Ruleset Rule Query - The query configuration for the rule.
- reference_
table TagPipeline Ruleset Rule Reference Table - The reference table configuration for the rule.
- enabled Boolean
- Whether the rule is enabled.
- name String
- The name of the rule.
- mapping Property Map
- The mapping configuration for the rule.
- metadata Map<String>
- Rule metadata key-value pairs.
- query Property Map
- The query configuration for the rule.
- reference
Table Property Map - The reference table configuration for the rule.
TagPipelineRulesetRuleMapping, TagPipelineRulesetRuleMappingArgs
- Destination
Key string - The destination key for the mapping.
- If
Not boolExists - Whether to apply the mapping only if the destination key doesn't exist.
- Source
Keys List<string> - The source keys for the mapping.
- Destination
Key string - The destination key for the mapping.
- If
Not boolExists - Whether to apply the mapping only if the destination key doesn't exist.
- Source
Keys []string - The source keys for the mapping.
- destination
Key String - The destination key for the mapping.
- if
Not BooleanExists - Whether to apply the mapping only if the destination key doesn't exist.
- source
Keys List<String> - The source keys for the mapping.
- destination
Key string - The destination key for the mapping.
- if
Not booleanExists - Whether to apply the mapping only if the destination key doesn't exist.
- source
Keys string[] - The source keys for the mapping.
- destination_
key str - The destination key for the mapping.
- if_
not_ boolexists - Whether to apply the mapping only if the destination key doesn't exist.
- source_
keys Sequence[str] - The source keys for the mapping.
- destination
Key String - The destination key for the mapping.
- if
Not BooleanExists - Whether to apply the mapping only if the destination key doesn't exist.
- source
Keys List<String> - The source keys for the mapping.
TagPipelineRulesetRuleQuery, TagPipelineRulesetRuleQueryArgs
- Addition
Tag
Pipeline Ruleset Rule Query Addition - The addition configuration for the query.
- Case
Insensitivity bool - Whether the query matching is case insensitive.
- If
Not boolExists - Whether to apply the query only if the key doesn't exist.
- Query string
- The query string.
- Addition
Tag
Pipeline Ruleset Rule Query Addition - The addition configuration for the query.
- Case
Insensitivity bool - Whether the query matching is case insensitive.
- If
Not boolExists - Whether to apply the query only if the key doesn't exist.
- Query string
- The query string.
- addition
Tag
Pipeline Ruleset Rule Query Addition - The addition configuration for the query.
- case
Insensitivity Boolean - Whether the query matching is case insensitive.
- if
Not BooleanExists - Whether to apply the query only if the key doesn't exist.
- query String
- The query string.
- addition
Tag
Pipeline Ruleset Rule Query Addition - The addition configuration for the query.
- case
Insensitivity boolean - Whether the query matching is case insensitive.
- if
Not booleanExists - Whether to apply the query only if the key doesn't exist.
- query string
- The query string.
- addition
Tag
Pipeline Ruleset Rule Query Addition - The addition configuration for the query.
- case_
insensitivity bool - Whether the query matching is case insensitive.
- if_
not_ boolexists - Whether to apply the query only if the key doesn't exist.
- query str
- The query string.
- addition Property Map
- The addition configuration for the query.
- case
Insensitivity Boolean - Whether the query matching is case insensitive.
- if
Not BooleanExists - Whether to apply the query only if the key doesn't exist.
- query String
- The query string.
TagPipelineRulesetRuleQueryAddition, TagPipelineRulesetRuleQueryAdditionArgs
TagPipelineRulesetRuleReferenceTable, TagPipelineRulesetRuleReferenceTableArgs
- Case
Insensitivity bool - Whether the reference table lookup is case insensitive.
- Field
Pairs List<TagPipeline Ruleset Rule Reference Table Field Pair> - The field pairs for the reference table.
- If
Not boolExists - Whether to apply the reference table only if the key doesn't exist.
- Source
Keys List<string> - The source keys for the reference table lookup.
- Table
Name string - The name of the reference table.
- Case
Insensitivity bool - Whether the reference table lookup is case insensitive.
- Field
Pairs []TagPipeline Ruleset Rule Reference Table Field Pair - The field pairs for the reference table.
- If
Not boolExists - Whether to apply the reference table only if the key doesn't exist.
- Source
Keys []string - The source keys for the reference table lookup.
- Table
Name string - The name of the reference table.
- case
Insensitivity Boolean - Whether the reference table lookup is case insensitive.
- field
Pairs List<TagPipeline Ruleset Rule Reference Table Field Pair> - The field pairs for the reference table.
- if
Not BooleanExists - Whether to apply the reference table only if the key doesn't exist.
- source
Keys List<String> - The source keys for the reference table lookup.
- table
Name String - The name of the reference table.
- case
Insensitivity boolean - Whether the reference table lookup is case insensitive.
- field
Pairs TagPipeline Ruleset Rule Reference Table Field Pair[] - The field pairs for the reference table.
- if
Not booleanExists - Whether to apply the reference table only if the key doesn't exist.
- source
Keys string[] - The source keys for the reference table lookup.
- table
Name string - The name of the reference table.
- case_
insensitivity bool - Whether the reference table lookup is case insensitive.
- field_
pairs Sequence[TagPipeline Ruleset Rule Reference Table Field Pair] - The field pairs for the reference table.
- if_
not_ boolexists - Whether to apply the reference table only if the key doesn't exist.
- source_
keys Sequence[str] - The source keys for the reference table lookup.
- table_
name str - The name of the reference table.
- case
Insensitivity Boolean - Whether the reference table lookup is case insensitive.
- field
Pairs List<Property Map> - The field pairs for the reference table.
- if
Not BooleanExists - Whether to apply the reference table only if the key doesn't exist.
- source
Keys List<String> - The source keys for the reference table lookup.
- table
Name String - The name of the reference table.
TagPipelineRulesetRuleReferenceTableFieldPair, TagPipelineRulesetRuleReferenceTableFieldPairArgs
- Input
Column string - The input column name.
- Output
Key string - The output key name.
- Input
Column string - The input column name.
- Output
Key string - The output key name.
- input
Column String - The input column name.
- output
Key String - The output key name.
- input
Column string - The input column name.
- output
Key string - The output key name.
- input_
column str - The input column name.
- output_
key str - The output key name.
- input
Column String - The input column name.
- output
Key String - The output key name.
Import
The pulumi import
command can be used, for example:
$ pulumi import datadog:index/tagPipelineRuleset:TagPipelineRuleset example "your-ruleset-id-here"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.