pulumi-newrelic 5.22.0a1711519579__py3-none-any.whl → 5.22.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,8 @@ class BrokenLinksMonitorArgs:
23
23
  locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
24
24
  locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
25
25
  name: Optional[pulumi.Input[str]] = None,
26
+ runtime_type: Optional[pulumi.Input[str]] = None,
27
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
26
28
  tags: Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]] = None):
27
29
  """
28
30
  The set of arguments for constructing a BrokenLinksMonitor resource.
@@ -33,6 +35,10 @@ class BrokenLinksMonitorArgs:
33
35
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_privates: The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locations_public` or `locations_private` is required.
34
36
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
35
37
  :param pulumi.Input[str] name: The name for the monitor.
38
+ :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
39
+ :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
40
+
41
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
36
42
  :param pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
37
43
  """
38
44
  pulumi.set(__self__, "period", period)
@@ -46,6 +52,10 @@ class BrokenLinksMonitorArgs:
46
52
  pulumi.set(__self__, "locations_publics", locations_publics)
47
53
  if name is not None:
48
54
  pulumi.set(__self__, "name", name)
55
+ if runtime_type is not None:
56
+ pulumi.set(__self__, "runtime_type", runtime_type)
57
+ if runtime_type_version is not None:
58
+ pulumi.set(__self__, "runtime_type_version", runtime_type_version)
49
59
  if tags is not None:
50
60
  pulumi.set(__self__, "tags", tags)
51
61
 
@@ -133,6 +143,32 @@ class BrokenLinksMonitorArgs:
133
143
  def name(self, value: Optional[pulumi.Input[str]]):
134
144
  pulumi.set(self, "name", value)
135
145
 
146
+ @property
147
+ @pulumi.getter(name="runtimeType")
148
+ def runtime_type(self) -> Optional[pulumi.Input[str]]:
149
+ """
150
+ The runtime that the monitor will use to run jobs.
151
+ """
152
+ return pulumi.get(self, "runtime_type")
153
+
154
+ @runtime_type.setter
155
+ def runtime_type(self, value: Optional[pulumi.Input[str]]):
156
+ pulumi.set(self, "runtime_type", value)
157
+
158
+ @property
159
+ @pulumi.getter(name="runtimeTypeVersion")
160
+ def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
161
+ """
162
+ The specific version of the runtime type selected.
163
+
164
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
165
+ """
166
+ return pulumi.get(self, "runtime_type_version")
167
+
168
+ @runtime_type_version.setter
169
+ def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
170
+ pulumi.set(self, "runtime_type_version", value)
171
+
136
172
  @property
137
173
  @pulumi.getter
138
174
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]]:
@@ -156,6 +192,8 @@ class _BrokenLinksMonitorState:
156
192
  name: Optional[pulumi.Input[str]] = None,
157
193
  period: Optional[pulumi.Input[str]] = None,
158
194
  period_in_minutes: Optional[pulumi.Input[int]] = None,
195
+ runtime_type: Optional[pulumi.Input[str]] = None,
196
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
159
197
  status: Optional[pulumi.Input[str]] = None,
160
198
  tags: Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]] = None,
161
199
  uri: Optional[pulumi.Input[str]] = None):
@@ -168,6 +206,10 @@ class _BrokenLinksMonitorState:
168
206
  :param pulumi.Input[str] name: The name for the monitor.
169
207
  :param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
170
208
  :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
209
+ :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
210
+ :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
211
+
212
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
171
213
  :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
172
214
  :param pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
173
215
  :param pulumi.Input[str] uri: The URI the monitor runs against.
@@ -186,6 +228,10 @@ class _BrokenLinksMonitorState:
186
228
  pulumi.set(__self__, "period", period)
187
229
  if period_in_minutes is not None:
188
230
  pulumi.set(__self__, "period_in_minutes", period_in_minutes)
231
+ if runtime_type is not None:
232
+ pulumi.set(__self__, "runtime_type", runtime_type)
233
+ if runtime_type_version is not None:
234
+ pulumi.set(__self__, "runtime_type_version", runtime_type_version)
189
235
  if status is not None:
190
236
  pulumi.set(__self__, "status", status)
191
237
  if tags is not None:
@@ -277,6 +323,32 @@ class _BrokenLinksMonitorState:
277
323
  def period_in_minutes(self, value: Optional[pulumi.Input[int]]):
278
324
  pulumi.set(self, "period_in_minutes", value)
279
325
 
