pulumi-newrelic 5.25.1a1716913561__py3-none-any.whl → 5.25.2__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, ignore_not_found=None, name=None, serving_apm_application_id=None, tags=None, type=None):
26
+ def __init__(__self__, account_id=None, application_id=None, domain=None, entity_tags=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, str):
28
28
  raise TypeError("Expected argument 'account_id' to be a str")
29
29
  pulumi.set(__self__, "account_id", account_id)
@@ -33,6 +33,9 @@ class GetEntityResult:
33
33
  if domain and not isinstance(domain, str):
34
34
  raise TypeError("Expected argument 'domain' to be a str")
35
35
  pulumi.set(__self__, "domain", domain)
36
+ if entity_tags and not isinstance(entity_tags, str):
37
+ raise TypeError("Expected argument 'entity_tags' to be a str")
38
+ pulumi.set(__self__, "entity_tags", entity_tags)
36
39
  if guid and not isinstance(guid, str):
37
40
  raise TypeError("Expected argument 'guid' to be a str")
38
41
  pulumi.set(__self__, "guid", guid)
@@ -76,6 +79,15 @@ class GetEntityResult:
76
79
  def domain(self) -> str:
77
80
  return pulumi.get(self, "domain")
78
81
 
82
+ @property
83
+ @pulumi.getter(name="entityTags")
84
+ def entity_tags(self) -> str:
85
+ """
86
+ A JSON-encoded string, comprising tags associated with the entity fetched.
87
+ * See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
88
+ """
89
+ return pulumi.get(self, "entity_tags")
90
+
79
91
  @property
80
92
  @pulumi.getter
81
93
  def guid(self) -> str:
@@ -135,6 +147,7 @@ class AwaitableGetEntityResult(GetEntityResult):
135
147
  account_id=self.account_id,
136
148
  application_id=self.application_id,
137
149
  domain=self.domain,
150
+ entity_tags=self.entity_tags,
138
151
  guid=self.guid,
139
152
  id=self.id,
140
153
  ignore_case=self.ignore_case,
@@ -147,6 +160,7 @@ class AwaitableGetEntityResult(GetEntityResult):
147
160
 
