pulumi-newrelic 5.22.0__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 +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.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
  from . import outputs
12
17
  from ._inputs import *
@@ -16,22 +21,22 @@ __all__ = ['WorkloadArgs', 'Workload']
16
21
  @pulumi.input_type
17
22
  class WorkloadArgs:
18
23
  def __init__(__self__, *,
19
- account_id: Optional[pulumi.Input[int]] = None,
20
- description: Optional[pulumi.Input[str]] = None,
21
- entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
24
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
25
+ description: Optional[pulumi.Input[_builtins.str]] = None,
26
+ entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
22
27
  entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]] = None,
23
- name: Optional[pulumi.Input[str]] = None,
24
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
28
+ name: Optional[pulumi.Input[_builtins.str]] = None,
29
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
25
30
  status_config_automatic: Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']] = None,
26
31
  status_config_static: Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']] = None):
27
32
  """
28
33
  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.
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. At least one of either `entity_guids` or `entity_search_query` is required.
34
+ :param pulumi.Input[_builtins.str] account_id: The New Relic account ID where you want to create the workload.
35
+ :param pulumi.Input[_builtins.str] description: Relevant information about the workload.
36
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.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
37
  :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
- :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.
38
+ :param pulumi.Input[_builtins.str] name: The workload's name.
39
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] scope_account_ids: A list of account IDs that will be used to get entities from.
35
40
  :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
41
  :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
42
  """
@@ -52,43 +57,43 @@ class WorkloadArgs:
52
57
  if status_config_static is not None:
53
58
  pulumi.set(__self__, "status_config_static", status_config_static)
54
59
 
55
- @property
60
+ @_builtins.property
56
61
  @pulumi.getter(name="accountId")
57
- def account_id(self) -> Optional[pulumi.Input[int]]:
62
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
58
63
  """
59
64
  The New Relic account ID where you want to create the workload.
60
65
  """
61
66
  return pulumi.get(self, "account_id")
62
67
 
63
68
  @account_id.setter
64
- def account_id(self, value: Optional[pulumi.Input[int]]):
69
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
65
70
  pulumi.set(self, "account_id", value)
66
71
 
67
- @property
72
+ @_builtins.property
68
73
  @pulumi.getter
69
- def description(self) -> Optional[pulumi.Input[str]]:
74
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
70
75
  """
71
76
  Relevant information about the workload.
72
77
  """
73
78
  return pulumi.get(self, "description")
74
79
 
75
80
  @description.setter
76
- def description(self, value: Optional[pulumi.Input[str]]):
81
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
77
82
  pulumi.set(self, "description", value)
78
83
 
79
- @property
84
+ @_builtins.property
80
85
  @pulumi.getter(name="entityGuids")
81
- def entity_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
86
+ def entity_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
82
87
  """
83
88
  A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
84
89
  """
85
90
  return pulumi.get(self, "entity_guids")
86
91
 
87
92
  @entity_guids.setter
88
- def entity_guids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
93
+ def entity_guids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
89
94
  pulumi.set(self, "entity_guids", value)
90
95
 
91
- @property
96
+ @_builtins.property
92
97
  @pulumi.getter(name="entitySearchQueries")
93
98
  def entity_search_queries(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]]:
94
99
  """
@@ -100,31 +105,31 @@ class WorkloadArgs:
100
105
  def entity_search_queries(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]]):
101
106
  pulumi.set(self, "entity_search_queries", value)
102
107
 
103
- @property
108
+ @_builtins.property
104
109
  @pulumi.getter
105
- def name(self) -> Optional[pulumi.Input[str]]:
110
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
106
111
  """
107
112
  The workload's name.
108
113
  """
109
114
  return pulumi.get(self, "name")
110
115
 
111
116
  @name.setter
112
- def name(self, value: Optional[pulumi.Input[str]]):
117
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
113
118
  pulumi.set(self, "name", value)
114
119
 
115
- @property
120
+ @_builtins.property
116
121
  @pulumi.getter(name="scopeAccountIds")
117
- def scope_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
122
+ def scope_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
118
123
  """
119
124
  A list of account IDs that will be used to get entities from.
120
125
  """
121
126
  return pulumi.get(self, "scope_account_ids")
122
127
 
123
128
  @scope_account_ids.setter
124
- def scope_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
129
+ def scope_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
125
130
  pulumi.set(self, "scope_account_ids", value)
126
131
 
127
- @property
132
+ @_builtins.property
128
133
  @pulumi.getter(name="statusConfigAutomatic")
129
134
  def status_config_automatic(self) -> Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']]:
130
135
  """
