pulumi-newrelic 5.22.0a1711544599__py3-none-any.whl → 5.23.0__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 (68) hide show
  1. pulumi_newrelic/_inputs.py +183 -270
  2. pulumi_newrelic/account_management.py +20 -20
  3. pulumi_newrelic/alert_channel.py +76 -92
  4. pulumi_newrelic/alert_condition.py +104 -163
  5. pulumi_newrelic/alert_muting_rule.py +33 -35
  6. pulumi_newrelic/alert_policy.py +68 -43
  7. pulumi_newrelic/alert_policy_channel.py +12 -8
  8. pulumi_newrelic/cloud/_inputs.py +322 -1072
  9. pulumi_newrelic/cloud/aws_govcloud_link_account.py +4 -6
  10. pulumi_newrelic/cloud/aws_integrations.py +13 -15
  11. pulumi_newrelic/cloud/aws_link_account.py +4 -6
  12. pulumi_newrelic/cloud/azure_integrations.py +10 -12
  13. pulumi_newrelic/cloud/azure_link_account.py +4 -6
  14. pulumi_newrelic/cloud/gcp_integrations.py +6 -6
  15. pulumi_newrelic/cloud/gcp_link_account.py +4 -6
  16. pulumi_newrelic/cloud/outputs.py +322 -1072
  17. pulumi_newrelic/data_partition_rule.py +0 -4
  18. pulumi_newrelic/entity_tags.py +13 -17
  19. pulumi_newrelic/events_to_metrics_rule.py +2 -4
  20. pulumi_newrelic/get_account.py +0 -4
  21. pulumi_newrelic/get_application.py +8 -10
  22. pulumi_newrelic/get_authentication_domain.py +4 -8
  23. pulumi_newrelic/get_cloud_account.py +0 -4
  24. pulumi_newrelic/get_entity.py +48 -33
  25. pulumi_newrelic/get_group.py +42 -8
  26. pulumi_newrelic/get_key_transaction.py +8 -10
  27. pulumi_newrelic/get_notification_destination.py +20 -1
  28. pulumi_newrelic/get_obfuscation_expression.py +2 -4
  29. pulumi_newrelic/get_service_level_alert_helper.py +22 -46
  30. pulumi_newrelic/get_test_grok_pattern.py +4 -6
  31. pulumi_newrelic/get_user.py +0 -4
  32. pulumi_newrelic/group.py +40 -42
  33. pulumi_newrelic/infra_alert_condition.py +154 -145
  34. pulumi_newrelic/insights/event.py +8 -25
  35. pulumi_newrelic/log_parsing_rule.py +6 -10
  36. pulumi_newrelic/monitor_downtime.py +174 -193
  37. pulumi_newrelic/notification_channel.py +124 -150
  38. pulumi_newrelic/notification_destination.py +95 -1
  39. pulumi_newrelic/nrql_alert_condition.py +38 -48
  40. pulumi_newrelic/nrql_drop_rule.py +34 -38
  41. pulumi_newrelic/obfuscation_expression.py +2 -4
  42. pulumi_newrelic/obfuscation_rule.py +4 -4
  43. pulumi_newrelic/one_dashboard.py +42 -48
  44. pulumi_newrelic/one_dashboard_raw.py +86 -86
  45. pulumi_newrelic/outputs.py +180 -270
  46. pulumi_newrelic/plugins/_inputs.py +16 -16
  47. pulumi_newrelic/plugins/application_settings.py +20 -36
  48. pulumi_newrelic/plugins/outputs.py +16 -16
  49. pulumi_newrelic/plugins/workload.py +158 -40
  50. pulumi_newrelic/service_level.py +38 -123
  51. pulumi_newrelic/synthetics/alert_condition.py +34 -78
  52. pulumi_newrelic/synthetics/broken_links_monitor.py +18 -20
  53. pulumi_newrelic/synthetics/cert_check_monitor.py +16 -18
  54. pulumi_newrelic/synthetics/get_private_location.py +0 -8
  55. pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
  56. pulumi_newrelic/synthetics/monitor.py +48 -52
  57. pulumi_newrelic/synthetics/multi_location_alert_condition.py +69 -83
  58. pulumi_newrelic/synthetics/private_location.py +6 -6
  59. pulumi_newrelic/synthetics/script_monitor.py +38 -42
  60. pulumi_newrelic/synthetics/secure_credential.py +25 -22
  61. pulumi_newrelic/synthetics/step_monitor.py +18 -20
  62. pulumi_newrelic/user.py +8 -10
  63. pulumi_newrelic/workflow.py +20 -24
  64. {pulumi_newrelic-5.22.0a1711544599.dist-info → pulumi_newrelic-5.23.0.dist-info}/METADATA +1 -1
  65. pulumi_newrelic-5.23.0.dist-info/RECORD +89 -0
  66. pulumi_newrelic-5.22.0a1711544599.dist-info/RECORD +0 -89
  67. {pulumi_newrelic-5.22.0a1711544599.dist-info → pulumi_newrelic-5.23.0.dist-info}/WHEEL +0 -0
  68. {pulumi_newrelic-5.22.0a1711544599.dist-info → pulumi_newrelic-5.23.0.dist-info}/top_level.txt +0 -0
