Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

LogsPipelineOrder

Provides a Datadog Logs Pipeline API resource, which is used to manage Datadog log pipelines order.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        var samplePipelineOrder = new Datadog.LogsPipelineOrder("samplePipelineOrder", new Datadog.LogsPipelineOrderArgs
        {
            Name = "sample_pipeline_order",
            Pipelines = 
            {
                datadog_logs_custom_pipeline.Sample_pipeline.Id,
                datadog_logs_integration_pipeline.Python.Id,
            },
        }, new CustomResourceOptions
        {
            DependsOn = 
            {
                "datadog_logs_custom_pipeline.sample_pipeline",
                "datadog_logs_integration_pipeline.python",
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-datadog/sdk/v2/go/datadog"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := datadog.NewLogsPipelineOrder(ctx, "samplePipelineOrder", &datadog.LogsPipelineOrderArgs{
            Name: pulumi.String("sample_pipeline_order"),
            Pipelines: pulumi.StringArray{
                pulumi.Any(datadog_logs_custom_pipeline.Sample_pipeline.Id),
                pulumi.Any(datadog_logs_integration_pipeline.Python.Id),
            },
        }, pulumi.DependsOn([]pulumi.Resource{
            "datadog_logs_custom_pipeline.sample_pipeline",
            "datadog_logs_integration_pipeline.python",
        }))
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_datadog as datadog

sample_pipeline_order = datadog.LogsPipelineOrder("samplePipelineOrder",
    name="sample_pipeline_order",
    pipelines=[
        datadog_logs_custom_pipeline["sample_pipeline"]["id"],
        datadog_logs_integration_pipeline["python"]["id"],
    ],
    opts=pulumi.ResourceOptions(depends_on=[
            "datadog_logs_custom_pipeline.sample_pipeline",
            "datadog_logs_integration_pipeline.python",
        ]))
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const samplePipelineOrder = new datadog.LogsPipelineOrder("samplePipelineOrder", {
    name: "sample_pipeline_order",
    pipelines: [
        datadog_logs_custom_pipeline.sample_pipeline.id,
        datadog_logs_integration_pipeline.python.id,
    ],
}, {
    dependsOn: [
        "datadog_logs_custom_pipeline.sample_pipeline",
        "datadog_logs_integration_pipeline.python",
    ],
});

Create a LogsPipelineOrder Resource

new LogsPipelineOrder(name: string, args: LogsPipelineOrderArgs, opts?: CustomResourceOptions);
def LogsPipelineOrder(resource_name: str, opts: Optional[ResourceOptions] = None, name: Optional[str] = None, pipelines: Optional[Sequence[str]] = None)
func NewLogsPipelineOrder(ctx *Context, name string, args LogsPipelineOrderArgs, opts ...ResourceOption) (*LogsPipelineOrder, error)
public LogsPipelineOrder(string name, LogsPipelineOrderArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args LogsPipelineOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LogsPipelineOrderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LogsPipelineOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

LogsPipelineOrder Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The LogsPipelineOrder resource accepts the following input properties:

Name string

The name attribute in the resource datadog_logs_pipeline_order needs to be unique. It’s recommended to use the same value as the resource name. No related field is available in Logs Pipeline API.

Pipelines List<string>

The pipeline IDs list. The order of pipeline IDs in this attribute defines the overall pipeline order for logs.

Name string

The name attribute in the resource datadog_logs_pipeline_order needs to be unique. It’s recommended to use the same value as the resource name. No related field is available in Logs Pipeline API.

Pipelines []string

The pipeline IDs list. The order of pipeline IDs in this attribute defines the overall pipeline order for logs.

name string

The name attribute in the resource datadog_logs_pipeline_order needs to be unique. It’s recommended to use the same value as the resource name. No related field is available in Logs Pipeline API.

pipelines string[]

The pipeline IDs list. The order of pipeline IDs in this attribute defines the overall pipeline order for logs.

name str

The name attribute in the resource datadog_logs_pipeline_order needs to be unique. It’s recommended to use the same value as the resource name. No related field is available in Logs Pipeline API.

pipelines Sequence[str]

The pipeline IDs list. The order of pipeline IDs in this attribute defines the overall pipeline order for logs.

Outputs

All input properties are implicitly available as output properties. Additionally, the LogsPipelineOrder 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing LogsPipelineOrder Resource

Get an existing LogsPipelineOrder 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?: LogsPipelineOrderState, opts?: CustomResourceOptions): LogsPipelineOrder
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, name: Optional[str] = None, pipelines: Optional[Sequence[str]] = None) -> LogsPipelineOrder
func GetLogsPipelineOrder(ctx *Context, name string, id IDInput, state *LogsPipelineOrderState, opts ...ResourceOption) (*LogsPipelineOrder, error)
public static LogsPipelineOrder Get(string name, Input<string> id, LogsPipelineOrderState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Name string

The name attribute in the resource datadog_logs_pipeline_order needs to be unique. It’s recommended to use the same value as the resource name. No related field is available in Logs Pipeline API.

Pipelines List<string>

The pipeline IDs list. The order of pipeline IDs in this attribute defines the overall pipeline order for logs.

Name string

The name attribute in the resource datadog_logs_pipeline_order needs to be unique. It’s recommended to use the same value as the resource name. No related field is available in Logs Pipeline API.

Pipelines []string

The pipeline IDs list. The order of pipeline IDs in this attribute defines the overall pipeline order for logs.

name string

The name attribute in the resource datadog_logs_pipeline_order needs to be unique. It’s recommended to use the same value as the resource name. No related field is available in Logs Pipeline API.

pipelines string[]

The pipeline IDs list. The order of pipeline IDs in this attribute defines the overall pipeline order for logs.

name str

The name attribute in the resource datadog_logs_pipeline_order needs to be unique. It’s recommended to use the same value as the resource name. No related field is available in Logs Pipeline API.

pipelines Sequence[str]

The pipeline IDs list. The order of pipeline IDs in this attribute defines the overall pipeline order for logs.

Import

There must be at most one datadog_logs_pipeline_order resource. Pipeline order creation is not supported from logs config API. You can import the datadog_logs_pipeline_order or create a pipeline order (which is actually doing the update operation).

 $ pulumi import datadog:index/logsPipelineOrder:LogsPipelineOrder name> <name>

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.