pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-newrelic might be problematic. Click here for more details.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
+ import builtins as _builtins
5
6
  import sys
6
7
  from .vars import _ExportableConfig
7
8
 
@@ -1,15 +1,20 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
 
12
- accountId: Optional[int]
17
+ accountId: Optional[str]
13
18
 
14
19
  adminApiKey: Optional[str]
15
20
 
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
 
12
17
  import types
@@ -15,58 +20,58 @@ __config__ = pulumi.Config('newrelic')
15
20
 
16
21
 
17
22
  class _ExportableConfig(types.ModuleType):
18
- @property
19
- def account_id(self) -> Optional[int]:
20
- return __config__.get_int('accountId') or _utilities.get_env_int('NEW_RELIC_ACCOUNT_ID')
23
+ @_builtins.property
24
+ def account_id(self) -> Optional[str]:
25
+ return __config__.get('accountId') or _utilities.get_env('NEW_RELIC_ACCOUNT_ID')
21
26
 
22
- @property
27
+ @_builtins.property
23
28
  def admin_api_key(self) -> Optional[str]:
24
29
  return __config__.get('adminApiKey')
25
30
 
26
- @property
31
+ @_builtins.property
27
32
  def api_key(self) -> Optional[str]:
28
33
  return __config__.get('apiKey')
29
34
 
30
- @property
35
+ @_builtins.property
31
36
  def api_url(self) -> Optional[str]:
32
37
  return __config__.get('apiUrl')
33
38
 
34
- @property
39
+ @_builtins.property
35
40
  def cacert_file(self) -> Optional[str]:
36
41
  return __config__.get('cacertFile')
37
42
 
38
- @property
43
+ @_builtins.property
39
44
  def infrastructure_api_url(self) -> Optional[str]:
40
45
  return __config__.get('infrastructureApiUrl')
41
46
 
42
- @property
47
+ @_builtins.property
43
48
  def insecure_skip_verify(self) -> Optional[bool]:
44
49
  return __config__.get_bool('insecureSkipVerify')
45
50
 
46
- @property
51
+ @_builtins.property
47
52
  def insights_insert_key(self) -> Optional[str]:
48
53
  return __config__.get('insightsInsertKey')
49
54
 
50
- @property
55
+ @_builtins.property
51
56
  def insights_insert_url(self) -> Optional[str]:
52
57
  return __config__.get('insightsInsertUrl')
53
58
 
54
- @property
59
+ @_builtins.property
55
60
  def insights_query_url(self) -> Optional[str]:
56
61
  return __config__.get('insightsQueryUrl')
57
62
 
58
- @property
63
+ @_builtins.property
59
64
  def nerdgraph_api_url(self) -> Optional[str]:
60
65
  return __config__.get('nerdgraphApiUrl')
61
66
 
62
- @property
67
+ @_builtins.property
63
68
  def region(self) -> str:
64
69
  """
65
70
  The data center for which your New Relic account is configured. Only one region per provider block is permitted.
66
71
  """
67
72
  return __config__.get('region') or (_utilities.get_env('NEW_RELIC_REGION') or 'US')
68
73
 
69
- @property
74
+ @_builtins.property
70
75
  def synthetics_api_url(self) -> Optional[str]:
71
76
  return __config__.get('syntheticsApiUrl')
72
77
 
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['DataPartitionRuleArgs', 'DataPartitionRule']
@@ -14,20 +19,20 @@ __all__ = ['DataPartitionRuleArgs', 'DataPartitionRule']
14
19
  @pulumi.input_type
15
20
  class DataPartitionRuleArgs:
16
21
  def __init__(__self__, *,
17
- enabled: pulumi.Input[bool],
18
- nrql: pulumi.Input[str],
19
- retention_policy: pulumi.Input[str],
20
- target_data_partition: pulumi.Input[str],
21
- account_id: Optional[pulumi.Input[int]] = None,
22
- description: Optional[pulumi.Input[str]] = None):
22
+ enabled: pulumi.Input[_builtins.bool],
23
+ nrql: pulumi.Input[_builtins.str],
24
+ retention_policy: pulumi.Input[_builtins.str],
25
+ target_data_partition: pulumi.Input[_builtins.str],
26
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
27
+ description: Optional[pulumi.Input[_builtins.str]] = None):
23
28
  """
24
29
  The set of arguments for constructing a DataPartitionRule resource.
25
- :param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
26
- :param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
27
- :param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
28
- :param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
29
- :param pulumi.Input[int] account_id: The account id associated with the data partition rule.
30
- :param pulumi.Input[str] description: The description of the data partition rule.
30
+ :param pulumi.Input[_builtins.bool] enabled: Whether or not this data partition rule is enabled.
31
+ :param pulumi.Input[_builtins.str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
32
+ :param pulumi.Input[_builtins.str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
33
+ :param pulumi.Input[_builtins.str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
34
+ :param pulumi.Input[_builtins.str] account_id: The account id associated with the data partition rule.
35
+ :param pulumi.Input[_builtins.str] description: The description of the data partition rule.
31
36
  """
32
37
  pulumi.set(__self__, "enabled", enabled)
33
38
  pulumi.set(__self__, "nrql", nrql)
@@ -38,98 +43,98 @@ class DataPartitionRuleArgs:
38
43
  if description is not None:
39
44
  pulumi.set(__self__, "description", description)
40
45
 
41
- @property
46
+ @_builtins.property
42
47
  @pulumi.getter
43
- def enabled(self) -> pulumi.Input[bool]:
48
+ def enabled(self) -> pulumi.Input[_builtins.bool]:
44
49
  """
45
50
  Whether or not this data partition rule is enabled.
46
51
  """
47
52
  return pulumi.get(self, "enabled")
48
53
 
49
54
  @enabled.setter
50
- def enabled(self, value: pulumi.Input[bool]):
55
+ def enabled(self, value: pulumi.Input[_builtins.bool]):
51
56
  pulumi.set(self, "enabled", value)
52
57
 
53
- @property
58
+ @_builtins.property
54
59
  @pulumi.getter
55
- def nrql(self) -> pulumi.Input[str]:
60
+ def nrql(self) -> pulumi.Input[_builtins.str]:
56
61
  """
57
62
  The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
58
63
  """
59
64
  return pulumi.get(self, "nrql")
60
65
 
61
66
  @nrql.setter
62
- def nrql(self, value: pulumi.Input[str]):
67
+ def nrql(self, value: pulumi.Input[_builtins.str]):
63
68
  pulumi.set(self, "nrql", value)
64
69
 
65
- @property
70
+ @_builtins.property
66
71
  @pulumi.getter(name="retentionPolicy")
67
- def retention_policy(self) -> pulumi.Input[str]:
72
+ def retention_policy(self) -> pulumi.Input[_builtins.str]:
68
73
  """
69
74
  The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
70
75
  """
71
76
  return pulumi.get(self, "retention_policy")
72
77
 
73
78
  @retention_policy.setter
74
- def retention_policy(self, value: pulumi.Input[str]):
79
+ def retention_policy(self, value: pulumi.Input[_builtins.str]):
75
80
  pulumi.set(self, "retention_policy", value)
76
81
 
77
- @property
82
+ @_builtins.property
78
83
  @pulumi.getter(name="targetDataPartition")
79
- def target_data_partition(self) -> pulumi.Input[str]:
84
+ def target_data_partition(self) -> pulumi.Input[_builtins.str]:
80
85
  """
81
86
  The name of the data partition where logs will be allocated once the rule is enabled.
82
87
  """
83
88
  return pulumi.get(self, "target_data_partition")
84
89
 
85
90
  @target_data_partition.setter
86
- def target_data_partition(self, value: pulumi.Input[str]):
91
+ def target_data_partition(self, value: pulumi.Input[_builtins.str]):
87
92
  pulumi.set(self, "target_data_partition", value)
88
93
 
89
- @property
94
+ @_builtins.property
90
95
  @pulumi.getter(name="accountId")
91
- def account_id(self) -> Optional[pulumi.Input[int]]:
96
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
92
97
  """
93
98
  The account id associated with the data partition rule.
94
99
  """
95
100
  return pulumi.get(self, "account_id")
96
101
 
97
102
  @account_id.setter
98
- def account_id(self, value: Optional[pulumi.Input[int]]):
103
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
99
104
  pulumi.set(self, "account_id", value)
