pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. pulumi_newrelic/__init__.py +9 -0
  2. pulumi_newrelic/_inputs.py +7153 -461
  3. pulumi_newrelic/_utilities.py +41 -5
  4. pulumi_newrelic/account_management.py +13 -4
  5. pulumi_newrelic/alert_channel.py +122 -101
  6. pulumi_newrelic/alert_condition.py +120 -109
  7. pulumi_newrelic/alert_muting_rule.py +130 -74
  8. pulumi_newrelic/alert_policy.py +88 -67
  9. pulumi_newrelic/alert_policy_channel.py +81 -68
  10. pulumi_newrelic/api_access_key.py +49 -52
  11. pulumi_newrelic/browser_application.py +79 -76
  12. pulumi_newrelic/cloud/_inputs.py +2527 -1082
  13. pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
  14. pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
  15. pulumi_newrelic/cloud/aws_integrations.py +300 -1324
  16. pulumi_newrelic/cloud/aws_link_account.py +25 -18
  17. pulumi_newrelic/cloud/azure_integrations.py +523 -481
  18. pulumi_newrelic/cloud/azure_link_account.py +36 -29
  19. pulumi_newrelic/cloud/gcp_integrations.py +343 -320
  20. pulumi_newrelic/cloud/gcp_link_account.py +25 -18
  21. pulumi_newrelic/cloud/outputs.py +327 -1072
  22. pulumi_newrelic/config/__init__.pyi +6 -1
  23. pulumi_newrelic/config/vars.py +7 -2
  24. pulumi_newrelic/data_partition_rule.py +23 -16
  25. pulumi_newrelic/entity_tags.py +36 -31
  26. pulumi_newrelic/events_to_metrics_rule.py +27 -20
  27. pulumi_newrelic/get_account.py +24 -12
  28. pulumi_newrelic/get_alert_channel.py +26 -13
  29. pulumi_newrelic/get_alert_policy.py +35 -12
  30. pulumi_newrelic/get_application.py +39 -27
  31. pulumi_newrelic/get_authentication_domain.py +17 -9
  32. pulumi_newrelic/get_cloud_account.py +26 -14
  33. pulumi_newrelic/get_entity.py +90 -85
  34. pulumi_newrelic/get_group.py +58 -9
  35. pulumi_newrelic/get_key_transaction.py +109 -30
  36. pulumi_newrelic/get_notification_destination.py +64 -14
  37. pulumi_newrelic/get_obfuscation_expression.py +36 -24
  38. pulumi_newrelic/get_service_level_alert_helper.py +135 -105
  39. pulumi_newrelic/get_test_grok_pattern.py +29 -14
  40. pulumi_newrelic/get_user.py +17 -5
  41. pulumi_newrelic/group.py +5 -132
  42. pulumi_newrelic/infra_alert_condition.py +157 -140
  43. pulumi_newrelic/insights/_inputs.py +43 -0
  44. pulumi_newrelic/insights/event.py +50 -43
  45. pulumi_newrelic/insights/outputs.py +5 -0
  46. pulumi_newrelic/key_transaction.py +464 -0
  47. pulumi_newrelic/log_parsing_rule.py +29 -18
  48. pulumi_newrelic/monitor_downtime.py +215 -203
  49. pulumi_newrelic/notification_channel.py +387 -326
  50. pulumi_newrelic/notification_destination.py +248 -118
  51. pulumi_newrelic/nrql_alert_condition.py +353 -246
  52. pulumi_newrelic/nrql_drop_rule.py +57 -30
  53. pulumi_newrelic/obfuscation_expression.py +25 -18
  54. pulumi_newrelic/obfuscation_rule.py +40 -31
  55. pulumi_newrelic/one_dashboard.py +31 -26
  56. pulumi_newrelic/one_dashboard_json.py +21 -16
  57. pulumi_newrelic/one_dashboard_raw.py +112 -101
  58. pulumi_newrelic/outputs.py +2446 -245
  59. pulumi_newrelic/plugins/_inputs.py +145 -10
  60. pulumi_newrelic/plugins/application_settings.py +29 -20
  61. pulumi_newrelic/plugins/outputs.py +15 -10
  62. pulumi_newrelic/plugins/workload.py +285 -54
  63. pulumi_newrelic/provider.py +27 -33
  64. pulumi_newrelic/pulumi-plugin.json +2 -1
  65. pulumi_newrelic/service_level.py +193 -180
  66. pulumi_newrelic/synthetics/_inputs.py +159 -2
  67. pulumi_newrelic/synthetics/alert_condition.py +91 -78
  68. pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
  69. pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
  70. pulumi_newrelic/synthetics/get_private_location.py +34 -22
  71. pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
  72. pulumi_newrelic/synthetics/monitor.py +352 -179
  73. pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
  74. pulumi_newrelic/synthetics/outputs.py +7 -2
  75. pulumi_newrelic/synthetics/private_location.py +27 -18
  76. pulumi_newrelic/synthetics/script_monitor.py +321 -168
  77. pulumi_newrelic/synthetics/secure_credential.py +25 -20
  78. pulumi_newrelic/synthetics/step_monitor.py +409 -98
  79. pulumi_newrelic/user.py +13 -6
  80. pulumi_newrelic/workflow.py +215 -184
  81. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
  82. pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
  83. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
  84. pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
  85. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
  from . import outputs
