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,12 +4,17 @@
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
- accountId: Optional[int]
17
+ accountId: Optional[str]
13
18
 
14
19
  adminApiKey: Optional[str]
15
20
 
@@ -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
  import types
@@ -16,8 +21,8 @@ __config__ = pulumi.Config('newrelic')
16
21
 
17
22
  class _ExportableConfig(types.ModuleType):
18
23
  @property
19
- def account_id(self) -> Optional[int]:
20
- return __config__.get_int('accountId') or _utilities.get_env_int('NEW_RELIC_ACCOUNT_ID')
24
+ def account_id(self) -> Optional[str]:
25
+ return __config__.get('accountId') or _utilities.get_env('NEW_RELIC_ACCOUNT_ID')
21
26
 
22
27
  @property
23
28
  def admin_api_key(self) -> Optional[str]:
@@ -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__ = ['DataPartitionRuleArgs', 'DataPartitionRule']
@@ -18,7 +23,7 @@ class DataPartitionRuleArgs:
18
23
  nrql: pulumi.Input[str],
19
24
  retention_policy: pulumi.Input[str],
20
25
  target_data_partition: pulumi.Input[str],
21
- account_id: Optional[pulumi.Input[int]] = None,
26
+ account_id: Optional[pulumi.Input[str]] = None,
22
27
  description: Optional[pulumi.Input[str]] = None):
23
28
  """
24
29
  The set of arguments for constructing a DataPartitionRule resource.
@@ -26,7 +31,7 @@ class DataPartitionRuleArgs:
26
31
  :param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
27
32
  :param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
28
33
  :param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
29
- :param pulumi.Input[int] account_id: The account id associated with the data partition rule.
34
+ :param pulumi.Input[str] account_id: The account id associated with the data partition rule.
30
35
  :param pulumi.Input[str] description: The description of the data partition rule.
31
36
  """
32
37
  pulumi.set(__self__, "enabled", enabled)
@@ -88,14 +93,14 @@ class DataPartitionRuleArgs:
88
93
 
89
94
  @property
90
95
  @pulumi.getter(name="accountId")
91
- def account_id(self) -> Optional[pulumi.Input[int]]:
96
+ def account_id(self) -> Optional[pulumi.Input[str]]:
92
97
  """
93
98
  The account id associated with the data partition rule.
94
99
  """
95
100
  return pulumi.get(self, "account_id")
96
101
 
97
102
  @account_id.setter
98
- def account_id(self, value: Optional[pulumi.Input[int]]):
103
+ def account_id(self, value: Optional[pulumi.Input[str]]):
99
104
  pulumi.set(self, "account_id", value)
100
105
 
101
106
  @property
@@ -114,7 +119,7 @@ class DataPartitionRuleArgs:
114
119
  @pulumi.input_type
115
120
  class _DataPartitionRuleState:
116
121
  def __init__(__self__, *,
117
- account_id: Optional[pulumi.Input[int]] = None,
122
+ account_id: Optional[pulumi.Input[str]] = None,
118
123
  deleted: Optional[pulumi.Input[bool]] = None,
119
124
  description: Optional[pulumi.Input[str]] = None,
120
125
  enabled: Optional[pulumi.Input[bool]] = None,
@@ -123,7 +128,7 @@ class _DataPartitionRuleState:
123
128
  target_data_partition: Optional[pulumi.Input[str]] = None):
124
129
  """
125
130
  Input properties used for looking up and filtering DataPartitionRule resources.
126
- :param pulumi.Input[int] account_id: The account id associated with the data partition rule.
131
+ :param pulumi.Input[str] account_id: The account id associated with the data partition rule.
127
132
  :param pulumi.Input[bool] deleted: Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field.
128
133
  :param pulumi.Input[str] description: The description of the data partition rule.
129
134
  :param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
@@ -148,14 +153,14 @@ class _DataPartitionRuleState:
148
153
 
149
154
  @property
150
155
  @pulumi.getter(name="accountId")
151
- def account_id(self) -> Optional[pulumi.Input[int]]:
156
+ def account_id(self) -> Optional[pulumi.Input[str]]:
152
157
  """
153
158
  The account id associated with the data partition rule.
