pulumi-newrelic 5.23.0a1711605988__py3-none-any.whl → 5.23.0a1711736924__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.
@@ -23,7 +23,7 @@ class GetEntityResult:
23
23
  """
24
24
  A collection of values returned by getEntity.
25
25
  """
26
- def __init__(__self__, account_id=None, application_id=None, domain=None, guid=None, id=None, ignore_case=None, name=None, serving_apm_application_id=None, tags=None, type=None):
26
+ def __init__(__self__, account_id=None, application_id=None, domain=None, guid=None, id=None, ignore_case=None, ignore_not_found=None, name=None, serving_apm_application_id=None, tags=None, type=None):
27
27
  if account_id and not isinstance(account_id, int):
28
28
  raise TypeError("Expected argument 'account_id' to be a int")
29
29
  pulumi.set(__self__, "account_id", account_id)
@@ -42,6 +42,9 @@ class GetEntityResult:
42
42
  if ignore_case and not isinstance(ignore_case, bool):
43
43
  raise TypeError("Expected argument 'ignore_case' to be a bool")
44
44
  pulumi.set(__self__, "ignore_case", ignore_case)
45
+ if ignore_not_found and not isinstance(ignore_not_found, bool):
46
+ raise TypeError("Expected argument 'ignore_not_found' to be a bool")
47
+ pulumi.set(__self__, "ignore_not_found", ignore_not_found)
45
48
  if name and not isinstance(name, str):
46
49
  raise TypeError("Expected argument 'name' to be a str")
47
50
  pulumi.set(__self__, "name", name)
@@ -94,6 +97,11 @@ class GetEntityResult:
94
97
  def ignore_case(self) -> Optional[bool]:
95
98
  return pulumi.get(self, "ignore_case")
96
99
 
100
+ @property
101
+ @pulumi.getter(name="ignoreNotFound")
102
+ def ignore_not_found(self) -> Optional[bool]:
103
+ return pulumi.get(self, "ignore_not_found")
104
+
97
105
  @property
98
106
  @pulumi.getter
99
107
  def name(self) -> str:
@@ -130,6 +138,7 @@ class AwaitableGetEntityResult(GetEntityResult):
130
138
  guid=self.guid,
131
139
  id=self.id,
132
140
  ignore_case=self.ignore_case,
141
+ ignore_not_found=self.ignore_not_found,
133
142
  name=self.name,
134
143
  serving_apm_application_id=self.serving_apm_application_id,
135
144
  tags=self.tags,
