1. Registry
  2. Packages
  3. Newrelic Provider
  4. API Docs
  5. NrqlDropRule
Viewing docs for New Relic v5.76.5
published on Friday, Sep 11, 2026 by Pulumi
newrelic logo newrelic logo
Viewing docs for New Relic v5.76.5
published on Friday, Sep 11, 2026 by Pulumi

    This resource is no longer supported. The newrelic.NrqlDropRule resource reached its end-of-life on August 31, 2026 and is no longer functional. It will be removed from the New Relic Terraform Provider in an upcoming release.

    If you are looking for documentation on the arguments, attributes, or usage examples for this resource, please refer to an older release of the New Relic Terraform Provider (v3.97.0 or earlier) in the Terraform Registry release history.

    New Relic has completed the upstream migration of all existing Drop Rules to Pipeline Cloud Rules. To continue managing these rules via Terraform, update your configurations to use the newrelic.PipelineCloudRule resource. For newrelic.NrqlDropRule resources with action = "dropAttributesFromMetricAggregates", the recommended alternative is the newrelic.MetricPruningRule resource.

    Please refer to the Drop Rules EOL Migration Guide for detailed migration instructions.

    Create NrqlDropRule Resource

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

    Constructor syntax

    new NrqlDropRule(name: string, args: NrqlDropRuleArgs, opts?: CustomResourceOptions);
    @overload
    def NrqlDropRule(resource_name: str,
                     args: NrqlDropRuleArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def NrqlDropRule(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     action: Optional[str] = None,
                     nrql: Optional[str] = None,
                     account_id: Optional[str] = None,
                     description: Optional[str] = None)
    func NewNrqlDropRule(ctx *Context, name string, args NrqlDropRuleArgs, opts ...ResourceOption) (*NrqlDropRule, error)
    public NrqlDropRule(string name, NrqlDropRuleArgs args, CustomResourceOptions? opts = null)
    public NrqlDropRule(String name, NrqlDropRuleArgs args)
    public NrqlDropRule(String name, NrqlDropRuleArgs args, CustomResourceOptions options)
    
    type: newrelic:NrqlDropRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "newrelic_nrql_drop_rule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args NrqlDropRuleArgs
    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 NrqlDropRuleArgs
    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 NrqlDropRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NrqlDropRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NrqlDropRuleArgs
    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 nrqlDropRuleResource = new NewRelic.NrqlDropRule("nrqlDropRuleResource", new()
    {
        Action = "string",
        Nrql = "string",
        AccountId = "string",
        Description = "string",
    });
    
    example, err := newrelic.NewNrqlDropRule(ctx, "nrqlDropRuleResource", &newrelic.NrqlDropRuleArgs{
    	Action:      pulumi.String("string"),
    	Nrql:        pulumi.String("string"),
    	AccountId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    resource "newrelic_nrql_drop_rule" "nrqlDropRuleResource" {
      lifecycle {
        create_before_destroy = true
      }
      action      = "string"
      nrql        = "string"
      account_id  = "string"
      description = "string"
    }
    
    var nrqlDropRuleResource = new NrqlDropRule("nrqlDropRuleResource", NrqlDropRuleArgs.builder()
        .action("string")
        .nrql("string")
        .accountId("string")
        .description("string")
        .build());
    
    nrql_drop_rule_resource = newrelic.NrqlDropRule("nrqlDropRuleResource",
        action="string",
        nrql="string",
        account_id="string",
        description="string")
    
    const nrqlDropRuleResource = new newrelic.NrqlDropRule("nrqlDropRuleResource", {
        action: "string",
        nrql: "string",
        accountId: "string",
        description: "string",
    });
    
    type: newrelic:NrqlDropRule
    properties:
        accountId: string
        action: string
        description: string
        nrql: string
    

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

    Action string
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    Nrql string
    Explains which data to apply the drop rule to.
    AccountId string
    Account with the NRQL drop rule will be put.
    Description string
    Provides additional information about the rule.
    Action string
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    Nrql string
    Explains which data to apply the drop rule to.
    AccountId string
    Account with the NRQL drop rule will be put.
    Description string
    Provides additional information about the rule.
    action string
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    nrql string
    Explains which data to apply the drop rule to.
    account_id string
    Account with the NRQL drop rule will be put.
    description string
    Provides additional information about the rule.
    action String
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    nrql String
    Explains which data to apply the drop rule to.
    accountId String
    Account with the NRQL drop rule will be put.
    description String
    Provides additional information about the rule.
    action string
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    nrql string
    Explains which data to apply the drop rule to.
    accountId string
    Account with the NRQL drop rule will be put.
    description string
    Provides additional information about the rule.
    action str
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    nrql str
    Explains which data to apply the drop rule to.
    account_id str
    Account with the NRQL drop rule will be put.
    description str
    Provides additional information about the rule.
    action String
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    nrql String
    Explains which data to apply the drop rule to.
    accountId String
    Account with the NRQL drop rule will be put.
    description String
    Provides additional information about the rule.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PipelineCloudRuleEntityId string
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    RuleId string
    The id, uniquely identifying the rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    PipelineCloudRuleEntityId string
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    RuleId string
    The id, uniquely identifying the rule.
    id string
    The provider-assigned unique ID for this managed resource.
    pipeline_cloud_rule_entity_id string
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    rule_id string
    The id, uniquely identifying the rule.
    id String
    The provider-assigned unique ID for this managed resource.
    pipelineCloudRuleEntityId String
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    ruleId String
    The id, uniquely identifying the rule.
    id string
    The provider-assigned unique ID for this managed resource.
    pipelineCloudRuleEntityId string
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    ruleId string
    The id, uniquely identifying the rule.
    id str
    The provider-assigned unique ID for this managed resource.
    pipeline_cloud_rule_entity_id str
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    rule_id str
    The id, uniquely identifying the rule.
    id String
    The provider-assigned unique ID for this managed resource.
    pipelineCloudRuleEntityId String
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    ruleId String
    The id, uniquely identifying the rule.

    Look up Existing NrqlDropRule Resource

    Get an existing NrqlDropRule 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?: NrqlDropRuleState, opts?: CustomResourceOptions): NrqlDropRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            action: Optional[str] = None,
            description: Optional[str] = None,
            nrql: Optional[str] = None,
            pipeline_cloud_rule_entity_id: Optional[str] = None,
            rule_id: Optional[str] = None) -> NrqlDropRule
    func GetNrqlDropRule(ctx *Context, name string, id IDInput, state *NrqlDropRuleState, opts ...ResourceOption) (*NrqlDropRule, error)
    public static NrqlDropRule Get(string name, Input<string> id, NrqlDropRuleState? state, CustomResourceOptions? opts = null)
    public static NrqlDropRule get(String name, Output<String> id, NrqlDropRuleState state, CustomResourceOptions options)
    resources:  _:    type: newrelic:NrqlDropRule    get:      id: ${id}
    import {
      to = newrelic_nrql_drop_rule.example
      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
    Account with the NRQL drop rule will be put.
    Action string
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    Description string
    Provides additional information about the rule.
    Nrql string
    Explains which data to apply the drop rule to.
    PipelineCloudRuleEntityId string
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    RuleId string
    The id, uniquely identifying the rule.
    AccountId string
    Account with the NRQL drop rule will be put.
    Action string
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    Description string
    Provides additional information about the rule.
    Nrql string
    Explains which data to apply the drop rule to.
    PipelineCloudRuleEntityId string
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    RuleId string
    The id, uniquely identifying the rule.
    account_id string
    Account with the NRQL drop rule will be put.
    action string
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    description string
    Provides additional information about the rule.
    nrql string
    Explains which data to apply the drop rule to.
    pipeline_cloud_rule_entity_id string
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    rule_id string
    The id, uniquely identifying the rule.
    accountId String
    Account with the NRQL drop rule will be put.
    action String
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    description String
    Provides additional information about the rule.
    nrql String
    Explains which data to apply the drop rule to.
    pipelineCloudRuleEntityId String
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    ruleId String
    The id, uniquely identifying the rule.
    accountId string
    Account with the NRQL drop rule will be put.
    action string
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    description string
    Provides additional information about the rule.
    nrql string
    Explains which data to apply the drop rule to.
    pipelineCloudRuleEntityId string
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    ruleId string
    The id, uniquely identifying the rule.
    account_id str
    Account with the NRQL drop rule will be put.
    action str
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    description str
    Provides additional information about the rule.
    nrql str
    Explains which data to apply the drop rule to.
    pipeline_cloud_rule_entity_id str
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    rule_id str
    The id, uniquely identifying the rule.
    accountId String
    Account with the NRQL drop rule will be put.
    action String
    The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
    description String
    Provides additional information about the rule.
    nrql String
    Explains which data to apply the drop rule to.
    pipelineCloudRuleEntityId String
    The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
    ruleId String
    The id, uniquely identifying the rule.

    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 newrelic logo
    Viewing docs for New Relic v5.76.5
    published on Friday, Sep 11, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial