pulumi-newrelic 5.20.0a1709365820__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 (67) hide show
  1. pulumi_newrelic/__init__.py +10 -0
  2. pulumi_newrelic/account_management.py +6 -2
  3. pulumi_newrelic/alert_channel.py +34 -2
  4. pulumi_newrelic/alert_condition.py +26 -2
  5. pulumi_newrelic/alert_muting_rule.py +6 -2
  6. pulumi_newrelic/alert_policy.py +48 -4
  7. pulumi_newrelic/alert_policy_channel.py +8 -4
  8. pulumi_newrelic/api_access_key.py +6 -26
  9. pulumi_newrelic/browser_application.py +6 -2
  10. pulumi_newrelic/cloud/aws_govcloud_integrations.py +2 -2
  11. pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -2
  12. pulumi_newrelic/cloud/aws_integrations.py +6 -2
  13. pulumi_newrelic/cloud/aws_link_account.py +6 -2
  14. pulumi_newrelic/cloud/azure_integrations.py +6 -2
  15. pulumi_newrelic/cloud/azure_link_account.py +6 -2
  16. pulumi_newrelic/cloud/gcp_integrations.py +6 -2
  17. pulumi_newrelic/cloud/gcp_link_account.py +6 -2
  18. pulumi_newrelic/data_partition_rule.py +8 -2
  19. pulumi_newrelic/entity_tags.py +8 -4
  20. pulumi_newrelic/events_to_metrics_rule.py +8 -4
  21. pulumi_newrelic/get_account.py +4 -0
  22. pulumi_newrelic/get_alert_policy.py +3 -3
  23. pulumi_newrelic/get_application.py +4 -0
  24. pulumi_newrelic/get_authentication_domain.py +4 -0
  25. pulumi_newrelic/get_cloud_account.py +4 -0
  26. pulumi_newrelic/get_entity.py +66 -4
  27. pulumi_newrelic/get_group.py +145 -0
  28. pulumi_newrelic/get_key_transaction.py +4 -0
  29. pulumi_newrelic/get_obfuscation_expression.py +4 -0
  30. pulumi_newrelic/get_service_level_alert_helper.py +12 -0
  31. pulumi_newrelic/get_test_grok_pattern.py +4 -0
  32. pulumi_newrelic/get_user.py +10 -6
  33. pulumi_newrelic/group.py +426 -0
  34. pulumi_newrelic/infra_alert_condition.py +33 -9
  35. pulumi_newrelic/insights/event.py +6 -0
  36. pulumi_newrelic/log_parsing_rule.py +12 -2
  37. pulumi_newrelic/monitor_downtime.py +28 -2
  38. pulumi_newrelic/notification_channel.py +72 -0
  39. pulumi_newrelic/notification_destination.py +132 -2
  40. pulumi_newrelic/nrql_alert_condition.py +28 -4
  41. pulumi_newrelic/nrql_drop_rule.py +30 -4
  42. pulumi_newrelic/obfuscation_expression.py +6 -2
  43. pulumi_newrelic/obfuscation_rule.py +6 -2
  44. pulumi_newrelic/one_dashboard.py +2 -2
  45. pulumi_newrelic/one_dashboard_json.py +2 -2
  46. pulumi_newrelic/one_dashboard_raw.py +6 -0
  47. pulumi_newrelic/plugins/application_settings.py +22 -2
  48. pulumi_newrelic/plugins/workload.py +112 -4
  49. pulumi_newrelic/service_level.py +20 -6
  50. pulumi_newrelic/synthetics/alert_condition.py +26 -2
  51. pulumi_newrelic/synthetics/broken_links_monitor.py +12 -2
  52. pulumi_newrelic/synthetics/cert_check_monitor.py +12 -2
  53. pulumi_newrelic/synthetics/get_private_location.py +8 -0
  54. pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
  55. pulumi_newrelic/synthetics/monitor.py +20 -2
  56. pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
  57. pulumi_newrelic/synthetics/private_location.py +6 -2
  58. pulumi_newrelic/synthetics/script_monitor.py +20 -2
  59. pulumi_newrelic/synthetics/secure_credential.py +6 -2
  60. pulumi_newrelic/synthetics/step_monitor.py +8 -2
  61. pulumi_newrelic/user.py +4 -0
  62. pulumi_newrelic/workflow.py +22 -4
  63. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/METADATA +1 -1
  64. pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +89 -0
  65. pulumi_newrelic-5.20.0a1709365820.dist-info/RECORD +0 -87
  66. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/WHEEL +0 -0
  67. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/top_level.txt +0 -0
@@ -262,27 +262,17 @@ class ApiAccessKey(pulumi.CustomResource):
262
262
 
263
263
  ## Example Usage
264
264
 
265
- ```python
266
- import pulumi
267
- import pulumi_newrelic as newrelic
268
-
269
- foobar = newrelic.ApiAccessKey("foobar",
270
- account_id=1234567,
271
- ingest_type="LICENSE",
272
- key_type="INGEST",
273
- notes="To be used with service X")
274
- ```
275
-
276
265
  > **WARNING:** Creating 'Ingest - License' and 'Ingest - Browser' keys using this resource is restricted to 'core' or 'full platform' New Relic user accounts. If you've signed up as a 'basic' user with New Relic, or have been added as a 'basic' user to your organization on New Relic, you would not be able to use your account to create 'Ingest' keys. If you see the message `"You do not have permission to create this key"` in the response of the API called by this resource, it could be owing to the aforementioned. For more insights into user account types on New Relic and associated privileges, please check out this [page](https://docs.newrelic.com/docs/accounts/accounts-billing/new-relic-one-user-management/user-type/#api-access).
277
266
 
278
267
  ## Import
279
268
 
280
- Existing API access keys can be imported using a composite ID of `<api_access_key_id>:<key_type>`. `<key_type>` will be either `INGEST` or `USER`.
269
+ Existing API access keys can be imported using a composite ID of `<api_access_key_id>:<key_type>`. `<key_type>`
270
+ will be either `INGEST` or `USER`.
281
271
 
282
272
  For example:
283
273
 
284
274
  ```sh
285
- $ pulumi import newrelic:index/apiAccessKey:ApiAccessKey foobar "1234567:INGEST"
275
+ $ pulumi import newrelic:index/apiAccessKey:ApiAccessKey foobar "1234567:INGEST"
286
276
  ```
287
277
 
288
278
  :param str resource_name: The name of the resource.
@@ -317,27 +307,17 @@ class ApiAccessKey(pulumi.CustomResource):
317
307
 
318
308
  ## Example Usage
319
309
 
320
- ```python
321
- import pulumi
322
- import pulumi_newrelic as newrelic
323
-
324
- foobar = newrelic.ApiAccessKey("foobar",
325
- account_id=1234567,
326
- ingest_type="LICENSE",
327
- key_type="INGEST",
328
- notes="To be used with service X")
329
- ```
330
-
331
310
  > **WARNING:** Creating 'Ingest - License' and 'Ingest - Browser' keys using this resource is restricted to 'core' or 'full platform' New Relic user accounts. If you've signed up as a 'basic' user with New Relic, or have been added as a 'basic' user to your organization on New Relic, you would not be able to use your account to create 'Ingest' keys. If you see the message `"You do not have permission to create this key"` in the response of the API called by this resource, it could be owing to the aforementioned. For more insights into user account types on New Relic and associated privileges, please check out this [page](https://docs.newrelic.com/docs/accounts/accounts-billing/new-relic-one-user-management/user-type/#api-access).
332
311
 
333
312
  ## Import
334
313
 
335
- Existing API access keys can be imported using a composite ID of `<api_access_key_id>:<key_type>`. `<key_type>` will be either `INGEST` or `USER`.
314
+ Existing API access keys can be imported using a composite ID of `<api_access_key_id>:<key_type>`. `<key_type>`
315
+ will be either `INGEST` or `USER`.
336
316
 
337
317
  For example:
338
318
 
339
319
  ```sh
340
- $ pulumi import newrelic:index/apiAccessKey:ApiAccessKey foobar "1234567:INGEST"
320
+ $ pulumi import newrelic:index/apiAccessKey:ApiAccessKey foobar "1234567:INGEST"
341
321
  ```
342
322
 
343
323
  :param str resource_name: The name of the resource.
