pulumi-newrelic 5.21.0a1710157101__py3-none-any.whl → 5.39.0a1736849617__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 +11 -6
  5. pulumi_newrelic/alert_channel.py +116 -127
  6. pulumi_newrelic/alert_condition.py +116 -129
  7. pulumi_newrelic/alert_muting_rule.py +128 -76
  8. pulumi_newrelic/alert_policy.py +78 -75
  9. pulumi_newrelic/alert_policy_channel.py +77 -68
  10. pulumi_newrelic/api_access_key.py +45 -28
  11. pulumi_newrelic/browser_application.py +77 -78
  12. pulumi_newrelic/cloud/_inputs.py +2527 -1082
  13. pulumi_newrelic/cloud/aws_govcloud_integrations.py +133 -128
  14. pulumi_newrelic/cloud/aws_govcloud_link_account.py +23 -20
  15. pulumi_newrelic/cloud/aws_integrations.py +298 -1326
  16. pulumi_newrelic/cloud/aws_link_account.py +23 -20
  17. pulumi_newrelic/cloud/azure_integrations.py +521 -483
  18. pulumi_newrelic/cloud/azure_link_account.py +34 -31
  19. pulumi_newrelic/cloud/gcp_integrations.py +341 -322
  20. pulumi_newrelic/cloud/gcp_link_account.py +23 -20
  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 +19 -18
  25. pulumi_newrelic/entity_tags.py +32 -31
  26. pulumi_newrelic/events_to_metrics_rule.py +23 -20
  27. pulumi_newrelic/get_account.py +24 -16
  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 -31
  31. pulumi_newrelic/get_authentication_domain.py +17 -13
  32. pulumi_newrelic/get_cloud_account.py +26 -18
  33. pulumi_newrelic/get_entity.py +90 -147
  34. pulumi_newrelic/get_group.py +58 -13
  35. pulumi_newrelic/get_key_transaction.py +109 -34
  36. pulumi_newrelic/get_notification_destination.py +64 -14
  37. pulumi_newrelic/get_obfuscation_expression.py +36 -28
  38. pulumi_newrelic/get_service_level_alert_helper.py +135 -117
  39. pulumi_newrelic/get_test_grok_pattern.py +29 -18
  40. pulumi_newrelic/get_user.py +17 -9
  41. pulumi_newrelic/group.py +5 -146
  42. pulumi_newrelic/infra_alert_condition.py +160 -167
  43. pulumi_newrelic/insights/_inputs.py +43 -0
  44. pulumi_newrelic/insights/event.py +48 -47
  45. pulumi_newrelic/insights/outputs.py +5 -0
  46. pulumi_newrelic/key_transaction.py +464 -0
  47. pulumi_newrelic/log_parsing_rule.py +25 -24
  48. pulumi_newrelic/monitor_downtime.py +211 -225
  49. pulumi_newrelic/notification_channel.py +381 -366
  50. pulumi_newrelic/notification_destination.py +192 -54
  51. pulumi_newrelic/nrql_alert_condition.py +345 -262
  52. pulumi_newrelic/nrql_drop_rule.py +31 -30
  53. pulumi_newrelic/obfuscation_expression.py +23 -20
  54. pulumi_newrelic/obfuscation_rule.py +38 -33
  55. pulumi_newrelic/one_dashboard.py +29 -24
  56. pulumi_newrelic/one_dashboard_json.py +19 -14
  57. pulumi_newrelic/one_dashboard_raw.py +110 -105
  58. pulumi_newrelic/outputs.py +2446 -245
  59. pulumi_newrelic/plugins/_inputs.py +145 -10
  60. pulumi_newrelic/plugins/application_settings.py +25 -36
  61. pulumi_newrelic/plugins/outputs.py +15 -10
  62. pulumi_newrelic/plugins/workload.py +215 -92
  63. pulumi_newrelic/provider.py +27 -33
  64. pulumi_newrelic/pulumi-plugin.json +2 -1
  65. pulumi_newrelic/service_level.py +185 -186
  66. pulumi_newrelic/synthetics/_inputs.py +159 -2
  67. pulumi_newrelic/synthetics/alert_condition.py +87 -98
  68. pulumi_newrelic/synthetics/broken_links_monitor.py +216 -99
  69. pulumi_newrelic/synthetics/cert_check_monitor.py +219 -100
  70. pulumi_newrelic/synthetics/get_private_location.py +34 -30
  71. pulumi_newrelic/synthetics/get_secure_credential.py +24 -16
  72. pulumi_newrelic/synthetics/monitor.py +348 -193
  73. pulumi_newrelic/synthetics/multi_location_alert_condition.py +105 -100
  74. pulumi_newrelic/synthetics/outputs.py +7 -2
  75. pulumi_newrelic/synthetics/private_location.py +25 -20
  76. pulumi_newrelic/synthetics/script_monitor.py +317 -182
  77. pulumi_newrelic/synthetics/secure_credential.py +23 -22
  78. pulumi_newrelic/synthetics/step_monitor.py +405 -100
  79. pulumi_newrelic/user.py +13 -10
  80. pulumi_newrelic/workflow.py +209 -196
  81. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/METADATA +7 -6
  82. pulumi_newrelic-5.39.0a1736849617.dist-info/RECORD +90 -0
  83. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/WHEEL +1 -1
  84. pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +0 -89
  85. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.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.
@@ -331,89 +336,89 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
331
336
 
332
337
  ## Example Usage
333
338
 
334
- <!--Start PulumiCodeChooser -->
335
339
  ```python
336
340
  import pulumi
337
341
  import pulumi_newrelic as newrelic
338
342
 
339
- policy = newrelic.AlertPolicy("policy")
343
+ policy = newrelic.AlertPolicy("policy", name="my-policy")
340
344
  monitor = newrelic.synthetics.Monitor("monitor",
341
345
  locations_publics=["US_WEST_1"],
346
+ name="my-monitor",
342
347
  period="EVERY_10_MINUTES",
343
348
  status="DISABLED",
344
349
  type="SIMPLE",
345
350
  uri="https://www.one.newrelic.com")
346
351
  example = newrelic.synthetics.MultiLocationAlertCondition("example",
347
352
  policy_id=policy.id,
353
+ name="Example condition",
348
354
  runbook_url="https://example.com",
349
355
  enabled=True,
350
356
  violation_time_limit_seconds=3600,
351
357
  entities=[monitor.id],
352
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
353
- threshold=2,
354
- ),
355
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
356
- threshold=1,
357
- ))
358
+ critical={
359
+ "threshold": 2,
360
+ },
361
+ warning={
362
+ "threshold": 1,
363
+ })
358
364
  ```
359
- <!--End PulumiCodeChooser -->
360
365
  ## Tags
361
366
 
362
367
  Manage synthetics multilocation alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
363
368
 
364
- <!--Start PulumiCodeChooser -->
365
369
  ```python
366
370
  import pulumi
367
371
  import pulumi_newrelic as newrelic
368
372
 
369
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
370
- foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
373
+ foo = newrelic.AlertPolicy("foo", name="foo policy")
374
+ foo_monitor = newrelic.synthetics.Monitor("foo",
371
375
  status="ENABLED",
376
+ name="foo monitor",
372
377
  period="EVERY_MINUTE",
373
378
  uri="https://www.one.newrelic.com",
374
379
  type="SIMPLE",
375
380
  locations_publics=["AP_EAST_1"],
376
- custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
377
- name="some_name",
378
- value="some_value",
379
- )],
381
+ custom_headers=[{
382
+ "name": "some_name",
383
+ "value": "some_value",
384
+ }],
380
385
  treat_redirect_as_failure=True,
381
386
  validation_string="success",
382
387
  bypass_head_request=True,
383
388
  verify_ssl=True,
384
- tags=[newrelic.synthetics.MonitorTagArgs(
385
- key="some_key",
386
- values=["some_value"],
387
- )])
388
- foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("fooMultiLocationAlertCondition",
389
- 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",
390
396
  runbook_url="https://example.com",
391
397
  enabled=True,
392
398
  violation_time_limit_seconds=3600,
393
399
  entities=[foo_monitor.id],
394
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
395
- threshold=2,
396
- ),
397
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
398
- threshold=1,
399
- ))
400
- 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",
401
407
  guid=foo_multi_location_alert_condition.entity_guid,
402
408
  tags=[
403
- newrelic.EntityTagsTagArgs(
404
- key="my-key",
405
- values=[
409
+ {
410
+ "key": "my-key",
411
+ "values": [
406
412
  "my-value",
407
413
  "my-other-value",
408
414
  ],
409
- ),
410
- newrelic.EntityTagsTagArgs(
411
- key="my-key-2",
412
- values=["my-value-2"],
413
- ),
415
+ },
416
+ {
417
+ "key": "my-key-2",
418
+ "values": ["my-value-2"],
419
+ },
414
420
  ])
415
421
  ```
416
- <!--End PulumiCodeChooser -->
417
422
 
418
423
  ## Import
419
424
 
@@ -429,14 +434,14 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
429
434
 
430
435
  :param str resource_name: The name of the resource.
431
436
  :param pulumi.ResourceOptions opts: Options for the resource.
432
- :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.
433
438
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
434
439
  :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
435
440
  :param pulumi.Input[str] name: The title of the condition.
436
- :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.
437
442
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
438
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).
439
- :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.
440
445
 
441
446
 
442
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,89 +459,89 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
454
459
 
455
460
  ## Example Usage
456
461
 
457
- <!--Start PulumiCodeChooser -->
458
462
  ```python
459
463
  import pulumi
460
464
  import pulumi_newrelic as newrelic
461
465
 
462
- policy = newrelic.AlertPolicy("policy")
466
+ policy = newrelic.AlertPolicy("policy", name="my-policy")
463
467
  monitor = newrelic.synthetics.Monitor("monitor",
464
468
  locations_publics=["US_WEST_1"],
469
+ name="my-monitor",
465
470
  period="EVERY_10_MINUTES",
466
471
  status="DISABLED",
467
472
  type="SIMPLE",
468
473
  uri="https://www.one.newrelic.com")
469
474
  example = newrelic.synthetics.MultiLocationAlertCondition("example",
470
475
  policy_id=policy.id,
476
+ name="Example condition",
471
477
  runbook_url="https://example.com",
472
478
  enabled=True,
473
479
  violation_time_limit_seconds=3600,
474
480
  entities=[monitor.id],
475
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
476
- threshold=2,
477
- ),
478
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
479
- threshold=1,
480
- ))
481
+ critical={
482
+ "threshold": 2,
483
+ },
484
+ warning={
485
+ "threshold": 1,
486
+ })
481
487
  ```
482
- <!--End PulumiCodeChooser -->
483
488
  ## Tags
484
489
 
485
490
  Manage synthetics multilocation alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
486
491
 
487
- <!--Start PulumiCodeChooser -->
488
492
  ```python
489
493
  import pulumi
490
494
  import pulumi_newrelic as newrelic
491
495
 
492
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
493
- foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
496
+ foo = newrelic.AlertPolicy("foo", name="foo policy")
497
+ foo_monitor = newrelic.synthetics.Monitor("foo",
494
498
  status="ENABLED",
499
+ name="foo monitor",
495
500
  period="EVERY_MINUTE",
496
501
  uri="https://www.one.newrelic.com",
497
502
  type="SIMPLE",
498
503
  locations_publics=["AP_EAST_1"],
499
- custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
500
- name="some_name",
501
- value="some_value",
502
- )],
504
+ custom_headers=[{
505
+ "name": "some_name",
506
+ "value": "some_value",
507
+ }],
503
508
  treat_redirect_as_failure=True,
504
509
  validation_string="success",
505
510
  bypass_head_request=True,
506
511
  verify_ssl=True,
507
- tags=[newrelic.synthetics.MonitorTagArgs(
508
- key="some_key",
509
- values=["some_value"],
510
- )])
511
- foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("fooMultiLocationAlertCondition",
512
- 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",
513
519
  runbook_url="https://example.com",
514
520
  enabled=True,
515
521
  violation_time_limit_seconds=3600,
516
522
  entities=[foo_monitor.id],
517
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
518
- threshold=2,
519
- ),
520
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
521
- threshold=1,
522
- ))
523
- 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",
524
530
  guid=foo_multi_location_alert_condition.entity_guid,
525
531
  tags=[
526
- newrelic.EntityTagsTagArgs(
527
- key="my-key",
528
- values=[
532
+ {
533
+ "key": "my-key",
534
+ "values": [
529
535
  "my-value",
530
536
  "my-other-value",
531
537
  ],
532
- ),
533
- newrelic.EntityTagsTagArgs(
534
- key="my-key-2",
535
- values=["my-value-2"],
536
- ),
538
+ },
539
+ {
540
+ "key": "my-key-2",
541
+ "values": ["my-value-2"],
542
+ },
537
543
  ])
538
544
  ```
539
- <!--End PulumiCodeChooser -->
540
545
 
541
546
  ## Import
542
547
 
@@ -565,14 +570,14 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
565
570
  def _internal_init(__self__,
566
571
  resource_name: str,
567
572
  opts: Optional[pulumi.ResourceOptions] = None,
568
- critical: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']]] = None,
573
+ critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
569
574
  enabled: Optional[pulumi.Input[bool]] = None,
570
575
  entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
571
576
  name: Optional[pulumi.Input[str]] = None,
572
- policy_id: Optional[pulumi.Input[int]] = None,
577
+ policy_id: Optional[pulumi.Input[str]] = None,
573
578
  runbook_url: Optional[pulumi.Input[str]] = None,
574
579
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
575
- warning: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']]] = None,
580
+ warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None,
576
581
  __props__=None):