@@ -21,15 +21,9 @@ class AlertConditionArgs:
21
21
  runbook_url: Optional[pulumi.Input[str]] = None):
22
22
  """
23
23
  The set of arguments for constructing a AlertCondition resource.
24
- :param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
24
+ :param pulumi.Input[str] monitor_id: The ID of the Synthetics monitor to be referenced in the alert condition.
25
25
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
26
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
27
-
28
- <!--Start PulumiCodeChooser -->
29
- ```python
30
- import pulumi
31
- ```
32
- <!--End PulumiCodeChooser -->
26
+ :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
33
27
  :param pulumi.Input[str] name: The title of this condition.
34
28
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
35
29
  """
@@ -46,7 +40,7 @@ class AlertConditionArgs:
46
40
  @pulumi.getter(name="monitorId")
47
41
  def monitor_id(self) -> pulumi.Input[str]:
48
42
  """
49
- The GUID of the Synthetics monitor to be referenced in the alert condition.
43
+ The ID of the Synthetics monitor to be referenced in the alert condition.
50
44
  """
51
45
  return pulumi.get(self, "monitor_id")
52
46
 
@@ -70,13 +64,7 @@ class AlertConditionArgs:
70
64
  @pulumi.getter
71
65
  def enabled(self) -> Optional[pulumi.Input[bool]]:
72
66
  """
73
- Set whether to enable the alert condition. Defaults to `true`.
74
-
75
- <!--Start PulumiCodeChooser -->
76
- ```python
77
- import pulumi
78
- ```
79
- <!--End PulumiCodeChooser -->
67
+ Set whether to enable the alert condition. Defaults to true.
80
68
  """
81
69
  return pulumi.get(self, "enabled")
82
70
 
@@ -120,15 +108,9 @@ class _AlertConditionState:
120
108
  runbook_url: Optional[pulumi.Input[str]] = None):
121
109
  """
122
110
  Input properties used for looking up and filtering AlertCondition resources.
123
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
124
-
125
- <!--Start PulumiCodeChooser -->
126
- ```python
127
- import pulumi
128
- ```
129
- <!--End PulumiCodeChooser -->
111
+ :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
130
112
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
131
- :param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
113
+ :param pulumi.Input[str] monitor_id: The ID of the Synthetics monitor to be referenced in the alert condition.
132
114
  :param pulumi.Input[str] name: The title of this condition.
133
115
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
134
116
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
@@ -150,13 +132,7 @@ class _AlertConditionState:
150
132
  @pulumi.getter
151
133
  def enabled(self) -> Optional[pulumi.Input[bool]]:
152
134
  """
153
- Set whether to enable the alert condition. Defaults to `true`.
154
-
155
- <!--Start PulumiCodeChooser -->
156
- ```python
157
- import pulumi
158
- ```
159
- <!--End PulumiCodeChooser -->
135
+ Set whether to enable the alert condition. Defaults to true.
160
136
  """
161
137
  return pulumi.get(self, "enabled")
162
138
 
@@ -180,7 +156,7 @@ class _AlertConditionState:
180
156
  @pulumi.getter(name="monitorId")
181
157
  def monitor_id(self) -> Optional[pulumi.Input[str]]:
182
158
  """