@@ -236,6 +236,7 @@ class BrowserApplication(pulumi.CustomResource):
236
236
  ## Example Usage
237
237
 
238
238
  Basic usage to create a standalone browser application.
239
+ <!--Start PulumiCodeChooser -->
239
240
  ```python
240
241
  import pulumi
241
242
  import pulumi_newrelic as newrelic
@@ -245,12 +246,13 @@ class BrowserApplication(pulumi.CustomResource):
245
246
  distributed_tracing_enabled=True,
246
247
  loader_type="SPA")
247
248
  ```
249
+ <!--End PulumiCodeChooser -->
248
250
 
249
251
  ## Import
250
252
 
251
253
  Browser applications can be imported using the GUID of the browser application.
252
254
 
253
- bash
255
+ bash
254
256
 
255
257
  ```sh
256
258
  $ pulumi import newrelic:index/browserApplication:BrowserApplication foo <GUID>
@@ -276,6 +278,7 @@ class BrowserApplication(pulumi.CustomResource):
276
278
  ## Example Usage
277
279
 
278
280
  Basic usage to create a standalone browser application.
281
+ <!--Start PulumiCodeChooser -->
279
282
  ```python
280
283
  import pulumi
281
284
  import pulumi_newrelic as newrelic
@@ -285,12 +288,13 @@ class BrowserApplication(pulumi.CustomResource):
285
288
  distributed_tracing_enabled=True,
286
289
  loader_type="SPA")
287
290
  ```
291
+ <!--End PulumiCodeChooser -->
288
292
 
289
293
  ## Import
290
294
 
291
295
  Browser applications can be imported using the GUID of the browser application.
292
296
 
293
- bash
297
+ bash
294
298
 
295
299
  ```sh
296
300
  $ pulumi import newrelic:index/browserApplication:BrowserApplication foo <GUID>
@@ -777,7 +777,7 @@ class AwsGovcloudIntegrations(pulumi.CustomResource):
777
777
 
778
778
  Integrate AWSGovCloud accounts can be imported using the `id`, e.g.
779
779
 
780
- bash
780
+ bash
781
781
 
782
782
  ```sh
783
783
  $ pulumi import newrelic:cloud/awsGovcloudIntegrations:AwsGovcloudIntegrations foo <id>
@@ -831,7 +831,7 @@ class AwsGovcloudIntegrations(pulumi.CustomResource):
831
831
 
832
832
  Integrate AWSGovCloud accounts can be imported using the `id`, e.g.
833
833
 
834
- bash
834
+ bash
835
835
 
836
836
  ```sh
837
837
  $ pulumi import newrelic:cloud/awsGovcloudIntegrations:AwsGovcloudIntegrations foo <id>
@@ -243,6 +243,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
243
243
 
244
244
  ## Example Usage
245
245
 
246
+ <!--Start PulumiCodeChooser -->
246
247
  ```python
247
248
  import pulumi
248
249
  import pulumi_newrelic as newrelic
@@ -254,12 +255,13 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
254
255
  metric_collection_mode="PULL",
255
256
  secret_access_key="secret access key of the aws govcloud account")
256
257
  ```
258
+ <!--End PulumiCodeChooser -->
257
259
 
258
260
  ## Import
259
261
 
260
262
  Linked AWSGovCloud accounts can be imported using the `id`, e.g.
261
263
 
262
- bash
264
+ bash
263
265
 
264
266
  ```sh
265
267
  $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
@@ -295,6 +297,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
295
297
 
296
298
  ## Example Usage
297
299
 
300
+ <!--Start PulumiCodeChooser -->
298
301
  ```python
299
302
  import pulumi
300
303
  import pulumi_newrelic as newrelic
@@ -306,12 +309,13 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
306
309
  metric_collection_mode="PULL",
307
310
  secret_access_key="secret access key of the aws govcloud account")
308
311
  ```
312
+ <!--End PulumiCodeChooser -->
309
313
 
310
314
  ## Import
311
315
 
312
316
  Linked AWSGovCloud accounts can be imported using the `id`, e.g.
313
317
 
314
- bash
318
+ bash
315
319
 
316
320
  ```sh
