pulumi-newrelic 5.16.0a1698964311__py3-none-any.whl → 5.58.0a1763707205__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +58 -1
  2. pulumi_newrelic/_inputs.py +10772 -2775
  3. pulumi_newrelic/_utilities.py +92 -11
  4. pulumi_newrelic/account_management.py +56 -42
  5. pulumi_newrelic/alert_channel.py +177 -151
  6. pulumi_newrelic/alert_condition.py +313 -301
  7. pulumi_newrelic/alert_muting_rule.py +195 -138
  8. pulumi_newrelic/alert_policy.py +157 -109
  9. pulumi_newrelic/alert_policy_channel.py +95 -81
  10. pulumi_newrelic/api_access_key.py +191 -209
  11. pulumi_newrelic/browser_application.py +161 -153
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2710
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
  16. pulumi_newrelic/cloud/aws_integrations.py +518 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +88 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +681 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +129 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +436 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +71 -59
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2317
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +45 -0
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +129 -117
  28. pulumi_newrelic/entity_tags.py +153 -31
  29. pulumi_newrelic/events_to_metrics_rule.py +114 -102
  30. pulumi_newrelic/get_account.py +41 -29
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +83 -34
  33. pulumi_newrelic/get_application.py +51 -39
  34. pulumi_newrelic/get_authentication_domain.py +111 -0
  35. pulumi_newrelic/get_cloud_account.py +43 -31
  36. pulumi_newrelic/get_entity.py +126 -121
  37. pulumi_newrelic/get_group.py +190 -0
  38. pulumi_newrelic/get_key_transaction.py +117 -38
  39. pulumi_newrelic/get_notification_destination.py +86 -36
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -35
  41. pulumi_newrelic/get_service_level_alert_helper.py +237 -137
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -32
  43. pulumi_newrelic/get_user.py +165 -0
  44. pulumi_newrelic/group.py +286 -0
  45. pulumi_newrelic/infra_alert_condition.py +400 -382
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +94 -23
  48. pulumi_newrelic/insights/event.py +56 -48
  49. pulumi_newrelic/insights/outputs.py +51 -18
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +169 -153
  52. pulumi_newrelic/monitor_downtime.py +914 -0
  53. pulumi_newrelic/notification_channel.py +560 -418
  54. pulumi_newrelic/notification_destination.py +379 -124
  55. pulumi_newrelic/nrql_alert_condition.py +945 -513
  56. pulumi_newrelic/nrql_drop_rule.py +121 -129
  57. pulumi_newrelic/obfuscation_expression.py +88 -76
  58. pulumi_newrelic/obfuscation_rule.py +123 -109
  59. pulumi_newrelic/one_dashboard.py +118 -108
  60. pulumi_newrelic/one_dashboard_json.py +77 -67
  61. pulumi_newrelic/one_dashboard_raw.py +214 -202
  62. pulumi_newrelic/outputs.py +5491 -2141
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +520 -90
  66. pulumi_newrelic/plugins/application_settings.py +463 -167
  67. pulumi_newrelic/plugins/outputs.py +337 -75
  68. pulumi_newrelic/plugins/workload.py +387 -151
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +277 -255
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +275 -106
  74. pulumi_newrelic/synthetics/alert_condition.py +174 -160
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -39
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
  79. pulumi_newrelic/synthetics/monitor.py +668 -462
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
  81. pulumi_newrelic/synthetics/outputs.py +102 -85
  82. pulumi_newrelic/synthetics/private_location.py +120 -110
  83. pulumi_newrelic/synthetics/script_monitor.py +623 -375
  84. pulumi_newrelic/synthetics/secure_credential.py +99 -93
  85. pulumi_newrelic/synthetics/step_monitor.py +545 -201
  86. pulumi_newrelic/user.py +366 -0
  87. pulumi_newrelic/workflow.py +348 -312
  88. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
  92. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
  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.
@@ -370,26 +376,141 @@ class Workload(pulumi.CustomResource):
370
376
  attribute in the `provider` block or the `NEW_RELIC_API_KEY` environment
371
377
  variable with your User API key.
372
378
 
