pulumi-newrelic 5.44.0a1743218959__py3-none-any.whl → 5.44.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_newrelic/__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.1.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.44.1.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.1.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.44.0a1743218959.dist-info → pulumi_newrelic-5.44.1.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,59 +22,59 @@ __all__ = ['MonitorArgs', 'Monitor']
|
|
21
22
|
@pulumi.input_type
|
22
23
|
class MonitorArgs:
|
23
24
|
def __init__(__self__, *,
|
24
|
-
status: pulumi.Input[str],
|
25
|
-
type: pulumi.Input[str],
|
26
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
27
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
28
|
-
bypass_head_request: Optional[pulumi.Input[bool]] = None,
|
25
|
+
status: pulumi.Input[builtins.str],
|
26
|
+
type: pulumi.Input[builtins.str],
|
27
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
28
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
29
|
+
bypass_head_request: Optional[pulumi.Input[builtins.bool]] = None,
|
29
30
|
custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['MonitorCustomHeaderArgs']]]] = None,
|
30
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
31
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
32
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
33
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
34
|
-
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
35
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
36
|
-
name: Optional[pulumi.Input[str]] = None,
|
37
|
-
period: Optional[pulumi.Input[str]] = None,
|
38
|
-
runtime_type: Optional[pulumi.Input[str]] = None,
|
39
|
-
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
40
|
-
script_language: Optional[pulumi.Input[str]] = None,
|
31
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
32
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
33
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
34
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
35
|
+
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
36
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
37
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
38
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
39
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
40
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
41
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
41
42
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['MonitorTagArgs']]]] = None,
|
42
|
-
treat_redirect_as_failure: Optional[pulumi.Input[bool]] = None,
|
43
|
-
uri: Optional[pulumi.Input[str]] = None,
|
44
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
45
|
-
validation_string: Optional[pulumi.Input[str]] = None,
|
46
|
-
verify_ssl: Optional[pulumi.Input[bool]] = None):
|
43
|
+
treat_redirect_as_failure: Optional[pulumi.Input[builtins.bool]] = None,
|
44
|
+
uri: Optional[pulumi.Input[builtins.str]] = None,
|
45
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
46
|
+
validation_string: Optional[pulumi.Input[builtins.str]] = None,
|
47
|
+
verify_ssl: Optional[pulumi.Input[builtins.bool]] = None):
|
47
48
|
"""
|
48
49
|
The set of arguments for constructing a Monitor resource.
|
49
|
-
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
50
|
-
:param pulumi.Input[str] type: The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
51
|
-
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
52
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
53
|
-
:param pulumi.Input[bool] bypass_head_request: Monitor should skip default HEAD request and instead use GET verb in check.
|
50
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
51
|
+
:param pulumi.Input[builtins.str] type: The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
52
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
53
|
+
: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`.
|
54
|
+
:param pulumi.Input[builtins.bool] bypass_head_request: Monitor should skip default HEAD request and instead use GET verb in check.
|
54
55
|
|
55
56
|
The `BROWSER` monitor type supports the following additional arguments:
|
56
57
|
:param pulumi.Input[Sequence[pulumi.Input['MonitorCustomHeaderArgs']]] custom_headers: Custom headers to use in monitor job. See Nested custom_header blocks below for details.
|
57
|
-
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
58
|
+
:param pulumi.Input[builtins.str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
58
59
|
* 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.
|
59
|
-
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
60
|
+
:param pulumi.Input[builtins.str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
60
61
|
* 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.
|
61
|
-
: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`.
|
62
|
-
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
63
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
64
|
-
: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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
65
|
-
:param pulumi.Input[str] name: The human-readable identifier for the monitor.
|
66
|
-
: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`.
|
67
|
-
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
68
|
-
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected (`100`).
|
69
|
-
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
62
|
+
: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`.
|
63
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
64
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
65
|
+
: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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
66
|
+
:param pulumi.Input[builtins.str] name: The human-readable identifier for the monitor.
|
67
|
+
: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`.
|
68
|
+
:param pulumi.Input[builtins.str] runtime_type: The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
69
|
+
:param pulumi.Input[builtins.str] runtime_type_version: The specific version of the runtime type selected (`100`).
|
70
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
70
71
|
:param pulumi.Input[Sequence[pulumi.Input['MonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
71
72
|
|
72
73
|
The `SIMPLE` monitor type supports the following additional arguments:
|
73
|
-
:param pulumi.Input[bool] treat_redirect_as_failure: Categorize redirects during a monitor job as a failure.
|
74
|
-
:param pulumi.Input[str] uri: The URI the monitor runs against.
|
75
|
-
:param pulumi.Input[str] validation_string: Validation text for monitor to search for at given URI.
|
76
|
-
:param pulumi.Input[bool] verify_ssl: Monitor should validate SSL certificate chain.
|
74
|
+
:param pulumi.Input[builtins.bool] treat_redirect_as_failure: Categorize redirects during a monitor job as a failure.
|
75
|
+
:param pulumi.Input[builtins.str] uri: The URI the monitor runs against.
|
76
|
+
:param pulumi.Input[builtins.str] validation_string: Validation text for monitor to search for at given URI.
|
77
|
+
:param pulumi.Input[builtins.bool] verify_ssl: Monitor should validate SSL certificate chain.
|
77
78
|
"""
|
78
79
|
pulumi.set(__self__, "status", status)
|
79
80
|
pulumi.set(__self__, "type", type)
|
@@ -122,55 +123,55 @@ class MonitorArgs:
|
|
122
123
|
|
123
124
|
@property
|
124
125
|
@pulumi.getter
|
125
|
-
def status(self) -> pulumi.Input[str]:
|
126
|
+
def status(self) -> pulumi.Input[builtins.str]:
|
126
127
|
"""
|
127
128
|
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
128
129
|
"""
|
129
130
|
return pulumi.get(self, "status")
|
130
131
|
|
131
132
|
@status.setter
|
132
|
-
def status(self, value: pulumi.Input[str]):
|
133
|
+
def status(self, value: pulumi.Input[builtins.str]):
|
133
134
|
pulumi.set(self, "status", value)
|
134
135
|
|
135
136
|
@property
|
136
137
|
@pulumi.getter
|
137
|
-
def type(self) -> pulumi.Input[str]:
|
138
|
+
def type(self) -> pulumi.Input[builtins.str]:
|
138
139
|
"""
|
139
140
|
The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
140
141
|
"""
|
141
142
|
return pulumi.get(self, "type")
|
142
143
|
|
143
144
|
@type.setter
|
144
|
-
def type(self, value: pulumi.Input[str]):
|
145
|
+
def type(self, value: pulumi.Input[builtins.str]):
|
145
146
|
pulumi.set(self, "type", value)
|
146
147
|
|
147
148
|
@property
|
148
149
|
@pulumi.getter(name="accountId")
|
149
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
150
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
150
151
|
"""
|
151
152
|
The account in which the Synthetics monitor will be created.
|
152
153
|
"""
|
153
154
|
return pulumi.get(self, "account_id")
|
154
155
|
|
155
156
|
@account_id.setter
|
156
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
157
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
157
158
|
pulumi.set(self, "account_id", value)
|
158
159
|
|
159
160
|
@property
|
160
161
|
@pulumi.getter
|
161
|
-
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
162
|
+
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
162
163
|
"""
|
163
164
|
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
164
165
|
"""
|
165
166
|
return pulumi.get(self, "browsers")
|
166
167
|
|
167
168
|
@browsers.setter
|
168
|
-
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
169
|
+
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
169
170
|
pulumi.set(self, "browsers", value)
|
170
171
|
|
171
172
|
@property
|
172
173
|
@pulumi.getter(name="bypassHeadRequest")
|
173
|
-
def bypass_head_request(self) -> Optional[pulumi.Input[bool]]:
|
174
|
+
def bypass_head_request(self) -> Optional[pulumi.Input[builtins.bool]]:
|
174
175
|
"""
|
175
176
|
Monitor should skip default HEAD request and instead use GET verb in check.
|
176
177
|
|
@@ -179,7 +180,7 @@ class MonitorArgs:
|
|
179
180
|
return pulumi.get(self, "bypass_head_request")
|
180
181
|
|
181
182
|
@bypass_head_request.setter
|
182
|
-
def bypass_head_request(self, value: Optional[pulumi.Input[bool]]):
|
183
|
+
def bypass_head_request(self, value: Optional[pulumi.Input[builtins.bool]]):
|
183
184
|
pulumi.set(self, "bypass_head_request", value)
|
184
185
|
|
185
186
|
@property
|
@@ -196,7 +197,7 @@ class MonitorArgs:
|
|
196
197
|
|
197
198
|
@property
|
198
199
|
@pulumi.getter(name="deviceOrientation")
|
199
|
-
def device_orientation(self) -> Optional[pulumi.Input[str]]:
|
200
|
+
def device_orientation(self) -> Optional[pulumi.Input[builtins.str]]:
|
200
201
|
"""
|
201
202
|
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
202
203
|
* 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.
|
@@ -204,12 +205,12 @@ class MonitorArgs:
|
|
204
205
|
return pulumi.get(self, "device_orientation")
|
205
206
|
|
206
207
|
@device_orientation.setter
|
207
|
-
def device_orientation(self, value: Optional[pulumi.Input[str]]):
|
208
|
+
def device_orientation(self, value: Optional[pulumi.Input[builtins.str]]):
|
208
209
|
pulumi.set(self, "device_orientation", value)
|
209
210
|
|
210
211
|
@property
|
211
212
|
@pulumi.getter(name="deviceType")
|
212
|
-
def device_type(self) -> Optional[pulumi.Input[str]]:
|
213
|
+
def device_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
213
214
|
"""
|
214
215
|
Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
215
216
|
* 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.
|
@@ -217,115 +218,115 @@ class MonitorArgs:
|
|
217
218
|
return pulumi.get(self, "device_type")
|
218
219
|
|
219
220
|
@device_type.setter
|
220
|
-
def device_type(self, value: Optional[pulumi.Input[str]]):
|
221
|
+
def device_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
221
222
|
pulumi.set(self, "device_type", value)
|
222
223
|
|
223
224
|
@property
|
224
225
|
@pulumi.getter
|
225
|
-
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
226
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
226
227
|
"""
|
227
228
|
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
228
229
|
"""
|
229
230
|
return pulumi.get(self, "devices")
|
230
231
|
|
231
232
|
@devices.setter
|
232
|
-
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
233
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
233
234
|
pulumi.set(self, "devices", value)
|
234
235
|
|
235
236
|
@property
|
236
237
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
237
|
-
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[bool]]:
|
238
|
+
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[builtins.bool]]:
|
238
239
|
"""
|
239
240
|
Capture a screenshot during job execution.
|
240
241
|
"""
|
241
242
|
return pulumi.get(self, "enable_screenshot_on_failure_and_script")
|
242
243
|
|
243
244
|
@enable_screenshot_on_failure_and_script.setter
|
244
|
-
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[bool]]):
|
245
|
+
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[builtins.bool]]):
|
245
246
|
pulumi.set(self, "enable_screenshot_on_failure_and_script", value)
|
246
247
|
|
247
248
|
@property
|
248
249
|
@pulumi.getter(name="locationsPrivates")
|
249
|
-
def locations_privates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
250
|
+
def locations_privates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
250
251
|
"""
|
251
252
|
The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
252
253
|
"""
|
253
254
|
return pulumi.get(self, "locations_privates")
|
254
255
|
|
255
256
|
@locations_privates.setter
|
256
|
-
def locations_privates(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
257
|
+
def locations_privates(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
257
258
|
pulumi.set(self, "locations_privates", value)
|
258
259
|
|
259
260
|
@property
|
260
261
|
@pulumi.getter(name="locationsPublics")
|
261
|
-
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
262
|
+
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
262
263
|
"""
|
263
264
|
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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
264
265
|
"""
|
265
266
|
return pulumi.get(self, "locations_publics")
|
266
267
|
|
267
268
|
@locations_publics.setter
|
268
|
-
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
269
|
+
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
269
270
|
pulumi.set(self, "locations_publics", value)
|
270
271
|
|
271
272
|
@property
|
272
273
|
@pulumi.getter
|
273
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
274
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
274
275
|
"""
|
275
276
|
The human-readable identifier for the monitor.
|
276
277
|
"""
|
277
278
|
return pulumi.get(self, "name")
|
278
279
|
|
279
280
|
@name.setter
|
280
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
281
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
281
282
|
pulumi.set(self, "name", value)
|
282
283
|
|
283
284
|
@property
|
284
285
|
@pulumi.getter
|
285
|
-
def period(self) -> Optional[pulumi.Input[str]]:
|
286
|
+
def period(self) -> Optional[pulumi.Input[builtins.str]]:
|
286
287
|
"""
|
287
288
|
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`.
|
288
289
|
"""
|
289
290
|
return pulumi.get(self, "period")
|
290
291
|
|
291
292
|
@period.setter
|
292
|
-
def period(self, value: Optional[pulumi.Input[str]]):
|
293
|
+
def period(self, value: Optional[pulumi.Input[builtins.str]]):
|
293
294
|
pulumi.set(self, "period", value)
|
294
295
|
|
295
296
|
@property
|
296
297
|
@pulumi.getter(name="runtimeType")
|
297
|
-
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
298
|
+
def runtime_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
298
299
|
"""
|
299
300
|
The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
300
301
|
"""
|
301
302
|
return pulumi.get(self, "runtime_type")
|
302
303
|
|
303
304
|
@runtime_type.setter
|
304
|
-
def runtime_type(self, value: Optional[pulumi.Input[str]]):
|
305
|
+
def runtime_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
305
306
|
pulumi.set(self, "runtime_type", value)
|
306
307
|
|
307
308
|
@property
|
308
309
|
@pulumi.getter(name="runtimeTypeVersion")
|
309
|
-
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
310
|
+
def runtime_type_version(self) -> Optional[pulumi.Input[builtins.str]]:
|
310
311
|
"""
|
311
312
|
The specific version of the runtime type selected (`100`).
|
312
313
|
"""
|
313
314
|
return pulumi.get(self, "runtime_type_version")
|
314
315
|
|
315
316
|
@runtime_type_version.setter
|
316
|
-
def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
|
317
|
+
def runtime_type_version(self, value: Optional[pulumi.Input[builtins.str]]):
|
317
318
|
pulumi.set(self, "runtime_type_version", value)
|
318
319
|
|
319
320
|
@property
|
320
321
|
@pulumi.getter(name="scriptLanguage")
|
321
|
-
def script_language(self) -> Optional[pulumi.Input[str]]:
|
322
|
+
def script_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
322
323
|
"""
|
323
324
|
The programing language that should execute the script.
|
324
325
|
"""
|
325
326
|
return pulumi.get(self, "script_language")
|
326
327
|
|
327
328
|
@script_language.setter
|
328
|
-
def script_language(self, value: Optional[pulumi.Input[str]]):
|
329
|
+
def script_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
329
330
|
pulumi.set(self, "script_language", value)
|
330
331
|
|
331
332
|
@property
|
@@ -344,120 +345,122 @@ class MonitorArgs:
|
|
344
345
|
|
345
346
|
@property
|
346
347
|
@pulumi.getter(name="treatRedirectAsFailure")
|
347
|
-
def treat_redirect_as_failure(self) -> Optional[pulumi.Input[bool]]:
|
348
|
+
def treat_redirect_as_failure(self) -> Optional[pulumi.Input[builtins.bool]]:
|
348
349
|
"""
|
349
350
|
Categorize redirects during a monitor job as a failure.
|
350
351
|
"""
|
351
352
|
return pulumi.get(self, "treat_redirect_as_failure")
|
352
353
|
|
353
354
|
@treat_redirect_as_failure.setter
|
354
|
-
def treat_redirect_as_failure(self, value: Optional[pulumi.Input[bool]]):
|
355
|
+
def treat_redirect_as_failure(self, value: Optional[pulumi.Input[builtins.bool]]):
|
355
356
|
pulumi.set(self, "treat_redirect_as_failure", value)
|
356
357
|
|
357
358
|
@property
|
358
359
|
@pulumi.getter
|
359
|
-
def uri(self) -> Optional[pulumi.Input[str]]:
|
360
|
+
def uri(self) -> Optional[pulumi.Input[builtins.str]]:
|
360
361
|
"""
|
361
362
|
The URI the monitor runs against.
|
362
363
|
"""
|
363
364
|
return pulumi.get(self, "uri")
|
364
365
|
|
365
366
|
@uri.setter
|
366
|
-
def uri(self, value: Optional[pulumi.Input[str]]):
|
367
|
+
def uri(self, value: Optional[pulumi.Input[builtins.str]]):
|
367
368
|
pulumi.set(self, "uri", value)
|
368
369
|
|
369
370
|
@property
|
370
371
|
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
371
|
-
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[bool]]:
|
372
|
+
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[builtins.bool]]:
|
372
373
|
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
373
374
|
|
374
375
|
@use_unsupported_legacy_runtime.setter
|
375
|
-
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[bool]]):
|
376
|
+
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[builtins.bool]]):
|
376
377
|
pulumi.set(self, "use_unsupported_legacy_runtime", value)
|
377
378
|
|
378
379
|
@property
|
379
380
|
@pulumi.getter(name="validationString")
|
380
|
-
def validation_string(self) -> Optional[pulumi.Input[str]]:
|
381
|
+
def validation_string(self) -> Optional[pulumi.Input[builtins.str]]:
|
381
382
|
"""
|
382
383
|
Validation text for monitor to search for at given URI.
|
383
384
|
"""
|
384
385
|
return pulumi.get(self, "validation_string")
|
385
386
|
|
386
387
|
@validation_string.setter
|
387
|
-
def validation_string(self, value: Optional[pulumi.Input[str]]):
|
388
|
+
def validation_string(self, value: Optional[pulumi.Input[builtins.str]]):
|
388
389
|
pulumi.set(self, "validation_string", value)
|
389
390
|
|
390
391
|
@property
|
391
392
|
@pulumi.getter(name="verifySsl")
|
392
|
-
def verify_ssl(self) -> Optional[pulumi.Input[bool]]:
|
393
|
+
def verify_ssl(self) -> Optional[pulumi.Input[builtins.bool]]:
|
393
394
|
"""
|
394
395
|
Monitor should validate SSL certificate chain.
|
395
396
|
"""
|
396
397
|
return pulumi.get(self, "verify_ssl")
|
397
398
|
|
398
399
|
@verify_ssl.setter
|
399
|
-
def verify_ssl(self, value: Optional[pulumi.Input[bool]]):
|
400
|
+
def verify_ssl(self, value: Optional[pulumi.Input[builtins.bool]]):
|
400
401
|
pulumi.set(self, "verify_ssl", value)
|
401
402
|
|
402
403
|
|
403
404
|
@pulumi.input_type
|
404
405
|
class _MonitorState:
|
405
406
|
def __init__(__self__, *,
|
406
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
407
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
408
|
-
bypass_head_request: Optional[pulumi.Input[bool]] = None,
|
407
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
408
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
409
|
+
bypass_head_request: Optional[pulumi.Input[builtins.bool]] = None,
|
409
410
|
custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['MonitorCustomHeaderArgs']]]] = None,
|
410
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
411
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
412
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
413
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
414
|
-
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
415
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
411
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
412
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
413
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
414
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
415
|
+
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
416
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
417
|
+
monitor_id: Optional[pulumi.Input[builtins.str]] = None,
|
418
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
419
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
420
|
+
period_in_minutes: Optional[pulumi.Input[builtins.int]] = None,
|
421
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
422
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
423
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
424
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
423
425
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['MonitorTagArgs']]]] = None,
|
424
|
-
treat_redirect_as_failure: Optional[pulumi.Input[bool]] = None,
|
425
|
-
type: Optional[pulumi.Input[str]] = None,
|
426
|
-
uri: Optional[pulumi.Input[str]] = None,
|
427
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
428
|
-
validation_string: Optional[pulumi.Input[str]] = None,
|
429
|
-
verify_ssl: Optional[pulumi.Input[bool]] = None):
|
426
|
+
treat_redirect_as_failure: Optional[pulumi.Input[builtins.bool]] = None,
|
427
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
428
|
+
uri: Optional[pulumi.Input[builtins.str]] = None,
|
429
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
430
|
+
validation_string: Optional[pulumi.Input[builtins.str]] = None,
|
431
|
+
verify_ssl: Optional[pulumi.Input[builtins.bool]] = None):
|
430
432
|
"""
|
431
433
|
Input properties used for looking up and filtering Monitor resources.
|
432
|
-
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
433
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
434
|
-
:param pulumi.Input[bool] bypass_head_request: Monitor should skip default HEAD request and instead use GET verb in check.
|
434
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
435
|
+
: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`.
|
436
|
+
:param pulumi.Input[builtins.bool] bypass_head_request: Monitor should skip default HEAD request and instead use GET verb in check.
|
435
437
|
|
436
438
|
The `BROWSER` monitor type supports the following additional arguments:
|
437
439
|
:param pulumi.Input[Sequence[pulumi.Input['MonitorCustomHeaderArgs']]] custom_headers: Custom headers to use in monitor job. See Nested custom_header blocks below for details.
|
438
|
-
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
440
|
+
:param pulumi.Input[builtins.str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
439
441
|
* 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.
|
440
|
-
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
442
|
+
:param pulumi.Input[builtins.str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
441
443
|
* 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.
|
442
|
-
: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`.
|
443
|
-
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
444
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
445
|
-
: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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
446
|
-
:param pulumi.Input[str]
|
447
|
-
:param pulumi.Input[str]
|
448
|
-
:param pulumi.Input[
|
449
|
-
:param pulumi.Input[
|
450
|
-
:param pulumi.Input[str]
|
451
|
-
:param pulumi.Input[str]
|
452
|
-
:param pulumi.Input[str]
|
444
|
+
: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`.
|
445
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
446
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
447
|
+
: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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
448
|
+
:param pulumi.Input[builtins.str] monitor_id: The monitor id of the Synthetics monitor (not to be confused with the GUID of the monitor).
|
449
|
+
:param pulumi.Input[builtins.str] name: The human-readable identifier for the monitor.
|
450
|
+
: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`.
|
451
|
+
:param pulumi.Input[builtins.int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
452
|
+
:param pulumi.Input[builtins.str] runtime_type: The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
453
|
+
:param pulumi.Input[builtins.str] runtime_type_version: The specific version of the runtime type selected (`100`).
|
454
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
455
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
453
456
|
:param pulumi.Input[Sequence[pulumi.Input['MonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
454
457
|
|
455
458
|
The `SIMPLE` monitor type supports the following additional arguments:
|
456
|
-
:param pulumi.Input[bool] treat_redirect_as_failure: Categorize redirects during a monitor job as a failure.
|
457
|
-
:param pulumi.Input[str] type: The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
458
|
-
:param pulumi.Input[str] uri: The URI the monitor runs against.
|
459
|
-
:param pulumi.Input[str] validation_string: Validation text for monitor to search for at given URI.
|
460
|
-
:param pulumi.Input[bool] verify_ssl: Monitor should validate SSL certificate chain.
|
459
|
+
:param pulumi.Input[builtins.bool] treat_redirect_as_failure: Categorize redirects during a monitor job as a failure.
|
460
|
+
:param pulumi.Input[builtins.str] type: The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
461
|
+
:param pulumi.Input[builtins.str] uri: The URI the monitor runs against.
|
462
|
+
:param pulumi.Input[builtins.str] validation_string: Validation text for monitor to search for at given URI.
|
463
|
+
:param pulumi.Input[builtins.bool] verify_ssl: Monitor should validate SSL certificate chain.
|
461
464
|
"""
|
462
465
|
if account_id is not None:
|
463
466
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -479,6 +482,8 @@ class _MonitorState:
|
|
479
482
|
pulumi.set(__self__, "locations_privates", locations_privates)
|
480
483
|
if locations_publics is not None:
|
481
484
|
pulumi.set(__self__, "locations_publics", locations_publics)
|
485
|
+
if monitor_id is not None:
|
486
|
+
pulumi.set(__self__, "monitor_id", monitor_id)
|
482
487
|
if name is not None:
|
483
488
|
pulumi.set(__self__, "name", name)
|
484
489
|
if period is not None:
|
@@ -510,31 +515,31 @@ class _MonitorState:
|
|
510
515
|
|
511
516
|
@property
|
512
517
|
@pulumi.getter(name="accountId")
|
513
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
518
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
514
519
|
"""
|
515
520
|
The account in which the Synthetics monitor will be created.
|
516
521
|
"""
|
517
522
|
return pulumi.get(self, "account_id")
|
518
523
|
|
519
524
|
@account_id.setter
|
520
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
525
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
521
526
|
pulumi.set(self, "account_id", value)
|
522
527
|
|
523
528
|
@property
|
524
529
|
@pulumi.getter
|
525
|
-
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
530
|
+
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
526
531
|
"""
|
527
532
|
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
528
533
|
"""
|
529
534
|
return pulumi.get(self, "browsers")
|
530
535
|
|
531
536
|
@browsers.setter
|
532
|
-
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
537
|
+
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
533
538
|
pulumi.set(self, "browsers", value)
|
534
539
|
|
535
540
|
@property
|
536
541
|
@pulumi.getter(name="bypassHeadRequest")
|
537
|
-
def bypass_head_request(self) -> Optional[pulumi.Input[bool]]:
|
542
|
+
def bypass_head_request(self) -> Optional[pulumi.Input[builtins.bool]]:
|
538
543
|
"""
|
539
544
|
Monitor should skip default HEAD request and instead use GET verb in check.
|
540
545
|
|
@@ -543,7 +548,7 @@ class _MonitorState:
|
|
543
548
|
return pulumi.get(self, "bypass_head_request")
|
544
549
|
|
545
550
|
@bypass_head_request.setter
|
546
|
-
def bypass_head_request(self, value: Optional[pulumi.Input[bool]]):
|
551
|
+
def bypass_head_request(self, value: Optional[pulumi.Input[builtins.bool]]):
|
547
552
|
pulumi.set(self, "bypass_head_request", value)
|
548
553
|
|
549
554
|
@property
|
@@ -560,7 +565,7 @@ class _MonitorState:
|
|
560
565
|
|
561
566
|
@property
|
562
567
|
@pulumi.getter(name="deviceOrientation")
|
563
|
-
def device_orientation(self) -> Optional[pulumi.Input[str]]:
|
568
|
+
def device_orientation(self) -> Optional[pulumi.Input[builtins.str]]:
|
564
569
|
"""
|
565
570
|
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
566
571
|
* 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.
|
@@ -568,12 +573,12 @@ class _MonitorState:
|
|
568
573
|
return pulumi.get(self, "device_orientation")
|
569
574
|
|
570
575
|
@device_orientation.setter
|
571
|
-
def device_orientation(self, value: Optional[pulumi.Input[str]]):
|
576
|
+
def device_orientation(self, value: Optional[pulumi.Input[builtins.str]]):
|
572
577
|
pulumi.set(self, "device_orientation", value)
|
573
578
|
|
574
579
|
@property
|
575
580
|
@pulumi.getter(name="deviceType")
|
576
|
-
def device_type(self) -> Optional[pulumi.Input[str]]:
|
581
|
+
def device_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
577
582
|
"""
|
578
583
|
Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
579
584
|
* 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.
|
@@ -581,139 +586,151 @@ class _MonitorState:
|
|
581
586
|
return pulumi.get(self, "device_type")
|
582
587
|
|
583
588
|
@device_type.setter
|
584
|
-
def device_type(self, value: Optional[pulumi.Input[str]]):
|
589
|
+
def device_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
585
590
|
pulumi.set(self, "device_type", value)
|
586
591
|
|
587
592
|
@property
|
588
593
|
@pulumi.getter
|
589
|
-
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
594
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
590
595
|
"""
|
591
596
|
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
592
597
|
"""
|
593
598
|
return pulumi.get(self, "devices")
|
594
599
|
|
595
600
|
@devices.setter
|
596
|
-
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
601
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
597
602
|
pulumi.set(self, "devices", value)
|
598
603
|
|
599
604
|
@property
|
600
605
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
601
|
-
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[bool]]:
|
606
|
+
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[builtins.bool]]:
|
602
607
|
"""
|
603
608
|
Capture a screenshot during job execution.
|
604
609
|
"""
|
605
610
|
return pulumi.get(self, "enable_screenshot_on_failure_and_script")
|
606
611
|
|
607
612
|
@enable_screenshot_on_failure_and_script.setter
|
608
|
-
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[bool]]):
|
613
|
+
def enable_screenshot_on_failure_and_script(self, value: Optional[pulumi.Input[builtins.bool]]):
|
609
614
|
pulumi.set(self, "enable_screenshot_on_failure_and_script", value)
|
610
615
|
|
611
616
|
@property
|
612
617
|
@pulumi.getter(name="locationsPrivates")
|
613
|
-
def locations_privates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
618
|
+
def locations_privates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
614
619
|
"""
|
615
620
|
The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
616
621
|
"""
|
617
622
|
return pulumi.get(self, "locations_privates")
|
618
623
|
|
619
624
|
@locations_privates.setter
|
620
|
-
def locations_privates(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
625
|
+
def locations_privates(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
621
626
|
pulumi.set(self, "locations_privates", value)
|
622
627
|
|
623
628
|
@property
|
624
629
|
@pulumi.getter(name="locationsPublics")
|
625
|
-
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
630
|
+
def locations_publics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
626
631
|
"""
|
627
632
|
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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
628
633
|
"""
|
629
634
|
return pulumi.get(self, "locations_publics")
|
630
635
|
|
631
636
|
@locations_publics.setter
|
632
|
-
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
637
|
+
def locations_publics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
633
638
|
pulumi.set(self, "locations_publics", value)
|
634
639
|
|
640
|
+
@property
|
641
|
+
@pulumi.getter(name="monitorId")
|
642
|
+
def monitor_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
643
|
+
"""
|
644
|
+
The monitor id of the Synthetics monitor (not to be confused with the GUID of the monitor).
|
645
|
+
"""
|
646
|
+
return pulumi.get(self, "monitor_id")
|
647
|
+
|
648
|
+
@monitor_id.setter
|
649
|
+
def monitor_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
650
|
+
pulumi.set(self, "monitor_id", value)
|
651
|
+
|
635
652
|
@property
|
636
653
|
@pulumi.getter
|
637
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
654
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
638
655
|
"""
|
639
656
|
The human-readable identifier for the monitor.
|
640
657
|
"""
|
641
658
|
return pulumi.get(self, "name")
|
642
659
|
|
643
660
|
@name.setter
|
644
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
661
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
645
662
|
pulumi.set(self, "name", value)
|
646
663
|
|
647
664
|
@property
|
648
665
|
@pulumi.getter
|
649
|
-
def period(self) -> Optional[pulumi.Input[str]]:
|
666
|
+
def period(self) -> Optional[pulumi.Input[builtins.str]]:
|
650
667
|
"""
|
651
668
|
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`.
|
652
669
|
"""
|
653
670
|
return pulumi.get(self, "period")
|
654
671
|
|
655
672
|
@period.setter
|
656
|
-
def period(self, value: Optional[pulumi.Input[str]]):
|
673
|
+
def period(self, value: Optional[pulumi.Input[builtins.str]]):
|
657
674
|
pulumi.set(self, "period", value)
|
658
675
|
|
659
676
|
@property
|
660
677
|
@pulumi.getter(name="periodInMinutes")
|
661
|
-
def period_in_minutes(self) -> Optional[pulumi.Input[int]]:
|
678
|
+
def period_in_minutes(self) -> Optional[pulumi.Input[builtins.int]]:
|
662
679
|
"""
|
663
680
|
The interval in minutes at which Synthetic monitor should run.
|
664
681
|
"""
|
665
682
|
return pulumi.get(self, "period_in_minutes")
|
666
683
|
|
667
684
|
@period_in_minutes.setter
|
668
|
-
def period_in_minutes(self, value: Optional[pulumi.Input[int]]):
|
685
|
+
def period_in_minutes(self, value: Optional[pulumi.Input[builtins.int]]):
|
669
686
|
pulumi.set(self, "period_in_minutes", value)
|
670
687
|
|
671
688
|
@property
|
672
689
|
@pulumi.getter(name="runtimeType")
|
673
|
-
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
690
|
+
def runtime_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
674
691
|
"""
|
675
692
|
The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
676
693
|
"""
|
677
694
|
return pulumi.get(self, "runtime_type")
|
678
695
|
|
679
696
|
@runtime_type.setter
|
680
|
-
def runtime_type(self, value: Optional[pulumi.Input[str]]):
|
697
|
+
def runtime_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
681
698
|
pulumi.set(self, "runtime_type", value)
|
682
699
|
|
683
700
|
@property
|
684
701
|
@pulumi.getter(name="runtimeTypeVersion")
|
685
|
-
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
702
|
+
def runtime_type_version(self) -> Optional[pulumi.Input[builtins.str]]:
|
686
703
|
"""
|
687
704
|
The specific version of the runtime type selected (`100`).
|
688
705
|
"""
|
689
706
|
return pulumi.get(self, "runtime_type_version")
|
690
707
|
|
691
708
|
@runtime_type_version.setter
|
692
|
-
def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
|
709
|
+
def runtime_type_version(self, value: Optional[pulumi.Input[builtins.str]]):
|
693
710
|
pulumi.set(self, "runtime_type_version", value)
|
694
711
|
|
695
712
|
@property
|
696
713
|
@pulumi.getter(name="scriptLanguage")
|
697
|
-
def script_language(self) -> Optional[pulumi.Input[str]]:
|
714
|
+
def script_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
698
715
|
"""
|
699
716
|
The programing language that should execute the script.
|
700
717
|
"""
|
701
718
|
return pulumi.get(self, "script_language")
|
702
719
|
|
703
720
|
@script_language.setter
|
704
|
-
def script_language(self, value: Optional[pulumi.Input[str]]):
|
721
|
+
def script_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
705
722
|
pulumi.set(self, "script_language", value)
|
706
723
|
|
707
724
|
@property
|
708
725
|
@pulumi.getter
|
709
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
726
|
+
def status(self) -> Optional[pulumi.Input[builtins.str]]:
|
710
727
|
"""
|
711
728
|
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
712
729
|
"""
|
713
730
|
return pulumi.get(self, "status")
|
714
731
|
|
715
732
|
@status.setter
|
716
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
733
|
+
def status(self, value: Optional[pulumi.Input[builtins.str]]):
|
717
734
|
pulumi.set(self, "status", value)
|
718
735
|
|
719
736
|
@property
|
@@ -732,71 +749,71 @@ class _MonitorState:
|
|
732
749
|
|
733
750
|
@property
|
734
751
|
@pulumi.getter(name="treatRedirectAsFailure")
|
735
|
-
def treat_redirect_as_failure(self) -> Optional[pulumi.Input[bool]]:
|
752
|
+
def treat_redirect_as_failure(self) -> Optional[pulumi.Input[builtins.bool]]:
|
736
753
|
"""
|
737
754
|
Categorize redirects during a monitor job as a failure.
|
738
755
|
"""
|
739
756
|
return pulumi.get(self, "treat_redirect_as_failure")
|
740
757
|
|
741
758
|
@treat_redirect_as_failure.setter
|
742
|
-
def treat_redirect_as_failure(self, value: Optional[pulumi.Input[bool]]):
|
759
|
+
def treat_redirect_as_failure(self, value: Optional[pulumi.Input[builtins.bool]]):
|
743
760
|
pulumi.set(self, "treat_redirect_as_failure", value)
|
744
761
|
|
745
762
|
@property
|
746
763
|
@pulumi.getter
|
747
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
764
|
+
def type(self) -> Optional[pulumi.Input[builtins.str]]:
|
748
765
|
"""
|
749
766
|
The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
750
767
|
"""
|
751
768
|
return pulumi.get(self, "type")
|
752
769
|
|
753
770
|
@type.setter
|
754
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
771
|
+
def type(self, value: Optional[pulumi.Input[builtins.str]]):
|
755
772
|
pulumi.set(self, "type", value)
|
756
773
|
|
757
774
|
@property
|
758
775
|
@pulumi.getter
|
759
|
-
def uri(self) -> Optional[pulumi.Input[str]]:
|
776
|
+
def uri(self) -> Optional[pulumi.Input[builtins.str]]:
|
760
777
|
"""
|
761
778
|
The URI the monitor runs against.
|
762
779
|
"""
|
763
780
|
return pulumi.get(self, "uri")
|
764
781
|
|
765
782
|
@uri.setter
|
766
|
-
def uri(self, value: Optional[pulumi.Input[str]]):
|
783
|
+
def uri(self, value: Optional[pulumi.Input[builtins.str]]):
|
767
784
|
pulumi.set(self, "uri", value)
|
768
785
|
|
769
786
|
@property
|
770
787
|
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
771
|
-
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[bool]]:
|
788
|
+
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[builtins.bool]]:
|
772
789
|
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
773
790
|
|
774
791
|
@use_unsupported_legacy_runtime.setter
|
775
|
-
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[bool]]):
|
792
|
+
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[builtins.bool]]):
|
776
793
|
pulumi.set(self, "use_unsupported_legacy_runtime", value)
|
777
794
|
|
778
795
|
@property
|
779
796
|
@pulumi.getter(name="validationString")
|
780
|
-
def validation_string(self) -> Optional[pulumi.Input[str]]:
|
797
|
+
def validation_string(self) -> Optional[pulumi.Input[builtins.str]]:
|
781
798
|
"""
|
782
799
|
Validation text for monitor to search for at given URI.
|
783
800
|
"""
|
784
801
|
return pulumi.get(self, "validation_string")
|
785
802
|
|
786
803
|
@validation_string.setter
|
787
|
-
def validation_string(self, value: Optional[pulumi.Input[str]]):
|
804
|
+
def validation_string(self, value: Optional[pulumi.Input[builtins.str]]):
|
788
805
|
pulumi.set(self, "validation_string", value)
|
789
806
|
|
790
807
|
@property
|
791
808
|
@pulumi.getter(name="verifySsl")
|
792
|
-
def verify_ssl(self) -> Optional[pulumi.Input[bool]]:
|
809
|
+
def verify_ssl(self) -> Optional[pulumi.Input[builtins.bool]]:
|
793
810
|
"""
|
794
811
|
Monitor should validate SSL certificate chain.
|
795
812
|
"""
|
796
813
|
return pulumi.get(self, "verify_ssl")
|
797
814
|
|
798
815
|
@verify_ssl.setter
|
799
|
-
def verify_ssl(self, value: Optional[pulumi.Input[bool]]):
|
816
|
+
def verify_ssl(self, value: Optional[pulumi.Input[builtins.bool]]):
|
800
817
|
pulumi.set(self, "verify_ssl", value)
|
801
818
|
|
802
819
|
|
@@ -805,29 +822,29 @@ class Monitor(pulumi.CustomResource):
|
|
805
822
|
def __init__(__self__,
|
806
823
|
resource_name: str,
|
807
824
|
opts: Optional[pulumi.ResourceOptions] = None,
|
808
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
809
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
810
|
-
bypass_head_request: Optional[pulumi.Input[bool]] = None,
|
825
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
826
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
827
|
+
bypass_head_request: Optional[pulumi.Input[builtins.bool]] = None,
|
811
828
|
custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitorCustomHeaderArgs', 'MonitorCustomHeaderArgsDict']]]]] = None,
|
812
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
813
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
814
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
815
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
816
|
-
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
817
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
818
|
-
name: Optional[pulumi.Input[str]] = None,
|
819
|
-
period: Optional[pulumi.Input[str]] = None,
|
820
|
-
runtime_type: Optional[pulumi.Input[str]] = None,
|
821
|
-
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
822
|
-
script_language: Optional[pulumi.Input[str]] = None,
|
823
|
-
status: Optional[pulumi.Input[str]] = None,
|
829
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
830
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
831
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
832
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
833
|
+
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
834
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
835
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
836
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
837
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
838
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
839
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
840
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
824
841
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitorTagArgs', 'MonitorTagArgsDict']]]]] = None,
|
825
|
-
treat_redirect_as_failure: Optional[pulumi.Input[bool]] = None,
|
826
|
-
type: Optional[pulumi.Input[str]] = None,
|
827
|
-
uri: Optional[pulumi.Input[str]] = None,
|
828
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
829
|
-
validation_string: Optional[pulumi.Input[str]] = None,
|
830
|
-
verify_ssl: Optional[pulumi.Input[bool]] = None,
|
842
|
+
treat_redirect_as_failure: Optional[pulumi.Input[builtins.bool]] = None,
|
843
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
844
|
+
uri: Optional[pulumi.Input[builtins.str]] = None,
|
845
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
846
|
+
validation_string: Optional[pulumi.Input[builtins.str]] = None,
|
847
|
+
verify_ssl: Optional[pulumi.Input[builtins.bool]] = None,
|
831
848
|
__props__=None):
|
832
849
|
"""
|
833
850
|
## Example Usage
|
@@ -981,34 +998,34 @@ class Monitor(pulumi.CustomResource):
|
|
981
998
|
|
982
999
|
:param str resource_name: The name of the resource.
|
983
1000
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
984
|
-
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
985
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
986
|
-
:param pulumi.Input[bool] bypass_head_request: Monitor should skip default HEAD request and instead use GET verb in check.
|
1001
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
1002
|
+
: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`.
|
1003
|
+
:param pulumi.Input[builtins.bool] bypass_head_request: Monitor should skip default HEAD request and instead use GET verb in check.
|
987
1004
|
|
988
1005
|
The `BROWSER` monitor type supports the following additional arguments:
|
989
1006
|
:param pulumi.Input[Sequence[pulumi.Input[Union['MonitorCustomHeaderArgs', 'MonitorCustomHeaderArgsDict']]]] custom_headers: Custom headers to use in monitor job. See Nested custom_header blocks below for details.
|
990
|
-
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
1007
|
+
:param pulumi.Input[builtins.str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
991
1008
|
* 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.
|
992
|
-
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
1009
|
+
:param pulumi.Input[builtins.str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
993
1010
|
* 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.
|
994
|
-
: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`.
|
995
|
-
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
996
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
997
|
-
: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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
998
|
-
:param pulumi.Input[str] name: The human-readable identifier for the monitor.
|
999
|
-
: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`.
|
1000
|
-
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
1001
|
-
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected (`100`).
|
1002
|
-
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
1003
|
-
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1011
|
+
: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`.
|
1012
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
1013
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
1014
|
+
: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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
1015
|
+
:param pulumi.Input[builtins.str] name: The human-readable identifier for the monitor.
|
1016
|
+
: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`.
|
1017
|
+
:param pulumi.Input[builtins.str] runtime_type: The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
1018
|
+
:param pulumi.Input[builtins.str] runtime_type_version: The specific version of the runtime type selected (`100`).
|
1019
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
1020
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1004
1021
|
:param pulumi.Input[Sequence[pulumi.Input[Union['MonitorTagArgs', 'MonitorTagArgsDict']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
1005
1022
|
|
1006
1023
|
The `SIMPLE` monitor type supports the following additional arguments:
|
1007
|
-
:param pulumi.Input[bool] treat_redirect_as_failure: Categorize redirects during a monitor job as a failure.
|
1008
|
-
:param pulumi.Input[str] type: The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
1009
|
-
:param pulumi.Input[str] uri: The URI the monitor runs against.
|
1010
|
-
:param pulumi.Input[str] validation_string: Validation text for monitor to search for at given URI.
|
1011
|
-
:param pulumi.Input[bool] verify_ssl: Monitor should validate SSL certificate chain.
|
1024
|
+
:param pulumi.Input[builtins.bool] treat_redirect_as_failure: Categorize redirects during a monitor job as a failure.
|
1025
|
+
:param pulumi.Input[builtins.str] type: The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
1026
|
+
:param pulumi.Input[builtins.str] uri: The URI the monitor runs against.
|
1027
|
+
:param pulumi.Input[builtins.str] validation_string: Validation text for monitor to search for at given URI.
|
1028
|
+
:param pulumi.Input[builtins.bool] verify_ssl: Monitor should validate SSL certificate chain.
|
1012
1029
|
"""
|
1013
1030
|
...
|
1014
1031
|
@overload
|
@@ -1181,29 +1198,29 @@ class Monitor(pulumi.CustomResource):
|
|
1181
1198
|
def _internal_init(__self__,
|
1182
1199
|
resource_name: str,
|
1183
1200
|
opts: Optional[pulumi.ResourceOptions] = None,
|
1184
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
1185
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1186
|
-
bypass_head_request: Optional[pulumi.Input[bool]] = None,
|
1201
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
1202
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1203
|
+
bypass_head_request: Optional[pulumi.Input[builtins.bool]] = None,
|
1187
1204
|
custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitorCustomHeaderArgs', 'MonitorCustomHeaderArgsDict']]]]] = None,
|
1188
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
1189
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
1190
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1191
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
1192
|
-
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1193
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1194
|
-
name: Optional[pulumi.Input[str]] = None,
|
1195
|
-
period: Optional[pulumi.Input[str]] = None,
|
1196
|
-
runtime_type: Optional[pulumi.Input[str]] = None,
|
1197
|
-
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
1198
|
-
script_language: Optional[pulumi.Input[str]] = None,
|
1199
|
-
status: Optional[pulumi.Input[str]] = None,
|
1205
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
1206
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
1207
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1208
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
1209
|
+
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1210
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1211
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
1212
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
1213
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
1214
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
1215
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
1216
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
1200
1217
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitorTagArgs', 'MonitorTagArgsDict']]]]] = None,
|
1201
|
-
treat_redirect_as_failure: Optional[pulumi.Input[bool]] = None,
|
1202
|
-
type: Optional[pulumi.Input[str]] = None,
|
1203
|
-
uri: Optional[pulumi.Input[str]] = None,
|
1204
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
1205
|
-
validation_string: Optional[pulumi.Input[str]] = None,
|
1206
|
-
verify_ssl: Optional[pulumi.Input[bool]] = None,
|
1218
|
+
treat_redirect_as_failure: Optional[pulumi.Input[builtins.bool]] = None,
|
1219
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
1220
|
+
uri: Optional[pulumi.Input[builtins.str]] = None,
|
1221
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
1222
|
+
validation_string: Optional[pulumi.Input[builtins.str]] = None,
|
1223
|
+
verify_ssl: Optional[pulumi.Input[builtins.bool]] = None,
|
1207
1224
|
__props__=None):
|
1208
1225
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
1209
1226
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -1240,6 +1257,7 @@ class Monitor(pulumi.CustomResource):
|
|
1240
1257
|
__props__.__dict__["use_unsupported_legacy_runtime"] = use_unsupported_legacy_runtime
|
1241
1258
|
__props__.__dict__["validation_string"] = validation_string
|
1242
1259
|
__props__.__dict__["verify_ssl"] = verify_ssl
|
1260
|
+
__props__.__dict__["monitor_id"] = None
|
1243
1261
|
__props__.__dict__["period_in_minutes"] = None
|
1244
1262
|
super(Monitor, __self__).__init__(
|
1245
1263
|
'newrelic:synthetics/monitor:Monitor',
|
@@ -1251,30 +1269,31 @@ class Monitor(pulumi.CustomResource):
|
|
1251
1269
|
def get(resource_name: str,
|
1252
1270
|
id: pulumi.Input[str],
|
1253
1271
|
opts: Optional[pulumi.ResourceOptions] = None,
|
1254
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
1255
|
-
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1256
|
-
bypass_head_request: Optional[pulumi.Input[bool]] = None,
|
1272
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
1273
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1274
|
+
bypass_head_request: Optional[pulumi.Input[builtins.bool]] = None,
|
1257
1275
|
custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitorCustomHeaderArgs', 'MonitorCustomHeaderArgsDict']]]]] = None,
|
1258
|
-
device_orientation: Optional[pulumi.Input[str]] = None,
|
1259
|
-
device_type: Optional[pulumi.Input[str]] = None,
|
1260
|
-
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1261
|
-
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
1262
|
-
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1263
|
-
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1276
|
+
device_orientation: Optional[pulumi.Input[builtins.str]] = None,
|
1277
|
+
device_type: Optional[pulumi.Input[builtins.str]] = None,
|
1278
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1279
|
+
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[builtins.bool]] = None,
|
1280
|
+
locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1281
|
+
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
1282
|
+
monitor_id: Optional[pulumi.Input[builtins.str]] = None,
|
1283
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
1284
|
+
period: Optional[pulumi.Input[builtins.str]] = None,
|
1285
|
+
period_in_minutes: Optional[pulumi.Input[builtins.int]] = None,
|
1286
|
+
runtime_type: Optional[pulumi.Input[builtins.str]] = None,
|
1287
|
+
runtime_type_version: Optional[pulumi.Input[builtins.str]] = None,
|
1288
|
+
script_language: Optional[pulumi.Input[builtins.str]] = None,
|
1289
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
1271
1290
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitorTagArgs', 'MonitorTagArgsDict']]]]] = None,
|
1272
|
-
treat_redirect_as_failure: Optional[pulumi.Input[bool]] = None,
|
1273
|
-
type: Optional[pulumi.Input[str]] = None,
|
1274
|
-
uri: Optional[pulumi.Input[str]] = None,
|
1275
|
-
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
1276
|
-
validation_string: Optional[pulumi.Input[str]] = None,
|
1277
|
-
verify_ssl: Optional[pulumi.Input[bool]] = None) -> 'Monitor':
|
1291
|
+
treat_redirect_as_failure: Optional[pulumi.Input[builtins.bool]] = None,
|
1292
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
1293
|
+
uri: Optional[pulumi.Input[builtins.str]] = None,
|
1294
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[builtins.bool]] = None,
|
1295
|
+
validation_string: Optional[pulumi.Input[builtins.str]] = None,
|
1296
|
+
verify_ssl: Optional[pulumi.Input[builtins.bool]] = None) -> 'Monitor':
|
1278
1297
|
"""
|
1279
1298
|
Get an existing Monitor resource's state with the given name, id, and optional extra
|
1280
1299
|
properties used to qualify the lookup.
|
@@ -1282,35 +1301,36 @@ class Monitor(pulumi.CustomResource):
|
|
1282
1301
|
:param str resource_name: The unique name of the resulting resource.
|
1283
1302
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
1284
1303
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
1285
|
-
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
1286
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
1287
|
-
:param pulumi.Input[bool] bypass_head_request: Monitor should skip default HEAD request and instead use GET verb in check.
|
1304
|
+
:param pulumi.Input[builtins.str] account_id: The account in which the Synthetics monitor will be created.
|
1305
|
+
: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`.
|
1306
|
+
:param pulumi.Input[builtins.bool] bypass_head_request: Monitor should skip default HEAD request and instead use GET verb in check.
|
1288
1307
|
|
1289
1308
|
The `BROWSER` monitor type supports the following additional arguments:
|
1290
1309
|
:param pulumi.Input[Sequence[pulumi.Input[Union['MonitorCustomHeaderArgs', 'MonitorCustomHeaderArgsDict']]]] custom_headers: Custom headers to use in monitor job. See Nested custom_header blocks below for details.
|
1291
|
-
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
1310
|
+
:param pulumi.Input[builtins.str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
1292
1311
|
* 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.
|
1293
|
-
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
1312
|
+
:param pulumi.Input[builtins.str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
1294
1313
|
* 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.
|
1295
|
-
: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`.
|
1296
|
-
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
1297
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
1298
|
-
: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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
1299
|
-
:param pulumi.Input[str]
|
1300
|
-
:param pulumi.Input[str]
|
1301
|
-
:param pulumi.Input[
|
1302
|
-
:param pulumi.Input[
|
1303
|
-
:param pulumi.Input[str]
|
1304
|
-
:param pulumi.Input[str]
|
1305
|
-
:param pulumi.Input[str]
|
1314
|
+
: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`.
|
1315
|
+
:param pulumi.Input[builtins.bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
1316
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
1317
|
+
: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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
1318
|
+
:param pulumi.Input[builtins.str] monitor_id: The monitor id of the Synthetics monitor (not to be confused with the GUID of the monitor).
|
1319
|
+
:param pulumi.Input[builtins.str] name: The human-readable identifier for the monitor.
|
1320
|
+
: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`.
|
1321
|
+
:param pulumi.Input[builtins.int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
1322
|
+
:param pulumi.Input[builtins.str] runtime_type: The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
1323
|
+
:param pulumi.Input[builtins.str] runtime_type_version: The specific version of the runtime type selected (`100`).
|
1324
|
+
:param pulumi.Input[builtins.str] script_language: The programing language that should execute the script.
|
1325
|
+
:param pulumi.Input[builtins.str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1306
1326
|
:param pulumi.Input[Sequence[pulumi.Input[Union['MonitorTagArgs', 'MonitorTagArgsDict']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
1307
1327
|
|
1308
1328
|
The `SIMPLE` monitor type supports the following additional arguments:
|
1309
|
-
:param pulumi.Input[bool] treat_redirect_as_failure: Categorize redirects during a monitor job as a failure.
|
1310
|
-
:param pulumi.Input[str] type: The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
1311
|
-
:param pulumi.Input[str] uri: The URI the monitor runs against.
|
1312
|
-
:param pulumi.Input[str] validation_string: Validation text for monitor to search for at given URI.
|
1313
|
-
:param pulumi.Input[bool] verify_ssl: Monitor should validate SSL certificate chain.
|
1329
|
+
:param pulumi.Input[builtins.bool] treat_redirect_as_failure: Categorize redirects during a monitor job as a failure.
|
1330
|
+
:param pulumi.Input[builtins.str] type: The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
1331
|
+
:param pulumi.Input[builtins.str] uri: The URI the monitor runs against.
|
1332
|
+
:param pulumi.Input[builtins.str] validation_string: Validation text for monitor to search for at given URI.
|
1333
|
+
:param pulumi.Input[builtins.bool] verify_ssl: Monitor should validate SSL certificate chain.
|
1314
1334
|
"""
|
1315
1335
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
1316
1336
|
|
@@ -1326,6 +1346,7 @@ class Monitor(pulumi.CustomResource):
|
|
1326
1346
|
__props__.__dict__["enable_screenshot_on_failure_and_script"] = enable_screenshot_on_failure_and_script
|
1327
1347
|
__props__.__dict__["locations_privates"] = locations_privates
|
1328
1348
|
__props__.__dict__["locations_publics"] = locations_publics
|
1349
|
+
__props__.__dict__["monitor_id"] = monitor_id
|
1329
1350
|
__props__.__dict__["name"] = name
|
1330
1351
|
__props__.__dict__["period"] = period
|
1331
1352
|
__props__.__dict__["period_in_minutes"] = period_in_minutes
|
@@ -1344,7 +1365,7 @@ class Monitor(pulumi.CustomResource):
|
|
1344
1365
|
|
1345
1366
|
@property
|
1346
1367
|
@pulumi.getter(name="accountId")
|
1347
|
-
def account_id(self) -> pulumi.Output[str]:
|
1368
|
+
def account_id(self) -> pulumi.Output[builtins.str]:
|
1348
1369
|
"""
|
1349
1370
|
The account in which the Synthetics monitor will be created.
|
1350
1371
|
"""
|
@@ -1352,7 +1373,7 @@ class Monitor(pulumi.CustomResource):
|
|
1352
1373
|
|
1353
1374
|
@property
|
1354
1375
|
@pulumi.getter
|
1355
|
-
def browsers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1376
|
+
def browsers(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1356
1377
|
"""
|
1357
1378
|
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
1358
1379
|
"""
|
@@ -1360,7 +1381,7 @@ class Monitor(pulumi.CustomResource):
|
|
1360
1381
|
|
1361
1382
|
@property
|
1362
1383
|
@pulumi.getter(name="bypassHeadRequest")
|
1363
|
-
def bypass_head_request(self) -> pulumi.Output[Optional[bool]]:
|
1384
|
+
def bypass_head_request(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1364
1385
|
"""
|
1365
1386
|
Monitor should skip default HEAD request and instead use GET verb in check.
|
1366
1387
|
|
@@ -1378,7 +1399,7 @@ class Monitor(pulumi.CustomResource):
|
|
1378
1399
|
|
1379
1400
|
@property
|
1380
1401
|
@pulumi.getter(name="deviceOrientation")
|
1381
|
-
def device_orientation(self) -> pulumi.Output[Optional[str]]:
|
1402
|
+
def device_orientation(self) -> pulumi.Output[Optional[builtins.str]]:
|
1382
1403
|
"""
|
1383
1404
|
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
1384
1405
|
* 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.
|
@@ -1387,7 +1408,7 @@ class Monitor(pulumi.CustomResource):
|
|
1387
1408
|
|
1388
1409
|
@property
|
1389
1410
|
@pulumi.getter(name="deviceType")
|
1390
|
-
def device_type(self) -> pulumi.Output[Optional[str]]:
|
1411
|
+
def device_type(self) -> pulumi.Output[Optional[builtins.str]]:
|
1391
1412
|
"""
|
1392
1413
|
Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
1393
1414
|
* 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.
|
@@ -1396,7 +1417,7 @@ class Monitor(pulumi.CustomResource):
|
|
1396
1417
|
|
1397
1418
|
@property
|
1398
1419
|
@pulumi.getter
|
1399
|
-
def devices(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1420
|
+
def devices(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1400
1421
|
"""
|
1401
1422
|
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
1402
1423
|
"""
|
@@ -1404,7 +1425,7 @@ class Monitor(pulumi.CustomResource):
|
|
1404
1425
|
|
1405
1426
|
@property
|
1406
1427
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
1407
|
-
def enable_screenshot_on_failure_and_script(self) -> pulumi.Output[Optional[bool]]:
|
1428
|
+
def enable_screenshot_on_failure_and_script(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1408
1429
|
"""
|
1409
1430
|
Capture a screenshot during job execution.
|
1410
1431
|
"""
|
@@ -1412,7 +1433,7 @@ class Monitor(pulumi.CustomResource):
|
|
1412
1433
|
|
1413
1434
|
@property
|
1414
1435
|
@pulumi.getter(name="locationsPrivates")
|
1415
|
-
def locations_privates(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1436
|
+
def locations_privates(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1416
1437
|
"""
|
1417
1438
|
The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
|
1418
1439
|
"""
|
@@ -1420,15 +1441,23 @@ class Monitor(pulumi.CustomResource):
|
|
1420
1441
|
|
1421
1442
|
@property
|
1422
1443
|
@pulumi.getter(name="locationsPublics")
|
1423
|
-
def locations_publics(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1444
|
+
def locations_publics(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
1424
1445
|
"""
|
1425
1446
|
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. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
|
1426
1447
|
"""
|
1427
1448
|
return pulumi.get(self, "locations_publics")
|
1428
1449
|
|
1450
|
+
@property
|
1451
|
+
@pulumi.getter(name="monitorId")
|
1452
|
+
def monitor_id(self) -> pulumi.Output[builtins.str]:
|
1453
|
+
"""
|
1454
|
+
The monitor id of the Synthetics monitor (not to be confused with the GUID of the monitor).
|
1455
|
+
"""
|
1456
|
+
return pulumi.get(self, "monitor_id")
|
1457
|
+
|
1429
1458
|
@property
|
1430
1459
|
@pulumi.getter
|
1431
|
-
def name(self) -> pulumi.Output[str]:
|
1460
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
1432
1461
|
"""
|
1433
1462
|
The human-readable identifier for the monitor.
|
1434
1463
|
"""
|
@@ -1436,7 +1465,7 @@ class Monitor(pulumi.CustomResource):
|
|
1436
1465
|
|
1437
1466
|
@property
|
1438
1467
|
@pulumi.getter
|
1439
|
-
def period(self) -> pulumi.Output[str]:
|
1468
|
+
def period(self) -> pulumi.Output[builtins.str]:
|
1440
1469
|
"""
|
1441
1470
|
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`.
|
1442
1471
|
"""
|
@@ -1444,7 +1473,7 @@ class Monitor(pulumi.CustomResource):
|
|
1444
1473
|
|
1445
1474
|
@property
|
1446
1475
|
@pulumi.getter(name="periodInMinutes")
|
1447
|
-
def period_in_minutes(self) -> pulumi.Output[int]:
|
1476
|
+
def period_in_minutes(self) -> pulumi.Output[builtins.int]:
|
1448
1477
|
"""
|
1449
1478
|
The interval in minutes at which Synthetic monitor should run.
|
1450
1479
|
"""
|
@@ -1452,7 +1481,7 @@ class Monitor(pulumi.CustomResource):
|
|
1452
1481
|
|
1453
1482
|
@property
|
1454
1483
|
@pulumi.getter(name="runtimeType")
|
1455
|
-
def runtime_type(self) -> pulumi.Output[Optional[str]]:
|
1484
|
+
def runtime_type(self) -> pulumi.Output[Optional[builtins.str]]:
|
1456
1485
|
"""
|
1457
1486
|
The runtime that the monitor will use to run jobs (`CHROME_BROWSER`).
|
1458
1487
|
"""
|
@@ -1460,7 +1489,7 @@ class Monitor(pulumi.CustomResource):
|
|
1460
1489
|
|
1461
1490
|
@property
|
1462
1491
|
@pulumi.getter(name="runtimeTypeVersion")
|
1463
|
-
def runtime_type_version(self) -> pulumi.Output[Optional[str]]:
|
1492
|
+
def runtime_type_version(self) -> pulumi.Output[Optional[builtins.str]]:
|
1464
1493
|
"""
|
1465
1494
|
The specific version of the runtime type selected (`100`).
|
1466
1495
|
"""
|
@@ -1468,7 +1497,7 @@ class Monitor(pulumi.CustomResource):
|
|
1468
1497
|
|
1469
1498
|
@property
|
1470
1499
|
@pulumi.getter(name="scriptLanguage")
|
1471
|
-
def script_language(self) -> pulumi.Output[Optional[str]]:
|
1500
|
+
def script_language(self) -> pulumi.Output[Optional[builtins.str]]:
|
1472
1501
|
"""
|
1473
1502
|
The programing language that should execute the script.
|
1474
1503
|
"""
|
@@ -1476,7 +1505,7 @@ class Monitor(pulumi.CustomResource):
|
|
1476
1505
|
|
1477
1506
|
@property
|
1478
1507
|
@pulumi.getter
|
1479
|
-
def status(self) -> pulumi.Output[str]:
|
1508
|
+
def status(self) -> pulumi.Output[builtins.str]:
|
1480
1509
|
"""
|
1481
1510
|
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1482
1511
|
"""
|
@@ -1494,7 +1523,7 @@ class Monitor(pulumi.CustomResource):
|
|
1494
1523
|
|
1495
1524
|
@property
|
1496
1525
|
@pulumi.getter(name="treatRedirectAsFailure")
|
1497
|
-
def treat_redirect_as_failure(self) -> pulumi.Output[Optional[bool]]:
|
1526
|
+
def treat_redirect_as_failure(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1498
1527
|
"""
|
1499
1528
|
Categorize redirects during a monitor job as a failure.
|
1500
1529
|
"""
|
@@ -1502,7 +1531,7 @@ class Monitor(pulumi.CustomResource):
|
|
1502
1531
|
|
1503
1532
|
@property
|
1504
1533
|
@pulumi.getter
|
1505
|
-
def type(self) -> pulumi.Output[str]:
|
1534
|
+
def type(self) -> pulumi.Output[builtins.str]:
|
1506
1535
|
"""
|
1507
1536
|
The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
1508
1537
|
"""
|
@@ -1510,7 +1539,7 @@ class Monitor(pulumi.CustomResource):
|
|
1510
1539
|
|
1511
1540
|
@property
|
1512
1541
|
@pulumi.getter
|
1513
|
-
def uri(self) -> pulumi.Output[Optional[str]]:
|
1542
|
+
def uri(self) -> pulumi.Output[Optional[builtins.str]]:
|
1514
1543
|
"""
|
1515
1544
|
The URI the monitor runs against.
|
1516
1545
|
"""
|
@@ -1518,12 +1547,12 @@ class Monitor(pulumi.CustomResource):
|
|
1518
1547
|
|
1519
1548
|
@property
|
1520
1549
|
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
1521
|
-
def use_unsupported_legacy_runtime(self) -> pulumi.Output[Optional[bool]]:
|
1550
|
+
def use_unsupported_legacy_runtime(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1522
1551
|
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
1523
1552
|
|
1524
1553
|
@property
|
1525
1554
|
@pulumi.getter(name="validationString")
|
1526
|
-
def validation_string(self) -> pulumi.Output[Optional[str]]:
|
1555
|
+
def validation_string(self) -> pulumi.Output[Optional[builtins.str]]:
|
1527
1556
|
"""
|
1528
1557
|
Validation text for monitor to search for at given URI.
|
1529
1558
|
"""
|
@@ -1531,7 +1560,7 @@ class Monitor(pulumi.CustomResource):
|
|
1531
1560
|
|
1532
1561
|
@property
|
1533
1562
|
@pulumi.getter(name="verifySsl")
|
1534
|
-
def verify_ssl(self) -> pulumi.Output[Optional[bool]]:
|
1563
|
+
def verify_ssl(self) -> pulumi.Output[Optional[builtins.bool]]:
|
1535
1564
|
"""
|
1536
1565
|
Monitor should validate SSL certificate chain.
|
1537
1566
|
"""
|