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,16 +4,42 @@
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__ = [
13
18
  'EventEventArgs',
19
+ 'EventEventArgsDict',
14
20
  'EventEventAttributeArgs',
21
+ 'EventEventAttributeArgsDict',
15
22
  ]
16
23
 
24
+ MYPY = False
25
+
26
+ if not MYPY:
27
+ class EventEventArgsDict(TypedDict):
28
+ attributes: pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgsDict']]]
29
+ """
30
+ An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
31
+ """
32
+ type: pulumi.Input[str]
33
+ """
34
+ The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
35
+ """
36
+ timestamp: NotRequired[pulumi.Input[int]]
37
+ """
38
+ Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
39
+ """
40
+ elif False:
41
+ EventEventArgsDict: TypeAlias = Mapping[str, Any]
42
+
17
43
  @pulumi.input_type
18
44
  class EventEventArgs:
19
45
  def __init__(__self__, *,
@@ -67,6 +93,23 @@ class EventEventArgs:
67
93
  pulumi.set(self, "timestamp", value)
68
94
 
69
95
 
96
+ if not MYPY:
97
+ class EventEventAttributeArgsDict(TypedDict):
98
+ key: pulumi.Input[str]
99
+ """
100
+ The name of the attribute.
101
+ """
102
+ value: pulumi.Input[str]
103
+ """
104
+ The value of the attribute.
105
+ """
106
+ type: NotRequired[pulumi.Input[str]]
107
+ """
108
+ Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
109
+ """
110
+ elif False:
111
+ EventEventAttributeArgsDict: TypeAlias = Mapping[str, Any]
112
+
70
113
  @pulumi.input_type
71
114
  class EventEventAttributeArgs:
72
115
  def __init__(__self__, *,
@@ -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 *
@@ -65,7 +70,7 @@ class Event(pulumi.CustomResource):
65
70
  def __init__(__self__,
66
71
  resource_name: str,
67
72
  opts: Optional[pulumi.ResourceOptions] = None,
68
- events: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]]] = None,
73
+ events: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]]] = None,
69
74
  __props__=None):
70
75
  """
71
76
  Use this resource to create one or more Insights events.
@@ -76,27 +81,28 @@ class Event(pulumi.CustomResource):
76
81
  import pulumi
77
82
  import pulumi_newrelic as newrelic
78
83
 
79
- foo = newrelic.insights.Event("foo", events=[newrelic.insights.EventEventArgs(
80
- attributes=[
81
- newrelic.insights.EventEventAttributeArgs(
82
- key="a_string_attribute",
83
- value="a string",
84
- ),
85
- newrelic.insights.EventEventAttributeArgs(
86
- key="an_integer_attribute",
87
- type="int",
88
- value="42",
89
- ),
90
- newrelic.insights.EventEventAttributeArgs(
91
- key="a_float_attribute",
92
- type="float",
93
- value="101.1",
94
- ),
84
+ foo = newrelic.insights.Event("foo", events=[{
85
+ "type": "MyEvent",
86
+ "timestamp": 1232471100,
87
+ "attributes": [
88
+ {
89
+ "key": "a_string_attribute",
90
+ "value": "a string",
91
+ },
92
+ {
93
+ "key": "an_integer_attribute",
94
+ "value": "42",
95
+ "type": "int",
96
+ },
97
+ {
98
+ "key": "a_float_attribute",
99
+ "value": "101.1",
100
+ "type": "float",
101
+ },
95
102
  ],
96
- timestamp=1232471100,
97
- type="MyEvent",
98
- )])
103
+ }])
99
104
  ```
105
+
100
106
  ## Events
101
107
 
102
108
  The `event` mapping supports the following arguments:
@@ -115,7 +121,7 @@ class Event(pulumi.CustomResource):
115
121
 
116
122
  :param str resource_name: The name of the resource.
117
123
  :param pulumi.ResourceOptions opts: Options for the resource.
118
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]] events: An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
124
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]] events: An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
119
125
  """
120
126
  ...
121
127
  @overload
@@ -132,27 +138,28 @@ class Event(pulumi.CustomResource):
132
138
  import pulumi
133
139
  import pulumi_newrelic as newrelic
134
140
 
135
- foo = newrelic.insights.Event("foo", events=[newrelic.insights.EventEventArgs(
136
- attributes=[
137
- newrelic.insights.EventEventAttributeArgs(
138
- key="a_string_attribute",
139
- value="a string",
140
- ),
141
- newrelic.insights.EventEventAttributeArgs(
142
- key="an_integer_attribute",
143
- type="int",
144
- value="42",
145
- ),
146
- newrelic.insights.EventEventAttributeArgs(
147
- key="a_float_attribute",
148
- type="float",
149
- value="101.1",
150
- ),
141
+ foo = newrelic.insights.Event("foo", events=[{
142
+ "type": "MyEvent",
143
+ "timestamp": 1232471100,
144
+ "attributes": [
145
+ {
146
+ "key": "a_string_attribute",
147
+ "value": "a string",
148
+ },
149
+ {
150
+ "key": "an_integer_attribute",
151
+ "value": "42",
152
+ "type": "int",
153
+ },
154
+ {
155
+ "key": "a_float_attribute",
156
+ "value": "101.1",
157
+ "type": "float",
158
+ },
151
159
  ],
152
- timestamp=1232471100,
153
- type="MyEvent",
154
- )])
160
+ }])
155
161
  ```
162
+
156
163
  ## Events
157
164
 
158
165
  The `event` mapping supports the following arguments:
@@ -184,7 +191,7 @@ class Event(pulumi.CustomResource):
184
191
  def _internal_init(__self__,
185
192
  resource_name: str,
186
193
  opts: Optional[pulumi.ResourceOptions] = None,
187
- events: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]]] = None,
194
+ events: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]]] = None,
188
195
  __props__=None):
189
196
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
190
197
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -207,7 +214,7 @@ class Event(pulumi.CustomResource):
207
214
  def get(resource_name: str,
208
215
  id: pulumi.Input[str],
209
216
  opts: Optional[pulumi.ResourceOptions] = None,
210
- events: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]]] = None) -> 'Event':
217
+ events: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]]] = None) -> 'Event':
211
218
  """
212
219
  Get an existing Event resource's state with the given name, id, and optional extra
213
220
  properties used to qualify the lookup.
@@ -215,7 +222,7 @@ class Event(pulumi.CustomResource):
215
222
  :param str resource_name: The unique name of the resulting resource.
216
223
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
217
224
  :param pulumi.ResourceOptions opts: Options for the resource.
218
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]] events: An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
225
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]] events: An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
219
226
  """
220
227
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
221
228
 
@@ -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