pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.21.0a1710157101__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 (65) hide show
  1. pulumi_newrelic/account_management.py +6 -2
  2. pulumi_newrelic/alert_channel.py +34 -2
  3. pulumi_newrelic/alert_condition.py +26 -2
  4. pulumi_newrelic/alert_muting_rule.py +6 -2
  5. pulumi_newrelic/alert_policy.py +22 -4
  6. pulumi_newrelic/alert_policy_channel.py +8 -4
  7. pulumi_newrelic/api_access_key.py +6 -26
  8. pulumi_newrelic/browser_application.py +6 -2
  9. pulumi_newrelic/cloud/aws_govcloud_integrations.py +2 -2
  10. pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -2
  11. pulumi_newrelic/cloud/aws_integrations.py +6 -2
  12. pulumi_newrelic/cloud/aws_link_account.py +6 -2
  13. pulumi_newrelic/cloud/azure_integrations.py +6 -2
  14. pulumi_newrelic/cloud/azure_link_account.py +6 -2
  15. pulumi_newrelic/cloud/gcp_integrations.py +6 -2
  16. pulumi_newrelic/cloud/gcp_link_account.py +6 -2
  17. pulumi_newrelic/data_partition_rule.py +8 -2
  18. pulumi_newrelic/entity_tags.py +8 -4
  19. pulumi_newrelic/events_to_metrics_rule.py +8 -4
  20. pulumi_newrelic/get_account.py +4 -0
  21. pulumi_newrelic/get_application.py +4 -0
  22. pulumi_newrelic/get_authentication_domain.py +4 -0
  23. pulumi_newrelic/get_cloud_account.py +4 -0
  24. pulumi_newrelic/get_entity.py +66 -4
  25. pulumi_newrelic/get_group.py +4 -0
  26. pulumi_newrelic/get_key_transaction.py +4 -0
  27. pulumi_newrelic/get_obfuscation_expression.py +4 -0
  28. pulumi_newrelic/get_service_level_alert_helper.py +12 -0
  29. pulumi_newrelic/get_test_grok_pattern.py +4 -0
  30. pulumi_newrelic/get_user.py +4 -0
  31. pulumi_newrelic/group.py +14 -0
  32. pulumi_newrelic/infra_alert_condition.py +33 -9
  33. pulumi_newrelic/insights/event.py +6 -0
  34. pulumi_newrelic/log_parsing_rule.py +12 -2
  35. pulumi_newrelic/monitor_downtime.py +28 -2
  36. pulumi_newrelic/notification_channel.py +50 -4
  37. pulumi_newrelic/notification_destination.py +64 -72
  38. pulumi_newrelic/nrql_alert_condition.py +28 -4
  39. pulumi_newrelic/nrql_drop_rule.py +30 -4
  40. pulumi_newrelic/obfuscation_expression.py +6 -2
  41. pulumi_newrelic/obfuscation_rule.py +6 -2
  42. pulumi_newrelic/one_dashboard.py +2 -2
  43. pulumi_newrelic/one_dashboard_json.py +2 -2
  44. pulumi_newrelic/one_dashboard_raw.py +6 -0
  45. pulumi_newrelic/plugins/application_settings.py +22 -2
  46. pulumi_newrelic/plugins/workload.py +112 -4
  47. pulumi_newrelic/service_level.py +20 -6
  48. pulumi_newrelic/synthetics/alert_condition.py +26 -2
  49. pulumi_newrelic/synthetics/broken_links_monitor.py +12 -2
  50. pulumi_newrelic/synthetics/cert_check_monitor.py +12 -2
  51. pulumi_newrelic/synthetics/get_private_location.py +8 -0
  52. pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
  53. pulumi_newrelic/synthetics/monitor.py +20 -2
  54. pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
  55. pulumi_newrelic/synthetics/private_location.py +6 -2
  56. pulumi_newrelic/synthetics/script_monitor.py +20 -2
  57. pulumi_newrelic/synthetics/secure_credential.py +6 -2
  58. pulumi_newrelic/synthetics/step_monitor.py +8 -2
  59. pulumi_newrelic/user.py +4 -0
  60. pulumi_newrelic/workflow.py +22 -4
  61. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/METADATA +1 -1
  62. pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +89 -0
  63. pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
  64. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/WHEEL +0 -0
  65. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/top_level.txt +0 -0