100
105
 
101
- @property
106
+ @_builtins.property
102
107
  @pulumi.getter
103
- def description(self) -> Optional[pulumi.Input[str]]:
108
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
104
109
  """
105
110
  The description of the data partition rule.
106
111
  """
107
112
  return pulumi.get(self, "description")
108
113
 
109
114
  @description.setter
110
- def description(self, value: Optional[pulumi.Input[str]]):
115
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
111
116
  pulumi.set(self, "description", value)
112
117
 
113
118
 
114
119
  @pulumi.input_type
115
120
  class _DataPartitionRuleState:
116
121
  def __init__(__self__, *,
117
- account_id: Optional[pulumi.Input[int]] = None,
118
- deleted: Optional[pulumi.Input[bool]] = None,
119
- description: Optional[pulumi.Input[str]] = None,
120
- enabled: Optional[pulumi.Input[bool]] = None,
121
- nrql: Optional[pulumi.Input[str]] = None,
122
- retention_policy: Optional[pulumi.Input[str]] = None,
123
- target_data_partition: Optional[pulumi.Input[str]] = None):
122
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
123
+ deleted: Optional[pulumi.Input[_builtins.bool]] = None,
124
+ description: Optional[pulumi.Input[_builtins.str]] = None,
125
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
126
+ nrql: Optional[pulumi.Input[_builtins.str]] = None,
127
+ retention_policy: Optional[pulumi.Input[_builtins.str]] = None,
128
+ target_data_partition: Optional[pulumi.Input[_builtins.str]] = None):
124
129
  """
125
130
  Input properties used for looking up and filtering DataPartitionRule resources.
126
- :param pulumi.Input[int] account_id: The account id associated with the data partition rule.
127
- :param pulumi.Input[bool] deleted: 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.
128
- :param pulumi.Input[str] description: The description of the data partition rule.
129
- :param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
130
- :param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
131
- :param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
132
- :param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
131
+ :param pulumi.Input[_builtins.str] account_id: The account id associated with the data partition rule.
132
+ :param pulumi.Input[_builtins.bool] deleted: 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.
133
+ :param pulumi.Input[_builtins.str] description: The description of the data partition rule.
134
+ :param pulumi.Input[_builtins.bool] enabled: Whether or not this data partition rule is enabled.
135
+ :param pulumi.Input[_builtins.str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
136
+ :param pulumi.Input[_builtins.str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
137
+ :param pulumi.Input[_builtins.str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
133
138
  """
134
139
  if account_id is not None:
135
140
  pulumi.set(__self__, "account_id", account_id)
@@ -146,109 +151,109 @@ class _DataPartitionRuleState:
146
151
  if target_data_partition is not None:
147
152
  pulumi.set(__self__, "target_data_partition", target_data_partition)
148
153
 
149
- @property
154
+ @_builtins.property
150
155
  @pulumi.getter(name="accountId")
151
- def account_id(self) -> Optional[pulumi.Input[int]]:
156
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
152
157
  """
153
158
  The account id associated with the data partition rule.
154
159
  """
155
160
  return pulumi.get(self, "account_id")
156
161
 
157
162
  @account_id.setter
158
- def account_id(self, value: Optional[pulumi.Input[int]]):
163
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
159
164
  pulumi.set(self, "account_id", value)
160
165
 
161
- @property
166
+ @_builtins.property
162
167
  @pulumi.getter
163
- def deleted(self) -> Optional[pulumi.Input[bool]]:
168
+ def deleted(self) -> Optional[pulumi.Input[_builtins.bool]]:
164
169
  """
165
170
  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.
166
171
  """
167
172
  return pulumi.get(self, "deleted")
168
173
 
169
174
  @deleted.setter
170
- def deleted(self, value: Optional[pulumi.Input[bool]]):
175
+ def deleted(self, value: Optional[pulumi.Input[_builtins.bool]]):
171
176
  pulumi.set(self, "deleted", value)
172
177
 
173
- @property
178
+ @_builtins.property
174
179
  @pulumi.getter
175
- def description(self) -> Optional[pulumi.Input[str]]:
180
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
176
181
  """
177
182
  The description of the data partition rule.
178
183
  """