@@ -139,6 +148,7 @@ class AwaitableGetEntityResult(GetEntityResult):
139
148
  def get_entity(account_id: Optional[int] = None,
140
149
  domain: Optional[str] = None,
141
150
  ignore_case: Optional[bool] = None,
151
+ ignore_not_found: Optional[bool] = None,
142
152
  name: Optional[str] = None,
143
153
  tags: Optional[Sequence[pulumi.InputType['GetEntityTagArgs']]] = None,
144
154
  type: Optional[str] = None,
@@ -210,6 +220,9 @@ def get_entity(account_id: Optional[int] = None,
210
220
  :param int account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
211
221
  :param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
212
222
  :param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
223
+ :param bool ignore_not_found: A boolean argument that, when set to true, prevents an error from being thrown when the queried entity is not found. Instead, a warning is displayed. Defaults to `false`.
224
+
225
+ > **WARNING:** Setting the `ignore_not_found` argument to `true` will display an 'entity not found' warning instead of throwing an error. This can lead to downstream errors if the values of attributes exported by this data source are used elsewhere, as all of these values would be null. Please use this argument at your own risk.
213
226
  :param str name: The name of the entity in New Relic One. The first entity matching this name for the given search parameters will be returned.
214
227
  :param Sequence[pulumi.InputType['GetEntityTagArgs']] tags: A tag applied to the entity. See Nested tag blocks below for details.
215
228
  :param str type: The entity's type. Valid values are APPLICATION, DASHBOARD, HOST, MONITOR, WORKLOAD, AWSLAMBDAFUNCTION, SERVICE_LEVEL, and KEY_TRANSACTION. Note: Other entity types may also be queryable as the list of entity types may fluctuate over time.
@@ -218,6 +231,7 @@ def get_entity(account_id: Optional[int] = None,
218
231
  __args__['accountId'] = account_id
219
232
  __args__['domain'] = domain
220
233
  __args__['ignoreCase'] = ignore_case
234
+ __args__['ignoreNotFound'] = ignore_not_found
221
235
  __args__['name'] = name
222
236
  __args__['tags'] = tags
223
237
  __args__['type'] = type
@@ -231,6 +245,7 @@ def get_entity(account_id: Optional[int] = None,
231
245
  guid=pulumi.get(__ret__, 'guid'),
232
246
  id=pulumi.get(__ret__, 'id'),
233
247
  ignore_case=pulumi.get(__ret__, 'ignore_case'),
248
+ ignore_not_found=pulumi.get(__ret__, 'ignore_not_found'),
234
249
  name=pulumi.get(__ret__, 'name'),
235
250
  serving_apm_application_id=pulumi.get(__ret__, 'serving_apm_application_id'),
236
251
  tags=pulumi.get(__ret__, 'tags'),
@@ -241,6 +256,7 @@ def get_entity(account_id: Optional[int] = None,
241
256
  def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
242
257
  domain: Optional[pulumi.Input[Optional[str]]] = None,
243
258
  ignore_case: Optional[pulumi.Input[Optional[bool]]] = None,
259
+ ignore_not_found: Optional[pulumi.Input[Optional[bool]]] = None,
244
260
  name: Optional[pulumi.Input[str]] = None,
245
261
  tags: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetEntityTagArgs']]]]] = None,
246
262
  type: Optional[pulumi.Input[Optional[str]]] = None,
@@ -312,6 +328,9 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
312
328
  :param int account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
313
329
  :param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
314
330
  :param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
331
+ :param bool ignore_not_found: A boolean argument that, when set to true, prevents an error from being thrown when the queried entity is not found. Instead, a warning is displayed. Defaults to `false`.
332
+
333
+ > **WARNING:** Setting the `ignore_not_found` argument to `true` will display an 'entity not found' warning instead of throwing an error. This can lead to downstream errors if the values of attributes exported by this data source are used elsewhere, as all of these values would be null. Please use this argument at your own risk.
315
334
  :param str name: The name of the entity in New Relic One. The first entity matching this name for the given search parameters will be returned.
316
335
  :param Sequence[pulumi.InputType['GetEntityTagArgs']] tags: A tag applied to the entity. See Nested tag blocks below for details.
317
336
  :param str type: The entity's type. Valid values are APPLICATION, DASHBOARD, HOST, MONITOR, WORKLOAD, AWSLAMBDAFUNCTION, SERVICE_LEVEL, and KEY_TRANSACTION. Note: Other entity types may also be queryable as the list of entity types may fluctuate over time.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_newrelic
3
- Version: 5.23.0a1711605988
3
+ Version: 5.23.0a1711736924
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -18,7 +18,7 @@ pulumi_newrelic/get_alert_policy.py,sha256=bXG0H6FGgPJOlSif9jcX3C281YSH7RdQLUMMe
18
18
  pulumi_newrelic/get_application.py,sha256=WDsD8ZJYgBzEF3gDQ_7JBQi0KhH5On2eefIYvm-o4Wc,5452
19
19
  pulumi_newrelic/get_authentication_domain.py,sha256=MSbr36jloN6OBrtOi3B7tx00UMHE5PGSY7N6kmCfq1w,3726
20
20
  pulumi_newrelic/get_cloud_account.py,sha256=6ZH4EJKd496uCt1rD5wYsfZxxJTPEi0g_biuMHIRVVY,5327
21
- pulumi_newrelic/get_entity.py,sha256=n2kX6l4YbWz6ij3YWksdm0OpCqxZOHbkUxbLwJLXSE4,15853
21
+ pulumi_newrelic/get_entity.py,sha256=an0mLczWPgByLz296CUciT20pNEkxQKCD2FKAIkjfuk,17684
22
22
  pulumi_newrelic/get_group.py,sha256=taAkgQqBRxv_jkwl6sD-EYqWyqThF0LSKpUeBJbD3as,5803
23
23
  pulumi_newrelic/get_key_transaction.py,sha256=MVb6rIX0nEOd4IR7ynQZa0quksdkZrm2coGB_Q7j76I,4221
24
24
  pulumi_newrelic/get_notification_destination.py,sha256=0xLd5ibPy8VNvBHBLss_GIXu50Zd9A8mxzeF4e9-57E,6799
@@ -83,7 +83,7 @@ pulumi_newrelic/synthetics/private_location.py,sha256=sfKNs1-BdEdbrvAsG7N07p6OY1
83
83
  pulumi_newrelic/synthetics/script_monitor.py,sha256=0xaDofutIIa8d14pbLwnjTduwbR_F5mKCB6hz7ExRZE,53295
84
84
  pulumi_newrelic/synthetics/secure_credential.py,sha256=zniaAb_wXwph3sPSxo_aU--DIgAl7TUR90-DxRBLhac,15758
85
85
  pulumi_newrelic/synthetics/step_monitor.py,sha256=SaBC-fyz25C8vTSBIiDpFeXk5T5UGnMQ-1oW3sOjr6o,44597
86
- pulumi_newrelic-5.23.0a1711605988.dist-info/METADATA,sha256=ujEjrQ7fcz2XytmGoS_DtffEq64fY7D5JtYO97FuUYo,3900
87
- pulumi_newrelic-5.23.0a1711605988.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
88
- pulumi_newrelic-5.23.0a1711605988.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
89
- pulumi_newrelic-5.23.0a1711605988.dist-info/RECORD,,
86
+ pulumi_newrelic-5.23.0a1711736924.dist-info/METADATA,sha256=tSujqMCJQvK0KZ57kFgQLXotwR3GF5R653VtwCKDw88,3900
87
+ pulumi_newrelic-5.23.0a1711736924.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
88
+ pulumi_newrelic-5.23.0a1711736924.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
89
+ pulumi_newrelic-5.23.0a1711736924.dist-info/RECORD,,