183
- The GUID of the Synthetics monitor to be referenced in the alert condition.
159
+ The ID of the Synthetics monitor to be referenced in the alert condition.
184
160
  """
185
161
  return pulumi.get(self, "monitor_id")
186
162
 
@@ -243,30 +219,29 @@ class AlertCondition(pulumi.CustomResource):
243
219
 
244
220
  ## Example Usage
245
221
 
246
- <!--Start PulumiCodeChooser -->
247
222
  ```python
248
223
  import pulumi
249
224
  import pulumi_newrelic as newrelic
250
225
 
251
226
  foo = newrelic.synthetics.AlertCondition("foo",
252
- policy_id=newrelic_alert_policy["foo"]["id"],
253
- monitor_id=newrelic_synthetics_monitor["foo"]["id"],
227
+ policy_id=foo_newrelic_alert_policy["id"],
228
+ name="foo",
229
+ monitor_id=foo_newrelic_synthetics_monitor["id"],
254
230
  runbook_url="https://www.example.com")
255
231
  ```
256
- <!--End PulumiCodeChooser -->
257
232
 
258
233
  ## Tags
259
234
 
260
235
  Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
261
236
 
262
- <!--Start PulumiCodeChooser -->
263
237
  ```python
264
238
  import pulumi
265
239
  import pulumi_newrelic as newrelic
266
240
 
267
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
268
- foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
241
+ foo = newrelic.AlertPolicy("foo", name="foo policy")
242
+ foo_monitor = newrelic.synthetics.Monitor("foo",
269
243
  status="ENABLED",
244
+ name="foo monitor",
270
245
  period="EVERY_MINUTE",
271
246
  uri="https://www.one.newrelic.com",
272
247
  type="SIMPLE",
@@ -283,11 +258,12 @@ class AlertCondition(pulumi.CustomResource):
283
258
  key="some_key",
284
259
  values=["some_value"],
285
260
  )])
286
- foo_alert_condition = newrelic.synthetics.AlertCondition("fooAlertCondition",
287
- policy_id=foo_alert_policy.id,
261
+ foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
262
+ policy_id=foo.id,
263
+ name="foo synthetics condition",
288
264
  monitor_id=foo_monitor.id,
289
265
  runbook_url="https://www.example.com")
290
- my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
266
+ my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
291
267
  guid=foo_alert_condition.entity_guid,
292
268
  tags=[
293
269
  newrelic.EntityTagsTagArgs(
@@ -303,7 +279,6 @@ class AlertCondition(pulumi.CustomResource):
303
279
  ),
304
280
  ])
305
281
  ```
306
- <!--End PulumiCodeChooser -->
307
282
 
308
283
  ## Import
309
284
 
@@ -315,14 +290,8 @@ class AlertCondition(pulumi.CustomResource):
315
290
 
316
291
  :param str resource_name: The name of the resource.
317
292
  :param pulumi.ResourceOptions opts: Options for the resource.
318
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
319
-
320
- <!--Start PulumiCodeChooser -->
321
- ```python
322
- import pulumi
323
- ```
324
- <!--End PulumiCodeChooser -->
325
- :param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
293
+ :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
294
+ :param pulumi.Input[str] monitor_id: The ID of the Synthetics monitor to be referenced in the alert condition.
326
295
  :param pulumi.Input[str] name: The title of this condition.
327
296
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
328
297
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
@@ -340,30 +309,29 @@ class AlertCondition(pulumi.CustomResource):
340
309
 
341
310
  ## Example Usage
342
311
 
343
- <!--Start PulumiCodeChooser -->
344
312
  ```python
345
313
  import pulumi
346
314
  import pulumi_newrelic as newrelic
347
315
 
348
316
  foo = newrelic.synthetics.AlertCondition("foo",
349
- policy_id=newrelic_alert_policy["foo"]["id"],
350
- monitor_id=newrelic_synthetics_monitor["foo"]["id"],
317
+ policy_id=foo_newrelic_alert_policy["id"],
318
+ name="foo",
319
+ monitor_id=foo_newrelic_synthetics_monitor["id"],
351
320
  runbook_url="https://www.example.com")
352
321
  ```
353
- <!--End PulumiCodeChooser -->
354
322
 
355
323
  ## Tags
356
324
 
357
325
  Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
358
326
 
359
- <!--Start PulumiCodeChooser -->
360
327
  ```python
361
328
  import pulumi
362
329
  import pulumi_newrelic as newrelic
363
330
 
364
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
365
- foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
331
+ foo = newrelic.AlertPolicy("foo", name="foo policy")
332
+ foo_monitor = newrelic.synthetics.Monitor("foo",
366
333
  status="ENABLED",
334
+ name="foo monitor",
367
335
  period="EVERY_MINUTE",
368
336
  uri="https://www.one.newrelic.com",
369
337
  type="SIMPLE",
@@ -380,11 +348,12 @@ class AlertCondition(pulumi.CustomResource):
380
348
  key="some_key",
381
349
  values=["some_value"],
382
350
  )])
383
- foo_alert_condition = newrelic.synthetics.AlertCondition("fooAlertCondition",
384
- policy_id=foo_alert_policy.id,
351
+ foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
352
+ policy_id=foo.id,
353
+ name="foo synthetics condition",
385
354
  monitor_id=foo_monitor.id,
386
355
  runbook_url="https://www.example.com")
387
- my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
356
+ my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
388
357
  guid=foo_alert_condition.entity_guid,
389
358
  tags=[
390
359
  newrelic.EntityTagsTagArgs(
@@ -400,7 +369,6 @@ class AlertCondition(pulumi.CustomResource):
400
369
  ),
401
370
  ])
402
371
  ```
403
- <!--End PulumiCodeChooser -->
404
372
 
405
373
  ## Import
406
374
 
@@ -472,15 +440,9 @@ class AlertCondition(pulumi.CustomResource):
472
440
  :param str resource_name: The unique name of the resulting resource.
473
441
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
474
442
  :param pulumi.ResourceOptions opts: Options for the resource.
475
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
476
-
477
- <!--Start PulumiCodeChooser -->
478
- ```python
479
- import pulumi
480
- ```
481
- <!--End PulumiCodeChooser -->
443
+ :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
482
444
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
483
- :param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
445
+ :param pulumi.Input[str] monitor_id: The ID of the Synthetics monitor to be referenced in the alert condition.
484
446
  :param pulumi.Input[str] name: The title of this condition.
485
447
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
486
448
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
@@ -501,13 +463,7 @@ class AlertCondition(pulumi.CustomResource):
501
463
  @pulumi.getter
502
464
  def enabled(self) -> pulumi.Output[Optional[bool]]:
503
465
  """