179
184
  return pulumi.get(self, "description")
180
185
 
181
186
  @description.setter
182
- def description(self, value: Optional[pulumi.Input[str]]):
187
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
183
188
  pulumi.set(self, "description", value)
184
189
 
185
- @property
190
+ @_builtins.property
186
191
  @pulumi.getter
187
- def enabled(self) -> Optional[pulumi.Input[bool]]:
192
+ def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
188
193
  """
189
194
  Whether or not this data partition rule is enabled.
190
195
  """
191
196
  return pulumi.get(self, "enabled")
192
197
 
193
198
  @enabled.setter
194
- def enabled(self, value: Optional[pulumi.Input[bool]]):
199
+ def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
195
200
  pulumi.set(self, "enabled", value)
196
201
 
197
- @property
202
+ @_builtins.property
198
203
  @pulumi.getter
199
- def nrql(self) -> Optional[pulumi.Input[str]]:
204
+ def nrql(self) -> Optional[pulumi.Input[_builtins.str]]:
200
205
  """
201
206
  The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
202
207
  """
203
208
  return pulumi.get(self, "nrql")
204
209
 
205
210
  @nrql.setter
206
- def nrql(self, value: Optional[pulumi.Input[str]]):
211
+ def nrql(self, value: Optional[pulumi.Input[_builtins.str]]):
207
212
  pulumi.set(self, "nrql", value)
208
213
 
209
- @property
214
+ @_builtins.property
210
215
  @pulumi.getter(name="retentionPolicy")
211
- def retention_policy(self) -> Optional[pulumi.Input[str]]:
216
+ def retention_policy(self) -> Optional[pulumi.Input[_builtins.str]]:
212
217
  """
213
218
  The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
214
219
  """
215
220
  return pulumi.get(self, "retention_policy")
216
221
 
217
222
  @retention_policy.setter
218
- def retention_policy(self, value: Optional[pulumi.Input[str]]):
223
+ def retention_policy(self, value: Optional[pulumi.Input[_builtins.str]]):
219
224
  pulumi.set(self, "retention_policy", value)
220
225
 
221
- @property
226
+ @_builtins.property
222
227
  @pulumi.getter(name="targetDataPartition")
223
- def target_data_partition(self) -> Optional[pulumi.Input[str]]:
228
+ def target_data_partition(self) -> Optional[pulumi.Input[_builtins.str]]:
224
229
  """
225
230
  The name of the data partition where logs will be allocated once the rule is enabled.
226
231
  """
227
232
  return pulumi.get(self, "target_data_partition")
228
233
 
229
234
  @target_data_partition.setter
230
- def target_data_partition(self, value: Optional[pulumi.Input[str]]):
235
+ def target_data_partition(self, value: Optional[pulumi.Input[_builtins.str]]):
231
236
  pulumi.set(self, "target_data_partition", value)
232
237
 
233
238
 
239
+ @pulumi.type_token("newrelic:index/dataPartitionRule:DataPartitionRule")
234
240
  class DataPartitionRule(pulumi.CustomResource):
235
241
  @overload
236
242
  def __init__(__self__,
237
243
  resource_name: str,
238
244
  opts: Optional[pulumi.ResourceOptions] = None,
239
- account_id: Optional[pulumi.Input[int]] = None,
240
- description: Optional[pulumi.Input[str]] = None,
241
- enabled: Optional[pulumi.Input[bool]] = None,
242
- nrql: Optional[pulumi.Input[str]] = None,
243
- retention_policy: Optional[pulumi.Input[str]] = None,
244
- target_data_partition: Optional[pulumi.Input[str]] = None,
245
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
246
+ description: Optional[pulumi.Input[_builtins.str]] = None,
247
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
248
+ nrql: Optional[pulumi.Input[_builtins.str]] = None,
249
+ retention_policy: Optional[pulumi.Input[_builtins.str]] = None,
250
+ target_data_partition: Optional[pulumi.Input[_builtins.str]] = None,
245
251
  __props__=None):