317
321
  $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
@@ -2075,6 +2075,7 @@ class AwsIntegrations(pulumi.CustomResource):
2075
2075
 
2076
2076
  Leave an integration block empty to use its default configuration. You can also use the full example, including the AWS set up, found in our guides.
2077
2077
 
2078
+ <!--Start PulumiCodeChooser -->
2078
2079
  ```python
2079
2080
  import pulumi
2080
2081
  import pulumi_newrelic as newrelic
@@ -2361,12 +2362,13 @@ class AwsIntegrations(pulumi.CustomResource):
2361
2362
  metrics_polling_interval=6000,
2362
2363
  ))
2363
2364
  ```
2365
+ <!--End PulumiCodeChooser -->
2364
2366
 
2365
2367
  ## Import
2366
2368
 
2367
2369
  Linked AWS account integrations can be imported using the `id`, e.g.
2368
2370
 
2369
- bash
2371
+ bash
2370
2372
 
2371
2373
  ```sh
2372
2374
  $ pulumi import newrelic:cloud/awsIntegrations:AwsIntegrations foo <id>
@@ -2511,6 +2513,7 @@ class AwsIntegrations(pulumi.CustomResource):
2511
2513
 
2512
2514
  Leave an integration block empty to use its default configuration. You can also use the full example, including the AWS set up, found in our guides.
2513
2515
 
2516
+ <!--Start PulumiCodeChooser -->
2514
2517
  ```python
2515
2518
  import pulumi
2516
2519
  import pulumi_newrelic as newrelic
@@ -2797,12 +2800,13 @@ class AwsIntegrations(pulumi.CustomResource):
2797
2800
  metrics_polling_interval=6000,
2798
2801
  ))
2799
2802
  ```
2803
+ <!--End PulumiCodeChooser -->
2800
2804
 
2801
2805
  ## Import
2802
2806
 
2803
2807
  Linked AWS account integrations can be imported using the `id`, e.g.
2804
2808
 
2805
- bash
2809
+ bash
2806
2810
 
2807
2811
  ```sh
2808
2812
  $ pulumi import newrelic:cloud/awsIntegrations:AwsIntegrations foo <id>
@@ -179,6 +179,7 @@ class AwsLinkAccount(pulumi.CustomResource):
179
179
 
180
180
  You can also use the full example, including the AWS set up, found in our guides.
181
181
 
182
+ <!--Start PulumiCodeChooser -->
182
183
  ```python
183
184
  import pulumi
184
185
  import pulumi_newrelic as newrelic
@@ -187,12 +188,13 @@ class AwsLinkAccount(pulumi.CustomResource):
187
188
  arn="arn:aws:service:region:account-id:resource-id",
188
189
  metric_collection_mode="PUSH")
189
190
  ```
191
+ <!--End PulumiCodeChooser -->
190
192
 
191
193
  ## Import
192
194
 
193
195
  Linked AWS accounts can be imported using the `id`, e.g.
194
196
 
195
- bash
197
+ bash
196
198
 
197
199
  ```sh
198
200
  $ pulumi import newrelic:cloud/awsLinkAccount:AwsLinkAccount foo <id>
@@ -226,6 +228,7 @@ class AwsLinkAccount(pulumi.CustomResource):
226
228
 
227
229
  You can also use the full example, including the AWS set up, found in our guides.
228
230
 
231
+ <!--Start PulumiCodeChooser -->
229
232
  ```python
230
233
  import pulumi
231
234
  import pulumi_newrelic as newrelic
@@ -234,12 +237,13 @@ class AwsLinkAccount(pulumi.CustomResource):
234
237
  arn="arn:aws:service:region:account-id:resource-id",
235
238
  metric_collection_mode="PUSH")
236
239
  ```
240
+ <!--End PulumiCodeChooser -->
237
241
 
238
242
  ## Import
239
243
 
240
244
  Linked AWS accounts can be imported using the `id`, e.g.
241
245
 
242
- bash
246
+ bash
243
247
 
244
248
  ```sh
245
249
  $ pulumi import newrelic:cloud/awsLinkAccount:AwsLinkAccount foo <id>
@@ -1187,6 +1187,7 @@ class AzureIntegrations(pulumi.CustomResource):
1187
1187
 
