1. Packages
  2. New Relic
New Relic v5.33.0 published on Thursday, Sep 26, 2024 by Pulumi

New Relic

newrelic logo
New Relic v5.33.0 published on Thursday, Sep 26, 2024 by Pulumi

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

    Example

    const newrelic = require("@pulumi/newrelic")
    
    const policy = new newrelic.AlertPolicy("my-policy");
    
    import * as newrelic from "@pulumi/newrelic";
    
    const policy = new newrelic.AlertPolicy("my-policy");
    
    import pulumi_newrelic as newrelic
    
    policy = newrelic.AlertPolicy("my-policy")
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	newrelic "github.com/pulumi/pulumi-newrelic/sdk/v4/go/newrelic"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		policy, err := newrelic.NewAlertPolicy(ctx, "my-policy", &newrelic.AlertPolicyArgs{})
    		if err != nil {
    			return err
    		}
    
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Threading.Tasks;
    using Pulumi;
    using Pulumi.Newrelic;
    
    class Program
    {
        static Task Main() =>
            Deployment.Run(() => {
                var policy = new AlertPolicy("my-policy");
            });
    }
    
    newrelic logo
    New Relic v5.33.0 published on Thursday, Sep 26, 2024 by Pulumi