326
+ @property
327
+ @pulumi.getter(name="runtimeType")
328
+ def runtime_type(self) -> Optional[pulumi.Input[str]]:
329
+ """
330
+ The runtime that the monitor will use to run jobs.
331
+ """
332
+ return pulumi.get(self, "runtime_type")
333
+
334
+ @runtime_type.setter
335
+ def runtime_type(self, value: Optional[pulumi.Input[str]]):
336
+ pulumi.set(self, "runtime_type", value)
337
+
338
+ @property
339
+ @pulumi.getter(name="runtimeTypeVersion")
340
+ def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
341
+ """
342
+ The specific version of the runtime type selected.
343
+
344
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
345
+ """
346
+ return pulumi.get(self, "runtime_type_version")
347
+
348
+ @runtime_type_version.setter
349
+ def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
350
+ pulumi.set(self, "runtime_type_version", value)
351
+
280
352
  @property
281
353
  @pulumi.getter
282
354
  def status(self) -> Optional[pulumi.Input[str]]:
@@ -324,6 +396,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
324
396
  locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
325
397
  name: Optional[pulumi.Input[str]] = None,
326
398
  period: Optional[pulumi.Input[str]] = None,
399
+ runtime_type: Optional[pulumi.Input[str]] = None,
400
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
327
401
  status: Optional[pulumi.Input[str]] = None,
328
402
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None,
329
403
  uri: Optional[pulumi.Input[str]] = None,
@@ -338,9 +412,11 @@ class BrokenLinksMonitor(pulumi.CustomResource):
338
412
  import pulumi
339
413
  import pulumi_newrelic as newrelic
340
414
 
341
- monitor = newrelic.synthetics.BrokenLinksMonitor("monitor",
415
+ foo = newrelic.synthetics.BrokenLinksMonitor("foo",
342
416
  locations_publics=["AP_SOUTH_1"],
343
417
  period="EVERY_6_HOURS",
418
+ runtime_type="NODE_API",
419
+ runtime_type_version="16.10",
344
420
  status="ENABLED",
345
421
  tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
346
422
  key="some_key",
@@ -364,12 +440,12 @@ class BrokenLinksMonitor(pulumi.CustomResource):
364
440
  import pulumi
365
441
  import pulumi_newrelic as newrelic
366
442
 
367
- location = newrelic.synthetics.PrivateLocation("location",
368
- description="Test Description",
443
+ foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
444
+ description="Sample Private Location Description",
369
445
  verified_script_execution=False)
370
- monitor = newrelic.synthetics.BrokenLinksMonitor("monitor",
446
+ foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor",
371
447
  uri="https://www.one.example.com",
372
- locations_privates=[location.id],
448
+ locations_privates=[foo_private_location.id],
373
449
  period="EVERY_6_HOURS",
374
450
  status="ENABLED",
375
451
  tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
@@ -381,7 +457,7 @@ class BrokenLinksMonitor(pulumi.CustomResource):
381
457
 
382
458
  ## Import
383
459
 
384
- Synthetics broken links monitor scripts can be imported using the `guid`, e.g.
460
+ A broken links monitor can be imported using its GUID, using the following command.
385
461
 
386
462
  bash
387
463
 
@@ -396,6 +472,10 @@ class BrokenLinksMonitor(pulumi.CustomResource):
396
472
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
397
473
  :param pulumi.Input[str] name: The name for the monitor.
398
474
  :param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
475
+ :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
476
+ :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
477
+
478
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
399
479
  :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
400
480
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
401
481
  :param pulumi.Input[str] uri: The URI the monitor runs against.
@@ -416,9 +496,11 @@ class BrokenLinksMonitor(pulumi.CustomResource):
416
496
  import pulumi
417
497
  import pulumi_newrelic as newrelic
418
498
 
419
- monitor = newrelic.synthetics.BrokenLinksMonitor("monitor",
499
+ foo = newrelic.synthetics.BrokenLinksMonitor("foo",
420
500
  locations_publics=["AP_SOUTH_1"],
421
501
  period="EVERY_6_HOURS",
502
+ runtime_type="NODE_API",
503
+ runtime_type_version="16.10",
422
504
  status="ENABLED",
423
505
  tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
424
506
  key="some_key",
@@ -442,12 +524,12 @@ class BrokenLinksMonitor(pulumi.CustomResource):
442
524
  import pulumi
443
525
  import pulumi_newrelic as newrelic
444
526
 
445
- location = newrelic.synthetics.PrivateLocation("location",
446
- description="Test Description",
527
+ foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
528
+ description="Sample Private Location Description",
447
529
  verified_script_execution=False)
448
- monitor = newrelic.synthetics.BrokenLinksMonitor("monitor",
530
+ foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor",
449
531
  uri="https://www.one.example.com",
450
- locations_privates=[location.id],
532
+ locations_privates=[foo_private_location.id],
451
533
  period="EVERY_6_HOURS",
452
534
  status="ENABLED",
453
535
  tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
@@ -459,7 +541,7 @@ class BrokenLinksMonitor(pulumi.CustomResource):
459
541
 
460
542
  ## Import
461
543
 
462
- Synthetics broken links monitor scripts can be imported using the `guid`, e.g.
544
+ A broken links monitor can be imported using its GUID, using the following command.
463
545
 
464
546
  bash
465
547
 
@@ -487,6 +569,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
487
569
  locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
488
570
  name: Optional[pulumi.Input[str]] = None,
489
571
  period: Optional[pulumi.Input[str]] = None,
572
+ runtime_type: Optional[pulumi.Input[str]] = None,
573
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
490
574
  status: Optional[pulumi.Input[str]] = None,
491
575
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None,
492
576
  uri: Optional[pulumi.Input[str]] = None,
@@ -506,6 +590,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
506
590
  if period is None and not opts.urn:
507
591
  raise TypeError("Missing required property 'period'")
508
592
  __props__.__dict__["period"] = period
593
+ __props__.__dict__["runtime_type"] = runtime_type
594
+ __props__.__dict__["runtime_type_version"] = runtime_type_version
509
595
  if status is None and not opts.urn:
510
596
  raise TypeError("Missing required property 'status'")
511
597
  __props__.__dict__["status"] = status
@@ -532,6 +618,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
532
618
  name: Optional[pulumi.Input[str]] = None,
533
619
  period: Optional[pulumi.Input[str]] = None,
534
620
  period_in_minutes: Optional[pulumi.Input[int]] = None,
621
+ runtime_type: Optional[pulumi.Input[str]] = None,
622
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
535
623
  status: Optional[pulumi.Input[str]] = None,
536
624
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None,
537
625
  uri: Optional[pulumi.Input[str]] = None) -> 'BrokenLinksMonitor':
@@ -549,6 +637,10 @@ class BrokenLinksMonitor(pulumi.CustomResource):
549
637
  :param pulumi.Input[str] name: The name for the monitor.
550
638
  :param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
551
639
  :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
640
+ :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
641
+ :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
642
+
643
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
552
644
  :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
553
645
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
554
646
  :param pulumi.Input[str] uri: The URI the monitor runs against.
@@ -564,6 +656,8 @@ class BrokenLinksMonitor(pulumi.CustomResource):
564
656
  __props__.__dict__["name"] = name
565
657
  __props__.__dict__["period"] = period
566
658
  __props__.__dict__["period_in_minutes"] = period_in_minutes
659
+ __props__.__dict__["runtime_type"] = runtime_type
660
+ __props__.__dict__["runtime_type_version"] = runtime_type_version
567
661
  __props__.__dict__["status"] = status
568
662
  __props__.__dict__["tags"] = tags
569
663
  __props__.__dict__["uri"] = uri
@@ -625,6 +719,24 @@ class BrokenLinksMonitor(pulumi.CustomResource):
625
719
  """
626
720
  return pulumi.get(self, "period_in_minutes")
627
721
 
722
+ @property
723
+ @pulumi.getter(name="runtimeType")
724
+ def runtime_type(self) -> pulumi.Output[Optional[str]]:
725
+ """
726
+ The runtime that the monitor will use to run jobs.
727
+ """
728
+ return pulumi.get(self, "runtime_type")
729
+
730
+ @property
731
+ @pulumi.getter(name="runtimeTypeVersion")
732
+ def runtime_type_version(self) -> pulumi.Output[Optional[str]]:
733
+ """
734
+ The specific version of the runtime type selected.
735
+
736
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
737
+ """
738
+ return pulumi.get(self, "runtime_type_version")
739
+
628
740
  @property
629
741
  @pulumi.getter
630
742
  def status(self) -> pulumi.Output[str]:
@@ -24,6 +24,8 @@ class CertCheckMonitorArgs:
24
24
  locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
25
25
  locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
26
26
  name: Optional[pulumi.Input[str]] = None,
27
+ runtime_type: Optional[pulumi.Input[str]] = None,
28
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
27
29
  tags: Optional[pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]]] = None):
28
30
  """
29
31
  The set of arguments for constructing a CertCheckMonitor resource.
@@ -35,6 +37,10 @@ class CertCheckMonitorArgs:
35
37
  :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.
36
38
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
37
39
  :param pulumi.Input[str] name: The name for the monitor.
40
+ :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
41
+ :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
42
+
43
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
38
44
  :param pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
39
45
  """
40
46
  pulumi.set(__self__, "certificate_expiration", certificate_expiration)
@@ -49,6 +55,10 @@ class CertCheckMonitorArgs:
49
55
  pulumi.set(__self__, "locations_publics", locations_publics)
50
56
  if name is not None:
51
57
  pulumi.set(__self__, "name", name)
58
+ if runtime_type is not None:
59
+ pulumi.set(__self__, "runtime_type", runtime_type)
60
+ if runtime_type_version is not None:
61
+ pulumi.set(__self__, "runtime_type_version", runtime_type_version)
52
62
  if tags is not None:
53
63
  pulumi.set(__self__, "tags", tags)
54
64
 
@@ -148,6 +158,32 @@ class CertCheckMonitorArgs:
148
158
  def name(self, value: Optional[pulumi.Input[str]]):
149
159
  pulumi.set(self, "name", value)
150
160
 
161
+ @property
162
+ @pulumi.getter(name="runtimeType")
163
+ def runtime_type(self) -> Optional[pulumi.Input[str]]:
164
+ """
165
+ The runtime that the monitor will use to run jobs.
166
+ """
167
+ return pulumi.get(self, "runtime_type")
168
+
169
+ @runtime_type.setter
170
+ def runtime_type(self, value: Optional[pulumi.Input[str]]):
171
+ pulumi.set(self, "runtime_type", value)
172
+
173
+ @property
174
+ @pulumi.getter(name="runtimeTypeVersion")
175
+ def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
176
+ """
177
+ The specific version of the runtime type selected.
178
+
179
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
180
+ """
181
+ return pulumi.get(self, "runtime_type_version")
182
+
183
+ @runtime_type_version.setter
184
+ def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
185
+ pulumi.set(self, "runtime_type_version", value)
186
+
151
187
  @property
152
188
  @pulumi.getter
153
189
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]]]:
@@ -172,6 +208,8 @@ class _CertCheckMonitorState:
172
208
  name: Optional[pulumi.Input[str]] = None,
173
209
  period: Optional[pulumi.Input[str]] = None,
174
210
  period_in_minutes: Optional[pulumi.Input[int]] = None,
211
+ runtime_type: Optional[pulumi.Input[str]] = None,
212
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
175
213
  status: Optional[pulumi.Input[str]] = None,
176
214
  tags: Optional[pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]]] = None):
177
215
  """
@@ -184,6 +222,10 @@ class _CertCheckMonitorState:
184
222
  :param pulumi.Input[str] name: The name for the monitor.
185
223
  :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.
186
224
  :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
225
+ :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
226
+ :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
227
+
228
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
187
229
  :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
188
230
  :param pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
189
231
  """
@@ -203,6 +245,10 @@ class _CertCheckMonitorState:
203
245
  pulumi.set(__self__, "period", period)
204
246
  if period_in_minutes is not None:
205
247
  pulumi.set(__self__, "period_in_minutes", period_in_minutes)
248
+ if runtime_type is not None:
249
+ pulumi.set(__self__, "runtime_type", runtime_type)
250
+ if runtime_type_version is not None:
251
+ pulumi.set(__self__, "runtime_type_version", runtime_type_version)
206
252
  if status is not None:
207
253
  pulumi.set(__self__, "status", status)
208
254
  if tags is not None:
@@ -304,6 +350,32 @@ class _CertCheckMonitorState:
304
350
  def period_in_minutes(self, value: Optional[pulumi.Input[int]]):
305
351
  pulumi.set(self, "period_in_minutes", value)
306
352
 
353
+ @property
354
+ @pulumi.getter(name="runtimeType")
355
+ def runtime_type(self) -> Optional[pulumi.Input[str]]:
356
+ """
357
+ The runtime that the monitor will use to run jobs.
358
+ """
359
+ return pulumi.get(self, "runtime_type")
360
+
361
+ @runtime_type.setter
362
+ def runtime_type(self, value: Optional[pulumi.Input[str]]):
363
+ pulumi.set(self, "runtime_type", value)
364
+
365
+ @property
366
+ @pulumi.getter(name="runtimeTypeVersion")
367
+ def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
368
+ """
369
+ The specific version of the runtime type selected.
370
+
371
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
372
+ """
373
+ return pulumi.get(self, "runtime_type_version")
374
+
375
+ @runtime_type_version.setter
376
+ def runtime_type_version(self, value: Optional[pulumi.Input[str]]):
377
+ pulumi.set(self, "runtime_type_version", value)
378
+
307
379
  @property
308
380
  @pulumi.getter
309
381
  def status(self) -> Optional[pulumi.Input[str]]:
@@ -341,6 +413,8 @@ class CertCheckMonitor(pulumi.CustomResource):
341
413
  locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
342
414
  name: Optional[pulumi.Input[str]] = None,
343
415
  period: Optional[pulumi.Input[str]] = None,
416
+ runtime_type: Optional[pulumi.Input[str]] = None,
417
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
344
418
  status: Optional[pulumi.Input[str]] = None,
345
419
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertCheckMonitorTagArgs']]]]] = None,
346
420
  __props__=None):
@@ -354,11 +428,13 @@ class CertCheckMonitor(pulumi.CustomResource):
354
428
  import pulumi
355
429
  import pulumi_newrelic as newrelic
356
430
 
357
- cert_check_monitor = newrelic.synthetics.CertCheckMonitor("cert-check-monitor",
431
+ foo = newrelic.synthetics.CertCheckMonitor("foo",
358
432
  certificate_expiration=10,
359
433
  domain="www.example.com",
360
434
  locations_publics=["AP_SOUTH_1"],
361
435
  period="EVERY_6_HOURS",
436
+ runtime_type="NODE_API",
437
+ runtime_type_version="16.10",
362
438
  status="ENABLED",
363
439
  tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
364
440
  key="some_key",
@@ -381,12 +457,13 @@ class CertCheckMonitor(pulumi.CustomResource):
381
457
  import pulumi
382
458
  import pulumi_newrelic as newrelic
383
459
 
384
- location = newrelic.synthetics.PrivateLocation("location",
385
- description="Test Description",
460
+ foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
461
+ description="Sample Private Location Description",
386
462
  verified_script_execution=False)
387
- monitor = newrelic.synthetics.CertCheckMonitor("monitor",
388
- domain="https://www.one.example.com",
389
- locations_privates=[location.id],
463
+ foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("fooCertCheckMonitor",
464
+ domain="www.one.example.com",
465
+ locations_privates=[foo_private_location.id],
466
+ certificate_expiration=10,
390
467
  period="EVERY_6_HOURS",
391
468
  status="ENABLED",
392
469
  tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
@@ -398,7 +475,7 @@ class CertCheckMonitor(pulumi.CustomResource):
398
475
 
399
476
  ## Import
400
477
 
401
- Synthetics certificate check monitor scripts can be imported using the `guid`, e.g.
478
+ A cert check monitor can be imported using its GUID, using the following command.
402
479
 
403
480
  bash
404
481
 
@@ -415,6 +492,10 @@ class CertCheckMonitor(pulumi.CustomResource):
415
492
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
416
493
  :param pulumi.Input[str] name: The name for the monitor.
417
494
  :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.
495
+ :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
496
+ :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
497
+
498
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
418
499
  :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
419
500
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertCheckMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
420
501
  """
@@ -434,11 +515,13 @@ class CertCheckMonitor(pulumi.CustomResource):
434
515
  import pulumi
435
516
  import pulumi_newrelic as newrelic
436
517
 
437
- cert_check_monitor = newrelic.synthetics.CertCheckMonitor("cert-check-monitor",
518
+ foo = newrelic.synthetics.CertCheckMonitor("foo",
438
519
  certificate_expiration=10,
439
520
  domain="www.example.com",
440
521
  locations_publics=["AP_SOUTH_1"],
441
522
  period="EVERY_6_HOURS",
523
+ runtime_type="NODE_API",
524
+ runtime_type_version="16.10",
442
525
  status="ENABLED",
443
526
  tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
444
527
  key="some_key",
@@ -461,12 +544,13 @@ class CertCheckMonitor(pulumi.CustomResource):
461
544
  import pulumi
462
545
  import pulumi_newrelic as newrelic
463
546
 
464
- location = newrelic.synthetics.PrivateLocation("location",
465
- description="Test Description",
547
+ foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
548
+ description="Sample Private Location Description",
466
549
  verified_script_execution=False)
467
- monitor = newrelic.synthetics.CertCheckMonitor("monitor",
468
- domain="https://www.one.example.com",
469
- locations_privates=[location.id],
550
+ foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("fooCertCheckMonitor",
551
+ domain="www.one.example.com",
552
+ locations_privates=[foo_private_location.id],
553
+ certificate_expiration=10,
470
554
  period="EVERY_6_HOURS",
471
555
  status="ENABLED",
472
556
  tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
@@ -478,7 +562,7 @@ class CertCheckMonitor(pulumi.CustomResource):
478
562
 
479
563
  ## Import
480
564
 
481
- Synthetics certificate check monitor scripts can be imported using the `guid`, e.g.
565
+ A cert check monitor can be imported using its GUID, using the following command.
482
566
 
483
567
  bash
484
568
 
@@ -508,6 +592,8 @@ class CertCheckMonitor(pulumi.CustomResource):
508
592
  locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
509
593
  name: Optional[pulumi.Input[str]] = None,
510
594
  period: Optional[pulumi.Input[str]] = None,
595
+ runtime_type: Optional[pulumi.Input[str]] = None,
596
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
511
597
  status: Optional[pulumi.Input[str]] = None,
512
598
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertCheckMonitorTagArgs']]]]] = None,
513
599
  __props__=None):
@@ -532,6 +618,8 @@ class CertCheckMonitor(pulumi.CustomResource):
532
618
  if period is None and not opts.urn:
533
619
  raise TypeError("Missing required property 'period'")
534
620
  __props__.__dict__["period"] = period
621
+ __props__.__dict__["runtime_type"] = runtime_type
622
+ __props__.__dict__["runtime_type_version"] = runtime_type_version
535
623
  if status is None and not opts.urn:
536
624
  raise TypeError("Missing required property 'status'")
537
625
  __props__.__dict__["status"] = status
@@ -555,6 +643,8 @@ class CertCheckMonitor(pulumi.CustomResource):
555
643
  name: Optional[pulumi.Input[str]] = None,
556
644
  period: Optional[pulumi.Input[str]] = None,
557
645
  period_in_minutes: Optional[pulumi.Input[int]] = None,
646
+ runtime_type: Optional[pulumi.Input[str]] = None,
647
+ runtime_type_version: Optional[pulumi.Input[str]] = None,
558
648
  status: Optional[pulumi.Input[str]] = None,
559
649
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertCheckMonitorTagArgs']]]]] = None) -> 'CertCheckMonitor':
560
650
  """
@@ -572,6 +662,10 @@ class CertCheckMonitor(pulumi.CustomResource):
572
662
  :param pulumi.Input[str] name: The name for the monitor.
573
663
  :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.
574
664
  :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
665
+ :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
666
+ :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
667
+
668
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
575
669
  :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED).
576
670
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertCheckMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details
577
671
  """
@@ -587,6 +681,8 @@ class CertCheckMonitor(pulumi.CustomResource):
587
681
  __props__.__dict__["name"] = name
588
682
  __props__.__dict__["period"] = period
589
683
  __props__.__dict__["period_in_minutes"] = period_in_minutes
684
+ __props__.__dict__["runtime_type"] = runtime_type
685
+ __props__.__dict__["runtime_type_version"] = runtime_type_version
590
686
  __props__.__dict__["status"] = status
591
687
  __props__.__dict__["tags"] = tags
592
688
  return CertCheckMonitor(resource_name, opts=opts, __props__=__props__)
@@ -655,6 +751,24 @@ class CertCheckMonitor(pulumi.CustomResource):
655
751
  """
656
752
  return pulumi.get(self, "period_in_minutes")
657
753
 
754
+ @property
755
+ @pulumi.getter(name="runtimeType")
756
+ def runtime_type(self) -> pulumi.Output[Optional[str]]:
757
+ """
758
+ The runtime that the monitor will use to run jobs.
759
+ """
760
+ return pulumi.get(self, "runtime_type")
761
+
762
+ @property
763
+ @pulumi.getter(name="runtimeTypeVersion")
764
+ def runtime_type_version(self) -> pulumi.Output[Optional[str]]:
765
+ """
766
+ The specific version of the runtime type selected.
767
+
768
+ > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtime_type` and `runtime_type_version` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
769
+ """
770
+ return pulumi.get(self, "runtime_type_version")
771
+
658
772
  @property
659
773
  @pulumi.getter
660
774
  def status(self) -> pulumi.Output[str]: