pulumi-newrelic 5.45.0a1743574084__py3-none-any.whl → 5.45.0a1744183332__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 +151 -150
- pulumi_newrelic/synthetics/cert_check_monitor.py +158 -157
- pulumi_newrelic/synthetics/get_private_location.py +17 -16
- pulumi_newrelic/synthetics/get_secure_credential.py +14 -13
- pulumi_newrelic/synthetics/monitor.py +298 -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 +235 -234
- pulumi_newrelic/synthetics/secure_credential.py +71 -70
- pulumi_newrelic/synthetics/step_monitor.py +165 -164
- pulumi_newrelic/user.py +57 -56
- pulumi_newrelic/workflow.py +106 -105
- {pulumi_newrelic-5.45.0a1743574084.dist-info → pulumi_newrelic-5.45.0a1744183332.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.45.0a1744183332.dist-info/RECORD +90 -0
- pulumi_newrelic-5.45.0a1743574084.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.45.0a1743574084.dist-info → pulumi_newrelic-5.45.0a1744183332.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.45.0a1743574084.dist-info → pulumi_newrelic-5.45.0a1744183332.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,60 @@ 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
|
-
name: Optional[pulumi.Input[str]] = None,
|
327
|
-
period: Optional[pulumi.Input[str]] = None,
|
328
|
-
period_in_minutes: Optional[pulumi.Input[int]] = None,
|
329
|
-
runtime_type: Optional[pulumi.Input[str]] = None,
|
330
|
-
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
331
|
-
script: Optional[pulumi.Input[str]] = None,
|
332
|
-
script_language: Optional[pulumi.Input[str]] = None,
|
333
|
-
status: Optional[pulumi.Input[str]] = None,
|
326
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
327
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
328
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
329
|
+
period_in_minutes: Optional[pulumi.Input[builtins.int]] = None,
|
330
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
331
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
332
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
333
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
334
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
334
335
|
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):
|
336
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
337
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None):
|
337
338
|
"""
|
338
339
|
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.
|
340
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
341
|
+
: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`.
|
342
|
+
: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.
|
343
|
+
: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.
|
344
|
+
: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`.
|
345
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
346
|
+
:param pulumi.Input[builtins.str] guid: The unique entity identifier of the monitor in New Relic.
|
346
347
|
: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] name: The name for the monitor.
|
349
|
-
: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`.
|
350
|
-
:param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
351
|
-
: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`.
|
352
|
-
: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.
|
353
|
-
:param pulumi.Input[str] script: The script that the monitor runs.
|
354
|
-
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
355
|
-
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
348
|
+
: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**.
|
349
|
+
:param pulumi.Input[builtins.str] name: The name for the monitor.
|
350
|
+
: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`.
|
351
|
+
:param pulumi.Input[builtins.int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
352
|
+
: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`.
|
353
|
+
: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.
|
354
|
+
:param pulumi.Input[builtins.str] script: The script that the monitor runs.
|
355
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
356
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
356
357
|
: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
358
|
|
358
359
|
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
|
360
|
+
:param pulumi.Input[builtins.str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
360
361
|
"""
|
361
362
|
if account_id is not None:
|
362
363
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -401,86 +402,86 @@ class _ScriptMonitorState:
|
|
401
402
|
|
402
403
|
@property
|
403
404
|
@pulumi.getter(name="accountId")
|
404
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
405
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
405
406
|
"""
|
406
407
|
The account in which the Synthetics monitor will be created.
|
407
408
|
"""
|
408
409
|
return pulumi.get(self, "account_id")
|
409
410
|
|
410
411
|
@account_id.setter
|
411
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
412
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
412
413
|
pulumi.set(self, "account_id", value)
|
413
414
|
|
414
415
|
@property
|
415
416
|
@pulumi.getter
|
416
|
-
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
417
|
+
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
417
418
|
"""
|
418
419
|
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
419
420
|
"""
|
420
421
|
return pulumi.get(self, "browsers")
|
421
422
|
|
422
423
|
@browsers.setter
|
423
|
-
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
424
|
+
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
424
425
|
pulumi.set(self, "browsers", value)
|
425
426
|
|
426
427
|
@property
|
427
428
|
@pulumi.getter(name="deviceOrientation")
|
428
|
-
def device_orientation(self) -> Optional[pulumi.Input[str]]:
|
429
|
+
def device_orientation(self) -> Optional[pulumi.Input[builtins.str]]:
|
429
430
|
"""
|
430
431
|
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
432
|
"""
|
432
433
|
return pulumi.get(self, "device_orientation")
|
433
434
|
|
434
435
|
@device_orientation.setter
|
435
|
-
def device_orientation(self, value: Optional[pulumi.Input[str]]):
|
436
|
+
def device_orientation(self, value: Optional[pulumi.Input[builtins.str]]):
|
436
437
|
pulumi.set(self, "device_orientation", value)
|
437
438
|
|
438
439
|
@property
|
439
440
|
@pulumi.getter(name="deviceType")
|
440
|
-
def device_type(self) -> Optional[pulumi.Input[str]]:
|
441
|
+
def device_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
441
442
|
"""
|
442
443
|
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
444
|
"""
|
444
445
|
return pulumi.get(self, "device_type")
|
445
446
|
|
446
447
|
@device_type.setter
|
447
|
-
def device_type(self, value: Optional[pulumi.Input[str]]):
|
448
|
+
def device_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
448
449
|
pulumi.set(self, "device_type", value)
|
449
450
|
|
450
451
|
@property
|
451
452
|
@pulumi.getter
|
452
|
-
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
453
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
453
454
|
"""
|
454
455
|
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
455
456
|
"""
|
456
457
|
return pulumi.get(self, "devices")
|
457
458
|
|
458
459
|
@devices.setter
|
459
|
-
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
460
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
460
461
|
pulumi.set(self, "devices", value)
|
461
462
|
|
462
463
|
@property
|
463
464
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
464
|
-
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[bool]]:
|
465
|
+
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[builtins.bool]]:
|
465
466
|
"""
|
466
467
|
Capture a screenshot during job execution.
|
467
468
|
"""
|
468
469
|
return pulumi.get(self, "enable_screenshot_on_failure_and_script")
|
469
470
|
|
470
471
|
@enable_screenshot_on_failure_and_script.setter
|
471
|
-
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[bool]]):
|
472
|
+
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[builtins.bool]]):
|
472
473
|
pulumi.set(self, "enable_screenshot_on_failure_and_script", value)
|
473
474
|
|
474
475
|
@property
|
475
476
|
@pulumi.getter
|
476
|
-
def guid(self) -> Optional[pulumi.Input[str]]:
|
477
|
+
def guid(self) -> Optional[pulumi.Input[builtins.str]]:
|
477
478
|
"""
|
478
479
|
The unique entity identifier of the monitor in New Relic.
|
479
480
|
"""
|
480
481
|
return pulumi.get(self, "guid")
|
481
482
|
|
482
483
|
@guid.setter
|
483
|
-
def guid(self, value: Optional[pulumi.Input[str]]):
|
484
|
+
def guid(self, value: Optional[pulumi.Input[builtins.str]]):
|
484
485
|
pulumi.set(self, "guid", value)
|
485
486
|
|
486
487
|
@property
|
@@ -497,110 +498,110 @@ class _ScriptMonitorState:
|
|
497
498
|
|
498
499
|
@property
|
499
500
|
@pulumi.getter(name="locationsPublics")
|
500
|
-
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
501
|
+
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
501
502
|
"""
|
502
503
|
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
504
|
"""
|
504
505
|
return pulumi.get(self, "locations_publics")
|
505
506
|
|
506
507
|
@locations_publics.setter
|
507
|
-
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
508
|
+
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
508
509
|
pulumi.set(self, "locations_publics", value)
|
509
510
|
|
510
511
|
@property
|
511
512
|
@pulumi.getter
|
512
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
513
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
513
514
|
"""
|
514
515
|
The name for the monitor.
|
515
516
|
"""
|
516
517
|
return pulumi.get(self, "name")
|
517
518
|
|
518
519
|
@name.setter
|
519
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
520
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
520
521
|
pulumi.set(self, "name", value)
|
521
522
|
|
522
523
|
@property
|
523
524
|
@pulumi.getter
|
524
|
-
def period(self) -> Optional[pulumi.Input[str]]:
|
525
|
+
def period(self) -> Optional[pulumi.Input[builtins.str]]:
|
525
526
|
"""
|
526
527
|
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
528
|
"""
|
528
529
|
return pulumi.get(self, "period")
|
529
530
|
|
530
531
|
@period.setter
|
531
|
-
def period(self, value: Optional[pulumi.Input[str]]):
|
532
|
+
def period(self, value: Optional[pulumi.Input[builtins.str]]):
|
532
533
|
pulumi.set(self, "period", value)
|
533
534
|
|
534
535
|
@property
|
535
536
|
@pulumi.getter(name="periodInMinutes")
|
536
|
-
def period_in_minutes(self) -> Optional[pulumi.Input[int]]:
|
537
|
+
def period_in_minutes(self) -> Optional[pulumi.Input[builtins.int]]:
|
537
538
|
"""
|
538
539
|
The interval in minutes at which Synthetic monitor should run.
|
539
540
|
"""
|
540
541
|
return pulumi.get(self, "period_in_minutes")
|
541
542
|
|
542
543
|
@period_in_minutes.setter
|
543
|
-
def period_in_minutes(self, value: Optional[pulumi.Input[int]]):
|
544
|
+
def period_in_minutes(self, value: Optional[pulumi.Input[builtins.int]]):
|
544
545
|
pulumi.set(self, "period_in_minutes", value)
|
545
546
|
|
546
547
|
@property
|
547
548
|
@pulumi.getter(name="runtimeType")
|
548
|
-
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
549
|
+
def runtime_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
549
550
|
"""
|
550
551
|
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
552
|
"""
|
552
553
|
return pulumi.get(self, "runtime_type")
|
553
554
|
|
554
555
|
@runtime_type.setter
|
555
|
-
def runtime_type(self, value: Optional[pulumi.Input[str]]):
|
556
|
+
def runtime_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
556
557
|
pulumi.set(self, "runtime_type", value)
|
557
558
|
|
558
559
|
@property
|
559
560
|
@pulumi.getter(name="runtimeTypeVersion")
|
560
|
-
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
561
|
+
def runtime_type_version(self) -> Optional[pulumi.Input[builtins.str]]:
|
561
562
|
"""
|
562
563
|
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
564
|
"""
|
564
565
|
return pulumi.get(self, "runtime_type_version")
|
565
566
|
|
566
567
|
@runtime_type_version.setter
|
567
|
-
def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
|
568
|
+
def runtime_type_version(self, value: Optional[pulumi.Input[builtins.str]]):
|
568
569
|
pulumi.set(self, "runtime_type_version", value)
|
569
570
|
|
570
571
|
@property
|
571
572
|
@pulumi.getter
|
572
|
-
def script(self) -> Optional[pulumi.Input[str]]:
|
573
|
+
def script(self) -> Optional[pulumi.Input[builtins.str]]:
|
573
574
|
"""
|
574
575
|
The script that the monitor runs.
|
575
576
|
"""
|
576
577
|
return pulumi.get(self, "script")
|
577
578
|
|
578
579
|
@script.setter
|
579
|
-
def script(self, value: Optional[pulumi.Input[str]]):
|
580
|
+
def script(self, value: Optional[pulumi.Input[builtins.str]]):
|
580
581
|
pulumi.set(self, "script", value)
|
581
582
|
|
582
583
|
@property
|
583
584
|
@pulumi.getter(name="scriptLanguage")
|
584
|
-
def script_language(self) -> Optional[pulumi.Input[str]]:
|
585
|
+
def script_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
585
586
|
"""
|
586
587
|
The programing language that should execute the script.
|
587
588
|
"""
|
588
589
|
return pulumi.get(self, "script_language")
|
589
590
|
|
590
591
|
@script_language.setter
|
591
|
-
def script_language(self, value: Optional[pulumi.Input[str]]):
|
592
|
+
def script_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
592
593
|
pulumi.set(self, "script_language", value)
|
593
594
|
|
594
595
|
@property
|
595
596
|
@pulumi.getter
|
596
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
597
|
+
def status(self) -> Optional[pulumi.Input[builtins.str]]:
|
597
598
|
"""
|
598
599
|
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
599
600
|
"""
|
600
601
|
return pulumi.get(self, "status")
|
601
602
|
|
602
603
|
@status.setter
|
603
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
604
|
+
def status(self, value: Optional[pulumi.Input[builtins.str]]):
|
604
605
|
pulumi.set(self, "status", value)
|
605
606
|
|
606
607
|
@property
|
@@ -619,23 +620,23 @@ class _ScriptMonitorState:
|
|
619
620
|
|
620
621
|
@property
|
621
622
|
@pulumi.getter
|
622
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
623
|
+
def type(self) -> Optional[pulumi.Input[builtins.str]]:
|
623
624
|
"""
|
624
625
|
The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
625
626
|
"""
|
626
627
|
return pulumi.get(self, "type")
|
627
628
|
|
628
629
|
@type.setter
|
629
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
630
|
+
def type(self, value: Optional[pulumi.Input[builtins.str]]):
|
630
631
|
pulumi.set(self, "type", value)
|
631
632
|
|
632
633
|
@property
|
633
634
|
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
634
|
-
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[bool]]:
|
635
|
+
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[builtins.bool]]:
|
635
636
|
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
636
637
|
|
637
638
|
@use_unsupported_legacy_runtime.setter
|
638
|
-
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[bool]]):
|
639
|
+
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[builtins.bool]]):
|
639
640
|
pulumi.set(self, "use_unsupported_legacy_runtime", value)
|
640
641
|
|
641
642
|
|
@@ -644,24 +645,24 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
644
645
|
def __init__(__self__,
|
645
646
|
resource_name: str,
|
646
647
|
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,
|
648
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
649
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
650
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
651
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
652
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
653
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
653
654
|
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,
|
655
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
656
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
657
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
658
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
659
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
660
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
661
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
662
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
662
663
|
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,
|
664
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
665
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
665
666
|
__props__=None):
|
666
667
|
"""
|
667
668
|
## Example Usage
|
@@ -807,25 +808,25 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
807
808
|
|
808
809
|
:param str resource_name: The name of the resource.
|
809
810
|
: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.
|
811
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
812
|
+
: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`.
|
813
|
+
: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.
|
814
|
+
: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.
|
815
|
+
: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`.
|
816
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
816
817
|
: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`).
|
818
|
+
: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**.
|
819
|
+
:param pulumi.Input[builtins.str] name: The name for the monitor.
|
820
|
+
: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`.
|
821
|
+
: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`.
|
822
|
+
: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.
|
823
|
+
:param pulumi.Input[builtins.str] script: The script that the monitor runs.
|
824
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
825
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
825
826
|
: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
827
|
|
827
828
|
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
|
829
|
+
:param pulumi.Input[builtins.str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
829
830
|
"""
|
830
831
|
...
|
831
832
|
@overload
|
@@ -990,24 +991,24 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
990
991
|
def _internal_init(__self__,
|
991
992
|
resource_name: str,
|
992
993
|
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,
|
994
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
995
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
996
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
997
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
998
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
999
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
999
1000
|
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,
|
1001
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1002
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
1003
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
1004
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
1005
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
1006
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
1007
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
1008
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
1008
1009
|
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,
|
1010
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
1011
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
1011
1012
|
__props__=None):
|
1012
1013
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
1013
1014
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -1053,26 +1054,26 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1053
1054
|
def get(resource_name: str,
|
1054
1055
|
id: pulumi.Input[str],
|
1055
1056
|
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,
|
1057
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
1058
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1059
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
1060
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
1061
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1062
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
1063
|
+
guid: Optional[pulumi.Input[builtins.str]] = None,
|
1063
1064
|
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]]] = None,
|
1064
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1065
|
-
name: Optional[pulumi.Input[str]] = None,
|
1066
|
-
period: Optional[pulumi.Input[str]] = None,
|
1067
|
-
period_in_minutes: Optional[pulumi.Input[int]] = None,
|
1068
|
-
runtime_type: Optional[pulumi.Input[str]] = None,
|
1069
|
-
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
1070
|
-
script: Optional[pulumi.Input[str]] = None,
|
1071
|
-
script_language: Optional[pulumi.Input[str]] = None,
|
1072
|
-
status: Optional[pulumi.Input[str]] = None,
|
1065
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1066
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
1067
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
1068
|
+
period_in_minutes: Optional[pulumi.Input[builtins.int]] = None,
|
1069
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
1070
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
1071
|
+
script: Optional[pulumi.Input[builtins.str]] = None,
|
1072
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
1073
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
1073
1074
|
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':
|
1075
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
1076
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None) -> 'ScriptMonitor':
|
1076
1077
|
"""
|
1077
1078
|
Get an existing ScriptMonitor resource's state with the given name, id, and optional extra
|
1078
1079
|
properties used to qualify the lookup.
|
@@ -1080,27 +1081,27 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1080
1081
|
:param str resource_name: The unique name of the resulting resource.
|
1081
1082
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
1082
1083
|
: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.
|
1084
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
1085
|
+
: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`.
|
1086
|
+
: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.
|
1087
|
+
: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.
|
1088
|
+
: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`.
|
1089
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
1090
|
+
:param pulumi.Input[builtins.str] guid: The unique entity identifier of the monitor in New Relic.
|
1090
1091
|
: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] name: The name for the monitor.
|
1093
|
-
: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`.
|
1094
|
-
:param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
1095
|
-
: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`.
|
1096
|
-
: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.
|
1097
|
-
:param pulumi.Input[str] script: The script that the monitor runs.
|
1098
|
-
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
1099
|
-
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1092
|
+
: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**.
|
1093
|
+
:param pulumi.Input[builtins.str] name: The name for the monitor.
|
1094
|
+
: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`.
|
1095
|
+
:param pulumi.Input[builtins.int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
1096
|
+
: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`.
|
1097
|
+
: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.
|
1098
|
+
:param pulumi.Input[builtins.str] script: The script that the monitor runs.
|
1099
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
1100
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1100
1101
|
: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
1102
|
|
1102
1103
|
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
|
1104
|
+
:param pulumi.Input[builtins.str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
1104
1105
|
"""
|
1105
1106
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
1106
1107
|
|
@@ -1130,7 +1131,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1130
1131
|
|
1131
1132
|
@property
|
1132
1133
|
@pulumi.getter(name="accountId")
|
1133
|
-
def account_id(self) -> pulumi.Output[str]:
|
1134
|
+
def account_id(self) -> pulumi.Output[builtins.str]:
|
1134
1135
|
"""
|
1135
1136
|
The account in which the Synthetics monitor will be created.
|
1136
1137
|
"""
|
@@ -1138,7 +1139,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1138
1139
|
|
1139
1140
|
@property
|
1140
1141
|
@pulumi.getter
|
1141
|
-
def browsers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1142
|
+
def browsers(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1142
1143
|
"""
|
1143
1144
|
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
1144
1145
|
"""
|
@@ -1146,7 +1147,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1146
1147
|
|
1147
1148
|
@property
|
1148
1149
|
@pulumi.getter(name="deviceOrientation")
|
1149
|
-
def device_orientation(self) -> pulumi.Output[Optional[str]]:
|
1150
|
+
def device_orientation(self) -> pulumi.Output[Optional[builtins.str]]:
|
1150
1151
|
"""
|
1151
1152
|
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
1153
|
"""
|
@@ -1154,7 +1155,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1154
1155
|
|
1155
1156
|
@property
|
1156
1157
|
@pulumi.getter(name="deviceType")
|
1157
|
-
def device_type(self) -> pulumi.Output[Optional[str]]:
|
1158
|
+
def device_type(self) -> pulumi.Output[Optional[builtins.str]]:
|
1158
1159
|
"""
|
1159
1160
|
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
1161
|
"""
|
@@ -1162,7 +1163,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1162
1163
|
|
1163
1164
|
@property
|
1164
1165
|
@pulumi.getter
|
1165
|
-
def devices(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1166
|
+
def devices(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1166
1167
|
"""
|
1167
1168
|
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
1168
1169
|
"""
|
@@ -1170,7 +1171,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1170
1171
|
|
1171
1172
|
@property
|
1172
1173
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
1173
|
-
def enable_screenshot_on_failure_and_script(self) -> pulumi.Output[Optional[bool]]:
|
1174
|
+
def enable_screenshot_on_failure_and_script(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1174
1175
|
"""
|
1175
1176
|
Capture a screenshot during job execution.
|
1176
1177
|
"""
|
@@ -1178,7 +1179,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1178
1179
|
|
1179
1180
|
@property
|
1180
1181
|
@pulumi.getter
|
1181
|
-
def guid(self) -> pulumi.Output[str]:
|
1182
|
+
def guid(self) -> pulumi.Output[builtins.str]:
|
1182
1183
|
"""
|
1183
1184
|
The unique entity identifier of the monitor in New Relic.
|
1184
1185
|
"""
|
@@ -1194,7 +1195,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1194
1195
|
|
1195
1196
|
@property
|
1196
1197
|
@pulumi.getter(name="locationsPublics")
|
1197
|
-
def locations_publics(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1198
|
+
def locations_publics(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1198
1199
|
"""
|
1199
1200
|
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
1201
|
"""
|
@@ -1202,7 +1203,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1202
1203
|
|
1203
1204
|
@property
|
1204
1205
|
@pulumi.getter
|
1205
|
-
def name(self) -> pulumi.Output[str]:
|
1206
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
1206
1207
|
"""
|
1207
1208
|
The name for the monitor.
|
1208
1209
|
"""
|
@@ -1210,7 +1211,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1210
1211
|
|
1211
1212
|
@property
|
1212
1213
|
@pulumi.getter
|
1213
|
-
def period(self) -> pulumi.Output[str]:
|
1214
|
+
def period(self) -> pulumi.Output[builtins.str]:
|
1214
1215
|
"""
|
1215
1216
|
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
1217
|
"""
|
@@ -1218,7 +1219,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1218
1219
|
|
1219
1220
|
@property
|
1220
1221
|
@pulumi.getter(name="periodInMinutes")
|
1221
|
-
def period_in_minutes(self) -> pulumi.Output[int]:
|
1222
|
+
def period_in_minutes(self) -> pulumi.Output[builtins.int]:
|
1222
1223
|
"""
|
1223
1224
|
The interval in minutes at which Synthetic monitor should run.
|
1224
1225
|
"""
|
@@ -1226,7 +1227,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1226
1227
|
|
1227
1228
|
@property
|
1228
1229
|
@pulumi.getter(name="runtimeType")
|
1229
|
-
def runtime_type(self) -> pulumi.Output[Optional[str]]:
|
1230
|
+
def runtime_type(self) -> pulumi.Output[Optional[builtins.str]]:
|
1230
1231
|
"""
|
1231
1232
|
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
1233
|
"""
|
@@ -1234,7 +1235,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1234
1235
|
|
1235
1236
|
@property
|
1236
1237
|
@pulumi.getter(name="runtimeTypeVersion")
|
1237
|
-
def runtime_type_version(self) -> pulumi.Output[Optional[str]]:
|
1238
|
+
def runtime_type_version(self) -> pulumi.Output[Optional[builtins.str]]:
|
1238
1239
|
"""
|
1239
1240
|
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
1241
|
"""
|
@@ -1242,7 +1243,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1242
1243
|
|
1243
1244
|
@property
|
1244
1245
|
@pulumi.getter
|
1245
|
-
def script(self) -> pulumi.Output[Optional[str]]:
|
1246
|
+
def script(self) -> pulumi.Output[Optional[builtins.str]]:
|
1246
1247
|
"""
|
1247
1248
|
The script that the monitor runs.
|
1248
1249
|
"""
|
@@ -1250,7 +1251,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1250
1251
|
|
1251
1252
|
@property
|
1252
1253
|
@pulumi.getter(name="scriptLanguage")
|
1253
|
-
def script_language(self) -> pulumi.Output[Optional[str]]:
|
1254
|
+
def script_language(self) -> pulumi.Output[Optional[builtins.str]]:
|
1254
1255
|
"""
|
1255
1256
|
The programing language that should execute the script.
|
1256
1257
|
"""
|
@@ -1258,7 +1259,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1258
1259
|
|
1259
1260
|
@property
|
1260
1261
|
@pulumi.getter
|
1261
|
-
def status(self) -> pulumi.Output[str]:
|
1262
|
+
def status(self) -> pulumi.Output[builtins.str]:
|
1262
1263
|
"""
|
1263
1264
|
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1264
1265
|
"""
|
@@ -1276,7 +1277,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1276
1277
|
|
1277
1278
|
@property
|
1278
1279
|
@pulumi.getter
|
1279
|
-
def type(self) -> pulumi.Output[str]:
|
1280
|
+
def type(self) -> pulumi.Output[builtins.str]:
|
1280
1281
|
"""
|
1281
1282
|
The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
1282
1283
|
"""
|
@@ -1284,6 +1285,6 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1284
1285
|
|
1285
1286
|
@property
|
1286
1287
|
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
1287
|
-
def use_unsupported_legacy_runtime(self) -> pulumi.Output[Optional[bool]]:
|
1288
|
+
def use_unsupported_legacy_runtime(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1288
1289
|
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
1289
1290
|
|