12
17
  from ._inputs import *
@@ -18,7 +23,7 @@ class MultiLocationAlertConditionArgs:
18
23
  def __init__(__self__, *,
19
24
  critical: pulumi.Input['MultiLocationAlertConditionCriticalArgs'],
20
25
  entities: pulumi.Input[Sequence[pulumi.Input[str]]],
21
- policy_id: pulumi.Input[int],
26
+ policy_id: pulumi.Input[str],
22
27
  enabled: Optional[pulumi.Input[bool]] = None,
23
28
  name: Optional[pulumi.Input[str]] = None,
24
29
  runbook_url: Optional[pulumi.Input[str]] = None,
@@ -28,7 +33,7 @@ class MultiLocationAlertConditionArgs:
28
33
  The set of arguments for constructing a MultiLocationAlertCondition resource.
29
34
  :param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with the priority set to critical.
30
35
  :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
31
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
36
+ :param pulumi.Input[str] policy_id: The ID of the policy where this condition will be used.
32
37
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
33
38
  :param pulumi.Input[str] name: The title of the condition.
34
39
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
@@ -78,14 +83,14 @@ class MultiLocationAlertConditionArgs:
78
83
 
79
84
  @property
80
85
  @pulumi.getter(name="policyId")
81
- def policy_id(self) -> pulumi.Input[int]:
86
+ def policy_id(self) -> pulumi.Input[str]:
82
87
  """
83
88
  The ID of the policy where this condition will be used.
84
89
  """
85
90
  return pulumi.get(self, "policy_id")
86
91
 
87
92
  @policy_id.setter
88
- def policy_id(self, value: pulumi.Input[int]):
93
+ def policy_id(self, value: pulumi.Input[str]):
89
94
  pulumi.set(self, "policy_id", value)
90
95
 
91
96
  @property
@@ -160,7 +165,7 @@ class _MultiLocationAlertConditionState:
160
165
  entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
161
166
  entity_guid: Optional[pulumi.Input[str]] = None,
162
167
  name: Optional[pulumi.Input[str]] = None,
163
- policy_id: Optional[pulumi.Input[int]] = None,
168
+ policy_id: Optional[pulumi.Input[str]] = None,
164
169
  runbook_url: Optional[pulumi.Input[str]] = None,
165
170
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
166
171
  warning: Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']] = None):
@@ -171,7 +176,7 @@ class _MultiLocationAlertConditionState:
171
176
  :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
172
177
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
173
178
  :param pulumi.Input[str] name: The title of the condition.
174
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
179
+ :param pulumi.Input[str] policy_id: The ID of the policy where this condition will be used.
175
180
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
176
181
  :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
177
182
  :param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with the priority set to warning.
@@ -260,14 +265,14 @@ class _MultiLocationAlertConditionState:
260
265
 
261
266
  @property
262
267
  @pulumi.getter(name="policyId")
263
- def policy_id(self) -> Optional[pulumi.Input[int]]:
268
+ def policy_id(self) -> Optional[pulumi.Input[str]]:
264
269
  """
265
270
  The ID of the policy where this condition will be used.
266
271
  """
267
272
  return pulumi.get(self, "policy_id")
268
273
 
269
274
  @policy_id.setter
270
- def policy_id(self, value: Optional[pulumi.Input[int]]):
275
+ def policy_id(self, value: Optional[pulumi.Input[str]]):
271
276
  pulumi.set(self, "policy_id", value)
272
277
 
273
278
  @property
@@ -315,14 +320,14 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
315
320
  def __init__(__self__,
316
321
  resource_name: str,
317
322
  opts: Optional[pulumi.ResourceOptions] = None,
318
- critical: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']]] = None,
323
+ critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
319
324
  enabled: Optional[pulumi.Input[bool]] = None,
320
325
  entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
321
326
  name: Optional[pulumi.Input[str]] = None,
322
- policy_id: Optional[pulumi.Input[int]] = None,
327
+ policy_id: Optional[pulumi.Input[str]] = None,
323
328
  runbook_url: Optional[pulumi.Input[str]] = None,
324
329
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
325
- warning: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']]] = None,
330
+ warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None,
326
331
  __props__=None):
327
332
  """
328
333
  Use this resource to create, update, and delete a New Relic Synthetics Location Alerts.
@@ -335,25 +340,27 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
335
340
  import pulumi
336
341
  import pulumi_newrelic as newrelic
337
342
 
338
- policy = newrelic.AlertPolicy("policy")
343
+ policy = newrelic.AlertPolicy("policy", name="my-policy")
339
344
  monitor = newrelic.synthetics.Monitor("monitor",
340
345
  locations_publics=["US_WEST_1"],
346
+ name="my-monitor",
341
347
  period="EVERY_10_MINUTES",
342
348
  status="DISABLED",
343
349
  type="SIMPLE",
344
350
  uri="https://www.one.newrelic.com")
345
351
  example = newrelic.synthetics.MultiLocationAlertCondition("example",
346
352
  policy_id=policy.id,
353
+ name="Example condition",
347
354
  runbook_url="https://example.com",
348
355
  enabled=True,
349
356
  violation_time_limit_seconds=3600,
350
357
  entities=[monitor.id],
351
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
352
- threshold=2,
353
- ),
354
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
355
- threshold=1,
356
- ))
358
+ critical={
359
+ "threshold": 2,
360
+ },
361
+ warning={
362
+ "threshold": 1,
363
+ })
357
364
  ```
358
365
  ## Tags
359
366
 
@@ -363,51 +370,53 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
363
370
  import pulumi
364
371
  import pulumi_newrelic as newrelic
365
372
 
366
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
367
- foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
373
+ foo = newrelic.AlertPolicy("foo", name="foo policy")
374
+ foo_monitor = newrelic.synthetics.Monitor("foo",
368
375
  status="ENABLED",
376
+ name="foo monitor",
369
377
  period="EVERY_MINUTE",
370
378
  uri="https://www.one.newrelic.com",
371
379
  type="SIMPLE",
372
380
  locations_publics=["AP_EAST_1"],
373
- custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
374
- name="some_name",
375
- value="some_value",
376
- )],
381
+ custom_headers=[{
382
+ "name": "some_name",
383
+ "value": "some_value",
384
+ }],
377
385
  treat_redirect_as_failure=True,
378
386
  validation_string="success",
379
387
  bypass_head_request=True,
380
388
  verify_ssl=True,
381
- tags=[newrelic.synthetics.MonitorTagArgs(
382
- key="some_key",
383
- values=["some_value"],
384
- )])
385
- foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("fooMultiLocationAlertCondition",
386
- policy_id=foo_alert_policy.id,
389
+ tags=[{
390
+ "key": "some_key",
391
+ "values": ["some_value"],
392
+ }])
393
+ foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("foo",
394
+ policy_id=foo.id,
395
+ name="foo condition",
387
396
  runbook_url="https://example.com",
388
397
  enabled=True,
389
398
  violation_time_limit_seconds=3600,
390
399
  entities=[foo_monitor.id],
391
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
392
- threshold=2,
393
- ),
394
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
395
- threshold=1,
396
- ))
397
- my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
400
+ critical={
401
+ "threshold": 2,
402
+ },
403
+ warning={
404
+ "threshold": 1,
405
+ })
406
+ my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
398
407
  guid=foo_multi_location_alert_condition.entity_guid,
399
408
  tags=[
400
- newrelic.EntityTagsTagArgs(
401
- key="my-key",
402
- values=[
409
+ {
410
+ "key": "my-key",
411
+ "values": [
403
412
  "my-value",
404
413
  "my-other-value",
405
414
  ],
406
- ),
407
- newrelic.EntityTagsTagArgs(
408
- key="my-key-2",
409
- values=["my-value-2"],
410
- ),
415
+ },
416
+ {
417
+ "key": "my-key-2",
418
+ "values": ["my-value-2"],
419
+ },
411
420
  ])
412
421
  ```
413
422
 
@@ -415,9 +424,9 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
415
424
 
416
425
  New Relic Synthetics MultiLocation Conditions can be imported using a concatenated string of the format
417
426
 
418
- `<policy_id>:<condition_id>`, e.g.
427
+ `<policy_id>:<condition_id>`, e.g.
419
428
 
420
- bash
429
+ bash
421
430
 
422
431
  ```sh
423
432
  $ pulumi import newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition example 12345678:1456
@@ -425,14 +434,14 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
425
434
 
426
435
  :param str resource_name: The name of the resource.
427
436
  :param pulumi.ResourceOptions opts: Options for the resource.
428
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']] critical: A condition term with the priority set to critical.
437
+ :param pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']] critical: A condition term with the priority set to critical.
429
438
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
430
439
  :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
431
440
  :param pulumi.Input[str] name: The title of the condition.
432
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
441
+ :param pulumi.Input[str] policy_id: The ID of the policy where this condition will be used.
433
442
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
434
443
  :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
435
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']] warning: A condition term with the priority set to warning.
444
+ :param pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']] warning: A condition term with the priority set to warning.
436
445
 
437
446
 
438
447
  > **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.
@@ -454,25 +463,27 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
454
463
  import pulumi
455
464
  import pulumi_newrelic as newrelic
456
465
 
457
- policy = newrelic.AlertPolicy("policy")
466
+ policy = newrelic.AlertPolicy("policy", name="my-policy")
458
467
  monitor = newrelic.synthetics.Monitor("monitor",
459
468
  locations_publics=["US_WEST_1"],
469
+ name="my-monitor",
460
470
  period="EVERY_10_MINUTES",
461
471
  status="DISABLED",
462
472
  type="SIMPLE",
463
473
  uri="https://www.one.newrelic.com")
464
474
  example = newrelic.synthetics.MultiLocationAlertCondition("example",
465
475
  policy_id=policy.id,
476
+ name="Example condition",
466
477
  runbook_url="https://example.com",
467
478
  enabled=True,
468
479
  violation_time_limit_seconds=3600,
469
480
  entities=[monitor.id],
470
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
471
- threshold=2,
472
- ),
473
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
474
- threshold=1,
475
- ))
481
+ critical={
482
+ "threshold": 2,
483
+ },
484
+ warning={
485
+ "threshold": 1,
486
+ })
476
487
  ```
477
488
  ## Tags
478
489
 
@@ -482,51 +493,53 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
482
493
  import pulumi
483
494
  import pulumi_newrelic as newrelic
484
495
 
485
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
486
- foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
496
+ foo = newrelic.AlertPolicy("foo", name="foo policy")
497
+ foo_monitor = newrelic.synthetics.Monitor("foo",
487
498
  status="ENABLED",
499
+ name="foo monitor",
488
500
  period="EVERY_MINUTE",
489
501
  uri="https://www.one.newrelic.com",
490
502
  type="SIMPLE",
491
503
  locations_publics=["AP_EAST_1"],
492
- custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
493
- name="some_name",
494
- value="some_value",
495
- )],
504
+ custom_headers=[{
505
+ "name": "some_name",
506
+ "value": "some_value",
507
+ }],
496
508
  treat_redirect_as_failure=True,
497
509
  validation_string="success",
498
510
  bypass_head_request=True,
499
511
  verify_ssl=True,
500
- tags=[newrelic.synthetics.MonitorTagArgs(
501
- key="some_key",
502
- values=["some_value"],
503
- )])
504
- foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("fooMultiLocationAlertCondition",
505
- policy_id=foo_alert_policy.id,
512
+ tags=[{
513
+ "key": "some_key",
514
+ "values": ["some_value"],
515
+ }])
516
+ foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("foo",
517
+ policy_id=foo.id,
518
+ name="foo condition",
506
519
  runbook_url="https://example.com",
507
520
  enabled=True,
508
521
  violation_time_limit_seconds=3600,
509
522
  entities=[foo_monitor.id],
510
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
511
- threshold=2,
512
- ),
513
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
514
- threshold=1,
515
- ))
516
- my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
523
+ critical={
524
+ "threshold": 2,
525
+ },
526
+ warning={
527
+ "threshold": 1,
528
+ })
529
+ my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
517
530
  guid=foo_multi_location_alert_condition.entity_guid,
518
531
  tags=[
519
- newrelic.EntityTagsTagArgs(
520
- key="my-key",
521
- values=[
532
+ {
533
+ "key": "my-key",
534
+ "values": [
522
535
  "my-value",
523
536
  "my-other-value",
524
537
  ],
525
- ),
526
- newrelic.EntityTagsTagArgs(
527
- key="my-key-2",
528
- values=["my-value-2"],
529
- ),
538
+ },
539
+ {
540
+ "key": "my-key-2",
541
+ "values": ["my-value-2"],
542
+ },
530
543
  ])
531
544
  ```
532
545
 
@@ -534,9 +547,9 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
534
547
 
535
548
  New Relic Synthetics MultiLocation Conditions can be imported using a concatenated string of the format
536
549
 
537
- `<policy_id>:<condition_id>`, e.g.
550
+ `<policy_id>:<condition_id>`, e.g.
538
551
 
539
- bash
552
+ bash
540
553
 
541
554
  ```sh
542
555
  $ pulumi import newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition example 12345678:1456
@@ -557,14 +570,14 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
557
570
  def _internal_init(__self__,
558
571
  resource_name: str,
559
572
  opts: Optional[pulumi.ResourceOptions] = None,
560
- critical: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']]] = None,
573
+ critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
561
574
  enabled: Optional[pulumi.Input[bool]] = None,
562
575
  entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
563
576
  name: Optional[pulumi.Input[str]] = None,
564
- policy_id: Optional[pulumi.Input[int]] = None,
577
+ policy_id: Optional[pulumi.Input[str]] = None,
565
578
  runbook_url: Optional[pulumi.Input[str]] = None,
566
579
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
567
- warning: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']]] = None,
580
+ warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None,
568
581
  __props__=None):
569
582
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
570
583
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -599,15 +612,15 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
599
612
  def get(resource_name: str,
600
613
  id: pulumi.Input[str],
601
614
  opts: Optional[pulumi.ResourceOptions] = None,
602
- critical: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']]] = None,
615
+ critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
603
616
  enabled: Optional[pulumi.Input[bool]] = None,
604
617
  entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
605
618
  entity_guid: Optional[pulumi.Input[str]] = None,
606
619
  name: Optional[pulumi.Input[str]] = None,
607
- policy_id: Optional[pulumi.Input[int]] = None,
620
+ policy_id: Optional[pulumi.Input[str]] = None,
608
621
  runbook_url: Optional[pulumi.Input[str]] = None,
609
622
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
610
- warning: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']]] = None) -> 'MultiLocationAlertCondition':
623
+ warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None) -> 'MultiLocationAlertCondition':
611
624
  """
612
625
  Get an existing MultiLocationAlertCondition resource's state with the given name, id, and optional extra
613
626
  properties used to qualify the lookup.
@@ -615,15 +628,15 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
615
628
  :param str resource_name: The unique name of the resulting resource.
616
629
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
617
630
  :param pulumi.ResourceOptions opts: Options for the resource.
618
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']] critical: A condition term with the priority set to critical.
631
+ :param pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']] critical: A condition term with the priority set to critical.
619
632
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
620
633
  :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
621
634
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
622
635
  :param pulumi.Input[str] name: The title of the condition.
623
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
636
+ :param pulumi.Input[str] policy_id: The ID of the policy where this condition will be used.
624
637
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
625
638
  :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
626
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']] warning: A condition term with the priority set to warning.
639
+ :param pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']] warning: A condition term with the priority set to warning.
627
640
 
628
641
 
629
642
  > **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.
@@ -685,7 +698,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
685
698
 
686
699
  @property
687
700
  @pulumi.getter(name="policyId")
688
- def policy_id(self) -> pulumi.Output[int]:
701
+ def policy_id(self) -> pulumi.Output[str]:
689
702
  """
690
703
  The ID of the policy where this condition will be used.
691
704
  """
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
 
12
17
  __all__ = [
@@ -308,7 +313,7 @@ class StepMonitorStep(dict):
308
313
  values: Optional[Sequence[str]] = None):
309
314
  """
310
315
  :param int ordinal: The position of the step within the script ranging from 0-100.
311
- :param str type: Name of the tag key. Valid values are ASSERT_ELEMENT, ASSERT_MODAL, ASSERT_TEXT, ASSERT_TITLE, CLICK_ELEMENT, DISMISS_MODAL, DOUBLE_CLICK_ELEMENT, HOVER_ELEMENT, NAVIGATE, SECURE_TEXT_ENTRY, SELECT_ELEMENT, TEXT_ENTRY.
316
+ :param str type: Name of the tag key. Valid values are `ASSERT_ELEMENT`, `ASSERT_MODAL`, `ASSERT_TEXT`, `ASSERT_TITLE`, `CLICK_ELEMENT`, `DISMISS_MODAL`, `DOUBLE_CLICK_ELEMENT`, `HOVER_ELEMENT`, `NAVIGATE`, `SECURE_TEXT_ENTRY`, `SELECT_ELEMENT`, `TEXT_ENTRY`.
312
317
  :param Sequence[str] values: The metadata values related to the step.
313
318
  """
314
319
  pulumi.set(__self__, "ordinal", ordinal)
@@ -328,7 +333,7 @@ class StepMonitorStep(dict):
328
333
  @pulumi.getter
329
334
  def type(self) -> str:
330
335
  """
331
- Name of the tag key. Valid values are ASSERT_ELEMENT, ASSERT_MODAL, ASSERT_TEXT, ASSERT_TITLE, CLICK_ELEMENT, DISMISS_MODAL, DOUBLE_CLICK_ELEMENT, HOVER_ELEMENT, NAVIGATE, SECURE_TEXT_ENTRY, SELECT_ELEMENT, TEXT_ENTRY.
336
+ Name of the tag key. Valid values are `ASSERT_ELEMENT`, `ASSERT_MODAL`, `ASSERT_TEXT`, `ASSERT_TITLE`, `CLICK_ELEMENT`, `DISMISS_MODAL`, `DOUBLE_CLICK_ELEMENT`, `HOVER_ELEMENT`, `NAVIGATE`, `SECURE_TEXT_ENTRY`, `SELECT_ELEMENT`, `TEXT_ENTRY`.
332
337
  """
333
338
  return pulumi.get(self, "type")
334
339
 
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
 
12
17
  __all__ = ['PrivateLocationArgs', 'PrivateLocation']
@@ -15,13 +20,13 @@ __all__ = ['PrivateLocationArgs', 'PrivateLocation']
15
20
  class PrivateLocationArgs:
16
21
  def __init__(__self__, *,
17
22
  description: pulumi.Input[str],
18
- account_id: Optional[pulumi.Input[int]] = None,
23
+ account_id: Optional[pulumi.Input[str]] = None,
19
24
  name: Optional[pulumi.Input[str]] = None,
20
25
  verified_script_execution: Optional[pulumi.Input[bool]] = None):
21
26
  """
22
27
  The set of arguments for constructing a PrivateLocation resource.
23
28
  :param pulumi.Input[str] description: The private location description.
24
- :param pulumi.Input[int] account_id: The account in which the private location will be created.
29
+ :param pulumi.Input[str] account_id: The account in which the private location will be created.
25
30
  :param pulumi.Input[str] name: The name of the private location.
26
31
  :param pulumi.Input[bool] verified_script_execution: The private location requires a password to edit if value is true. Defaults to `false`
27
32
  """
@@ -47,14 +52,14 @@ class PrivateLocationArgs:
47
52
 
48
53
  @property
49
54
  @pulumi.getter(name="accountId")
50
- def account_id(self) -> Optional[pulumi.Input[int]]:
55
+ def account_id(self) -> Optional[pulumi.Input[str]]:
51
56
  """
52
57
  The account in which the private location will be created.
53
58
  """
54
59
  return pulumi.get(self, "account_id")
55
60
 
56
61
  @account_id.setter
57
- def account_id(self, value: Optional[pulumi.Input[int]]):
62
+ def account_id(self, value: Optional[pulumi.Input[str]]):
58
63
  pulumi.set(self, "account_id", value)
59
64
 
60
65
  @property
@@ -85,7 +90,7 @@ class PrivateLocationArgs:
85
90
  @pulumi.input_type
86
91
  class _PrivateLocationState:
87
92
  def __init__(__self__, *,
88
- account_id: Optional[pulumi.Input[int]] = None,
93
+ account_id: Optional[pulumi.Input[str]] = None,
89
94
  description: Optional[pulumi.Input[str]] = None,
90
95
  domain_id: Optional[pulumi.Input[str]] = None,
91
96
  guid: Optional[pulumi.Input[str]] = None,
@@ -95,7 +100,7 @@ class _PrivateLocationState:
95
100
  verified_script_execution: Optional[pulumi.Input[bool]] = None):
96
101
  """
97
102
  Input properties used for looking up and filtering PrivateLocation resources.
98
- :param pulumi.Input[int] account_id: The account in which the private location will be created.
103
+ :param pulumi.Input[str] account_id: The account in which the private location will be created.
99
104
  :param pulumi.Input[str] description: The private location description.
100
105
  :param pulumi.Input[str] domain_id: The private location globally unique identifier.
101
106
  :param pulumi.Input[str] guid: The unique client identifier for the private location in New Relic. Same as `id`.
@@ -123,14 +128,14 @@ class _PrivateLocationState:
123
128
 
124
129
  @property
125
130
  @pulumi.getter(name="accountId")
126
- def account_id(self) -> Optional[pulumi.Input[int]]:
131
+ def account_id(self) -> Optional[pulumi.Input[str]]:
127
132
  """
128
133
  The account in which the private location will be created.
129
134
  """
130
135
  return pulumi.get(self, "account_id")
131
136
 
132
137
  @account_id.setter
133
- def account_id(self, value: Optional[pulumi.Input[int]]):
138
+ def account_id(self, value: Optional[pulumi.Input[str]]):
134
139
  pulumi.set(self, "account_id", value)
135
140
 
136
141
  @property
@@ -223,7 +228,7 @@ class PrivateLocation(pulumi.CustomResource):
223
228
  def __init__(__self__,
224
229
  resource_name: str,
225
230
  opts: Optional[pulumi.ResourceOptions] = None,
226
- account_id: Optional[pulumi.Input[int]] = None,
231
+ account_id: Optional[pulumi.Input[str]] = None,
227
232
  description: Optional[pulumi.Input[str]] = None,
228
233
  name: Optional[pulumi.Input[str]] = None,
229
234
  verified_script_execution: Optional[pulumi.Input[bool]] = None,
@@ -237,7 +242,9 @@ class PrivateLocation(pulumi.CustomResource):
237
242
  import pulumi
238
243
  import pulumi_newrelic as newrelic
239
244
 
240
- location = newrelic.synthetics.PrivateLocation("location", description="The private location description")
245
+ location = newrelic.synthetics.PrivateLocation("location",
246
+ description="The private location description",
247
+ name="The name of the private location")
241
248
  ```
242
249
 
243
250
  ## Import
@@ -245,12 +252,12 @@ class PrivateLocation(pulumi.CustomResource):
245
252
  A Synthetics private location can be imported using the `guid`
246
253
 
247
254
  ```sh
248
- $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation location GUID
255
+ $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation location GUID
249
256
  ```
250
257
 
251
258
  :param str resource_name: The name of the resource.
252
259
  :param pulumi.ResourceOptions opts: Options for the resource.
253
- :param pulumi.Input[int] account_id: The account in which the private location will be created.
260
+ :param pulumi.Input[str] account_id: The account in which the private location will be created.
254
261
  :param pulumi.Input[str] description: The private location description.
255
262
  :param pulumi.Input[str] name: The name of the private location.
256
263
  :param pulumi.Input[bool] verified_script_execution: The private location requires a password to edit if value is true. Defaults to `false`
@@ -270,7 +277,9 @@ class PrivateLocation(pulumi.CustomResource):
270
277
  import pulumi
271
278
  import pulumi_newrelic as newrelic
272
279
 
273
- location = newrelic.synthetics.PrivateLocation("location", description="The private location description")
280
+ location = newrelic.synthetics.PrivateLocation("location",
281
+ description="The private location description",
282
+ name="The name of the private location")
274
283
  ```
275
284
 
276
285
  ## Import
@@ -278,7 +287,7 @@ class PrivateLocation(pulumi.CustomResource):
278
287
  A Synthetics private location can be imported using the `guid`
279
288
 
280
289
  ```sh
281
- $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation location GUID
290
+ $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation location GUID
282
291
  ```
283
292
 
284
293
  :param str resource_name: The name of the resource.
@@ -296,7 +305,7 @@ class PrivateLocation(pulumi.CustomResource):
296
305
  def _internal_init(__self__,
297
306
  resource_name: str,
298
307
  opts: Optional[pulumi.ResourceOptions] = None,
299
- account_id: Optional[pulumi.Input[int]] = None,
308
+ account_id: Optional[pulumi.Input[str]] = None,
300
309
  description: Optional[pulumi.Input[str]] = None,
301
310
  name: Optional[pulumi.Input[str]] = None,
302
311
  verified_script_execution: Optional[pulumi.Input[bool]] = None,
@@ -329,7 +338,7 @@ class PrivateLocation(pulumi.CustomResource):
329
338
  def get(resource_name: str,
330
339
  id: pulumi.Input[str],
331
340
  opts: Optional[pulumi.ResourceOptions] = None,
332
- account_id: Optional[pulumi.Input[int]] = None,
341
+ account_id: Optional[pulumi.Input[str]] = None,
333
342
  description: Optional[pulumi.Input[str]] = None,
334
343
  domain_id: Optional[pulumi.Input[str]] = None,
335
344
  guid: Optional[pulumi.Input[str]] = None,
@@ -344,7 +353,7 @@ class PrivateLocation(pulumi.CustomResource):
344
353
  :param str resource_name: The unique name of the resulting resource.
345
354
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
346
355
  :param pulumi.ResourceOptions opts: Options for the resource.
347
- :param pulumi.Input[int] account_id: The account in which the private location will be created.
356
+ :param pulumi.Input[str] account_id: The account in which the private location will be created.
348
357
  :param pulumi.Input[str] description: The private location description.
349
358
  :param pulumi.Input[str] domain_id: The private location globally unique identifier.
350
359
  :param pulumi.Input[str] guid: The unique client identifier for the private location in New Relic. Same as `id`.
@@ -369,7 +378,7 @@ class PrivateLocation(pulumi.CustomResource):
369
378
 
370
379
  @property
371
380
  @pulumi.getter(name="accountId")
372
- def account_id(self) -> pulumi.Output[int]:
381
+ def account_id(self) -> pulumi.Output[str]:
373
382
  """
374
383
  The account in which the private location will be created.
375
384
  """