1. Packages
  2. Lacework Provider
  3. API Docs
  4. AlertChannelDatadog
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

lacework.AlertChannelDatadog

Explore with Pulumi AI

lacework logo
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

    The Datadog alert channel provides a unified view of your metrics, logs, and performance data combined with your cloud security data.

    To find more information about the Datadog alert channel integration, see the Lacework support documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as lacework from "@pulumi/lacework";
    
    const opsCritical = new lacework.AlertChannelDatadog("opsCritical", {
        apiKey: "datadog-key",
        datadogService: "Events Summary",
        datadogSite: "eu",
    });
    
    import pulumi
    import pulumi_lacework as lacework
    
    ops_critical = lacework.AlertChannelDatadog("opsCritical",
        api_key="datadog-key",
        datadog_service="Events Summary",
        datadog_site="eu")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := lacework.NewAlertChannelDatadog(ctx, "opsCritical", &lacework.AlertChannelDatadogArgs{
    			ApiKey:         pulumi.String("datadog-key"),
    			DatadogService: pulumi.String("Events Summary"),
    			DatadogSite:    pulumi.String("eu"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Lacework = Pulumi.Lacework;
    
    return await Deployment.RunAsync(() => 
    {
        var opsCritical = new Lacework.AlertChannelDatadog("opsCritical", new()
        {
            ApiKey = "datadog-key",
            DatadogService = "Events Summary",
            DatadogSite = "eu",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.lacework.AlertChannelDatadog;
    import com.pulumi.lacework.AlertChannelDatadogArgs;
    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 opsCritical = new AlertChannelDatadog("opsCritical", AlertChannelDatadogArgs.builder()
                .apiKey("datadog-key")
                .datadogService("Events Summary")
                .datadogSite("eu")
                .build());
    
        }
    }
    
    resources:
      opsCritical:
        type: lacework:AlertChannelDatadog
        properties:
          apiKey: datadog-key
          datadogService: Events Summary
          datadogSite: eu
    

    Create AlertChannelDatadog Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AlertChannelDatadog(name: string, args: AlertChannelDatadogArgs, opts?: CustomResourceOptions);
    @overload
    def AlertChannelDatadog(resource_name: str,
                            args: AlertChannelDatadogArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertChannelDatadog(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            api_key: Optional[str] = None,
                            alert_channel_datadog_id: Optional[str] = None,
                            datadog_service: Optional[str] = None,
                            datadog_site: Optional[str] = None,
                            enabled: Optional[bool] = None,
                            name: Optional[str] = None,
                            test_integration: Optional[bool] = None)
    func NewAlertChannelDatadog(ctx *Context, name string, args AlertChannelDatadogArgs, opts ...ResourceOption) (*AlertChannelDatadog, error)
    public AlertChannelDatadog(string name, AlertChannelDatadogArgs args, CustomResourceOptions? opts = null)
    public AlertChannelDatadog(String name, AlertChannelDatadogArgs args)
    public AlertChannelDatadog(String name, AlertChannelDatadogArgs args, CustomResourceOptions options)
    
    type: lacework:AlertChannelDatadog
    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 AlertChannelDatadogArgs
    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 AlertChannelDatadogArgs
    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 AlertChannelDatadogArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertChannelDatadogArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertChannelDatadogArgs
    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 alertChannelDatadogResource = new Lacework.AlertChannelDatadog("alertChannelDatadogResource", new()
    {
        ApiKey = "string",
        AlertChannelDatadogId = "string",
        DatadogService = "string",
        DatadogSite = "string",
        Enabled = false,
        Name = "string",
        TestIntegration = false,
    });
    
    example, err := lacework.NewAlertChannelDatadog(ctx, "alertChannelDatadogResource", &lacework.AlertChannelDatadogArgs{
    	ApiKey:                pulumi.String("string"),
    	AlertChannelDatadogId: pulumi.String("string"),
    	DatadogService:        pulumi.String("string"),
    	DatadogSite:           pulumi.String("string"),
    	Enabled:               pulumi.Bool(false),
    	Name:                  pulumi.String("string"),
    	TestIntegration:       pulumi.Bool(false),
    })
    
    var alertChannelDatadogResource = new AlertChannelDatadog("alertChannelDatadogResource", AlertChannelDatadogArgs.builder()
        .apiKey("string")
        .alertChannelDatadogId("string")
        .datadogService("string")
        .datadogSite("string")
        .enabled(false)
        .name("string")
        .testIntegration(false)
        .build());
    
    alert_channel_datadog_resource = lacework.AlertChannelDatadog("alertChannelDatadogResource",
        api_key="string",
        alert_channel_datadog_id="string",
        datadog_service="string",
        datadog_site="string",
        enabled=False,
        name="string",
        test_integration=False)
    
    const alertChannelDatadogResource = new lacework.AlertChannelDatadog("alertChannelDatadogResource", {
        apiKey: "string",
        alertChannelDatadogId: "string",
        datadogService: "string",
        datadogSite: "string",
        enabled: false,
        name: "string",
        testIntegration: false,
    });
    
    type: lacework:AlertChannelDatadog
    properties:
        alertChannelDatadogId: string
        apiKey: string
        datadogService: string
        datadogSite: string
        enabled: false
        name: string
        testIntegration: false
    

    AlertChannelDatadog 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 AlertChannelDatadog resource accepts the following input properties:

    ApiKey string
    The Datadog api key required to submit metrics and events to Datadog
    AlertChannelDatadogId string
    DatadogService string
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    DatadogSite string
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    Enabled bool
    The state of the external integration. Defaults to true.
    Name string
    The Alert Channel integration name.
    TestIntegration bool
    Whether to test the integration of an alert channel upon creation and modifications
    ApiKey string
    The Datadog api key required to submit metrics and events to Datadog
    AlertChannelDatadogId string
    DatadogService string
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    DatadogSite string
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    Enabled bool
    The state of the external integration. Defaults to true.
    Name string
    The Alert Channel integration name.
    TestIntegration bool
    Whether to test the integration of an alert channel upon creation and modifications
    apiKey String
    The Datadog api key required to submit metrics and events to Datadog
    alertChannelDatadogId String
    datadogService String
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    datadogSite String
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    enabled Boolean
    The state of the external integration. Defaults to true.
    name String
    The Alert Channel integration name.
    testIntegration Boolean
    Whether to test the integration of an alert channel upon creation and modifications
    apiKey string
    The Datadog api key required to submit metrics and events to Datadog
    alertChannelDatadogId string
    datadogService string
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    datadogSite string
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    enabled boolean
    The state of the external integration. Defaults to true.
    name string
    The Alert Channel integration name.
    testIntegration boolean
    Whether to test the integration of an alert channel upon creation and modifications
    api_key str
    The Datadog api key required to submit metrics and events to Datadog
    alert_channel_datadog_id str
    datadog_service str
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    datadog_site str
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    enabled bool
    The state of the external integration. Defaults to true.
    name str
    The Alert Channel integration name.
    test_integration bool
    Whether to test the integration of an alert channel upon creation and modifications
    apiKey String
    The Datadog api key required to submit metrics and events to Datadog
    alertChannelDatadogId String
    datadogService String
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    datadogSite String
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    enabled Boolean
    The state of the external integration. Defaults to true.
    name String
    The Alert Channel integration name.
    testIntegration Boolean
    Whether to test the integration of an alert channel upon creation and modifications

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AlertChannelDatadog resource produces the following output properties:

    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    IntgGuid string
    OrgLevel bool
    TypeName string
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    IntgGuid string
    OrgLevel bool
    TypeName string
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    id String
    The provider-assigned unique ID for this managed resource.
    intgGuid String
    orgLevel Boolean
    typeName String
    createdOrUpdatedBy string
    createdOrUpdatedTime string
    id string
    The provider-assigned unique ID for this managed resource.
    intgGuid string
    orgLevel boolean
    typeName string
    created_or_updated_by str
    created_or_updated_time str
    id str
    The provider-assigned unique ID for this managed resource.
    intg_guid str
    org_level bool
    type_name str
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    id String
    The provider-assigned unique ID for this managed resource.
    intgGuid String
    orgLevel Boolean
    typeName String

    Look up Existing AlertChannelDatadog Resource

    Get an existing AlertChannelDatadog 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?: AlertChannelDatadogState, opts?: CustomResourceOptions): AlertChannelDatadog
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_channel_datadog_id: Optional[str] = None,
            api_key: Optional[str] = None,
            created_or_updated_by: Optional[str] = None,
            created_or_updated_time: Optional[str] = None,
            datadog_service: Optional[str] = None,
            datadog_site: Optional[str] = None,
            enabled: Optional[bool] = None,
            intg_guid: Optional[str] = None,
            name: Optional[str] = None,
            org_level: Optional[bool] = None,
            test_integration: Optional[bool] = None,
            type_name: Optional[str] = None) -> AlertChannelDatadog
    func GetAlertChannelDatadog(ctx *Context, name string, id IDInput, state *AlertChannelDatadogState, opts ...ResourceOption) (*AlertChannelDatadog, error)
    public static AlertChannelDatadog Get(string name, Input<string> id, AlertChannelDatadogState? state, CustomResourceOptions? opts = null)
    public static AlertChannelDatadog get(String name, Output<String> id, AlertChannelDatadogState state, CustomResourceOptions options)
    resources:  _:    type: lacework:AlertChannelDatadog    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.
    The following state arguments are supported:
    AlertChannelDatadogId string
    ApiKey string
    The Datadog api key required to submit metrics and events to Datadog
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    DatadogService string
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    DatadogSite string
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntgGuid string
    Name string
    The Alert Channel integration name.
    OrgLevel bool
    TestIntegration bool
    Whether to test the integration of an alert channel upon creation and modifications
    TypeName string
    AlertChannelDatadogId string
    ApiKey string
    The Datadog api key required to submit metrics and events to Datadog
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    DatadogService string
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    DatadogSite string
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntgGuid string
    Name string
    The Alert Channel integration name.
    OrgLevel bool
    TestIntegration bool
    Whether to test the integration of an alert channel upon creation and modifications
    TypeName string
    alertChannelDatadogId String
    apiKey String
    The Datadog api key required to submit metrics and events to Datadog
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    datadogService String
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    datadogSite String
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    enabled Boolean
    The state of the external integration. Defaults to true.
    intgGuid String
    name String
    The Alert Channel integration name.
    orgLevel Boolean
    testIntegration Boolean
    Whether to test the integration of an alert channel upon creation and modifications
    typeName String
    alertChannelDatadogId string
    apiKey string
    The Datadog api key required to submit metrics and events to Datadog
    createdOrUpdatedBy string
    createdOrUpdatedTime string
    datadogService string
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    datadogSite string
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    enabled boolean
    The state of the external integration. Defaults to true.
    intgGuid string
    name string
    The Alert Channel integration name.
    orgLevel boolean
    testIntegration boolean
    Whether to test the integration of an alert channel upon creation and modifications
    typeName string
    alert_channel_datadog_id str
    api_key str
    The Datadog api key required to submit metrics and events to Datadog
    created_or_updated_by str
    created_or_updated_time str
    datadog_service str
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    datadog_site str
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    enabled bool
    The state of the external integration. Defaults to true.
    intg_guid str
    name str
    The Alert Channel integration name.
    org_level bool
    test_integration bool
    Whether to test the integration of an alert channel upon creation and modifications
    type_name str
    alertChannelDatadogId String
    apiKey String
    The Datadog api key required to submit metrics and events to Datadog
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    datadogService String
    The level of detail of logs or event stream. Logs Detail, Logs Summary, or Events Summary. Defaults to Logs Detail.
    datadogSite String
    Where to store your logs, either the US or Europe. Must be one of com or eu. Defaults to com.
    enabled Boolean
    The state of the external integration. Defaults to true.
    intgGuid String
    name String
    The Alert Channel integration name.
    orgLevel Boolean
    testIntegration Boolean
    Whether to test the integration of an alert channel upon creation and modifications
    typeName String

    Import

    A Lacework Datadog Alert Channel integration can be imported using a INT_GUID, e.g.

    $ pulumi import lacework:index/alertChannelDatadog:AlertChannelDatadog ops_critical EXAMPLE_1234BAE1E42182964D23973F44CFEA3C4AB63B99E9A1EC5
    

    -> Note: To retrieve the INT_GUID from existing integrations in your account, use the Lacework CLI command lacework alert-channel list. To install this tool follow this documentation.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    lacework lacework/terraform-provider-lacework
    License
    Notes
    This Pulumi package is based on the lacework Terraform Provider.
    lacework logo
    lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework