pulumi-newrelic 5.16.0a1698964311__py3-none-any.whl → 5.58.0a1763707205__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.

Potentially problematic release.


This version of pulumi-newrelic might be problematic. Click here for more details.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +58 -1
  2. pulumi_newrelic/_inputs.py +10772 -2775
  3. pulumi_newrelic/_utilities.py +92 -11
  4. pulumi_newrelic/account_management.py +56 -42
  5. pulumi_newrelic/alert_channel.py +177 -151
  6. pulumi_newrelic/alert_condition.py +313 -301
  7. pulumi_newrelic/alert_muting_rule.py +195 -138
  8. pulumi_newrelic/alert_policy.py +157 -109
  9. pulumi_newrelic/alert_policy_channel.py +95 -81
  10. pulumi_newrelic/api_access_key.py +191 -209
  11. pulumi_newrelic/browser_application.py +161 -153
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2710
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
  16. pulumi_newrelic/cloud/aws_integrations.py +518 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +88 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +681 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +129 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +436 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +71 -59
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2317
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +45 -0
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +129 -117
  28. pulumi_newrelic/entity_tags.py +153 -31
  29. pulumi_newrelic/events_to_metrics_rule.py +114 -102
  30. pulumi_newrelic/get_account.py +41 -29
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +83 -34
  33. pulumi_newrelic/get_application.py +51 -39
  34. pulumi_newrelic/get_authentication_domain.py +111 -0
  35. pulumi_newrelic/get_cloud_account.py +43 -31
  36. pulumi_newrelic/get_entity.py +126 -121
  37. pulumi_newrelic/get_group.py +190 -0
  38. pulumi_newrelic/get_key_transaction.py +117 -38
  39. pulumi_newrelic/get_notification_destination.py +86 -36
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -35
  41. pulumi_newrelic/get_service_level_alert_helper.py +237 -137
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -32
  43. pulumi_newrelic/get_user.py +165 -0
  44. pulumi_newrelic/group.py +286 -0
  45. pulumi_newrelic/infra_alert_condition.py +400 -382
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +94 -23
  48. pulumi_newrelic/insights/event.py +56 -48
  49. pulumi_newrelic/insights/outputs.py +51 -18
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +169 -153
  52. pulumi_newrelic/monitor_downtime.py +914 -0
  53. pulumi_newrelic/notification_channel.py +560 -418
  54. pulumi_newrelic/notification_destination.py +379 -124
  55. pulumi_newrelic/nrql_alert_condition.py +945 -513
  56. pulumi_newrelic/nrql_drop_rule.py +121 -129
  57. pulumi_newrelic/obfuscation_expression.py +88 -76
  58. pulumi_newrelic/obfuscation_rule.py +123 -109
  59. pulumi_newrelic/one_dashboard.py +118 -108
  60. pulumi_newrelic/one_dashboard_json.py +77 -67
  61. pulumi_newrelic/one_dashboard_raw.py +214 -202
  62. pulumi_newrelic/outputs.py +5491 -2141
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +520 -90
  66. pulumi_newrelic/plugins/application_settings.py +463 -167
  67. pulumi_newrelic/plugins/outputs.py +337 -75
  68. pulumi_newrelic/plugins/workload.py +387 -151
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +277 -255
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +275 -106
  74. pulumi_newrelic/synthetics/alert_condition.py +174 -160
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -39
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
  79. pulumi_newrelic/synthetics/monitor.py +668 -462
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
  81. pulumi_newrelic/synthetics/outputs.py +102 -85
  82. pulumi_newrelic/synthetics/private_location.py +120 -110
  83. pulumi_newrelic/synthetics/script_monitor.py +623 -375
  84. pulumi_newrelic/synthetics/secure_credential.py +99 -93
  85. pulumi_newrelic/synthetics/step_monitor.py +545 -201
  86. pulumi_newrelic/user.py +366 -0
  87. pulumi_newrelic/workflow.py +348 -312
  88. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
  92. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
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__ = [
@@ -22,8 +27,8 @@ class GetPrivateLocationResult:
22
27
  A collection of values returned by getPrivateLocation.
23
28
  """
24
29
  def __init__(__self__, account_id=None, id=None, keys=None, name=None):
25
- if account_id and not isinstance(account_id, int):
26
- raise TypeError("Expected argument 'account_id' to be a int")
30
+ if account_id and not isinstance(account_id, str):
31
+ raise TypeError("Expected argument 'account_id' to be a str")
27
32
  pulumi.set(__self__, "account_id", account_id)
28
33
  if id and not isinstance(id, str):
29
34
  raise TypeError("Expected argument 'id' to be a str")
@@ -35,30 +40,30 @@ class GetPrivateLocationResult:
35
40
  raise TypeError("Expected argument 'name' to be a str")
36
41
  pulumi.set(__self__, "name", name)
37
42
 
38
- @property
43
+ @_builtins.property
39
44
  @pulumi.getter(name="accountId")
40
- def account_id(self) -> Optional[int]:
45
+ def account_id(self) -> Optional[_builtins.str]:
41
46
  return pulumi.get(self, "account_id")
42
47
 
43
- @property
48
+ @_builtins.property
44
49
  @pulumi.getter
45
- def id(self) -> str:
50
+ def id(self) -> _builtins.str:
46
51
  """
47
52
  The provider-assigned unique ID for this managed resource.
48
53
  """
49
54
  return pulumi.get(self, "id")
50
55
 
51
- @property
56
+ @_builtins.property
52
57
  @pulumi.getter
53
- def keys(self) -> Sequence[str]:
58
+ def keys(self) -> Sequence[_builtins.str]:
54
59
  """
55
60
  The key of the private location.
56
61
  """
57
62
  return pulumi.get(self, "keys")
58
63
 
59
- @property
64
+ @_builtins.property
60
65
  @pulumi.getter
61
- def name(self) -> str:
66
+ def name(self) -> _builtins.str:
62
67
  return pulumi.get(self, "name")
63
68
 
64
69
 
@@ -74,9 +79,9 @@ class AwaitableGetPrivateLocationResult(GetPrivateLocationResult):
74
79
  name=self.name)
75
80
 
76
81
 
77
- def get_private_location(account_id: Optional[int] = None,
78
- keys: Optional[Sequence[str]] = None,
79
- name: Optional[str] = None,
82
+ def get_private_location(account_id: Optional[_builtins.str] = None,
83
+ keys: Optional[Sequence[_builtins.str]] = None,
84
+ name: Optional[_builtins.str] = None,
80
85
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPrivateLocationResult:
81
86
  """
82
87
  Use this data source to get information about a specific Synthetics monitor private location in New Relic that already exists.
@@ -87,7 +92,7 @@ def get_private_location(account_id: Optional[int] = None,
87
92
  import pulumi
88
93
  import pulumi_newrelic as newrelic
89
94
 
90
- example = newrelic.synthetics.get_private_location(account_id=123456,
95
+ example = newrelic.synthetics.get_private_location(account_id="123456",
91
96
  name="My private location")
92
97
  foo = newrelic.synthetics.Monitor("foo", locations_privates=[example.id])
93
98
  ```
@@ -96,17 +101,17 @@ def get_private_location(account_id: Optional[int] = None,
96
101
  import pulumi
97
102
  import pulumi_newrelic as newrelic
98
103
 
99
- example = newrelic.synthetics.get_private_location(account_id=123456,
104
+ example = newrelic.synthetics.get_private_location(account_id="123456",
100
105
  name="My private location")
101
- foo = newrelic.synthetics.StepMonitor("foo", location_privates=[newrelic.synthetics.StepMonitorLocationPrivateArgs(
102
- guid=example.id,
103
- )])
106
+ foo = newrelic.synthetics.StepMonitor("foo", location_privates=[{
107
+ "guid": example.id,
108
+ }])
104
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.
108
- :param Sequence[str] keys: The key of the private location.
109
- :param str name: The name of the Synthetics monitor private location.
112
+ :param _builtins.str 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.
113
+ :param Sequence[_builtins.str] keys: The key of the private location.
114
+ :param _builtins.str name: The name of the Synthetics monitor private location.
110
115
  """
111
116
  __args__ = dict()
112
117
  __args__['accountId'] = account_id
@@ -120,13 +125,10 @@ def get_private_location(account_id: Optional[int] = None,
120
125
  id=pulumi.get(__ret__, 'id'),
121
126
  keys=pulumi.get(__ret__, 'keys'),
122
127
  name=pulumi.get(__ret__, 'name'))
123
-
124
-
125
- @_utilities.lift_output_func(get_private_location)
126
- def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
127
- keys: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
128
- name: Optional[pulumi.Input[str]] = None,
129
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPrivateLocationResult]:
128
+ def get_private_location_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
129
+ keys: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
130
+ name: Optional[pulumi.Input[_builtins.str]] = None,
131
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPrivateLocationResult]:
130
132
  """
131
133
  Use this data source to get information about a specific Synthetics monitor private location in New Relic that already exists.
132
134
 
@@ -136,7 +138,7 @@ def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]
136
138
  import pulumi
137
139
  import pulumi_newrelic as newrelic
138
140
 
139
- example = newrelic.synthetics.get_private_location(account_id=123456,
141
+ example = newrelic.synthetics.get_private_location(account_id="123456",
140
142
  name="My private location")
141
143
  foo = newrelic.synthetics.Monitor("foo", locations_privates=[example.id])
142
144
  ```
@@ -145,16 +147,26 @@ def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]
145
147
  import pulumi
146
148
  import pulumi_newrelic as newrelic
147
149
 
148
- example = newrelic.synthetics.get_private_location(account_id=123456,
150
+ example = newrelic.synthetics.get_private_location(account_id="123456",
149
151
  name="My private location")
150
- foo = newrelic.synthetics.StepMonitor("foo", location_privates=[newrelic.synthetics.StepMonitorLocationPrivateArgs(
151
- guid=example.id,
152
- )])
152
+ foo = newrelic.synthetics.StepMonitor("foo", location_privates=[{
153
+ "guid": example.id,
154
+ }])
153
155
  ```
154
156
 
155
157
 
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.
157
- :param Sequence[str] keys: The key of the private location.
158
- :param str name: The name of the Synthetics monitor private location.
158
+ :param _builtins.str 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.
159
+ :param Sequence[_builtins.str] keys: The key of the private location.
160
+ :param _builtins.str name: The name of the Synthetics monitor private location.
159
161
  """
160
- ...
162
+ __args__ = dict()
163
+ __args__['accountId'] = account_id
164
+ __args__['keys'] = keys
165
+ __args__['name'] = name
166
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
167
+ __ret__ = pulumi.runtime.invoke_output('newrelic:synthetics/getPrivateLocation:getPrivateLocation', __args__, opts=opts, typ=GetPrivateLocationResult)
168
+ return __ret__.apply(lambda __response__: GetPrivateLocationResult(
169
+ account_id=pulumi.get(__response__, 'account_id'),
170
+ id=pulumi.get(__response__, 'id'),
171
+ keys=pulumi.get(__response__, 'keys'),
172
+ name=pulumi.get(__response__, 'name')))
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
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__ = [
@@ -22,8 +27,8 @@ class GetSecureCredentialResult:
22
27
  A collection of values returned by getSecureCredential.
23
28
  """
24
29
  def __init__(__self__, account_id=None, description=None, id=None, key=None, last_updated=None):
25
- if account_id and not isinstance(account_id, int):
26
- raise TypeError("Expected argument 'account_id' to be a int")
30
+ if account_id and not isinstance(account_id, str):
31
+ raise TypeError("Expected argument 'account_id' to be a str")
27
32
  pulumi.set(__self__, "account_id", account_id)
28
33
  if description and not isinstance(description, str):
29
34
  raise TypeError("Expected argument 'description' to be a str")
@@ -38,35 +43,35 @@ class GetSecureCredentialResult:
38
43
  raise TypeError("Expected argument 'last_updated' to be a str")
39
44
  pulumi.set(__self__, "last_updated", last_updated)
40
45
 
41
- @property
46
+ @_builtins.property
42
47
  @pulumi.getter(name="accountId")
43
- def account_id(self) -> int:
48
+ def account_id(self) -> _builtins.str:
44
49
  return pulumi.get(self, "account_id")
45
50
 
46
- @property
51
+ @_builtins.property
47
52
  @pulumi.getter
48
- def description(self) -> str:
53
+ def description(self) -> _builtins.str:
49
54
  """
50
55
  The secure credential's description.
51
56
  """
52
57
  return pulumi.get(self, "description")
53
58
 
54
- @property
59
+ @_builtins.property
55
60
  @pulumi.getter
56
- def id(self) -> str:
61
+ def id(self) -> _builtins.str:
57
62
  """
58
63
  The provider-assigned unique ID for this managed resource.
59
64
  """
60
65
  return pulumi.get(self, "id")
61
66
 
62
- @property
67
+ @_builtins.property
63
68
  @pulumi.getter
64
- def key(self) -> str:
69
+ def key(self) -> _builtins.str:
65
70
  return pulumi.get(self, "key")
66
71
 
67
- @property
72
+ @_builtins.property
68
73
  @pulumi.getter(name="lastUpdated")
69
- def last_updated(self) -> str:
74
+ def last_updated(self) -> _builtins.str:
70
75
  """
71
76
  The time the secure credential was last updated.
72
77
  """
@@ -86,8 +91,8 @@ class AwaitableGetSecureCredentialResult(GetSecureCredentialResult):
86
91
  last_updated=self.last_updated)
87
92
 
88
93
 
89
- def get_secure_credential(account_id: Optional[int] = None,
90
- key: Optional[str] = None,
94
+ def get_secure_credential(account_id: Optional[_builtins.str] = None,
95
+ key: Optional[_builtins.str] = None,
91
96
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecureCredentialResult:
92
97
  """
93
98
  Use this data source to get information about a specific Synthetics secure credential in New Relic that already exists.
@@ -104,8 +109,8 @@ def get_secure_credential(account_id: Optional[int] = None,
104
109
  ```
105
110
 
106
111
 
107
- :param int account_id: The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used.
108
- :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.
112
+ :param _builtins.str account_id: The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used.
113
+ :param _builtins.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.
109
114
  """
110
115
  __args__ = dict()
111
116
  __args__['accountId'] = account_id
@@ -119,12 +124,9 @@ def get_secure_credential(account_id: Optional[int] = None,
119
124
  id=pulumi.get(__ret__, 'id'),
120
125
  key=pulumi.get(__ret__, 'key'),
121
126
  last_updated=pulumi.get(__ret__, 'last_updated'))
122
-
123
-
124
- @_utilities.lift_output_func(get_secure_credential)
125
- def get_secure_credential_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
126
- key: Optional[pulumi.Input[str]] = None,
127
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecureCredentialResult]:
127
+ def get_secure_credential_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
128
+ key: Optional[pulumi.Input[_builtins.str]] = None,
129
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecureCredentialResult]:
128
130
  """
129
131
  Use this data source to get information about a specific Synthetics secure credential in New Relic that already exists.
130
132
 
@@ -140,7 +142,17 @@ def get_secure_credential_output(account_id: Optional[pulumi.Input[Optional[int]
140
142
  ```
141
143
 
142
144
 
143
- :param int account_id: The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used.
144
- :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.
145
+ :param _builtins.str account_id: The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used.
146
+ :param _builtins.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.
145
147
  """
146
- ...
148
+ __args__ = dict()
149
+ __args__['accountId'] = account_id
150
+ __args__['key'] = key
151
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
152
+ __ret__ = pulumi.runtime.invoke_output('newrelic:synthetics/getSecureCredential:getSecureCredential', __args__, opts=opts, typ=GetSecureCredentialResult)
153
+ return __ret__.apply(lambda __response__: GetSecureCredentialResult(
154
+ account_id=pulumi.get(__response__, 'account_id'),
155
+ description=pulumi.get(__response__, 'description'),
156
+ id=pulumi.get(__response__, 'id'),
157
+ key=pulumi.get(__response__, 'key'),
158
+ last_updated=pulumi.get(__response__, 'last_updated')))