published on Friday, Sep 11, 2026 by Pulumi
published on Friday, Sep 11, 2026 by Pulumi
This resource is no longer supported. The
newrelic.NrqlDropRuleresource 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 thenewrelic.PipelineCloudRuleresource. Fornewrelic.NrqlDropRuleresources withaction = "dropAttributesFromMetricAggregates", the recommended alternative is thenewrelic.MetricPruningRuleresource.
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.
- 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.
- 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.
- 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.
- 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.
- account
Id 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.
- account
Id 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.
- Pipeline
Cloud stringRule Entity Id - 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.
- Pipeline
Cloud stringRule Entity Id - 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.
- pipeline_
cloud_ stringrule_ entity_ id - 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.
- pipeline
Cloud StringRule Entity Id - 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.
- pipeline
Cloud stringRule Entity Id - 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 str
- The provider-assigned unique ID for this managed resource.
- pipeline_
cloud_ strrule_ entity_ id - 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.
- pipeline
Cloud StringRule Entity Id - 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.
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) -> NrqlDropRulefunc 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.
- 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 stringRule Entity Id - 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.
- 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 stringRule Entity Id - 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.
- 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_ stringrule_ entity_ id - 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.
- 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 StringRule Entity Id - 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.
- 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 stringRule Entity Id - 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.
- 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_ strrule_ entity_ id - 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.
- 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 StringRule Entity Id - 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.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelicTerraform Provider.
published on Friday, Sep 11, 2026 by Pulumi