1188
1188
  Leave an integration block empty to use its default configuration. You can also use the full example, including the Azure set up, found in our guides.
1189
1189
 
1190
+ <!--Start PulumiCodeChooser -->
1190
1191
  ```python
1191
1192
  import pulumi
1192
1193
  import pulumi_newrelic as newrelic
@@ -1336,12 +1337,13 @@ class AzureIntegrations(pulumi.CustomResource):
1336
1337
  resource_groups=["resource_groups"],
1337
1338
  ))
1338
1339
  ```
1340
+ <!--End PulumiCodeChooser -->
1339
1341
 
1340
1342
  ## Import
1341
1343
 
1342
1344
  Linked Azure accounts can be imported using `id`, you can find the `id` of existing Azure linked accounts in Azure dashboard under Infrastructure in NewRelic.
1343
1345
 
1344
- bash
1346
+ bash
1345
1347
 
1346
1348
  ```sh
1347
1349
  $ pulumi import newrelic:cloud/azureIntegrations:AzureIntegrations foo <id>
@@ -1409,6 +1411,7 @@ class AzureIntegrations(pulumi.CustomResource):
1409
1411
 
1410
1412
  Leave an integration block empty to use its default configuration. You can also use the full example, including the Azure set up, found in our guides.
1411
1413
 
1414
+ <!--Start PulumiCodeChooser -->
1412
1415
  ```python
1413
1416
  import pulumi
1414
1417
  import pulumi_newrelic as newrelic
@@ -1558,12 +1561,13 @@ class AzureIntegrations(pulumi.CustomResource):
1558
1561
  resource_groups=["resource_groups"],
1559
1562
  ))
1560
1563
  ```
1564
+ <!--End PulumiCodeChooser -->
1561
1565
 
1562
1566
  ## Import
1563
1567
 
1564
1568
  Linked Azure accounts can be imported using `id`, you can find the `id` of existing Azure linked accounts in Azure dashboard under Infrastructure in NewRelic.
1565
1569
 
1566
- bash
1570
+ bash
1567
1571
 
1568
1572
  ```sh
1569
1573
  $ pulumi import newrelic:cloud/azureIntegrations:AzureIntegrations foo <id>
@@ -242,6 +242,7 @@ class AzureLinkAccount(pulumi.CustomResource):
242
242
 
243
243
  You can also use the full example, including the Azure set up, found in our guides.
244
244
 
245
+ <!--Start PulumiCodeChooser -->
245
246
  ```python
246
247
  import pulumi
247
248
  import pulumi_newrelic as newrelic
@@ -253,12 +254,13 @@ class AzureLinkAccount(pulumi.CustomResource):
253
254
  subscription_id="Subscription ID of Azure",
254
255
  tenant_id="Tenant ID of the Azure")
255
256
  ```
257
+ <!--End PulumiCodeChooser -->
256
258
 
257
259
  ## Import
258
260
 
259
261
  Linked Azure accounts can be imported using `id`, you can find the `id` of existing Azure linked accounts in Azure dashboard under Infrastructure in NewRelic
260
262
 
261
- bash
263
+ bash
262
264
 
263
265
  ```sh
264
266
  $ pulumi import newrelic:cloud/azureLinkAccount:AzureLinkAccount foo <id>
@@ -294,6 +296,7 @@ class AzureLinkAccount(pulumi.CustomResource):
294
296
 
295
297
  You can also use the full example, including the Azure set up, found in our guides.
296
298
 
299
+ <!--Start PulumiCodeChooser -->
297
300
  ```python
298
301
  import pulumi
299
302
  import pulumi_newrelic as newrelic
@@ -305,12 +308,13 @@ class AzureLinkAccount(pulumi.CustomResource):
305
308
  subscription_id="Subscription ID of Azure",
306
309
  tenant_id="Tenant ID of the Azure")
307
310
  ```
311
+ <!--End PulumiCodeChooser -->
308
312
 
309
313
  ## Import
310
314
 
311
315
  Linked Azure accounts can be imported using `id`, you can find the `id` of existing Azure linked accounts in Azure dashboard under Infrastructure in NewRelic
312
316
 
313
- bash
317
+ bash
314
318
 
315
319
  ```sh
