NrqlDropRule

Import

New Relic NRQL drop rules can be imported using a concatenated string of the format

<account_id>:<rule_id>, e.g. bash

 $ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567

Create a NrqlDropRule Resource

new NrqlDropRule(name: string, args: NrqlDropRuleArgs, opts?: CustomResourceOptions);
@overload
def NrqlDropRule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 account_id: Optional[int] = None,
                 action: Optional[str] = None,
                 description: Optional[str] = None,
                 nrql: Optional[str] = None)
@overload
def NrqlDropRule(resource_name: str,
                 args: NrqlDropRuleArgs,
                 opts: Optional[ResourceOptions] = None)
func NewNrqlDropRule(ctx *Context, name string, args NrqlDropRuleArgs, opts ...ResourceOption) (*NrqlDropRule, error)
public NrqlDropRule(string name, NrqlDropRuleArgs args, CustomResourceOptions? opts = null)
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.

NrqlDropRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The NrqlDropRule resource accepts the following input properties:

Action string
An action type specifying how to apply the NRQL string (either drop_data or drop_attributes).
Nrql string
A NRQL string that specifies what data types to drop.
AccountId int
Account where the drop rule will be put. Defaults to the account associated with the API key used.
Description string
The description of the drop rule.
Action string
An action type specifying how to apply the NRQL string (either drop_data or drop_attributes).
Nrql string
A NRQL string that specifies what data types to drop.
AccountId int
Account where the drop rule will be put. Defaults to the account associated with the API key used.
Description string
The description of the drop rule.
action string
An action type specifying how to apply the NRQL string (either drop_data or drop_attributes).
nrql string
A NRQL string that specifies what data types to drop.
accountId number
Account where the drop rule will be put. Defaults to the account associated with the API key used.
description string
The description of the drop rule.
action str
An action type specifying how to apply the NRQL string (either drop_data or drop_attributes).
nrql str
A NRQL string that specifies what data types to drop.
account_id int
Account where the drop rule will be put. Defaults to the account associated with the API key used.
description str
The description of the drop 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.
RuleId string
The id, uniquely identifying the rule.
Id string
The provider-assigned unique ID for this managed resource.
RuleId string
The id, uniquely identifying the rule.
id string
The provider-assigned unique ID for this managed resource.
ruleId string
The id, uniquely identifying the rule.
id str
The provider-assigned unique ID for this managed resource.
rule_id str
The id, uniquely identifying the rule.

Look up an 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[int] = None,
        action: Optional[str] = None,
        description: Optional[str] = None,
        nrql: Optional[str] = None,
        rule_id: Optional[str] = None) -> NrqlDropRule
func 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)
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.

The following state arguments are supported:

AccountId int
Account where the drop rule will be put. Defaults to the account associated with the API key used.
Action string
An action type specifying how to apply the NRQL string (either drop_data or drop_attributes).
Description string
The description of the drop rule.
Nrql string
A NRQL string that specifies what data types to drop.
RuleId string
The id, uniquely identifying the rule.
AccountId int
Account where the drop rule will be put. Defaults to the account associated with the API key used.
Action string
An action type specifying how to apply the NRQL string (either drop_data or drop_attributes).
Description string
The description of the drop rule.
Nrql string
A NRQL string that specifies what data types to drop.
RuleId string
The id, uniquely identifying the rule.
accountId number
Account where the drop rule will be put. Defaults to the account associated with the API key used.
action string
An action type specifying how to apply the NRQL string (either drop_data or drop_attributes).
description string
The description of the drop rule.
nrql string
A NRQL string that specifies what data types to drop.
ruleId string
The id, uniquely identifying the rule.
account_id int
Account where the drop rule will be put. Defaults to the account associated with the API key used.
action str
An action type specifying how to apply the NRQL string (either drop_data or drop_attributes).
description str
The description of the drop rule.
nrql str
A NRQL string that specifies what data types to drop.
rule_id str
The id, uniquely identifying the rule.

Package Details

Repository
https://github.com/pulumi/pulumi-newrelic
License
Apache-2.0
Notes
This Pulumi package is based on the newrelic Terraform Provider.