pulumi-newrelic 5.44.0a1743218959__py3-none-any.whl → 5.44.1a1744688145__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/__init__.py +1 -0
- pulumi_newrelic/_inputs.py +2961 -2960
- pulumi_newrelic/account_management.py +29 -28
- pulumi_newrelic/alert_channel.py +43 -42
- pulumi_newrelic/alert_condition.py +176 -175
- pulumi_newrelic/alert_muting_rule.py +71 -70
- pulumi_newrelic/alert_policy.py +57 -56
- pulumi_newrelic/alert_policy_channel.py +43 -42
- pulumi_newrelic/api_access_key.py +92 -91
- pulumi_newrelic/browser_application.py +92 -91
- pulumi_newrelic/cloud/__init__.py +1 -0
- pulumi_newrelic/cloud/_inputs.py +1765 -1764
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +29 -28
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +57 -56
- pulumi_newrelic/cloud/aws_integrations.py +29 -28
- pulumi_newrelic/cloud/aws_link_account.py +57 -56
- pulumi_newrelic/cloud/azure_integrations.py +29 -28
- pulumi_newrelic/cloud/azure_link_account.py +85 -84
- pulumi_newrelic/cloud/gcp_integrations.py +29 -28
- pulumi_newrelic/cloud/gcp_link_account.py +45 -44
- pulumi_newrelic/cloud/outputs.py +1057 -1056
- pulumi_newrelic/config/__init__.py +1 -0
- pulumi_newrelic/config/__init__.pyi +1 -0
- pulumi_newrelic/config/vars.py +1 -0
- pulumi_newrelic/data_partition_rule.py +92 -91
- pulumi_newrelic/entity_tags.py +15 -14
- pulumi_newrelic/events_to_metrics_rule.py +78 -77
- pulumi_newrelic/get_account.py +17 -16
- pulumi_newrelic/get_alert_channel.py +14 -13
- pulumi_newrelic/get_alert_policy.py +19 -18
- pulumi_newrelic/get_application.py +9 -8
- pulumi_newrelic/get_authentication_domain.py +7 -6
- pulumi_newrelic/get_cloud_account.py +17 -16
- pulumi_newrelic/get_entity.py +40 -39
- pulumi_newrelic/get_group.py +13 -12
- pulumi_newrelic/get_key_transaction.py +19 -18
- pulumi_newrelic/get_notification_destination.py +20 -19
- pulumi_newrelic/get_obfuscation_expression.py +12 -11
- pulumi_newrelic/get_service_level_alert_helper.py +41 -40
- pulumi_newrelic/get_test_grok_pattern.py +17 -16
- pulumi_newrelic/get_user.py +17 -16
- pulumi_newrelic/group.py +43 -42
- pulumi_newrelic/infra_alert_condition.py +204 -203
- pulumi_newrelic/insights/__init__.py +1 -0
- pulumi_newrelic/insights/_inputs.py +26 -25
- pulumi_newrelic/insights/event.py +1 -0
- pulumi_newrelic/insights/outputs.py +16 -15
- pulumi_newrelic/key_transaction.py +85 -84
- pulumi_newrelic/log_parsing_rule.py +120 -119
- pulumi_newrelic/monitor_downtime.py +113 -112
- pulumi_newrelic/notification_channel.py +92 -91
- pulumi_newrelic/notification_destination.py +78 -77
- pulumi_newrelic/nrql_alert_condition.py +330 -329
- pulumi_newrelic/nrql_drop_rule.py +64 -63
- pulumi_newrelic/obfuscation_expression.py +57 -56
- pulumi_newrelic/obfuscation_rule.py +71 -70
- pulumi_newrelic/one_dashboard.py +71 -70
- pulumi_newrelic/one_dashboard_json.py +50 -49
- pulumi_newrelic/one_dashboard_raw.py +71 -70
- pulumi_newrelic/outputs.py +1831 -1830
- pulumi_newrelic/plugins/__init__.py +1 -0
- pulumi_newrelic/plugins/_inputs.py +126 -125
- pulumi_newrelic/plugins/application_settings.py +132 -131
- pulumi_newrelic/plugins/outputs.py +76 -75
- pulumi_newrelic/plugins/workload.py +99 -98
- pulumi_newrelic/provider.py +80 -79
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +57 -56
- pulumi_newrelic/synthetics/__init__.py +1 -0
- pulumi_newrelic/synthetics/_inputs.py +106 -105
- pulumi_newrelic/synthetics/alert_condition.py +78 -77
- pulumi_newrelic/synthetics/broken_links_monitor.py +179 -150
- pulumi_newrelic/synthetics/cert_check_monitor.py +186 -157
- pulumi_newrelic/synthetics/get_private_location.py +17 -16
- pulumi_newrelic/synthetics/get_secure_credential.py +14 -13
- pulumi_newrelic/synthetics/monitor.py +326 -297
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +92 -91
- pulumi_newrelic/synthetics/outputs.py +64 -63
- pulumi_newrelic/synthetics/private_location.py +85 -84
- pulumi_newrelic/synthetics/script_monitor.py +263 -234
- pulumi_newrelic/synthetics/secure_credential.py +71 -70
- pulumi_newrelic/synthetics/step_monitor.py +193 -164
- pulumi_newrelic/user.py +57 -56
- pulumi_newrelic/workflow.py +106 -105
- {pulumi_newrelic-5.44.0a1743218959.dist-info → pulumi_newrelic-5.44.1a1744688145.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.44.1a1744688145.dist-info/RECORD +90 -0
- pulumi_newrelic-5.44.0a1743218959.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.44.0a1743218959.dist-info → pulumi_newrelic-5.44.1a1744688145.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.44.0a1743218959.dist-info → pulumi_newrelic-5.44.1a1744688145.dist-info}/top_level.txt +0 -0
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -21,42 +22,42 @@ __all__ = ['ScriptMonitorArgs', 'ScriptMonitor']
|
|
21
22
|
@pulumi.input_type
|
22
23
|
class ScriptMonitorArgs:
|
23
24
|
def __init__(__self__, *,
|
24
|
-
period: pulumi.Input[str],
|
25
|
-
status: pulumi.Input[str],
|
26
|
-
type: pulumi.Input[str],
|
27
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
28
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
29
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
30
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
31
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
32
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
25
|
+
period: pulumi.Input[builtins.str],
|
26
|
+
status: pulumi.Input[builtins.str],
|
27
|
+
type: pulumi.Input[builtins.str],
|
28
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
29
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
30
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
31
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
32
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
33
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
33
34
|
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]]] = None,
|
34
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
35
|
-
name: Optional[pulumi.Input[str]] = None,
|
36
|
-
runtime_type: Optional[pulumi.Input[str]] = None,
|
37
|
-
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
38
|
-
script: Optional[pulumi.Input[str]] = None,
|
39
|
-
script_language: Optional[pulumi.Input[str]] = None,
|
35
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
36
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
37
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
38
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
39
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
40
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
40
41
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]]] = None,
|
41
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None):
|
42
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None):
|
42
43
|
"""
|
43
44
|
The set of arguments for constructing a ScriptMonitor resource.
|
44
|
-
: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`.
|
45
|
-
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
46
|
-
:param pulumi.Input[str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
47
|
-
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
48
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
49
|
-
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
50
|
-
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
51
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
52
|
-
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
45
|
+
:param pulumi.Input[builtins.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`.
|
46
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
47
|
+
:param pulumi.Input[builtins.str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
48
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
49
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
50
|
+
:param pulumi.Input[builtins.str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
51
|
+
:param pulumi.Input[builtins.str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
52
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
53
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
53
54
|
:param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
54
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
55
|
-
:param pulumi.Input[str] name: The name for the monitor.
|
56
|
-
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
57
|
-
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
58
|
-
:param pulumi.Input[str] script: The script that the monitor runs.
|
59
|
-
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
55
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
56
|
+
:param pulumi.Input[builtins.str] name: The name for the monitor.
|
57
|
+
:param pulumi.Input[builtins.str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
58
|
+
:param pulumi.Input[builtins.str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
59
|
+
:param pulumi.Input[builtins.str] script: The script that the monitor runs.
|
60
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
60
61
|
:param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
61
62
|
|
62
63
|
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
@@ -97,110 +98,110 @@ class ScriptMonitorArgs:
|
|
97
98
|
|
98
99
|
@property
|
99
100
|
@pulumi.getter
|
100
|
-
def period(self) -> pulumi.Input[str]:
|
101
|
+
def period(self) -> pulumi.Input[builtins.str]:
|
101
102
|
"""
|
102
103
|
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`.
|
103
104
|
"""
|
104
105
|
return pulumi.get(self, "period")
|
105
106
|
|
106
107
|
@period.setter
|
107
|
-
def period(self, value: pulumi.Input[str]):
|
108
|
+
def period(self, value: pulumi.Input[builtins.str]):
|
108
109
|
pulumi.set(self, "period", value)
|
109
110
|
|
110
111
|
@property
|
111
112
|
@pulumi.getter
|
112
|
-
def status(self) -> pulumi.Input[str]:
|
113
|
+
def status(self) -> pulumi.Input[builtins.str]:
|
113
114
|
"""
|
114
115
|
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
115
116
|
"""
|
116
117
|
return pulumi.get(self, "status")
|
117
118
|
|
118
119
|
@status.setter
|
119
|
-
def status(self, value: pulumi.Input[str]):
|
120
|
+
def status(self, value: pulumi.Input[builtins.str]):
|
120
121
|
pulumi.set(self, "status", value)
|
121
122
|
|
122
123
|
@property
|
123
124
|
@pulumi.getter
|
124
|
-
def type(self) -> pulumi.Input[str]:
|
125
|
+
def type(self) -> pulumi.Input[builtins.str]:
|
125
126
|
"""
|
126
127
|
The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
127
128
|
"""
|
128
129
|
return pulumi.get(self, "type")
|
129
130
|
|
130
131
|
@type.setter
|
131
|
-
def type(self, value: pulumi.Input[str]):
|
132
|
+
def type(self, value: pulumi.Input[builtins.str]):
|
132
133
|
pulumi.set(self, "type", value)
|
133
134
|
|
134
135
|
@property
|
135
136
|
@pulumi.getter(name="accountId")
|
136
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
137
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
137
138
|
"""
|
138
139
|
The account in which the Synthetics monitor will be created.
|
139
140
|
"""
|
140
141
|
return pulumi.get(self, "account_id")
|
141
142
|
|
142
143
|
@account_id.setter
|
143
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
144
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
144
145
|
pulumi.set(self, "account_id", value)
|
145
146
|
|
146
147
|
@property
|
147
148
|
@pulumi.getter
|
148
|
-
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
149
|
+
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
149
150
|
"""
|
150
151
|
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
151
152
|
"""
|
152
153
|
return pulumi.get(self, "browsers")
|
153
154
|
|
154
155
|
@browsers.setter
|
155
|
-
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
156
|
+
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
156
157
|
pulumi.set(self, "browsers", value)
|
157
158
|
|
158
159
|
@property
|
159
160
|
@pulumi.getter(name="deviceOrientation")
|
160
|
-
def device_orientation(self) -> Optional[pulumi.Input[str]]:
|
161
|
+
def device_orientation(self) -> Optional[pulumi.Input[builtins.str]]:
|
161
162
|
"""
|
162
163
|
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
163
164
|
"""
|
164
165
|
return pulumi.get(self, "device_orientation")
|
165
166
|
|
166
167
|
@device_orientation.setter
|
167
|
-
def device_orientation(self, value: Optional[pulumi.Input[str]]):
|
168
|
+
def device_orientation(self, value: Optional[pulumi.Input[builtins.str]]):
|
168
169
|
pulumi.set(self, "device_orientation", value)
|
169
170
|
|
170
171
|
@property
|
171
172
|
@pulumi.getter(name="deviceType")
|
172
|
-
def device_type(self) -> Optional[pulumi.Input[str]]:
|
173
|
+
def device_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
173
174
|
"""
|
174
175
|
Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
175
176
|
"""
|
176
177
|
return pulumi.get(self, "device_type")
|
177
178
|
|
178
179
|
@device_type.setter
|
179
|
-
def device_type(self, value: Optional[pulumi.Input[str]]):
|
180
|
+
def device_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
180
181
|
pulumi.set(self, "device_type", value)
|
181
182
|
|
182
183
|
@property
|
183
184
|
@pulumi.getter
|
184
|
-
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
185
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
185
186
|
"""
|
186
187
|
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
187
188
|
"""
|
188
189
|
return pulumi.get(self, "devices")
|
189
190
|
|
190
191
|
@devices.setter
|
191
|
-
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
192
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
192
193
|
pulumi.set(self, "devices", value)
|
193
194
|
|
194
195
|
@property
|
195
196
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
196
|
-
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[bool]]:
|
197
|
+
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[builtins.bool]]:
|
197
198
|
"""
|
198
199
|
Capture a screenshot during job execution.
|
199
200
|
"""
|
200
201
|
return pulumi.get(self, "enable_screenshot_on_failure_and_script")
|
201
202
|
|
202
203
|
@enable_screenshot_on_failure_and_script.setter
|
203
|
-
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[bool]]):
|
204
|
+
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[builtins.bool]]):
|
204
205
|
pulumi.set(self, "enable_screenshot_on_failure_and_script", value)
|
205
206
|
|
206
207
|
@property
|
@@ -217,74 +218,74 @@ class ScriptMonitorArgs:
|
|
217
218
|
|
218
219
|
@property
|
219
220
|
@pulumi.getter(name="locationsPublics")
|
220
|
-
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
221
|
+
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
221
222
|
"""
|
222
223
|
The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
223
224
|
"""
|
224
225
|
return pulumi.get(self, "locations_publics")
|
225
226
|
|
226
227
|
@locations_publics.setter
|
227
|
-
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
228
|
+
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
228
229
|
pulumi.set(self, "locations_publics", value)
|
229
230
|
|
230
231
|
@property
|
231
232
|
@pulumi.getter
|
232
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
233
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
233
234
|
"""
|
234
235
|
The name for the monitor.
|
235
236
|
"""
|
236
237
|
return pulumi.get(self, "name")
|
237
238
|
|
238
239
|
@name.setter
|
239
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
240
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
240
241
|
pulumi.set(self, "name", value)
|
241
242
|
|
242
243
|
@property
|
243
244
|
@pulumi.getter(name="runtimeType")
|
244
|
-
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
245
|
+
def runtime_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
245
246
|
"""
|
246
247
|
The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
247
248
|
"""
|
248
249
|
return pulumi.get(self, "runtime_type")
|
249
250
|
|
250
251
|
@runtime_type.setter
|
251
|
-
def runtime_type(self, value: Optional[pulumi.Input[str]]):
|
252
|
+
def runtime_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
252
253
|
pulumi.set(self, "runtime_type", value)
|
253
254
|
|
254
255
|
@property
|
255
256
|
@pulumi.getter(name="runtimeTypeVersion")
|
256
|
-
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
257
|
+
def runtime_type_version(self) -> Optional[pulumi.Input[builtins.str]]:
|
257
258
|
"""
|
258
259
|
The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
259
260
|
"""
|
260
261
|
return pulumi.get(self, "runtime_type_version")
|
261
262
|
|
262
263
|
@runtime_type_version.setter
|
263
|
-
def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
|
264
|
+
def runtime_type_version(self, value: Optional[pulumi.Input[builtins.str]]):
|
264
265
|
pulumi.set(self, "runtime_type_version", value)
|
265
266
|
|
266
267
|
@property
|
267
268
|
@pulumi.getter
|
268
|
-
def script(self) -> Optional[pulumi.Input[str]]:
|
269
|
+
def script(self) -> Optional[pulumi.Input[builtins.str]]:
|
269
270
|
"""
|
270
271
|
The script that the monitor runs.
|
271
272
|
"""
|
272
273
|
return pulumi.get(self, "script")
|
273
274
|
|
274
275
|
@script.setter
|
275
|
-
def script(self, value: Optional[pulumi.Input[str]]):
|
276
|
+
def script(self, value: Optional[pulumi.Input[builtins.str]]):
|
276
277
|
pulumi.set(self, "script", value)
|
277
278
|
|
278
279
|
@property
|
279
280
|
@pulumi.getter(name="scriptLanguage")
|
280
|
-
def script_language(self) -> Optional[pulumi.Input[str]]:
|
281
|
+
def script_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
281
282
|
"""
|
282
283
|
The programing language that should execute the script.
|
283
284
|
"""
|
284
285
|
return pulumi.get(self, "script_language")
|
285
286
|
|
286
287
|
@script_language.setter
|
287
|
-
def script_language(self, value: Optional[pulumi.Input[str]]):
|
288
|
+
def script_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
288
289
|
pulumi.set(self, "script_language", value)
|
289
290
|
|
290
291
|
@property
|
@@ -303,60 +304,62 @@ class ScriptMonitorArgs:
|
|
303
304
|
|
304
305
|
@property
|
305
306
|
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
306
|
-
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[bool]]:
|
307
|
+
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[builtins.bool]]:
|
307
308
|
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
308
309
|
|
309
310
|
@use_unsupported_legacy_runtime.setter
|
310
|
-
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[bool]]):
|
311
|
+
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[builtins.bool]]):
|
311
312
|
pulumi.set(self, "use_unsupported_legacy_runtime", value)
|
312
313
|
|
313
314
|
|
314
315
|
@pulumi.input_type
|
315
316
|
class _ScriptMonitorState:
|
316
317
|
def __init__(__self__, *,
|
317
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
318
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
319
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
320
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
321
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
322
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
323
|
-
guid: Optional[pulumi.Input[str]] = None,
|
318
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
319
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
320
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
321
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
322
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
323
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
324
|
+
guid: Optional[pulumi.Input[builtins.str]] = None,
|
324
325
|
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]]] = None,
|
325
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
326
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
327
|
+
monitor_id: Optional[pulumi.Input[builtins.str]] = None,
|
328
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
329
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
330
|
+
period_in_minutes: Optional[pulumi.Input[builtins.int]] = None,
|
331
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
332
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
333
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
334
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
335
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
334
336
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]]] = None,
|
335
|
-
type: Optional[pulumi.Input[str]] = None,
|
336
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None):
|
337
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
338
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None):
|
337
339
|
"""
|
338
340
|
Input properties used for looking up and filtering ScriptMonitor resources.
|
339
|
-
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
340
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
341
|
-
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
342
|
-
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
343
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
344
|
-
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
345
|
-
:param pulumi.Input[str] guid: The unique entity identifier of the monitor in New Relic.
|
341
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
342
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
343
|
+
:param pulumi.Input[builtins.str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
344
|
+
:param pulumi.Input[builtins.str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
345
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
346
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
347
|
+
:param pulumi.Input[builtins.str] guid: The unique entity identifier of the monitor in New Relic.
|
346
348
|
:param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
347
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
348
|
-
:param pulumi.Input[str]
|
349
|
-
:param pulumi.Input[str]
|
350
|
-
:param pulumi.Input[
|
351
|
-
:param pulumi.Input[
|
352
|
-
:param pulumi.Input[str]
|
353
|
-
:param pulumi.Input[str]
|
354
|
-
:param pulumi.Input[str]
|
355
|
-
:param pulumi.Input[str]
|
349
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
350
|
+
:param pulumi.Input[builtins.str] monitor_id: The monitor id of the Synthetics script monitor (not to be confused with the GUID of the monitor).
|
351
|
+
:param pulumi.Input[builtins.str] name: The name for the monitor.
|
352
|
+
:param pulumi.Input[builtins.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`.
|
353
|
+
:param pulumi.Input[builtins.int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
354
|
+
:param pulumi.Input[builtins.str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
355
|
+
:param pulumi.Input[builtins.str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
356
|
+
:param pulumi.Input[builtins.str] script: The script that the monitor runs.
|
357
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
358
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
356
359
|
:param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
357
360
|
|
358
361
|
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
359
|
-
:param pulumi.Input[str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
362
|
+
:param pulumi.Input[builtins.str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
360
363
|
"""
|
361
364
|
if account_id is not None:
|
362
365
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -376,6 +379,8 @@ class _ScriptMonitorState:
|
|
376
379
|
pulumi.set(__self__, "location_privates", location_privates)
|
377
380
|
if locations_publics is not None:
|
378
381
|
pulumi.set(__self__, "locations_publics", locations_publics)
|
382
|
+
if monitor_id is not None:
|
383
|
+
pulumi.set(__self__, "monitor_id", monitor_id)
|
379
384
|
if name is not None:
|
380
385
|
pulumi.set(__self__, "name", name)
|
381
386
|
if period is not None:
|
@@ -401,86 +406,86 @@ class _ScriptMonitorState:
|
|
401
406
|
|
402
407
|
@property
|
403
408
|
@pulumi.getter(name="accountId")
|
404
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
409
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
405
410
|
"""
|
406
411
|
The account in which the Synthetics monitor will be created.
|
407
412
|
"""
|
408
413
|
return pulumi.get(self, "account_id")
|
409
414
|
|
410
415
|
@account_id.setter
|
411
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
416
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
412
417
|
pulumi.set(self, "account_id", value)
|
413
418
|
|
414
419
|
@property
|
415
420
|
@pulumi.getter
|
416
|
-
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
421
|
+
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
417
422
|
"""
|
418
423
|
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
419
424
|
"""
|
420
425
|
return pulumi.get(self, "browsers")
|
421
426
|
|
422
427
|
@browsers.setter
|
423
|
-
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
428
|
+
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
424
429
|
pulumi.set(self, "browsers", value)
|
425
430
|
|
426
431
|
@property
|
427
432
|
@pulumi.getter(name="deviceOrientation")
|
428
|
-
def device_orientation(self) -> Optional[pulumi.Input[str]]:
|
433
|
+
def device_orientation(self) -> Optional[pulumi.Input[builtins.str]]:
|
429
434
|
"""
|
430
435
|
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
431
436
|
"""
|
432
437
|
return pulumi.get(self, "device_orientation")
|
433
438
|
|
434
439
|
@device_orientation.setter
|
435
|
-
def device_orientation(self, value: Optional[pulumi.Input[str]]):
|
440
|
+
def device_orientation(self, value: Optional[pulumi.Input[builtins.str]]):
|
436
441
|
pulumi.set(self, "device_orientation", value)
|
437
442
|
|
438
443
|
@property
|
439
444
|
@pulumi.getter(name="deviceType")
|
440
|
-
def device_type(self) -> Optional[pulumi.Input[str]]:
|
445
|
+
def device_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
441
446
|
"""
|
442
447
|
Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
443
448
|
"""
|
444
449
|
return pulumi.get(self, "device_type")
|
445
450
|
|
446
451
|
@device_type.setter
|
447
|
-
def device_type(self, value: Optional[pulumi.Input[str]]):
|
452
|
+
def device_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
448
453
|
pulumi.set(self, "device_type", value)
|
449
454
|
|
450
455
|
@property
|
451
456
|
@pulumi.getter
|
452
|
-
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
457
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
453
458
|
"""
|
454
459
|
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
455
460
|
"""
|
456
461
|
return pulumi.get(self, "devices")
|
457
462
|
|
458
463
|
@devices.setter
|
459
|
-
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
464
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
460
465
|
pulumi.set(self, "devices", value)
|
461
466
|
|
462
467
|
@property
|
463
468
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
464
|
-
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[bool]]:
|
469
|
+
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[builtins.bool]]:
|
465
470
|
"""
|
466
471
|
Capture a screenshot during job execution.
|
467
472
|
"""
|
468
473
|
return pulumi.get(self, "enable_screenshot_on_failure_and_script")
|
469
474
|
|
470
475
|
@enable_screenshot_on_failure_and_script.setter
|
471
|
-
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[bool]]):
|
476
|
+
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[builtins.bool]]):
|
472
477
|
pulumi.set(self, "enable_screenshot_on_failure_and_script", value)
|
473
478
|
|
474
479
|
@property
|
475
480
|
@pulumi.getter
|
476
|
-
def guid(self) -> Optional[pulumi.Input[str]]:
|
481
|
+
def guid(self) -> Optional[pulumi.Input[builtins.str]]:
|
477
482
|
"""
|
478
483
|
The unique entity identifier of the monitor in New Relic.
|
479
484
|
"""
|
480
485
|
return pulumi.get(self, "guid")
|
481
486
|
|
482
487
|
@guid.setter
|
483
|
-
def guid(self, value: Optional[pulumi.Input[str]]):
|
488
|
+
def guid(self, value: Optional[pulumi.Input[builtins.str]]):
|
484
489
|
pulumi.set(self, "guid", value)
|
485
490
|
|
486
491
|
@property
|
@@ -497,110 +502,122 @@ class _ScriptMonitorState:
|
|
497
502
|
|
498
503
|
@property
|
499
504
|
@pulumi.getter(name="locationsPublics")
|
500
|
-
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
505
|
+
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
501
506
|
"""
|
502
507
|
The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
503
508
|
"""
|
504
509
|
return pulumi.get(self, "locations_publics")
|
505
510
|
|
506
511
|
@locations_publics.setter
|
507
|
-
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
512
|
+
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
508
513
|
pulumi.set(self, "locations_publics", value)
|
509
514
|
|
515
|
+
@property
|
516
|
+
@pulumi.getter(name="monitorId")
|
517
|
+
def monitor_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
518
|
+
"""
|
519
|
+
The monitor id of the Synthetics script monitor (not to be confused with the GUID of the monitor).
|
520
|
+
"""
|
521
|
+
return pulumi.get(self, "monitor_id")
|
522
|
+
|
523
|
+
@monitor_id.setter
|
524
|
+
def monitor_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
525
|
+
pulumi.set(self, "monitor_id", value)
|
526
|
+
|
510
527
|
@property
|
511
528
|
@pulumi.getter
|
512
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
529
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
513
530
|
"""
|
514
531
|
The name for the monitor.
|
515
532
|
"""
|
516
533
|
return pulumi.get(self, "name")
|
517
534
|
|
518
535
|
@name.setter
|
519
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
536
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
520
537
|
pulumi.set(self, "name", value)
|
521
538
|
|
522
539
|
@property
|
523
540
|
@pulumi.getter
|
524
|
-
def period(self) -> Optional[pulumi.Input[str]]:
|
541
|
+
def period(self) -> Optional[pulumi.Input[builtins.str]]:
|
525
542
|
"""
|
526
543
|
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`.
|
527
544
|
"""
|
528
545
|
return pulumi.get(self, "period")
|
529
546
|
|
530
547
|
@period.setter
|
531
|
-
def period(self, value: Optional[pulumi.Input[str]]):
|
548
|
+
def period(self, value: Optional[pulumi.Input[builtins.str]]):
|
532
549
|
pulumi.set(self, "period", value)
|
533
550
|
|
534
551
|
@property
|
535
552
|
@pulumi.getter(name="periodInMinutes")
|
536
|
-
def period_in_minutes(self) -> Optional[pulumi.Input[int]]:
|
553
|
+
def period_in_minutes(self) -> Optional[pulumi.Input[builtins.int]]:
|
537
554
|
"""
|
538
555
|
The interval in minutes at which Synthetic monitor should run.
|
539
556
|
"""
|
540
557
|
return pulumi.get(self, "period_in_minutes")
|
541
558
|
|
542
559
|
@period_in_minutes.setter
|
543
|
-
def period_in_minutes(self, value: Optional[pulumi.Input[int]]):
|
560
|
+
def period_in_minutes(self, value: Optional[pulumi.Input[builtins.int]]):
|
544
561
|
pulumi.set(self, "period_in_minutes", value)
|
545
562
|
|
546
563
|
@property
|
547
564
|
@pulumi.getter(name="runtimeType")
|
548
|
-
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
565
|
+
def runtime_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
549
566
|
"""
|
550
567
|
The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
551
568
|
"""
|
552
569
|
return pulumi.get(self, "runtime_type")
|
553
570
|
|
554
571
|
@runtime_type.setter
|
555
|
-
def runtime_type(self, value: Optional[pulumi.Input[str]]):
|
572
|
+
def runtime_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
556
573
|
pulumi.set(self, "runtime_type", value)
|
557
574
|
|
558
575
|
@property
|
559
576
|
@pulumi.getter(name="runtimeTypeVersion")
|
560
|
-
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
577
|
+
def runtime_type_version(self) -> Optional[pulumi.Input[builtins.str]]:
|
561
578
|
"""
|
562
579
|
The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
563
580
|
"""
|
564
581
|
return pulumi.get(self, "runtime_type_version")
|
565
582
|
|
566
583
|
@runtime_type_version.setter
|
567
|
-
def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
|
584
|
+
def runtime_type_version(self, value: Optional[pulumi.Input[builtins.str]]):
|
568
585
|
pulumi.set(self, "runtime_type_version", value)
|
569
586
|
|
570
587
|
@property
|
571
588
|
@pulumi.getter
|
572
|
-
def script(self) -> Optional[pulumi.Input[str]]:
|
589
|
+
def script(self) -> Optional[pulumi.Input[builtins.str]]:
|
573
590
|
"""
|
574
591
|
The script that the monitor runs.
|
575
592
|
"""
|
576
593
|
return pulumi.get(self, "script")
|
577
594
|
|
578
595
|
@script.setter
|
579
|
-
def script(self, value: Optional[pulumi.Input[str]]):
|
596
|
+
def script(self, value: Optional[pulumi.Input[builtins.str]]):
|
580
597
|
pulumi.set(self, "script", value)
|
581
598
|
|
582
599
|
@property
|
583
600
|
@pulumi.getter(name="scriptLanguage")
|
584
|
-
def script_language(self) -> Optional[pulumi.Input[str]]:
|
601
|
+
def script_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
585
602
|
"""
|
586
603
|
The programing language that should execute the script.
|
587
604
|
"""
|
588
605
|
return pulumi.get(self, "script_language")
|
589
606
|
|
590
607
|
@script_language.setter
|
591
|
-
def script_language(self, value: Optional[pulumi.Input[str]]):
|
608
|
+
def script_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
592
609
|
pulumi.set(self, "script_language", value)
|
593
610
|
|
594
611
|
@property
|
595
612
|
@pulumi.getter
|
596
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
613
|
+
def status(self) -> Optional[pulumi.Input[builtins.str]]:
|
597
614
|
"""
|
598
615
|
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
599
616
|
"""
|
600
617
|
return pulumi.get(self, "status")
|
601
618
|
|
602
619
|
@status.setter
|
603
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
620
|
+
def status(self, value: Optional[pulumi.Input[builtins.str]]):
|
604
621
|
pulumi.set(self, "status", value)
|
605
622
|
|
606
623
|
@property
|
@@ -619,23 +636,23 @@ class _ScriptMonitorState:
|
|
619
636
|
|
620
637
|
@property
|
621
638
|
@pulumi.getter
|
622
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
639
|
+
def type(self) -> Optional[pulumi.Input[builtins.str]]:
|
623
640
|
"""
|
624
641
|
The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
625
642
|
"""
|
626
643
|
return pulumi.get(self, "type")
|
627
644
|
|
628
645
|
@type.setter
|
629
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
646
|
+
def type(self, value: Optional[pulumi.Input[builtins.str]]):
|
630
647
|
pulumi.set(self, "type", value)
|
631
648
|
|
632
649
|
@property
|
633
650
|
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
634
|
-
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[bool]]:
|
651
|
+
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[builtins.bool]]:
|
635
652
|
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
636
653
|
|
637
654
|
@use_unsupported_legacy_runtime.setter
|
638
|
-
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[bool]]):
|
655
|
+
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[builtins.bool]]):
|
639
656
|
pulumi.set(self, "use_unsupported_legacy_runtime", value)
|
640
657
|
|
641
658
|
|
@@ -644,24 +661,24 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
644
661
|
def __init__(__self__,
|
645
662
|
resource_name: str,
|
646
663
|
opts: Optional[pulumi.ResourceOptions] = None,
|
647
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
648
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
649
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
650
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
651
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
652
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
664
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
665
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
666
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
667
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
668
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
669
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
653
670
|
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]]] = None,
|
654
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
655
|
-
name: Optional[pulumi.Input[str]] = None,
|
656
|
-
period: Optional[pulumi.Input[str]] = None,
|
657
|
-
runtime_type: Optional[pulumi.Input[str]] = None,
|
658
|
-
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
659
|
-
script: Optional[pulumi.Input[str]] = None,
|
660
|
-
script_language: Optional[pulumi.Input[str]] = None,
|
661
|
-
status: Optional[pulumi.Input[str]] = None,
|
671
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
672
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
673
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
674
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
675
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
676
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
677
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
678
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
662
679
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]]] = None,
|
663
|
-
type: Optional[pulumi.Input[str]] = None,
|
664
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
680
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
681
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
665
682
|
__props__=None):
|
666
683
|
"""
|
667
684
|
## Example Usage
|
@@ -807,25 +824,25 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
807
824
|
|
808
825
|
:param str resource_name: The name of the resource.
|
809
826
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
810
|
-
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
811
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
812
|
-
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
813
|
-
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
814
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
815
|
-
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
827
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
828
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
829
|
+
:param pulumi.Input[builtins.str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
830
|
+
:param pulumi.Input[builtins.str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
831
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
832
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
816
833
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
817
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
818
|
-
:param pulumi.Input[str] name: The name for the monitor.
|
819
|
-
: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`.
|
820
|
-
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
821
|
-
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
822
|
-
:param pulumi.Input[str] script: The script that the monitor runs.
|
823
|
-
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
824
|
-
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
834
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
835
|
+
:param pulumi.Input[builtins.str] name: The name for the monitor.
|
836
|
+
:param pulumi.Input[builtins.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`.
|
837
|
+
:param pulumi.Input[builtins.str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
838
|
+
:param pulumi.Input[builtins.str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
839
|
+
:param pulumi.Input[builtins.str] script: The script that the monitor runs.
|
840
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
841
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
825
842
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
826
843
|
|
827
844
|
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
828
|
-
:param pulumi.Input[str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
845
|
+
:param pulumi.Input[builtins.str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
829
846
|
"""
|
830
847
|
...
|
831
848
|
@overload
|
@@ -990,24 +1007,24 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
990
1007
|
def _internal_init(__self__,
|
991
1008
|
resource_name: str,
|
992
1009
|
opts: Optional[pulumi.ResourceOptions] = None,
|
993
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
994
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
995
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
996
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
997
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
998
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
1010
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
1011
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1012
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
1013
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
1014
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1015
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
999
1016
|
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]]] = None,
|
1000
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1001
|
-
name: Optional[pulumi.Input[str]] = None,
|
1002
|
-
period: Optional[pulumi.Input[str]] = None,
|
1003
|
-
runtime_type: Optional[pulumi.Input[str]] = None,
|
1004
|
-
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
1005
|
-
script: Optional[pulumi.Input[str]] = None,
|
1006
|
-
script_language: Optional[pulumi.Input[str]] = None,
|
1007
|
-
status: Optional[pulumi.Input[str]] = None,
|
1017
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1018
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
1019
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
1020
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
1021
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
1022
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
1023
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
1024
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
1008
1025
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]]] = None,
|
1009
|
-
type: Optional[pulumi.Input[str]] = None,
|
1010
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
1026
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
1027
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
1011
1028
|
__props__=None):
|
1012
1029
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
1013
1030
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -1042,6 +1059,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1042
1059
|
__props__.__dict__["type"] = type
|
1043
1060
|
__props__.__dict__["use_unsupported_legacy_runtime"] = use_unsupported_legacy_runtime
|
1044
1061
|
__props__.__dict__["guid"] = None
|
1062
|
+
__props__.__dict__["monitor_id"] = None
|
1045
1063
|
__props__.__dict__["period_in_minutes"] = None
|
1046
1064
|
super(ScriptMonitor, __self__).__init__(
|
1047
1065
|
'newrelic:synthetics/scriptMonitor:ScriptMonitor',
|
@@ -1053,26 +1071,27 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1053
1071
|
def get(resource_name: str,
|
1054
1072
|
id: pulumi.Input[str],
|
1055
1073
|
opts: Optional[pulumi.ResourceOptions] = None,
|
1056
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
1057
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1058
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
1059
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
1060
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1061
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
1062
|
-
guid: Optional[pulumi.Input[str]] = None,
|
1074
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
1075
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1076
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
1077
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
1078
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1079
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
1080
|
+
guid: Optional[pulumi.Input[builtins.str]] = None,
|
1063
1081
|
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]]] = None,
|
1064
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1082
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1083
|
+
monitor_id: Optional[pulumi.Input[builtins.str]] = None,
|
1084
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
1085
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
1086
|
+
period_in_minutes: Optional[pulumi.Input[builtins.int]] = None,
|
1087
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
1088
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
1089
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
1090
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
1091
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
1073
1092
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]]] = None,
|
1074
|
-
type: Optional[pulumi.Input[str]] = None,
|
1075
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None) -> 'ScriptMonitor':
|
1093
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
1094
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None) -> 'ScriptMonitor':
|
1076
1095
|
"""
|
1077
1096
|
Get an existing ScriptMonitor resource's state with the given name, id, and optional extra
|
1078
1097
|
properties used to qualify the lookup.
|
@@ -1080,27 +1099,28 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1080
1099
|
:param str resource_name: The unique name of the resulting resource.
|
1081
1100
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
1082
1101
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
1083
|
-
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
1084
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
1085
|
-
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1086
|
-
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1087
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
1088
|
-
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
1089
|
-
:param pulumi.Input[str] guid: The unique entity identifier of the monitor in New Relic.
|
1102
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
1103
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
1104
|
+
:param pulumi.Input[builtins.str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1105
|
+
:param pulumi.Input[builtins.str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1106
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
1107
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
1108
|
+
:param pulumi.Input[builtins.str] guid: The unique entity identifier of the monitor in New Relic.
|
1090
1109
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
1091
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
1092
|
-
:param pulumi.Input[str]
|
1093
|
-
:param pulumi.Input[str]
|
1094
|
-
:param pulumi.Input[
|
1095
|
-
:param pulumi.Input[
|
1096
|
-
:param pulumi.Input[str]
|
1097
|
-
:param pulumi.Input[str]
|
1098
|
-
:param pulumi.Input[str]
|
1099
|
-
:param pulumi.Input[str]
|
1110
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
1111
|
+
:param pulumi.Input[builtins.str] monitor_id: The monitor id of the Synthetics script monitor (not to be confused with the GUID of the monitor).
|
1112
|
+
:param pulumi.Input[builtins.str] name: The name for the monitor.
|
1113
|
+
:param pulumi.Input[builtins.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`.
|
1114
|
+
:param pulumi.Input[builtins.int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
1115
|
+
:param pulumi.Input[builtins.str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
1116
|
+
:param pulumi.Input[builtins.str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
1117
|
+
:param pulumi.Input[builtins.str] script: The script that the monitor runs.
|
1118
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
1119
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1100
1120
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
1101
1121
|
|
1102
1122
|
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
1103
|
-
:param pulumi.Input[str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
1123
|
+
:param pulumi.Input[builtins.str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
1104
1124
|
"""
|
1105
1125
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
1106
1126
|
|
@@ -1115,6 +1135,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1115
1135
|
__props__.__dict__["guid"] = guid
|
1116
1136
|
__props__.__dict__["location_privates"] = location_privates
|
1117
1137
|
__props__.__dict__["locations_publics"] = locations_publics
|
1138
|
+
__props__.__dict__["monitor_id"] = monitor_id
|
1118
1139
|
__props__.__dict__["name"] = name
|
1119
1140
|
__props__.__dict__["period"] = period
|
1120
1141
|
__props__.__dict__["period_in_minutes"] = period_in_minutes
|
@@ -1130,7 +1151,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1130
1151
|
|
1131
1152
|
@property
|
1132
1153
|
@pulumi.getter(name="accountId")
|
1133
|
-
def account_id(self) -> pulumi.Output[str]:
|
1154
|
+
def account_id(self) -> pulumi.Output[builtins.str]:
|
1134
1155
|
"""
|
1135
1156
|
The account in which the Synthetics monitor will be created.
|
1136
1157
|
"""
|
@@ -1138,7 +1159,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1138
1159
|
|
1139
1160
|
@property
|
1140
1161
|
@pulumi.getter
|
1141
|
-
def browsers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1162
|
+
def browsers(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1142
1163
|
"""
|
1143
1164
|
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
1144
1165
|
"""
|
@@ -1146,7 +1167,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1146
1167
|
|
1147
1168
|
@property
|
1148
1169
|
@pulumi.getter(name="deviceOrientation")
|
1149
|
-
def device_orientation(self) -> pulumi.Output[Optional[str]]:
|
1170
|
+
def device_orientation(self) -> pulumi.Output[Optional[builtins.str]]:
|
1150
1171
|
"""
|
1151
1172
|
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1152
1173
|
"""
|
@@ -1154,7 +1175,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1154
1175
|
|
1155
1176
|
@property
|
1156
1177
|
@pulumi.getter(name="deviceType")
|
1157
|
-
def device_type(self) -> pulumi.Output[Optional[str]]:
|
1178
|
+
def device_type(self) -> pulumi.Output[Optional[builtins.str]]:
|
1158
1179
|
"""
|
1159
1180
|
Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1160
1181
|
"""
|
@@ -1162,7 +1183,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1162
1183
|
|
1163
1184
|
@property
|
1164
1185
|
@pulumi.getter
|
1165
|
-
def devices(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1186
|
+
def devices(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1166
1187
|
"""
|
1167
1188
|
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
1168
1189
|
"""
|
@@ -1170,7 +1191,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1170
1191
|
|
1171
1192
|
@property
|
1172
1193
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
1173
|
-
def enable_screenshot_on_failure_and_script(self) -> pulumi.Output[Optional[bool]]:
|
1194
|
+
def enable_screenshot_on_failure_and_script(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1174
1195
|
"""
|
1175
1196
|
Capture a screenshot during job execution.
|
1176
1197
|
"""
|
@@ -1178,7 +1199,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1178
1199
|
|
1179
1200
|
@property
|
1180
1201
|
@pulumi.getter
|
1181
|
-
def guid(self) -> pulumi.Output[str]:
|
1202
|
+
def guid(self) -> pulumi.Output[builtins.str]:
|
1182
1203
|
"""
|
1183
1204
|
The unique entity identifier of the monitor in New Relic.
|
1184
1205
|
"""
|
@@ -1194,15 +1215,23 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1194
1215
|
|
1195
1216
|
@property
|
1196
1217
|
@pulumi.getter(name="locationsPublics")
|
1197
|
-
def locations_publics(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1218
|
+
def locations_publics(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1198
1219
|
"""
|
1199
1220
|
The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
1200
1221
|
"""
|
1201
1222
|
return pulumi.get(self, "locations_publics")
|
1202
1223
|
|
1224
|
+
@property
|
1225
|
+
@pulumi.getter(name="monitorId")
|
1226
|
+
def monitor_id(self) -> pulumi.Output[builtins.str]:
|
1227
|
+
"""
|
1228
|
+
The monitor id of the Synthetics script monitor (not to be confused with the GUID of the monitor).
|
1229
|
+
"""
|
1230
|
+
return pulumi.get(self, "monitor_id")
|
1231
|
+
|
1203
1232
|
@property
|
1204
1233
|
@pulumi.getter
|
1205
|
-
def name(self) -> pulumi.Output[str]:
|
1234
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
1206
1235
|
"""
|
1207
1236
|
The name for the monitor.
|
1208
1237
|
"""
|
@@ -1210,7 +1239,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1210
1239
|
|
1211
1240
|
@property
|
1212
1241
|
@pulumi.getter
|
1213
|
-
def period(self) -> pulumi.Output[str]:
|
1242
|
+
def period(self) -> pulumi.Output[builtins.str]:
|
1214
1243
|
"""
|
1215
1244
|
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`.
|
1216
1245
|
"""
|
@@ -1218,7 +1247,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1218
1247
|
|
1219
1248
|
@property
|
1220
1249
|
@pulumi.getter(name="periodInMinutes")
|
1221
|
-
def period_in_minutes(self) -> pulumi.Output[int]:
|
1250
|
+
def period_in_minutes(self) -> pulumi.Output[builtins.int]:
|
1222
1251
|
"""
|
1223
1252
|
The interval in minutes at which Synthetic monitor should run.
|
1224
1253
|
"""
|
@@ -1226,7 +1255,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1226
1255
|
|
1227
1256
|
@property
|
1228
1257
|
@pulumi.getter(name="runtimeType")
|
1229
|
-
def runtime_type(self) -> pulumi.Output[Optional[str]]:
|
1258
|
+
def runtime_type(self) -> pulumi.Output[Optional[builtins.str]]:
|
1230
1259
|
"""
|
1231
1260
|
The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
1232
1261
|
"""
|
@@ -1234,7 +1263,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1234
1263
|
|
1235
1264
|
@property
|
1236
1265
|
@pulumi.getter(name="runtimeTypeVersion")
|
1237
|
-
def runtime_type_version(self) -> pulumi.Output[Optional[str]]:
|
1266
|
+
def runtime_type_version(self) -> pulumi.Output[Optional[builtins.str]]:
|
1238
1267
|
"""
|
1239
1268
|
The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
1240
1269
|
"""
|
@@ -1242,7 +1271,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1242
1271
|
|
1243
1272
|
@property
|
1244
1273
|
@pulumi.getter
|
1245
|
-
def script(self) -> pulumi.Output[Optional[str]]:
|
1274
|
+
def script(self) -> pulumi.Output[Optional[builtins.str]]:
|
1246
1275
|
"""
|
1247
1276
|
The script that the monitor runs.
|
1248
1277
|
"""
|
@@ -1250,7 +1279,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1250
1279
|
|
1251
1280
|
@property
|
1252
1281
|
@pulumi.getter(name="scriptLanguage")
|
1253
|
-
def script_language(self) -> pulumi.Output[Optional[str]]:
|
1282
|
+
def script_language(self) -> pulumi.Output[Optional[builtins.str]]:
|
1254
1283
|
"""
|
1255
1284
|
The programing language that should execute the script.
|
1256
1285
|
"""
|
@@ -1258,7 +1287,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1258
1287
|
|
1259
1288
|
@property
|
1260
1289
|
@pulumi.getter
|
1261
|
-
def status(self) -> pulumi.Output[str]:
|
1290
|
+
def status(self) -> pulumi.Output[builtins.str]:
|
1262
1291
|
"""
|
1263
1292
|
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1264
1293
|
"""
|
@@ -1276,7 +1305,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1276
1305
|
|
1277
1306
|
@property
|
1278
1307
|
@pulumi.getter
|
1279
|
-
def type(self) -> pulumi.Output[str]:
|
1308
|
+
def type(self) -> pulumi.Output[builtins.str]:
|
1280
1309
|
"""
|
1281
1310
|
The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
1282
1311
|
"""
|
@@ -1284,6 +1313,6 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1284
1313
|
|
1285
1314
|
@property
|
1286
1315
|
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
1287
|
-
def use_unsupported_legacy_runtime(self) -> pulumi.Output[Optional[bool]]:
|
1316
|
+
def use_unsupported_legacy_runtime(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1288
1317
|
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
1289
1318
|
|