datadog.LogsPipelineOrder
Explore with Pulumi AI
Provides a Datadog Logs Pipeline API resource, which is used to manage Datadog log pipelines order.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
var samplePipelineOrder = new Datadog.LogsPipelineOrder("samplePipelineOrder", new()
{
Name = "sample_pipeline_order",
Pipelines = new[]
{
datadog_logs_custom_pipeline.Sample_pipeline.Id,
datadog_logs_integration_pipeline.Python.Id,
},
});
});
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 {
_, err := datadog.NewLogsPipelineOrder(ctx, "samplePipelineOrder", &datadog.LogsPipelineOrderArgs{
Name: pulumi.String("sample_pipeline_order"),
Pipelines: pulumi.StringArray{
datadog_logs_custom_pipeline.Sample_pipeline.Id,
datadog_logs_integration_pipeline.Python.Id,
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.LogsPipelineOrder;
import com.pulumi.datadog.LogsPipelineOrderArgs;
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 samplePipelineOrder = new LogsPipelineOrder("samplePipelineOrder", LogsPipelineOrderArgs.builder()
.name("sample_pipeline_order")
.pipelines(
datadog_logs_custom_pipeline.sample_pipeline().id(),
datadog_logs_integration_pipeline.python().id())
.build());
}
}
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"],
])
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,
],
});
resources:
samplePipelineOrder:
type: datadog:LogsPipelineOrder
properties:
name: sample_pipeline_order
pipelines:
- ${datadog_logs_custom_pipeline.sample_pipeline.id}
- ${datadog_logs_integration_pipeline.python.id}
Create LogsPipelineOrder Resource
new LogsPipelineOrder(name: string, args: LogsPipelineOrderArgs, opts?: CustomResourceOptions);
@overload
def LogsPipelineOrder(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
pipelines: Optional[Sequence[str]] = None)
@overload
def LogsPipelineOrder(resource_name: str,
args: LogsPipelineOrderArgs,
opts: Optional[ResourceOptions] = None)
func NewLogsPipelineOrder(ctx *Context, name string, args LogsPipelineOrderArgs, opts ...ResourceOption) (*LogsPipelineOrder, error)
public LogsPipelineOrder(string name, LogsPipelineOrderArgs args, CustomResourceOptions? opts = null)
public LogsPipelineOrder(String name, LogsPipelineOrderArgs args)
public LogsPipelineOrder(String name, LogsPipelineOrderArgs args, CustomResourceOptions options)
type: datadog:LogsPipelineOrder
properties: # The arguments to resource properties.
options: # 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.
- resource_name str
- The unique name of the resource.
- args LogsPipelineOrderArgs
- 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 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.
- name String
- The unique name of the resource.
- args LogsPipelineOrderArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The LogsPipelineOrder resource accepts the following input properties:
- Name string
The name attribute in the resource
datadog.LogsPipelineOrder
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.LogsPipelineOrder
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.LogsPipelineOrder
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.LogsPipelineOrder
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.LogsPipelineOrder
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.
- name String
The name attribute in the resource
datadog.LogsPipelineOrder
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.
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 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 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)
public static LogsPipelineOrder get(String name, Output<String> id, LogsPipelineOrderState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Name string
The name attribute in the resource
datadog.LogsPipelineOrder
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.LogsPipelineOrder
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.LogsPipelineOrder
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.LogsPipelineOrder
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.LogsPipelineOrder
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.
- name String
The name attribute in the resource
datadog.LogsPipelineOrder
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.
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
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
datadog
Terraform Provider.