pulumi-newrelic 5.24.0a1715356536__py3-none-any.whl → 5.25.0__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.
Files changed (69) hide show
  1. pulumi_newrelic/_inputs.py +499 -93
  2. pulumi_newrelic/account_management.py +14 -14
  3. pulumi_newrelic/alert_channel.py +38 -38
  4. pulumi_newrelic/alert_condition.py +153 -112
  5. pulumi_newrelic/alert_muting_rule.py +31 -31
  6. pulumi_newrelic/alert_policy.py +47 -41
  7. pulumi_newrelic/alert_policy_channel.py +42 -42
  8. pulumi_newrelic/api_access_key.py +28 -28
  9. pulumi_newrelic/browser_application.py +14 -14
  10. pulumi_newrelic/cloud/aws_govcloud_integrations.py +28 -28
  11. pulumi_newrelic/cloud/aws_govcloud_link_account.py +14 -14
  12. pulumi_newrelic/cloud/aws_integrations.py +28 -28
  13. pulumi_newrelic/cloud/aws_link_account.py +14 -14
  14. pulumi_newrelic/cloud/azure_integrations.py +28 -28
  15. pulumi_newrelic/cloud/azure_link_account.py +14 -14
  16. pulumi_newrelic/cloud/gcp_integrations.py +28 -28
  17. pulumi_newrelic/cloud/gcp_link_account.py +14 -14
  18. pulumi_newrelic/config/__init__.pyi +1 -1
  19. pulumi_newrelic/config/vars.py +2 -2
  20. pulumi_newrelic/data_partition_rule.py +14 -14
  21. pulumi_newrelic/entity_tags.py +7 -7
  22. pulumi_newrelic/events_to_metrics_rule.py +16 -16
  23. pulumi_newrelic/get_account.py +7 -7
  24. pulumi_newrelic/get_alert_channel.py +8 -8
  25. pulumi_newrelic/get_alert_policy.py +16 -7
  26. pulumi_newrelic/get_application.py +2 -2
  27. pulumi_newrelic/get_cloud_account.py +9 -9
  28. pulumi_newrelic/get_entity.py +15 -15
  29. pulumi_newrelic/get_notification_destination.py +7 -7
  30. pulumi_newrelic/get_obfuscation_expression.py +9 -9
  31. pulumi_newrelic/get_service_level_alert_helper.py +28 -10
  32. pulumi_newrelic/get_test_grok_pattern.py +7 -7
  33. pulumi_newrelic/infra_alert_condition.py +119 -140
  34. pulumi_newrelic/insights/event.py +13 -0
  35. pulumi_newrelic/log_parsing_rule.py +14 -14
  36. pulumi_newrelic/monitor_downtime.py +14 -14
  37. pulumi_newrelic/notification_channel.py +36 -36
  38. pulumi_newrelic/notification_destination.py +28 -24
  39. pulumi_newrelic/nrql_alert_condition.py +32 -32
  40. pulumi_newrelic/nrql_drop_rule.py +44 -44
  41. pulumi_newrelic/obfuscation_expression.py +16 -16
  42. pulumi_newrelic/obfuscation_rule.py +14 -14
  43. pulumi_newrelic/one_dashboard.py +58 -52
  44. pulumi_newrelic/one_dashboard_json.py +14 -14
  45. pulumi_newrelic/one_dashboard_raw.py +14 -14
  46. pulumi_newrelic/outputs.py +482 -77
  47. pulumi_newrelic/plugins/_inputs.py +8 -8
  48. pulumi_newrelic/plugins/outputs.py +8 -8
  49. pulumi_newrelic/plugins/workload.py +83 -83
  50. pulumi_newrelic/provider.py +14 -9
  51. pulumi_newrelic/pulumi-plugin.json +2 -1
  52. pulumi_newrelic/service_level.py +85 -6
  53. pulumi_newrelic/synthetics/alert_condition.py +56 -28
  54. pulumi_newrelic/synthetics/broken_links_monitor.py +32 -14
  55. pulumi_newrelic/synthetics/cert_check_monitor.py +32 -14
  56. pulumi_newrelic/synthetics/get_private_location.py +11 -11
  57. pulumi_newrelic/synthetics/get_secure_credential.py +13 -5
  58. pulumi_newrelic/synthetics/monitor.py +18 -14
  59. pulumi_newrelic/synthetics/multi_location_alert_condition.py +77 -63
  60. pulumi_newrelic/synthetics/private_location.py +14 -14
  61. pulumi_newrelic/synthetics/script_monitor.py +18 -14
  62. pulumi_newrelic/synthetics/secure_credential.py +24 -31
  63. pulumi_newrelic/synthetics/step_monitor.py +32 -14
  64. pulumi_newrelic/workflow.py +14 -14
  65. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/METADATA +1 -1
  66. pulumi_newrelic-5.25.0.dist-info/RECORD +89 -0
  67. pulumi_newrelic-5.24.0a1715356536.dist-info/RECORD +0 -89
  68. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/WHEEL +0 -0
  69. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/top_level.txt +0 -0