154
159
  """
155
160
  return pulumi.get(self, "account_id")
156
161
 
157
162
  @account_id.setter
158
- def account_id(self, value: Optional[pulumi.Input[int]]):
163
+ def account_id(self, value: Optional[pulumi.Input[str]]):
159
164
  pulumi.set(self, "account_id", value)
160
165
 
161
166
  @property
@@ -236,7 +241,7 @@ class DataPartitionRule(pulumi.CustomResource):
236
241
  def __init__(__self__,
237
242
  resource_name: str,
238
243
  opts: Optional[pulumi.ResourceOptions] = None,
239
- account_id: Optional[pulumi.Input[int]] = None,
244
+ account_id: Optional[pulumi.Input[str]] = None,
240
245
  description: Optional[pulumi.Input[str]] = None,
241
246
  enabled: Optional[pulumi.Input[bool]] = None,
242
247
  nrql: Optional[pulumi.Input[str]] = None,
@@ -259,6 +264,7 @@ class DataPartitionRule(pulumi.CustomResource):
259
264
  retention_policy="STANDARD",
260
265
  target_data_partition="Log_name")
261
266
  ```
267
+
262
268
  ## Additional Information
263
269
 
264
270
  More details about the data partition can be found [here](https://docs.newrelic.com/docs/logs/ui-data/data-partitions/)
@@ -267,7 +273,7 @@ class DataPartitionRule(pulumi.CustomResource):
267
273
 
268
274
  New Relic data partition rule can be imported using the rule ID, e.g.
269
275
 
270
- bash
276
+ bash
271
277
 
272
278
  ```sh
273
279
  $ pulumi import newrelic:index/dataPartitionRule:DataPartitionRule foo <id>
@@ -275,7 +281,7 @@ class DataPartitionRule(pulumi.CustomResource):
275
281
 
276
282
  :param str resource_name: The name of the resource.
277
283
  :param pulumi.ResourceOptions opts: Options for the resource.
278
- :param pulumi.Input[int] account_id: The account id associated with the data partition rule.
284
+ :param pulumi.Input[str] account_id: The account id associated with the data partition rule.
279
285
  :param pulumi.Input[str] description: The description of the data partition rule.
280
286
  :param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
281
287
  :param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
@@ -304,6 +310,7 @@ class DataPartitionRule(pulumi.CustomResource):
304
310
  retention_policy="STANDARD",
305
311
  target_data_partition="Log_name")
306
312
  ```
313
+
307
314
  ## Additional Information
308
315
 
309
316
  More details about the data partition can be found [here](https://docs.newrelic.com/docs/logs/ui-data/data-partitions/)
@@ -312,7 +319,7 @@ class DataPartitionRule(pulumi.CustomResource):
312
319
 
313
320
  New Relic data partition rule can be imported using the rule ID, e.g.
314
321
 
315
- bash
322
+ bash
316
323
 
317
324
  ```sh
318
325
  $ pulumi import newrelic:index/dataPartitionRule:DataPartitionRule foo <id>
@@ -333,7 +340,7 @@ class DataPartitionRule(pulumi.CustomResource):
333
340
  def _internal_init(__self__,
334
341
  resource_name: str,
335
342
  opts: Optional[pulumi.ResourceOptions] = None,
336
- account_id: Optional[pulumi.Input[int]] = None,
343
+ account_id: Optional[pulumi.Input[str]] = None,
337
344
  description: Optional[pulumi.Input[str]] = None,
338
345
  enabled: Optional[pulumi.Input[bool]] = None,
339
346
  nrql: Optional[pulumi.Input[str]] = None,
@@ -373,7 +380,7 @@ class DataPartitionRule(pulumi.CustomResource):
373
380
  def get(resource_name: str,
374
381
  id: pulumi.Input[str],
375
382
  opts: Optional[pulumi.ResourceOptions] = None,
376
- account_id: Optional[pulumi.Input[int]] = None,
383
+ account_id: Optional[pulumi.Input[str]] = None,
377
384
  deleted: Optional[pulumi.Input[bool]] = None,
378
385
  description: Optional[pulumi.Input[str]] = None,
379
386
  enabled: Optional[pulumi.Input[bool]] = None,
@@ -387,7 +394,7 @@ class DataPartitionRule(pulumi.CustomResource):
387
394
  :param str resource_name: The unique name of the resulting resource.
388
395
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
389
396
  :param pulumi.ResourceOptions opts: Options for the resource.
390
- :param pulumi.Input[int] account_id: The account id associated with the data partition rule.
397
+ :param pulumi.Input[str] account_id: The account id associated with the data partition rule.
391
398
  :param pulumi.Input[bool] deleted: Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field.
392
399
  :param pulumi.Input[str] description: The description of the data partition rule.
393
400
  :param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
@@ -410,7 +417,7 @@ class DataPartitionRule(pulumi.CustomResource):
410
417
 
411
418
  @property
412
419
  @pulumi.getter(name="accountId")
413
- def account_id(self) -> pulumi.Output[int]:
420
+ def account_id(self) -> pulumi.Output[str]:
414
421
  """