379
+ ## Example Usage
380
+
381
+ Include entities with a certain string on the name.
382
+ ```python
383
+ import pulumi
384
+ import pulumi_newrelic as newrelic
385
+
386
+ foo = newrelic.plugins.Workload("foo",
387
+ name="Example workload",
388
+ account_id="12345678",
389
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
390
+ entity_search_queries=[{
391
+ "query": "name like '%Example application%'",
392
+ }],
393
+ scope_account_ids=["12345678"])
394
+ ```
395
+
396
+ Include entities with a set of tags.
397
+ ```python
398
+ import pulumi
399
+ import pulumi_newrelic as newrelic
400
+
401
+ foo = newrelic.plugins.Workload("foo",
402
+ name="Example workload with tags",
403
+ account_id="12345678",
404
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
405
+ entity_search_queries=[{
406
+ "query": "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
407
+ }],
408
+ scope_account_ids=["12345678"])
409
+ ```
410
+
411
+ Include entities with a set of tags.
412
+ ```python
413
+ import pulumi
414
+ import pulumi_newrelic as newrelic
415
+
416
+ foo = newrelic.plugins.Workload("foo",
417
+ name="Example workload with tags",
418
+ account_id="12345678",
419
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
420
+ entity_search_queries=[{
421
+ "query": "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
422
+ }],
423
+ scope_account_ids=["12345678"])
424
+ ```
425
+
426
+ Include automatic status
427
+
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)
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
+
373
492
  ## Import
374
493
 
375
494
  New Relic workloads can be imported using a concatenated string of the format
376
495
 
377
- `<account_id>:<workload_id>:<guid>`, e.g. bash
496
+ `<account_id>:<workload_id>:<guid>`, e.g.
497
+
498
+ bash
378
499
 
379
500
  ```sh
380
- $ pulumi import newrelic:plugins/workload:Workload foo 12345678:1456:MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
501
+ $ pulumi import newrelic:plugins/workload:Workload foo 12345678:1456:MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
381
502
  ```
382
503
 
383
504
  :param str resource_name: The name of the resource.
384
505
  :param pulumi.ResourceOptions opts: Options for the resource.