@@ -16,24 +16,24 @@ __all__ = ['WorkloadArgs', 'Workload']
16
16
  @pulumi.input_type
17
17
  class WorkloadArgs:
18
18
  def __init__(__self__, *,
19
- account_id: Optional[pulumi.Input[int]] = None,
19
+ account_id: Optional[pulumi.Input[str]] = None,
20
20
  description: Optional[pulumi.Input[str]] = None,
21
21
  entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
22
22
  entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]] = None,
23
23
  name: Optional[pulumi.Input[str]] = None,
24
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
24
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
25
25
  status_config_automatic: Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']] = None,
26
26
  status_config_static: Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']] = None):
27
27
  """
28
28
  The set of arguments for constructing a Workload resource.
29
- :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the workload.
29
+ :param pulumi.Input[str] account_id: The New Relic account ID where you want to create the workload.
30
30
  :param pulumi.Input[str] description: Relevant information about the workload.
31
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entity_guids: A list of entity GUIDs manually assigned to this workload.
32
- :param pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]] entity_search_queries: A list of search queries that define a dynamic workload.
31
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entity_guids: A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
32
+ :param pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]] entity_search_queries: A list of search queries that define a dynamic workload. At least one of either `entity_guids` or `entity_search_query` is required. See Nested entity_search_query blocks below for details.
33
33
  :param pulumi.Input[str] name: The workload's name.
34
- :param pulumi.Input[Sequence[pulumi.Input[int]]] scope_account_ids: A list of account IDs that will be used to get entities from.
35
- :param pulumi.Input['WorkloadStatusConfigAutomaticArgs'] status_config_automatic: An input object used to represent an automatic status configuration.
36
- :param pulumi.Input['WorkloadStatusConfigStaticArgs'] status_config_static: A list of static status configurations. You can only configure one static status for a workload.
34
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] scope_account_ids: A list of account IDs that will be used to get entities from.
35
+ :param pulumi.Input['WorkloadStatusConfigAutomaticArgs'] status_config_automatic: An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
36
+ :param pulumi.Input['WorkloadStatusConfigStaticArgs'] status_config_static: A list of static status configurations. You can only configure one static status for a workload.See Nested status_config_static blocks below for details.
37
37
  """
38
38
  if account_id is not None:
39
39
  pulumi.set(__self__, "account_id", account_id)
@@ -54,14 +54,14 @@ class WorkloadArgs:
54
54
 
55
55
  @property
56
56
  @pulumi.getter(name="accountId")
57
- def account_id(self) -> Optional[pulumi.Input[int]]:
57
+ def account_id(self) -> Optional[pulumi.Input[str]]:
58
58
  """
59
59
  The New Relic account ID where you want to create the workload.
60
60
  """
61
61
  return pulumi.get(self, "account_id")
62
62
 
63
63
  @account_id.setter
64
- def account_id(self, value: Optional[pulumi.Input[int]]):
64
+ def account_id(self, value: Optional[pulumi.Input[str]]):
65
65
  pulumi.set(self, "account_id", value)
66
66
 
67
67
  @property
@@ -80,7 +80,7 @@ class WorkloadArgs:
80
80
  @pulumi.getter(name="entityGuids")
81
81
  def entity_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
82
82
  """
83
- A list of entity GUIDs manually assigned to this workload.
83
+ A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
84
84
  """
85
85
  return pulumi.get(self, "entity_guids")
86
86
 
@@ -92,7 +92,7 @@ class WorkloadArgs:
92
92
  @pulumi.getter(name="entitySearchQueries")
93
93
  def entity_search_queries(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]]:
94
94
  """
95
- A list of search queries that define a dynamic workload.
95
+ A list of search queries that define a dynamic workload. At least one of either `entity_guids` or `entity_search_query` is required. See Nested entity_search_query blocks below for details.
96
96
  """
97
97
  return pulumi.get(self, "entity_search_queries")
98
98
 
@@ -114,21 +114,21 @@ class WorkloadArgs:
114
114
 
115
115
  @property
116
116
  @pulumi.getter(name="scopeAccountIds")
117
- def scope_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
117
+ def scope_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
118
118
  """
119
119
  A list of account IDs that will be used to get entities from.
120
120
  """
