pulumi-newrelic 5.22.0a1711519579__py3-none-any.whl → 5.22.1__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.
- pulumi_newrelic/browser_application.py +62 -68
- pulumi_newrelic/get_entity.py +20 -1
- pulumi_newrelic/synthetics/broken_links_monitor.py +124 -12
- pulumi_newrelic/synthetics/cert_check_monitor.py +128 -14
- pulumi_newrelic/synthetics/step_monitor.py +182 -4
- {pulumi_newrelic-5.22.0a1711519579.dist-info → pulumi_newrelic-5.22.1.dist-info}/METADATA +1 -1
- {pulumi_newrelic-5.22.0a1711519579.dist-info → pulumi_newrelic-5.22.1.dist-info}/RECORD +9 -9
- {pulumi_newrelic-5.22.0a1711519579.dist-info → pulumi_newrelic-5.22.1.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.22.0a1711519579.dist-info → pulumi_newrelic-5.22.1.dist-info}/top_level.txt +0 -0
@@ -21,10 +21,10 @@ class BrowserApplicationArgs:
|
|
21
21
|
name: Optional[pulumi.Input[str]] = None):
|
22
22
|
"""
|
23
23
|
The set of arguments for constructing a BrowserApplication resource.
|
24
|
-
:param pulumi.Input[int] account_id: The
|
25
|
-
:param pulumi.Input[bool] cookies_enabled:
|
26
|
-
:param pulumi.Input[bool] distributed_tracing_enabled:
|
27
|
-
:param pulumi.Input[str] loader_type: Determines
|
24
|
+
:param pulumi.Input[int] account_id: The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.
|
25
|
+
:param pulumi.Input[bool] cookies_enabled: Configures cookies. Defaults to `true`, if not specified.
|
26
|
+
:param pulumi.Input[bool] distributed_tracing_enabled: Configures distributed tracing in browser apps. Defaults to `true`, if not specified.
|
27
|
+
:param pulumi.Input[str] loader_type: Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.
|
28
28
|
:param pulumi.Input[str] name: The name of the browser application.
|
29
29
|
"""
|
30
30
|
if account_id is not None:
|
@@ -42,7 +42,7 @@ class BrowserApplicationArgs:
|
|
42
42
|
@pulumi.getter(name="accountId")
|
43
43
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
44
44
|
"""
|
45
|
-
The
|
45
|
+
The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.
|
46
46
|
"""
|
47
47
|
return pulumi.get(self, "account_id")
|
48
48
|
|
@@ -54,7 +54,7 @@ class BrowserApplicationArgs:
|
|
54
54
|
@pulumi.getter(name="cookiesEnabled")
|
55
55
|
def cookies_enabled(self) -> Optional[pulumi.Input[bool]]:
|
56
56
|
"""
|
57
|
-
|
57
|
+
Configures cookies. Defaults to `true`, if not specified.
|
58
58
|
"""
|
59
59
|
return pulumi.get(self, "cookies_enabled")
|
60
60
|
|
@@ -66,7 +66,7 @@ class BrowserApplicationArgs:
|
|
66
66
|
@pulumi.getter(name="distributedTracingEnabled")
|
67
67
|
def distributed_tracing_enabled(self) -> Optional[pulumi.Input[bool]]:
|
68
68
|
"""
|
69
|
-
|
69
|
+
Configures distributed tracing in browser apps. Defaults to `true`, if not specified.
|
70
70
|
"""
|
71
71
|
return pulumi.get(self, "distributed_tracing_enabled")
|
72
72
|
|
@@ -78,7 +78,7 @@ class BrowserApplicationArgs:
|
|
78
78
|
@pulumi.getter(name="loaderType")
|
79
79
|
def loader_type(self) -> Optional[pulumi.Input[str]]:
|
80
80
|
"""
|
81
|
-
Determines
|
81
|
+
Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.
|
82
82
|
"""
|
83
83
|
return pulumi.get(self, "loader_type")
|
84
84
|
|
@@ -103,6 +103,7 @@ class BrowserApplicationArgs:
|
|
103
103
|
class _BrowserApplicationState:
|
104
104
|
def __init__(__self__, *,
|
105
105
|
account_id: Optional[pulumi.Input[int]] = None,
|
106
|
+
application_id: Optional[pulumi.Input[str]] = None,
|
106
107
|
cookies_enabled: Optional[pulumi.Input[bool]] = None,
|
107
108
|
distributed_tracing_enabled: Optional[pulumi.Input[bool]] = None,
|
108
109
|
guid: Optional[pulumi.Input[str]] = None,
|
@@ -111,16 +112,19 @@ class _BrowserApplicationState:
|
|
111
112
|
name: Optional[pulumi.Input[str]] = None):
|
112
113
|
"""
|
113
114
|
Input properties used for looking up and filtering BrowserApplication resources.
|
114
|
-
:param pulumi.Input[int] account_id: The
|
115
|
-
:param pulumi.Input[
|
116
|
-
:param pulumi.Input[bool]
|
115
|
+
:param pulumi.Input[int] account_id: The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.
|
116
|
+
:param pulumi.Input[str] application_id: The application ID of the browser application (not to be confused with GUID).
|
117
|
+
:param pulumi.Input[bool] cookies_enabled: Configures cookies. Defaults to `true`, if not specified.
|
118
|
+
:param pulumi.Input[bool] distributed_tracing_enabled: Configures distributed tracing in browser apps. Defaults to `true`, if not specified.
|
117
119
|
:param pulumi.Input[str] guid: The GUID of the browser application.
|
118
|
-
:param pulumi.Input[str] js_config: JavaScript configuration of the browser application encoded into a string.
|
119
|
-
:param pulumi.Input[str] loader_type: Determines
|
120
|
+
:param pulumi.Input[str] js_config: The JavaScript configuration of the browser application, encoded into a string.
|
121
|
+
:param pulumi.Input[str] loader_type: Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.
|
120
122
|
:param pulumi.Input[str] name: The name of the browser application.
|
121
123
|
"""
|
122
124
|
if account_id is not None:
|
123
125
|
pulumi.set(__self__, "account_id", account_id)
|
126
|
+
if application_id is not None:
|
127
|
+
pulumi.set(__self__, "application_id", application_id)
|
124
128
|
if cookies_enabled is not None:
|
125
129
|
pulumi.set(__self__, "cookies_enabled", cookies_enabled)
|
126
130
|
if distributed_tracing_enabled is not None:
|
@@ -138,7 +142,7 @@ class _BrowserApplicationState:
|
|
138
142
|
@pulumi.getter(name="accountId")
|
139
143
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
140
144
|
"""
|
141
|
-
The
|
145
|
+
The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.
|
142
146
|
"""
|
143
147
|
return pulumi.get(self, "account_id")
|
144
148
|
|
@@ -146,11 +150,23 @@ class _BrowserApplicationState:
|
|
146
150
|
def account_id(self, value: Optional[pulumi.Input[int]]):
|
147
151
|
pulumi.set(self, "account_id", value)
|
148
152
|
|
153
|
+
@property
|
154
|
+
@pulumi.getter(name="applicationId")
|
155
|
+
def application_id(self) -> Optional[pulumi.Input[str]]:
|
156
|
+
"""
|
157
|
+
The application ID of the browser application (not to be confused with GUID).
|
158
|
+
"""
|
159
|
+
return pulumi.get(self, "application_id")
|
160
|
+
|
161
|
+
@application_id.setter
|
162
|
+
def application_id(self, value: Optional[pulumi.Input[str]]):
|
163
|
+
pulumi.set(self, "application_id", value)
|
164
|
+
|
149
165
|
@property
|
150
166
|
@pulumi.getter(name="cookiesEnabled")
|
151
167
|
def cookies_enabled(self) -> Optional[pulumi.Input[bool]]:
|
152
168
|
"""
|
153
|
-
|
169
|
+
Configures cookies. Defaults to `true`, if not specified.
|
154
170
|
"""
|
155
171
|
return pulumi.get(self, "cookies_enabled")
|
156
172
|
|
@@ -162,7 +178,7 @@ class _BrowserApplicationState:
|
|
162
178
|
@pulumi.getter(name="distributedTracingEnabled")
|
163
179
|
def distributed_tracing_enabled(self) -> Optional[pulumi.Input[bool]]:
|
164
180
|
"""
|
165
|
-
|
181
|
+
Configures distributed tracing in browser apps. Defaults to `true`, if not specified.
|
166
182
|
"""
|
167
183
|
return pulumi.get(self, "distributed_tracing_enabled")
|
168
184
|
|
@@ -186,7 +202,7 @@ class _BrowserApplicationState:
|
|
186
202
|
@pulumi.getter(name="jsConfig")
|
187
203
|
def js_config(self) -> Optional[pulumi.Input[str]]:
|
188
204
|
"""
|
189
|
-
JavaScript configuration of the browser application encoded into a string.
|
205
|
+
The JavaScript configuration of the browser application, encoded into a string.
|
190
206
|
"""
|
191
207
|
return pulumi.get(self, "js_config")
|
192
208
|
|
@@ -198,7 +214,7 @@ class _BrowserApplicationState:
|
|
198
214
|
@pulumi.getter(name="loaderType")
|
199
215
|
def loader_type(self) -> Optional[pulumi.Input[str]]:
|
200
216
|
"""
|
201
|
-
Determines
|
217
|
+
Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.
|
202
218
|
"""
|
203
219
|
return pulumi.get(self, "loader_type")
|
204
220
|
|
@@ -231,26 +247,9 @@ class BrowserApplication(pulumi.CustomResource):
|
|
231
247
|
name: Optional[pulumi.Input[str]] = None,
|
232
248
|
__props__=None):
|
233
249
|
"""
|
234
|
-
Use this resource to create, update, and delete a standalone New Relic browser application.
|
235
|
-
|
236
|
-
## Example Usage
|
237
|
-
|
238
|
-
Basic usage to create a standalone browser application.
|
239
|
-
<!--Start PulumiCodeChooser -->
|
240
|
-
```python
|
241
|
-
import pulumi
|
242
|
-
import pulumi_newrelic as newrelic
|
243
|
-
|
244
|
-
foo = newrelic.BrowserApplication("foo",
|
245
|
-
cookies_enabled=True,
|
246
|
-
distributed_tracing_enabled=True,
|
247
|
-
loader_type="SPA")
|
248
|
-
```
|
249
|
-
<!--End PulumiCodeChooser -->
|
250
|
-
|
251
250
|
## Import
|
252
251
|
|
253
|
-
|
252
|
+
A browser application can be imported using its GUID, i.e.
|
254
253
|
|
255
254
|
bash
|
256
255
|
|
@@ -260,10 +259,10 @@ class BrowserApplication(pulumi.CustomResource):
|
|
260
259
|
|
261
260
|
:param str resource_name: The name of the resource.
|
262
261
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
263
|
-
:param pulumi.Input[int] account_id: The
|
264
|
-
:param pulumi.Input[bool] cookies_enabled:
|
265
|
-
:param pulumi.Input[bool] distributed_tracing_enabled:
|
266
|
-
:param pulumi.Input[str] loader_type: Determines
|
262
|
+
:param pulumi.Input[int] account_id: The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.
|
263
|
+
:param pulumi.Input[bool] cookies_enabled: Configures cookies. Defaults to `true`, if not specified.
|
264
|
+
:param pulumi.Input[bool] distributed_tracing_enabled: Configures distributed tracing in browser apps. Defaults to `true`, if not specified.
|
265
|
+
:param pulumi.Input[str] loader_type: Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.
|
267
266
|
:param pulumi.Input[str] name: The name of the browser application.
|
268
267
|
"""
|
269
268
|
...
|
@@ -273,26 +272,9 @@ class BrowserApplication(pulumi.CustomResource):
|
|
273
272
|
args: Optional[BrowserApplicationArgs] = None,
|
274
273
|
opts: Optional[pulumi.ResourceOptions] = None):
|
275
274
|
"""
|
276
|
-
Use this resource to create, update, and delete a standalone New Relic browser application.
|
277
|
-
|
278
|
-
## Example Usage
|
279
|
-
|
280
|
-
Basic usage to create a standalone browser application.
|
281
|
-
<!--Start PulumiCodeChooser -->
|
282
|
-
```python
|
283
|
-
import pulumi
|
284
|
-
import pulumi_newrelic as newrelic
|
285
|
-
|
286
|
-
foo = newrelic.BrowserApplication("foo",
|
287
|
-
cookies_enabled=True,
|
288
|
-
distributed_tracing_enabled=True,
|
289
|
-
loader_type="SPA")
|
290
|
-
```
|
291
|
-
<!--End PulumiCodeChooser -->
|
292
|
-
|
293
275
|
## Import
|
294
276
|
|
295
|
-
|
277
|
+
A browser application can be imported using its GUID, i.e.
|
296
278
|
|
297
279
|
bash
|
298
280
|
|
@@ -334,6 +316,7 @@ class BrowserApplication(pulumi.CustomResource):
|
|
334
316
|
__props__.__dict__["distributed_tracing_enabled"] = distributed_tracing_enabled
|
335
317
|
__props__.__dict__["loader_type"] = loader_type
|
336
318
|
__props__.__dict__["name"] = name
|
319
|
+
__props__.__dict__["application_id"] = None
|
337
320
|
__props__.__dict__["guid"] = None
|
338
321
|
__props__.__dict__["js_config"] = None
|
339
322
|
super(BrowserApplication, __self__).__init__(
|
@@ -347,6 +330,7 @@ class BrowserApplication(pulumi.CustomResource):
|
|
347
330
|
id: pulumi.Input[str],
|
348
331
|
opts: Optional[pulumi.ResourceOptions] = None,
|
349
332
|
account_id: Optional[pulumi.Input[int]] = None,
|
333
|
+
application_id: Optional[pulumi.Input[str]] = None,
|
350
334
|
cookies_enabled: Optional[pulumi.Input[bool]] = None,
|
351
335
|
distributed_tracing_enabled: Optional[pulumi.Input[bool]] = None,
|
352
336
|
guid: Optional[pulumi.Input[str]] = None,
|
@@ -360,12 +344,13 @@ class BrowserApplication(pulumi.CustomResource):
|
|
360
344
|
:param str resource_name: The unique name of the resulting resource.
|
361
345
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
362
346
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
363
|
-
:param pulumi.Input[int] account_id: The
|
364
|
-
:param pulumi.Input[
|
365
|
-
:param pulumi.Input[bool]
|
347
|
+
:param pulumi.Input[int] account_id: The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.
|
348
|
+
:param pulumi.Input[str] application_id: The application ID of the browser application (not to be confused with GUID).
|
349
|
+
:param pulumi.Input[bool] cookies_enabled: Configures cookies. Defaults to `true`, if not specified.
|
350
|
+
:param pulumi.Input[bool] distributed_tracing_enabled: Configures distributed tracing in browser apps. Defaults to `true`, if not specified.
|
366
351
|
:param pulumi.Input[str] guid: The GUID of the browser application.
|
367
|
-
:param pulumi.Input[str] js_config: JavaScript configuration of the browser application encoded into a string.
|
368
|
-
:param pulumi.Input[str] loader_type: Determines
|
352
|
+
:param pulumi.Input[str] js_config: The JavaScript configuration of the browser application, encoded into a string.
|
353
|
+
:param pulumi.Input[str] loader_type: Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.
|
369
354
|
:param pulumi.Input[str] name: The name of the browser application.
|
370
355
|
"""
|
371
356
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -373,6 +358,7 @@ class BrowserApplication(pulumi.CustomResource):
|
|
373
358
|
__props__ = _BrowserApplicationState.__new__(_BrowserApplicationState)
|
374
359
|
|
375
360
|
__props__.__dict__["account_id"] = account_id
|
361
|
+
__props__.__dict__["application_id"] = application_id
|
376
362
|
__props__.__dict__["cookies_enabled"] = cookies_enabled
|
377
363
|
__props__.__dict__["distributed_tracing_enabled"] = distributed_tracing_enabled
|
378
364
|
__props__.__dict__["guid"] = guid
|
@@ -385,15 +371,23 @@ class BrowserApplication(pulumi.CustomResource):
|
|
385
371
|
@pulumi.getter(name="accountId")
|
386
372
|
def account_id(self) -> pulumi.Output[int]:
|
387
373
|
"""
|
388
|
-
The
|
374
|
+
The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.
|
389
375
|
"""
|
390
376
|
return pulumi.get(self, "account_id")
|
391
377
|
|
378
|
+
@property
|
379
|
+
@pulumi.getter(name="applicationId")
|
380
|
+
def application_id(self) -> pulumi.Output[str]:
|
381
|
+
"""
|
382
|
+
The application ID of the browser application (not to be confused with GUID).
|
383
|
+
"""
|
384
|
+
return pulumi.get(self, "application_id")
|
385
|
+
|
392
386
|
@property
|
393
387
|
@pulumi.getter(name="cookiesEnabled")
|
394
388
|
def cookies_enabled(self) -> pulumi.Output[Optional[bool]]:
|
395
389
|
"""
|
396
|
-
|
390
|
+
Configures cookies. Defaults to `true`, if not specified.
|
397
391
|
"""
|
398
392
|
return pulumi.get(self, "cookies_enabled")
|
399
393
|
|
@@ -401,7 +395,7 @@ class BrowserApplication(pulumi.CustomResource):
|
|
401
395
|
@pulumi.getter(name="distributedTracingEnabled")
|
402
396
|
def distributed_tracing_enabled(self) -> pulumi.Output[Optional[bool]]:
|
403
397
|
"""
|
404
|
-
|
398
|
+
Configures distributed tracing in browser apps. Defaults to `true`, if not specified.
|
405
399
|
"""
|
406
400
|
return pulumi.get(self, "distributed_tracing_enabled")
|
407
401
|
|
@@ -417,7 +411,7 @@ class BrowserApplication(pulumi.CustomResource):
|
|
417
411
|
@pulumi.getter(name="jsConfig")
|
418
412
|
def js_config(self) -> pulumi.Output[str]:
|
419
413
|
"""
|
420
|
-
JavaScript configuration of the browser application encoded into a string.
|
414
|
+
The JavaScript configuration of the browser application, encoded into a string.
|
421
415
|
"""
|
422
416
|
return pulumi.get(self, "js_config")
|
423
417
|
|
@@ -425,7 +419,7 @@ class BrowserApplication(pulumi.CustomResource):
|
|
425
419
|
@pulumi.getter(name="loaderType")
|
426
420
|
def loader_type(self) -> pulumi.Output[Optional[str]]:
|
427
421
|
"""
|
428
|
-
Determines
|
422
|
+
Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.
|
429
423
|
"""
|
430
424
|
return pulumi.get(self, "loader_type")
|
431
425
|
|
pulumi_newrelic/get_entity.py
CHANGED
@@ -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.
|