import * as pulumi from "@pulumi/pulumi"; /** * Use this resource to create, update and delete New Relic Data partition rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = new newrelic.DataPartitionRule("foo", { * description: "description", * enabled: true, * nrql: "logtype='node'", * retentionPolicy: "STANDARD", * targetDataPartition: "Log_name", * }); * ``` * * ## Additional Information * * More details about the data partition can be found [here](https://docs.newrelic.com/docs/logs/ui-data/data-partitions/) * * ## Import * * New Relic data partition rule can be imported using the rule ID, e.g. * * ```sh * $ pulumi import newrelic:index/dataPartitionRule:DataPartitionRule foo * ``` */ export declare class DataPartitionRule extends pulumi.CustomResource { /** * Get an existing DataPartitionRule 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?: DataPartitionRuleState, opts?: pulumi.CustomResourceOptions): DataPartitionRule; /** * Returns true if the given object is an instance of DataPartitionRule. 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 DataPartitionRule; /** * The account id associated with the data partition rule. */ readonly accountId: pulumi.Output; /** * Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field. */ readonly deleted: pulumi.Output; /** * The description of the data partition rule. */ readonly description: pulumi.Output; /** * Whether or not this data partition rule is enabled. */ readonly enabled: pulumi.Output; /** * The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition. */ readonly nrql: pulumi.Output; /** * The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`. */ readonly retentionPolicy: pulumi.Output; /** * The name of the data partition where logs will be allocated once the rule is enabled. */ readonly targetDataPartition: pulumi.Output; /** * Create a DataPartitionRule 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: DataPartitionRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DataPartitionRule resources. */ export interface DataPartitionRuleState { /** * The account id associated with the data partition rule. */ accountId?: pulumi.Input; /** * Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field. */ deleted?: pulumi.Input; /** * The description of the data partition rule. */ description?: pulumi.Input; /** * Whether or not this data partition rule is enabled. */ enabled?: pulumi.Input; /** * The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition. */ nrql?: pulumi.Input; /** * The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`. */ retentionPolicy?: pulumi.Input; /** * The name of the data partition where logs will be allocated once the rule is enabled. */ targetDataPartition?: pulumi.Input; } /** * The set of arguments for constructing a DataPartitionRule resource. */ export interface DataPartitionRuleArgs { /** * The account id associated with the data partition rule. */ accountId?: pulumi.Input; /** * The description of the data partition rule. */ description?: pulumi.Input; /** * Whether or not this data partition rule is enabled. */ enabled: pulumi.Input; /** * The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition. */ nrql: pulumi.Input; /** * The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`. */ retentionPolicy: pulumi.Input; /** * The name of the data partition where logs will be allocated once the rule is enabled. */ targetDataPartition: pulumi.Input; } //# sourceMappingURL=dataPartitionRule.d.ts.map