newrelic.NrqlDropRule
Explore with Pulumi AI
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 NrqlDropRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NrqlDropRule(name: string, args: NrqlDropRuleArgs, opts?: CustomResourceOptions);
@overload
def NrqlDropRule(resource_name: str,
args: NrqlDropRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NrqlDropRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
nrql: Optional[str] = None,
account_id: Optional[str] = None,
description: Optional[str] = None)
func NewNrqlDropRule(ctx *Context, name string, args NrqlDropRuleArgs, opts ...ResourceOption) (*NrqlDropRule, error)
public NrqlDropRule(string name, NrqlDropRuleArgs args, CustomResourceOptions? opts = null)
public NrqlDropRule(String name, NrqlDropRuleArgs args)
public NrqlDropRule(String name, NrqlDropRuleArgs args, CustomResourceOptions options)
type: newrelic:NrqlDropRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- name String
- The unique name of the resource.
- args NrqlDropRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var nrqlDropRuleResource = new NewRelic.NrqlDropRule("nrqlDropRuleResource", new()
{
Action = "string",
Nrql = "string",
AccountId = "string",
Description = "string",
});
example, err := newrelic.NewNrqlDropRule(ctx, "nrqlDropRuleResource", &newrelic.NrqlDropRuleArgs{
Action: pulumi.String("string"),
Nrql: pulumi.String("string"),
AccountId: pulumi.String("string"),
Description: pulumi.String("string"),
})
var nrqlDropRuleResource = new NrqlDropRule("nrqlDropRuleResource", NrqlDropRuleArgs.builder()
.action("string")
.nrql("string")
.accountId("string")
.description("string")
.build());
nrql_drop_rule_resource = newrelic.NrqlDropRule("nrqlDropRuleResource",
action="string",
nrql="string",
account_id="string",
description="string")
const nrqlDropRuleResource = new newrelic.NrqlDropRule("nrqlDropRuleResource", {
action: "string",
nrql: "string",
accountId: "string",
description: "string",
});
type: newrelic:NrqlDropRule
properties:
accountId: string
action: string
description: string
nrql: string
NrqlDropRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NrqlDropRule resource accepts the following input properties:
- Action string
- An action type specifying how to apply the NRQL string (either
drop_data
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - Nrql string
- A NRQL string that specifies what data types to drop.
- Account
Id string - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - Nrql string
- A NRQL string that specifies what data types to drop.
- Account
Id string - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - nrql String
- A NRQL string that specifies what data types to drop.
- account
Id String - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - nrql string
- A NRQL string that specifies what data types to drop.
- account
Id string - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - nrql str
- A NRQL string that specifies what data types to drop.
- account_
id str - 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.
- action String
- An action type specifying how to apply the NRQL string (either
drop_data
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - nrql String
- A NRQL string that specifies what data types to drop.
- account
Id String - 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.
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.
- Pipeline
Cloud stringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - Rule
Id string - The id, uniquely identifying the rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pipeline
Cloud stringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - Rule
Id string - The id, uniquely identifying the rule.
- id String
- The provider-assigned unique ID for this managed resource.
- pipeline
Cloud StringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - rule
Id String - The id, uniquely identifying the rule.
- id string
- The provider-assigned unique ID for this managed resource.
- pipeline
Cloud stringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - rule
Id string - The id, uniquely identifying the rule.
- id str
- The provider-assigned unique ID for this managed resource.
- pipeline_
cloud_ strrule_ entity_ id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - rule_
id str - The id, uniquely identifying the rule.
- id String
- The provider-assigned unique ID for this managed resource.
- pipeline
Cloud StringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - rule
Id String - The id, uniquely identifying the rule.
Look up 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[str] = None,
action: Optional[str] = None,
description: Optional[str] = None,
nrql: Optional[str] = None,
pipeline_cloud_rule_entity_id: 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)
public static NrqlDropRule get(String name, Output<String> id, NrqlDropRuleState state, CustomResourceOptions options)
resources: _: type: newrelic:NrqlDropRule get: id: ${id}
- 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.
- 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.
- Account
Id string - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - Description string
- The description of the drop rule.
- Nrql string
- A NRQL string that specifies what data types to drop.
- Pipeline
Cloud stringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - Rule
Id string - The id, uniquely identifying the rule.
- Account
Id string - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - Description string
- The description of the drop rule.
- Nrql string
- A NRQL string that specifies what data types to drop.
- Pipeline
Cloud stringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - Rule
Id string - The id, uniquely identifying the rule.
- account
Id String - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - description String
- The description of the drop rule.
- nrql String
- A NRQL string that specifies what data types to drop.
- pipeline
Cloud StringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - rule
Id String - The id, uniquely identifying the rule.
- account
Id string - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - description string
- The description of the drop rule.
- nrql string
- A NRQL string that specifies what data types to drop.
- pipeline
Cloud stringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - rule
Id string - The id, uniquely identifying the rule.
- account_
id str - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - description str
- The description of the drop rule.
- nrql str
- A NRQL string that specifies what data types to drop.
- pipeline_
cloud_ strrule_ entity_ id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - rule_
id str - The id, uniquely identifying the rule.
- account
Id String - 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
,drop_attributes
, ordrop_attributes_from_metric_aggregates
). - description String
- The description of the drop rule.
- nrql String
- A NRQL string that specifies what data types to drop.
- pipeline
Cloud StringRule Entity Id - The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a
newrelic.PipelineCloudRule
resource, as explained in our Drop Rules EOL Migration Guide. - rule
Id String - The id, uniquely identifying the rule.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelic
Terraform Provider.