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