121
121
  return pulumi.get(self, "scope_account_ids")
122
122
 
123
123
  @scope_account_ids.setter
124
- def scope_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
124
+ def scope_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
125
125
  pulumi.set(self, "scope_account_ids", value)
126
126
 
127
127
  @property
128
128
  @pulumi.getter(name="statusConfigAutomatic")
129
129
  def status_config_automatic(self) -> Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']]:
130
130
  """
131
- An input object used to represent an automatic status configuration.
131
+ An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
132
132
  """
133
133
  return pulumi.get(self, "status_config_automatic")
134
134
 
@@ -140,7 +140,7 @@ class WorkloadArgs:
140
140
  @pulumi.getter(name="statusConfigStatic")
141
141
  def status_config_static(self) -> Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']]:
142
142
  """
143
- A list of static status configurations. You can only configure one static status for a workload.
143
+ A list of static status configurations. You can only configure one static status for a workload.See Nested status_config_static blocks below for details.
144
144
  """
145
145
  return pulumi.get(self, "status_config_static")
146
146
 
@@ -152,7 +152,7 @@ class WorkloadArgs:
152
152
  @pulumi.input_type
153
153
  class _WorkloadState:
154
154
  def __init__(__self__, *,
155
- account_id: Optional[pulumi.Input[int]] = None,
155
+ account_id: Optional[pulumi.Input[str]] = None,
156
156
  composite_entity_search_query: Optional[pulumi.Input[str]] = None,
157
157
  description: Optional[pulumi.Input[str]] = None,
158
158
  entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -160,24 +160,24 @@ class _WorkloadState:
160
160
  guid: Optional[pulumi.Input[str]] = None,
161
161
  name: Optional[pulumi.Input[str]] = None,
162
162
  permalink: Optional[pulumi.Input[str]] = None,
163
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
163
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
164
164
  status_config_automatic: Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']] = None,
165
165
  status_config_static: Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']] = None,
166
- workload_id: Optional[pulumi.Input[int]] = None):
166
+ workload_id: Optional[pulumi.Input[str]] = None):
167
167
  """
168
168
  Input properties used for looking up and filtering Workload resources.
169
- :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the workload.
169
+ :param pulumi.Input[str] account_id: The New Relic account ID where you want to create the workload.
170
170
  :param pulumi.Input[str] composite_entity_search_query: The composite query used to compose a dynamic workload.
171
171
  :param pulumi.Input[str] description: Relevant information about the workload.
172
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entity_guids: A list of entity GUIDs manually assigned to this workload.
173
- :param pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]] entity_search_queries: A list of search queries that define a dynamic workload.
172
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entity_guids: A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
173
+ :param pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]] entity_search_queries: A list of search queries that define a dynamic workload. At least one of either `entity_guids` or `entity_search_query` is required. See Nested entity_search_query blocks below for details.
174
174
  :param pulumi.Input[str] guid: The unique entity identifier of the workload in New Relic.
175
175
  :param pulumi.Input[str] name: The workload's name.
176
176
  :param pulumi.Input[str] permalink: The URL of the workload.
177
- :param pulumi.Input[Sequence[pulumi.Input[int]]] scope_account_ids: A list of account IDs that will be used to get entities from.
178
- :param pulumi.Input['WorkloadStatusConfigAutomaticArgs'] status_config_automatic: An input object used to represent an automatic status configuration.
179
- :param pulumi.Input['WorkloadStatusConfigStaticArgs'] status_config_static: A list of static status configurations. You can only configure one static status for a workload.
180
- :param pulumi.Input[int] workload_id: The unique entity identifier of the workload.
177
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] scope_account_ids: A list of account IDs that will be used to get entities from.
178
+ :param pulumi.Input['WorkloadStatusConfigAutomaticArgs'] status_config_automatic: An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
179
+ :param pulumi.Input['WorkloadStatusConfigStaticArgs'] status_config_static: A list of static status configurations. You can only configure one static status for a workload.See Nested status_config_static blocks below for details.
180
+ :param pulumi.Input[str] workload_id: The unique entity identifier of the workload.
181
181
  """
182
182
  if account_id is not None:
183
183
  pulumi.set(__self__, "account_id", account_id)
@@ -206,14 +206,14 @@ class _WorkloadState:
206
206
 
207
207
  @property
208
208
  @pulumi.getter(name="accountId")
209
- def account_id(self) -> Optional[pulumi.Input[int]]:
209
+ def account_id(self) -> Optional[pulumi.Input[str]]:
210
210
  """
211
211
  The New Relic account ID where you want to create the workload.
212
212
  """