246
252
  """
247
253
  Use this resource to create, update and delete New Relic Data partition rule.
248
254
 
249
255
  ## Example Usage
250
256
 
251
- <!--Start PulumiCodeChooser -->
252
257
  ```python
253
258
  import pulumi
254
259
  import pulumi_newrelic as newrelic
@@ -260,7 +265,6 @@ class DataPartitionRule(pulumi.CustomResource):
260
265
  retention_policy="STANDARD",
261
266
  target_data_partition="Log_name")
262
267
  ```
263
- <!--End PulumiCodeChooser -->
264
268
 
265
269
  ## Additional Information
266
270
 
@@ -278,12 +282,12 @@ class DataPartitionRule(pulumi.CustomResource):
278
282
 
279
283
  :param str resource_name: The name of the resource.
280
284
  :param pulumi.ResourceOptions opts: Options for the resource.
281
- :param pulumi.Input[int] account_id: The account id associated with the data partition rule.
282
- :param pulumi.Input[str] description: The description of the data partition rule.
283
- :param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
284
- :param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
285
- :param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
286
- :param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
285
+ :param pulumi.Input[_builtins.str] account_id: The account id associated with the data partition rule.
286
+ :param pulumi.Input[_builtins.str] description: The description of the data partition rule.
287
+ :param pulumi.Input[_builtins.bool] enabled: Whether or not this data partition rule is enabled.
288
+ :param pulumi.Input[_builtins.str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
289
+ :param pulumi.Input[_builtins.str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
290
+ :param pulumi.Input[_builtins.str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
287
291
  """
288
292
  ...
289
293
  @overload
@@ -296,7 +300,6 @@ class DataPartitionRule(pulumi.CustomResource):
296
300
 
297
301
  ## Example Usage
298
302
 
299
- <!--Start PulumiCodeChooser -->
300
303
  ```python
301
304
  import pulumi
302
305
  import pulumi_newrelic as newrelic
@@ -308,7 +311,6 @@ class DataPartitionRule(pulumi.CustomResource):
308
311
  retention_policy="STANDARD",
309
312
  target_data_partition="Log_name")
310
313
  ```
311
- <!--End PulumiCodeChooser -->
312
314
 
313
315
  ## Additional Information
314
316
 
@@ -339,12 +341,12 @@ class DataPartitionRule(pulumi.CustomResource):
339
341
  def _internal_init(__self__,
340
342
  resource_name: str,
341
343
  opts: Optional[pulumi.ResourceOptions] = None,
342
- account_id: Optional[pulumi.Input[int]] = None,
343
- description: Optional[pulumi.Input[str]] = None,
344
- enabled: Optional[pulumi.Input[bool]] = None,
345
- nrql: Optional[pulumi.Input[str]] = None,
346
- retention_policy: Optional[pulumi.Input[str]] = None,
347
- target_data_partition: Optional[pulumi.Input[str]] = None,
344
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
345
+ description: Optional[pulumi.Input[_builtins.str]] = None,
346
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
347
+ nrql: Optional[pulumi.Input[_builtins.str]] = None,
348
+ retention_policy: Optional[pulumi.Input[_builtins.str]] = None,
349
+ target_data_partition: Optional[pulumi.Input[_builtins.str]] = None,
348
350
  __props__=None):