148
161
  def get_entity(account_id: Optional[str] = None,
149
162
  domain: Optional[str] = None,
163
+ entity_tags: Optional[str] = None,
150
164
  ignore_case: Optional[bool] = None,
151
165
  ignore_not_found: Optional[bool] = None,
152
166
  name: Optional[str] = None,
@@ -154,69 +168,12 @@ def get_entity(account_id: Optional[str] = None,
154
168
  type: Optional[str] = None,
155
169
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEntityResult:
156
170
  """
157
- Use this data source to get information about a specific entity in New Relic One that already exists.
158
-
159
- ### Example: Filter By Account ID
160
-
161
- The default behaviour of this data source is to retrieve entities matching the specified parameters (such as `name`, `domain`, `type`) from NerdGraph with the credentials specified in the configuration of the provider (account ID and API Key), filter them by the account ID specified in the configuration of the provider, and return the first match.
162
-
163
- This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
164
-
165
- ```python
166
- import pulumi
167
- import pulumi_newrelic as newrelic
168
-
169
- # The entity returned by this configuration would have to
170
- # belong to the account_id specified in the provider
171
- # configuration, i.e. NEW_RELIC_ACCOUNT_ID.
172
- app = newrelic.get_entity(name="my-app",
173
- domain="APM",
174
- type="APPLICATION")
175
- ```
176
- However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
177
- ```python
178
- import pulumi
179
- import pulumi_newrelic as newrelic
180
-
181
- # The entity returned by this configuration, unlike in
182
- # the above example, would have to belong to the account_id
183
- # specified in the configuration below, i.e. 654321.
184
- app = newrelic.get_entity(name="my-app",
185
- account_id="654321",
186
- domain="APM",
187
- type="APPLICATION")
188
- ```
189
- The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
190
-
191
- In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
192
- ### Query for an OTEL entity
193
-
194
- ```python
195
- import pulumi
196
- import pulumi_newrelic as newrelic
197
-
198
- app = newrelic.get_entity(name="my-otel-app",
199
- domain="EXT",
200
- type="SERVICE",
201
- tags=[newrelic.GetEntityTagArgs(
202
- key="accountID",
203
- value="12345",
204
- )])
205
- ```
206
-
207
- ### Query for an entity by type (AWS Lambda entity in this example)
208
-
209
- ```python
210
- import pulumi
211
- import pulumi_newrelic as newrelic
212
-
213
- app = newrelic.get_entity(name="my_lambda_trace",
214
- type="AWSLAMBDAFUNCTION")
215
- ```
216
-
171
+ Use this data source to access information about an existing resource.
217
172
 
218
173
  :param str 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.
219
174
  :param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
175
+ :param str entity_tags: A JSON-encoded string, comprising tags associated with the entity fetched.
176
+ * See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
220
177
  :param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
221
178
  :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`.
222
179
 
@@ -228,6 +185,7 @@ def get_entity(account_id: Optional[str] = None,
228
185
  __args__ = dict()
229
186
  __args__['accountId'] = account_id
230
187
  __args__['domain'] = domain
188
+ __args__['entityTags'] = entity_tags
231
189
  __args__['ignoreCase'] = ignore_case
232
190
  __args__['ignoreNotFound'] = ignore_not_found
233
191
  __args__['name'] = name
@@ -240,6 +198,7 @@ def get_entity(account_id: Optional[str] = None,
240
198
  account_id=pulumi.get(__ret__, 'account_id'),
241
199
  application_id=pulumi.get(__ret__, 'application_id'),
242
200
  domain=pulumi.get(__ret__, 'domain'),
201
+ entity_tags=pulumi.get(__ret__, 'entity_tags'),
243
202
  guid=pulumi.get(__ret__, 'guid'),
244
203
  id=pulumi.get(__ret__, 'id'),
245
204
  ignore_case=pulumi.get(__ret__, 'ignore_case'),
@@ -253,6 +212,7 @@ def get_entity(account_id: Optional[str] = None,
253
212
  @_utilities.lift_output_func(get_entity)
254
213
  def get_entity_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
255
214
  domain: Optional[pulumi.Input[Optional[str]]] = None,
215
+ entity_tags: Optional[pulumi.Input[Optional[str]]] = None,
256
216
  ignore_case: Optional[pulumi.Input[Optional[bool]]] = None,
257
217
  ignore_not_found: Optional[pulumi.Input[Optional[bool]]] = None,
258
218
  name: Optional[pulumi.Input[str]] = None,
@@ -260,69 +220,12 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
260
220
  type: Optional[pulumi.Input[Optional[str]]] = None,
261
221
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEntityResult]:
262
222
  """
263
- Use this data source to get information about a specific entity in New Relic One that already exists.
264
-
265
- ### Example: Filter By Account ID
266
-
267
- The default behaviour of this data source is to retrieve entities matching the specified parameters (such as `name`, `domain`, `type`) from NerdGraph with the credentials specified in the configuration of the provider (account ID and API Key), filter them by the account ID specified in the configuration of the provider, and return the first match.
268
-
269
- This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
270
-
271
- ```python
272
- import pulumi
273
- import pulumi_newrelic as newrelic
274
-
275
- # The entity returned by this configuration would have to
276
- # belong to the account_id specified in the provider
277
- # configuration, i.e. NEW_RELIC_ACCOUNT_ID.
278
- app = newrelic.get_entity(name="my-app",
279
- domain="APM",
280
- type="APPLICATION")
281
- ```
282
- However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
283
- ```python
284
- import pulumi
285
- import pulumi_newrelic as newrelic
286
-
287
- # The entity returned by this configuration, unlike in
288
- # the above example, would have to belong to the account_id
289
- # specified in the configuration below, i.e. 654321.
290
- app = newrelic.get_entity(name="my-app",
291
- account_id="654321",
292
- domain="APM",
293
- type="APPLICATION")
294
- ```
295
- The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
296
-
297
- In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
298
- ### Query for an OTEL entity
299
-
300
- ```python
301
- import pulumi
302
- import pulumi_newrelic as newrelic
303
-
304
- app = newrelic.get_entity(name="my-otel-app",
305
- domain="EXT",
306
- type="SERVICE",
307
- tags=[newrelic.GetEntityTagArgs(
308
- key="accountID",
309
- value="12345",
310
- )])
311
- ```
312
-
313
- ### Query for an entity by type (AWS Lambda entity in this example)
314
-
315
- ```python
316
- import pulumi
317
- import pulumi_newrelic as newrelic
318
-
319
- app = newrelic.get_entity(name="my_lambda_trace",
320
- type="AWSLAMBDAFUNCTION")
321
- ```
322
-
223
+ Use this data source to access information about an existing resource.
323
224
 
324
225
  :param str 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.
325
226
  :param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
227
+ :param str entity_tags: A JSON-encoded string, comprising tags associated with the entity fetched.
228
+ * See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
326
229
  :param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
327
230
  :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`.
328
231
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "newrelic",
4
- "version": "5.25.1-alpha.1716913561"
4
+ "version": "5.25.2"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_newrelic
3
- Version: 5.25.1a1716913561
3
+ Version: 5.25.2
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=hfBkNm6FPKiSJ32K5OXRIC8DS0mUdneESQUWX
18
18
  pulumi_newrelic/get_application.py,sha256=BAfcQqa2YJR3ggMugqvBydAT59ujX_ftPQmsDtsd2Uw,5274
19
19
  pulumi_newrelic/get_authentication_domain.py,sha256=wy5i9vGaNqYofpBE7gLrwmJAaM-NkdMglOK0lprSFjM,3498
20
20
  pulumi_newrelic/get_cloud_account.py,sha256=7uBL8KxGdma3ZR8KQzRXG61R-inusfXHXv_6bEQK3fI,5191
21
- pulumi_newrelic/get_entity.py,sha256=gITvF4hj6uHTJ3YB2Lbgh6B4k9mwAn7sL5JnjK_lfws,17830
21
+ pulumi_newrelic/get_entity.py,sha256=vUfAe8neaQ6cbZoSab2MeO50FLDmpqvwVVysOu87rqE,12791
22
22
  pulumi_newrelic/get_group.py,sha256=pjW9nJr7tPPyi5YKev_VRyccEmQ_qGd6J8ZyWVxy33g,7783
23
23
  pulumi_newrelic/get_key_transaction.py,sha256=E9z8R6wWYQiUS7PH3UOkLcmK0OfjWH2z0eClyF0nEdk,4043
24
24
  pulumi_newrelic/get_notification_destination.py,sha256=xuZ8M317q9-z-bPWdgXpok9W-malMqAaPRQJPXJaL80,8152
@@ -41,7 +41,7 @@ pulumi_newrelic/one_dashboard_json.py,sha256=u-JceUUU1oHvQ_QT5rSy5kWw17dGR4hk_X0
41
41
  pulumi_newrelic/one_dashboard_raw.py,sha256=M9TgRdqEwEDFwJtzN2retbMG3b8aNih10hL0n0MihUY,23542
42
42
  pulumi_newrelic/outputs.py,sha256=60ET-16ARCwCRMdAp6Vpq1v1zxpxosgG3kQDAdbF9cU,487050
43
43
  pulumi_newrelic/provider.py,sha256=UIT58VArPFzjnWIR6uA-WzNzFC1AaWDSSZg9ni5BUxc,19663
44
- pulumi_newrelic/pulumi-plugin.json,sha256=tPcXLspviIIsQwWBuIJFI8Y4xTrPjavI6yHOZNd8LgU,85
44
+ pulumi_newrelic/pulumi-plugin.json,sha256=rrgyCCZd5bUqhjeivI1Dx2k_5i0yAM_5BM0a-Zd9I9M,68
45
45
  pulumi_newrelic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  pulumi_newrelic/service_level.py,sha256=HGA0UqZYKEzclHATagPnyDpvsrQodHrjvewC6EkACHc,30071
47
47
  pulumi_newrelic/user.py,sha256=kmrrs7yU396-mOZwigKQVS4iAyJHGZgevWJJkjU_CdI,18942
@@ -83,7 +83,7 @@ pulumi_newrelic/synthetics/private_location.py,sha256=Z6Pj1vjDif95ep7w4QhWu3jsQQ
83
83
  pulumi_newrelic/synthetics/script_monitor.py,sha256=Yu1R5udNIk5CSTgCV2-ywGeHGWrPfimNjXL34qQNyo8,54359
84
84
  pulumi_newrelic/synthetics/secure_credential.py,sha256=VhiFz5VYzSoyndMhYJk-aoIIoVjechXClltZUThei_8,15602
85
85
  pulumi_newrelic/synthetics/step_monitor.py,sha256=5rKhjFCAUndEzVtpuHlk-69c-X10eIpIge1TgGTnTao,50367
86
- pulumi_newrelic-5.25.1a1716913561.dist-info/METADATA,sha256=-P4Nnd8QgKmrXUC8c5-_LGqNQo7yfSSVIxz8E035NHw,3900
87
- pulumi_newrelic-5.25.1a1716913561.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
88
- pulumi_newrelic-5.25.1a1716913561.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
89
- pulumi_newrelic-5.25.1a1716913561.dist-info/RECORD,,
86
+ pulumi_newrelic-5.25.2.dist-info/METADATA,sha256=942TwqgnFz2ZtLfMPlgbpnGInXtLGyDFHdSSMPUTZMw,3889
87
+ pulumi_newrelic-5.25.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
88
+ pulumi_newrelic-5.25.2.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
89
+ pulumi_newrelic-5.25.2.dist-info/RECORD,,