datadog.LogsIntegrationPipeline
Explore with Pulumi AI
Provides a Datadog Logs Pipeline API resource to manage the integrations. Integration pipelines are the pipelines that are automatically installed for your organization when sending the logs with specific sources. You don’t need to maintain or update these types of pipelines. Keeping them as resources, however, allows you to manage the order of your pipelines by referencing them in your datadog.LogsPipelineOrder
resource. If you don’t need the pipeline_order
feature, this resource declaration can be omitted.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const python = new datadog.LogsIntegrationPipeline("python", {isEnabled: true});
import pulumi
import pulumi_datadog as datadog
python = datadog.LogsIntegrationPipeline("python", is_enabled=True)
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.NewLogsIntegrationPipeline(ctx, "python", &datadog.LogsIntegrationPipelineArgs{
IsEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
var python = new Datadog.LogsIntegrationPipeline("python", new()
{
IsEnabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.LogsIntegrationPipeline;
import com.pulumi.datadog.LogsIntegrationPipelineArgs;
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 python = new LogsIntegrationPipeline("python", LogsIntegrationPipelineArgs.builder()
.isEnabled(true)
.build());
}
}
resources:
python:
type: datadog:LogsIntegrationPipeline
properties:
isEnabled: true
Create LogsIntegrationPipeline Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogsIntegrationPipeline(name: string, args?: LogsIntegrationPipelineArgs, opts?: CustomResourceOptions);
@overload
def LogsIntegrationPipeline(resource_name: str,
args: Optional[LogsIntegrationPipelineArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def LogsIntegrationPipeline(resource_name: str,
opts: Optional[ResourceOptions] = None,
is_enabled: Optional[bool] = None)
func NewLogsIntegrationPipeline(ctx *Context, name string, args *LogsIntegrationPipelineArgs, opts ...ResourceOption) (*LogsIntegrationPipeline, error)
public LogsIntegrationPipeline(string name, LogsIntegrationPipelineArgs? args = null, CustomResourceOptions? opts = null)
public LogsIntegrationPipeline(String name, LogsIntegrationPipelineArgs args)
public LogsIntegrationPipeline(String name, LogsIntegrationPipelineArgs args, CustomResourceOptions options)
type: datadog:LogsIntegrationPipeline
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 LogsIntegrationPipelineArgs
- 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 LogsIntegrationPipelineArgs
- 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 LogsIntegrationPipelineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogsIntegrationPipelineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogsIntegrationPipelineArgs
- 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 logsIntegrationPipelineResource = new Datadog.LogsIntegrationPipeline("logsIntegrationPipelineResource", new()
{
IsEnabled = false,
});
example, err := datadog.NewLogsIntegrationPipeline(ctx, "logsIntegrationPipelineResource", &datadog.LogsIntegrationPipelineArgs{
IsEnabled: pulumi.Bool(false),
})
var logsIntegrationPipelineResource = new LogsIntegrationPipeline("logsIntegrationPipelineResource", LogsIntegrationPipelineArgs.builder()
.isEnabled(false)
.build());
logs_integration_pipeline_resource = datadog.LogsIntegrationPipeline("logsIntegrationPipelineResource", is_enabled=False)
const logsIntegrationPipelineResource = new datadog.LogsIntegrationPipeline("logsIntegrationPipelineResource", {isEnabled: false});
type: datadog:LogsIntegrationPipeline
properties:
isEnabled: false
LogsIntegrationPipeline 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 LogsIntegrationPipeline resource accepts the following input properties:
- Is
Enabled bool - Boolean value to enable your pipeline.
- Is
Enabled bool - Boolean value to enable your pipeline.
- is
Enabled Boolean - Boolean value to enable your pipeline.
- is
Enabled boolean - Boolean value to enable your pipeline.
- is_
enabled bool - Boolean value to enable your pipeline.
- is
Enabled Boolean - Boolean value to enable your pipeline.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsIntegrationPipeline 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 LogsIntegrationPipeline Resource
Get an existing LogsIntegrationPipeline 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?: LogsIntegrationPipelineState, opts?: CustomResourceOptions): LogsIntegrationPipeline
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
is_enabled: Optional[bool] = None) -> LogsIntegrationPipeline
func GetLogsIntegrationPipeline(ctx *Context, name string, id IDInput, state *LogsIntegrationPipelineState, opts ...ResourceOption) (*LogsIntegrationPipeline, error)
public static LogsIntegrationPipeline Get(string name, Input<string> id, LogsIntegrationPipelineState? state, CustomResourceOptions? opts = null)
public static LogsIntegrationPipeline get(String name, Output<String> id, LogsIntegrationPipelineState 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.
- Is
Enabled bool - Boolean value to enable your pipeline.
- Is
Enabled bool - Boolean value to enable your pipeline.
- is
Enabled Boolean - Boolean value to enable your pipeline.
- is
Enabled boolean - Boolean value to enable your pipeline.
- is_
enabled bool - Boolean value to enable your pipeline.
- is
Enabled Boolean - Boolean value to enable your pipeline.
Import
To find the pipeline ID, click the “view” button in the UI to open the pipeline details.
The pipeline ID is the last part of the URL.
$ pulumi import datadog:index/logsIntegrationPipeline:LogsIntegrationPipeline name> <pipelineID>
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.