213
213
  return pulumi.get(self, "account_id")
214
214
 
215
215
  @account_id.setter
216
- def account_id(self, value: Optional[pulumi.Input[int]]):
216
+ def account_id(self, value: Optional[pulumi.Input[str]]):
217
217
  pulumi.set(self, "account_id", value)
218
218
 
219
219
  @property
@@ -244,7 +244,7 @@ class _WorkloadState:
244
244
  @pulumi.getter(name="entityGuids")
245
245
  def entity_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
246
246
  """
247
- A list of entity GUIDs manually assigned to this workload.
247
+ A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
248
248
  """
249
249
  return pulumi.get(self, "entity_guids")
250
250
 
@@ -256,7 +256,7 @@ class _WorkloadState:
256
256
  @pulumi.getter(name="entitySearchQueries")
257
257
  def entity_search_queries(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]]:
258
258
  """
259
- A list of search queries that define a dynamic workload.
259
+ A list of search queries that define a dynamic workload. At least one of either `entity_guids` or `entity_search_query` is required. See Nested entity_search_query blocks below for details.
260
260
  """
261
261
  return pulumi.get(self, "entity_search_queries")
262
262
 
@@ -302,21 +302,21 @@ class _WorkloadState:
302
302
 
303
303
  @property
304
304
  @pulumi.getter(name="scopeAccountIds")
305
- def scope_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
305
+ def scope_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
306
306
  """
307
307
  A list of account IDs that will be used to get entities from.
308
308
  """
309
309
  return pulumi.get(self, "scope_account_ids")
310
310
 
311
311
  @scope_account_ids.setter
312
- def scope_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
312
+ def scope_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
313
313
  pulumi.set(self, "scope_account_ids", value)
314
314
 
315
315
  @property
316
316
  @pulumi.getter(name="statusConfigAutomatic")
317
317
  def status_config_automatic(self) -> Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']]:
318
318
  """
319
- An input object used to represent an automatic status configuration.
319
+ An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
320
320
  """
321
321
  return pulumi.get(self, "status_config_automatic")
322
322
 
@@ -328,7 +328,7 @@ class _WorkloadState:
328
328
  @pulumi.getter(name="statusConfigStatic")
329
329
  def status_config_static(self) -> Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']]:
330
330
  """
331
- A list of static status configurations. You can only configure one static status for a workload.
331
+ A list of static status configurations. You can only configure one static status for a workload.See Nested status_config_static blocks below for details.
332
332
  """
333
333
  return pulumi.get(self, "status_config_static")
334
334
 
@@ -338,14 +338,14 @@ class _WorkloadState:
338
338
 
339
339
  @property
340
340
  @pulumi.getter(name="workloadId")
341
- def workload_id(self) -> Optional[pulumi.Input[int]]:
341
+ def workload_id(self) -> Optional[pulumi.Input[str]]:
342
342
  """
343
343
  The unique entity identifier of the workload.
344
344
  """
345
345
  return pulumi.get(self, "workload_id")
346
346
 
347
347
  @workload_id.setter
348
- def workload_id(self, value: Optional[pulumi.Input[int]]):
348
+ def workload_id(self, value: Optional[pulumi.Input[str]]):
349
349
  pulumi.set(self, "workload_id", value)
350
350
 
351
351
 
@@ -354,12 +354,12 @@ class Workload(pulumi.CustomResource):
354
354
  def __init__(__self__,
355
355
  resource_name: str,
356
356
  opts: Optional[pulumi.ResourceOptions] = None,
357
- account_id: Optional[pulumi.Input[int]] = None,
357
+ account_id: Optional[pulumi.Input[str]] = None,
358
358
  description: Optional[pulumi.Input[str]] = None,
359
359
  entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
360
360
  entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]]] = None,
361
361
  name: Optional[pulumi.Input[str]] = None,
362
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
362
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
363
363
  status_config_automatic: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']]] = None,
364
364
  status_config_static: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']]] = None,
365
365
  __props__=None):
@@ -379,12 +379,12 @@ class Workload(pulumi.CustomResource):
379
379
 
380
380
  foo = newrelic.plugins.Workload("foo",
381
381
  name="Example workload",
382
- account_id=12345678,
382
+ account_id="12345678",
383
383
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
384
384
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
385
385
  query="name like '%Example application%'",
386
386
  )],