@@ -136,7 +141,7 @@ class WorkloadArgs:
136
141
  def status_config_automatic(self, value: Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']]):
137
142
  pulumi.set(self, "status_config_automatic", value)
138
143
 
139
- @property
144
+ @_builtins.property
140
145
  @pulumi.getter(name="statusConfigStatic")
141
146
  def status_config_static(self) -> Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']]:
142
147
  """
@@ -152,32 +157,32 @@ class WorkloadArgs:
152
157
  @pulumi.input_type
153
158
  class _WorkloadState:
154
159
  def __init__(__self__, *,
155
- account_id: Optional[pulumi.Input[int]] = None,
156
- composite_entity_search_query: Optional[pulumi.Input[str]] = None,
157
- description: Optional[pulumi.Input[str]] = None,
158
- entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
160
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
161
+ composite_entity_search_query: Optional[pulumi.Input[_builtins.str]] = None,
162
+ description: Optional[pulumi.Input[_builtins.str]] = None,
163
+ entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
159
164
  entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]] = None,
160
- guid: Optional[pulumi.Input[str]] = None,
161
- name: Optional[pulumi.Input[str]] = None,
162
- permalink: Optional[pulumi.Input[str]] = None,
163
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
165
+ guid: Optional[pulumi.Input[_builtins.str]] = None,
166
+ name: Optional[pulumi.Input[_builtins.str]] = None,
167
+ permalink: Optional[pulumi.Input[_builtins.str]] = None,
168
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
164
169
  status_config_automatic: Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']] = None,
165
170
  status_config_static: Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']] = None,
166
- workload_id: Optional[pulumi.Input[int]] = None):
171
+ workload_id: Optional[pulumi.Input[_builtins.str]] = None):
167
172
  """
168
173
  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.
170
- :param pulumi.Input[str] composite_entity_search_query: The composite query used to compose a dynamic workload.
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. At least one of either `entity_guids` or `entity_search_query` is required.
174
+ :param pulumi.Input[_builtins.str] account_id: The New Relic account ID where you want to create the workload.
175
+ :param pulumi.Input[_builtins.str] composite_entity_search_query: The composite query used to compose a dynamic workload.
176
+ :param pulumi.Input[_builtins.str] description: Relevant information about the workload.
177
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.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
178
  :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
- :param pulumi.Input[str] guid: The unique entity identifier of the workload in New Relic.
175
- :param pulumi.Input[str] name: The workload's name.
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.
179
+ :param pulumi.Input[_builtins.str] guid: The unique entity identifier of the workload in New Relic.
180
+ :param pulumi.Input[_builtins.str] name: The workload's name.
181
+ :param pulumi.Input[_builtins.str] permalink: The URL of the workload.
182
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] scope_account_ids: A list of account IDs that will be used to get entities from.
178
183
  :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
184
  :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[int] workload_id: The unique entity identifier of the workload.
185
+ :param pulumi.Input[_builtins.str] workload_id: The unique entity identifier of the workload.
181
186
  """
182
187
  if account_id is not None:
183
188
  pulumi.set(__self__, "account_id", account_id)
@@ -204,55 +209,55 @@ class _WorkloadState:
204
209
  if workload_id is not None:
205
210
  pulumi.set(__self__, "workload_id", workload_id)
206
211
 
207
- @property
212
+ @_builtins.property
208
213
  @pulumi.getter(name="accountId")
209
- def account_id(self) -> Optional[pulumi.Input[int]]:
214
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
210
215
  """
211
216
  The New Relic account ID where you want to create the workload.
212
217
  """
213
218
  return pulumi.get(self, "account_id")
214
219
 
215
220
  @account_id.setter
216
- def account_id(self, value: Optional[pulumi.Input[int]]):
221
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
217
222
  pulumi.set(self, "account_id", value)
218
223
 
219
- @property
224
+ @_builtins.property
220
225
  @pulumi.getter(name="compositeEntitySearchQuery")
221
- def composite_entity_search_query(self) -> Optional[pulumi.Input[str]]:
226
+ def composite_entity_search_query(self) -> Optional[pulumi.Input[_builtins.str]]:
222
227
  """
223
228
  The composite query used to compose a dynamic workload.
224
229
  """
225
230
  return pulumi.get(self, "composite_entity_search_query")
226
231
 
227
232
  @composite_entity_search_query.setter
228
- def composite_entity_search_query(self, value: Optional[pulumi.Input[str]]):
233
+ def composite_entity_search_query(self, value: Optional[pulumi.Input[_builtins.str]]):
229
234
  pulumi.set(self, "composite_entity_search_query", value)
230
235
 
231
- @property
236
+ @_builtins.property
232
237
  @pulumi.getter
233
- def description(self) -> Optional[pulumi.Input[str]]:
238
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
234
239
  """