316
320
  $ pulumi import newrelic:cloud/azureLinkAccount:AzureLinkAccount foo <id>
@@ -971,6 +971,7 @@ class GcpIntegrations(pulumi.CustomResource):
971
971
 
972
972
  Leave an integration block empty to use its default configuration. You can also use the full example, including the GCP set up, found in our guides.
973
973
 
974
+ <!--Start PulumiCodeChooser -->
974
975
  ```python
975
976
  import pulumi
976
977
  import pulumi_newrelic as newrelic
@@ -1058,12 +1059,13 @@ class GcpIntegrations(pulumi.CustomResource):
1058
1059
  metrics_polling_interval=400,
1059
1060
  ))
1060
1061
  ```
1062
+ <!--End PulumiCodeChooser -->
1061
1063
 
1062
1064
  ## Import
1063
1065
 
1064
1066
  Linked GCP account integrations can be imported using the `id`, e.g.
1065
1067
 
1066
- bash
1068
+ bash
1067
1069
 
1068
1070
  ```sh
1069
1071
  $ pulumi import newrelic:cloud/gcpIntegrations:GcpIntegrations foo <id>
@@ -1119,6 +1121,7 @@ class GcpIntegrations(pulumi.CustomResource):
1119
1121
 
1120
1122
  Leave an integration block empty to use its default configuration. You can also use the full example, including the GCP set up, found in our guides.
1121
1123
 
1124
+ <!--Start PulumiCodeChooser -->
1122
1125
  ```python
1123
1126
  import pulumi
1124
1127
  import pulumi_newrelic as newrelic
@@ -1206,12 +1209,13 @@ class GcpIntegrations(pulumi.CustomResource):
1206
1209
  metrics_polling_interval=400,
1207
1210
  ))
1208
1211
  ```
1212
+ <!--End PulumiCodeChooser -->
1209
1213
 
1210
1214
  ## Import
1211
1215
 
1212
1216
  Linked GCP account integrations can be imported using the `id`, e.g.
1213
1217
 
1214
- bash
1218
+ bash
1215
1219
 
1216
1220
  ```sh
1217
1221
  $ pulumi import newrelic:cloud/gcpIntegrations:GcpIntegrations foo <id>
@@ -150,6 +150,7 @@ class GcpLinkAccount(pulumi.CustomResource):
150
150
 
151
151
  You can also use the full example, including the GCP set up, found in our guides.
152
152
 
153
+ <!--Start PulumiCodeChooser -->
153
154
  ```python
154
155
  import pulumi
155
156
  import pulumi_newrelic as newrelic
@@ -158,12 +159,13 @@ class GcpLinkAccount(pulumi.CustomResource):
158
159
  account_id="account id of newrelic account",
159
160
  project_id="id of the Project")
160
161
  ```
162
+ <!--End PulumiCodeChooser -->
161
163
 
162
164
  ## Import
163
165
 
164
166
  Linked GCP accounts can be imported using `id`, you can find the `id` of an existing GCP linked accounts in GCP dashboard under Infrastructure in Newrelic Console.
165
167
 
166
- bash
168
+ bash
167
169
 
168
170
  ```sh
169
171
  $ pulumi import newrelic:cloud/gcpLinkAccount:GcpLinkAccount newrelic_cloud_gcp_link_account.foo <id>
@@ -200,6 +202,7 @@ class GcpLinkAccount(pulumi.CustomResource):
200
202
 
201
203
  You can also use the full example, including the GCP set up, found in our guides.
202
204
 
205
+ <!--Start PulumiCodeChooser -->
203
206
  ```python
204
207
  import pulumi
205
208
  import pulumi_newrelic as newrelic
@@ -208,12 +211,13 @@ class GcpLinkAccount(pulumi.CustomResource):
208
211
  account_id="account id of newrelic account",
209
212
  project_id="id of the Project")
210
213
  ```
214
+ <!--End PulumiCodeChooser -->
211
215
 
212
216
  ## Import
213
217
 
214
218
  Linked GCP accounts can be imported using `id`, you can find the `id` of an existing GCP linked accounts in GCP dashboard under Infrastructure in Newrelic Console.
215
219
 
216
- bash
220
+ bash
217
221
 
218
222
  ```sh
