pulumi-newrelic 5.21.0a1711361572__py3-none-any.whl → 5.22.0__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/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.21.0a1711361572.dist-info → pulumi_newrelic-5.22.0.dist-info}/METADATA +1 -1
- {pulumi_newrelic-5.21.0a1711361572.dist-info → pulumi_newrelic-5.22.0.dist-info}/RECORD +8 -8
- {pulumi_newrelic-5.21.0a1711361572.dist-info → pulumi_newrelic-5.22.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.21.0a1711361572.dist-info → pulumi_newrelic-5.22.0.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
|
|
@@ -23,6 +23,8 @@ class BrokenLinksMonitorArgs:
|
|
23
23
|
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
24
24
|
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
25
25
|
name: Optional[pulumi.Input[str]] = None,
|
26
|
+
runtime_type: Optional[pulumi.Input[str]] = None,
|
27
|
+
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
26
28
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]] = None):
|
27
29
|
"""
|
28
30
|
The set of arguments for constructing a BrokenLinksMonitor resource.
|
@@ -33,6 +35,10 @@ class BrokenLinksMonitorArgs:
|
|
33
35
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
34
36
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
35
37
|
:param pulumi.Input[str] name: The name for the monitor.
|
38
|
+
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
|
39
|
+
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
|
40
|
+
|
41
|
+
> **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
|
36
42
|
:param pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
|
37
43
|
"""
|
38
44
|
pulumi.set(__self__, "period", period)
|
@@ -46,6 +52,10 @@ class BrokenLinksMonitorArgs:
|
|
46
52
|
pulumi.set(__self__, "locations_publics", locations_publics)
|
47
53
|
if name is not None:
|
48
54
|
pulumi.set(__self__, "name", name)
|
55
|
+
if runtime_type is not None:
|
56
|
+
pulumi.set(__self__, "runtime_type", runtime_type)
|
57
|
+
if runtime_type_version is not None:
|
58
|
+
pulumi.set(__self__, "runtime_type_version", runtime_type_version)
|
49
59
|
if tags is not None:
|
50
60
|
pulumi.set(__self__, "tags", tags)
|
51
61
|
|
@@ -133,6 +143,32 @@ class BrokenLinksMonitorArgs:
|
|
133
143
|
def name(self, value: Optional[pulumi.Input[str]]):
|
134
144
|
pulumi.set(self, "name", value)
|
135
145
|
|
146
|
+
@property
|
147
|
+
@pulumi.getter(name="runtimeType")
|
148
|
+
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
149
|
+
"""
|
150
|
+
The runtime that the monitor will use to run jobs.
|
151
|
+
"""
|
152
|
+
return pulumi.get(self, "runtime_type")
|
153
|
+
|
154
|
+
@runtime_type.setter
|
155
|
+
def runtime_type(self, value: Optional[pulumi.Input[str]]):
|
156
|
+
pulumi.set(self, "runtime_type", value)
|
157
|
+
|
158
|
+
@property
|
159
|
+
@pulumi.getter(name="runtimeTypeVersion")
|
160
|
+
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
161
|
+
"""
|
162
|
+
The specific version of the runtime type selected.
|
163
|
+
|
164
|
+
> **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
|
165
|
+
"""
|
166
|
+
return pulumi.get(self, "runtime_type_version")
|
167
|
+
|
168
|
+
@runtime_type_version.setter
|
169
|
+
def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
|
170
|
+
pulumi.set(self, "runtime_type_version", value)
|
171
|
+
|
136
172
|
@property
|
137
173
|
@pulumi.getter
|
138
174
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]]:
|
@@ -156,6 +192,8 @@ class _BrokenLinksMonitorState:
|
|
156
192
|
name: Optional[pulumi.Input[str]] = None,
|
157
193
|
period: Optional[pulumi.Input[str]] = None,
|
158
194
|
period_in_minutes: Optional[pulumi.Input[int]] = None,
|
195
|
+
runtime_type: Optional[pulumi.Input[str]] = None,
|
196
|
+
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
159
197
|
status: Optional[pulumi.Input[str]] = None,
|
160
198
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]] = None,
|
161
199
|
uri: Optional[pulumi.Input[str]] = None):
|
@@ -168,6 +206,10 @@ class _BrokenLinksMonitorState:
|
|
168
206
|
:param pulumi.Input[str] name: The name for the monitor.
|
169
207
|
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
|
170
208
|
:param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
209
|
+
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
|
210
|
+
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
|
211
|
+
|
212
|
+
> **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
|
171
213
|
:param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
|
172
214
|
:param pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
|
173
215
|
:param pulumi.Input[str] uri: The URI the monitor runs against.
|
@@ -186,6 +228,10 @@ class _BrokenLinksMonitorState:
|
|
186
228
|
pulumi.set(__self__, "period", period)
|
187
229
|
if period_in_minutes is not None:
|
188
230
|
pulumi.set(__self__, "period_in_minutes", period_in_minutes)
|
231
|
+
if runtime_type is not None:
|
232
|
+
pulumi.set(__self__, "runtime_type", runtime_type)
|
233
|
+
if runtime_type_version is not None:
|
234
|
+
pulumi.set(__self__, "runtime_type_version", runtime_type_version)
|
189
235
|
if status is not None:
|
190
236
|
pulumi.set(__self__, "status", status)
|
191
237
|
if tags is not None:
|
@@ -277,6 +323,32 @@ class _BrokenLinksMonitorState:
|
|
277
323
|
def period_in_minutes(self, value: Optional[pulumi.Input[int]]):
|
278
324
|
pulumi.set(self, "period_in_minutes", value)
|
279
325
|
|
326
|
+
@property
|
327
|
+
@pulumi.getter(name="runtimeType")
|
328
|
+
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
329
|
+
"""
|
330
|
+
The runtime that the monitor will use to run jobs.
|
331
|
+
"""
|
332
|
+
return pulumi.get(self, "runtime_type")
|
333
|
+
|
334
|
+
@runtime_type.setter
|
335
|
+
def runtime_type(self, value: Optional[pulumi.Input[str]]):
|
336
|
+
pulumi.set(self, "runtime_type", value)
|
337
|
+
|
338
|
+
@property
|
339
|
+
@pulumi.getter(name="runtimeTypeVersion")
|
340
|
+
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
341
|
+
"""
|
342
|
+
The specific version of the runtime type selected.
|
343
|
+
|
344
|
+
> **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
|
345
|
+
"""
|
346
|
+
return pulumi.get(self, "runtime_type_version")
|
347
|
+
|
348
|
+
@runtime_type_version.setter
|
349
|
+
def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
|
350
|
+
pulumi.set(self, "runtime_type_version", value)
|
351
|
+
|
280
352
|
@property
|
281
353
|
@pulumi.getter
|
282
354
|
def status(self) -> Optional[pulumi.Input[str]]:
|
@@ -324,6 +396,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
324
396
|
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
325
397
|
name: Optional[pulumi.Input[str]] = None,
|
326
398
|
period: Optional[pulumi.Input[str]] = None,
|
399
|
+
runtime_type: Optional[pulumi.Input[str]] = None,
|
400
|
+
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
327
401
|
status: Optional[pulumi.Input[str]] = None,
|
328
402
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None,
|
329
403
|
uri: Optional[pulumi.Input[str]] = None,
|
@@ -338,9 +412,11 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
338
412
|
import pulumi
|
339
413
|
import pulumi_newrelic as newrelic
|
340
414
|
|
341
|
-
|
415
|
+
foo = newrelic.synthetics.BrokenLinksMonitor("foo",
|
342
416
|
locations_publics=["AP_SOUTH_1"],
|
343
417
|
period="EVERY_6_HOURS",
|
418
|
+
runtime_type="NODE_API",
|
419
|
+
runtime_type_version="16.10",
|
344
420
|
status="ENABLED",
|
345
421
|
tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
|
346
422
|
key="some_key",
|
@@ -364,12 +440,12 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
364
440
|
import pulumi
|
365
441
|
import pulumi_newrelic as newrelic
|
366
442
|
|
367
|
-
|
368
|
-
description="
|
443
|
+
foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
|
444
|
+
description="Sample Private Location Description",
|
369
445
|
verified_script_execution=False)
|
370
|
-
|
446
|
+
foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor",
|
371
447
|
uri="https://www.one.example.com",
|
372
|
-
locations_privates=[
|
448
|
+
locations_privates=[foo_private_location.id],
|
373
449
|
period="EVERY_6_HOURS",
|
374
450
|
status="ENABLED",
|
375
451
|
tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
|
@@ -381,7 +457,7 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
381
457
|
|
382
458
|
## Import
|
383
459
|
|
384
|
-
|
460
|
+
A broken links monitor can be imported using its GUID, using the following command.
|
385
461
|
|
386
462
|
bash
|
387
463
|
|
@@ -396,6 +472,10 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
396
472
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
397
473
|
:param pulumi.Input[str] name: The name for the monitor.
|
398
474
|
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
|
475
|
+
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
|
476
|
+
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
|
477
|
+
|
478
|
+
> **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
|
399
479
|
:param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
|
400
480
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
|
401
481
|
:param pulumi.Input[str] uri: The URI the monitor runs against.
|
@@ -416,9 +496,11 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
416
496
|
import pulumi
|
417
497
|
import pulumi_newrelic as newrelic
|
418
498
|
|
419
|
-
|
499
|
+
foo = newrelic.synthetics.BrokenLinksMonitor("foo",
|
420
500
|
locations_publics=["AP_SOUTH_1"],
|
421
501
|
period="EVERY_6_HOURS",
|
502
|
+
runtime_type="NODE_API",
|
503
|
+
runtime_type_version="16.10",
|
422
504
|
status="ENABLED",
|
423
505
|
tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
|
424
506
|
key="some_key",
|
@@ -442,12 +524,12 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
442
524
|
import pulumi
|
443
525
|
import pulumi_newrelic as newrelic
|
444
526
|
|
445
|
-
|
446
|
-
description="
|
527
|
+
foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
|
528
|
+
description="Sample Private Location Description",
|
447
529
|
verified_script_execution=False)
|
448
|
-
|
530
|
+
foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor",
|
449
531
|
uri="https://www.one.example.com",
|
450
|
-
locations_privates=[
|
532
|
+
locations_privates=[foo_private_location.id],
|
451
533
|
period="EVERY_6_HOURS",
|
452
534
|
status="ENABLED",
|
453
535
|
tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
|
@@ -459,7 +541,7 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
459
541
|
|
460
542
|
## Import
|
461
543
|
|
462
|
-
|
544
|
+
A broken links monitor can be imported using its GUID, using the following command.
|
463
545
|
|
464
546
|
bash
|
465
547
|
|
@@ -487,6 +569,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
487
569
|
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
488
570
|
name: Optional[pulumi.Input[str]] = None,
|
489
571
|
period: Optional[pulumi.Input[str]] = None,
|
572
|
+
runtime_type: Optional[pulumi.Input[str]] = None,
|
573
|
+
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
490
574
|
status: Optional[pulumi.Input[str]] = None,
|
491
575
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None,
|
492
576
|
uri: Optional[pulumi.Input[str]] = None,
|
@@ -506,6 +590,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
506
590
|
if period is None and not opts.urn:
|
507
591
|
raise TypeError("Missing required property 'period'")
|
508
592
|
__props__.__dict__["period"] = period
|
593
|
+
__props__.__dict__["runtime_type"] = runtime_type
|
594
|
+
__props__.__dict__["runtime_type_version"] = runtime_type_version
|
509
595
|
if status is None and not opts.urn:
|
510
596
|
raise TypeError("Missing required property 'status'")
|
511
597
|
__props__.__dict__["status"] = status
|
@@ -532,6 +618,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
532
618
|
name: Optional[pulumi.Input[str]] = None,
|
533
619
|
period: Optional[pulumi.Input[str]] = None,
|
534
620
|
period_in_minutes: Optional[pulumi.Input[int]] = None,
|
621
|
+
runtime_type: Optional[pulumi.Input[str]] = None,
|
622
|
+
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
535
623
|
status: Optional[pulumi.Input[str]] = None,
|
536
624
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None,
|
537
625
|
uri: Optional[pulumi.Input[str]] = None) -> 'BrokenLinksMonitor':
|
@@ -549,6 +637,10 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
549
637
|
:param pulumi.Input[str] name: The name for the monitor.
|
550
638
|
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
|
551
639
|
:param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
640
|
+
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
|
641
|
+
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
|
642
|
+
|
643
|
+
> **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
|
552
644
|
:param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
|
553
645
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
|
554
646
|
:param pulumi.Input[str] uri: The URI the monitor runs against.
|
@@ -564,6 +656,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
564
656
|
__props__.__dict__["name"] = name
|
565
657
|
__props__.__dict__["period"] = period
|
566
658
|
__props__.__dict__["period_in_minutes"] = period_in_minutes
|
659
|
+
__props__.__dict__["runtime_type"] = runtime_type
|
660
|
+
__props__.__dict__["runtime_type_version"] = runtime_type_version
|
567
661
|
__props__.__dict__["status"] = status
|
568
662
|
__props__.__dict__["tags"] = tags
|
569
663
|
__props__.__dict__["uri"] = uri
|
@@ -625,6 +719,24 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
625
719
|
"""
|
626
720
|
return pulumi.get(self, "period_in_minutes")
|
627
721
|
|
722
|
+
@property
|
723
|
+
@pulumi.getter(name="runtimeType")
|
724
|
+
def runtime_type(self) -> pulumi.Output[Optional[str]]:
|
725
|
+
"""
|
726
|
+
The runtime that the monitor will use to run jobs.
|
727
|
+
"""
|
728
|
+
return pulumi.get(self, "runtime_type")
|
729
|
+
|
730
|
+
@property
|
731
|
+
@pulumi.getter(name="runtimeTypeVersion")
|
732
|
+
def runtime_type_version(self) -> pulumi.Output[Optional[str]]:
|
733
|
+
"""
|
734
|
+
The specific version of the runtime type selected.
|
735
|
+
|
736
|
+
> **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
|
737
|
+
"""
|
738
|
+
return pulumi.get(self, "runtime_type_version")
|
739
|
+
|
628
740
|
@property
|
629
741
|
@pulumi.getter
|
630
742
|
def status(self) -> pulumi.Output[str]:
|