235
240
  Relevant information about the workload.
236
241
  """
237
242
  return pulumi.get(self, "description")
238
243
 
239
244
  @description.setter
240
- def description(self, value: Optional[pulumi.Input[str]]):
245
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
241
246
  pulumi.set(self, "description", value)
242
247
 
243
- @property
248
+ @_builtins.property
244
249
  @pulumi.getter(name="entityGuids")
245
- def entity_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
250
+ def entity_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
246
251
  """
247
252
  A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
248
253
  """
249
254
  return pulumi.get(self, "entity_guids")
250
255
 
251
256
  @entity_guids.setter
252
- def entity_guids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
257
+ def entity_guids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
253
258
  pulumi.set(self, "entity_guids", value)
254
259
 
255
- @property
260
+ @_builtins.property
256
261
  @pulumi.getter(name="entitySearchQueries")
257
262
  def entity_search_queries(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]]:
258
263
  """
@@ -264,55 +269,55 @@ class _WorkloadState:
264
269
  def entity_search_queries(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WorkloadEntitySearchQueryArgs']]]]):
265
270
  pulumi.set(self, "entity_search_queries", value)
266
271
 
267
- @property
272
+ @_builtins.property
268
273
  @pulumi.getter
269
- def guid(self) -> Optional[pulumi.Input[str]]:
274
+ def guid(self) -> Optional[pulumi.Input[_builtins.str]]:
270
275
  """
271
276
  The unique entity identifier of the workload in New Relic.
272
277
  """
273
278
  return pulumi.get(self, "guid")
274
279
 
275
280
  @guid.setter
276
- def guid(self, value: Optional[pulumi.Input[str]]):
281
+ def guid(self, value: Optional[pulumi.Input[_builtins.str]]):
277
282
  pulumi.set(self, "guid", value)
278
283
 
279
- @property
284
+ @_builtins.property
280
285
  @pulumi.getter
281
- def name(self) -> Optional[pulumi.Input[str]]:
286
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
282
287
  """
283
288
  The workload's name.
284
289
  """
285
290
  return pulumi.get(self, "name")
286
291
 
287
292
  @name.setter
288
- def name(self, value: Optional[pulumi.Input[str]]):
293
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
289
294
  pulumi.set(self, "name", value)
290
295
 
291
- @property
296
+ @_builtins.property
292
297
  @pulumi.getter
293
- def permalink(self) -> Optional[pulumi.Input[str]]:
298
+ def permalink(self) -> Optional[pulumi.Input[_builtins.str]]:
294
299
  """
295
300
  The URL of the workload.
296
301
  """
297
302
  return pulumi.get(self, "permalink")
298
303
 
299
304
  @permalink.setter
300
- def permalink(self, value: Optional[pulumi.Input[str]]):
305
+ def permalink(self, value: Optional[pulumi.Input[_builtins.str]]):
301
306
  pulumi.set(self, "permalink", value)
302
307
 
303
- @property
308
+ @_builtins.property
304
309
  @pulumi.getter(name="scopeAccountIds")
305
- def scope_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
310
+ def scope_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
306
311
  """
307
312
  A list of account IDs that will be used to get entities from.
308
313
  """
309
314
  return pulumi.get(self, "scope_account_ids")
310
315
 
311
316
  @scope_account_ids.setter
312
- def scope_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
317
+ def scope_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
313
318
  pulumi.set(self, "scope_account_ids", value)
314
319
 
315
- @property
320
+ @_builtins.property
316
321
  @pulumi.getter(name="statusConfigAutomatic")
317
322
  def status_config_automatic(self) -> Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']]:
318
323
  """
@@ -324,7 +329,7 @@ class _WorkloadState:
324
329
  def status_config_automatic(self, value: Optional[pulumi.Input['WorkloadStatusConfigAutomaticArgs']]):
325
330
  pulumi.set(self, "status_config_automatic", value)
326
331
 
327
- @property
332
+ @_builtins.property
328
333
  @pulumi.getter(name="statusConfigStatic")
329
334
  def status_config_static(self) -> Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']]:
330
335
  """
@@ -336,32 +341,33 @@ class _WorkloadState:
336
341
  def status_config_static(self, value: Optional[pulumi.Input['WorkloadStatusConfigStaticArgs']]):
337
342
  pulumi.set(self, "status_config_static", value)
338
343
 
339
- @property
344
+ @_builtins.property
340
345
  @pulumi.getter(name="workloadId")
341
- def workload_id(self) -> Optional[pulumi.Input[int]]:
346
+ def workload_id(self) -> Optional[pulumi.Input[_builtins.str]]:
342
347
  """
343
348
  The unique entity identifier of the workload.
344
349
  """
345
350
  return pulumi.get(self, "workload_id")
346
351
 
347
352
  @workload_id.setter
348
- def workload_id(self, value: Optional[pulumi.Input[int]]):
353
+ def workload_id(self, value: Optional[pulumi.Input[_builtins.str]]):
349
354
  pulumi.set(self, "workload_id", value)
350
355
 
351
356
 
357
+ @pulumi.type_token("newrelic:plugins/workload:Workload")
352
358
  class Workload(pulumi.CustomResource):
353
359
  @overload
354
360
  def __init__(__self__,
355
361
  resource_name: str,
356
362
  opts: Optional[pulumi.ResourceOptions] = None,
357
- account_id: Optional[pulumi.Input[int]] = None,
358
- description: Optional[pulumi.Input[str]] = None,
359
- entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
360
- entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]]] = None,
361
- name: Optional[pulumi.Input[str]] = None,
362
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
363
- status_config_automatic: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']]] = None,
364
- status_config_static: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']]] = None,
363
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
364
+ description: Optional[pulumi.Input[_builtins.str]] = None,
365
+ entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
366
+ entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WorkloadEntitySearchQueryArgs', 'WorkloadEntitySearchQueryArgsDict']]]]] = None,
367
+ name: Optional[pulumi.Input[_builtins.str]] = None,
368
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
369
+ status_config_automatic: Optional[pulumi.Input[Union['WorkloadStatusConfigAutomaticArgs', 'WorkloadStatusConfigAutomaticArgsDict']]] = None,
370
+ status_config_static: Optional[pulumi.Input[Union['WorkloadStatusConfigStaticArgs', 'WorkloadStatusConfigStaticArgsDict']]] = None,
365
371
  __props__=None):