387
- scope_account_ids=[12345678])
387
+ scope_account_ids=["12345678"])
388
388
  ```
389
389
 
390
390
  Include entities with a set of tags.
@@ -394,12 +394,12 @@ class Workload(pulumi.CustomResource):
394
394
 
395
395
  foo = newrelic.plugins.Workload("foo",
396
396
  name="Example workload with tags",
397
- account_id=12345678,
397
+ account_id="12345678",
398
398
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
399
399
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
400
400
  query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
401
401
  )],
402
- scope_account_ids=[12345678])
402
+ scope_account_ids=["12345678"])
403
403
  ```
404
404
 
405
405
  Include entities with a set of tags.
@@ -409,12 +409,12 @@ class Workload(pulumi.CustomResource):
409
409
 
410
410
  foo = newrelic.plugins.Workload("foo",
411
411
  name="Example workload with tags",
412
- account_id=12345678,
412
+ account_id="12345678",
413
413
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
414
414
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
415
415
  query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
416
416
  )],
417
- scope_account_ids=[12345678])
417
+ scope_account_ids=["12345678"])
418
418
  ```
419
419
 
420
420
  Include automatic status
@@ -427,12 +427,12 @@ class Workload(pulumi.CustomResource):
427
427
 
428
428
  foo = newrelic.plugins.Workload("foo",
429
429
  name="Example workload",
430
- account_id=12345678,
430
+ account_id="12345678",
431
431
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
432
432
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
433
433
  query="name like '%Example application%'",
434
434
  )],
435
- scope_account_ids=[12345678],
435
+ scope_account_ids=["12345678"],
436
436
  description="Description",
437
437
  status_config_automatic=newrelic.plugins.WorkloadStatusConfigAutomaticArgs(
438
438
  enabled=True,
@@ -468,12 +468,12 @@ class Workload(pulumi.CustomResource):
468
468
 
469
469
  foo = newrelic.plugins.Workload("foo",
470
470
  name="Example workload",
471
- account_id=12345678,
471
+ account_id="12345678",
472
472
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
473
473
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
474
474
  query="name like '%Example application%'",
475
475
  )],
476
- scope_account_ids=[12345678],
476
+ scope_account_ids=["12345678"],
477
477
  description="Description",
478
478
  status_config_static=newrelic.plugins.WorkloadStatusConfigStaticArgs(
479
479
  description="test",
@@ -497,14 +497,14 @@ class Workload(pulumi.CustomResource):
497
497
 
498
498
  :param str resource_name: The name of the resource.
499
499
  :param pulumi.ResourceOptions opts: Options for the resource.
500
- :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the workload.
500
+ :param pulumi.Input[str] account_id: The New Relic account ID where you want to create the workload.
501
501
  :param pulumi.Input[str] description: Relevant information about the workload.
502
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entity_guids: A list of entity GUIDs manually assigned to this workload.
503
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]] entity_search_queries: A list of search queries that define a dynamic workload.
502
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entity_guids: A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
503
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]] entity_search_queries: A list of search queries that define a dynamic workload. At least one of either `entity_guids` or `entity_search_query` is required. See Nested entity_search_query blocks below for details.
504
504
  :param pulumi.Input[str] name: The workload's name.
505
- :param pulumi.Input[Sequence[pulumi.Input[int]]] scope_account_ids: A list of account IDs that will be used to get entities from.
506
- :param pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']] status_config_automatic: An input object used to represent an automatic status configuration.
507
- :param pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']] status_config_static: A list of static status configurations. You can only configure one static status for a workload.
505
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] scope_account_ids: A list of account IDs that will be used to get entities from.
506
+ :param pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']] status_config_automatic: An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
507
+ :param pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']] status_config_static: A list of static status configurations. You can only configure one static status for a workload.See Nested status_config_static blocks below for details.
508
508
  """
509
509
  ...
510
510
  @overload
@@ -528,12 +528,12 @@ class Workload(pulumi.CustomResource):
528
528
 
529
529
  foo = newrelic.plugins.Workload("foo",
530
530
  name="Example workload",
531
- account_id=12345678,
531
+ account_id="12345678",
532
532
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
533
533
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
534
534
  query="name like '%Example application%'",
535
535
  )],
536
- scope_account_ids=[12345678])
536
+ scope_account_ids=["12345678"])
537
537
  ```
538
538
 
539
539
  Include entities with a set of tags.
@@ -543,12 +543,12 @@ class Workload(pulumi.CustomResource):
543
543
 
544
544
  foo = newrelic.plugins.Workload("foo",
545
545
  name="Example workload with tags",
546
- account_id=12345678,
546
+ account_id="12345678",
547
547
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
548
548
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
549
549
  query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
550
550
  )],