415
422
  The account id associated with the data partition rule.
416
423
  """
@@ -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 *
@@ -97,7 +102,7 @@ class EntityTags(pulumi.CustomResource):
97
102
  resource_name: str,
98
103
  opts: Optional[pulumi.ResourceOptions] = None,
99
104
  guid: Optional[pulumi.Input[str]] = None,
100
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]]] = None,
105
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]]] = None,
101
106
  __props__=None):
102
107
  """
103
108
  Use this resource to create, update, and delete tags for a New Relic One entity.
@@ -108,23 +113,23 @@ class EntityTags(pulumi.CustomResource):
108
113
  import pulumi
109
114
  import pulumi_newrelic as newrelic
110
115
 
111
- foo_entity = newrelic.get_entity(name="Example application",
116
+ foo = newrelic.get_entity(name="Example application",
112
117
  type="APPLICATION",
113
118
  domain="APM")
114
- foo_entity_tags = newrelic.EntityTags("fooEntityTags",
115
- guid=foo_entity.guid,
119
+ foo_entity_tags = newrelic.EntityTags("foo",
120
+ guid=foo.guid,
116
121
  tags=[
117
- newrelic.EntityTagsTagArgs(
118
- key="my-key",
119
- values=[
122
+ {
123
+ "key": "my-key",
124
+ "values": [
120
125
  "my-value",
121
126
  "my-other-value",
122
127
  ],
123
- ),
124
- newrelic.EntityTagsTagArgs(
125
- key="my-key-2",
126
- values=["my-value-2"],
127
- ),
128
+ },
129
+ {
130
+ "key": "my-key-2",
131
+ "values": ["my-value-2"],
132
+ },
128
133
  ])
129
134
  ```
130
135
 
@@ -132,9 +137,9 @@ class EntityTags(pulumi.CustomResource):
132
137
 
133
138
  New Relic One entity tags can be imported using a concatenated string of the format
134
139
 
135
- `<guid>`, e.g.
140
+ `<guid>`, e.g.
136
141
 
137
- bash
142
+ bash
138
143
 
139
144
  ```sh
140
145
  $ pulumi import newrelic:index/entityTags:EntityTags foo MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
@@ -143,7 +148,7 @@ class EntityTags(pulumi.CustomResource):
143
148
  :param str resource_name: The name of the resource.
144
149
  :param pulumi.ResourceOptions opts: Options for the resource.
145
150
  :param pulumi.Input[str] guid: The guid of the entity to tag.
146
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
151
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
147
152
  """
148
153
  ...
149
154
  @overload
@@ -160,23 +165,23 @@ class EntityTags(pulumi.CustomResource):
160
165
  import pulumi
161
166
  import pulumi_newrelic as newrelic
162
167
 
163
- foo_entity = newrelic.get_entity(name="Example application",
168
+ foo = newrelic.get_entity(name="Example application",
164
169
  type="APPLICATION",
165
170
  domain="APM")
166
- foo_entity_tags = newrelic.EntityTags("fooEntityTags",
167
- guid=foo_entity.guid,
171
+ foo_entity_tags = newrelic.EntityTags("foo",
172
+ guid=foo.guid,
168
173
  tags=[
169
- newrelic.EntityTagsTagArgs(
170
- key="my-key",
171
- values=[
174
+ {
175
+ "key": "my-key",
176
+ "values": [
172
177
  "my-value",
173
178
  "my-other-value",
174
179
  ],
175
- ),
176
- newrelic.EntityTagsTagArgs(
177
- key="my-key-2",
178
- values=["my-value-2"],
179
- ),
180
+ },
181
+ {
182
+ "key": "my-key-2",
183
+ "values": ["my-value-2"],
184
+ },
180
185
  ])
181
186
  ```
182
187
 
@@ -184,9 +189,9 @@ class EntityTags(pulumi.CustomResource):
184
189
 
185
190
  New Relic One entity tags can be imported using a concatenated string of the format
186
191
 
187
- `<guid>`, e.g.
192
+ `<guid>`, e.g.
188
193
 
189
- bash
194
+ bash
190
195
 
191
196
  ```sh
192
197
  $ pulumi import newrelic:index/entityTags:EntityTags foo MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
@@ -208,7 +213,7 @@ class EntityTags(pulumi.CustomResource):
208
213
  resource_name: str,
209
214
  opts: Optional[pulumi.ResourceOptions] = None,
210
215
  guid: Optional[pulumi.Input[str]] = None,
211
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]]] = None,
216
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]]] = None,
212
217
  __props__=None):
213
218
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
214
219
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -235,7 +240,7 @@ class EntityTags(pulumi.CustomResource):
235
240
  id: pulumi.Input[str],
236
241
  opts: Optional[pulumi.ResourceOptions] = None,
237
242
  guid: Optional[pulumi.Input[str]] = None,
238
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]]] = None) -> 'EntityTags':
243
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]]] = None) -> 'EntityTags':
239
244
  """
240
245
  Get an existing EntityTags resource's state with the given name, id, and optional extra
241
246
  properties used to qualify the lookup.
@@ -244,7 +249,7 @@ class EntityTags(pulumi.CustomResource):
244
249
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
245
250
  :param pulumi.ResourceOptions opts: Options for the resource.
246
251
  :param pulumi.Input[str] guid: The guid of the entity to tag.
247
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
252
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
248
253
  """
249
254
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
250
255
 
@@ -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__ = ['EventsToMetricsRuleArgs', 'EventsToMetricsRule']
@@ -15,14 +20,14 @@ __all__ = ['EventsToMetricsRuleArgs', 'EventsToMetricsRule']
15
20
  class EventsToMetricsRuleArgs:
16
21
  def __init__(__self__, *,
17
22
  nrql: pulumi.Input[str],
18
- account_id: Optional[pulumi.Input[int]] = None,
23
+ account_id: Optional[pulumi.Input[str]] = None,
19
24
  description: Optional[pulumi.Input[str]] = None,
20
25
  enabled: Optional[pulumi.Input[bool]] = None,
21
26
  name: Optional[pulumi.Input[str]] = None):
22
27
  """
23
28
  The set of arguments for constructing a EventsToMetricsRule resource.
24
29
  :param pulumi.Input[str] nrql: Explains how to create metrics from events.
25
- :param pulumi.Input[int] account_id: Account with the event and where the metrics will be put.
30
+ :param pulumi.Input[str] account_id: Account with the event and where the metrics will be put.
26
31
  :param pulumi.Input[str] description: Provides additional information about the rule.
27
32
  :param pulumi.Input[bool] enabled: True means this rule is enabled. False means the rule is currently not creating metrics.
28
33
  :param pulumi.Input[str] name: The name of the rule. This must be unique within an account.
@@ -51,14 +56,14 @@ class EventsToMetricsRuleArgs:
51
56
 
52
57
  @property
53
58
  @pulumi.getter(name="accountId")
54
- def account_id(self) -> Optional[pulumi.Input[int]]:
59
+ def account_id(self) -> Optional[pulumi.Input[str]]:
55
60
  """
56
61
  Account with the event and where the metrics will be put.
57
62
  """
58
63
  return pulumi.get(self, "account_id")
59
64
 
60
65
  @account_id.setter
61
- def account_id(self, value: Optional[pulumi.Input[int]]):
66
+ def account_id(self, value: Optional[pulumi.Input[str]]):
62
67
  pulumi.set(self, "account_id", value)
63
68
 
64
69
  @property
@@ -101,7 +106,7 @@ class EventsToMetricsRuleArgs:
101
106
  @pulumi.input_type
102
107
  class _EventsToMetricsRuleState:
103
108
  def __init__(__self__, *,
104
- account_id: Optional[pulumi.Input[int]] = None,
109
+ account_id: Optional[pulumi.Input[str]] = None,
105
110
  description: Optional[pulumi.Input[str]] = None,
106
111
  enabled: Optional[pulumi.Input[bool]] = None,
107
112
  name: Optional[pulumi.Input[str]] = None,
@@ -109,7 +114,7 @@ class _EventsToMetricsRuleState:
109
114
  rule_id: Optional[pulumi.Input[str]] = None):
110
115
  """
111
116
  Input properties used for looking up and filtering EventsToMetricsRule resources.
112
- :param pulumi.Input[int] account_id: Account with the event and where the metrics will be put.
117
+ :param pulumi.Input[str] account_id: Account with the event and where the metrics will be put.
113
118
  :param pulumi.Input[str] description: Provides additional information about the rule.
114
119
  :param pulumi.Input[bool] enabled: True means this rule is enabled. False means the rule is currently not creating metrics.
115
120
  :param pulumi.Input[str] name: The name of the rule. This must be unique within an account.
@@ -131,14 +136,14 @@ class _EventsToMetricsRuleState:
131
136
 
132
137
  @property
133
138
  @pulumi.getter(name="accountId")
134
- def account_id(self) -> Optional[pulumi.Input[int]]:
139
+ def account_id(self) -> Optional[pulumi.Input[str]]:
135
140
  """
136
141
  Account with the event and where the metrics will be put.
137
142
  """
138
143
  return pulumi.get(self, "account_id")
139
144
 
140
145
  @account_id.setter
141
- def account_id(self, value: Optional[pulumi.Input[int]]):
146
+ def account_id(self, value: Optional[pulumi.Input[str]]):
142
147
  pulumi.set(self, "account_id", value)
143
148
 
144
149
  @property
@@ -207,7 +212,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
207
212
  def __init__(__self__,
208
213
  resource_name: str,
209
214
  opts: Optional[pulumi.ResourceOptions] = None,
210
- account_id: Optional[pulumi.Input[int]] = None,
215
+ account_id: Optional[pulumi.Input[str]] = None,
211
216
  description: Optional[pulumi.Input[str]] = None,
212
217
  enabled: Optional[pulumi.Input[bool]] = None,
213
218
  name: Optional[pulumi.Input[str]] = None,
@@ -223,7 +228,8 @@ class EventsToMetricsRule(pulumi.CustomResource):
223
228
  import pulumi_newrelic as newrelic
224
229
 
225
230
  foo = newrelic.EventsToMetricsRule("foo",
226
- account_id=12345,
231
+ account_id="12345",
232
+ name="Example events to metrics rule",
227
233
  description="Example description",
228
234
  nrql="SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name")
229
235
  ```
@@ -232,9 +238,9 @@ class EventsToMetricsRule(pulumi.CustomResource):
232
238
 
233
239
  New Relic Events to Metrics rules can be imported using a concatenated string of the format
234
240
 
235
- `<account_id>:<rule_id>`, e.g.
241
+ `<account_id>:<rule_id>`, e.g.
236
242
 
237
- bash
243
+ bash
238
244
 
239
245
  ```sh
240
246
  $ pulumi import newrelic:index/eventsToMetricsRule:EventsToMetricsRule foo 12345:34567
@@ -242,7 +248,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
242
248
 
243
249
  :param str resource_name: The name of the resource.
244
250
  :param pulumi.ResourceOptions opts: Options for the resource.
245
- :param pulumi.Input[int] account_id: Account with the event and where the metrics will be put.
251
+ :param pulumi.Input[str] account_id: Account with the event and where the metrics will be put.
246
252
  :param pulumi.Input[str] description: Provides additional information about the rule.
247
253
  :param pulumi.Input[bool] enabled: True means this rule is enabled. False means the rule is currently not creating metrics.
248
254
  :param pulumi.Input[str] name: The name of the rule. This must be unique within an account.
@@ -264,7 +270,8 @@ class EventsToMetricsRule(pulumi.CustomResource):
264
270
  import pulumi_newrelic as newrelic
265
271
 
266
272
  foo = newrelic.EventsToMetricsRule("foo",
267
- account_id=12345,
273
+ account_id="12345",
274
+ name="Example events to metrics rule",
268
275
  description="Example description",
269
276
  nrql="SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name")
270
277
  ```
@@ -273,9 +280,9 @@ class EventsToMetricsRule(pulumi.CustomResource):
273
280
 
274
281
  New Relic Events to Metrics rules can be imported using a concatenated string of the format
275
282
 
276
- `<account_id>:<rule_id>`, e.g.
283
+ `<account_id>:<rule_id>`, e.g.
277
284
 
278
- bash
285
+ bash
279
286
 
280
287
  ```sh
281
288
  $ pulumi import newrelic:index/eventsToMetricsRule:EventsToMetricsRule foo 12345:34567
@@ -296,7 +303,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
296
303
  def _internal_init(__self__,
297
304
  resource_name: str,
298
305
  opts: Optional[pulumi.ResourceOptions] = None,
299
- account_id: Optional[pulumi.Input[int]] = None,
306
+ account_id: Optional[pulumi.Input[str]] = None,
300
307
  description: Optional[pulumi.Input[str]] = None,
301
308
  enabled: Optional[pulumi.Input[bool]] = None,
302
309
  name: Optional[pulumi.Input[str]] = None,
@@ -328,7 +335,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
328
335
  def get(resource_name: str,
329
336
  id: pulumi.Input[str],
330
337
  opts: Optional[pulumi.ResourceOptions] = None,
331
- account_id: Optional[pulumi.Input[int]] = None,
338
+ account_id: Optional[pulumi.Input[str]] = None,
332
339
  description: Optional[pulumi.Input[str]] = None,
333
340
  enabled: Optional[pulumi.Input[bool]] = None,
334
341
  name: Optional[pulumi.Input[str]] = None,
@@ -341,7 +348,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
341
348
  :param str resource_name: The unique name of the resulting resource.
342
349
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
343
350
  :param pulumi.ResourceOptions opts: Options for the resource.
344
- :param pulumi.Input[int] account_id: Account with the event and where the metrics will be put.
351
+ :param pulumi.Input[str] account_id: Account with the event and where the metrics will be put.
345
352
  :param pulumi.Input[str] description: Provides additional information about the rule.
346
353
  :param pulumi.Input[bool] enabled: True means this rule is enabled. False means the rule is currently not creating metrics.
347
354
  :param pulumi.Input[str] name: The name of the rule. This must be unique within an account.
@@ -362,7 +369,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
362
369
 
363
370
  @property
364
371
  @pulumi.getter(name="accountId")
365
- def account_id(self) -> pulumi.Output[int]:
372
+ def account_id(self) -> pulumi.Output[str]:
366
373
  """
367
374
  Account with the event and where the metrics will be put.
368
375
  """
@@ -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__ = [
@@ -22,8 +27,8 @@ class GetAccountResult:
22
27
  A collection of values returned by getAccount.
23
28
  """
24
29
  def __init__(__self__, account_id=None, id=None, name=None, scope=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")
@@ -37,7 +42,7 @@ class GetAccountResult:
37
42
 
38
43
  @property
39
44
  @pulumi.getter(name="accountId")
40
- def account_id(self) -> Optional[int]:
45
+ def account_id(self) -> Optional[str]:
41
46
  return pulumi.get(self, "account_id")
42
47
 
43
48
  @property
@@ -71,7 +76,7 @@ class AwaitableGetAccountResult(GetAccountResult):
71
76
  scope=self.scope)
72
77
 
73
78
 
74
- def get_account(account_id: Optional[int] = None,
79
+ def get_account(account_id: Optional[str] = None,
75
80
  name: Optional[str] = None,
76
81
  scope: Optional[str] = None,
77
82
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountResult:
@@ -90,7 +95,7 @@ def get_account(account_id: Optional[int] = None,
90
95
  ```
91
96
 
92
97
 
93
- :param int account_id: The account ID in New Relic.
98
+ :param str account_id: The account ID in New Relic.
94
99
  :param str name: The account name in New Relic.
95
100
  :param str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
96
101
  """
@@ -106,13 +111,10 @@ def get_account(account_id: Optional[int] = None,
106
111
  id=pulumi.get(__ret__, 'id'),
107
112
  name=pulumi.get(__ret__, 'name'),
108
113
  scope=pulumi.get(__ret__, 'scope'))
109
-
110
-
111
- @_utilities.lift_output_func(get_account)
112
- def get_account_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
114
+ def get_account_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
113
115
  name: Optional[pulumi.Input[Optional[str]]] = None,
114
116
  scope: Optional[pulumi.Input[Optional[str]]] = None,
115
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountResult]:
117
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountResult]:
116
118
  """
117
119
  Use this data source to get information about a specific account in New Relic.
118
120
  Accounts can be located by ID or name. At most one of the two attributes can
@@ -128,8 +130,18 @@ def get_account_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
128
130
  ```
129
131
 
130
132
 
131
- :param int account_id: The account ID in New Relic.
133
+ :param str account_id: The account ID in New Relic.
132
134
  :param str name: The account name in New Relic.
133
135
  :param str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
134
136
  """
135
- ...
137
+ __args__ = dict()
138
+ __args__['accountId'] = account_id
139
+ __args__['name'] = name
140
+ __args__['scope'] = scope
141
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
142
+ __ret__ = pulumi.runtime.invoke_output('newrelic:index/getAccount:getAccount', __args__, opts=opts, typ=GetAccountResult)
143
+ return __ret__.apply(lambda __response__: GetAccountResult(
144
+ account_id=pulumi.get(__response__, 'account_id'),
145
+ id=pulumi.get(__response__, 'id'),
146
+ name=pulumi.get(__response__, 'name'),
147
+ scope=pulumi.get(__response__, 'scope')))