366
372
  """
367
373
  Use this resource to create, update, and delete a New Relic One workload.
@@ -373,57 +379,116 @@ class Workload(pulumi.CustomResource):
373
379
  ## Example Usage
374
380
 
375
381
  Include entities with a certain string on the name.
376
- <!--Start PulumiCodeChooser -->
377
382
  ```python
378
383
  import pulumi
379
384
  import pulumi_newrelic as newrelic
380
385
 
381
386
  foo = newrelic.plugins.Workload("foo",
382
- account_id=12345678,
387
+ name="Example workload",
388
+ account_id="12345678",
383
389
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
384
- entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
385
- query="name like '%Example application%'",
386
- )],
387
- scope_account_ids=[12345678])
390
+ entity_search_queries=[{
391
+ "query": "name like '%Example application%'",
392
+ }],
393
+ scope_account_ids=["12345678"])
388
394
  ```
389
- <!--End PulumiCodeChooser -->
390
395
 
391
396
  Include entities with a set of tags.
392
- <!--Start PulumiCodeChooser -->
393
397
  ```python
394
398
  import pulumi
395
399
  import pulumi_newrelic as newrelic
396
400
 
397
401
  foo = newrelic.plugins.Workload("foo",
398
- account_id=12345678,
402
+ name="Example workload with tags",
403
+ account_id="12345678",
399
404
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
400
- entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
401
- query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
402
- )],
403
- scope_account_ids=[12345678])
405
+ entity_search_queries=[{
406
+ "query": "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
407
+ }],
408
+ scope_account_ids=["12345678"])
404
409
  ```
405
- <!--End PulumiCodeChooser -->
406
410
 
407
411
  Include entities with a set of tags.
408
- <!--Start PulumiCodeChooser -->
409
412
  ```python
410
413
  import pulumi
411
414
  import pulumi_newrelic as newrelic
412
415
 
413
416
  foo = newrelic.plugins.Workload("foo",
414
- account_id=12345678,
417
+ name="Example workload with tags",
418
+ account_id="12345678",
415
419
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
416
- entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
417
- query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
418
- )],
419
- scope_account_ids=[12345678])
420
+ entity_search_queries=[{
421
+ "query": "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
422
+ }],
423
+ scope_account_ids=["12345678"])
420
424
  ```
421
- <!--End PulumiCodeChooser -->
422
425
 
423
426
  Include automatic status
424
427
 
425
428
  > The global status of your workload is a quick indicator of the workload health. You can configure it to be calculated automatically, and you can also set an alert and get a notification whenever the workload stops being operational. Alternatively, you can communicate a certain status of the workload by setting up a static value and a description. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status)
426
429
 
430
+ ```python
431
+ import pulumi
432
+ import pulumi_newrelic as newrelic
433
+
434
+ foo = newrelic.plugins.Workload("foo",
435
+ name="Example workload",
436
+ account_id="12345678",
437
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
438
+ entity_search_queries=[{
439
+ "query": "name like '%Example application%'",
440
+ }],
441
+ scope_account_ids=["12345678"],
442
+ description="Description",
443
+ status_config_automatic={
444
+ "enabled": True,
445
+ "remaining_entities_rule": {
446
+ "remaining_entities_rule_rollup": {
447
+ "strategy": "BEST_STATUS_WINS",
448
+ "threshold_type": "FIXED",
449
+ "threshold_value": 100,
450
+ "group_by": "ENTITY_TYPE",
451
+ },
452
+ },
453
+ "rules": [{
454
+ "entity_guids": ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
455
+ "nrql_queries": [{
456
+ "query": "name like '%Example application2%'",
457
+ }],
458
+ "rollup": {
459
+ "strategy": "BEST_STATUS_WINS",
460
+ "threshold_type": "FIXED",
461
+ "threshold_value": 100,
462
+ },
463
+ }],
464
+ })
465
+ ```
466
+
467
+ Include static status
468
+
469
+ > You can use this during maintenance tasks or any other time you want to provide a fixed status for your workload. This overrides all automatic rules. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status#configure-static)
470
+
471
+ ```python
472
+ import pulumi
473
+ import pulumi_newrelic as newrelic
474
+
475
+ foo = newrelic.plugins.Workload("foo",
476
+ name="Example workload",
477
+ account_id="12345678",
478
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
479
+ entity_search_queries=[{
480
+ "query": "name like '%Example application%'",
481
+ }],
482
+ scope_account_ids=["12345678"],
483
+ description="Description",
484
+ status_config_static={
485
+ "description": "test",
486
+ "enabled": True,
487
+ "status": "OPERATIONAL",
488
+ "summary": "summary of the status",
489
+ })
490
+ ```
491
+
427
492
  ## Import
428
493
 
429
494
  New Relic workloads can be imported using a concatenated string of the format
@@ -438,14 +503,14 @@ class Workload(pulumi.CustomResource):
438
503
 
439
504
  :param str resource_name: The name of the resource.
440
505
  :param pulumi.ResourceOptions opts: Options for the resource.
441
- :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the workload.
442
- :param pulumi.Input[str] description: Relevant information about the workload.
443
- :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.
444
- :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.
445
- :param pulumi.Input[str] name: The workload's name.
446
- :param pulumi.Input[Sequence[pulumi.Input[int]]] scope_account_ids: A list of account IDs that will be used to get entities from.
447
- :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.
448
- :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.
506
+ :param pulumi.Input[_builtins.str] account_id: The New Relic account ID where you want to create the workload.
507
+ :param pulumi.Input[_builtins.str] description: Relevant information about the workload.
508
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.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.
509
+ :param pulumi.Input[Sequence[pulumi.Input[Union['WorkloadEntitySearchQueryArgs', 'WorkloadEntitySearchQueryArgsDict']]]] 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.
510
+ :param pulumi.Input[_builtins.str] name: The workload's name.
511
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] scope_account_ids: A list of account IDs that will be used to get entities from.
512
+ :param pulumi.Input[Union['WorkloadStatusConfigAutomaticArgs', 'WorkloadStatusConfigAutomaticArgsDict']] status_config_automatic: An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
513
+ :param pulumi.Input[Union['WorkloadStatusConfigStaticArgs', 'WorkloadStatusConfigStaticArgsDict']] 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.
449
514
  """
450
515
  ...
451
516
  @overload
@@ -463,57 +528,116 @@ class Workload(pulumi.CustomResource):
463
528
  ## Example Usage
464
529
 
465
530
  Include entities with a certain string on the name.
466
- <!--Start PulumiCodeChooser -->
467
531
  ```python
468
532
  import pulumi
469
533
  import pulumi_newrelic as newrelic
470
534
 
471
535
  foo = newrelic.plugins.Workload("foo",
472
- account_id=12345678,
536
+ name="Example workload",
537
+ account_id="12345678",
473
538
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
474
- entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
475
- query="name like '%Example application%'",
476
- )],
477
- scope_account_ids=[12345678])
539
+ entity_search_queries=[{
540
+ "query": "name like '%Example application%'",
541
+ }],
542
+ scope_account_ids=["12345678"])
478
543
  ```
479
- <!--End PulumiCodeChooser -->
480
544
 
481
545
  Include entities with a set of tags.
482
- <!--Start PulumiCodeChooser -->
483
546
  ```python
484
547
  import pulumi
485
548
  import pulumi_newrelic as newrelic
486
549
 
487
550
  foo = newrelic.plugins.Workload("foo",
488
- account_id=12345678,
551
+ name="Example workload with tags",
552
+ account_id="12345678",
489
553
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
490
- entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
491
- query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
492
- )],
493
- scope_account_ids=[12345678])
554
+ entity_search_queries=[{
555
+ "query": "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
556
+ }],
557
+ scope_account_ids=["12345678"])
494
558
  ```