219
223
  $ pulumi import newrelic:cloud/gcpLinkAccount:GcpLinkAccount newrelic_cloud_gcp_link_account.foo <id>
@@ -248,6 +248,7 @@ class DataPartitionRule(pulumi.CustomResource):
248
248
 
249
249
  ## Example Usage
250
250
 
251
+ <!--Start PulumiCodeChooser -->
251
252
  ```python
252
253
  import pulumi
253
254
  import pulumi_newrelic as newrelic
@@ -259,6 +260,8 @@ class DataPartitionRule(pulumi.CustomResource):
259
260
  retention_policy="STANDARD",
260
261
  target_data_partition="Log_name")
261
262
  ```
263
+ <!--End PulumiCodeChooser -->
264
+
262
265
  ## Additional Information
263
266
 
264
267
  More details about the data partition can be found [here](https://docs.newrelic.com/docs/logs/ui-data/data-partitions/)
@@ -267,7 +270,7 @@ class DataPartitionRule(pulumi.CustomResource):
267
270
 
268
271
  New Relic data partition rule can be imported using the rule ID, e.g.
269
272
 
270
- bash
273
+ bash
271
274
 
272
275
  ```sh
273
276
  $ pulumi import newrelic:index/dataPartitionRule:DataPartitionRule foo <id>
@@ -293,6 +296,7 @@ class DataPartitionRule(pulumi.CustomResource):
293
296
 
294
297
  ## Example Usage
295
298
 
299
+ <!--Start PulumiCodeChooser -->
296
300
  ```python
297
301
  import pulumi
298
302
  import pulumi_newrelic as newrelic
@@ -304,6 +308,8 @@ class DataPartitionRule(pulumi.CustomResource):
304
308
  retention_policy="STANDARD",
305
309
  target_data_partition="Log_name")
306
310
  ```
311
+ <!--End PulumiCodeChooser -->
312
+
307
313
  ## Additional Information
308
314
 
309
315
  More details about the data partition can be found [here](https://docs.newrelic.com/docs/logs/ui-data/data-partitions/)
@@ -312,7 +318,7 @@ class DataPartitionRule(pulumi.CustomResource):
312
318
 
313
319
  New Relic data partition rule can be imported using the rule ID, e.g.
314
320
 
315
- bash
321
+ bash
316
322
 
317
323
  ```sh
318
324
  $ pulumi import newrelic:index/dataPartitionRule:DataPartitionRule foo <id>
@@ -104,6 +104,7 @@ class EntityTags(pulumi.CustomResource):
104
104
 
105
105
  ## Example Usage
106
106
 
107
+ <!--Start PulumiCodeChooser -->
107
108
  ```python
108
109
  import pulumi
109
110
  import pulumi_newrelic as newrelic
@@ -127,14 +128,15 @@ class EntityTags(pulumi.CustomResource):
127
128
  ),
128
129
  ])
129
130
  ```
131
+ <!--End PulumiCodeChooser -->
130
132
 
131
133
  ## Import
132
134
 
133
135
  New Relic One entity tags can be imported using a concatenated string of the format
134
136
 
135
- `<guid>`, e.g.
137
+ `<guid>`, e.g.
136
138
 
137
- bash
139
+ bash
138
140
 
139
141
  ```sh
140
142
  $ pulumi import newrelic:index/entityTags:EntityTags foo MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
@@ -156,6 +158,7 @@ class EntityTags(pulumi.CustomResource):
156
158
 
157
159
  ## Example Usage
158
160
 
161
+ <!--Start PulumiCodeChooser -->
159
162
  ```python
160
163
  import pulumi
161
164
  import pulumi_newrelic as newrelic
@@ -179,14 +182,15 @@ class EntityTags(pulumi.CustomResource):
179
182
  ),
180
183
  ])
181
184
  ```
185
+ <!--End PulumiCodeChooser -->
182
186
 
183
187
  ## Import
184
188
 
185
189
  New Relic One entity tags can be imported using a concatenated string of the format
186
190
 
187
- `<guid>`, e.g.
191
+ `<guid>`, e.g.
188
192
 
189
- bash
193
+ bash
190
194
 
191
195
  ```sh
