import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a specific Obfuscation Expression in New Relic that already exists. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const expression = newrelic.getObfuscationExpression({ * accountId: "123456", * name: "The expression", * }); * const rule = new newrelic.ObfuscationRule("rule", { * name: "ruleName", * description: "description of the rule", * filter: "hostStatus=running", * enabled: true, * actions: [{ * attributes: ["message"], * expressionId: expression.then(expression => expression.id), * method: "MASK", * }], * }); * ``` */ export declare function getObfuscationExpression(args: GetObfuscationExpressionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getObfuscationExpression. */ export interface GetObfuscationExpressionArgs { /** * The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration. */ accountId?: string; /** * Name of expression. */ name: string; } /** * A collection of values returned by getObfuscationExpression. */ export interface GetObfuscationExpressionResult { readonly accountId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; } /** * Use this data source to get information about a specific Obfuscation Expression in New Relic that already exists. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const expression = newrelic.getObfuscationExpression({ * accountId: "123456", * name: "The expression", * }); * const rule = new newrelic.ObfuscationRule("rule", { * name: "ruleName", * description: "description of the rule", * filter: "hostStatus=running", * enabled: true, * actions: [{ * attributes: ["message"], * expressionId: expression.then(expression => expression.id), * method: "MASK", * }], * }); * ``` */ export declare function getObfuscationExpressionOutput(args: GetObfuscationExpressionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getObfuscationExpression. */ export interface GetObfuscationExpressionOutputArgs { /** * The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration. */ accountId?: pulumi.Input; /** * Name of expression. */ name: pulumi.Input; } //# sourceMappingURL=getObfuscationExpression.d.ts.map