385
- :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the workload.
386
- :param pulumi.Input[str] description: Relevant information about the workload.
387
- :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.
388
- :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.
389
- :param pulumi.Input[str] name: The workload's name.
390
- :param pulumi.Input[Sequence[pulumi.Input[int]]] scope_account_ids: A list of account IDs that will be used to get entities from.
391
- :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.
392
- :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.
393
514
  """
394
515
  ...
395
516
  @overload
@@ -404,14 +525,129 @@ class Workload(pulumi.CustomResource):
404
525
  attribute in the `provider` block or the `NEW_RELIC_API_KEY` environment
405
526
  variable with your User API key.
406
527
 
528
+ ## Example Usage
529
+
530
+ Include entities with a certain string on the name.
531
+ ```python
532
+ import pulumi
533
+ import pulumi_newrelic as newrelic
534
+
535
+ foo = newrelic.plugins.Workload("foo",
536
+ name="Example workload",
537
+ account_id="12345678",
538
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
539
+ entity_search_queries=[{
540
+ "query": "name like '%Example application%'",
541
+ }],
542
+ scope_account_ids=["12345678"])
543
+ ```
544
+
545
+ Include entities with a set of tags.
546
+ ```python
547
+ import pulumi
548
+ import pulumi_newrelic as newrelic
549
+
550
+ foo = newrelic.plugins.Workload("foo",
551
+ name="Example workload with tags",
552
+ account_id="12345678",
553
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
554
+ entity_search_queries=[{
555
+ "query": "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
556
+ }],
557
+ scope_account_ids=["12345678"])
558
+ ```
559
+
560
+ Include entities with a set of tags.
561
+ ```python
562
+ import pulumi
563
+ import pulumi_newrelic as newrelic
564
+
565
+ foo = newrelic.plugins.Workload("foo",
566
+ name="Example workload with tags",
567
+ account_id="12345678",
568
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
569
+ entity_search_queries=[{
570
+ "query": "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
571
+ }],
572
+ scope_account_ids=["12345678"])
573
+ ```
574
+
575
+ Include automatic status
576
+
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)
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
+
407
641
  ## Import
408
642
 
409
643
  New Relic workloads can be imported using a concatenated string of the format
410
644
 
411
- `<account_id>:<workload_id>:<guid>`, e.g. bash
645
+ `<account_id>:<workload_id>:<guid>`, e.g.
646
+
647
+ bash
412
648
 
413
649
  ```sh
414
- $ pulumi import newrelic:plugins/workload:Workload foo 12345678:1456:MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
650
+ $ pulumi import newrelic:plugins/workload:Workload foo 12345678:1456:MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
415
651
  ```
416
652
 
417
653
  :param str resource_name: The name of the resource.
@@ -429,14 +665,14 @@ class Workload(pulumi.CustomResource):
429
665
  def _internal_init(__self__,
430
666
  resource_name: str,
431
667
  opts: Optional[pulumi.ResourceOptions] = None,
432
- account_id: Optional[pulumi.Input[int]] = None,
433
- description: Optional[pulumi.Input[str]] = None,
434
- entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
435
- entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]]] = None,
436
- name: Optional[pulumi.Input[str]] = None,
437
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
438
- status_config_automatic: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']]] = None,
439
- 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,
440
676
  __props__=None):
441
677
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
442
678
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -468,18 +704,18 @@ class Workload(pulumi.CustomResource):
468
704
  def get(resource_name: str,
469
705
  id: pulumi.Input[str],
470
706
  opts: Optional[pulumi.ResourceOptions] = None,
471
- account_id: Optional[pulumi.Input[int]] = None,
472
- composite_entity_search_query: Optional[pulumi.Input[str]] = None,
473
- description: Optional[pulumi.Input[str]] = None,
474
- entity_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
475
- entity_search_queries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WorkloadEntitySearchQueryArgs']]]]] = None,
476
- guid: Optional[pulumi.Input[str]] = None,
477
- name: Optional[pulumi.Input[str]] = None,
478
- permalink: Optional[pulumi.Input[str]] = None,
479
- scope_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
480
- status_config_automatic: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigAutomaticArgs']]] = None,
481
- status_config_static: Optional[pulumi.Input[pulumi.InputType['WorkloadStatusConfigStaticArgs']]] = None,
482
- 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':
483
719
  """
484
720
  Get an existing Workload resource's state with the given name, id, and optional extra
485
721
  properties used to qualify the lookup.
@@ -487,18 +723,18 @@ class Workload(pulumi.CustomResource):
487
723
  :param str resource_name: The unique name of the resulting resource.
488
724
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
489
725
  :param pulumi.ResourceOptions opts: Options for the resource.
490
- :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the workload.
491
- :param pulumi.Input[str] composite_entity_search_query: The composite query used to compose a dynamic workload.
492
- :param pulumi.Input[str] description: Relevant information about the workload.
493
- :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.
494
- :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.
495
- :param pulumi.Input[str] guid: The unique entity identifier of the workload in New Relic.
496
- :param pulumi.Input[str] name: The workload's name.
497
- :param pulumi.Input[str] permalink: The URL of the workload.
498
- :param pulumi.Input[Sequence[pulumi.Input[int]]] scope_account_ids: A list of account IDs that will be used to get entities from.
499
- :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.
500
- :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.
501
- :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.
502
738
  """
503
739
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
504
740
 
@@ -518,39 +754,39 @@ class Workload(pulumi.CustomResource):
518
754
  __props__.__dict__["workload_id"] = workload_id
519
755
  return Workload(resource_name, opts=opts, __props__=__props__)
520
756
 
521
- @property
757
+ @_builtins.property
522
758
  @pulumi.getter(name="accountId")
523
- def account_id(self) -> pulumi.Output[int]:
759
+ def account_id(self) -> pulumi.Output[_builtins.str]:
524
760
  """
525
761
  The New Relic account ID where you want to create the workload.
526
762
  """
527
763
  return pulumi.get(self, "account_id")
528
764
 
529
- @property
765
+ @_builtins.property
530
766
  @pulumi.getter(name="compositeEntitySearchQuery")
531
- def composite_entity_search_query(self) -> pulumi.Output[str]:
767
+ def composite_entity_search_query(self) -> pulumi.Output[_builtins.str]:
532
768
  """
