import * as pulumi from "@pulumi/pulumi";
/**
* Use this resource to create and manage a New Relic Pipeline Cloud Rule.
*
* > **NOTE:** **Starting v3.68.0 of the New Relic Terraform Provider**, Pipeline Cloud Rules can be managed using the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource. This resource is the designated replacement for the now end-of-life [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) resource, which reached its end-of-life on August 31, 2026 and will be removed from the provider in an upcoming release.
If you are currently using the [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) resource, please migrate to [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) at the earliest. Refer to the [Drop Rules EOL Migration Guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for step-by-step instructions.
*
* ## Example Usage
*
* ```typescript
* 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
*
* Pipeline Cloud Rules can be imported using the `id`. For example:
*
* ```sh
* $ pulumi import newrelic:index/pipelineCloudRule:PipelineCloudRule foo
* ```
*
* > **NOTE:** If you'd like to import a `newrelic.PipelineCloudRule` resource corresponding to an existing `newrelic.NrqlDropRule` resource in your configuration in light of the aforementioned EOL, please head over to the instructions in our Drop Rules EOL Migration Guide.
*/
export declare class PipelineCloudRule extends pulumi.CustomResource {
/**
* Get an existing PipelineCloudRule resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input, state?: PipelineCloudRuleState, opts?: pulumi.CustomResourceOptions): PipelineCloudRule;
/**
* Returns true if the given object is an instance of PipelineCloudRule. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is PipelineCloudRule;
/**
* The account ID where the Pipeline Cloud Rule will be created.
*/
readonly accountId: pulumi.Output;
/**
* Additional information about the rule.
*/
readonly description: pulumi.Output;
/**
* The name of the rule. This must be unique within an account.
*/
readonly name: pulumi.Output;
/**
* The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
*/
readonly nrql: pulumi.Output;
/**
* Create a PipelineCloudRule resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: PipelineCloudRuleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering PipelineCloudRule resources.
*/
export interface PipelineCloudRuleState {
/**
* The account ID where the Pipeline Cloud Rule will be created.
*/
accountId?: pulumi.Input;
/**
* Additional information about the rule.
*/
description?: pulumi.Input;
/**
* The name of the rule. This must be unique within an account.
*/
name?: pulumi.Input;
/**
* The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
*/
nrql?: pulumi.Input;
}
/**
* The set of arguments for constructing a PipelineCloudRule resource.
*/
export interface PipelineCloudRuleArgs {
/**
* The account ID where the Pipeline Cloud Rule will be created.
*/
accountId?: pulumi.Input;
/**
* Additional information about the rule.
*/
description?: pulumi.Input;
/**
* The name of the rule. This must be unique within an account.
*/
name?: pulumi.Input;
/**
* The NRQL query that defines the data to be processed by this Pipeline Cloud Rule.
*/
nrql: pulumi.Input;
}
//# sourceMappingURL=pipelineCloudRule.d.ts.map