@@ -146,12 +146,40 @@ def get_entity(account_id: Optional[int] = None,
146
146
  """
147
147
  Use this data source to get information about a specific entity in New Relic One that already exists.
148
148
 
149
- ## Additional Examples
149
+ ### Example: Filter By Account ID
150
150
 
151
- > If the entities are not found please try again without providing the `type` field.
151
+ The default behaviour of this data source is to retrieve entities matching the specified parameters (such as `name`, `domain`, `type`) from NerdGraph with the credentials specified in the configuration of the provider (account ID and API Key), filter them by the account ID specified in the configuration of the provider, and return the first match.
152
152
 
153
+ This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
154
+
155
+ <!--Start PulumiCodeChooser -->
156
+ ```python
157
+ import pulumi
158
+ import pulumi_newrelic as newrelic
159
+
160
+ app = newrelic.get_entity(domain="APM",
161
+ name="my-app",
162
+ type="APPLICATION")
163
+ ```
164
+ <!--End PulumiCodeChooser -->
165
+ However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
166
+ <!--Start PulumiCodeChooser -->
167
+ ```python
168
+ import pulumi
169
+ import pulumi_newrelic as newrelic
170
+
171
+ app = newrelic.get_entity(account_id=654321,
172
+ domain="APM",
173
+ name="my-app",
174
+ type="APPLICATION")
175
+ ```
176
+ <!--End PulumiCodeChooser -->
177
+ The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
178
+
179
+ In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
153
180
  ### Query for an OTEL entity
154
181
 
182
+ <!--Start PulumiCodeChooser -->
155
183
  ```python
156
184
  import pulumi
157
185
  import pulumi_newrelic as newrelic
@@ -164,9 +192,11 @@ def get_entity(account_id: Optional[int] = None,
164
192
  )],
165
193
  type="SERVICE")
166
194
  ```
195
+ <!--End PulumiCodeChooser -->
167
196
 
168
197
  ### Query for an entity by type (AWS Lambda entity in this example)
169
198
 
199
+ <!--Start PulumiCodeChooser -->
170
200
  ```python
171
201
  import pulumi
172
202
  import pulumi_newrelic as newrelic
@@ -174,6 +204,7 @@ def get_entity(account_id: Optional[int] = None,
174
204
  app = newrelic.get_entity(name="my_lambda_trace",
175
205
  type="AWSLAMBDAFUNCTION")
176
206
  ```
207
+ <!--End PulumiCodeChooser -->
177
208
 
178
209
 
179
210
  :param int account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
@@ -217,12 +248,40 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
217
248
  """
218
249
  Use this data source to get information about a specific entity in New Relic One that already exists.
219
250
 
220
- ## Additional Examples
251
+ ### Example: Filter By Account ID
221
252
 
222
- > If the entities are not found please try again without providing the `type` field.
253
+ The default behaviour of this data source is to retrieve entities matching the specified parameters (such as `name`, `domain`, `type`) from NerdGraph with the credentials specified in the configuration of the provider (account ID and API Key), filter them by the account ID specified in the configuration of the provider, and return the first match.
254
+
255
+ This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
256
+
257
+ <!--Start PulumiCodeChooser -->
258
+ ```python
259
+ import pulumi
260
+ import pulumi_newrelic as newrelic
261
+
262
+ app = newrelic.get_entity(domain="APM",
263
+ name="my-app",
264
+ type="APPLICATION")
265
+ ```
266
+ <!--End PulumiCodeChooser -->
267
+ However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
268
+ <!--Start PulumiCodeChooser -->
269
+ ```python
270
+ import pulumi
271
+ import pulumi_newrelic as newrelic
272
+
273
+ app = newrelic.get_entity(account_id=654321,
274
+ domain="APM",
275
+ name="my-app",
276
+ type="APPLICATION")
277
+ ```
278
+ <!--End PulumiCodeChooser -->
279
+ The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
223
280
 
281
+ In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
224
282
  ### Query for an OTEL entity
225
283
 
284
+ <!--Start PulumiCodeChooser -->
226
285
  ```python
227
286
  import pulumi
228
287
  import pulumi_newrelic as newrelic
@@ -235,9 +294,11 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
235
294
  )],
236
295
  type="SERVICE")
237
296
  ```
297
+ <!--End PulumiCodeChooser -->
238
298
 
239
299
  ### Query for an entity by type (AWS Lambda entity in this example)
240
300
 
301
+ <!--Start PulumiCodeChooser -->
241
302
  ```python
242
303
  import pulumi
243
304
  import pulumi_newrelic as newrelic
@@ -245,6 +306,7 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
245
306
  app = newrelic.get_entity(name="my_lambda_trace",
246
307
  type="AWSLAMBDAFUNCTION")
247
308
  ```
309
+ <!--End PulumiCodeChooser -->
248
310
 
249
311
 
250
312
  :param int account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
@@ -84,6 +84,7 @@ def get_group(authentication_domain_id: Optional[str] = None,
84
84
 
85
85
  The below example illustrates fetching the ID of a group (and IDs of users who belong to the group, if any) using the required arguments.
86
86
 
87
+ <!--Start PulumiCodeChooser -->
87
88
  ```python
88
89
  import pulumi
89
90
  import pulumi_newrelic as newrelic
@@ -92,6 +93,7 @@ def get_group(authentication_domain_id: Optional[str] = None,
92
93
  foo_group = newrelic.get_group(authentication_domain_id=foo_authentication_domain.id,
93
94
  name="Test Group")
94
95
  ```
96
+ <!--End PulumiCodeChooser -->
95
97
 
96
98
 
97
99
  :param str authentication_domain_id: The ID of the authentication domain the group to be searched for belongs to.
@@ -123,6 +125,7 @@ def get_group_output(authentication_domain_id: Optional[pulumi.Input[str]] = Non
123
125
 
124
126
  The below example illustrates fetching the ID of a group (and IDs of users who belong to the group, if any) using the required arguments.
125
127
 
128
+ <!--Start PulumiCodeChooser -->
126
129
  ```python
127
130
  import pulumi
128
131
  import pulumi_newrelic as newrelic
@@ -131,6 +134,7 @@ def get_group_output(authentication_domain_id: Optional[pulumi.Input[str]] = Non
131
134
  foo_group = newrelic.get_group(authentication_domain_id=foo_authentication_domain.id,
132
135
  name="Test Group")
133
136
  ```
137
+ <!--End PulumiCodeChooser -->
134
138
 
135
139
 
136
140
  :param str authentication_domain_id: The ID of the authentication domain the group to be searched for belongs to.
@@ -60,6 +60,7 @@ def get_key_transaction(name: Optional[str] = None,
60
60
 
61
61
  ## Example Usage
62
62
 
63
+ <!--Start PulumiCodeChooser -->
63
64
  ```python
64
65
  import pulumi
65
66
  import pulumi_newrelic as newrelic
@@ -80,6 +81,7 @@ def get_key_transaction(name: Optional[str] = None,
80
81
  time_function="all",
81
82
  )])
82
83
  ```
84
+ <!--End PulumiCodeChooser -->
83
85
 
84
86
 
85
87
  :param str name: The name of the key transaction in New Relic.
@@ -102,6 +104,7 @@ def get_key_transaction_output(name: Optional[pulumi.Input[str]] = None,
102
104
 
103
105
  ## Example Usage
104
106
 
107
+ <!--Start PulumiCodeChooser -->
105
108
  ```python
106
109
  import pulumi
107
110
  import pulumi_newrelic as newrelic
@@ -122,6 +125,7 @@ def get_key_transaction_output(name: Optional[pulumi.Input[str]] = None,
122
125
  time_function="all",
123
126
  )])
124
127
  ```
128
+ <!--End PulumiCodeChooser -->
125
129
 
126
130
 
127
131
  :param str name: The name of the key transaction in New Relic.
@@ -70,6 +70,7 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
70
70
 
71
71
  ## Example Usage
72
72
 
73
+ <!--Start PulumiCodeChooser -->
73
74
  ```python
74
75
  import pulumi
75
76
  import pulumi_newrelic as newrelic
@@ -86,6 +87,7 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
86
87
  method="MASK",
87
88
  )])
88
89
  ```
90
+ <!--End PulumiCodeChooser -->
89
91
 
90
92
 
91
93
  :param int account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
@@ -112,6 +114,7 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
112
114
 
113
115
  ## Example Usage
114
116
 
117
+ <!--Start PulumiCodeChooser -->
115
118
  ```python
116
119
  import pulumi
117
120
  import pulumi_newrelic as newrelic
@@ -128,6 +131,7 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
128
131
  method="MASK",
129
132
  )])
130
133
  ```
134
+ <!--End PulumiCodeChooser -->
131
135
 
132
136
 
133
137
  :param int account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
@@ -170,6 +170,7 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
170
170
 
171
171
  Firstly set up your service level objective, we recommend using local variables for the `target` and `time_window.rolling.count`, as they are also necessary for the helper.
172
172
 
173
+ <!--Start PulumiCodeChooser -->
173
174
  ```python
174
175
  import pulumi
175
176
  import pulumi_newrelic as newrelic
@@ -200,12 +201,14 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
200
201
  ),
201
202
  ))
202
203
  ```
204
+ <!--End PulumiCodeChooser -->
203
205
  Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
204
206
  Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
205
207
  If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
206
208
 
207
209
  Here is an example of a `slow_burn` alert.
208
210
 
211
+ <!--Start PulumiCodeChooser -->
209
212
  ```python
210
213
  import pulumi
211
214
  import pulumi_newrelic as newrelic
@@ -236,9 +239,11 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
236
239
  aggregation_delay="120",
237
240
  slide_by=900)
238
241
  ```
242
+ <!--End PulumiCodeChooser -->
239
243
 
240
244
  Here is an example of a custom alert:
241
245
 
246
+ <!--Start PulumiCodeChooser -->
242
247
  ```python
243
248
  import pulumi
244
249
  import pulumi_newrelic as newrelic
@@ -271,6 +276,7 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
271
276
  aggregation_delay="120",
272
277
  slide_by=60)
273
278
  ```
279
+ <!--End PulumiCodeChooser -->
274
280
 
275
281
 
276
282
  :param str alert_type: The type of alert we want to set. Valid values are:
@@ -323,6 +329,7 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
323
329
 
324
330
  Firstly set up your service level objective, we recommend using local variables for the `target` and `time_window.rolling.count`, as they are also necessary for the helper.
325
331
 
332
+ <!--Start PulumiCodeChooser -->
326
333
  ```python
327
334
  import pulumi
328
335
  import pulumi_newrelic as newrelic
@@ -353,12 +360,14 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
353
360
  ),
354
361
  ))
355
362
  ```
363
+ <!--End PulumiCodeChooser -->
356
364
  Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
357
365
  Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
358
366
  If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
359
367
 
360
368
  Here is an example of a `slow_burn` alert.
361
369
 
370
+ <!--Start PulumiCodeChooser -->
362
371
  ```python
363
372
  import pulumi
364
373
  import pulumi_newrelic as newrelic
@@ -389,9 +398,11 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
389
398
  aggregation_delay="120",
390
399
  slide_by=900)
391
400
  ```
401
+ <!--End PulumiCodeChooser -->
392
402
 
393
403
  Here is an example of a custom alert:
394
404
 
405
+ <!--Start PulumiCodeChooser -->
395
406
  ```python
396
407
  import pulumi
397
408
  import pulumi_newrelic as newrelic
@@ -424,6 +435,7 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
424
435
  aggregation_delay="120",
425
436
  slide_by=60)
426
437
  ```
438
+ <!--End PulumiCodeChooser -->
427
439
 
428
440
 
429
441
  :param str alert_type: The type of alert we want to set. Valid values are:
@@ -91,6 +91,7 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
91
91
  """
92
92
  ## Example Usage
93
93
 
94
+ <!--Start PulumiCodeChooser -->
94
95
  ```python
95
96
  import pulumi
96
97
  import pulumi_newrelic as newrelic
@@ -101,6 +102,7 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
101
102
  "bytes_received: 2048",
102
103
  ])
103
104
  ```
105
+ <!--End PulumiCodeChooser -->
104
106
 
105
107
 
106
108
  :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
@@ -130,6 +132,7 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
130
132
  """
131
133
  ## Example Usage
132
134
 
135
+ <!--Start PulumiCodeChooser -->
133
136
  ```python
134
137
  import pulumi
135
138
  import pulumi_newrelic as newrelic
@@ -140,6 +143,7 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
140
143
  "bytes_received: 2048",
141
144
  ])
142
145
  ```
146
+ <!--End PulumiCodeChooser -->
143
147
 
144
148
 
145
149
  :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
@@ -81,6 +81,7 @@ def get_user(authentication_domain_id: Optional[str] = None,
81
81
  ## Example Usage
82
82
 
83
83
  The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
84
+ <!--Start PulumiCodeChooser -->
84
85
  ```python
85
86
  import pulumi
86
87
  import pulumi_newrelic as newrelic
@@ -91,6 +92,7 @@ def get_user(authentication_domain_id: Optional[str] = None,
91
92
  user_two = newrelic.get_user(authentication_domain_id=foo.id,
92
93
  email_id="test_user@random.com")
93
94
  ```
95
+ <!--End PulumiCodeChooser -->
94
96
 
95
97
 
96
98
  :param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
@@ -128,6 +130,7 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
128
130
  ## Example Usage
129
131
 
130
132
  The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
133
+ <!--Start PulumiCodeChooser -->
131
134
  ```python
132
135
  import pulumi
133
136
  import pulumi_newrelic as newrelic
@@ -138,6 +141,7 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
138
141
  user_two = newrelic.get_user(authentication_domain_id=foo.id,
139
142
  email_id="test_user@random.com")
140
143
  ```
144
+ <!--End PulumiCodeChooser -->
141
145
 
142
146
 
143
147
  :param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
pulumi_newrelic/group.py CHANGED
@@ -152,6 +152,7 @@ class Group(pulumi.CustomResource):
152
152
 
153
153
  ## Example Usage
154
154
 
155
+ <!--Start PulumiCodeChooser -->
155
156
  ```python
156
157
  import pulumi
157
158
  import pulumi_newrelic as newrelic
@@ -164,12 +165,15 @@ class Group(pulumi.CustomResource):
164
165
  "2221110000",
165
166
  ])
166
167
  ```
168
+ <!--End PulumiCodeChooser -->
169
+
167
170
  ## Additional Examples
168
171
 
169
172
  ### Addition of New Users to a New Group
170
173
 
171
174
  The following example illustrates the creation of a group using the `Group` resource, to which users created using the `User` resource are added.
172
175
 
176
+ <!--Start PulumiCodeChooser -->
173
177
  ```python
174
178
  import pulumi
175
179
  import pulumi_newrelic as newrelic
@@ -190,11 +194,13 @@ class Group(pulumi.CustomResource):
190
194
  bar.id,
191
195
  ])
192
196
  ```
197
+ <!--End PulumiCodeChooser -->
193
198
 
194
199
  ### Addition of Existing Users to a New Group
195
200
 
196
201
  The following example demonstrates the usage of the `Group` resource to create a group, wherein the `User` data source is employed to associate existing users with the newly formed group.
197
202
 
203
+ <!--Start PulumiCodeChooser -->
198
204
  ```python
199
205
  import pulumi
200
206
  import pulumi_newrelic as newrelic
@@ -211,6 +217,7 @@ class Group(pulumi.CustomResource):
211
217
  bar.id,
212
218
  ])
213
219
  ```
220
+ <!--End PulumiCodeChooser -->
214
221
 
215
222
  > **NOTE** Please note that the addition of users to groups is only possible when both the group and the users to be added to it belong to the _same authentication domain_. If the group being created and the users being added to it belong to different authentication domains, an error indicating `user not found` or an equivalent error will be thrown.
216
223
 
@@ -243,6 +250,7 @@ class Group(pulumi.CustomResource):
243
250
 
244
251
  ## Example Usage
245
252
 
253
+ <!--Start PulumiCodeChooser -->
246
254
  ```python
247
255
  import pulumi
248
256
  import pulumi_newrelic as newrelic
@@ -255,12 +263,15 @@ class Group(pulumi.CustomResource):
255
263
  "2221110000",
256
264
  ])
257
265
  ```
266
+ <!--End PulumiCodeChooser -->
267
+
258
268
  ## Additional Examples
259
269
 
260
270
  ### Addition of New Users to a New Group
261
271
 
262
272
  The following example illustrates the creation of a group using the `Group` resource, to which users created using the `User` resource are added.
263
273
 
274
+ <!--Start PulumiCodeChooser -->
264
275
  ```python
265
276
  import pulumi
266
277
  import pulumi_newrelic as newrelic
@@ -281,11 +292,13 @@ class Group(pulumi.CustomResource):
281
292
  bar.id,
282
293
  ])
283
294
  ```
295
+ <!--End PulumiCodeChooser -->
284
296
 
285
297
  ### Addition of Existing Users to a New Group
286
298
 
287
299
  The following example demonstrates the usage of the `Group` resource to create a group, wherein the `User` data source is employed to associate existing users with the newly formed group.
288
300
 
301
+ <!--Start PulumiCodeChooser -->
289
302
  ```python
290
303
  import pulumi
291
304
  import pulumi_newrelic as newrelic
@@ -302,6 +315,7 @@ class Group(pulumi.CustomResource):
302
315
  bar.id,
303
316
  ])
304
317
  ```
318
+ <!--End PulumiCodeChooser -->
305
319
 
306
320
  > **NOTE** Please note that the addition of users to groups is only possible when both the group and the users to be added to it belong to the _same authentication domain_. If the group being created and the users being added to it belong to different authentication domains, an error indicating `user not found` or an equivalent error will be thrown.
307
321
 
@@ -47,11 +47,13 @@ class InfraAlertConditionArgs:
47
47
  :param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
48
48
  :param pulumi.Input[int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
49
49
 
50
+ <!--Start PulumiCodeChooser -->
50
51
  ```python
51
52
  import pulumi
52
53
  ```
54
+ <!--End PulumiCodeChooser -->
53
55
  :param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
54
- :param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
56
+ :param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
55
57
  """
56
58
  pulumi.set(__self__, "policy_id", policy_id)
57
59
  pulumi.set(__self__, "type", type)
@@ -232,9 +234,11 @@ class InfraAlertConditionArgs:
232
234
  """
233
235
  Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
234
236
 
237
+ <!--Start PulumiCodeChooser -->
235
238
  ```python
236
239
  import pulumi
237
240
  ```
241
+ <!--End PulumiCodeChooser -->
238
242
  """
239
243
  return pulumi.get(self, "violation_close_timer")
240
244
 
@@ -258,7 +262,7 @@ class InfraAlertConditionArgs:
258
262
  @pulumi.getter
259
263
  def where(self) -> Optional[pulumi.Input[str]]:
260
264
  """
261
- If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
265
+ If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
262
266
  """
263
267
  return pulumi.get(self, "where")
264
268
 
@@ -307,11 +311,13 @@ class _InfraAlertConditionState:
307
311
  :param pulumi.Input[int] updated_at: The timestamp the alert condition was last updated.
308
312
  :param pulumi.Input[int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
309
313
 
314
+ <!--Start PulumiCodeChooser -->
310
315
  ```python
311
316
  import pulumi
312
317
  ```
318
+ <!--End PulumiCodeChooser -->
313
319
  :param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
314
- :param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
320
+ :param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
315
321
  """
316
322
  if comparison is not None:
317
323
  pulumi.set(__self__, "comparison", comparison)
@@ -536,9 +542,11 @@ class _InfraAlertConditionState:
536
542
  """
537
543
  Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
538
544
 
545
+ <!--Start PulumiCodeChooser -->
539
546
  ```python
540
547
  import pulumi
541
548
  ```
549
+ <!--End PulumiCodeChooser -->
542
550
  """
543
551
  return pulumi.get(self, "violation_close_timer")
544
552
 
@@ -562,7 +570,7 @@ class _InfraAlertConditionState:
562
570
  @pulumi.getter
563
571
  def where(self) -> Optional[pulumi.Input[str]]:
564
572
  """
565
- If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
573
+ If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
566
574
  """
567
575
  return pulumi.get(self, "where")
568
576
 
@@ -599,6 +607,7 @@ class InfraAlertCondition(pulumi.CustomResource):
599
607
 
600
608
  ## Example Usage
601
609
 
610
+ <!--Start PulumiCodeChooser -->
602
611
  ```python
603
612
  import pulumi
604
613
  import pulumi_newrelic as newrelic
@@ -656,6 +665,8 @@ class InfraAlertCondition(pulumi.CustomResource):
656
665
  duration=5,
657
666
  ))
658
667
  ```
668
+ <!--End PulumiCodeChooser -->
669
+
659
670
  ## Thresholds
660
671
 
661
672
  The `critical` and `warning` threshold mapping supports the following arguments:
@@ -668,6 +679,7 @@ class InfraAlertCondition(pulumi.CustomResource):
668
679
 
669
680
  Manage infra alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
670
681
 
682
+ <!--Start PulumiCodeChooser -->
671
683
  ```python
672
684
  import pulumi
673
685
  import pulumi_newrelic as newrelic
@@ -707,13 +719,14 @@ class InfraAlertCondition(pulumi.CustomResource):
707
719
  ),
708
720
  ])
709
721
  ```
722
+ <!--End PulumiCodeChooser -->
710
723
 
711
724
  ## Import
712
725
 
713
726
  Infrastructure alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
714
727
 
715
728
  ```sh
716
- $ pulumi import newrelic:index/infraAlertCondition:InfraAlertCondition main 12345:67890
729
+ $ pulumi import newrelic:index/infraAlertCondition:InfraAlertCondition main 12345:67890
717
730
  ```
718
731
 
719
732
  :param str resource_name: The name of the resource.
@@ -732,11 +745,13 @@ class InfraAlertCondition(pulumi.CustomResource):
732
745
  :param pulumi.Input[str] type: The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
733
746
  :param pulumi.Input[int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
734
747
 
748
+ <!--Start PulumiCodeChooser -->
735
749
  ```python
736
750
  import pulumi
737
751
  ```
752
+ <!--End PulumiCodeChooser -->
738
753
  :param pulumi.Input[pulumi.InputType['InfraAlertConditionWarningArgs']] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
739
- :param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
754
+ :param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
740
755
  """
741
756
  ...
742
757
  @overload
@@ -751,6 +766,7 @@ class InfraAlertCondition(pulumi.CustomResource):
751
766
 
752
767
  ## Example Usage
753
768
 
769
+ <!--Start PulumiCodeChooser -->
754
770
  ```python
755
771
  import pulumi
756
772
  import pulumi_newrelic as newrelic
@@ -808,6 +824,8 @@ class InfraAlertCondition(pulumi.CustomResource):
808
824
  duration=5,
809
825
  ))
810
826
  ```
827
+ <!--End PulumiCodeChooser -->
828
+
811
829
  ## Thresholds
812
830
 
813
831
  The `critical` and `warning` threshold mapping supports the following arguments:
@@ -820,6 +838,7 @@ class InfraAlertCondition(pulumi.CustomResource):
820
838
 
821
839
  Manage infra alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
822
840
 
841
+ <!--Start PulumiCodeChooser -->
823
842
  ```python
824
843
  import pulumi
825
844
  import pulumi_newrelic as newrelic
@@ -859,13 +878,14 @@ class InfraAlertCondition(pulumi.CustomResource):
859
878
  ),
860
879
  ])
861
880
  ```
881
+ <!--End PulumiCodeChooser -->
862
882
 
863
883
  ## Import
864
884
 
865
885
  Infrastructure alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
866
886
 
867
887
  ```sh
868
- $ pulumi import newrelic:index/infraAlertCondition:InfraAlertCondition main 12345:67890
888
+ $ pulumi import newrelic:index/infraAlertCondition:InfraAlertCondition main 12345:67890
869
889
  ```
870
890
 
871
891
  :param str resource_name: The name of the resource.
@@ -981,11 +1001,13 @@ class InfraAlertCondition(pulumi.CustomResource):
981
1001
  :param pulumi.Input[int] updated_at: The timestamp the alert condition was last updated.
982
1002
  :param pulumi.Input[int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
983
1003
 
1004
+ <!--Start PulumiCodeChooser -->
984
1005
  ```python
985
1006
  import pulumi
986
1007
  ```
1008
+ <!--End PulumiCodeChooser -->
987
1009
  :param pulumi.Input[pulumi.InputType['InfraAlertConditionWarningArgs']] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
988
- :param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
1010
+ :param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
989
1011
  """
990
1012
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
991
1013
 
@@ -1137,9 +1159,11 @@ class InfraAlertCondition(pulumi.CustomResource):
1137
1159
  """
1138
1160
  Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
1139
1161
 
1162
+ <!--Start PulumiCodeChooser -->
1140
1163
  ```python
1141
1164
  import pulumi
1142
1165
  ```
1166
+ <!--End PulumiCodeChooser -->
1143
1167
  """
1144
1168
  return pulumi.get(self, "violation_close_timer")
1145
1169
 
@@ -1155,7 +1179,7 @@ class InfraAlertCondition(pulumi.CustomResource):
1155
1179
  @pulumi.getter
1156
1180
  def where(self) -> pulumi.Output[Optional[str]]:
1157
1181
  """
1158
- If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
1182
+ If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
1159
1183
  """
1160
1184
  return pulumi.get(self, "where")
1161
1185