533
769
  The composite query used to compose a dynamic workload.
534
770
  """
535
771
  return pulumi.get(self, "composite_entity_search_query")
536
772
 
537
- @property
773
+ @_builtins.property
538
774
  @pulumi.getter
539
- def description(self) -> pulumi.Output[Optional[str]]:
775
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
540
776
  """
541
777
  Relevant information about the workload.
542
778
  """
543
779
  return pulumi.get(self, "description")
544
780
 
545
- @property
781
+ @_builtins.property
546
782
  @pulumi.getter(name="entityGuids")
547
- def entity_guids(self) -> pulumi.Output[Sequence[str]]:
783
+ def entity_guids(self) -> pulumi.Output[Sequence[_builtins.str]]:
548
784
  """
549
785
  A list of entity GUIDs manually assigned to this workload. At least one of either `entity_guids` or `entity_search_query` is required.
550
786
  """
551
787
  return pulumi.get(self, "entity_guids")
552
788
 
553
- @property
789
+ @_builtins.property
554
790
  @pulumi.getter(name="entitySearchQueries")
555
791
  def entity_search_queries(self) -> pulumi.Output[Optional[Sequence['outputs.WorkloadEntitySearchQuery']]]:
556
792
  """
@@ -558,39 +794,39 @@ class Workload(pulumi.CustomResource):
558
794
  """
559
795
  return pulumi.get(self, "entity_search_queries")
560
796
 
561
- @property
797
+ @_builtins.property
562
798
  @pulumi.getter
563
- def guid(self) -> pulumi.Output[str]:
799
+ def guid(self) -> pulumi.Output[_builtins.str]:
564
800
  """
565
801
  The unique entity identifier of the workload in New Relic.
566
802
  """
567
803
  return pulumi.get(self, "guid")
568
804
 
569
- @property
805
+ @_builtins.property
570
806
  @pulumi.getter
571
- def name(self) -> pulumi.Output[str]:
807
+ def name(self) -> pulumi.Output[_builtins.str]:
572
808
  """
573
809
  The workload's name.
574
810
  """
575
811
  return pulumi.get(self, "name")
576
812
 
577
- @property
813
+ @_builtins.property
578
814
  @pulumi.getter
579
- def permalink(self) -> pulumi.Output[str]:
815
+ def permalink(self) -> pulumi.Output[_builtins.str]:
580
816
  """
581
817
  The URL of the workload.
582
818
  """
583
819
  return pulumi.get(self, "permalink")
584
820
 
585
- @property
821
+ @_builtins.property
586
822
  @pulumi.getter(name="scopeAccountIds")
587
- def scope_account_ids(self) -> pulumi.Output[Sequence[int]]:
823
+ def scope_account_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
588
824
  """
589
825
  A list of account IDs that will be used to get entities from.
590
826
  """
591
827
  return pulumi.get(self, "scope_account_ids")
592
828
 
593
- @property
829
+ @_builtins.property
594
830
  @pulumi.getter(name="statusConfigAutomatic")
595
831
  def status_config_automatic(self) -> pulumi.Output[Optional['outputs.WorkloadStatusConfigAutomatic']]:
596
832
  """
@@ -598,7 +834,7 @@ class Workload(pulumi.CustomResource):
598
834
  """
599
835
  return pulumi.get(self, "status_config_automatic")
600
836
 
601
- @property
837
+ @_builtins.property
602
838
  @pulumi.getter(name="statusConfigStatic")
603
839
  def status_config_static(self) -> pulumi.Output[Optional['outputs.WorkloadStatusConfigStatic']]:
604
840
  """
@@ -606,9 +842,9 @@ class Workload(pulumi.CustomResource):
606
842
  """
607
843
  return pulumi.get(self, "status_config_static")
608
844
 
609
- @property
845
+ @_builtins.property
610
846
  @pulumi.getter(name="workloadId")
611
- def workload_id(self) -> pulumi.Output[int]:
847
+ def workload_id(self) -> pulumi.Output[_builtins.str]:
612
848
  """
613
849
  The unique entity identifier of the workload.
614
850
  """