495
- <!--End PulumiCodeChooser -->
496
559
 
497
560
  Include entities with a set of tags.
498
- <!--Start PulumiCodeChooser -->
499
561
  ```python
500
562
  import pulumi
501
563
  import pulumi_newrelic as newrelic
502
564
 
503
565
  foo = newrelic.plugins.Workload("foo",
504
- account_id=12345678,
566
+ name="Example workload with tags",
567
+ account_id="12345678",
505
568
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
506
- entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
507
- query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
508
- )],
509
- scope_account_ids=[12345678])
569
+ entity_search_queries=[{
570
+ "query": "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
571
+ }],
572
+ scope_account_ids=["12345678"])
510
573
  ```
511
- <!--End PulumiCodeChooser -->
512
574
 
513
575
  Include automatic status
514
576
 
515
577
  > The global status of your workload is a quick indicator of the workload health. You can configure it to be calculated automatically, and you can also set an alert and get a notification whenever the workload stops being operational. Alternatively, you can communicate a certain status of the workload by setting up a static value and a description. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status)
516
578
 
579
+ ```python
580
+ import pulumi
581
+ import pulumi_newrelic as newrelic
582
+
583
+ foo = newrelic.plugins.Workload("foo",
584
+ name="Example workload",
585
+ account_id="12345678",
586
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
587
+ entity_search_queries=[{
588
+ "query": "name like '%Example application%'",
589
+ }],
590
+ scope_account_ids=["12345678"],
591
+ description="Description",
592
+ status_config_automatic={
593
+ "enabled": True,
594
+ "remaining_entities_rule": {
595
+ "remaining_entities_rule_rollup": {
596
+ "strategy": "BEST_STATUS_WINS",
597
+ "threshold_type": "FIXED",
598
+ "threshold_value": 100,
599
+ "group_by": "ENTITY_TYPE",
600
+ },
601
+ },
602
+ "rules": [{
603
+ "entity_guids": ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
604
+ "nrql_queries": [{
605
+ "query": "name like '%Example application2%'",
606
+ }],
607
+ "rollup": {
608
+ "strategy": "BEST_STATUS_WINS",
609
+ "threshold_type": "FIXED",
610
+ "threshold_value": 100,
611
+ },
612
+ }],
613
+ })
614
+ ```
615
+
616
+ Include static status
617
+
618
+ > You can use this during maintenance tasks or any other time you want to provide a fixed status for your workload. This overrides all automatic rules. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status#configure-static)
619
+
620
+ ```python
621
+ import pulumi
622
+ import pulumi_newrelic as newrelic
623
+
624
+ foo = newrelic.plugins.Workload("foo",
625
+ name="Example workload",
626
+ account_id="12345678",
627
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
628
+ entity_search_queries=[{
629
+ "query": "name like '%Example application%'",
630
+ }],
631
+ scope_account_ids=["12345678"],
632
+ description="Description",
633
+ status_config_static={
634
+ "description": "test",
635
+ "enabled": True,
636
+ "status": "OPERATIONAL",
637
+ "summary": "summary of the status",
638
+ })
639
+ ```
640
+
517
641
  ## Import
518
642
 
519
643
  New Relic workloads can be imported using a concatenated string of the format
@@ -541,14 +665,14 @@ class Workload(pulumi.CustomResource):
541
665
  def _internal_init(__self__,
542
666
  resource_name: str,
543
667
  opts: Optional[pulumi.ResourceOptions] = None,
544
- account_id: Optional[pulumi.Input[int]] = None,
545
- description: Optional[pulumi.Input[str]] = None,
546
- entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
547
- entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]]] = None,
548
- name: Optional[pulumi.Input[str]] = None,
549
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
550
- status_config_automatic: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']]] = None,
551
- status_config_static: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']]] = None,
668
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
669
+ description: Optional[pulumi.Input[_builtins.str]] = None,
670
+ entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
671
+ entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WorkloadEntitySearchQueryArgs', 'WorkloadEntitySearchQueryArgsDict']]]]] = None,
672
+ name: Optional[pulumi.Input[_builtins.str]] = None,
673
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
674
+ status_config_automatic: Optional[pulumi.Input[Union['WorkloadStatusConfigAutomaticArgs', 'WorkloadStatusConfigAutomaticArgsDict']]] = None,
675
+ status_config_static: Optional[pulumi.Input[Union['WorkloadStatusConfigStaticArgs', 'WorkloadStatusConfigStaticArgsDict']]] = None,
552
676
  __props__=None):