504
- Set whether to enable the alert condition. Defaults to `true`.
505
-
506
- <!--Start PulumiCodeChooser -->
507
- ```python
508
- import pulumi
509
- ```
510
- <!--End PulumiCodeChooser -->
466
+ Set whether to enable the alert condition. Defaults to true.
511
467
  """
512
468
  return pulumi.get(self, "enabled")
513
469
 
@@ -523,7 +479,7 @@ class AlertCondition(pulumi.CustomResource):
523
479
  @pulumi.getter(name="monitorId")
524
480
  def monitor_id(self) -> pulumi.Output[str]:
525
481
  """
526
- The GUID of the Synthetics monitor to be referenced in the alert condition.
482
+ The ID of the Synthetics monitor to be referenced in the alert condition.
527
483
  """
528
484
  return pulumi.get(self, "monitor_id")
529
485
 
@@ -407,24 +407,23 @@ class BrokenLinksMonitor(pulumi.CustomResource):
407
407
 
408
408
  ## Example Usage
409
409
 
410
- <!--Start PulumiCodeChooser -->
411
410
  ```python
412
411
  import pulumi
413
412
  import pulumi_newrelic as newrelic
414
413
 
415
414
  foo = newrelic.synthetics.BrokenLinksMonitor("foo",
415
+ name="Sample Broken Links Monitor",
416
+ uri="https://www.one.example.com",
416
417
  locations_publics=["AP_SOUTH_1"],
417
418
  period="EVERY_6_HOURS",
419
+ status="ENABLED",
418
420
  runtime_type="NODE_API",
419
421
  runtime_type_version="16.10",
420
- status="ENABLED",
421
422
  tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
422
423
  key="some_key",
423
424
  values=["some_value"],
424
- )],
425
- uri="https://www.one.example.com")
425
+ )])
426
426
  ```
427
- <!--End PulumiCodeChooser -->
428
427
  See additional examples.
429
428
 
430
429
  ## Additional Examples
@@ -435,17 +434,18 @@ class BrokenLinksMonitor(pulumi.CustomResource):
435
434
 
436
435
  > **NOTE:** It can take up to 10 minutes for a private location to become available.
437
436
 
438
- <!--Start PulumiCodeChooser -->
439
437
  ```python
440
438
  import pulumi
441
439
  import pulumi_newrelic as newrelic
442
440
 
443
- foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
441
+ foo = newrelic.synthetics.PrivateLocation("foo",
442
+ name="Sample Private Location",
444
443
  description="Sample Private Location Description",
445
444
  verified_script_execution=False)
446
- foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor",
445
+ foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("foo",
446
+ name="Sample Broken Links Monitor",
447
447
  uri="https://www.one.example.com",
448
- locations_privates=[foo_private_location.id],
448
+ locations_privates=[foo.id],
449
449
  period="EVERY_6_HOURS",
450
450
  status="ENABLED",
451
451
  tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
@@ -453,7 +453,6 @@ class BrokenLinksMonitor(pulumi.CustomResource):
453
453
  values=["some_value"],
454
454
  )])
455
455
  ```
456
- <!--End PulumiCodeChooser -->
457
456
 
458
457
  ## Import
459
458
 
@@ -491,24 +490,23 @@ class BrokenLinksMonitor(pulumi.CustomResource):
491
490
 
492
491
  ## Example Usage
493
492
 
494
- <!--Start PulumiCodeChooser -->
495
493
  ```python
496
494
  import pulumi
497
495
  import pulumi_newrelic as newrelic
498
496
 
499
497
  foo = newrelic.synthetics.BrokenLinksMonitor("foo",
498
+ name="Sample Broken Links Monitor",
499
+ uri="https://www.one.example.com",
500
500
  locations_publics=["AP_SOUTH_1"],
501
501
  period="EVERY_6_HOURS",
502
+ status="ENABLED",
502
503
  runtime_type="NODE_API",
503
504
  runtime_type_version="16.10",
504
- status="ENABLED",
505
505
  tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
506
506
  key="some_key",
507
507
  values=["some_value"],
508
- )],
509
- uri="https://www.one.example.com")
508
+ )])
510
509
  ```
511
- <!--End PulumiCodeChooser -->
512
510
  See additional examples.
513
511
 
514
512
  ## Additional Examples
@@ -519,17 +517,18 @@ class BrokenLinksMonitor(pulumi.CustomResource):
519
517
 
520
518
  > **NOTE:** It can take up to 10 minutes for a private location to become available.
521
519
 
522
- <!--Start PulumiCodeChooser -->
523
520
  ```python
524
521
  import pulumi
525
522
  import pulumi_newrelic as newrelic
526
523
 
527
- foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
524
+ foo = newrelic.synthetics.PrivateLocation("foo",
525
+ name="Sample Private Location",
528
526
  description="Sample Private Location Description",
529
527
  verified_script_execution=False)
530
- foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor",
528
+ foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("foo",
529
+ name="Sample Broken Links Monitor",
531
530
  uri="https://www.one.example.com",
532
- locations_privates=[foo_private_location.id],
531
+ locations_privates=[foo.id],
533
532
  period="EVERY_6_HOURS",
534
533
  status="ENABLED",
535
534
  tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
@@ -537,7 +536,6 @@ class BrokenLinksMonitor(pulumi.CustomResource):
537
536
  values=["some_value"],
538
537
  )])
539
538
  ```
540
- <!--End PulumiCodeChooser -->
541
539
 
542
540
  ## Import
543
541
 
@@ -423,25 +423,24 @@ class CertCheckMonitor(pulumi.CustomResource):
423
423
 
424
424
  ## Example Usage
425
425
 
426
- <!--Start PulumiCodeChooser -->
427
426
  ```python
428
427
  import pulumi
429
428
  import pulumi_newrelic as newrelic
430
429
 
431
430
  foo = newrelic.synthetics.CertCheckMonitor("foo",
432
- certificate_expiration=10,
431
+ name="Sample Cert Check Monitor",
433
432
  domain="www.example.com",
434
433
  locations_publics=["AP_SOUTH_1"],
434
+ certificate_expiration=10,
435
435
  period="EVERY_6_HOURS",
436
+ status="ENABLED",
436
437
  runtime_type="NODE_API",
437
438
  runtime_type_version="16.10",
438
- status="ENABLED",
439
439
  tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
440
440
  key="some_key",
441
441
  values=["some_value"],
442
442
  )])
443
443
  ```
444
- <!--End PulumiCodeChooser -->
445
444
  See additional examples.
446
445
 
447
446
  ## Additional Examples
@@ -452,17 +451,18 @@ class CertCheckMonitor(pulumi.CustomResource):
452
451
 
453
452
  > **NOTE:** It can take up to 10 minutes for a private location to become available.
454
453
 
455
- <!--Start PulumiCodeChooser -->
456
454
  ```python
457
455
  import pulumi
458
456
  import pulumi_newrelic as newrelic
459
457
 
460
- foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
458
+ foo = newrelic.synthetics.PrivateLocation("foo",
459
+ name="Sample Private Location",
461
460
  description="Sample Private Location Description",
462
461
  verified_script_execution=False)
463
- foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("fooCertCheckMonitor",
462
+ foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("foo",
463
+ name="Sample Cert Check Monitor",
464
464
  domain="www.one.example.com",
465
- locations_privates=[foo_private_location.id],
465
+ locations_privates=[foo.id],
466
466
  certificate_expiration=10,
467
467
  period="EVERY_6_HOURS",
468
468
  status="ENABLED",
@@ -471,7 +471,6 @@ class CertCheckMonitor(pulumi.CustomResource):
471
471
  values=["some_value"],
472
472
  )])
473
473
  ```
474
- <!--End PulumiCodeChooser -->
475
474
 
476
475
  ## Import
477
476
 
@@ -510,25 +509,24 @@ class CertCheckMonitor(pulumi.CustomResource):
510
509
 
511
510
  ## Example Usage
512
511
 
513
- <!--Start PulumiCodeChooser -->
514
512
  ```python
515
513
  import pulumi
516
514
  import pulumi_newrelic as newrelic
517
515
 
518
516
  foo = newrelic.synthetics.CertCheckMonitor("foo",
519
- certificate_expiration=10,
517
+ name="Sample Cert Check Monitor",
520
518
  domain="www.example.com",
521
519
  locations_publics=["AP_SOUTH_1"],
520
+ certificate_expiration=10,
522
521
  period="EVERY_6_HOURS",
522
+ status="ENABLED",
523
523
  runtime_type="NODE_API",
524
524
  runtime_type_version="16.10",
525
- status="ENABLED",
526
525
  tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
527
526
  key="some_key",
528
527
  values=["some_value"],
529
528
  )])
530
529
  ```
531
- <!--End PulumiCodeChooser -->
532
530
  See additional examples.
533
531
 
534
532
  ## Additional Examples
@@ -539,17 +537,18 @@ class CertCheckMonitor(pulumi.CustomResource):
539
537
 
540
538
  > **NOTE:** It can take up to 10 minutes for a private location to become available.
541
539
 
542
- <!--Start PulumiCodeChooser -->
543
540
  ```python
544
541
  import pulumi
545
542
  import pulumi_newrelic as newrelic
546
543
 
547
- foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
544
+ foo = newrelic.synthetics.PrivateLocation("foo",
545
+ name="Sample Private Location",
548
546
  description="Sample Private Location Description",
549
547
  verified_script_execution=False)
550
- foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("fooCertCheckMonitor",
548
+ foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("foo",
549
+ name="Sample Cert Check Monitor",
551
550
  domain="www.one.example.com",
552
- locations_privates=[foo_private_location.id],
551
+ locations_privates=[foo.id],
553
552
  certificate_expiration=10,
554
553
  period="EVERY_6_HOURS",
555
554
  status="ENABLED",
@@ -558,7 +557,6 @@ class CertCheckMonitor(pulumi.CustomResource):
558
557
  values=["some_value"],
559
558
  )])
560
559
  ```
561
- <!--End PulumiCodeChooser -->
562
560
 
563
561
  ## Import
564
562
 
@@ -83,7 +83,6 @@ def get_private_location(account_id: Optional[int] = None,
83
83
 
84
84
  ## Example Usage
85
85
 
86
- <!--Start PulumiCodeChooser -->
87
86
  ```python
88
87
  import pulumi
89
88
  import pulumi_newrelic as newrelic
@@ -92,9 +91,7 @@ def get_private_location(account_id: Optional[int] = None,
92
91
  name="My private location")
93
92
  foo = newrelic.synthetics.Monitor("foo", locations_privates=[example.id])
94
93
  ```
95
- <!--End PulumiCodeChooser -->
96
94
 
97
- <!--Start PulumiCodeChooser -->
98
95
  ```python
99
96
  import pulumi
100
97
  import pulumi_newrelic as newrelic
@@ -105,7 +102,6 @@ def get_private_location(account_id: Optional[int] = None,
105
102
  guid=example.id,
106
103
  )])
107
104
  ```
108
- <!--End PulumiCodeChooser -->
109
105
 
110
106
 
111
107
  :param int account_id: The New Relic account ID of the associated private location. If left empty will default to account ID specified in provider level configuration.
@@ -136,7 +132,6 @@ def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]
136
132
 
137
133
  ## Example Usage
138
134
 
139
- <!--Start PulumiCodeChooser -->
140
135
  ```python
141
136
  import pulumi
142
137
  import pulumi_newrelic as newrelic
@@ -145,9 +140,7 @@ def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]
145
140
  name="My private location")
146
141
  foo = newrelic.synthetics.Monitor("foo", locations_privates=[example.id])
147
142
  ```
148
- <!--End PulumiCodeChooser -->
149
143
 
150
- <!--Start PulumiCodeChooser -->
151
144
  ```python
152
145
  import pulumi
153
146
  import pulumi_newrelic as newrelic
@@ -158,7 +151,6 @@ def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]
158
151
  guid=example.id,
159
152
  )])
160
153
  ```
161
- <!--End PulumiCodeChooser -->
162
154
 
163
155
 
164
156
  :param int account_id: The New Relic account ID of the associated private location. If left empty will default to account ID specified in provider level configuration.
@@ -96,18 +96,12 @@ def get_secure_credential(account_id: Optional[int] = None,
96
96
 
97
97
  ## Example Usage
98
98
 
99
- <!--Start PulumiCodeChooser -->
100
99
  ```python
101
100
  import pulumi
102
101
  import pulumi_newrelic as newrelic
103
102
 
104
103
  foo = newrelic.synthetics.get_secure_credential(key="MY_KEY")
105
104
  ```
106
- <!--End PulumiCodeChooser -->
107
-
108
-
109
- :param int account_id: The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used.
110
- :param str key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
111
105
  """
112
106
  __args__ = dict()
113
107
  __args__['accountId'] = account_id
@@ -134,17 +128,11 @@ def get_secure_credential_output(account_id: Optional[pulumi.Input[Optional[int]
134
128
 
135
129
  ## Example Usage
136
130
 
137
- <!--Start PulumiCodeChooser -->
138
131
  ```python
139
132
  import pulumi
140
133
  import pulumi_newrelic as newrelic
141
134
 
142
135
  foo = newrelic.synthetics.get_secure_credential(key="MY_KEY")
143
136
  ```
144
- <!--End PulumiCodeChooser -->
145
-
146
-
147
- :param int account_id: The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used.
148
- :param str key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
149
137
  """
150
138
  ...