datadog.TagPipelineRulesets
Provides a Datadog Tag Pipeline Ruleset Order resource that can be used to manage the order of Tag Pipeline Rulesets.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Create new tag_pipeline_ruleset_order resource
const myRulesets = new datadog.TagPipelineRulesets("my_rulesets", {rulesetIds: [
"ruleset-id-1",
"ruleset-id-2",
"ruleset-id-3",
]});
import pulumi
import pulumi_datadog as datadog
# Create new tag_pipeline_ruleset_order resource
my_rulesets = datadog.TagPipelineRulesets("my_rulesets", ruleset_ids=[
"ruleset-id-1",
"ruleset-id-2",
"ruleset-id-3",
])
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create new tag_pipeline_ruleset_order resource
_, err := datadog.NewTagPipelineRulesets(ctx, "my_rulesets", &datadog.TagPipelineRulesetsArgs{
RulesetIds: pulumi.StringArray{
pulumi.String("ruleset-id-1"),
pulumi.String("ruleset-id-2"),
pulumi.String("ruleset-id-3"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
// Create new tag_pipeline_ruleset_order resource
var myRulesets = new Datadog.TagPipelineRulesets("my_rulesets", new()
{
RulesetIds = new[]
{
"ruleset-id-1",
"ruleset-id-2",
"ruleset-id-3",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.TagPipelineRulesets;
import com.pulumi.datadog.TagPipelineRulesetsArgs;
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) {
// Create new tag_pipeline_ruleset_order resource
var myRulesets = new TagPipelineRulesets("myRulesets", TagPipelineRulesetsArgs.builder()
.rulesetIds(
"ruleset-id-1",
"ruleset-id-2",
"ruleset-id-3")
.build());
}
}
resources:
# Create new tag_pipeline_ruleset_order resource
myRulesets:
type: datadog:TagPipelineRulesets
name: my_rulesets
properties:
rulesetIds:
- ruleset-id-1
- ruleset-id-2
- ruleset-id-3
Create TagPipelineRulesets Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TagPipelineRulesets(name: string, args: TagPipelineRulesetsArgs, opts?: CustomResourceOptions);
@overload
def TagPipelineRulesets(resource_name: str,
args: TagPipelineRulesetsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TagPipelineRulesets(resource_name: str,
opts: Optional[ResourceOptions] = None,
ruleset_ids: Optional[Sequence[str]] = None)
func NewTagPipelineRulesets(ctx *Context, name string, args TagPipelineRulesetsArgs, opts ...ResourceOption) (*TagPipelineRulesets, error)
public TagPipelineRulesets(string name, TagPipelineRulesetsArgs args, CustomResourceOptions? opts = null)
public TagPipelineRulesets(String name, TagPipelineRulesetsArgs args)
public TagPipelineRulesets(String name, TagPipelineRulesetsArgs args, CustomResourceOptions options)
type: datadog:TagPipelineRulesets
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 TagPipelineRulesetsArgs
- 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 TagPipelineRulesetsArgs
- 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 TagPipelineRulesetsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagPipelineRulesetsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TagPipelineRulesetsArgs
- 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 tagPipelineRulesetsResource = new Datadog.TagPipelineRulesets("tagPipelineRulesetsResource", new()
{
RulesetIds = new[]
{
"string",
},
});
example, err := datadog.NewTagPipelineRulesets(ctx, "tagPipelineRulesetsResource", &datadog.TagPipelineRulesetsArgs{
RulesetIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var tagPipelineRulesetsResource = new TagPipelineRulesets("tagPipelineRulesetsResource", TagPipelineRulesetsArgs.builder()
.rulesetIds("string")
.build());
tag_pipeline_rulesets_resource = datadog.TagPipelineRulesets("tagPipelineRulesetsResource", ruleset_ids=["string"])
const tagPipelineRulesetsResource = new datadog.TagPipelineRulesets("tagPipelineRulesetsResource", {rulesetIds: ["string"]});
type: datadog:TagPipelineRulesets
properties:
rulesetIds:
- string
TagPipelineRulesets 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 TagPipelineRulesets resource accepts the following input properties:
- Ruleset
Ids List<string> - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- Ruleset
Ids []string - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- ruleset
Ids List<String> - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- ruleset
Ids string[] - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- ruleset_
ids Sequence[str] - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- ruleset
Ids List<String> - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
Outputs
All input properties are implicitly available as output properties. Additionally, the TagPipelineRulesets 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 TagPipelineRulesets Resource
Get an existing TagPipelineRulesets 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?: TagPipelineRulesetsState, opts?: CustomResourceOptions): TagPipelineRulesets
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ruleset_ids: Optional[Sequence[str]] = None) -> TagPipelineRulesets
func GetTagPipelineRulesets(ctx *Context, name string, id IDInput, state *TagPipelineRulesetsState, opts ...ResourceOption) (*TagPipelineRulesets, error)
public static TagPipelineRulesets Get(string name, Input<string> id, TagPipelineRulesetsState? state, CustomResourceOptions? opts = null)
public static TagPipelineRulesets get(String name, Output<String> id, TagPipelineRulesetsState state, CustomResourceOptions options)
resources: _: type: datadog:TagPipelineRulesets 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.
- Ruleset
Ids List<string> - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- Ruleset
Ids []string - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- ruleset
Ids List<String> - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- ruleset
Ids string[] - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- ruleset_
ids Sequence[str] - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
- ruleset
Ids List<String> - The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
Import
The pulumi import
command can be used, for example:
$ pulumi import datadog:index/tagPipelineRulesets:TagPipelineRulesets my_rulesets order
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.