577
582
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
578
583
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -607,15 +612,15 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
607
612
  def get(resource_name: str,
608
613
  id: pulumi.Input[str],
609
614
  opts: Optional[pulumi.ResourceOptions] = None,
610
- critical: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']]] = None,
615
+ critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
611
616
  enabled: Optional[pulumi.Input[bool]] = None,
612
617
  entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
613
618
  entity_guid: Optional[pulumi.Input[str]] = None,
614
619
  name: Optional[pulumi.Input[str]] = None,
615
- policy_id: Optional[pulumi.Input[int]] = None,
620
+ policy_id: Optional[pulumi.Input[str]] = None,
616
621
  runbook_url: Optional[pulumi.Input[str]] = None,
617
622
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
618
- warning: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']]] = None) -> 'MultiLocationAlertCondition':
623
+ warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None) -> 'MultiLocationAlertCondition':
619
624
  """
620
625
  Get an existing MultiLocationAlertCondition resource's state with the given name, id, and optional extra
621
626
  properties used to qualify the lookup.
@@ -623,15 +628,15 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
623
628
  :param str resource_name: The unique name of the resulting resource.
624
629
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
625
630
  :param pulumi.ResourceOptions opts: Options for the resource.
626
- :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.
627
632
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
628
633
  :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
629
634
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
630
635
  :param pulumi.Input[str] name: The title of the condition.
631
- :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.
632
637
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
633
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).
634
- :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.
635
640
 
636
641
 
637
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.
@@ -693,7 +698,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
693
698
 
694
699
  @property
695
700
  @pulumi.getter(name="policyId")
696
- def policy_id(self) -> pulumi.Output[int]:
701
+ def policy_id(self) -> pulumi.Output[str]:
697
702
  """
698
703
  The ID of the policy where this condition will be used.
699
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,
@@ -233,14 +238,14 @@ class PrivateLocation(pulumi.CustomResource):
233
238
 
234
239
  ## Example Usage
235
240
 
236
- <!--Start PulumiCodeChooser -->
237
241
  ```python
238
242
  import pulumi
239
243
  import pulumi_newrelic as newrelic
240
244
 
241
- 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")
242
248
  ```
243
- <!--End PulumiCodeChooser -->
244
249
 
245
250
  ## Import
246
251
 
@@ -252,7 +257,7 @@ class PrivateLocation(pulumi.CustomResource):
252
257
 
253
258
  :param str resource_name: The name of the resource.
254
259
  :param pulumi.ResourceOptions opts: Options for the resource.
255
- :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.
256
261
  :param pulumi.Input[str] description: The private location description.
257
262
  :param pulumi.Input[str] name: The name of the private location.
258
263
  :param pulumi.Input[bool] verified_script_execution: The private location requires a password to edit if value is true. Defaults to `false`
@@ -268,14 +273,14 @@ class PrivateLocation(pulumi.CustomResource):
268
273
 
269
274
  ## Example Usage
270
275
 
271
- <!--Start PulumiCodeChooser -->
272
276
  ```python
273
277
  import pulumi
274
278
  import pulumi_newrelic as newrelic
275
279
 
276
- 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")
277
283
  ```
278
- <!--End PulumiCodeChooser -->
279
284
 
280
285
  ## Import
281
286
 
@@ -300,7 +305,7 @@ class PrivateLocation(pulumi.CustomResource):
300
305
  def _internal_init(__self__,
301
306
  resource_name: str,
302
307
  opts: Optional[pulumi.ResourceOptions] = None,
303
- account_id: Optional[pulumi.Input[int]] = None,
308
+ account_id: Optional[pulumi.Input[str]] = None,
304
309
  description: Optional[pulumi.Input[str]] = None,
305
310
  name: Optional[pulumi.Input[str]] = None,
306
311
  verified_script_execution: Optional[pulumi.Input[bool]] = None,
@@ -333,7 +338,7 @@ class PrivateLocation(pulumi.CustomResource):
333
338
  def get(resource_name: str,
334
339
  id: pulumi.Input[str],
335
340
  opts: Optional[pulumi.ResourceOptions] = None,
336
- account_id: Optional[pulumi.Input[int]] = None,
341
+ account_id: Optional[pulumi.Input[str]] = None,
337
342
  description: Optional[pulumi.Input[str]] = None,
338
343
  domain_id: Optional[pulumi.Input[str]] = None,
339
344
  guid: Optional[pulumi.Input[str]] = None,
@@ -348,7 +353,7 @@ class PrivateLocation(pulumi.CustomResource):
348
353
  :param str resource_name: The unique name of the resulting resource.
349
354
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
350
355
  :param pulumi.ResourceOptions opts: Options for the resource.
351
- :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.
352
357
  :param pulumi.Input[str] description: The private location description.
353
358
  :param pulumi.Input[str] domain_id: The private location globally unique identifier.
354
359
  :param pulumi.Input[str] guid: The unique client identifier for the private location in New Relic. Same as `id`.
@@ -373,7 +378,7 @@ class PrivateLocation(pulumi.CustomResource):
373
378
 
374
379
  @property
375
380
  @pulumi.getter(name="accountId")
376
- def account_id(self) -> pulumi.Output[int]:
381
+ def account_id(self) -> pulumi.Output[str]:
377
382
  """
378
383
  The account in which the private location will be created.
379
384
  """