553
677
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
554
678
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -580,18 +704,18 @@ class Workload(pulumi.CustomResource):
580
704
  def get(resource_name: str,
581
705
  id: pulumi.Input[str],
582
706
  opts: Optional[pulumi.ResourceOptions] = None,
583
- account_id: Optional[pulumi.Input[int]] = None,
584
- composite_entity_search_query: Optional[pulumi.Input[str]] = None,
585
- description: Optional[pulumi.Input[str]] = None,
586
- entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
587
- entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]]] = None,
588
- guid: Optional[pulumi.Input[str]] = None,
589
- name: Optional[pulumi.Input[str]] = None,
590
- permalink: Optional[pulumi.Input[str]] = None,
591
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
592
- status_config_automatic: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']]] = None,
593
- status_config_static: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']]] = None,
594
- workload_id: Optional[pulumi.Input[int]] = None) -> 'Workload':
707
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
708
+ composite_entity_search_query: Optional[pulumi.Input[_builtins.str]] = None,
709
+ description: Optional[pulumi.Input[_builtins.str]] = None,
710
+ entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
711
+ entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WorkloadEntitySearchQueryArgs', 'WorkloadEntitySearchQueryArgsDict']]]]] = None,
712
+ guid: Optional[pulumi.Input[_builtins.str]] = None,
713
+ name: Optional[pulumi.Input[_builtins.str]] = None,
714
+ permalink: Optional[pulumi.Input[_builtins.str]] = None,
715
+ scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
716
+ status_config_automatic: Optional[pulumi.Input[Union['WorkloadStatusConfigAutomaticArgs', 'WorkloadStatusConfigAutomaticArgsDict']]] = None,
717
+ status_config_static: Optional[pulumi.Input[Union['WorkloadStatusConfigStaticArgs', 'WorkloadStatusConfigStaticArgsDict']]] = None,
718
+ workload_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'Workload':
595
719
  """
596
720
  Get an existing Workload resource's state with the given name, id, and optional extra
597
721
  properties used to qualify the lookup.
@@ -599,18 +723,18 @@ class Workload(pulumi.CustomResource):
599
723
  :param str resource_name: The unique name of the resulting resource.
600
724
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
601
725
  :param pulumi.ResourceOptions opts: Options for the resource.
602
- :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the workload.
603
- :param pulumi.Input[str] composite_entity_search_query: The composite query used to compose a dynamic workload.
604
- :param pulumi.Input[str] description: Relevant information about the workload.
605
- :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.
606
- :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.
607
- :param pulumi.Input[str] guid: The unique entity identifier of the workload in New Relic.
608
- :param pulumi.Input[str] name: The workload's name.
609
- :param pulumi.Input[str] permalink: The URL of the workload.
610
- :param pulumi.Input[Sequence[pulumi.Input[int]]] scope_account_ids: A list of account IDs that will be used to get entities from.
611
- :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.
612
- :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.
613
- :param pulumi.Input[int] workload_id: The unique entity identifier of the workload.
726
+ :param pulumi.Input[_builtins.str] account_id: The New Relic account ID where you want to create the workload.
727
+ :param pulumi.Input[_builtins.str] composite_entity_search_query: The composite query used to compose a dynamic workload.
728
+ :param pulumi.Input[_builtins.str] description: Relevant information about the workload.
729
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.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.
730
+ :param pulumi.Input[Sequence[pulumi.Input[Union['WorkloadEntitySearchQueryArgs', 'WorkloadEntitySearchQueryArgsDict']]]] 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.
731
+ :param pulumi.Input[_builtins.str] guid: The unique entity identifier of the workload in New Relic.
732
+ :param pulumi.Input[_builtins.str] name: The workload's name.
733
+ :param pulumi.Input[_builtins.str] permalink: The URL of the workload.
734
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] scope_account_ids: A list of account IDs that will be used to get entities from.
735
+ :param pulumi.Input[Union['WorkloadStatusConfigAutomaticArgs', 'WorkloadStatusConfigAutomaticArgsDict']] status_config_automatic: An input object used to represent an automatic status configuration.See Nested status_config_automatic blocks below for details.
736
+ :param pulumi.Input[Union['WorkloadStatusConfigStaticArgs', 'WorkloadStatusConfigStaticArgsDict']] 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.
737
+ :param pulumi.Input[_builtins.str] workload_id: The unique entity identifier of the workload.
614
738
  """
615
739
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
616
740
 
@@ -630,39 +754,39 @@ class Workload(pulumi.CustomResource):
630
754
  __props__.__dict__["workload_id"] = workload_id
631
755
  return Workload(resource_name, opts=opts, __props__=__props__)