192
196
  $ pulumi import newrelic:index/entityTags:EntityTags foo MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
@@ -218,6 +218,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
218
218
 
219
219
  ## Example Usage
220
220
 
221
+ <!--Start PulumiCodeChooser -->
221
222
  ```python
222
223
  import pulumi
223
224
  import pulumi_newrelic as newrelic
@@ -227,14 +228,15 @@ class EventsToMetricsRule(pulumi.CustomResource):
227
228
  description="Example description",
228
229
  nrql="SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name")
229
230
  ```
231
+ <!--End PulumiCodeChooser -->
230
232
 
231
233
  ## Import
232
234
 
233
235
  New Relic Events to Metrics rules can be imported using a concatenated string of the format
234
236
 
235
- `<account_id>:<rule_id>`, e.g.
237
+ `<account_id>:<rule_id>`, e.g.
236
238
 
237
- bash
239
+ bash
238
240
 
239
241
  ```sh
240
242
  $ pulumi import newrelic:index/eventsToMetricsRule:EventsToMetricsRule foo 12345:34567
@@ -259,6 +261,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
259
261
 
260
262
  ## Example Usage
261
263
 
264
+ <!--Start PulumiCodeChooser -->
262
265
  ```python
263
266
  import pulumi
264
267
  import pulumi_newrelic as newrelic
@@ -268,14 +271,15 @@ class EventsToMetricsRule(pulumi.CustomResource):
268
271
  description="Example description",
269
272
  nrql="SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name")
270
273
  ```
274
+ <!--End PulumiCodeChooser -->
271
275
 
272
276
  ## Import
273
277
 
274
278
  New Relic Events to Metrics rules can be imported using a concatenated string of the format
275
279
 
276
- `<account_id>:<rule_id>`, e.g.
280
+ `<account_id>:<rule_id>`, e.g.
277
281
 
278
- bash
282
+ bash
279
283
 
280
284
  ```sh
281
285
  $ pulumi import newrelic:index/eventsToMetricsRule:EventsToMetricsRule foo 12345:34567
@@ -82,12 +82,14 @@ def get_account(account_id: Optional[int] = None,
82
82
 
83
83
  ## Example Usage
84
84
 
85
+ <!--Start PulumiCodeChooser -->
85
86
  ```python
86
87
  import pulumi
87
88
  import pulumi_newrelic as newrelic
88
89
 
89
90
  acc = newrelic.get_account(scope="global")
90
91
  ```
92
+ <!--End PulumiCodeChooser -->
91
93
 
92
94
 
93
95
  :param int account_id: The account ID in New Relic.
@@ -120,12 +122,14 @@ def get_account_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
120
122
 
121
123
  ## Example Usage
122
124
 
125
+ <!--Start PulumiCodeChooser -->
123
126
  ```python
124
127
  import pulumi
125
128
  import pulumi_newrelic as newrelic
126
129
 
127
130
  acc = newrelic.get_account(scope="global")
128
131
  ```
132
+ <!--End PulumiCodeChooser -->
129
133
 
130
134
 
131
135
  :param int account_id: The account ID in New Relic.
@@ -66,7 +66,7 @@ class GetAlertPolicyResult:
66
66
  @pulumi.getter(name="incidentPreference")
67
67
  def incident_preference(self) -> Optional[str]:
68
68
  """
69
- The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
69
+ The rollup strategy for the policy, which can have one of the following values:
70
70
  """
71
71
  return pulumi.get(self, "incident_preference")
72
72
 
@@ -107,7 +107,7 @@ def get_alert_policy(account_id: Optional[int] = None,
107
107
 
108
108
 
109
109
  :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`.
110
- :param str incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
110
+ :param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
111
111
  :param str name: The name of the alert policy in New Relic.
112
112
  """
113
113
  __args__ = dict()
@@ -136,7 +136,7 @@ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[int]]] =
136
136
 
137
137
 
138
138
  :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`.
139
- :param str incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
139
+ :param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
140
140
  :param str name: The name of the alert policy in New Relic.
141
141
  """
142
142
  ...