pulumi-newrelic 5.23.0a1713333809__py3-none-any.whl → 5.23.0a1713975814__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 +110 -270
- pulumi_newrelic/account_management.py +20 -20
- pulumi_newrelic/alert_channel.py +76 -92
- pulumi_newrelic/alert_condition.py +104 -149
- pulumi_newrelic/alert_muting_rule.py +33 -35
- pulumi_newrelic/alert_policy.py +68 -43
- pulumi_newrelic/alert_policy_channel.py +12 -8
- pulumi_newrelic/cloud/_inputs.py +322 -1072
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +4 -6
- pulumi_newrelic/cloud/aws_integrations.py +13 -15
- pulumi_newrelic/cloud/aws_link_account.py +4 -6
- pulumi_newrelic/cloud/azure_integrations.py +10 -12
- pulumi_newrelic/cloud/azure_link_account.py +4 -6
- pulumi_newrelic/cloud/gcp_integrations.py +6 -6
- pulumi_newrelic/cloud/gcp_link_account.py +4 -6
- pulumi_newrelic/cloud/outputs.py +322 -1072
- pulumi_newrelic/data_partition_rule.py +0 -4
- pulumi_newrelic/entity_tags.py +13 -17
- pulumi_newrelic/events_to_metrics_rule.py +2 -4
- pulumi_newrelic/get_account.py +0 -4
- pulumi_newrelic/get_application.py +8 -10
- pulumi_newrelic/get_authentication_domain.py +4 -8
- pulumi_newrelic/get_cloud_account.py +0 -4
- pulumi_newrelic/get_entity.py +28 -32
- pulumi_newrelic/get_group.py +42 -8
- pulumi_newrelic/get_key_transaction.py +8 -10
- pulumi_newrelic/get_obfuscation_expression.py +2 -4
- pulumi_newrelic/get_service_level_alert_helper.py +22 -46
- pulumi_newrelic/get_test_grok_pattern.py +4 -6
- pulumi_newrelic/get_user.py +0 -4
- pulumi_newrelic/group.py +40 -42
- pulumi_newrelic/infra_alert_condition.py +154 -131
- pulumi_newrelic/insights/event.py +8 -25
- pulumi_newrelic/log_parsing_rule.py +6 -10
- pulumi_newrelic/monitor_downtime.py +174 -193
- pulumi_newrelic/notification_channel.py +124 -150
- pulumi_newrelic/nrql_alert_condition.py +38 -48
- pulumi_newrelic/nrql_drop_rule.py +34 -38
- pulumi_newrelic/obfuscation_expression.py +2 -4
- pulumi_newrelic/obfuscation_rule.py +4 -4
- pulumi_newrelic/one_dashboard.py +42 -48
- pulumi_newrelic/one_dashboard_raw.py +86 -86
- pulumi_newrelic/outputs.py +110 -270
- pulumi_newrelic/plugins/_inputs.py +16 -16
- pulumi_newrelic/plugins/application_settings.py +6 -8
- pulumi_newrelic/plugins/outputs.py +16 -16
- pulumi_newrelic/plugins/workload.py +158 -40
- pulumi_newrelic/service_level.py +38 -123
- pulumi_newrelic/synthetics/alert_condition.py +34 -64
- pulumi_newrelic/synthetics/broken_links_monitor.py +18 -20
- pulumi_newrelic/synthetics/cert_check_monitor.py +16 -18
- pulumi_newrelic/synthetics/get_private_location.py +0 -8
- pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
- pulumi_newrelic/synthetics/monitor.py +48 -52
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +69 -83
- pulumi_newrelic/synthetics/private_location.py +6 -6
- pulumi_newrelic/synthetics/script_monitor.py +38 -42
- pulumi_newrelic/synthetics/secure_credential.py +25 -22
- pulumi_newrelic/synthetics/step_monitor.py +18 -20
- pulumi_newrelic/user.py +8 -10
- pulumi_newrelic/workflow.py +20 -24
- {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1713975814.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0a1713333809.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/top_level.txt +0 -0
@@ -21,13 +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
|
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
|
27
|
-
|
28
|
-
```
|
29
|
-
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
30
|
-
```
|
26
|
+
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
31
27
|
:param pulumi.Input[str] name: The title of this condition.
|
32
28
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
33
29
|
"""
|
@@ -44,7 +40,7 @@ class AlertConditionArgs:
|
|
44
40
|
@pulumi.getter(name="monitorId")
|
45
41
|
def monitor_id(self) -> pulumi.Input[str]:
|
46
42
|
"""
|
47
|
-
The
|
43
|
+
The ID of the Synthetics monitor to be referenced in the alert condition.
|
48
44
|
"""
|
49
45
|
return pulumi.get(self, "monitor_id")
|
50
46
|
|
@@ -68,11 +64,7 @@ class AlertConditionArgs:
|
|
68
64
|
@pulumi.getter
|
69
65
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
70
66
|
"""
|
71
|
-
Set whether to enable the alert condition. Defaults to
|
72
|
-
|
73
|
-
```
|
74
|
-
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
75
|
-
```
|
67
|
+
Set whether to enable the alert condition. Defaults to true.
|
76
68
|
"""
|
77
69
|
return pulumi.get(self, "enabled")
|
78
70
|
|
@@ -116,13 +108,9 @@ class _AlertConditionState:
|
|
116
108
|
runbook_url: Optional[pulumi.Input[str]] = None):
|
117
109
|
"""
|
118
110
|
Input properties used for looking up and filtering AlertCondition resources.
|
119
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to
|
120
|
-
|
121
|
-
```
|
122
|
-
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
123
|
-
```
|
111
|
+
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
124
112
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
125
|
-
:param pulumi.Input[str] monitor_id: The
|
113
|
+
:param pulumi.Input[str] monitor_id: The ID of the Synthetics monitor to be referenced in the alert condition.
|
126
114
|
:param pulumi.Input[str] name: The title of this condition.
|
127
115
|
:param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
|
128
116
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
@@ -144,11 +132,7 @@ class _AlertConditionState:
|
|
144
132
|
@pulumi.getter
|
145
133
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
146
134
|
"""
|
147
|
-
Set whether to enable the alert condition. Defaults to
|
148
|
-
|
149
|
-
```
|
150
|
-
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
151
|
-
```
|
135
|
+
Set whether to enable the alert condition. Defaults to true.
|
152
136
|
"""
|
153
137
|
return pulumi.get(self, "enabled")
|
154
138
|
|
@@ -172,7 +156,7 @@ class _AlertConditionState:
|
|
172
156
|
@pulumi.getter(name="monitorId")
|
173
157
|
def monitor_id(self) -> Optional[pulumi.Input[str]]:
|
174
158
|
"""
|
175
|
-
The
|
159
|
+
The ID of the Synthetics monitor to be referenced in the alert condition.
|
176
160
|
"""
|
177
161
|
return pulumi.get(self, "monitor_id")
|
178
162
|
|
@@ -235,30 +219,29 @@ class AlertCondition(pulumi.CustomResource):
|
|
235
219
|
|
236
220
|
## Example Usage
|
237
221
|
|
238
|
-
<!--Start PulumiCodeChooser -->
|
239
222
|
```python
|
240
223
|
import pulumi
|
241
224
|
import pulumi_newrelic as newrelic
|
242
225
|
|
243
226
|
foo = newrelic.synthetics.AlertCondition("foo",
|
244
|
-
policy_id=
|
245
|
-
|
227
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
228
|
+
name="foo",
|
229
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
246
230
|
runbook_url="https://www.example.com")
|
247
231
|
```
|
248
|
-
<!--End PulumiCodeChooser -->
|
249
232
|
|
250
233
|
## Tags
|
251
234
|
|
252
235
|
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
253
236
|
|
254
|
-
<!--Start PulumiCodeChooser -->
|
255
237
|
```python
|
256
238
|
import pulumi
|
257
239
|
import pulumi_newrelic as newrelic
|
258
240
|
|
259
|
-
|
260
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
241
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
242
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
261
243
|
status="ENABLED",
|
244
|
+
name="foo monitor",
|
262
245
|
period="EVERY_MINUTE",
|
263
246
|
uri="https://www.one.newrelic.com",
|
264
247
|
type="SIMPLE",
|
@@ -275,11 +258,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
275
258
|
key="some_key",
|
276
259
|
values=["some_value"],
|
277
260
|
)])
|
278
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
279
|
-
policy_id=
|
261
|
+
foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
|
262
|
+
policy_id=foo.id,
|
263
|
+
name="foo synthetics condition",
|
280
264
|
monitor_id=foo_monitor.id,
|
281
265
|
runbook_url="https://www.example.com")
|
282
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
266
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
283
267
|
guid=foo_alert_condition.entity_guid,
|
284
268
|
tags=[
|
285
269
|
newrelic.EntityTagsTagArgs(
|
@@ -295,7 +279,6 @@ class AlertCondition(pulumi.CustomResource):
|
|
295
279
|
),
|
296
280
|
])
|
297
281
|
```
|
298
|
-
<!--End PulumiCodeChooser -->
|
299
282
|
|
300
283
|
## Import
|
301
284
|
|
@@ -307,12 +290,8 @@ class AlertCondition(pulumi.CustomResource):
|
|
307
290
|
|
308
291
|
:param str resource_name: The name of the resource.
|
309
292
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
310
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to
|
311
|
-
|
312
|
-
```
|
313
|
-
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
314
|
-
```
|
315
|
-
: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.
|
316
295
|
:param pulumi.Input[str] name: The title of this condition.
|
317
296
|
:param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
|
318
297
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
@@ -330,30 +309,29 @@ class AlertCondition(pulumi.CustomResource):
|
|
330
309
|
|
331
310
|
## Example Usage
|
332
311
|
|
333
|
-
<!--Start PulumiCodeChooser -->
|
334
312
|
```python
|
335
313
|
import pulumi
|
336
314
|
import pulumi_newrelic as newrelic
|
337
315
|
|
338
316
|
foo = newrelic.synthetics.AlertCondition("foo",
|
339
|
-
policy_id=
|
340
|
-
|
317
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
318
|
+
name="foo",
|
319
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
341
320
|
runbook_url="https://www.example.com")
|
342
321
|
```
|
343
|
-
<!--End PulumiCodeChooser -->
|
344
322
|
|
345
323
|
## Tags
|
346
324
|
|
347
325
|
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
348
326
|
|
349
|
-
<!--Start PulumiCodeChooser -->
|
350
327
|
```python
|
351
328
|
import pulumi
|
352
329
|
import pulumi_newrelic as newrelic
|
353
330
|
|
354
|
-
|
355
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
331
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
332
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
356
333
|
status="ENABLED",
|
334
|
+
name="foo monitor",
|
357
335
|
period="EVERY_MINUTE",
|
358
336
|
uri="https://www.one.newrelic.com",
|
359
337
|
type="SIMPLE",
|
@@ -370,11 +348,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
370
348
|
key="some_key",
|
371
349
|
values=["some_value"],
|
372
350
|
)])
|
373
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
374
|
-
policy_id=
|
351
|
+
foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
|
352
|
+
policy_id=foo.id,
|
353
|
+
name="foo synthetics condition",
|
375
354
|
monitor_id=foo_monitor.id,
|
376
355
|
runbook_url="https://www.example.com")
|
377
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
356
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
378
357
|
guid=foo_alert_condition.entity_guid,
|
379
358
|
tags=[
|
380
359
|
newrelic.EntityTagsTagArgs(
|
@@ -390,7 +369,6 @@ class AlertCondition(pulumi.CustomResource):
|
|
390
369
|
),
|
391
370
|
])
|
392
371
|
```
|
393
|
-
<!--End PulumiCodeChooser -->
|
394
372
|
|
395
373
|
## Import
|
396
374
|
|
@@ -462,13 +440,9 @@ class AlertCondition(pulumi.CustomResource):
|
|
462
440
|
:param str resource_name: The unique name of the resulting resource.
|
463
441
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
464
442
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
465
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to
|
466
|
-
|
467
|
-
```
|
468
|
-
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
469
|
-
```
|
443
|
+
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
470
444
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
471
|
-
:param pulumi.Input[str] monitor_id: The
|
445
|
+
:param pulumi.Input[str] monitor_id: The ID of the Synthetics monitor to be referenced in the alert condition.
|
472
446
|
:param pulumi.Input[str] name: The title of this condition.
|
473
447
|
:param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
|
474
448
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
@@ -489,11 +463,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
489
463
|
@pulumi.getter
|
490
464
|
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
491
465
|
"""
|
492
|
-
Set whether to enable the alert condition. Defaults to
|
493
|
-
|
494
|
-
```
|
495
|
-
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
496
|
-
```
|
466
|
+
Set whether to enable the alert condition. Defaults to true.
|
497
467
|
"""
|
498
468
|
return pulumi.get(self, "enabled")
|
499
469
|
|
@@ -509,7 +479,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
509
479
|
@pulumi.getter(name="monitorId")
|
510
480
|
def monitor_id(self) -> pulumi.Output[str]:
|
511
481
|
"""
|
512
|
-
The
|
482
|
+
The ID of the Synthetics monitor to be referenced in the alert condition.
|
513
483
|
"""
|
514
484
|
return pulumi.get(self, "monitor_id")
|
515
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
|
-
|
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("
|
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=[
|
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
|
-
|
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("
|
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=[
|
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
|
-
|
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
|
-
|
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("
|
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=[
|
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
|
-
|
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
|
-
|
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("
|
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=[
|
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
|
...
|