632
756
 
633
- @property
757
+ @_builtins.property
634
758
  @pulumi.getter(name="accountId")
635
- def account_id(self) -> pulumi.Output[int]:
759
+ def account_id(self) -> pulumi.Output[_builtins.str]:
636
760
  """
637
761
  The New Relic account ID where you want to create the workload.
638
762
  """
639
763
  return pulumi.get(self, "account_id")
640
764
 
641
- @property
765
+ @_builtins.property
642
766
  @pulumi.getter(name="compositeEntitySearchQuery")
643
- def composite_entity_search_query(self) -> pulumi.Output[str]:
767
+ def composite_entity_search_query(self) -> pulumi.Output[_builtins.str]:
644
768
  """
645
769
  The composite query used to compose a dynamic workload.
646
770
  """
647
771
  return pulumi.get(self, "composite_entity_search_query")
648
772
 
649
- @property
773
+ @_builtins.property
650
774
  @pulumi.getter
651
- def description(self) -> pulumi.Output[Optional[str]]:
775
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
652
776
  """
653
777
  Relevant information about the workload.
654
778
  """
655
779
  return pulumi.get(self, "description")
656
780
 
657
- @property
781
+ @_builtins.property
658
782
  @pulumi.getter(name="entityGuids")
659
- def entity_guids(self) -> pulumi.Output[Sequence[str]]:
783
+ def entity_guids(self) -> pulumi.Output[Sequence[_builtins.str]]:
660
784
  """
661
785
  A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
662
786
  """
663
787
  return pulumi.get(self, "entity_guids")
664
788
 
665
- @property
789
+ @_builtins.property
666
790
  @pulumi.getter(name="entitySearchQueries")
667
791
  def entity_search_queries(self) -> pulumi.Output[Optional[Sequence['outputs.WorkloadEntitySearchQuery']]]:
668
792
  """
@@ -670,39 +794,39 @@ class Workload(pulumi.CustomResource):
670
794
  """
671
795
  return pulumi.get(self, "entity_search_queries")
672
796
 
673
- @property
797
+ @_builtins.property
674
798
  @pulumi.getter
675
- def guid(self) -> pulumi.Output[str]:
799
+ def guid(self) -> pulumi.Output[_builtins.str]:
676
800
  """
677
801
  The unique entity identifier of the workload in New Relic.
678
802
  """
679
803
  return pulumi.get(self, "guid")
680
804
 
681
- @property
805
+ @_builtins.property
682
806
  @pulumi.getter
683
- def name(self) -> pulumi.Output[str]:
807
+ def name(self) -> pulumi.Output[_builtins.str]:
684
808
  """
685
809
  The workload's name.
686
810
  """
687
811
  return pulumi.get(self, "name")
688
812
 
689
- @property
813
+ @_builtins.property
690
814
  @pulumi.getter
691
- def permalink(self) -> pulumi.Output[str]:
815
+ def permalink(self) -> pulumi.Output[_builtins.str]:
692
816
  """
693
817
  The URL of the workload.
694
818
  """
695
819
  return pulumi.get(self, "permalink")
696
820
 
697
- @property
821
+ @_builtins.property
698
822
  @pulumi.getter(name="scopeAccountIds")
699
- def scope_account_ids(self) -> pulumi.Output[Sequence[int]]:
823
+ def scope_account_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
700
824
  """
701
825
  A list of account IDs that will be used to get entities from.
702
826
  """
703
827
  return pulumi.get(self, "scope_account_ids")
704
828
 
705
- @property
829
+ @_builtins.property
706
830
  @pulumi.getter(name="statusConfigAutomatic")
707
831
  def status_config_automatic(self) -> pulumi.Output[Optional['outputs.WorkloadStatusConfigAutomatic']]:
708
832
  """
@@ -710,7 +834,7 @@ class Workload(pulumi.CustomResource):
710
834
  """
711
835
  return pulumi.get(self, "status_config_automatic")
712
836
 
713
- @property
837
+ @_builtins.property
714
838
  @pulumi.getter(name="statusConfigStatic")
715
839
  def status_config_static(self) -> pulumi.Output[Optional['outputs.WorkloadStatusConfigStatic']]:
716
840
  """
@@ -718,9 +842,9 @@ class Workload(pulumi.CustomResource):
718
842
  """
719
843
  return pulumi.get(self, "status_config_static")
720
844
 
721
- @property
845
+ @_builtins.property
722
846
  @pulumi.getter(name="workloadId")
723
- def workload_id(self) -> pulumi.Output[int]:
847
+ def workload_id(self) -> pulumi.Output[_builtins.str]:
724
848
  """
725
849
  The unique entity identifier of the workload.
726
850
  """