349
351
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
350
352
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -379,13 +381,13 @@ class DataPartitionRule(pulumi.CustomResource):
379
381
  def get(resource_name: str,
380
382
  id: pulumi.Input[str],
381
383
  opts: Optional[pulumi.ResourceOptions] = None,
382
- account_id: Optional[pulumi.Input[int]] = None,
383
- deleted: Optional[pulumi.Input[bool]] = None,
384
- description: Optional[pulumi.Input[str]] = None,
385
- enabled: Optional[pulumi.Input[bool]] = None,
386
- nrql: Optional[pulumi.Input[str]] = None,
387
- retention_policy: Optional[pulumi.Input[str]] = None,
388
- target_data_partition: Optional[pulumi.Input[str]] = None) -> 'DataPartitionRule':
384
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
385
+ deleted: Optional[pulumi.Input[_builtins.bool]] = None,
386
+ description: Optional[pulumi.Input[_builtins.str]] = None,
387
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
388
+ nrql: Optional[pulumi.Input[_builtins.str]] = None,
389
+ retention_policy: Optional[pulumi.Input[_builtins.str]] = None,
390
+ target_data_partition: Optional[pulumi.Input[_builtins.str]] = None) -> 'DataPartitionRule':
389
391
  """
390
392
  Get an existing DataPartitionRule resource's state with the given name, id, and optional extra
391
393
  properties used to qualify the lookup.
@@ -393,13 +395,13 @@ class DataPartitionRule(pulumi.CustomResource):
393
395
  :param str resource_name: The unique name of the resulting resource.
394
396
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
395
397
  :param pulumi.ResourceOptions opts: Options for the resource.
396
- :param pulumi.Input[int] account_id: The account id associated with the data partition rule.
397
- :param pulumi.Input[bool] deleted: 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.
398
- :param pulumi.Input[str] description: The description of the data partition rule.
399
- :param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
400
- :param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
401
- :param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
402
- :param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
398
+ :param pulumi.Input[_builtins.str] account_id: The account id associated with the data partition rule.
399
+ :param pulumi.Input[_builtins.bool] deleted: 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.
400
+ :param pulumi.Input[_builtins.str] description: The description of the data partition rule.
401
+ :param pulumi.Input[_builtins.bool] enabled: Whether or not this data partition rule is enabled.
402
+ :param pulumi.Input[_builtins.str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
403
+ :param pulumi.Input[_builtins.str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
404
+ :param pulumi.Input[_builtins.str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
403
405
  """
404
406
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
405
407
 
@@ -414,57 +416,57 @@ class DataPartitionRule(pulumi.CustomResource):
414
416
  __props__.__dict__["target_data_partition"] = target_data_partition
415
417
  return DataPartitionRule(resource_name, opts=opts, __props__=__props__)
416
418
 
417
- @property
419
+ @_builtins.property
418
420
  @pulumi.getter(name="accountId")
419
- def account_id(self) -> pulumi.Output[int]:
421
+ def account_id(self) -> pulumi.Output[_builtins.str]:
420
422
  """
421
423
  The account id associated with the data partition rule.
422
424
  """
423
425
  return pulumi.get(self, "account_id")
424
426
 
425
- @property
427
+ @_builtins.property
426
428
  @pulumi.getter
427
- def deleted(self) -> pulumi.Output[bool]:
429
+ def deleted(self) -> pulumi.Output[_builtins.bool]:
428
430
  """
429
431
  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.
430
432
  """
431
433
  return pulumi.get(self, "deleted")
432
434
 
433
- @property
435
+ @_builtins.property
434
436
  @pulumi.getter
435
- def description(self) -> pulumi.Output[Optional[str]]:
437
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
436
438
  """
437
439
  The description of the data partition rule.
438
440
  """
439
441
  return pulumi.get(self, "description")
440
442
 
441
- @property
443
+ @_builtins.property
442
444
  @pulumi.getter
443
- def enabled(self) -> pulumi.Output[bool]:
445
+ def enabled(self) -> pulumi.Output[_builtins.bool]:
444
446
  """
445
447
  Whether or not this data partition rule is enabled.
446
448
  """
447
449
  return pulumi.get(self, "enabled")
448
450
 
449
- @property
451
+ @_builtins.property
450
452
  @pulumi.getter
451
- def nrql(self) -> pulumi.Output[str]:
453
+ def nrql(self) -> pulumi.Output[_builtins.str]:
452
454
  """
453
455
  The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
454
456
  """
455
457
  return pulumi.get(self, "nrql")
456
458
 
457
- @property
459
+ @_builtins.property
458
460
  @pulumi.getter(name="retentionPolicy")
459
- def retention_policy(self) -> pulumi.Output[str]:
461
+ def retention_policy(self) -> pulumi.Output[_builtins.str]:
460
462
  """
461
463
  The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
462
464
  """
463
465
  return pulumi.get(self, "retention_policy")
464
466
 
465
- @property
467
+ @_builtins.property
466
468
  @pulumi.getter(name="targetDataPartition")
467
- def target_data_partition(self) -> pulumi.Output[str]:
469
+ def target_data_partition(self) -> pulumi.Output[_builtins.str]:
468
470
  """
469
471
  The name of the data partition where logs will be allocated once the rule is enabled.
470
472
  """