551
- scope_account_ids=[12345678])
551
+ scope_account_ids=["12345678"])
552
552
  ```
553
553
 
554
554
  Include entities with a set of tags.
@@ -558,12 +558,12 @@ class Workload(pulumi.CustomResource):
558
558
 
559
559
  foo = newrelic.plugins.Workload("foo",
560
560
  name="Example workload with tags",
561
- account_id=12345678,
561
+ account_id="12345678",
562
562
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
563
563
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
564
564
  query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
565
565
  )],
566
- scope_account_ids=[12345678])
566
+ scope_account_ids=["12345678"])
567
567
  ```
568
568
 
569
569
  Include automatic status
@@ -576,12 +576,12 @@ class Workload(pulumi.CustomResource):
576
576
 
577
577
  foo = newrelic.plugins.Workload("foo",
578
578
  name="Example workload",
579
- account_id=12345678,
579
+ account_id="12345678",
580
580
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
581
581
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
582
582
  query="name like '%Example application%'",
583
583
  )],
584
- scope_account_ids=[12345678],
584
+ scope_account_ids=["12345678"],
585
585
  description="Description",
586
586
  status_config_automatic=newrelic.plugins.WorkloadStatusConfigAutomaticArgs(
587
587
  enabled=True,
@@ -617,12 +617,12 @@ class Workload(pulumi.CustomResource):
617
617
 
618
618
  foo = newrelic.plugins.Workload("foo",
619
619
  name="Example workload",
620
- account_id=12345678,
620
+ account_id="12345678",
621
621
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
622
622
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
623
623
  query="name like '%Example application%'",
624
624
  )],
625
- scope_account_ids=[12345678],
625
+ scope_account_ids=["12345678"],
626
626
  description="Description",
627
627
  status_config_static=newrelic.plugins.WorkloadStatusConfigStaticArgs(
628
628
  description="test",
@@ -659,12 +659,12 @@ class Workload(pulumi.CustomResource):
659
659
  def _internal_init(__self__,
660
660
  resource_name: str,
661
661
  opts: Optional[pulumi.ResourceOptions] = None,
662
- account_id: Optional[pulumi.Input[int]] = None,
662
+ account_id: Optional[pulumi.Input[str]] = None,
663
663
  description: Optional[pulumi.Input[str]] = None,
664
664
  entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
665
665
  entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]]] = None,
666
666
  name: Optional[pulumi.Input[str]] = None,
667
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
667
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
668
668
  status_config_automatic: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']]] = None,
669
669
  status_config_static: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']]] = None,
670
670
  __props__=None):
@@ -698,7 +698,7 @@ class Workload(pulumi.CustomResource):
698
698
  def get(resource_name: str,
699
699
  id: pulumi.Input[str],
700
700
  opts: Optional[pulumi.ResourceOptions] = None,
701
- account_id: Optional[pulumi.Input[int]] = None,
701
+ account_id: Optional[pulumi.Input[str]] = None,
702
702
  composite_entity_search_query: Optional[pulumi.Input[str]] = None,
703
703
  description: Optional[pulumi.Input[str]] = None,
704
704
  entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -706,10 +706,10 @@ class Workload(pulumi.CustomResource):
706
706
  guid: Optional[pulumi.Input[str]] = None,
707
707
  name: Optional[pulumi.Input[str]] = None,
708
708
  permalink: Optional[pulumi.Input[str]] = None,
709
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
709
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
710
710
  status_config_automatic: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']]] = None,
711
711
  status_config_static: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']]] = None,
712
- workload_id: Optional[pulumi.Input[int]] = None) -> 'Workload':
712
+ workload_id: Optional[pulumi.Input[str]] = None) -> 'Workload':
713
713
  """
714
714
  Get an existing Workload resource's state with the given name, id, and optional extra
715
715
  properties used to qualify the lookup.
@@ -717,18 +717,18 @@ class Workload(pulumi.CustomResource):
717
717
  :param str resource_name: The unique name of the resulting resource.
718
718
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
719
719
  :param pulumi.ResourceOptions opts: Options for the resource.
720
- :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the workload.
720
+ :param pulumi.Input[str] account_id: The New Relic account ID where you want to create the workload.
721
721
  :param pulumi.Input[str] composite_entity_search_query: The composite query used to compose a dynamic workload.
722
722
  :param pulumi.Input[str] description: Relevant information about the workload.
723
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entity_guids: A list of entity GUIDs manually assigned to this workload.
724
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]] entity_search_queries: A list of search queries that define a dynamic workload.
723
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entity_guids: A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
724
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]] entity_search_queries: A list of search queries that define a dynamic workload. At least one of either `entity_guids` or `entity_search_query` is required. See Nested entity_search_query blocks below for details.
725
725
  :param pulumi.Input[str] guid: The unique entity identifier of the workload in New Relic.
726
726
  :param pulumi.Input[str] name: The workload's name.
727
727
  :param pulumi.Input[str] permalink: The URL of the workload.
728
- :param pulumi.Input[Sequence[pulumi.Input[int]]] scope_account_ids: A list of account IDs that will be used to get entities from.
729
- :param pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']] status_config_automatic: An input object used to represent an automatic status configuration.
730
- :param pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']] status_config_static: A list of static status configurations. You can only configure one static status for a workload.
731
- :param pulumi.Input[int] workload_id: The unique entity identifier of the workload.
728
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] scope_account_ids: A list of account IDs that will be used to get entities from.
729
+ :param pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']] status_config_automatic: An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
730
+ :param pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']] status_config_static: A list of static status configurations. You can only configure one static status for a workload.See Nested status_config_static blocks below for details.
731
+ :param pulumi.Input[str] workload_id: The unique entity identifier of the workload.
732
732
  """
