import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Use this resource to create, update and delete New Relic Obfuscation Rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const bar = new newrelic.ObfuscationExpression("bar", { * name: "expressionName", * description: "description of the expression", * regex: "(^http)", * }); * const foo = new newrelic.ObfuscationRule("foo", { * name: "ruleName", * description: "description of the rule", * filter: "hostStatus=running", * enabled: true, * actions: [{ * attributes: ["message"], * expressionId: bar.id, * method: "MASK", * }], * }); * ``` * * ## Import * * New Relic obfuscation rule can be imported using the rule ID, e.g. * * ```sh * $ pulumi import newrelic:index/obfuscationRule:ObfuscationRule foo 34567 * ``` */ export declare class ObfuscationRule extends pulumi.CustomResource { /** * Get an existing ObfuscationRule 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?: ObfuscationRuleState, opts?: pulumi.CustomResourceOptions): ObfuscationRule; /** * Returns true if the given object is an instance of ObfuscationRule. 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 ObfuscationRule; /** * The account id associated with the obfuscation rule. */ readonly accountId: pulumi.Output; /** * Actions for the rule. The actions will be applied in the order specified by this list. */ readonly actions: pulumi.Output; /** * Description of rule. */ readonly description: pulumi.Output; /** * Whether the rule should be applied or not to incoming data. */ readonly enabled: pulumi.Output; /** * NRQL for determining whether a given log record should have obfuscation actions applied. */ readonly filter: pulumi.Output; /** * Name of rule. */ readonly name: pulumi.Output; /** * Create a ObfuscationRule 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: ObfuscationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ObfuscationRule resources. */ export interface ObfuscationRuleState { /** * The account id associated with the obfuscation rule. */ accountId?: pulumi.Input; /** * Actions for the rule. The actions will be applied in the order specified by this list. */ actions?: pulumi.Input[] | undefined>; /** * Description of rule. */ description?: pulumi.Input; /** * Whether the rule should be applied or not to incoming data. */ enabled?: pulumi.Input; /** * NRQL for determining whether a given log record should have obfuscation actions applied. */ filter?: pulumi.Input; /** * Name of rule. */ name?: pulumi.Input; } /** * The set of arguments for constructing a ObfuscationRule resource. */ export interface ObfuscationRuleArgs { /** * The account id associated with the obfuscation rule. */ accountId?: pulumi.Input; /** * Actions for the rule. The actions will be applied in the order specified by this list. */ actions: pulumi.Input[]>; /** * Description of rule. */ description?: pulumi.Input; /** * Whether the rule should be applied or not to incoming data. */ enabled: pulumi.Input; /** * NRQL for determining whether a given log record should have obfuscation actions applied. */ filter: pulumi.Input; /** * Name of rule. */ name?: pulumi.Input; } //# sourceMappingURL=obfuscationRule.d.ts.map