1. Packages
  2. Newrelic Provider
  3. API Docs
  4. PipelineCloudRule
New Relic v5.53.0 published on Wednesday, Sep 24, 2025 by Pulumi

newrelic.PipelineCloudRule

Explore with Pulumi AI

newrelic logo
New Relic v5.53.0 published on Wednesday, Sep 24, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const foo = new newrelic.PipelineCloudRule("foo", {
        accountId: "1000100",
        name: "Test Pipeline Cloud Rule",
        description: "This rule deletes all DEBUG logs from the dev environment.",
        nrql: "DELETE FROM Log WHERE logLevel = 'DEBUG' AND environment = 'dev'",
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    foo = newrelic.PipelineCloudRule("foo",
        account_id="1000100",
        name="Test Pipeline Cloud Rule",
        description="This rule deletes all DEBUG logs from the dev environment.",
        nrql="DELETE FROM Log WHERE logLevel = 'DEBUG' AND environment = 'dev'")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewPipelineCloudRule(ctx, "foo", &newrelic.PipelineCloudRuleArgs{
    			AccountId:   pulumi.String("1000100"),
    			Name:        pulumi.String("Test Pipeline Cloud Rule"),
    			Description: pulumi.String("This rule deletes all DEBUG logs from the dev environment."),
    			Nrql:        pulumi.String("DELETE FROM Log WHERE logLevel = 'DEBUG' AND environment = 'dev'"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new NewRelic.PipelineCloudRule("foo", new()
        {
            AccountId = "1000100",
            Name = "Test Pipeline Cloud Rule",
            Description = "This rule deletes all DEBUG logs from the dev environment.",
            Nrql = "DELETE FROM Log WHERE logLevel = 'DEBUG' AND environment = 'dev'",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.PipelineCloudRule;
    import com.pulumi.newrelic.PipelineCloudRuleArgs;
    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 foo = new PipelineCloudRule("foo", PipelineCloudRuleArgs.builder()
                .accountId("1000100")
                .name("Test Pipeline Cloud Rule")
                .description("This rule deletes all DEBUG logs from the dev environment.")
                .nrql("DELETE FROM Log WHERE logLevel = 'DEBUG' AND environment = 'dev'")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: newrelic:PipelineCloudRule
        properties:
          accountId: 1.0001e+06
          name: Test Pipeline Cloud Rule
          description: This rule deletes all DEBUG logs from the dev environment.
          nrql: DELETE FROM Log WHERE logLevel = 'DEBUG' AND environment = 'dev'
    

    Create PipelineCloudRule Resource

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

    Constructor syntax

    new PipelineCloudRule(name: string, args: PipelineCloudRuleArgs, opts?: CustomResourceOptions);
    @overload
    def PipelineCloudRule(resource_name: str,
                          args: PipelineCloudRuleArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def PipelineCloudRule(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          nrql: Optional[str] = None,
                          account_id: Optional[str] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None)
    func NewPipelineCloudRule(ctx *Context, name string, args PipelineCloudRuleArgs, opts ...ResourceOption) (*PipelineCloudRule, error)
    public PipelineCloudRule(string name, PipelineCloudRuleArgs args, CustomResourceOptions? opts = null)
    public PipelineCloudRule(String name, PipelineCloudRuleArgs args)
    public PipelineCloudRule(String name, PipelineCloudRuleArgs args, CustomResourceOptions options)
    
    type: newrelic:PipelineCloudRule
    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 PipelineCloudRuleArgs
    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 PipelineCloudRuleArgs
    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 PipelineCloudRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PipelineCloudRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PipelineCloudRuleArgs
    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 pipelineCloudRuleResource = new NewRelic.PipelineCloudRule("pipelineCloudRuleResource", new()
    {
        Nrql = "string",
        AccountId = "string",
        Description = "string",
        Name = "string",
    });
    
    example, err := newrelic.NewPipelineCloudRule(ctx, "pipelineCloudRuleResource", &newrelic.PipelineCloudRuleArgs{
    	Nrql:        pulumi.String("string"),
    	AccountId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var pipelineCloudRuleResource = new PipelineCloudRule("pipelineCloudRuleResource", PipelineCloudRuleArgs.builder()
        .nrql("string")
        .accountId("string")
        .description("string")
        .name("string")
        .build());
    
    pipeline_cloud_rule_resource = newrelic.PipelineCloudRule("pipelineCloudRuleResource",
        nrql="string",
        account_id="string",
        description="string",
        name="string")
    
    const pipelineCloudRuleResource = new newrelic.PipelineCloudRule("pipelineCloudRuleResource", {
        nrql: "string",
        accountId: "string",
        description: "string",
        name: "string",
    });
    
    type: newrelic:PipelineCloudRule
    properties:
        accountId: string
        description: string
        name: string
        nrql: string
    

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

    Nrql string
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    AccountId string
    The account ID where the Pipeline Cloud Rule will be created.
    Description string
    Additional information about the rule.
    Name string
    The name of the rule. This must be unique within an account.
    Nrql string
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    AccountId string
    The account ID where the Pipeline Cloud Rule will be created.
    Description string
    Additional information about the rule.
    Name string
    The name of the rule. This must be unique within an account.
    nrql String
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    accountId String
    The account ID where the Pipeline Cloud Rule will be created.
    description String
    Additional information about the rule.
    name String
    The name of the rule. This must be unique within an account.
    nrql string
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    accountId string
    The account ID where the Pipeline Cloud Rule will be created.
    description string
    Additional information about the rule.
    name string
    The name of the rule. This must be unique within an account.
    nrql str
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    account_id str
    The account ID where the Pipeline Cloud Rule will be created.
    description str
    Additional information about the rule.
    name str
    The name of the rule. This must be unique within an account.
    nrql String
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    accountId String
    The account ID where the Pipeline Cloud Rule will be created.
    description String
    Additional information about the rule.
    name String
    The name of the rule. This must be unique within an account.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PipelineCloudRule 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 PipelineCloudRule Resource

    Get an existing PipelineCloudRule 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?: PipelineCloudRuleState, opts?: CustomResourceOptions): PipelineCloudRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            nrql: Optional[str] = None) -> PipelineCloudRule
    func GetPipelineCloudRule(ctx *Context, name string, id IDInput, state *PipelineCloudRuleState, opts ...ResourceOption) (*PipelineCloudRule, error)
    public static PipelineCloudRule Get(string name, Input<string> id, PipelineCloudRuleState? state, CustomResourceOptions? opts = null)
    public static PipelineCloudRule get(String name, Output<String> id, PipelineCloudRuleState state, CustomResourceOptions options)
    resources:  _:    type: newrelic:PipelineCloudRule    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:
    AccountId string
    The account ID where the Pipeline Cloud Rule will be created.
    Description string
    Additional information about the rule.
    Name string
    The name of the rule. This must be unique within an account.
    Nrql string
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    AccountId string
    The account ID where the Pipeline Cloud Rule will be created.
    Description string
    Additional information about the rule.
    Name string
    The name of the rule. This must be unique within an account.
    Nrql string
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    accountId String
    The account ID where the Pipeline Cloud Rule will be created.
    description String
    Additional information about the rule.
    name String
    The name of the rule. This must be unique within an account.
    nrql String
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    accountId string
    The account ID where the Pipeline Cloud Rule will be created.
    description string
    Additional information about the rule.
    name string
    The name of the rule. This must be unique within an account.
    nrql string
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    account_id str
    The account ID where the Pipeline Cloud Rule will be created.
    description str
    Additional information about the rule.
    name str
    The name of the rule. This must be unique within an account.
    nrql str
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
    accountId String
    The account ID where the Pipeline Cloud Rule will be created.
    description String
    Additional information about the rule.
    name String
    The name of the rule. This must be unique within an account.
    nrql String
    The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.

    Import

    Pipeline Cloud Rules can be imported using the id. For example:

    bash

    $ pulumi import newrelic:index/pipelineCloudRule:PipelineCloudRule foo <id>
    

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

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo
    New Relic v5.53.0 published on Wednesday, Sep 24, 2025 by Pulumi