1. Packages
  2. Datadog
Datadog v4.25.1 published on Wednesday, Feb 14, 2024 by Pulumi

Datadog

datadog logo
Datadog v4.25.1 published on Wednesday, Feb 14, 2024 by Pulumi

    The Datadog provider for Pulumi can be used to provision any of the cloud resources available in Datadog. The Datadog provider must be configured with credentials to deploy and update resources in Datadog.

    Example

    const datadog = require("@pulumi/datadog")
    
    const user = new datadog.User("my-user", {
      email: "new@example.com",
      name: "New User",
    });
    
    import * as datadog from "@pulumi/datadog";
    
    const user = new datadog.User("my-policy", {
      email: "new@example.com",
      handle: "new@example.com",
      name: "New User",
    });
    
    import pulumi_datadog as datadog
    
    user = datadog.User("my-policy",
      email="new@example.com",
      handle="new@example.com",
      name="New User",
    )
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	datadog "github.com/pulumi/pulumi-datadog/sdk/v3/go/datadog"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		user, err := datadog.NewUser(ctx, "my-user", &datadog.UserArgs{
    			Email:  pulumi.String("new@example.com"),
    			Handle: pulumi.String("new@example.com"),
    			Name:   pulumi.String("New User"),
    		})
    		if err != nil {
    			return err
    		}
    
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Threading.Tasks;
    using Pulumi;
    using Pulumi.Datadog;
    
    await Deployment.RunAsync(() =>
    {
      var user = new User("my-user", new UserArgs
      {
          Name = "New User",
          Email = "new@example.com",
          Handle = "new@example.com"
      });
    });
    
    datadog logo
    Datadog v4.25.1 published on Wednesday, Feb 14, 2024 by Pulumi