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