733
733
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
734
734
 
@@ -750,7 +750,7 @@ class Workload(pulumi.CustomResource):
750
750
 
751
751
  @property
752
752
  @pulumi.getter(name="accountId")
753
- def account_id(self) -> pulumi.Output[int]:
753
+ def account_id(self) -> pulumi.Output[str]:
754
754
  """
755
755
  The New Relic account ID where you want to create the workload.
756
756
  """
@@ -776,7 +776,7 @@ class Workload(pulumi.CustomResource):
776
776
  @pulumi.getter(name="entityGuids")
777
777
  def entity_guids(self) -> pulumi.Output[Sequence[str]]:
778
778
  """
779
- A list of entity GUIDs manually assigned to this workload.
779
+ A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
780
780
  """
781
781
  return pulumi.get(self, "entity_guids")
782
782
 
@@ -784,7 +784,7 @@ class Workload(pulumi.CustomResource):
784
784
  @pulumi.getter(name="entitySearchQueries")
785
785
  def entity_search_queries(self) -> pulumi.Output[Optional[Sequence['outputs.WorkloadEntitySearchQuery']]]:
786
786
  """
787
- A list of search queries that define a dynamic workload.
787
+ A list of search queries that define a dynamic workload. At least one of either `entity_guids` or `entity_search_query` is required. See Nested entity_search_query blocks below for details.
788
788
  """
789
789
  return pulumi.get(self, "entity_search_queries")
790
790
 
@@ -814,7 +814,7 @@ class Workload(pulumi.CustomResource):
814
814
 
815
815
  @property
816
816
  @pulumi.getter(name="scopeAccountIds")
817
- def scope_account_ids(self) -> pulumi.Output[Sequence[int]]:
817
+ def scope_account_ids(self) -> pulumi.Output[Sequence[str]]:
818
818
  """
819
819
  A list of account IDs that will be used to get entities from.
820
820
  """
@@ -824,7 +824,7 @@ class Workload(pulumi.CustomResource):
824
824
  @pulumi.getter(name="statusConfigAutomatic")
825
825
  def status_config_automatic(self) -> pulumi.Output[Optional['outputs.WorkloadStatusConfigAutomatic']]:
826
826
  """
827
- An input object used to represent an automatic status configuration.
827
+ An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
828
828
  """
829
829
  return pulumi.get(self, "status_config_automatic")
830
830
 
@@ -832,13 +832,13 @@ class Workload(pulumi.CustomResource):
832
832
  @pulumi.getter(name="statusConfigStatic")
833
833
  def status_config_static(self) -> pulumi.Output[Optional['outputs.WorkloadStatusConfigStatic']]:
834
834
  """
835
- A list of static status configurations. You can only configure one static status for a workload.
835
+ A list of static status configurations. You can only configure one static status for a workload.See Nested status_config_static blocks below for details.
836
836
  """
837
837
  return pulumi.get(self, "status_config_static")
838
838
 
839
839
  @property
840
840
  @pulumi.getter(name="workloadId")
841
- def workload_id(self) -> pulumi.Output[int]:
841
+ def workload_id(self) -> pulumi.Output[str]:
842
842
  """
843
843
  The unique entity identifier of the workload.
844
844
  """
@@ -15,7 +15,7 @@ __all__ = ['ProviderArgs', 'Provider']
15
15
  class ProviderArgs:
16
16
  def __init__(__self__, *,
17
17
  api_key: pulumi.Input[str],
18
- account_id: Optional[pulumi.Input[int]] = None,
18
+ account_id: Optional[pulumi.Input[str]] = None,
19
19
  admin_api_key: Optional[pulumi.Input[str]] = None,
20
20
  api_url: Optional[pulumi.Input[str]] = None,
21
21
  cacert_file: Optional[pulumi.Input[str]] = None,
@@ -33,7 +33,7 @@ class ProviderArgs:
33
33
  """
34
34
  pulumi.set(__self__, "api_key", api_key)
35
35
  if account_id is None:
36
- account_id = _utilities.get_env_int('NEW_RELIC_ACCOUNT_ID')
36
+ account_id = _utilities.get_env('NEW_RELIC_ACCOUNT_ID')
37
37
  if account_id is not None:
38
38
  pulumi.set(__self__, "account_id", account_id)
39
39
  if admin_api_key is not None:
@@ -84,11 +84,11 @@ class ProviderArgs:
84
84
 
85
85
  @property
86
86
  @pulumi.getter(name="accountId")
87
- def account_id(self) -> Optional[pulumi.Input[int]]:
87
+ def account_id(self) -> Optional[pulumi.Input[str]]:
88
88
  return pulumi.get(self, "account_id")
89
89
 
90
90
  @account_id.setter
91
- def account_id(self, value: Optional[pulumi.Input[int]]):
91
+ def account_id(self, value: Optional[pulumi.Input[str]]):
92
92
  pulumi.set(self, "account_id", value)
93
93
 
94
94
  @property
@@ -211,7 +211,7 @@ class Provider(pulumi.ProviderResource):
211
211
  def __init__(__self__,
212
212
  resource_name: str,
213
213
  opts: Optional[pulumi.ResourceOptions] = None,
214
- account_id: Optional[pulumi.Input[int]] = None,
214
+ account_id: Optional[pulumi.Input[str]] = None,
215
215
  admin_api_key: Optional[pulumi.Input[str]] = None,
216
216
  api_key: Optional[pulumi.Input[str]] = None,
217
217
  api_url: Optional[pulumi.Input[str]] = None,
@@ -262,7 +262,7 @@ class Provider(pulumi.ProviderResource):
262
262
  def _internal_init(__self__,
263
263
  resource_name: str,
264
264
  opts: Optional[pulumi.ResourceOptions] = None,
265
- account_id: Optional[pulumi.Input[int]] = None,
265
+ account_id: Optional[pulumi.Input[str]] = None,
266
266
  admin_api_key: Optional[pulumi.Input[str]] = None,
267
267
  api_key: Optional[pulumi.Input[str]] = None,
268
268
  api_url: Optional[pulumi.Input[str]] = None,
@@ -285,8 +285,8 @@ class Provider(pulumi.ProviderResource):
285
285
  __props__ = ProviderArgs.__new__(ProviderArgs)
286
286
 
287
287
  if account_id is None:
288
- account_id = _utilities.get_env_int('NEW_RELIC_ACCOUNT_ID')
289
- __props__.__dict__["account_id"] = pulumi.Output.secret(account_id).apply(pulumi.runtime.to_json) if account_id is not None else None
288
+ account_id = _utilities.get_env('NEW_RELIC_ACCOUNT_ID')
289
+ __props__.__dict__["account_id"] = None if account_id is None else pulumi.Output.secret(account_id)
290
290
  __props__.__dict__["admin_api_key"] = None if admin_api_key is None else pulumi.Output.secret(admin_api_key)
291
291
  if api_key is None and not opts.urn:
292
292
  raise TypeError("Missing required property 'api_key'")
@@ -303,7 +303,7 @@ class Provider(pulumi.ProviderResource):
303
303
  region = (_utilities.get_env('NEW_RELIC_REGION') or 'US')
304
304
  __props__.__dict__["region"] = region
305
305
  __props__.__dict__["synthetics_api_url"] = synthetics_api_url
306
- secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["adminApiKey", "apiKey", "insightsInsertKey"])
306
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accountId", "adminApiKey", "apiKey", "insightsInsertKey"])
307
307
  opts = pulumi.ResourceOptions.merge(opts, secret_opts)
308
308
  super(Provider, __self__).__init__(
309
309
  'newrelic',
@@ -311,6 +311,11 @@ class Provider(pulumi.ProviderResource):
311
311
  __props__,
312
312
  opts)
313
313
 
314
+ @property
315
+ @pulumi.getter(name="accountId")
316
+ def account_id(self) -> pulumi.Output[Optional[str]]:
317
+ return pulumi.get(self, "account_id")
318
+
314
319
  @property
315
320
  @pulumi.getter(name="adminApiKey")
316
321
  def admin_api_key(self) -> pulumi.Output[Optional[str]]:
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
- "name": "newrelic"
3
+ "name": "newrelic",
4
+ "version": "5.25.0"
4
5
  }