Use this resource to create, update, and delete a Synthetics Certificate Check monitor in New Relic.
IMPORTANT: The Synthetics Legacy Runtime has reached its end-of-life on October 22, 2024. As a consequence, using the legacy runtime or blank runtime values with Synthetic monitor requests from the New Relic Terraform Provider will result in API errors. Starting with v3.51.0 of the New Relic Terraform Provider, configurations of Synthetic monitors without runtime attributes or comprising legacy runtime values will be deemed invalid.
If your Synthetic monitors’ configuration is not updated already with new runtime values, upgrade as soon as possible to avoid these consequences. For more details and instructions, please see the detailed warning againstruntime_typeandruntime_type_versionin the Argument Reference section.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = new newrelic.synthetics.CertCheckMonitor("foo", {
name: "Sample Cert Check Monitor",
domain: "www.example.com",
locationsPublics: ["AP_SOUTH_1"],
certificateExpiration: 10,
period: "EVERY_6_HOURS",
status: "ENABLED",
runtimeType: "NODE_API",
runtimeTypeVersion: "16.10",
tags: [{
key: "some_key",
values: ["some_value"],
}],
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.synthetics.CertCheckMonitor("foo",
name="Sample Cert Check Monitor",
domain="www.example.com",
locations_publics=["AP_SOUTH_1"],
certificate_expiration=10,
period="EVERY_6_HOURS",
status="ENABLED",
runtime_type="NODE_API",
runtime_type_version="16.10",
tags=[{
"key": "some_key",
"values": ["some_value"],
}])
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := synthetics.NewCertCheckMonitor(ctx, "foo", &synthetics.CertCheckMonitorArgs{
Name: pulumi.String("Sample Cert Check Monitor"),
Domain: pulumi.String("www.example.com"),
LocationsPublics: pulumi.StringArray{
pulumi.String("AP_SOUTH_1"),
},
CertificateExpiration: pulumi.Int(10),
Period: pulumi.String("EVERY_6_HOURS"),
Status: pulumi.String("ENABLED"),
RuntimeType: pulumi.String("NODE_API"),
RuntimeTypeVersion: pulumi.String("16.10"),
Tags: synthetics.CertCheckMonitorTagArray{
&synthetics.CertCheckMonitorTagArgs{
Key: pulumi.String("some_key"),
Values: pulumi.StringArray{
pulumi.String("some_value"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var foo = new NewRelic.Synthetics.CertCheckMonitor("foo", new()
{
Name = "Sample Cert Check Monitor",
Domain = "www.example.com",
LocationsPublics = new[]
{
"AP_SOUTH_1",
},
CertificateExpiration = 10,
Period = "EVERY_6_HOURS",
Status = "ENABLED",
RuntimeType = "NODE_API",
RuntimeTypeVersion = "16.10",
Tags = new[]
{
new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs
{
Key = "some_key",
Values = new[]
{
"some_value",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.CertCheckMonitor;
import com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new CertCheckMonitor("foo", CertCheckMonitorArgs.builder()
.name("Sample Cert Check Monitor")
.domain("www.example.com")
.locationsPublics("AP_SOUTH_1")
.certificateExpiration(10)
.period("EVERY_6_HOURS")
.status("ENABLED")
.runtimeType("NODE_API")
.runtimeTypeVersion("16.10")
.tags(CertCheckMonitorTagArgs.builder()
.key("some_key")
.values("some_value")
.build())
.build());
}
}
resources:
foo:
type: newrelic:synthetics:CertCheckMonitor
properties:
name: Sample Cert Check Monitor
domain: www.example.com
locationsPublics:
- AP_SOUTH_1
certificateExpiration: '10'
period: EVERY_6_HOURS
status: ENABLED
runtimeType: NODE_API
runtimeTypeVersion: '16.10'
tags:
- key: some_key
values:
- some_value
See additional examples.
Additional Examples
Create a monitor with a private location
The below example shows how you can define a private location and attach it to a monitor.
NOTE: It can take up to 10 minutes for a private location to become available.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = new newrelic.synthetics.PrivateLocation("foo", {
name: "Sample Private Location",
description: "Sample Private Location Description",
verifiedScriptExecution: false,
});
const fooCertCheckMonitor = new newrelic.synthetics.CertCheckMonitor("foo", {
name: "Sample Cert Check Monitor",
domain: "www.one.example.com",
locationsPrivates: [foo.id],
certificateExpiration: 10,
period: "EVERY_6_HOURS",
status: "ENABLED",
tags: [{
key: "some_key",
values: ["some_value"],
}],
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.synthetics.PrivateLocation("foo",
name="Sample Private Location",
description="Sample Private Location Description",
verified_script_execution=False)
foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("foo",
name="Sample Cert Check Monitor",
domain="www.one.example.com",
locations_privates=[foo.id],
certificate_expiration=10,
period="EVERY_6_HOURS",
status="ENABLED",
tags=[{
"key": "some_key",
"values": ["some_value"],
}])
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := synthetics.NewPrivateLocation(ctx, "foo", &synthetics.PrivateLocationArgs{
Name: pulumi.String("Sample Private Location"),
Description: pulumi.String("Sample Private Location Description"),
VerifiedScriptExecution: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = synthetics.NewCertCheckMonitor(ctx, "foo", &synthetics.CertCheckMonitorArgs{
Name: pulumi.String("Sample Cert Check Monitor"),
Domain: pulumi.String("www.one.example.com"),
LocationsPrivates: pulumi.StringArray{
foo.ID(),
},
CertificateExpiration: pulumi.Int(10),
Period: pulumi.String("EVERY_6_HOURS"),
Status: pulumi.String("ENABLED"),
Tags: synthetics.CertCheckMonitorTagArray{
&synthetics.CertCheckMonitorTagArgs{
Key: pulumi.String("some_key"),
Values: pulumi.StringArray{
pulumi.String("some_value"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var foo = new NewRelic.Synthetics.PrivateLocation("foo", new()
{
Name = "Sample Private Location",
Description = "Sample Private Location Description",
VerifiedScriptExecution = false,
});
var fooCertCheckMonitor = new NewRelic.Synthetics.CertCheckMonitor("foo", new()
{
Name = "Sample Cert Check Monitor",
Domain = "www.one.example.com",
LocationsPrivates = new[]
{
foo.Id,
},
CertificateExpiration = 10,
Period = "EVERY_6_HOURS",
Status = "ENABLED",
Tags = new[]
{
new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs
{
Key = "some_key",
Values = new[]
{
"some_value",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.PrivateLocation;
import com.pulumi.newrelic.synthetics.PrivateLocationArgs;
import com.pulumi.newrelic.synthetics.CertCheckMonitor;
import com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new PrivateLocation("foo", PrivateLocationArgs.builder()
.name("Sample Private Location")
.description("Sample Private Location Description")
.verifiedScriptExecution(false)
.build());
var fooCertCheckMonitor = new CertCheckMonitor("fooCertCheckMonitor", CertCheckMonitorArgs.builder()
.name("Sample Cert Check Monitor")
.domain("www.one.example.com")
.locationsPrivates(foo.id())
.certificateExpiration(10)
.period("EVERY_6_HOURS")
.status("ENABLED")
.tags(CertCheckMonitorTagArgs.builder()
.key("some_key")
.values("some_value")
.build())
.build());
}
}
resources:
foo:
type: newrelic:synthetics:PrivateLocation
properties:
name: Sample Private Location
description: Sample Private Location Description
verifiedScriptExecution: false
fooCertCheckMonitor:
type: newrelic:synthetics:CertCheckMonitor
name: foo
properties:
name: Sample Cert Check Monitor
domain: www.one.example.com
locationsPrivates:
- ${foo.id}
certificateExpiration: '10'
period: EVERY_6_HOURS
status: ENABLED
tags:
- key: some_key
values:
- some_value
Create CertCheckMonitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CertCheckMonitor(name: string, args: CertCheckMonitorArgs, opts?: CustomResourceOptions);@overload
def CertCheckMonitor(resource_name: str,
args: CertCheckMonitorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CertCheckMonitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_expiration: Optional[int] = None,
domain: Optional[str] = None,
period: Optional[str] = None,
status: Optional[str] = None,
account_id: Optional[str] = None,
locations_privates: Optional[Sequence[str]] = None,
locations_publics: Optional[Sequence[str]] = None,
name: Optional[str] = None,
runtime_type: Optional[str] = None,
runtime_type_version: Optional[str] = None,
tags: Optional[Sequence[CertCheckMonitorTagArgs]] = None,
use_unsupported_legacy_runtime: Optional[bool] = None)func NewCertCheckMonitor(ctx *Context, name string, args CertCheckMonitorArgs, opts ...ResourceOption) (*CertCheckMonitor, error)public CertCheckMonitor(string name, CertCheckMonitorArgs args, CustomResourceOptions? opts = null)
public CertCheckMonitor(String name, CertCheckMonitorArgs args)
public CertCheckMonitor(String name, CertCheckMonitorArgs args, CustomResourceOptions options)
type: newrelic:synthetics:CertCheckMonitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CertCheckMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CertCheckMonitorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CertCheckMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertCheckMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertCheckMonitorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var certCheckMonitorResource = new NewRelic.Synthetics.CertCheckMonitor("certCheckMonitorResource", new()
{
CertificateExpiration = 0,
Domain = "string",
Period = "string",
Status = "string",
AccountId = "string",
LocationsPrivates = new[]
{
"string",
},
LocationsPublics = new[]
{
"string",
},
Name = "string",
RuntimeType = "string",
RuntimeTypeVersion = "string",
Tags = new[]
{
new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
},
UseUnsupportedLegacyRuntime = false,
});
example, err := synthetics.NewCertCheckMonitor(ctx, "certCheckMonitorResource", &synthetics.CertCheckMonitorArgs{
CertificateExpiration: pulumi.Int(0),
Domain: pulumi.String("string"),
Period: pulumi.String("string"),
Status: pulumi.String("string"),
AccountId: pulumi.String("string"),
LocationsPrivates: pulumi.StringArray{
pulumi.String("string"),
},
LocationsPublics: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
RuntimeType: pulumi.String("string"),
RuntimeTypeVersion: pulumi.String("string"),
Tags: synthetics.CertCheckMonitorTagArray{
&synthetics.CertCheckMonitorTagArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
UseUnsupportedLegacyRuntime: pulumi.Bool(false),
})
var certCheckMonitorResource = new CertCheckMonitor("certCheckMonitorResource", CertCheckMonitorArgs.builder()
.certificateExpiration(0)
.domain("string")
.period("string")
.status("string")
.accountId("string")
.locationsPrivates("string")
.locationsPublics("string")
.name("string")
.runtimeType("string")
.runtimeTypeVersion("string")
.tags(CertCheckMonitorTagArgs.builder()
.key("string")
.values("string")
.build())
.useUnsupportedLegacyRuntime(false)
.build());
cert_check_monitor_resource = newrelic.synthetics.CertCheckMonitor("certCheckMonitorResource",
certificate_expiration=0,
domain="string",
period="string",
status="string",
account_id="string",
locations_privates=["string"],
locations_publics=["string"],
name="string",
runtime_type="string",
runtime_type_version="string",
tags=[{
"key": "string",
"values": ["string"],
}],
use_unsupported_legacy_runtime=False)
const certCheckMonitorResource = new newrelic.synthetics.CertCheckMonitor("certCheckMonitorResource", {
certificateExpiration: 0,
domain: "string",
period: "string",
status: "string",
accountId: "string",
locationsPrivates: ["string"],
locationsPublics: ["string"],
name: "string",
runtimeType: "string",
runtimeTypeVersion: "string",
tags: [{
key: "string",
values: ["string"],
}],
useUnsupportedLegacyRuntime: false,
});
type: newrelic:synthetics:CertCheckMonitor
properties:
accountId: string
certificateExpiration: 0
domain: string
locationsPrivates:
- string
locationsPublics:
- string
name: string
period: string
runtimeType: string
runtimeTypeVersion: string
status: string
tags:
- key: string
values:
- string
useUnsupportedLegacyRuntime: false
CertCheckMonitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CertCheckMonitor resource accepts the following input properties:
- Certificate
Expiration int - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- Domain string
- The domain of the host that will have its certificate checked.
- Period string
- 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, orEVERY_DAY. - Status string
- The run state of the monitor. (
ENABLEDorDISABLED). - Account
Id string - The account in which the Synthetics monitor will be created.
- Locations
Privates List<string> - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - Locations
Publics List<string> - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - Name string
- The name for the monitor.
- Runtime
Type string - The runtime that the monitor will use to run jobs (
NODE_API). - Runtime
Type stringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.-
List<Pulumi.
New Relic. Synthetics. Inputs. Cert Check Monitor Tag> - The tags that will be associated with the monitor. See Nested tag blocks below for details
- Use
Unsupported boolLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- Certificate
Expiration int - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- Domain string
- The domain of the host that will have its certificate checked.
- Period string
- 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, orEVERY_DAY. - Status string
- The run state of the monitor. (
ENABLEDorDISABLED). - Account
Id string - The account in which the Synthetics monitor will be created.
- Locations
Privates []string - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - Locations
Publics []string - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - Name string
- The name for the monitor.
- Runtime
Type string - The runtime that the monitor will use to run jobs (
NODE_API). - Runtime
Type stringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.-
[]Cert
Check Monitor Tag Args - The tags that will be associated with the monitor. See Nested tag blocks below for details
- Use
Unsupported boolLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- certificate
Expiration Integer - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain String
- The domain of the host that will have its certificate checked.
- period String
- 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, orEVERY_DAY. - status String
- The run state of the monitor. (
ENABLEDorDISABLED). - account
Id String - The account in which the Synthetics monitor will be created.
- locations
Privates List<String> - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - locations
Publics List<String> - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - name String
- The name for the monitor.
- runtime
Type String - The runtime that the monitor will use to run jobs (
NODE_API). - runtime
Type StringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.-
List<Cert
Check Monitor Tag> - The tags that will be associated with the monitor. See Nested tag blocks below for details
- use
Unsupported BooleanLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- certificate
Expiration number - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain string
- The domain of the host that will have its certificate checked.
- period string
- 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, orEVERY_DAY. - status string
- The run state of the monitor. (
ENABLEDorDISABLED). - account
Id string - The account in which the Synthetics monitor will be created.
- locations
Privates string[] - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - locations
Publics string[] - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - name string
- The name for the monitor.
- runtime
Type string - The runtime that the monitor will use to run jobs (
NODE_API). - runtime
Type stringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.-
Cert
Check Monitor Tag[] - The tags that will be associated with the monitor. See Nested tag blocks below for details
- use
Unsupported booleanLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- certificate_
expiration int - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain str
- The domain of the host that will have its certificate checked.
- period str
- 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, orEVERY_DAY. - status str
- The run state of the monitor. (
ENABLEDorDISABLED). - account_
id str - The account in which the Synthetics monitor will be created.
- locations_
privates Sequence[str] - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - locations_
publics Sequence[str] - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - name str
- The name for the monitor.
- runtime_
type str - The runtime that the monitor will use to run jobs (
NODE_API). - runtime_
type_ strversion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.-
Sequence[Cert
Check Monitor Tag Args] - The tags that will be associated with the monitor. See Nested tag blocks below for details
- use_
unsupported_ boollegacy_ runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- certificate
Expiration Number - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain String
- The domain of the host that will have its certificate checked.
- period String
- 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, orEVERY_DAY. - status String
- The run state of the monitor. (
ENABLEDorDISABLED). - account
Id String - The account in which the Synthetics monitor will be created.
- locations
Privates List<String> - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - locations
Publics List<String> - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - name String
- The name for the monitor.
- runtime
Type String - The runtime that the monitor will use to run jobs (
NODE_API). - runtime
Type StringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.- List<Property Map>
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- use
Unsupported BooleanLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
Outputs
All input properties are implicitly available as output properties. Additionally, the CertCheckMonitor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Monitor
Id string - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- Period
In intMinutes - The interval in minutes at which Synthetic monitor should run.
- Id string
- The provider-assigned unique ID for this managed resource.
- Monitor
Id string - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- Period
In intMinutes - The interval in minutes at which Synthetic monitor should run.
- id String
- The provider-assigned unique ID for this managed resource.
- monitor
Id String - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- period
In IntegerMinutes - The interval in minutes at which Synthetic monitor should run.
- id string
- The provider-assigned unique ID for this managed resource.
- monitor
Id string - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- period
In numberMinutes - The interval in minutes at which Synthetic monitor should run.
- id str
- The provider-assigned unique ID for this managed resource.
- monitor_
id str - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- period_
in_ intminutes - The interval in minutes at which Synthetic monitor should run.
- id String
- The provider-assigned unique ID for this managed resource.
- monitor
Id String - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- period
In NumberMinutes - The interval in minutes at which Synthetic monitor should run.
Look up Existing CertCheckMonitor Resource
Get an existing CertCheckMonitor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CertCheckMonitorState, opts?: CustomResourceOptions): CertCheckMonitor@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
certificate_expiration: Optional[int] = None,
domain: Optional[str] = None,
locations_privates: Optional[Sequence[str]] = None,
locations_publics: Optional[Sequence[str]] = None,
monitor_id: Optional[str] = None,
name: Optional[str] = None,
period: Optional[str] = None,
period_in_minutes: Optional[int] = None,
runtime_type: Optional[str] = None,
runtime_type_version: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[CertCheckMonitorTagArgs]] = None,
use_unsupported_legacy_runtime: Optional[bool] = None) -> CertCheckMonitorfunc GetCertCheckMonitor(ctx *Context, name string, id IDInput, state *CertCheckMonitorState, opts ...ResourceOption) (*CertCheckMonitor, error)public static CertCheckMonitor Get(string name, Input<string> id, CertCheckMonitorState? state, CustomResourceOptions? opts = null)public static CertCheckMonitor get(String name, Output<String> id, CertCheckMonitorState state, CustomResourceOptions options)resources: _: type: newrelic:synthetics:CertCheckMonitor get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - The account in which the Synthetics monitor will be created.
- Certificate
Expiration int - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- Domain string
- The domain of the host that will have its certificate checked.
- Locations
Privates List<string> - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - Locations
Publics List<string> - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - Monitor
Id string - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- Name string
- The name for the monitor.
- Period string
- 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, orEVERY_DAY. - Period
In intMinutes - The interval in minutes at which Synthetic monitor should run.
- Runtime
Type string - The runtime that the monitor will use to run jobs (
NODE_API). - Runtime
Type stringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.- Status string
- The run state of the monitor. (
ENABLEDorDISABLED). -
List<Pulumi.
New Relic. Synthetics. Inputs. Cert Check Monitor Tag> - The tags that will be associated with the monitor. See Nested tag blocks below for details
- Use
Unsupported boolLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- Account
Id string - The account in which the Synthetics monitor will be created.
- Certificate
Expiration int - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- Domain string
- The domain of the host that will have its certificate checked.
- Locations
Privates []string - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - Locations
Publics []string - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - Monitor
Id string - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- Name string
- The name for the monitor.
- Period string
- 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, orEVERY_DAY. - Period
In intMinutes - The interval in minutes at which Synthetic monitor should run.
- Runtime
Type string - The runtime that the monitor will use to run jobs (
NODE_API). - Runtime
Type stringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.- Status string
- The run state of the monitor. (
ENABLEDorDISABLED). -
[]Cert
Check Monitor Tag Args - The tags that will be associated with the monitor. See Nested tag blocks below for details
- Use
Unsupported boolLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- account
Id String - The account in which the Synthetics monitor will be created.
- certificate
Expiration Integer - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain String
- The domain of the host that will have its certificate checked.
- locations
Privates List<String> - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - locations
Publics List<String> - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - monitor
Id String - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- name String
- The name for the monitor.
- period String
- 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, orEVERY_DAY. - period
In IntegerMinutes - The interval in minutes at which Synthetic monitor should run.
- runtime
Type String - The runtime that the monitor will use to run jobs (
NODE_API). - runtime
Type StringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.- status String
- The run state of the monitor. (
ENABLEDorDISABLED). -
List<Cert
Check Monitor Tag> - The tags that will be associated with the monitor. See Nested tag blocks below for details
- use
Unsupported BooleanLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- account
Id string - The account in which the Synthetics monitor will be created.
- certificate
Expiration number - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain string
- The domain of the host that will have its certificate checked.
- locations
Privates string[] - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - locations
Publics string[] - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - monitor
Id string - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- name string
- The name for the monitor.
- period string
- 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, orEVERY_DAY. - period
In numberMinutes - The interval in minutes at which Synthetic monitor should run.
- runtime
Type string - The runtime that the monitor will use to run jobs (
NODE_API). - runtime
Type stringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.- status string
- The run state of the monitor. (
ENABLEDorDISABLED). -
Cert
Check Monitor Tag[] - The tags that will be associated with the monitor. See Nested tag blocks below for details
- use
Unsupported booleanLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- account_
id str - The account in which the Synthetics monitor will be created.
- certificate_
expiration int - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain str
- The domain of the host that will have its certificate checked.
- locations_
privates Sequence[str] - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - locations_
publics Sequence[str] - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - monitor_
id str - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- name str
- The name for the monitor.
- period str
- 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, orEVERY_DAY. - period_
in_ intminutes - The interval in minutes at which Synthetic monitor should run.
- runtime_
type str - The runtime that the monitor will use to run jobs (
NODE_API). - runtime_
type_ strversion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.- status str
- The run state of the monitor. (
ENABLEDorDISABLED). -
Sequence[Cert
Check Monitor Tag Args] - The tags that will be associated with the monitor. See Nested tag blocks below for details
- use_
unsupported_ boollegacy_ runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
- account
Id String - The account in which the Synthetics monitor will be created.
- certificate
Expiration Number - The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain String
- The domain of the host that will have its certificate checked.
- locations
Privates List<String> - The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_publicorlocations_privateis required. - locations
Publics List<String> - The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the
AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required. - monitor
Id String - The monitor id of the certificate check synthetics monitor (not to be confused with the GUID of the monitor).
- name String
- The name for the monitor.
- period String
- 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, orEVERY_DAY. - period
In NumberMinutes - The interval in minutes at which Synthetic monitor should run.
- runtime
Type String - The runtime that the monitor will use to run jobs (
NODE_API). - runtime
Type StringVersion The specific version of the runtime type selected (
16.10).WARNING: The end-of-life of the Synthetics Legacy Runtime took effect on October 22, 2024, implying that support for using the deprecated Synthetics Legacy Runtime with new and existing Synthetic monitors officially ended as of October 22, 2024. As a consequence of this API change, all requests associated with Synthetic Monitors (except Ping Monitors) going out of the New Relic Terraform Provider will be blocked by an API error if they include values corresponding to the legacy runtime or blank runtime values. Following these changes, starting with v3.51.0 of the New Relic Terraform Provider, configuration of new and existing Synthetic monitors without runtime attributes (or) comprising runtime attributes signifying the legacy runtime will be deemed invalid (this applies to all Synthetic monitor resources, except
newrelic.synthetics.Monitorwith typeSIMPLE). If your monitors' configuration is not updated with new runtime values, you will see the consequences stated here. New Synthetic monitors created after August 26, 2024 already adhere to these restrictions, as part of the first phase of the EOL. We kindly recommend that you upgrade your Synthetic Monitors to the new runtime as soon as possible if they are still using the legacy runtime, to avoid seeing the aforementioned consequences. Please check out this guide in the documentation of the Terraform Provider (specifically, the table at the bottom of the guide, if you're looking for updates to be made to the configuration of Synthetic monitors) and this announcement for more details on the EOL, actions needed, relevant resources, and more. You would not be affected by the EOL if your Synthetic monitors' Terraform configuration comprises new runtime values.- status String
- The run state of the monitor. (
ENABLEDorDISABLED). - List<Property Map>
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- use
Unsupported BooleanLegacy Runtime - A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
Supporting Types
CertCheckMonitorTag, CertCheckMonitorTagArgs
Import
A cert check monitor can be imported using its GUID, using the following command.
$ terraform import newrelic_synthetics_cert_check_monitor.monitor <guid>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelicTerraform Provider.
