diff --git a/patches/0001-fork.patch b/patches/0001-fork.patch index d8b569bd..efc6979c 100644 --- a/patches/0001-fork.patch +++ b/patches/0001-fork.patch @@ -4,19 +4,6 @@ Date: Mon, 24 Apr 2023 15:00:52 -0700 Subject: [PATCH] fork -diff --git a/.githooks/commit-msg b/.githooks/commit-msg -deleted file mode 100755 -index 8d95d053..00000000 ---- a/.githooks/commit-msg -+++ /dev/null -@@ -1,7 +0,0 @@ --#!/bin/sh -- --echo --echo "Checking commit message format..." --echo -- --make lint-commit COMMIT_MSG_FILE=$1 diff --git a/newrelic/resource_newrelic_nrql_alert_condition.go b/newrelic/resource_newrelic_nrql_alert_condition.go index ca782a65..c683a515 100644 --- a/newrelic/resource_newrelic_nrql_alert_condition.go diff --git a/provider/cmd/pulumi-resource-newrelic/schema.json b/provider/cmd/pulumi-resource-newrelic/schema.json index 5ae76743..7b7a79cf 100644 --- a/provider/cmd/pulumi-resource-newrelic/schema.json +++ b/provider/cmd/pulumi-resource-newrelic/schema.json @@ -10155,19 +10155,23 @@ } }, "newrelic:index/browserApplication:BrowserApplication": { - "description": "Use this resource to create, update, and delete a standalone New Relic browser application.\n\n## Example Usage\n\nBasic usage to create a standalone browser application.\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.BrowserApplication(\"foo\", {\n cookiesEnabled: true,\n distributedTracingEnabled: true,\n loaderType: \"SPA\",\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.BrowserApplication(\"foo\",\n cookies_enabled=True,\n distributed_tracing_enabled=True,\n loader_type=\"SPA\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = new NewRelic.BrowserApplication(\"foo\", new()\n {\n CookiesEnabled = true,\n DistributedTracingEnabled = true,\n LoaderType = \"SPA\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := newrelic.NewBrowserApplication(ctx, \"foo\", \u0026newrelic.BrowserApplicationArgs{\n\t\t\tCookiesEnabled: pulumi.Bool(true),\n\t\t\tDistributedTracingEnabled: pulumi.Bool(true),\n\t\t\tLoaderType: pulumi.String(\"SPA\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.BrowserApplication;\nimport com.pulumi.newrelic.BrowserApplicationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var foo = new BrowserApplication(\"foo\", BrowserApplicationArgs.builder() \n .cookiesEnabled(true)\n .distributedTracingEnabled(true)\n .loaderType(\"SPA\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:BrowserApplication\n properties:\n cookiesEnabled: true\n distributedTracingEnabled: true\n loaderType: SPA\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nBrowser applications can be imported using the GUID of the browser application.\n\nbash\n\n```sh\n$ pulumi import newrelic:index/browserApplication:BrowserApplication foo \u003cGUID\u003e\n```\n\n", + "description": "\n\n## Import\n\nA browser application can be imported using its GUID, i.e.\n\nbash\n\n```sh\n$ pulumi import newrelic:index/browserApplication:BrowserApplication foo \u003cGUID\u003e\n```\n\n", "properties": { "accountId": { "type": "integer", - "description": "The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.\n" + "description": "The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.\n" + }, + "applicationId": { + "type": "string", + "description": "The application ID of the browser application (not to be confused with GUID).\n" }, "cookiesEnabled": { "type": "boolean", - "description": "Configure cookies. The default is enabled: true.\n" + "description": "Configures cookies. Defaults to `true`, if not specified.\n" }, "distributedTracingEnabled": { "type": "boolean", - "description": "Configure distributed tracing in browser apps. The default is enabled: true.\n" + "description": "Configures distributed tracing in browser apps. Defaults to `true`, if not specified.\n" }, "guid": { "type": "string", @@ -10175,11 +10179,11 @@ }, "jsConfig": { "type": "string", - "description": "JavaScript configuration of the browser application encoded into a string.\n" + "description": "The JavaScript configuration of the browser application, encoded into a string.\n" }, "loaderType": { "type": "string", - "description": "Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types.\n" + "description": "Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.\n" }, "name": { "type": "string", @@ -10188,6 +10192,7 @@ }, "required": [ "accountId", + "applicationId", "guid", "jsConfig", "name" @@ -10195,19 +10200,19 @@ "inputProperties": { "accountId": { "type": "integer", - "description": "The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.\n" + "description": "The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.\n" }, "cookiesEnabled": { "type": "boolean", - "description": "Configure cookies. The default is enabled: true.\n" + "description": "Configures cookies. Defaults to `true`, if not specified.\n" }, "distributedTracingEnabled": { "type": "boolean", - "description": "Configure distributed tracing in browser apps. The default is enabled: true.\n" + "description": "Configures distributed tracing in browser apps. Defaults to `true`, if not specified.\n" }, "loaderType": { "type": "string", - "description": "Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types.\n" + "description": "Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.\n" }, "name": { "type": "string", @@ -10219,15 +10224,19 @@ "properties": { "accountId": { "type": "integer", - "description": "The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.\n" + "description": "The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified.\n" + }, + "applicationId": { + "type": "string", + "description": "The application ID of the browser application (not to be confused with GUID).\n" }, "cookiesEnabled": { "type": "boolean", - "description": "Configure cookies. The default is enabled: true.\n" + "description": "Configures cookies. Defaults to `true`, if not specified.\n" }, "distributedTracingEnabled": { "type": "boolean", - "description": "Configure distributed tracing in browser apps. The default is enabled: true.\n" + "description": "Configures distributed tracing in browser apps. Defaults to `true`, if not specified.\n" }, "guid": { "type": "string", @@ -10235,11 +10244,11 @@ }, "jsConfig": { "type": "string", - "description": "JavaScript configuration of the browser application encoded into a string.\n" + "description": "The JavaScript configuration of the browser application, encoded into a string.\n" }, "loaderType": { "type": "string", - "description": "Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types.\n" + "description": "Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types.\n" }, "name": { "type": "string", @@ -13056,7 +13065,7 @@ } }, "newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor": { - "description": "Use this resource to create, update, and delete a Synthetics Broken Links monitor in New Relic.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst monitor = new newrelic.synthetics.BrokenLinksMonitor(\"monitor\", {\n locationsPublics: [\"AP_SOUTH_1\"],\n period: \"EVERY_6_HOURS\",\n status: \"ENABLED\",\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n uri: \"https://www.one.example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nmonitor = newrelic.synthetics.BrokenLinksMonitor(\"monitor\",\n locations_publics=[\"AP_SOUTH_1\"],\n period=\"EVERY_6_HOURS\",\n status=\"ENABLED\",\n tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )],\n uri=\"https://www.one.example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var monitor = new NewRelic.Synthetics.BrokenLinksMonitor(\"monitor\", new()\n {\n LocationsPublics = new[]\n {\n \"AP_SOUTH_1\",\n },\n Period = \"EVERY_6_HOURS\",\n Status = \"ENABLED\",\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n Uri = \"https://www.one.example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := synthetics.NewBrokenLinksMonitor(ctx, \"monitor\", \u0026synthetics.BrokenLinksMonitorArgs{\n\t\t\tLocationsPublics: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"AP_SOUTH_1\"),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tTags: synthetics.BrokenLinksMonitorTagArray{\n\t\t\t\t\u0026synthetics.BrokenLinksMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tUri: pulumi.String(\"https://www.one.example.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.BrokenLinksMonitor;\nimport com.pulumi.newrelic.synthetics.BrokenLinksMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.BrokenLinksMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var monitor = new BrokenLinksMonitor(\"monitor\", BrokenLinksMonitorArgs.builder() \n .locationsPublics(\"AP_SOUTH_1\")\n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .tags(BrokenLinksMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .uri(\"https://www.one.example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n monitor:\n type: newrelic:synthetics:BrokenLinksMonitor\n properties:\n locationsPublics:\n - AP_SOUTH_1\n period: EVERY_6_HOURS\n status: ENABLED\n tags:\n - key: some_key\n values:\n - some_value\n uri: https://www.one.example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\nSee additional examples.\n\n## Additional Examples\n\n### Create a monitor with a private location\n\nThe below example shows how you can define a private location and attach it to a monitor.\n\n\u003e **NOTE:** It can take up to 10 minutes for a private location to become available.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst location = new newrelic.synthetics.PrivateLocation(\"location\", {\n description: \"Test Description\",\n verifiedScriptExecution: false,\n});\nconst monitor = new newrelic.synthetics.BrokenLinksMonitor(\"monitor\", {\n uri: \"https://www.one.example.com\",\n locationsPrivates: [location.id],\n period: \"EVERY_6_HOURS\",\n status: \"ENABLED\",\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nlocation = newrelic.synthetics.PrivateLocation(\"location\",\n description=\"Test Description\",\n verified_script_execution=False)\nmonitor = newrelic.synthetics.BrokenLinksMonitor(\"monitor\",\n uri=\"https://www.one.example.com\",\n locations_privates=[location.id],\n period=\"EVERY_6_HOURS\",\n status=\"ENABLED\",\n tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var location = new NewRelic.Synthetics.PrivateLocation(\"location\", new()\n {\n Description = \"Test Description\",\n VerifiedScriptExecution = false,\n });\n\n var monitor = new NewRelic.Synthetics.BrokenLinksMonitor(\"monitor\", new()\n {\n Uri = \"https://www.one.example.com\",\n LocationsPrivates = new[]\n {\n location.Id,\n },\n Period = \"EVERY_6_HOURS\",\n Status = \"ENABLED\",\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlocation, err := synthetics.NewPrivateLocation(ctx, \"location\", \u0026synthetics.PrivateLocationArgs{\n\t\t\tDescription: pulumi.String(\"Test Description\"),\n\t\t\tVerifiedScriptExecution: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = synthetics.NewBrokenLinksMonitor(ctx, \"monitor\", \u0026synthetics.BrokenLinksMonitorArgs{\n\t\t\tUri: pulumi.String(\"https://www.one.example.com\"),\n\t\t\tLocationsPrivates: pulumi.StringArray{\n\t\t\t\tlocation.ID(),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tTags: synthetics.BrokenLinksMonitorTagArray{\n\t\t\t\t\u0026synthetics.BrokenLinksMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.PrivateLocation;\nimport com.pulumi.newrelic.synthetics.PrivateLocationArgs;\nimport com.pulumi.newrelic.synthetics.BrokenLinksMonitor;\nimport com.pulumi.newrelic.synthetics.BrokenLinksMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.BrokenLinksMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var location = new PrivateLocation(\"location\", PrivateLocationArgs.builder() \n .description(\"Test Description\")\n .verifiedScriptExecution(false)\n .build());\n\n var monitor = new BrokenLinksMonitor(\"monitor\", BrokenLinksMonitorArgs.builder() \n .uri(\"https://www.one.example.com\")\n .locationsPrivates(location.id())\n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .tags(BrokenLinksMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n location:\n type: newrelic:synthetics:PrivateLocation\n properties:\n description: Test Description\n verifiedScriptExecution: false\n monitor:\n type: newrelic:synthetics:BrokenLinksMonitor\n properties:\n uri: https://www.one.example.com\n locationsPrivates:\n - ${location.id}\n period: EVERY_6_HOURS\n status: ENABLED\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nSynthetics broken links monitor scripts can be imported using the `guid`, e.g.\n\nbash\n\n```sh\n$ pulumi import newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor monitor \u003cguid\u003e\n```\n\n", + "description": "Use this resource to create, update, and delete a Synthetics Broken Links monitor in New Relic.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.synthetics.BrokenLinksMonitor(\"foo\", {\n locationsPublics: [\"AP_SOUTH_1\"],\n period: \"EVERY_6_HOURS\",\n runtimeType: \"NODE_API\",\n runtimeTypeVersion: \"16.10\",\n status: \"ENABLED\",\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n uri: \"https://www.one.example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.synthetics.BrokenLinksMonitor(\"foo\",\n locations_publics=[\"AP_SOUTH_1\"],\n period=\"EVERY_6_HOURS\",\n runtime_type=\"NODE_API\",\n runtime_type_version=\"16.10\",\n status=\"ENABLED\",\n tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )],\n uri=\"https://www.one.example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = new NewRelic.Synthetics.BrokenLinksMonitor(\"foo\", new()\n {\n LocationsPublics = new[]\n {\n \"AP_SOUTH_1\",\n },\n Period = \"EVERY_6_HOURS\",\n RuntimeType = \"NODE_API\",\n RuntimeTypeVersion = \"16.10\",\n Status = \"ENABLED\",\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n Uri = \"https://www.one.example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := synthetics.NewBrokenLinksMonitor(ctx, \"foo\", \u0026synthetics.BrokenLinksMonitorArgs{\n\t\t\tLocationsPublics: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"AP_SOUTH_1\"),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tRuntimeType: pulumi.String(\"NODE_API\"),\n\t\t\tRuntimeTypeVersion: pulumi.String(\"16.10\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tTags: synthetics.BrokenLinksMonitorTagArray{\n\t\t\t\t\u0026synthetics.BrokenLinksMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tUri: pulumi.String(\"https://www.one.example.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.BrokenLinksMonitor;\nimport com.pulumi.newrelic.synthetics.BrokenLinksMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.BrokenLinksMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var foo = new BrokenLinksMonitor(\"foo\", BrokenLinksMonitorArgs.builder() \n .locationsPublics(\"AP_SOUTH_1\")\n .period(\"EVERY_6_HOURS\")\n .runtimeType(\"NODE_API\")\n .runtimeTypeVersion(\"16.10\")\n .status(\"ENABLED\")\n .tags(BrokenLinksMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .uri(\"https://www.one.example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:synthetics:BrokenLinksMonitor\n properties:\n locationsPublics:\n - AP_SOUTH_1\n period: EVERY_6_HOURS\n runtimeType: NODE_API\n runtimeTypeVersion: '16.10'\n status: ENABLED\n tags:\n - key: some_key\n values:\n - some_value\n uri: https://www.one.example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\nSee additional examples.\n\n## Additional Examples\n\n### Create a monitor with a private location\n\nThe below example shows how you can define a private location and attach it to a monitor.\n\n\u003e **NOTE:** It can take up to 10 minutes for a private location to become available.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst fooPrivateLocation = new newrelic.synthetics.PrivateLocation(\"fooPrivateLocation\", {\n description: \"Sample Private Location Description\",\n verifiedScriptExecution: false,\n});\nconst fooBrokenLinksMonitor = new newrelic.synthetics.BrokenLinksMonitor(\"fooBrokenLinksMonitor\", {\n uri: \"https://www.one.example.com\",\n locationsPrivates: [fooPrivateLocation.id],\n period: \"EVERY_6_HOURS\",\n status: \"ENABLED\",\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo_private_location = newrelic.synthetics.PrivateLocation(\"fooPrivateLocation\",\n description=\"Sample Private Location Description\",\n verified_script_execution=False)\nfoo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor(\"fooBrokenLinksMonitor\",\n uri=\"https://www.one.example.com\",\n locations_privates=[foo_private_location.id],\n period=\"EVERY_6_HOURS\",\n status=\"ENABLED\",\n tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooPrivateLocation = new NewRelic.Synthetics.PrivateLocation(\"fooPrivateLocation\", new()\n {\n Description = \"Sample Private Location Description\",\n VerifiedScriptExecution = false,\n });\n\n var fooBrokenLinksMonitor = new NewRelic.Synthetics.BrokenLinksMonitor(\"fooBrokenLinksMonitor\", new()\n {\n Uri = \"https://www.one.example.com\",\n LocationsPrivates = new[]\n {\n fooPrivateLocation.Id,\n },\n Period = \"EVERY_6_HOURS\",\n Status = \"ENABLED\",\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooPrivateLocation, err := synthetics.NewPrivateLocation(ctx, \"fooPrivateLocation\", \u0026synthetics.PrivateLocationArgs{\n\t\t\tDescription: pulumi.String(\"Sample Private Location Description\"),\n\t\t\tVerifiedScriptExecution: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = synthetics.NewBrokenLinksMonitor(ctx, \"fooBrokenLinksMonitor\", \u0026synthetics.BrokenLinksMonitorArgs{\n\t\t\tUri: pulumi.String(\"https://www.one.example.com\"),\n\t\t\tLocationsPrivates: pulumi.StringArray{\n\t\t\t\tfooPrivateLocation.ID(),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tTags: synthetics.BrokenLinksMonitorTagArray{\n\t\t\t\t\u0026synthetics.BrokenLinksMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.PrivateLocation;\nimport com.pulumi.newrelic.synthetics.PrivateLocationArgs;\nimport com.pulumi.newrelic.synthetics.BrokenLinksMonitor;\nimport com.pulumi.newrelic.synthetics.BrokenLinksMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.BrokenLinksMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var fooPrivateLocation = new PrivateLocation(\"fooPrivateLocation\", PrivateLocationArgs.builder() \n .description(\"Sample Private Location Description\")\n .verifiedScriptExecution(false)\n .build());\n\n var fooBrokenLinksMonitor = new BrokenLinksMonitor(\"fooBrokenLinksMonitor\", BrokenLinksMonitorArgs.builder() \n .uri(\"https://www.one.example.com\")\n .locationsPrivates(fooPrivateLocation.id())\n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .tags(BrokenLinksMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooPrivateLocation:\n type: newrelic:synthetics:PrivateLocation\n properties:\n description: Sample Private Location Description\n verifiedScriptExecution: false\n fooBrokenLinksMonitor:\n type: newrelic:synthetics:BrokenLinksMonitor\n properties:\n uri: https://www.one.example.com\n locationsPrivates:\n - ${fooPrivateLocation.id}\n period: EVERY_6_HOURS\n status: ENABLED\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nA broken links monitor can be imported using its GUID, using the following command.\n\nbash\n\n```sh\n$ pulumi import newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor monitor \u003cguid\u003e\n```\n\n", "properties": { "accountId": { "type": "integer", @@ -13092,6 +13101,14 @@ "type": "integer", "description": "The interval in minutes at which Synthetic monitor should run.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" @@ -13145,6 +13162,14 @@ "type": "string", "description": "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.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" @@ -13204,6 +13229,14 @@ "type": "integer", "description": "The interval in minutes at which Synthetic monitor should run.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" @@ -13224,7 +13257,7 @@ } }, "newrelic:synthetics/certCheckMonitor:CertCheckMonitor": { - "description": "Use this resource to create, update, and delete a Synthetics Certificate Check monitor in New Relic.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst cert_check_monitor = new newrelic.synthetics.CertCheckMonitor(\"cert-check-monitor\", {\n certificateExpiration: 10,\n domain: \"www.example.com\",\n locationsPublics: [\"AP_SOUTH_1\"],\n period: \"EVERY_6_HOURS\",\n status: \"ENABLED\",\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\ncert_check_monitor = newrelic.synthetics.CertCheckMonitor(\"cert-check-monitor\",\n certificate_expiration=10,\n domain=\"www.example.com\",\n locations_publics=[\"AP_SOUTH_1\"],\n period=\"EVERY_6_HOURS\",\n status=\"ENABLED\",\n tags=[newrelic.synthetics.CertCheckMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var cert_check_monitor = new NewRelic.Synthetics.CertCheckMonitor(\"cert-check-monitor\", new()\n {\n CertificateExpiration = 10,\n Domain = \"www.example.com\",\n LocationsPublics = new[]\n {\n \"AP_SOUTH_1\",\n },\n Period = \"EVERY_6_HOURS\",\n Status = \"ENABLED\",\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := synthetics.NewCertCheckMonitor(ctx, \"cert-check-monitor\", \u0026synthetics.CertCheckMonitorArgs{\n\t\t\tCertificateExpiration: pulumi.Int(10),\n\t\t\tDomain: pulumi.String(\"www.example.com\"),\n\t\t\tLocationsPublics: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"AP_SOUTH_1\"),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tTags: synthetics.CertCheckMonitorTagArray{\n\t\t\t\t\u0026synthetics.CertCheckMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.CertCheckMonitor;\nimport com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var cert_check_monitor = new CertCheckMonitor(\"cert-check-monitor\", CertCheckMonitorArgs.builder() \n .certificateExpiration(\"10\")\n .domain(\"www.example.com\")\n .locationsPublics(\"AP_SOUTH_1\")\n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .tags(CertCheckMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n cert-check-monitor:\n type: newrelic:synthetics:CertCheckMonitor\n properties:\n certificateExpiration: '10'\n domain: www.example.com\n locationsPublics:\n - AP_SOUTH_1\n period: EVERY_6_HOURS\n status: ENABLED\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\nSee additional examples.\n\n## Additional Examples\n\n### Create a monitor with a private location\n\nThe below example shows how you can define a private location and attach it to a monitor. \n\n\u003e **NOTE:** It can take up to 10 minutes for a private location to become available.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst location = new newrelic.synthetics.PrivateLocation(\"location\", {\n description: \"Test Description\",\n verifiedScriptExecution: false,\n});\nconst monitor = new newrelic.synthetics.CertCheckMonitor(\"monitor\", {\n domain: \"https://www.one.example.com\",\n locationsPrivates: [location.id],\n period: \"EVERY_6_HOURS\",\n status: \"ENABLED\",\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nlocation = newrelic.synthetics.PrivateLocation(\"location\",\n description=\"Test Description\",\n verified_script_execution=False)\nmonitor = newrelic.synthetics.CertCheckMonitor(\"monitor\",\n domain=\"https://www.one.example.com\",\n locations_privates=[location.id],\n period=\"EVERY_6_HOURS\",\n status=\"ENABLED\",\n tags=[newrelic.synthetics.CertCheckMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var location = new NewRelic.Synthetics.PrivateLocation(\"location\", new()\n {\n Description = \"Test Description\",\n VerifiedScriptExecution = false,\n });\n\n var monitor = new NewRelic.Synthetics.CertCheckMonitor(\"monitor\", new()\n {\n Domain = \"https://www.one.example.com\",\n LocationsPrivates = new[]\n {\n location.Id,\n },\n Period = \"EVERY_6_HOURS\",\n Status = \"ENABLED\",\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlocation, err := synthetics.NewPrivateLocation(ctx, \"location\", \u0026synthetics.PrivateLocationArgs{\n\t\t\tDescription: pulumi.String(\"Test Description\"),\n\t\t\tVerifiedScriptExecution: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = synthetics.NewCertCheckMonitor(ctx, \"monitor\", \u0026synthetics.CertCheckMonitorArgs{\n\t\t\tDomain: pulumi.String(\"https://www.one.example.com\"),\n\t\t\tLocationsPrivates: pulumi.StringArray{\n\t\t\t\tlocation.ID(),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tTags: synthetics.CertCheckMonitorTagArray{\n\t\t\t\t\u0026synthetics.CertCheckMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.PrivateLocation;\nimport com.pulumi.newrelic.synthetics.PrivateLocationArgs;\nimport com.pulumi.newrelic.synthetics.CertCheckMonitor;\nimport com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var location = new PrivateLocation(\"location\", PrivateLocationArgs.builder() \n .description(\"Test Description\")\n .verifiedScriptExecution(false)\n .build());\n\n var monitor = new CertCheckMonitor(\"monitor\", CertCheckMonitorArgs.builder() \n .domain(\"https://www.one.example.com\")\n .locationsPrivates(location.id())\n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .tags(CertCheckMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n location:\n type: newrelic:synthetics:PrivateLocation\n properties:\n description: Test Description\n verifiedScriptExecution: false\n monitor:\n type: newrelic:synthetics:CertCheckMonitor\n properties:\n domain: https://www.one.example.com\n locationsPrivates:\n - ${location.id}\n period: EVERY_6_HOURS\n status: ENABLED\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nSynthetics certificate check monitor scripts can be imported using the `guid`, e.g.\n\nbash\n\n```sh\n$ pulumi import newrelic:synthetics/certCheckMonitor:CertCheckMonitor monitor \u003cguid\u003e\n```\n\n", + "description": "Use this resource to create, update, and delete a Synthetics Certificate Check monitor in New Relic.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.synthetics.CertCheckMonitor(\"foo\", {\n certificateExpiration: 10,\n domain: \"www.example.com\",\n locationsPublics: [\"AP_SOUTH_1\"],\n period: \"EVERY_6_HOURS\",\n runtimeType: \"NODE_API\",\n runtimeTypeVersion: \"16.10\",\n status: \"ENABLED\",\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.synthetics.CertCheckMonitor(\"foo\",\n certificate_expiration=10,\n domain=\"www.example.com\",\n locations_publics=[\"AP_SOUTH_1\"],\n period=\"EVERY_6_HOURS\",\n runtime_type=\"NODE_API\",\n runtime_type_version=\"16.10\",\n status=\"ENABLED\",\n tags=[newrelic.synthetics.CertCheckMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = new NewRelic.Synthetics.CertCheckMonitor(\"foo\", new()\n {\n CertificateExpiration = 10,\n Domain = \"www.example.com\",\n LocationsPublics = new[]\n {\n \"AP_SOUTH_1\",\n },\n Period = \"EVERY_6_HOURS\",\n RuntimeType = \"NODE_API\",\n RuntimeTypeVersion = \"16.10\",\n Status = \"ENABLED\",\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := synthetics.NewCertCheckMonitor(ctx, \"foo\", \u0026synthetics.CertCheckMonitorArgs{\n\t\t\tCertificateExpiration: pulumi.Int(10),\n\t\t\tDomain: pulumi.String(\"www.example.com\"),\n\t\t\tLocationsPublics: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"AP_SOUTH_1\"),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tRuntimeType: pulumi.String(\"NODE_API\"),\n\t\t\tRuntimeTypeVersion: pulumi.String(\"16.10\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tTags: synthetics.CertCheckMonitorTagArray{\n\t\t\t\t\u0026synthetics.CertCheckMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.CertCheckMonitor;\nimport com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var foo = new CertCheckMonitor(\"foo\", CertCheckMonitorArgs.builder() \n .certificateExpiration(\"10\")\n .domain(\"www.example.com\")\n .locationsPublics(\"AP_SOUTH_1\")\n .period(\"EVERY_6_HOURS\")\n .runtimeType(\"NODE_API\")\n .runtimeTypeVersion(\"16.10\")\n .status(\"ENABLED\")\n .tags(CertCheckMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:synthetics:CertCheckMonitor\n properties:\n certificateExpiration: '10'\n domain: www.example.com\n locationsPublics:\n - AP_SOUTH_1\n period: EVERY_6_HOURS\n runtimeType: NODE_API\n runtimeTypeVersion: '16.10'\n status: ENABLED\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\nSee additional examples.\n\n## Additional Examples\n\n### Create a monitor with a private location\n\nThe below example shows how you can define a private location and attach it to a monitor. \n\n\u003e **NOTE:** It can take up to 10 minutes for a private location to become available.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst fooPrivateLocation = new newrelic.synthetics.PrivateLocation(\"fooPrivateLocation\", {\n description: \"Sample Private Location Description\",\n verifiedScriptExecution: false,\n});\nconst fooCertCheckMonitor = new newrelic.synthetics.CertCheckMonitor(\"fooCertCheckMonitor\", {\n domain: \"www.one.example.com\",\n locationsPrivates: [fooPrivateLocation.id],\n certificateExpiration: 10,\n period: \"EVERY_6_HOURS\",\n status: \"ENABLED\",\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo_private_location = newrelic.synthetics.PrivateLocation(\"fooPrivateLocation\",\n description=\"Sample Private Location Description\",\n verified_script_execution=False)\nfoo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor(\"fooCertCheckMonitor\",\n domain=\"www.one.example.com\",\n locations_privates=[foo_private_location.id],\n certificate_expiration=10,\n period=\"EVERY_6_HOURS\",\n status=\"ENABLED\",\n tags=[newrelic.synthetics.CertCheckMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooPrivateLocation = new NewRelic.Synthetics.PrivateLocation(\"fooPrivateLocation\", new()\n {\n Description = \"Sample Private Location Description\",\n VerifiedScriptExecution = false,\n });\n\n var fooCertCheckMonitor = new NewRelic.Synthetics.CertCheckMonitor(\"fooCertCheckMonitor\", new()\n {\n Domain = \"www.one.example.com\",\n LocationsPrivates = new[]\n {\n fooPrivateLocation.Id,\n },\n CertificateExpiration = 10,\n Period = \"EVERY_6_HOURS\",\n Status = \"ENABLED\",\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooPrivateLocation, err := synthetics.NewPrivateLocation(ctx, \"fooPrivateLocation\", \u0026synthetics.PrivateLocationArgs{\n\t\t\tDescription: pulumi.String(\"Sample Private Location Description\"),\n\t\t\tVerifiedScriptExecution: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = synthetics.NewCertCheckMonitor(ctx, \"fooCertCheckMonitor\", \u0026synthetics.CertCheckMonitorArgs{\n\t\t\tDomain: pulumi.String(\"www.one.example.com\"),\n\t\t\tLocationsPrivates: pulumi.StringArray{\n\t\t\t\tfooPrivateLocation.ID(),\n\t\t\t},\n\t\t\tCertificateExpiration: pulumi.Int(10),\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tTags: synthetics.CertCheckMonitorTagArray{\n\t\t\t\t\u0026synthetics.CertCheckMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.PrivateLocation;\nimport com.pulumi.newrelic.synthetics.PrivateLocationArgs;\nimport com.pulumi.newrelic.synthetics.CertCheckMonitor;\nimport com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var fooPrivateLocation = new PrivateLocation(\"fooPrivateLocation\", PrivateLocationArgs.builder() \n .description(\"Sample Private Location Description\")\n .verifiedScriptExecution(false)\n .build());\n\n var fooCertCheckMonitor = new CertCheckMonitor(\"fooCertCheckMonitor\", CertCheckMonitorArgs.builder() \n .domain(\"www.one.example.com\")\n .locationsPrivates(fooPrivateLocation.id())\n .certificateExpiration(\"10\")\n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .tags(CertCheckMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooPrivateLocation:\n type: newrelic:synthetics:PrivateLocation\n properties:\n description: Sample Private Location Description\n verifiedScriptExecution: false\n fooCertCheckMonitor:\n type: newrelic:synthetics:CertCheckMonitor\n properties:\n domain: www.one.example.com\n locationsPrivates:\n - ${fooPrivateLocation.id}\n certificateExpiration: '10'\n period: EVERY_6_HOURS\n status: ENABLED\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nA cert check monitor can be imported using its GUID, using the following command.\n\nbash\n\n```sh\n$ pulumi import newrelic:synthetics/certCheckMonitor:CertCheckMonitor monitor \u003cguid\u003e\n```\n\n", "properties": { "accountId": { "type": "integer", @@ -13264,6 +13297,14 @@ "type": "integer", "description": "The interval in minutes at which Synthetic monitor should run.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" @@ -13320,6 +13361,14 @@ "type": "string", "description": "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.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" @@ -13379,6 +13428,14 @@ "type": "integer", "description": "The interval in minutes at which Synthetic monitor should run.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" @@ -14299,7 +14356,7 @@ } }, "newrelic:synthetics/stepMonitor:StepMonitor": { - "description": "Use this resource to create, update, and delete a Synthetics Step monitor in New Relic.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst monitor = new newrelic.synthetics.StepMonitor(\"monitor\", {\n enableScreenshotOnFailureAndScript: true,\n locationsPublics: [\n \"US_EAST_1\",\n \"US_EAST_2\",\n ],\n period: \"EVERY_6_HOURS\",\n status: \"ENABLED\",\n steps: [{\n ordinal: 0,\n type: \"NAVIGATE\",\n values: [\"https://www.newrelic.com\"],\n }],\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nmonitor = newrelic.synthetics.StepMonitor(\"monitor\",\n enable_screenshot_on_failure_and_script=True,\n locations_publics=[\n \"US_EAST_1\",\n \"US_EAST_2\",\n ],\n period=\"EVERY_6_HOURS\",\n status=\"ENABLED\",\n steps=[newrelic.synthetics.StepMonitorStepArgs(\n ordinal=0,\n type=\"NAVIGATE\",\n values=[\"https://www.newrelic.com\"],\n )],\n tags=[newrelic.synthetics.StepMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var monitor = new NewRelic.Synthetics.StepMonitor(\"monitor\", new()\n {\n EnableScreenshotOnFailureAndScript = true,\n LocationsPublics = new[]\n {\n \"US_EAST_1\",\n \"US_EAST_2\",\n },\n Period = \"EVERY_6_HOURS\",\n Status = \"ENABLED\",\n Steps = new[]\n {\n new NewRelic.Synthetics.Inputs.StepMonitorStepArgs\n {\n Ordinal = 0,\n Type = \"NAVIGATE\",\n Values = new[]\n {\n \"https://www.newrelic.com\",\n },\n },\n },\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.StepMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := synthetics.NewStepMonitor(ctx, \"monitor\", \u0026synthetics.StepMonitorArgs{\n\t\t\tEnableScreenshotOnFailureAndScript: pulumi.Bool(true),\n\t\t\tLocationsPublics: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"US_EAST_1\"),\n\t\t\t\tpulumi.String(\"US_EAST_2\"),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tSteps: synthetics.StepMonitorStepArray{\n\t\t\t\t\u0026synthetics.StepMonitorStepArgs{\n\t\t\t\t\tOrdinal: pulumi.Int(0),\n\t\t\t\t\tType: pulumi.String(\"NAVIGATE\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"https://www.newrelic.com\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: synthetics.StepMonitorTagArray{\n\t\t\t\t\u0026synthetics.StepMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.StepMonitor;\nimport com.pulumi.newrelic.synthetics.StepMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorStepArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var monitor = new StepMonitor(\"monitor\", StepMonitorArgs.builder() \n .enableScreenshotOnFailureAndScript(true)\n .locationsPublics( \n \"US_EAST_1\",\n \"US_EAST_2\")\n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .steps(StepMonitorStepArgs.builder()\n .ordinal(0)\n .type(\"NAVIGATE\")\n .values(\"https://www.newrelic.com\")\n .build())\n .tags(StepMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n monitor:\n type: newrelic:synthetics:StepMonitor\n properties:\n enableScreenshotOnFailureAndScript: true\n locationsPublics:\n - US_EAST_1\n - US_EAST_2\n period: EVERY_6_HOURS\n status: ENABLED\n steps:\n - ordinal: 0\n type: NAVIGATE\n values:\n - https://www.newrelic.com\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\nSee additional examples.\n\n## Additional Examples\n\n### Create a monitor with a private location\n\nThe below example shows how you can define a private location and attach it to a monitor.\n\n\u003e **NOTE:** It can take up to 10 minutes for a private location to become available.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.PrivateLocation;\nimport com.pulumi.newrelic.synthetics.PrivateLocationArgs;\nimport com.pulumi.newrelic.synthetics.StepMonitor;\nimport com.pulumi.newrelic.synthetics.StepMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorLocationPrivateArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorStepArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var location = new PrivateLocation(\"location\", PrivateLocationArgs.builder() \n .description(\"Test Description\")\n .verifiedScriptExecution(true)\n .build());\n\n var bar = new StepMonitor(\"bar\", StepMonitorArgs.builder() \n .uri(\"https://www.one.example.com\")\n .locationPrivates(StepMonitorLocationPrivateArgs.builder()\n .guid(location.id())\n .vsePassword(\"secret\")\n .build())\n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .steps(StepMonitorStepArgs.builder()\n .ordinal(0)\n .type(\"NAVIGATE\")\n .values(\"https://google.com\")\n .build())\n .tags(StepMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n location:\n type: newrelic:synthetics:PrivateLocation\n properties:\n description: Test Description\n verifiedScriptExecution: true\n bar:\n type: newrelic:synthetics:StepMonitor\n properties:\n uri: https://www.one.example.com\n locationPrivates:\n - guid: ${location.id}\n vsePassword: secret\n period: EVERY_6_HOURS\n status: ENABLED\n steps:\n - ordinal: 0\n type: NAVIGATE\n values:\n - https://google.com\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nSynthetics step monitor scripts can be imported using the `guid`, e.g.\n\nbash\n\n```sh\n$ pulumi import newrelic:synthetics/stepMonitor:StepMonitor monitor \u003cguid\u003e\n```\n\n", + "description": "Use this resource to create, update, and delete a Synthetics Step monitor in New Relic.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.synthetics.StepMonitor(\"foo\", {\n enableScreenshotOnFailureAndScript: true,\n locationsPublics: [\n \"US_EAST_1\",\n \"US_EAST_2\",\n ],\n period: \"EVERY_6_HOURS\",\n runtimeType: \"CHROME_BROWSER\",\n runtimeTypeVersion: \"100\",\n status: \"ENABLED\",\n steps: [{\n ordinal: 0,\n type: \"NAVIGATE\",\n values: [\"https://www.newrelic.com\"],\n }],\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.synthetics.StepMonitor(\"foo\",\n enable_screenshot_on_failure_and_script=True,\n locations_publics=[\n \"US_EAST_1\",\n \"US_EAST_2\",\n ],\n period=\"EVERY_6_HOURS\",\n runtime_type=\"CHROME_BROWSER\",\n runtime_type_version=\"100\",\n status=\"ENABLED\",\n steps=[newrelic.synthetics.StepMonitorStepArgs(\n ordinal=0,\n type=\"NAVIGATE\",\n values=[\"https://www.newrelic.com\"],\n )],\n tags=[newrelic.synthetics.StepMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = new NewRelic.Synthetics.StepMonitor(\"foo\", new()\n {\n EnableScreenshotOnFailureAndScript = true,\n LocationsPublics = new[]\n {\n \"US_EAST_1\",\n \"US_EAST_2\",\n },\n Period = \"EVERY_6_HOURS\",\n RuntimeType = \"CHROME_BROWSER\",\n RuntimeTypeVersion = \"100\",\n Status = \"ENABLED\",\n Steps = new[]\n {\n new NewRelic.Synthetics.Inputs.StepMonitorStepArgs\n {\n Ordinal = 0,\n Type = \"NAVIGATE\",\n Values = new[]\n {\n \"https://www.newrelic.com\",\n },\n },\n },\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.StepMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := synthetics.NewStepMonitor(ctx, \"foo\", \u0026synthetics.StepMonitorArgs{\n\t\t\tEnableScreenshotOnFailureAndScript: pulumi.Bool(true),\n\t\t\tLocationsPublics: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"US_EAST_1\"),\n\t\t\t\tpulumi.String(\"US_EAST_2\"),\n\t\t\t},\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tRuntimeType: pulumi.String(\"CHROME_BROWSER\"),\n\t\t\tRuntimeTypeVersion: pulumi.String(\"100\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tSteps: synthetics.StepMonitorStepArray{\n\t\t\t\t\u0026synthetics.StepMonitorStepArgs{\n\t\t\t\t\tOrdinal: pulumi.Int(0),\n\t\t\t\t\tType: pulumi.String(\"NAVIGATE\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"https://www.newrelic.com\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: synthetics.StepMonitorTagArray{\n\t\t\t\t\u0026synthetics.StepMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.StepMonitor;\nimport com.pulumi.newrelic.synthetics.StepMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorStepArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var foo = new StepMonitor(\"foo\", StepMonitorArgs.builder() \n .enableScreenshotOnFailureAndScript(true)\n .locationsPublics( \n \"US_EAST_1\",\n \"US_EAST_2\")\n .period(\"EVERY_6_HOURS\")\n .runtimeType(\"CHROME_BROWSER\")\n .runtimeTypeVersion(\"100\")\n .status(\"ENABLED\")\n .steps(StepMonitorStepArgs.builder()\n .ordinal(0)\n .type(\"NAVIGATE\")\n .values(\"https://www.newrelic.com\")\n .build())\n .tags(StepMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:synthetics:StepMonitor\n properties:\n enableScreenshotOnFailureAndScript: true\n locationsPublics:\n - US_EAST_1\n - US_EAST_2\n period: EVERY_6_HOURS\n runtimeType: CHROME_BROWSER\n runtimeTypeVersion: '100'\n status: ENABLED\n steps:\n - ordinal: 0\n type: NAVIGATE\n values:\n - https://www.newrelic.com\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\nSee additional examples.\n\n## Additional Examples\n\n### Create a monitor with a private location\n\nThe below example shows how you can define a private location and attach it to a monitor.\n\n\u003e **NOTE:** It can take up to 10 minutes for a private location to become available.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst fooPrivateLocation = new newrelic.synthetics.PrivateLocation(\"fooPrivateLocation\", {\n description: \"Sample Private Location Description\",\n verifiedScriptExecution: true,\n});\nconst fooStepMonitor = new newrelic.synthetics.StepMonitor(\"fooStepMonitor\", {\n period: \"EVERY_6_HOURS\",\n status: \"ENABLED\",\n locationPrivates: [{\n guid: fooPrivateLocation.id,\n vsePassword: \"secret\",\n }],\n steps: [{\n ordinal: 0,\n type: \"NAVIGATE\",\n values: [\"https://google.com\"],\n }],\n tags: [{\n key: \"some_key\",\n values: [\"some_value\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo_private_location = newrelic.synthetics.PrivateLocation(\"fooPrivateLocation\",\n description=\"Sample Private Location Description\",\n verified_script_execution=True)\nfoo_step_monitor = newrelic.synthetics.StepMonitor(\"fooStepMonitor\",\n period=\"EVERY_6_HOURS\",\n status=\"ENABLED\",\n location_privates=[newrelic.synthetics.StepMonitorLocationPrivateArgs(\n guid=foo_private_location.id,\n vse_password=\"secret\",\n )],\n steps=[newrelic.synthetics.StepMonitorStepArgs(\n ordinal=0,\n type=\"NAVIGATE\",\n values=[\"https://google.com\"],\n )],\n tags=[newrelic.synthetics.StepMonitorTagArgs(\n key=\"some_key\",\n values=[\"some_value\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing NewRelic = Pulumi.NewRelic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooPrivateLocation = new NewRelic.Synthetics.PrivateLocation(\"fooPrivateLocation\", new()\n {\n Description = \"Sample Private Location Description\",\n VerifiedScriptExecution = true,\n });\n\n var fooStepMonitor = new NewRelic.Synthetics.StepMonitor(\"fooStepMonitor\", new()\n {\n Period = \"EVERY_6_HOURS\",\n Status = \"ENABLED\",\n LocationPrivates = new[]\n {\n new NewRelic.Synthetics.Inputs.StepMonitorLocationPrivateArgs\n {\n Guid = fooPrivateLocation.Id,\n VsePassword = \"secret\",\n },\n },\n Steps = new[]\n {\n new NewRelic.Synthetics.Inputs.StepMonitorStepArgs\n {\n Ordinal = 0,\n Type = \"NAVIGATE\",\n Values = new[]\n {\n \"https://google.com\",\n },\n },\n },\n Tags = new[]\n {\n new NewRelic.Synthetics.Inputs.StepMonitorTagArgs\n {\n Key = \"some_key\",\n Values = new[]\n {\n \"some_value\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooPrivateLocation, err := synthetics.NewPrivateLocation(ctx, \"fooPrivateLocation\", \u0026synthetics.PrivateLocationArgs{\n\t\t\tDescription: pulumi.String(\"Sample Private Location Description\"),\n\t\t\tVerifiedScriptExecution: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = synthetics.NewStepMonitor(ctx, \"fooStepMonitor\", \u0026synthetics.StepMonitorArgs{\n\t\t\tPeriod: pulumi.String(\"EVERY_6_HOURS\"),\n\t\t\tStatus: pulumi.String(\"ENABLED\"),\n\t\t\tLocationPrivates: synthetics.StepMonitorLocationPrivateArray{\n\t\t\t\t\u0026synthetics.StepMonitorLocationPrivateArgs{\n\t\t\t\t\tGuid: fooPrivateLocation.ID(),\n\t\t\t\t\tVsePassword: pulumi.String(\"secret\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tSteps: synthetics.StepMonitorStepArray{\n\t\t\t\t\u0026synthetics.StepMonitorStepArgs{\n\t\t\t\t\tOrdinal: pulumi.Int(0),\n\t\t\t\t\tType: pulumi.String(\"NAVIGATE\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"https://google.com\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: synthetics.StepMonitorTagArray{\n\t\t\t\t\u0026synthetics.StepMonitorTagArgs{\n\t\t\t\t\tKey: pulumi.String(\"some_key\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"some_value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.newrelic.synthetics.PrivateLocation;\nimport com.pulumi.newrelic.synthetics.PrivateLocationArgs;\nimport com.pulumi.newrelic.synthetics.StepMonitor;\nimport com.pulumi.newrelic.synthetics.StepMonitorArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorLocationPrivateArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorStepArgs;\nimport com.pulumi.newrelic.synthetics.inputs.StepMonitorTagArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var fooPrivateLocation = new PrivateLocation(\"fooPrivateLocation\", PrivateLocationArgs.builder() \n .description(\"Sample Private Location Description\")\n .verifiedScriptExecution(true)\n .build());\n\n var fooStepMonitor = new StepMonitor(\"fooStepMonitor\", StepMonitorArgs.builder() \n .period(\"EVERY_6_HOURS\")\n .status(\"ENABLED\")\n .locationPrivates(StepMonitorLocationPrivateArgs.builder()\n .guid(fooPrivateLocation.id())\n .vsePassword(\"secret\")\n .build())\n .steps(StepMonitorStepArgs.builder()\n .ordinal(0)\n .type(\"NAVIGATE\")\n .values(\"https://google.com\")\n .build())\n .tags(StepMonitorTagArgs.builder()\n .key(\"some_key\")\n .values(\"some_value\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooPrivateLocation:\n type: newrelic:synthetics:PrivateLocation\n properties:\n description: Sample Private Location Description\n verifiedScriptExecution: true\n fooStepMonitor:\n type: newrelic:synthetics:StepMonitor\n properties:\n period: EVERY_6_HOURS\n status: ENABLED\n locationPrivates:\n - guid: ${fooPrivateLocation.id}\n vsePassword: secret\n steps:\n - ordinal: 0\n type: NAVIGATE\n values:\n - https://google.com\n tags:\n - key: some_key\n values:\n - some_value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nA step monitor can be imported using its GUID, using the following command.\n\nbash\n\n```sh\n$ pulumi import newrelic:synthetics/stepMonitor:StepMonitor monitor \u003cguid\u003e\n```\n\n", "properties": { "accountId": { "type": "integer", @@ -14339,6 +14396,14 @@ "type": "integer", "description": "The interval in minutes at which Synthetic monitor should run.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" @@ -14399,6 +14464,14 @@ "type": "string", "description": "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.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" @@ -14465,6 +14538,14 @@ "type": "integer", "description": "The interval in minutes at which Synthetic monitor should run.\n" }, + "runtimeType": { + "type": "string", + "description": "The runtime that the monitor will use to run jobs.\n" + }, + "runtimeTypeVersion": { + "type": "string", + "description": "The specific version of the runtime type selected.\n\n\u003e **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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.\n" + }, "status": { "type": "string", "description": "The monitor status (ENABLED or DISABLED).\n" diff --git a/sdk/dotnet/BrowserApplication.cs b/sdk/dotnet/BrowserApplication.cs index cf36438e..1a890bb9 100644 --- a/sdk/dotnet/BrowserApplication.cs +++ b/sdk/dotnet/BrowserApplication.cs @@ -10,34 +10,9 @@ namespace Pulumi.NewRelic { /// - /// Use this resource to create, update, and delete a standalone New Relic browser application. - /// - /// ## Example Usage - /// - /// Basic usage to create a standalone browser application. - /// <!--Start PulumiCodeChooser --> - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using NewRelic = Pulumi.NewRelic; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new NewRelic.BrowserApplication("foo", new() - /// { - /// CookiesEnabled = true, - /// DistributedTracingEnabled = true, - /// LoaderType = "SPA", - /// }); - /// - /// }); - /// ``` - /// <!--End PulumiCodeChooser --> - /// /// ## Import /// - /// Browser applications can be imported using the GUID of the browser application. + /// A browser application can be imported using its GUID, i.e. /// /// bash /// @@ -49,19 +24,25 @@ namespace Pulumi.NewRelic public partial class BrowserApplication : global::Pulumi.CustomResource { /// - /// The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + /// The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. /// [Output("accountId")] public Output AccountId { get; private set; } = null!; /// - /// Configure cookies. The default is enabled: true. + /// The application ID of the browser application (not to be confused with GUID). + /// + [Output("applicationId")] + public Output ApplicationId { get; private set; } = null!; + + /// + /// Configures cookies. Defaults to `true`, if not specified. /// [Output("cookiesEnabled")] public Output CookiesEnabled { get; private set; } = null!; /// - /// Configure distributed tracing in browser apps. The default is enabled: true. + /// Configures distributed tracing in browser apps. Defaults to `true`, if not specified. /// [Output("distributedTracingEnabled")] public Output DistributedTracingEnabled { get; private set; } = null!; @@ -73,13 +54,13 @@ public partial class BrowserApplication : global::Pulumi.CustomResource public Output Guid { get; private set; } = null!; /// - /// JavaScript configuration of the browser application encoded into a string. + /// The JavaScript configuration of the browser application, encoded into a string. /// [Output("jsConfig")] public Output JsConfig { get; private set; } = null!; /// - /// Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + /// Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. /// [Output("loaderType")] public Output LoaderType { get; private set; } = null!; @@ -137,25 +118,25 @@ public static BrowserApplication Get(string name, Input id, BrowserAppli public sealed class BrowserApplicationArgs : global::Pulumi.ResourceArgs { /// - /// The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + /// The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. /// [Input("accountId")] public Input? AccountId { get; set; } /// - /// Configure cookies. The default is enabled: true. + /// Configures cookies. Defaults to `true`, if not specified. /// [Input("cookiesEnabled")] public Input? CookiesEnabled { get; set; } /// - /// Configure distributed tracing in browser apps. The default is enabled: true. + /// Configures distributed tracing in browser apps. Defaults to `true`, if not specified. /// [Input("distributedTracingEnabled")] public Input? DistributedTracingEnabled { get; set; } /// - /// Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + /// Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. /// [Input("loaderType")] public Input? LoaderType { get; set; } @@ -175,19 +156,25 @@ public BrowserApplicationArgs() public sealed class BrowserApplicationState : global::Pulumi.ResourceArgs { /// - /// The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + /// The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. /// [Input("accountId")] public Input? AccountId { get; set; } /// - /// Configure cookies. The default is enabled: true. + /// The application ID of the browser application (not to be confused with GUID). + /// + [Input("applicationId")] + public Input? ApplicationId { get; set; } + + /// + /// Configures cookies. Defaults to `true`, if not specified. /// [Input("cookiesEnabled")] public Input? CookiesEnabled { get; set; } /// - /// Configure distributed tracing in browser apps. The default is enabled: true. + /// Configures distributed tracing in browser apps. Defaults to `true`, if not specified. /// [Input("distributedTracingEnabled")] public Input? DistributedTracingEnabled { get; set; } @@ -199,13 +186,13 @@ public sealed class BrowserApplicationState : global::Pulumi.ResourceArgs public Input? Guid { get; set; } /// - /// JavaScript configuration of the browser application encoded into a string. + /// The JavaScript configuration of the browser application, encoded into a string. /// [Input("jsConfig")] public Input? JsConfig { get; set; } /// - /// Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + /// Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. /// [Input("loaderType")] public Input? LoaderType { get; set; } diff --git a/sdk/dotnet/Synthetics/BrokenLinksMonitor.cs b/sdk/dotnet/Synthetics/BrokenLinksMonitor.cs index 15592fae..6b56b63f 100644 --- a/sdk/dotnet/Synthetics/BrokenLinksMonitor.cs +++ b/sdk/dotnet/Synthetics/BrokenLinksMonitor.cs @@ -23,13 +23,15 @@ namespace Pulumi.NewRelic.Synthetics /// /// return await Deployment.RunAsync(() => /// { - /// var monitor = new NewRelic.Synthetics.BrokenLinksMonitor("monitor", new() + /// var foo = new NewRelic.Synthetics.BrokenLinksMonitor("foo", new() /// { /// LocationsPublics = new[] /// { /// "AP_SOUTH_1", /// }, /// Period = "EVERY_6_HOURS", + /// RuntimeType = "NODE_API", + /// RuntimeTypeVersion = "16.10", /// Status = "ENABLED", /// Tags = new[] /// { @@ -67,18 +69,18 @@ namespace Pulumi.NewRelic.Synthetics /// /// return await Deployment.RunAsync(() => /// { - /// var location = new NewRelic.Synthetics.PrivateLocation("location", new() + /// var fooPrivateLocation = new NewRelic.Synthetics.PrivateLocation("fooPrivateLocation", new() /// { - /// Description = "Test Description", + /// Description = "Sample Private Location Description", /// VerifiedScriptExecution = false, /// }); /// - /// var monitor = new NewRelic.Synthetics.BrokenLinksMonitor("monitor", new() + /// var fooBrokenLinksMonitor = new NewRelic.Synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor", new() /// { /// Uri = "https://www.one.example.com", /// LocationsPrivates = new[] /// { - /// location.Id, + /// fooPrivateLocation.Id, /// }, /// Period = "EVERY_6_HOURS", /// Status = "ENABLED", @@ -101,7 +103,7 @@ namespace Pulumi.NewRelic.Synthetics /// /// ## Import /// - /// Synthetics broken links monitor scripts can be imported using the `guid`, e.g. + /// A broken links monitor can be imported using its GUID, using the following command. /// /// bash /// @@ -154,6 +156,20 @@ public partial class BrokenLinksMonitor : global::Pulumi.CustomResource [Output("periodInMinutes")] public Output PeriodInMinutes { get; private set; } = null!; + /// + /// The runtime that the monitor will use to run jobs. + /// + [Output("runtimeType")] + public Output RuntimeType { get; private set; } = null!; + + /// + /// The specific version of the runtime type selected. + /// + /// > **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. + /// + [Output("runtimeTypeVersion")] + public Output RuntimeTypeVersion { get; private set; } = null!; + /// /// The monitor status (ENABLED or DISABLED). /// @@ -260,6 +276,20 @@ public InputList LocationsPublics [Input("period", required: true)] public Input Period { get; set; } = null!; + /// + /// The runtime that the monitor will use to run jobs. + /// + [Input("runtimeType")] + public Input? RuntimeType { get; set; } + + /// + /// The specific version of the runtime type selected. + /// + /// > **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. + /// + [Input("runtimeTypeVersion")] + public Input? RuntimeTypeVersion { get; set; } + /// /// The monitor status (ENABLED or DISABLED). /// @@ -346,6 +376,20 @@ public InputList LocationsPublics [Input("periodInMinutes")] public Input? PeriodInMinutes { get; set; } + /// + /// The runtime that the monitor will use to run jobs. + /// + [Input("runtimeType")] + public Input? RuntimeType { get; set; } + + /// + /// The specific version of the runtime type selected. + /// + /// > **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. + /// + [Input("runtimeTypeVersion")] + public Input? RuntimeTypeVersion { get; set; } + /// /// The monitor status (ENABLED or DISABLED). /// diff --git a/sdk/dotnet/Synthetics/CertCheckMonitor.cs b/sdk/dotnet/Synthetics/CertCheckMonitor.cs index 37e8b00d..0e085654 100644 --- a/sdk/dotnet/Synthetics/CertCheckMonitor.cs +++ b/sdk/dotnet/Synthetics/CertCheckMonitor.cs @@ -23,7 +23,7 @@ namespace Pulumi.NewRelic.Synthetics /// /// return await Deployment.RunAsync(() => /// { - /// var cert_check_monitor = new NewRelic.Synthetics.CertCheckMonitor("cert-check-monitor", new() + /// var foo = new NewRelic.Synthetics.CertCheckMonitor("foo", new() /// { /// CertificateExpiration = 10, /// Domain = "www.example.com", @@ -32,6 +32,8 @@ namespace Pulumi.NewRelic.Synthetics /// "AP_SOUTH_1", /// }, /// Period = "EVERY_6_HOURS", + /// RuntimeType = "NODE_API", + /// RuntimeTypeVersion = "16.10", /// Status = "ENABLED", /// Tags = new[] /// { @@ -68,19 +70,20 @@ namespace Pulumi.NewRelic.Synthetics /// /// return await Deployment.RunAsync(() => /// { - /// var location = new NewRelic.Synthetics.PrivateLocation("location", new() + /// var fooPrivateLocation = new NewRelic.Synthetics.PrivateLocation("fooPrivateLocation", new() /// { - /// Description = "Test Description", + /// Description = "Sample Private Location Description", /// VerifiedScriptExecution = false, /// }); /// - /// var monitor = new NewRelic.Synthetics.CertCheckMonitor("monitor", new() + /// var fooCertCheckMonitor = new NewRelic.Synthetics.CertCheckMonitor("fooCertCheckMonitor", new() /// { - /// Domain = "https://www.one.example.com", + /// Domain = "www.one.example.com", /// LocationsPrivates = new[] /// { - /// location.Id, + /// fooPrivateLocation.Id, /// }, + /// CertificateExpiration = 10, /// Period = "EVERY_6_HOURS", /// Status = "ENABLED", /// Tags = new[] @@ -102,7 +105,7 @@ namespace Pulumi.NewRelic.Synthetics /// /// ## Import /// - /// Synthetics certificate check monitor scripts can be imported using the `guid`, e.g. + /// A cert check monitor can be imported using its GUID, using the following command. /// /// bash /// @@ -161,6 +164,20 @@ public partial class CertCheckMonitor : global::Pulumi.CustomResource [Output("periodInMinutes")] public Output PeriodInMinutes { get; private set; } = null!; + /// + /// The runtime that the monitor will use to run jobs. + /// + [Output("runtimeType")] + public Output RuntimeType { get; private set; } = null!; + + /// + /// The specific version of the runtime type selected. + /// + /// > **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. + /// + [Output("runtimeTypeVersion")] + public Output RuntimeTypeVersion { get; private set; } = null!; + /// /// The monitor status (ENABLED or DISABLED). /// @@ -273,6 +290,20 @@ public InputList LocationsPublics [Input("period", required: true)] public Input Period { get; set; } = null!; + /// + /// The runtime that the monitor will use to run jobs. + /// + [Input("runtimeType")] + public Input? RuntimeType { get; set; } + + /// + /// The specific version of the runtime type selected. + /// + /// > **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. + /// + [Input("runtimeTypeVersion")] + public Input? RuntimeTypeVersion { get; set; } + /// /// The monitor status (ENABLED or DISABLED). /// @@ -359,6 +390,20 @@ public InputList LocationsPublics [Input("periodInMinutes")] public Input? PeriodInMinutes { get; set; } + /// + /// The runtime that the monitor will use to run jobs. + /// + [Input("runtimeType")] + public Input? RuntimeType { get; set; } + + /// + /// The specific version of the runtime type selected. + /// + /// > **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. + /// + [Input("runtimeTypeVersion")] + public Input? RuntimeTypeVersion { get; set; } + /// /// The monitor status (ENABLED or DISABLED). /// diff --git a/sdk/dotnet/Synthetics/StepMonitor.cs b/sdk/dotnet/Synthetics/StepMonitor.cs index 8c5d6c0c..b68b86fb 100644 --- a/sdk/dotnet/Synthetics/StepMonitor.cs +++ b/sdk/dotnet/Synthetics/StepMonitor.cs @@ -23,7 +23,7 @@ namespace Pulumi.NewRelic.Synthetics /// /// return await Deployment.RunAsync(() => /// { - /// var monitor = new NewRelic.Synthetics.StepMonitor("monitor", new() + /// var foo = new NewRelic.Synthetics.StepMonitor("foo", new() /// { /// EnableScreenshotOnFailureAndScript = true, /// LocationsPublics = new[] @@ -32,6 +32,8 @@ namespace Pulumi.NewRelic.Synthetics /// "US_EAST_2", /// }, /// Period = "EVERY_6_HOURS", + /// RuntimeType = "CHROME_BROWSER", + /// RuntimeTypeVersion = "100", /// Status = "ENABLED", /// Steps = new[] /// { @@ -65,9 +67,71 @@ namespace Pulumi.NewRelic.Synthetics /// /// ## 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. + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using NewRelic = Pulumi.NewRelic; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var fooPrivateLocation = new NewRelic.Synthetics.PrivateLocation("fooPrivateLocation", new() + /// { + /// Description = "Sample Private Location Description", + /// VerifiedScriptExecution = true, + /// }); + /// + /// var fooStepMonitor = new NewRelic.Synthetics.StepMonitor("fooStepMonitor", new() + /// { + /// Period = "EVERY_6_HOURS", + /// Status = "ENABLED", + /// LocationPrivates = new[] + /// { + /// new NewRelic.Synthetics.Inputs.StepMonitorLocationPrivateArgs + /// { + /// Guid = fooPrivateLocation.Id, + /// VsePassword = "secret", + /// }, + /// }, + /// Steps = new[] + /// { + /// new NewRelic.Synthetics.Inputs.StepMonitorStepArgs + /// { + /// Ordinal = 0, + /// Type = "NAVIGATE", + /// Values = new[] + /// { + /// "https://google.com", + /// }, + /// }, + /// }, + /// Tags = new[] + /// { + /// new NewRelic.Synthetics.Inputs.StepMonitorTagArgs + /// { + /// Key = "some_key", + /// Values = new[] + /// { + /// "some_value", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// /// ## Import /// - /// Synthetics step monitor scripts can be imported using the `guid`, e.g. + /// A step monitor can be imported using its GUID, using the following command. /// /// bash /// @@ -126,6 +190,20 @@ public partial class StepMonitor : global::Pulumi.CustomResource [Output("periodInMinutes")] public Output PeriodInMinutes { get; private set; } = null!; + /// + /// The runtime that the monitor will use to run jobs. + /// + [Output("runtimeType")] + public Output RuntimeType { get; private set; } = null!; + + /// + /// The specific version of the runtime type selected. + /// + /// > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + /// + [Output("runtimeTypeVersion")] + public Output RuntimeTypeVersion { get; private set; } = null!; + /// /// The monitor status (ENABLED or DISABLED). /// @@ -238,6 +316,20 @@ public InputList LocationsPublics [Input("period", required: true)] public Input Period { get; set; } = null!; + /// + /// The runtime that the monitor will use to run jobs. + /// + [Input("runtimeType")] + public Input? RuntimeType { get; set; } + + /// + /// The specific version of the runtime type selected. + /// + /// > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + /// + [Input("runtimeTypeVersion")] + public Input? RuntimeTypeVersion { get; set; } + /// /// The monitor status (ENABLED or DISABLED). /// @@ -336,6 +428,20 @@ public InputList LocationsPublics [Input("periodInMinutes")] public Input? PeriodInMinutes { get; set; } + /// + /// The runtime that the monitor will use to run jobs. + /// + [Input("runtimeType")] + public Input? RuntimeType { get; set; } + + /// + /// The specific version of the runtime type selected. + /// + /// > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + /// + [Input("runtimeTypeVersion")] + public Input? RuntimeTypeVersion { get; set; } + /// /// The monitor status (ENABLED or DISABLED). /// diff --git a/sdk/go/newrelic/browserApplication.go b/sdk/go/newrelic/browserApplication.go index 58aa03c0..828647ae 100644 --- a/sdk/go/newrelic/browserApplication.go +++ b/sdk/go/newrelic/browserApplication.go @@ -11,42 +11,9 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// Use this resource to create, update, and delete a standalone New Relic browser application. -// -// ## Example Usage -// -// Basic usage to create a standalone browser application. -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := newrelic.NewBrowserApplication(ctx, "foo", &newrelic.BrowserApplicationArgs{ -// CookiesEnabled: pulumi.Bool(true), -// DistributedTracingEnabled: pulumi.Bool(true), -// LoaderType: pulumi.String("SPA"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// -// // ## Import // -// Browser applications can be imported using the GUID of the browser application. +// A browser application can be imported using its GUID, i.e. // // bash // @@ -56,17 +23,19 @@ import ( type BrowserApplication struct { pulumi.CustomResourceState - // The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + // The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. AccountId pulumi.IntOutput `pulumi:"accountId"` - // Configure cookies. The default is enabled: true. + // The application ID of the browser application (not to be confused with GUID). + ApplicationId pulumi.StringOutput `pulumi:"applicationId"` + // Configures cookies. Defaults to `true`, if not specified. CookiesEnabled pulumi.BoolPtrOutput `pulumi:"cookiesEnabled"` - // Configure distributed tracing in browser apps. The default is enabled: true. + // Configures distributed tracing in browser apps. Defaults to `true`, if not specified. DistributedTracingEnabled pulumi.BoolPtrOutput `pulumi:"distributedTracingEnabled"` // The GUID of the browser application. Guid pulumi.StringOutput `pulumi:"guid"` - // JavaScript configuration of the browser application encoded into a string. + // The JavaScript configuration of the browser application, encoded into a string. JsConfig pulumi.StringOutput `pulumi:"jsConfig"` - // Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + // Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. LoaderType pulumi.StringPtrOutput `pulumi:"loaderType"` // The name of the browser application. Name pulumi.StringOutput `pulumi:"name"` @@ -102,34 +71,38 @@ func GetBrowserApplication(ctx *pulumi.Context, // Input properties used for looking up and filtering BrowserApplication resources. type browserApplicationState struct { - // The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + // The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. AccountId *int `pulumi:"accountId"` - // Configure cookies. The default is enabled: true. + // The application ID of the browser application (not to be confused with GUID). + ApplicationId *string `pulumi:"applicationId"` + // Configures cookies. Defaults to `true`, if not specified. CookiesEnabled *bool `pulumi:"cookiesEnabled"` - // Configure distributed tracing in browser apps. The default is enabled: true. + // Configures distributed tracing in browser apps. Defaults to `true`, if not specified. DistributedTracingEnabled *bool `pulumi:"distributedTracingEnabled"` // The GUID of the browser application. Guid *string `pulumi:"guid"` - // JavaScript configuration of the browser application encoded into a string. + // The JavaScript configuration of the browser application, encoded into a string. JsConfig *string `pulumi:"jsConfig"` - // Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + // Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. LoaderType *string `pulumi:"loaderType"` // The name of the browser application. Name *string `pulumi:"name"` } type BrowserApplicationState struct { - // The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + // The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. AccountId pulumi.IntPtrInput - // Configure cookies. The default is enabled: true. + // The application ID of the browser application (not to be confused with GUID). + ApplicationId pulumi.StringPtrInput + // Configures cookies. Defaults to `true`, if not specified. CookiesEnabled pulumi.BoolPtrInput - // Configure distributed tracing in browser apps. The default is enabled: true. + // Configures distributed tracing in browser apps. Defaults to `true`, if not specified. DistributedTracingEnabled pulumi.BoolPtrInput // The GUID of the browser application. Guid pulumi.StringPtrInput - // JavaScript configuration of the browser application encoded into a string. + // The JavaScript configuration of the browser application, encoded into a string. JsConfig pulumi.StringPtrInput - // Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + // Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. LoaderType pulumi.StringPtrInput // The name of the browser application. Name pulumi.StringPtrInput @@ -140,13 +113,13 @@ func (BrowserApplicationState) ElementType() reflect.Type { } type browserApplicationArgs struct { - // The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + // The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. AccountId *int `pulumi:"accountId"` - // Configure cookies. The default is enabled: true. + // Configures cookies. Defaults to `true`, if not specified. CookiesEnabled *bool `pulumi:"cookiesEnabled"` - // Configure distributed tracing in browser apps. The default is enabled: true. + // Configures distributed tracing in browser apps. Defaults to `true`, if not specified. DistributedTracingEnabled *bool `pulumi:"distributedTracingEnabled"` - // Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + // Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. LoaderType *string `pulumi:"loaderType"` // The name of the browser application. Name *string `pulumi:"name"` @@ -154,13 +127,13 @@ type browserApplicationArgs struct { // The set of arguments for constructing a BrowserApplication resource. type BrowserApplicationArgs struct { - // The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + // The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. AccountId pulumi.IntPtrInput - // Configure cookies. The default is enabled: true. + // Configures cookies. Defaults to `true`, if not specified. CookiesEnabled pulumi.BoolPtrInput - // Configure distributed tracing in browser apps. The default is enabled: true. + // Configures distributed tracing in browser apps. Defaults to `true`, if not specified. DistributedTracingEnabled pulumi.BoolPtrInput - // Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + // Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. LoaderType pulumi.StringPtrInput // The name of the browser application. Name pulumi.StringPtrInput @@ -253,17 +226,22 @@ func (o BrowserApplicationOutput) ToBrowserApplicationOutputWithContext(ctx cont return o } -// The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. +// The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. func (o BrowserApplicationOutput) AccountId() pulumi.IntOutput { return o.ApplyT(func(v *BrowserApplication) pulumi.IntOutput { return v.AccountId }).(pulumi.IntOutput) } -// Configure cookies. The default is enabled: true. +// The application ID of the browser application (not to be confused with GUID). +func (o BrowserApplicationOutput) ApplicationId() pulumi.StringOutput { + return o.ApplyT(func(v *BrowserApplication) pulumi.StringOutput { return v.ApplicationId }).(pulumi.StringOutput) +} + +// Configures cookies. Defaults to `true`, if not specified. func (o BrowserApplicationOutput) CookiesEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *BrowserApplication) pulumi.BoolPtrOutput { return v.CookiesEnabled }).(pulumi.BoolPtrOutput) } -// Configure distributed tracing in browser apps. The default is enabled: true. +// Configures distributed tracing in browser apps. Defaults to `true`, if not specified. func (o BrowserApplicationOutput) DistributedTracingEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *BrowserApplication) pulumi.BoolPtrOutput { return v.DistributedTracingEnabled }).(pulumi.BoolPtrOutput) } @@ -273,12 +251,12 @@ func (o BrowserApplicationOutput) Guid() pulumi.StringOutput { return o.ApplyT(func(v *BrowserApplication) pulumi.StringOutput { return v.Guid }).(pulumi.StringOutput) } -// JavaScript configuration of the browser application encoded into a string. +// The JavaScript configuration of the browser application, encoded into a string. func (o BrowserApplicationOutput) JsConfig() pulumi.StringOutput { return o.ApplyT(func(v *BrowserApplication) pulumi.StringOutput { return v.JsConfig }).(pulumi.StringOutput) } -// Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. +// Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. func (o BrowserApplicationOutput) LoaderType() pulumi.StringPtrOutput { return o.ApplyT(func(v *BrowserApplication) pulumi.StringPtrOutput { return v.LoaderType }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/newrelic/synthetics/brokenLinksMonitor.go b/sdk/go/newrelic/synthetics/brokenLinksMonitor.go index 05d87182..c4098918 100644 --- a/sdk/go/newrelic/synthetics/brokenLinksMonitor.go +++ b/sdk/go/newrelic/synthetics/brokenLinksMonitor.go @@ -29,12 +29,14 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := synthetics.NewBrokenLinksMonitor(ctx, "monitor", &synthetics.BrokenLinksMonitorArgs{ +// _, err := synthetics.NewBrokenLinksMonitor(ctx, "foo", &synthetics.BrokenLinksMonitorArgs{ // LocationsPublics: pulumi.StringArray{ // pulumi.String("AP_SOUTH_1"), // }, -// Period: pulumi.String("EVERY_6_HOURS"), -// Status: pulumi.String("ENABLED"), +// Period: pulumi.String("EVERY_6_HOURS"), +// RuntimeType: pulumi.String("NODE_API"), +// RuntimeTypeVersion: pulumi.String("16.10"), +// Status: pulumi.String("ENABLED"), // Tags: synthetics.BrokenLinksMonitorTagArray{ // &synthetics.BrokenLinksMonitorTagArgs{ // Key: pulumi.String("some_key"), @@ -77,17 +79,17 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{ -// Description: pulumi.String("Test Description"), +// fooPrivateLocation, err := synthetics.NewPrivateLocation(ctx, "fooPrivateLocation", &synthetics.PrivateLocationArgs{ +// Description: pulumi.String("Sample Private Location Description"), // VerifiedScriptExecution: pulumi.Bool(false), // }) // if err != nil { // return err // } -// _, err = synthetics.NewBrokenLinksMonitor(ctx, "monitor", &synthetics.BrokenLinksMonitorArgs{ +// _, err = synthetics.NewBrokenLinksMonitor(ctx, "fooBrokenLinksMonitor", &synthetics.BrokenLinksMonitorArgs{ // Uri: pulumi.String("https://www.one.example.com"), // LocationsPrivates: pulumi.StringArray{ -// location.ID(), +// fooPrivateLocation.ID(), // }, // Period: pulumi.String("EVERY_6_HOURS"), // Status: pulumi.String("ENABLED"), @@ -112,7 +114,7 @@ import ( // // ## Import // -// Synthetics broken links monitor scripts can be imported using the `guid`, e.g. +// A broken links monitor can be imported using its GUID, using the following command. // // bash // @@ -136,6 +138,12 @@ type BrokenLinksMonitor struct { Period pulumi.StringOutput `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"` + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status pulumi.StringOutput `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -197,6 +205,12 @@ type brokenLinksMonitorState struct { Period *string `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes *int `pulumi:"periodInMinutes"` + // The runtime that the monitor will use to run jobs. + RuntimeType *string `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion *string `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status *string `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -220,6 +234,12 @@ type BrokenLinksMonitorState struct { Period pulumi.StringPtrInput // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntPtrInput + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrInput + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringPtrInput // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -243,6 +263,12 @@ type brokenLinksMonitorArgs struct { Name *string `pulumi:"name"` // 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. Period string `pulumi:"period"` + // The runtime that the monitor will use to run jobs. + RuntimeType *string `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion *string `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status string `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -263,6 +289,12 @@ type BrokenLinksMonitorArgs struct { Name pulumi.StringPtrInput // 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. Period pulumi.StringInput + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrInput + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringInput // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -393,6 +425,18 @@ func (o BrokenLinksMonitorOutput) PeriodInMinutes() pulumi.IntOutput { return o.ApplyT(func(v *BrokenLinksMonitor) pulumi.IntOutput { return v.PeriodInMinutes }).(pulumi.IntOutput) } +// The runtime that the monitor will use to run jobs. +func (o BrokenLinksMonitorOutput) RuntimeType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *BrokenLinksMonitor) pulumi.StringPtrOutput { return v.RuntimeType }).(pulumi.StringPtrOutput) +} + +// The specific version of the runtime type selected. +// +// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. +func (o BrokenLinksMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v *BrokenLinksMonitor) pulumi.StringPtrOutput { return v.RuntimeTypeVersion }).(pulumi.StringPtrOutput) +} + // The monitor status (ENABLED or DISABLED). func (o BrokenLinksMonitorOutput) Status() pulumi.StringOutput { return o.ApplyT(func(v *BrokenLinksMonitor) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput) diff --git a/sdk/go/newrelic/synthetics/certCheckMonitor.go b/sdk/go/newrelic/synthetics/certCheckMonitor.go index 98da9a0b..772d3b22 100644 --- a/sdk/go/newrelic/synthetics/certCheckMonitor.go +++ b/sdk/go/newrelic/synthetics/certCheckMonitor.go @@ -29,14 +29,16 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := synthetics.NewCertCheckMonitor(ctx, "cert-check-monitor", &synthetics.CertCheckMonitorArgs{ +// _, err := synthetics.NewCertCheckMonitor(ctx, "foo", &synthetics.CertCheckMonitorArgs{ // CertificateExpiration: pulumi.Int(10), // Domain: pulumi.String("www.example.com"), // LocationsPublics: pulumi.StringArray{ // pulumi.String("AP_SOUTH_1"), // }, -// Period: pulumi.String("EVERY_6_HOURS"), -// Status: pulumi.String("ENABLED"), +// Period: pulumi.String("EVERY_6_HOURS"), +// RuntimeType: pulumi.String("NODE_API"), +// RuntimeTypeVersion: pulumi.String("16.10"), +// Status: pulumi.String("ENABLED"), // Tags: synthetics.CertCheckMonitorTagArray{ // &synthetics.CertCheckMonitorTagArgs{ // Key: pulumi.String("some_key"), @@ -78,20 +80,21 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{ -// Description: pulumi.String("Test Description"), +// fooPrivateLocation, err := synthetics.NewPrivateLocation(ctx, "fooPrivateLocation", &synthetics.PrivateLocationArgs{ +// Description: pulumi.String("Sample Private Location Description"), // VerifiedScriptExecution: pulumi.Bool(false), // }) // if err != nil { // return err // } -// _, err = synthetics.NewCertCheckMonitor(ctx, "monitor", &synthetics.CertCheckMonitorArgs{ -// Domain: pulumi.String("https://www.one.example.com"), +// _, err = synthetics.NewCertCheckMonitor(ctx, "fooCertCheckMonitor", &synthetics.CertCheckMonitorArgs{ +// Domain: pulumi.String("www.one.example.com"), // LocationsPrivates: pulumi.StringArray{ -// location.ID(), +// fooPrivateLocation.ID(), // }, -// Period: pulumi.String("EVERY_6_HOURS"), -// Status: pulumi.String("ENABLED"), +// CertificateExpiration: pulumi.Int(10), +// Period: pulumi.String("EVERY_6_HOURS"), +// Status: pulumi.String("ENABLED"), // Tags: synthetics.CertCheckMonitorTagArray{ // &synthetics.CertCheckMonitorTagArgs{ // Key: pulumi.String("some_key"), @@ -113,7 +116,7 @@ import ( // // ## Import // -// Synthetics certificate check monitor scripts can be imported using the `guid`, e.g. +// A cert check monitor can be imported using its GUID, using the following command. // // bash // @@ -139,6 +142,12 @@ type CertCheckMonitor struct { Period pulumi.StringOutput `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"` + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status pulumi.StringOutput `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -203,6 +212,12 @@ type certCheckMonitorState struct { Period *string `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes *int `pulumi:"periodInMinutes"` + // The runtime that the monitor will use to run jobs. + RuntimeType *string `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion *string `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status *string `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -226,6 +241,12 @@ type CertCheckMonitorState struct { Period pulumi.StringPtrInput // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntPtrInput + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrInput + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringPtrInput // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -251,6 +272,12 @@ type certCheckMonitorArgs struct { Name *string `pulumi:"name"` // 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. Period string `pulumi:"period"` + // The runtime that the monitor will use to run jobs. + RuntimeType *string `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion *string `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status string `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -273,6 +300,12 @@ type CertCheckMonitorArgs struct { Name pulumi.StringPtrInput // 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. Period pulumi.StringInput + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrInput + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringInput // The tags that will be associated with the monitor. See Nested tag blocks below for details @@ -406,6 +439,18 @@ func (o CertCheckMonitorOutput) PeriodInMinutes() pulumi.IntOutput { return o.ApplyT(func(v *CertCheckMonitor) pulumi.IntOutput { return v.PeriodInMinutes }).(pulumi.IntOutput) } +// The runtime that the monitor will use to run jobs. +func (o CertCheckMonitorOutput) RuntimeType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CertCheckMonitor) pulumi.StringPtrOutput { return v.RuntimeType }).(pulumi.StringPtrOutput) +} + +// The specific version of the runtime type selected. +// +// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. +func (o CertCheckMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CertCheckMonitor) pulumi.StringPtrOutput { return v.RuntimeTypeVersion }).(pulumi.StringPtrOutput) +} + // The monitor status (ENABLED or DISABLED). func (o CertCheckMonitorOutput) Status() pulumi.StringOutput { return o.ApplyT(func(v *CertCheckMonitor) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput) diff --git a/sdk/go/newrelic/synthetics/stepMonitor.go b/sdk/go/newrelic/synthetics/stepMonitor.go index b72f90c7..5cf93e04 100644 --- a/sdk/go/newrelic/synthetics/stepMonitor.go +++ b/sdk/go/newrelic/synthetics/stepMonitor.go @@ -29,14 +29,16 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := synthetics.NewStepMonitor(ctx, "monitor", &synthetics.StepMonitorArgs{ +// _, err := synthetics.NewStepMonitor(ctx, "foo", &synthetics.StepMonitorArgs{ // EnableScreenshotOnFailureAndScript: pulumi.Bool(true), // LocationsPublics: pulumi.StringArray{ // pulumi.String("US_EAST_1"), // pulumi.String("US_EAST_2"), // }, -// Period: pulumi.String("EVERY_6_HOURS"), -// Status: pulumi.String("ENABLED"), +// Period: pulumi.String("EVERY_6_HOURS"), +// RuntimeType: pulumi.String("CHROME_BROWSER"), +// RuntimeTypeVersion: pulumi.String("100"), +// Status: pulumi.String("ENABLED"), // Steps: synthetics.StepMonitorStepArray{ // &synthetics.StepMonitorStepArgs{ // Ordinal: pulumi.Int(0), @@ -68,9 +70,72 @@ import ( // // ## 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. +// +// +// ```go +// 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 { +// fooPrivateLocation, err := synthetics.NewPrivateLocation(ctx, "fooPrivateLocation", &synthetics.PrivateLocationArgs{ +// Description: pulumi.String("Sample Private Location Description"), +// VerifiedScriptExecution: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// _, err = synthetics.NewStepMonitor(ctx, "fooStepMonitor", &synthetics.StepMonitorArgs{ +// Period: pulumi.String("EVERY_6_HOURS"), +// Status: pulumi.String("ENABLED"), +// LocationPrivates: synthetics.StepMonitorLocationPrivateArray{ +// &synthetics.StepMonitorLocationPrivateArgs{ +// Guid: fooPrivateLocation.ID(), +// VsePassword: pulumi.String("secret"), +// }, +// }, +// Steps: synthetics.StepMonitorStepArray{ +// &synthetics.StepMonitorStepArgs{ +// Ordinal: pulumi.Int(0), +// Type: pulumi.String("NAVIGATE"), +// Values: pulumi.StringArray{ +// pulumi.String("https://google.com"), +// }, +// }, +// }, +// Tags: synthetics.StepMonitorTagArray{ +// &synthetics.StepMonitorTagArgs{ +// Key: pulumi.String("some_key"), +// Values: pulumi.StringArray{ +// pulumi.String("some_value"), +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// // ## Import // -// Synthetics step monitor scripts can be imported using the `guid`, e.g. +// A step monitor can be imported using its GUID, using the following command. // // bash // @@ -96,6 +161,12 @@ type StepMonitor struct { Period pulumi.StringOutput `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"` + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status pulumi.StringOutput `pulumi:"status"` // The steps that make up the script the monitor will run. See Nested steps blocks below for details. @@ -159,6 +230,12 @@ type stepMonitorState struct { Period *string `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes *int `pulumi:"periodInMinutes"` + // The runtime that the monitor will use to run jobs. + RuntimeType *string `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion *string `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status *string `pulumi:"status"` // The steps that make up the script the monitor will run. See Nested steps blocks below for details. @@ -184,6 +261,12 @@ type StepMonitorState struct { Period pulumi.StringPtrInput // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntPtrInput + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrInput + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringPtrInput // The steps that make up the script the monitor will run. See Nested steps blocks below for details. @@ -209,6 +292,12 @@ type stepMonitorArgs struct { Name *string `pulumi:"name"` // 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. Period string `pulumi:"period"` + // The runtime that the monitor will use to run jobs. + RuntimeType *string `pulumi:"runtimeType"` + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion *string `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status string `pulumi:"status"` // The steps that make up the script the monitor will run. See Nested steps blocks below for details. @@ -231,6 +320,12 @@ type StepMonitorArgs struct { Name pulumi.StringPtrInput // 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. Period pulumi.StringInput + // The runtime that the monitor will use to run jobs. + RuntimeType pulumi.StringPtrInput + // The specific version of the runtime type selected. + // + // > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringInput // The steps that make up the script the monitor will run. See Nested steps blocks below for details. @@ -366,6 +461,18 @@ func (o StepMonitorOutput) PeriodInMinutes() pulumi.IntOutput { return o.ApplyT(func(v *StepMonitor) pulumi.IntOutput { return v.PeriodInMinutes }).(pulumi.IntOutput) } +// The runtime that the monitor will use to run jobs. +func (o StepMonitorOutput) RuntimeType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *StepMonitor) pulumi.StringPtrOutput { return v.RuntimeType }).(pulumi.StringPtrOutput) +} + +// The specific version of the runtime type selected. +// +// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. +func (o StepMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v *StepMonitor) pulumi.StringPtrOutput { return v.RuntimeTypeVersion }).(pulumi.StringPtrOutput) +} + // The monitor status (ENABLED or DISABLED). func (o StepMonitorOutput) Status() pulumi.StringOutput { return o.ApplyT(func(v *StepMonitor) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplication.java b/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplication.java index fd82381f..7ae11653 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplication.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplication.java @@ -17,47 +17,9 @@ import javax.annotation.Nullable; /** - * Use this resource to create, update, and delete a standalone New Relic browser application. - * - * ## Example Usage - * - * Basic usage to create a standalone browser application. - * <!--Start PulumiCodeChooser --> - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.newrelic.BrowserApplication; - * import com.pulumi.newrelic.BrowserApplicationArgs; - * 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 BrowserApplication("foo", BrowserApplicationArgs.builder() - * .cookiesEnabled(true) - * .distributedTracingEnabled(true) - * .loaderType("SPA") - * .build()); - * - * } - * } - * ``` - * <!--End PulumiCodeChooser --> - * * ## Import * - * Browser applications can be imported using the GUID of the browser application. + * A browser application can be imported using its GUID, i.e. * * bash * @@ -69,42 +31,56 @@ @ResourceType(type="newrelic:index/browserApplication:BrowserApplication") public class BrowserApplication extends com.pulumi.resources.CustomResource { /** - * The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * */ @Export(name="accountId", refs={Integer.class}, tree="[0]") private Output accountId; /** - * @return The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * @return The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * */ public Output accountId() { return this.accountId; } /** - * Configure cookies. The default is enabled: true. + * The application ID of the browser application (not to be confused with GUID). + * + */ + @Export(name="applicationId", refs={String.class}, tree="[0]") + private Output applicationId; + + /** + * @return The application ID of the browser application (not to be confused with GUID). + * + */ + public Output applicationId() { + return this.applicationId; + } + /** + * Configures cookies. Defaults to `true`, if not specified. * */ @Export(name="cookiesEnabled", refs={Boolean.class}, tree="[0]") private Output cookiesEnabled; /** - * @return Configure cookies. The default is enabled: true. + * @return Configures cookies. Defaults to `true`, if not specified. * */ public Output> cookiesEnabled() { return Codegen.optional(this.cookiesEnabled); } /** - * Configure distributed tracing in browser apps. The default is enabled: true. + * Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * */ @Export(name="distributedTracingEnabled", refs={Boolean.class}, tree="[0]") private Output distributedTracingEnabled; /** - * @return Configure distributed tracing in browser apps. The default is enabled: true. + * @return Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * */ public Output> distributedTracingEnabled() { @@ -125,28 +101,28 @@ public Output guid() { return this.guid; } /** - * JavaScript configuration of the browser application encoded into a string. + * The JavaScript configuration of the browser application, encoded into a string. * */ @Export(name="jsConfig", refs={String.class}, tree="[0]") private Output jsConfig; /** - * @return JavaScript configuration of the browser application encoded into a string. + * @return The JavaScript configuration of the browser application, encoded into a string. * */ public Output jsConfig() { return this.jsConfig; } /** - * Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * */ @Export(name="loaderType", refs={String.class}, tree="[0]") private Output loaderType; /** - * @return Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * @return Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * */ public Output> loaderType() { diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplicationArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplicationArgs.java index fd1acb64..b3a9f926 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplicationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplicationArgs.java @@ -18,14 +18,14 @@ public final class BrowserApplicationArgs extends com.pulumi.resources.ResourceA public static final BrowserApplicationArgs Empty = new BrowserApplicationArgs(); /** - * The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * */ @Import(name="accountId") private @Nullable Output accountId; /** - * @return The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * @return The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * */ public Optional> accountId() { @@ -33,14 +33,14 @@ public Optional> accountId() { } /** - * Configure cookies. The default is enabled: true. + * Configures cookies. Defaults to `true`, if not specified. * */ @Import(name="cookiesEnabled") private @Nullable Output cookiesEnabled; /** - * @return Configure cookies. The default is enabled: true. + * @return Configures cookies. Defaults to `true`, if not specified. * */ public Optional> cookiesEnabled() { @@ -48,14 +48,14 @@ public Optional> cookiesEnabled() { } /** - * Configure distributed tracing in browser apps. The default is enabled: true. + * Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * */ @Import(name="distributedTracingEnabled") private @Nullable Output distributedTracingEnabled; /** - * @return Configure distributed tracing in browser apps. The default is enabled: true. + * @return Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * */ public Optional> distributedTracingEnabled() { @@ -63,14 +63,14 @@ public Optional> distributedTracingEnabled() { } /** - * Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * */ @Import(name="loaderType") private @Nullable Output loaderType; /** - * @return Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * @return Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * */ public Optional> loaderType() { @@ -121,7 +121,7 @@ public Builder(BrowserApplicationArgs defaults) { } /** - * @param accountId The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * @param accountId The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * * @return builder * @@ -132,7 +132,7 @@ public Builder accountId(@Nullable Output accountId) { } /** - * @param accountId The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * @param accountId The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * * @return builder * @@ -142,7 +142,7 @@ public Builder accountId(Integer accountId) { } /** - * @param cookiesEnabled Configure cookies. The default is enabled: true. + * @param cookiesEnabled Configures cookies. Defaults to `true`, if not specified. * * @return builder * @@ -153,7 +153,7 @@ public Builder cookiesEnabled(@Nullable Output cookiesEnabled) { } /** - * @param cookiesEnabled Configure cookies. The default is enabled: true. + * @param cookiesEnabled Configures cookies. Defaults to `true`, if not specified. * * @return builder * @@ -163,7 +163,7 @@ public Builder cookiesEnabled(Boolean cookiesEnabled) { } /** - * @param distributedTracingEnabled Configure distributed tracing in browser apps. The default is enabled: true. + * @param distributedTracingEnabled Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * * @return builder * @@ -174,7 +174,7 @@ public Builder distributedTracingEnabled(@Nullable Output distributedTr } /** - * @param distributedTracingEnabled Configure distributed tracing in browser apps. The default is enabled: true. + * @param distributedTracingEnabled Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * * @return builder * @@ -184,7 +184,7 @@ public Builder distributedTracingEnabled(Boolean distributedTracingEnabled) { } /** - * @param loaderType Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * @param loaderType Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * * @return builder * @@ -195,7 +195,7 @@ public Builder loaderType(@Nullable Output loaderType) { } /** - * @param loaderType Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * @param loaderType Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/BrowserApplicationState.java b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/BrowserApplicationState.java index 0ee900e8..a24f34f7 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/BrowserApplicationState.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/BrowserApplicationState.java @@ -18,14 +18,14 @@ public final class BrowserApplicationState extends com.pulumi.resources.Resource public static final BrowserApplicationState Empty = new BrowserApplicationState(); /** - * The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * */ @Import(name="accountId") private @Nullable Output accountId; /** - * @return The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * @return The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * */ public Optional> accountId() { @@ -33,14 +33,29 @@ public Optional> accountId() { } /** - * Configure cookies. The default is enabled: true. + * The application ID of the browser application (not to be confused with GUID). + * + */ + @Import(name="applicationId") + private @Nullable Output applicationId; + + /** + * @return The application ID of the browser application (not to be confused with GUID). + * + */ + public Optional> applicationId() { + return Optional.ofNullable(this.applicationId); + } + + /** + * Configures cookies. Defaults to `true`, if not specified. * */ @Import(name="cookiesEnabled") private @Nullable Output cookiesEnabled; /** - * @return Configure cookies. The default is enabled: true. + * @return Configures cookies. Defaults to `true`, if not specified. * */ public Optional> cookiesEnabled() { @@ -48,14 +63,14 @@ public Optional> cookiesEnabled() { } /** - * Configure distributed tracing in browser apps. The default is enabled: true. + * Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * */ @Import(name="distributedTracingEnabled") private @Nullable Output distributedTracingEnabled; /** - * @return Configure distributed tracing in browser apps. The default is enabled: true. + * @return Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * */ public Optional> distributedTracingEnabled() { @@ -78,14 +93,14 @@ public Optional> guid() { } /** - * JavaScript configuration of the browser application encoded into a string. + * The JavaScript configuration of the browser application, encoded into a string. * */ @Import(name="jsConfig") private @Nullable Output jsConfig; /** - * @return JavaScript configuration of the browser application encoded into a string. + * @return The JavaScript configuration of the browser application, encoded into a string. * */ public Optional> jsConfig() { @@ -93,14 +108,14 @@ public Optional> jsConfig() { } /** - * Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * */ @Import(name="loaderType") private @Nullable Output loaderType; /** - * @return Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * @return Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * */ public Optional> loaderType() { @@ -126,6 +141,7 @@ private BrowserApplicationState() {} private BrowserApplicationState(BrowserApplicationState $) { this.accountId = $.accountId; + this.applicationId = $.applicationId; this.cookiesEnabled = $.cookiesEnabled; this.distributedTracingEnabled = $.distributedTracingEnabled; this.guid = $.guid; @@ -153,7 +169,7 @@ public Builder(BrowserApplicationState defaults) { } /** - * @param accountId The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * @param accountId The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * * @return builder * @@ -164,7 +180,7 @@ public Builder accountId(@Nullable Output accountId) { } /** - * @param accountId The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * @param accountId The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. * * @return builder * @@ -174,7 +190,28 @@ public Builder accountId(Integer accountId) { } /** - * @param cookiesEnabled Configure cookies. The default is enabled: true. + * @param applicationId The application ID of the browser application (not to be confused with GUID). + * + * @return builder + * + */ + public Builder applicationId(@Nullable Output applicationId) { + $.applicationId = applicationId; + return this; + } + + /** + * @param applicationId The application ID of the browser application (not to be confused with GUID). + * + * @return builder + * + */ + public Builder applicationId(String applicationId) { + return applicationId(Output.of(applicationId)); + } + + /** + * @param cookiesEnabled Configures cookies. Defaults to `true`, if not specified. * * @return builder * @@ -185,7 +222,7 @@ public Builder cookiesEnabled(@Nullable Output cookiesEnabled) { } /** - * @param cookiesEnabled Configure cookies. The default is enabled: true. + * @param cookiesEnabled Configures cookies. Defaults to `true`, if not specified. * * @return builder * @@ -195,7 +232,7 @@ public Builder cookiesEnabled(Boolean cookiesEnabled) { } /** - * @param distributedTracingEnabled Configure distributed tracing in browser apps. The default is enabled: true. + * @param distributedTracingEnabled Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * * @return builder * @@ -206,7 +243,7 @@ public Builder distributedTracingEnabled(@Nullable Output distributedTr } /** - * @param distributedTracingEnabled Configure distributed tracing in browser apps. The default is enabled: true. + * @param distributedTracingEnabled Configures distributed tracing in browser apps. Defaults to `true`, if not specified. * * @return builder * @@ -237,7 +274,7 @@ public Builder guid(String guid) { } /** - * @param jsConfig JavaScript configuration of the browser application encoded into a string. + * @param jsConfig The JavaScript configuration of the browser application, encoded into a string. * * @return builder * @@ -248,7 +285,7 @@ public Builder jsConfig(@Nullable Output jsConfig) { } /** - * @param jsConfig JavaScript configuration of the browser application encoded into a string. + * @param jsConfig The JavaScript configuration of the browser application, encoded into a string. * * @return builder * @@ -258,7 +295,7 @@ public Builder jsConfig(String jsConfig) { } /** - * @param loaderType Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * @param loaderType Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * * @return builder * @@ -269,7 +306,7 @@ public Builder loaderType(@Nullable Output loaderType) { } /** - * @param loaderType Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * @param loaderType Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/BrokenLinksMonitor.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/BrokenLinksMonitor.java index caa28e09..681724e4 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/BrokenLinksMonitor.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/BrokenLinksMonitor.java @@ -45,9 +45,11 @@ * } * * public static void stack(Context ctx) { - * var monitor = new BrokenLinksMonitor("monitor", BrokenLinksMonitorArgs.builder() + * var foo = new BrokenLinksMonitor("foo", BrokenLinksMonitorArgs.builder() * .locationsPublics("AP_SOUTH_1") * .period("EVERY_6_HOURS") + * .runtimeType("NODE_API") + * .runtimeTypeVersion("16.10") * .status("ENABLED") * .tags(BrokenLinksMonitorTagArgs.builder() * .key("some_key") @@ -95,14 +97,14 @@ * } * * public static void stack(Context ctx) { - * var location = new PrivateLocation("location", PrivateLocationArgs.builder() - * .description("Test Description") + * var fooPrivateLocation = new PrivateLocation("fooPrivateLocation", PrivateLocationArgs.builder() + * .description("Sample Private Location Description") * .verifiedScriptExecution(false) * .build()); * - * var monitor = new BrokenLinksMonitor("monitor", BrokenLinksMonitorArgs.builder() + * var fooBrokenLinksMonitor = new BrokenLinksMonitor("fooBrokenLinksMonitor", BrokenLinksMonitorArgs.builder() * .uri("https://www.one.example.com") - * .locationsPrivates(location.id()) + * .locationsPrivates(fooPrivateLocation.id()) * .period("EVERY_6_HOURS") * .status("ENABLED") * .tags(BrokenLinksMonitorTagArgs.builder() @@ -118,7 +120,7 @@ * * ## Import * - * Synthetics broken links monitor scripts can be imported using the `guid`, e.g. + * A broken links monitor can be imported using its GUID, using the following command. * * bash * @@ -227,6 +229,38 @@ public Output period() { public Output periodInMinutes() { return this.periodInMinutes; } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Export(name="runtimeType", refs={String.class}, tree="[0]") + private Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Output> runtimeType() { + return Codegen.optional(this.runtimeType); + } + /** + * The specific version of the runtime type selected. + * + * > **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. + * + */ + @Export(name="runtimeTypeVersion", refs={String.class}, tree="[0]") + private Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **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. + * + */ + public Output> runtimeTypeVersion() { + return Codegen.optional(this.runtimeTypeVersion); + } /** * The monitor status (ENABLED or DISABLED). * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/BrokenLinksMonitorArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/BrokenLinksMonitorArgs.java index 14025a58..6849d485 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/BrokenLinksMonitorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/BrokenLinksMonitorArgs.java @@ -94,6 +94,40 @@ public Output period() { return this.period; } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Import(name="runtimeType") + private @Nullable Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Optional> runtimeType() { + return Optional.ofNullable(this.runtimeType); + } + + /** + * The specific version of the runtime type selected. + * + * > **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. + * + */ + @Import(name="runtimeTypeVersion") + private @Nullable Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **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. + * + */ + public Optional> runtimeTypeVersion() { + return Optional.ofNullable(this.runtimeTypeVersion); + } + /** * The monitor status (ENABLED or DISABLED). * @@ -147,6 +181,8 @@ private BrokenLinksMonitorArgs(BrokenLinksMonitorArgs $) { this.locationsPublics = $.locationsPublics; this.name = $.name; this.period = $.period; + this.runtimeType = $.runtimeType; + this.runtimeTypeVersion = $.runtimeTypeVersion; this.status = $.status; this.tags = $.tags; this.uri = $.uri; @@ -295,6 +331,52 @@ public Builder period(String period) { return period(Output.of(period)); } + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(@Nullable Output runtimeType) { + $.runtimeType = runtimeType; + return this; + } + + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(String runtimeType) { + return runtimeType(Output.of(runtimeType)); + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(@Nullable Output runtimeTypeVersion) { + $.runtimeTypeVersion = runtimeTypeVersion; + return this; + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(String runtimeTypeVersion) { + return runtimeTypeVersion(Output.of(runtimeTypeVersion)); + } + /** * @param status The monitor status (ENABLED or DISABLED). * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/CertCheckMonitor.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/CertCheckMonitor.java index 1ed9450c..b473df71 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/CertCheckMonitor.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/CertCheckMonitor.java @@ -45,11 +45,13 @@ * } * * public static void stack(Context ctx) { - * var cert_check_monitor = new CertCheckMonitor("cert-check-monitor", CertCheckMonitorArgs.builder() + * var foo = new CertCheckMonitor("foo", CertCheckMonitorArgs.builder() * .certificateExpiration("10") * .domain("www.example.com") * .locationsPublics("AP_SOUTH_1") * .period("EVERY_6_HOURS") + * .runtimeType("NODE_API") + * .runtimeTypeVersion("16.10") * .status("ENABLED") * .tags(CertCheckMonitorTagArgs.builder() * .key("some_key") @@ -96,14 +98,15 @@ * } * * public static void stack(Context ctx) { - * var location = new PrivateLocation("location", PrivateLocationArgs.builder() - * .description("Test Description") + * var fooPrivateLocation = new PrivateLocation("fooPrivateLocation", PrivateLocationArgs.builder() + * .description("Sample Private Location Description") * .verifiedScriptExecution(false) * .build()); * - * var monitor = new CertCheckMonitor("monitor", CertCheckMonitorArgs.builder() - * .domain("https://www.one.example.com") - * .locationsPrivates(location.id()) + * var fooCertCheckMonitor = new CertCheckMonitor("fooCertCheckMonitor", CertCheckMonitorArgs.builder() + * .domain("www.one.example.com") + * .locationsPrivates(fooPrivateLocation.id()) + * .certificateExpiration("10") * .period("EVERY_6_HOURS") * .status("ENABLED") * .tags(CertCheckMonitorTagArgs.builder() @@ -119,7 +122,7 @@ * * ## Import * - * Synthetics certificate check monitor scripts can be imported using the `guid`, e.g. + * A cert check monitor can be imported using its GUID, using the following command. * * bash * @@ -242,6 +245,38 @@ public Output period() { public Output periodInMinutes() { return this.periodInMinutes; } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Export(name="runtimeType", refs={String.class}, tree="[0]") + private Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Output> runtimeType() { + return Codegen.optional(this.runtimeType); + } + /** + * The specific version of the runtime type selected. + * + * > **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. + * + */ + @Export(name="runtimeTypeVersion", refs={String.class}, tree="[0]") + private Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **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. + * + */ + public Output> runtimeTypeVersion() { + return Codegen.optional(this.runtimeTypeVersion); + } /** * The monitor status (ENABLED or DISABLED). * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/CertCheckMonitorArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/CertCheckMonitorArgs.java index 653106ee..dd20ada3 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/CertCheckMonitorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/CertCheckMonitorArgs.java @@ -124,6 +124,40 @@ public Output period() { return this.period; } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Import(name="runtimeType") + private @Nullable Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Optional> runtimeType() { + return Optional.ofNullable(this.runtimeType); + } + + /** + * The specific version of the runtime type selected. + * + * > **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. + * + */ + @Import(name="runtimeTypeVersion") + private @Nullable Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **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. + * + */ + public Optional> runtimeTypeVersion() { + return Optional.ofNullable(this.runtimeTypeVersion); + } + /** * The monitor status (ENABLED or DISABLED). * @@ -164,6 +198,8 @@ private CertCheckMonitorArgs(CertCheckMonitorArgs $) { this.locationsPublics = $.locationsPublics; this.name = $.name; this.period = $.period; + this.runtimeType = $.runtimeType; + this.runtimeTypeVersion = $.runtimeTypeVersion; this.status = $.status; this.tags = $.tags; } @@ -353,6 +389,52 @@ public Builder period(String period) { return period(Output.of(period)); } + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(@Nullable Output runtimeType) { + $.runtimeType = runtimeType; + return this; + } + + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(String runtimeType) { + return runtimeType(Output.of(runtimeType)); + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(@Nullable Output runtimeTypeVersion) { + $.runtimeTypeVersion = runtimeTypeVersion; + return this; + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(String runtimeTypeVersion) { + return runtimeTypeVersion(Output.of(runtimeTypeVersion)); + } + /** * @param status The monitor status (ENABLED or DISABLED). * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/StepMonitor.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/StepMonitor.java index e67147c2..07a1e1bd 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/StepMonitor.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/StepMonitor.java @@ -49,12 +49,14 @@ * } * * public static void stack(Context ctx) { - * var monitor = new StepMonitor("monitor", StepMonitorArgs.builder() + * var foo = new StepMonitor("foo", StepMonitorArgs.builder() * .enableScreenshotOnFailureAndScript(true) * .locationsPublics( * "US_EAST_1", * "US_EAST_2") * .period("EVERY_6_HOURS") + * .runtimeType("CHROME_BROWSER") + * .runtimeTypeVersion("100") * .status("ENABLED") * .steps(StepMonitorStepArgs.builder() * .ordinal(0) @@ -108,19 +110,18 @@ * } * * public static void stack(Context ctx) { - * var location = new PrivateLocation("location", PrivateLocationArgs.builder() - * .description("Test Description") + * var fooPrivateLocation = new PrivateLocation("fooPrivateLocation", PrivateLocationArgs.builder() + * .description("Sample Private Location Description") * .verifiedScriptExecution(true) * .build()); * - * var bar = new StepMonitor("bar", StepMonitorArgs.builder() - * .uri("https://www.one.example.com") + * var fooStepMonitor = new StepMonitor("fooStepMonitor", StepMonitorArgs.builder() + * .period("EVERY_6_HOURS") + * .status("ENABLED") * .locationPrivates(StepMonitorLocationPrivateArgs.builder() - * .guid(location.id()) + * .guid(fooPrivateLocation.id()) * .vsePassword("secret") * .build()) - * .period("EVERY_6_HOURS") - * .status("ENABLED") * .steps(StepMonitorStepArgs.builder() * .ordinal(0) * .type("NAVIGATE") @@ -139,7 +140,7 @@ * * ## Import * - * Synthetics step monitor scripts can be imported using the `guid`, e.g. + * A step monitor can be imported using its GUID, using the following command. * * bash * @@ -262,6 +263,38 @@ public Output period() { public Output periodInMinutes() { return this.periodInMinutes; } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Export(name="runtimeType", refs={String.class}, tree="[0]") + private Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Output> runtimeType() { + return Codegen.optional(this.runtimeType); + } + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + */ + @Export(name="runtimeTypeVersion", refs={String.class}, tree="[0]") + private Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + */ + public Output> runtimeTypeVersion() { + return Codegen.optional(this.runtimeTypeVersion); + } /** * The monitor status (ENABLED or DISABLED). * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/StepMonitorArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/StepMonitorArgs.java index 609776e5..bfc764c1 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/StepMonitorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/StepMonitorArgs.java @@ -112,6 +112,40 @@ public Output period() { return this.period; } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Import(name="runtimeType") + private @Nullable Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Optional> runtimeType() { + return Optional.ofNullable(this.runtimeType); + } + + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + */ + @Import(name="runtimeTypeVersion") + private @Nullable Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + */ + public Optional> runtimeTypeVersion() { + return Optional.ofNullable(this.runtimeTypeVersion); + } + /** * The monitor status (ENABLED or DISABLED). * @@ -166,6 +200,8 @@ private StepMonitorArgs(StepMonitorArgs $) { this.locationsPublics = $.locationsPublics; this.name = $.name; this.period = $.period; + this.runtimeType = $.runtimeType; + this.runtimeTypeVersion = $.runtimeTypeVersion; this.status = $.status; this.steps = $.steps; this.tags = $.tags; @@ -335,6 +371,52 @@ public Builder period(String period) { return period(Output.of(period)); } + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(@Nullable Output runtimeType) { + $.runtimeType = runtimeType; + return this; + } + + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(String runtimeType) { + return runtimeType(Output.of(runtimeType)); + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(@Nullable Output runtimeTypeVersion) { + $.runtimeTypeVersion = runtimeTypeVersion; + return this; + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(String runtimeTypeVersion) { + return runtimeTypeVersion(Output.of(runtimeTypeVersion)); + } + /** * @param status The monitor status (ENABLED or DISABLED). * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/BrokenLinksMonitorState.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/BrokenLinksMonitorState.java index 65bf1b89..00cdd3ff 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/BrokenLinksMonitorState.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/BrokenLinksMonitorState.java @@ -123,6 +123,40 @@ public Optional> periodInMinutes() { return Optional.ofNullable(this.periodInMinutes); } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Import(name="runtimeType") + private @Nullable Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Optional> runtimeType() { + return Optional.ofNullable(this.runtimeType); + } + + /** + * The specific version of the runtime type selected. + * + * > **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. + * + */ + @Import(name="runtimeTypeVersion") + private @Nullable Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **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. + * + */ + public Optional> runtimeTypeVersion() { + return Optional.ofNullable(this.runtimeTypeVersion); + } + /** * The monitor status (ENABLED or DISABLED). * @@ -178,6 +212,8 @@ private BrokenLinksMonitorState(BrokenLinksMonitorState $) { this.name = $.name; this.period = $.period; this.periodInMinutes = $.periodInMinutes; + this.runtimeType = $.runtimeType; + this.runtimeTypeVersion = $.runtimeTypeVersion; this.status = $.status; this.tags = $.tags; this.uri = $.uri; @@ -368,6 +404,52 @@ public Builder periodInMinutes(Integer periodInMinutes) { return periodInMinutes(Output.of(periodInMinutes)); } + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(@Nullable Output runtimeType) { + $.runtimeType = runtimeType; + return this; + } + + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(String runtimeType) { + return runtimeType(Output.of(runtimeType)); + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(@Nullable Output runtimeTypeVersion) { + $.runtimeTypeVersion = runtimeTypeVersion; + return this; + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(String runtimeTypeVersion) { + return runtimeTypeVersion(Output.of(runtimeTypeVersion)); + } + /** * @param status The monitor status (ENABLED or DISABLED). * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/CertCheckMonitorState.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/CertCheckMonitorState.java index cb9b8442..bb68adce 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/CertCheckMonitorState.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/CertCheckMonitorState.java @@ -138,6 +138,40 @@ public Optional> periodInMinutes() { return Optional.ofNullable(this.periodInMinutes); } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Import(name="runtimeType") + private @Nullable Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Optional> runtimeType() { + return Optional.ofNullable(this.runtimeType); + } + + /** + * The specific version of the runtime type selected. + * + * > **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. + * + */ + @Import(name="runtimeTypeVersion") + private @Nullable Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **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. + * + */ + public Optional> runtimeTypeVersion() { + return Optional.ofNullable(this.runtimeTypeVersion); + } + /** * The monitor status (ENABLED or DISABLED). * @@ -179,6 +213,8 @@ private CertCheckMonitorState(CertCheckMonitorState $) { this.name = $.name; this.period = $.period; this.periodInMinutes = $.periodInMinutes; + this.runtimeType = $.runtimeType; + this.runtimeTypeVersion = $.runtimeTypeVersion; this.status = $.status; this.tags = $.tags; } @@ -389,6 +425,52 @@ public Builder periodInMinutes(Integer periodInMinutes) { return periodInMinutes(Output.of(periodInMinutes)); } + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(@Nullable Output runtimeType) { + $.runtimeType = runtimeType; + return this; + } + + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(String runtimeType) { + return runtimeType(Output.of(runtimeType)); + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(@Nullable Output runtimeTypeVersion) { + $.runtimeTypeVersion = runtimeTypeVersion; + return this; + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(String runtimeTypeVersion) { + return runtimeTypeVersion(Output.of(runtimeTypeVersion)); + } + /** * @param status The monitor status (ENABLED or DISABLED). * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/StepMonitorState.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/StepMonitorState.java index ed724abf..3706a1fc 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/StepMonitorState.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/inputs/StepMonitorState.java @@ -141,6 +141,40 @@ public Optional> periodInMinutes() { return Optional.ofNullable(this.periodInMinutes); } + /** + * The runtime that the monitor will use to run jobs. + * + */ + @Import(name="runtimeType") + private @Nullable Output runtimeType; + + /** + * @return The runtime that the monitor will use to run jobs. + * + */ + public Optional> runtimeType() { + return Optional.ofNullable(this.runtimeType); + } + + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + */ + @Import(name="runtimeTypeVersion") + private @Nullable Output runtimeTypeVersion; + + /** + * @return The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + */ + public Optional> runtimeTypeVersion() { + return Optional.ofNullable(this.runtimeTypeVersion); + } + /** * The monitor status (ENABLED or DISABLED). * @@ -197,6 +231,8 @@ private StepMonitorState(StepMonitorState $) { this.name = $.name; this.period = $.period; this.periodInMinutes = $.periodInMinutes; + this.runtimeType = $.runtimeType; + this.runtimeTypeVersion = $.runtimeTypeVersion; this.status = $.status; this.steps = $.steps; this.tags = $.tags; @@ -408,6 +444,52 @@ public Builder periodInMinutes(Integer periodInMinutes) { return periodInMinutes(Output.of(periodInMinutes)); } + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(@Nullable Output runtimeType) { + $.runtimeType = runtimeType; + return this; + } + + /** + * @param runtimeType The runtime that the monitor will use to run jobs. + * + * @return builder + * + */ + public Builder runtimeType(String runtimeType) { + return runtimeType(Output.of(runtimeType)); + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(@Nullable Output runtimeTypeVersion) { + $.runtimeTypeVersion = runtimeTypeVersion; + return this; + } + + /** + * @param runtimeTypeVersion The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + * + * @return builder + * + */ + public Builder runtimeTypeVersion(String runtimeTypeVersion) { + return runtimeTypeVersion(Output.of(runtimeTypeVersion)); + } + /** * @param status The monitor status (ENABLED or DISABLED). * diff --git a/sdk/nodejs/browserApplication.ts b/sdk/nodejs/browserApplication.ts index 7c3979b5..d3e896b1 100644 --- a/sdk/nodejs/browserApplication.ts +++ b/sdk/nodejs/browserApplication.ts @@ -5,27 +5,9 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** - * Use this resource to create, update, and delete a standalone New Relic browser application. - * - * ## Example Usage - * - * Basic usage to create a standalone browser application. - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as newrelic from "@pulumi/newrelic"; - * - * const foo = new newrelic.BrowserApplication("foo", { - * cookiesEnabled: true, - * distributedTracingEnabled: true, - * loaderType: "SPA", - * }); - * ``` - * - * * ## Import * - * Browser applications can be imported using the GUID of the browser application. + * A browser application can be imported using its GUID, i.e. * * bash * @@ -62,15 +44,19 @@ export class BrowserApplication extends pulumi.CustomResource { } /** - * The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. */ public readonly accountId!: pulumi.Output; /** - * Configure cookies. The default is enabled: true. + * The application ID of the browser application (not to be confused with GUID). + */ + public /*out*/ readonly applicationId!: pulumi.Output; + /** + * Configures cookies. Defaults to `true`, if not specified. */ public readonly cookiesEnabled!: pulumi.Output; /** - * Configure distributed tracing in browser apps. The default is enabled: true. + * Configures distributed tracing in browser apps. Defaults to `true`, if not specified. */ public readonly distributedTracingEnabled!: pulumi.Output; /** @@ -78,11 +64,11 @@ export class BrowserApplication extends pulumi.CustomResource { */ public /*out*/ readonly guid!: pulumi.Output; /** - * JavaScript configuration of the browser application encoded into a string. + * The JavaScript configuration of the browser application, encoded into a string. */ public /*out*/ readonly jsConfig!: pulumi.Output; /** - * Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. */ public readonly loaderType!: pulumi.Output; /** @@ -104,6 +90,7 @@ export class BrowserApplication extends pulumi.CustomResource { if (opts.id) { const state = argsOrState as BrowserApplicationState | undefined; resourceInputs["accountId"] = state ? state.accountId : undefined; + resourceInputs["applicationId"] = state ? state.applicationId : undefined; resourceInputs["cookiesEnabled"] = state ? state.cookiesEnabled : undefined; resourceInputs["distributedTracingEnabled"] = state ? state.distributedTracingEnabled : undefined; resourceInputs["guid"] = state ? state.guid : undefined; @@ -117,6 +104,7 @@ export class BrowserApplication extends pulumi.CustomResource { resourceInputs["distributedTracingEnabled"] = args ? args.distributedTracingEnabled : undefined; resourceInputs["loaderType"] = args ? args.loaderType : undefined; resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["applicationId"] = undefined /*out*/; resourceInputs["guid"] = undefined /*out*/; resourceInputs["jsConfig"] = undefined /*out*/; } @@ -130,15 +118,19 @@ export class BrowserApplication extends pulumi.CustomResource { */ export interface BrowserApplicationState { /** - * The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. */ accountId?: pulumi.Input; /** - * Configure cookies. The default is enabled: true. + * The application ID of the browser application (not to be confused with GUID). + */ + applicationId?: pulumi.Input; + /** + * Configures cookies. Defaults to `true`, if not specified. */ cookiesEnabled?: pulumi.Input; /** - * Configure distributed tracing in browser apps. The default is enabled: true. + * Configures distributed tracing in browser apps. Defaults to `true`, if not specified. */ distributedTracingEnabled?: pulumi.Input; /** @@ -146,11 +138,11 @@ export interface BrowserApplicationState { */ guid?: pulumi.Input; /** - * JavaScript configuration of the browser application encoded into a string. + * The JavaScript configuration of the browser application, encoded into a string. */ jsConfig?: pulumi.Input; /** - * Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. */ loaderType?: pulumi.Input; /** @@ -164,19 +156,19 @@ export interface BrowserApplicationState { */ export interface BrowserApplicationArgs { /** - * The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + * The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. */ accountId?: pulumi.Input; /** - * Configure cookies. The default is enabled: true. + * Configures cookies. Defaults to `true`, if not specified. */ cookiesEnabled?: pulumi.Input; /** - * Configure distributed tracing in browser apps. The default is enabled: true. + * Configures distributed tracing in browser apps. Defaults to `true`, if not specified. */ distributedTracingEnabled?: pulumi.Input; /** - * Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + * Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. */ loaderType?: pulumi.Input; /** diff --git a/sdk/nodejs/synthetics/brokenLinksMonitor.ts b/sdk/nodejs/synthetics/brokenLinksMonitor.ts index fd047271..5cdc77cd 100644 --- a/sdk/nodejs/synthetics/brokenLinksMonitor.ts +++ b/sdk/nodejs/synthetics/brokenLinksMonitor.ts @@ -16,9 +16,11 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * - * const monitor = new newrelic.synthetics.BrokenLinksMonitor("monitor", { + * const foo = new newrelic.synthetics.BrokenLinksMonitor("foo", { * locationsPublics: ["AP_SOUTH_1"], * period: "EVERY_6_HOURS", + * runtimeType: "NODE_API", + * runtimeTypeVersion: "16.10", * status: "ENABLED", * tags: [{ * key: "some_key", @@ -43,13 +45,13 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * - * const location = new newrelic.synthetics.PrivateLocation("location", { - * description: "Test Description", + * const fooPrivateLocation = new newrelic.synthetics.PrivateLocation("fooPrivateLocation", { + * description: "Sample Private Location Description", * verifiedScriptExecution: false, * }); - * const monitor = new newrelic.synthetics.BrokenLinksMonitor("monitor", { + * const fooBrokenLinksMonitor = new newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor", { * uri: "https://www.one.example.com", - * locationsPrivates: [location.id], + * locationsPrivates: [fooPrivateLocation.id], * period: "EVERY_6_HOURS", * status: "ENABLED", * tags: [{ @@ -62,7 +64,7 @@ import * as utilities from "../utilities"; * * ## Import * - * Synthetics broken links monitor scripts can be imported using the `guid`, e.g. + * A broken links monitor can be imported using its GUID, using the following command. * * bash * @@ -126,6 +128,16 @@ export class BrokenLinksMonitor extends pulumi.CustomResource { * The interval in minutes at which Synthetic monitor should run. */ public /*out*/ readonly periodInMinutes!: pulumi.Output; + /** + * The runtime that the monitor will use to run jobs. + */ + public readonly runtimeType!: pulumi.Output; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + public readonly runtimeTypeVersion!: pulumi.Output; /** * The monitor status (ENABLED or DISABLED). */ @@ -159,6 +171,8 @@ export class BrokenLinksMonitor extends pulumi.CustomResource { resourceInputs["name"] = state ? state.name : undefined; resourceInputs["period"] = state ? state.period : undefined; resourceInputs["periodInMinutes"] = state ? state.periodInMinutes : undefined; + resourceInputs["runtimeType"] = state ? state.runtimeType : undefined; + resourceInputs["runtimeTypeVersion"] = state ? state.runtimeTypeVersion : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["uri"] = state ? state.uri : undefined; @@ -178,6 +192,8 @@ export class BrokenLinksMonitor extends pulumi.CustomResource { resourceInputs["locationsPublics"] = args ? args.locationsPublics : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["period"] = args ? args.period : undefined; + resourceInputs["runtimeType"] = args ? args.runtimeType : undefined; + resourceInputs["runtimeTypeVersion"] = args ? args.runtimeTypeVersion : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["uri"] = args ? args.uri : undefined; @@ -221,6 +237,16 @@ export interface BrokenLinksMonitorState { * The interval in minutes at which Synthetic monitor should run. */ periodInMinutes?: pulumi.Input; + /** + * The runtime that the monitor will use to run jobs. + */ + runtimeType?: pulumi.Input; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + runtimeTypeVersion?: pulumi.Input; /** * The monitor status (ENABLED or DISABLED). */ @@ -259,6 +285,16 @@ export interface BrokenLinksMonitorArgs { * 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. */ period: pulumi.Input; + /** + * The runtime that the monitor will use to run jobs. + */ + runtimeType?: pulumi.Input; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + runtimeTypeVersion?: pulumi.Input; /** * The monitor status (ENABLED or DISABLED). */ diff --git a/sdk/nodejs/synthetics/certCheckMonitor.ts b/sdk/nodejs/synthetics/certCheckMonitor.ts index 20deab68..5129858b 100644 --- a/sdk/nodejs/synthetics/certCheckMonitor.ts +++ b/sdk/nodejs/synthetics/certCheckMonitor.ts @@ -16,11 +16,13 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * - * const cert_check_monitor = new newrelic.synthetics.CertCheckMonitor("cert-check-monitor", { + * const foo = new newrelic.synthetics.CertCheckMonitor("foo", { * certificateExpiration: 10, * domain: "www.example.com", * locationsPublics: ["AP_SOUTH_1"], * period: "EVERY_6_HOURS", + * runtimeType: "NODE_API", + * runtimeTypeVersion: "16.10", * status: "ENABLED", * tags: [{ * key: "some_key", @@ -44,13 +46,14 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * - * const location = new newrelic.synthetics.PrivateLocation("location", { - * description: "Test Description", + * const fooPrivateLocation = new newrelic.synthetics.PrivateLocation("fooPrivateLocation", { + * description: "Sample Private Location Description", * verifiedScriptExecution: false, * }); - * const monitor = new newrelic.synthetics.CertCheckMonitor("monitor", { - * domain: "https://www.one.example.com", - * locationsPrivates: [location.id], + * const fooCertCheckMonitor = new newrelic.synthetics.CertCheckMonitor("fooCertCheckMonitor", { + * domain: "www.one.example.com", + * locationsPrivates: [fooPrivateLocation.id], + * certificateExpiration: 10, * period: "EVERY_6_HOURS", * status: "ENABLED", * tags: [{ @@ -63,7 +66,7 @@ import * as utilities from "../utilities"; * * ## Import * - * Synthetics certificate check monitor scripts can be imported using the `guid`, e.g. + * A cert check monitor can be imported using its GUID, using the following command. * * bash * @@ -131,6 +134,16 @@ export class CertCheckMonitor extends pulumi.CustomResource { * The interval in minutes at which Synthetic monitor should run. */ public /*out*/ readonly periodInMinutes!: pulumi.Output; + /** + * The runtime that the monitor will use to run jobs. + */ + public readonly runtimeType!: pulumi.Output; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + public readonly runtimeTypeVersion!: pulumi.Output; /** * The monitor status (ENABLED or DISABLED). */ @@ -161,6 +174,8 @@ export class CertCheckMonitor extends pulumi.CustomResource { resourceInputs["name"] = state ? state.name : undefined; resourceInputs["period"] = state ? state.period : undefined; resourceInputs["periodInMinutes"] = state ? state.periodInMinutes : undefined; + resourceInputs["runtimeType"] = state ? state.runtimeType : undefined; + resourceInputs["runtimeTypeVersion"] = state ? state.runtimeTypeVersion : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["tags"] = state ? state.tags : undefined; } else { @@ -184,6 +199,8 @@ export class CertCheckMonitor extends pulumi.CustomResource { resourceInputs["locationsPublics"] = args ? args.locationsPublics : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["period"] = args ? args.period : undefined; + resourceInputs["runtimeType"] = args ? args.runtimeType : undefined; + resourceInputs["runtimeTypeVersion"] = args ? args.runtimeTypeVersion : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["periodInMinutes"] = undefined /*out*/; @@ -229,6 +246,16 @@ export interface CertCheckMonitorState { * The interval in minutes at which Synthetic monitor should run. */ periodInMinutes?: pulumi.Input; + /** + * The runtime that the monitor will use to run jobs. + */ + runtimeType?: pulumi.Input; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + runtimeTypeVersion?: pulumi.Input; /** * The monitor status (ENABLED or DISABLED). */ @@ -271,6 +298,16 @@ export interface CertCheckMonitorArgs { * 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. */ period: pulumi.Input; + /** + * The runtime that the monitor will use to run jobs. + */ + runtimeType?: pulumi.Input; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + runtimeTypeVersion?: pulumi.Input; /** * The monitor status (ENABLED or DISABLED). */ diff --git a/sdk/nodejs/synthetics/stepMonitor.ts b/sdk/nodejs/synthetics/stepMonitor.ts index 47b71021..2d595a98 100644 --- a/sdk/nodejs/synthetics/stepMonitor.ts +++ b/sdk/nodejs/synthetics/stepMonitor.ts @@ -16,13 +16,15 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * - * const monitor = new newrelic.synthetics.StepMonitor("monitor", { + * const foo = new newrelic.synthetics.StepMonitor("foo", { * enableScreenshotOnFailureAndScript: true, * locationsPublics: [ * "US_EAST_1", * "US_EAST_2", * ], * period: "EVERY_6_HOURS", + * runtimeType: "CHROME_BROWSER", + * runtimeTypeVersion: "100", * status: "ENABLED", * steps: [{ * ordinal: 0, @@ -40,9 +42,44 @@ import * as utilities from "../utilities"; * * ## 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. + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as newrelic from "@pulumi/newrelic"; + * + * const fooPrivateLocation = new newrelic.synthetics.PrivateLocation("fooPrivateLocation", { + * description: "Sample Private Location Description", + * verifiedScriptExecution: true, + * }); + * const fooStepMonitor = new newrelic.synthetics.StepMonitor("fooStepMonitor", { + * period: "EVERY_6_HOURS", + * status: "ENABLED", + * locationPrivates: [{ + * guid: fooPrivateLocation.id, + * vsePassword: "secret", + * }], + * steps: [{ + * ordinal: 0, + * type: "NAVIGATE", + * values: ["https://google.com"], + * }], + * tags: [{ + * key: "some_key", + * values: ["some_value"], + * }], + * }); + * ``` + * + * * ## Import * - * Synthetics step monitor scripts can be imported using the `guid`, e.g. + * A step monitor can be imported using its GUID, using the following command. * * bash * @@ -110,6 +147,16 @@ export class StepMonitor extends pulumi.CustomResource { * The interval in minutes at which Synthetic monitor should run. */ public /*out*/ readonly periodInMinutes!: pulumi.Output; + /** + * The runtime that the monitor will use to run jobs. + */ + public readonly runtimeType!: pulumi.Output; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + public readonly runtimeTypeVersion!: pulumi.Output; /** * The monitor status (ENABLED or DISABLED). */ @@ -144,6 +191,8 @@ export class StepMonitor extends pulumi.CustomResource { resourceInputs["name"] = state ? state.name : undefined; resourceInputs["period"] = state ? state.period : undefined; resourceInputs["periodInMinutes"] = state ? state.periodInMinutes : undefined; + resourceInputs["runtimeType"] = state ? state.runtimeType : undefined; + resourceInputs["runtimeTypeVersion"] = state ? state.runtimeTypeVersion : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["steps"] = state ? state.steps : undefined; resourceInputs["tags"] = state ? state.tags : undefined; @@ -164,6 +213,8 @@ export class StepMonitor extends pulumi.CustomResource { resourceInputs["locationsPublics"] = args ? args.locationsPublics : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["period"] = args ? args.period : undefined; + resourceInputs["runtimeType"] = args ? args.runtimeType : undefined; + resourceInputs["runtimeTypeVersion"] = args ? args.runtimeTypeVersion : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["steps"] = args ? args.steps : undefined; resourceInputs["tags"] = args ? args.tags : undefined; @@ -211,6 +262,16 @@ export interface StepMonitorState { * The interval in minutes at which Synthetic monitor should run. */ periodInMinutes?: pulumi.Input; + /** + * The runtime that the monitor will use to run jobs. + */ + runtimeType?: pulumi.Input; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + runtimeTypeVersion?: pulumi.Input; /** * The monitor status (ENABLED or DISABLED). */ @@ -253,6 +314,16 @@ export interface StepMonitorArgs { * 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. */ period: pulumi.Input; + /** + * The runtime that the monitor will use to run jobs. + */ + runtimeType?: pulumi.Input; + /** + * The specific version of the runtime type selected. + * + * > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` 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. + */ + runtimeTypeVersion?: pulumi.Input; /** * The monitor status (ENABLED or DISABLED). */ diff --git a/sdk/python/pulumi_newrelic/browser_application.py b/sdk/python/pulumi_newrelic/browser_application.py index a26c27b2..46a34946 100644 --- a/sdk/python/pulumi_newrelic/browser_application.py +++ b/sdk/python/pulumi_newrelic/browser_application.py @@ -21,10 +21,10 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a BrowserApplication resource. - :param pulumi.Input[int] account_id: The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. - :param pulumi.Input[bool] cookies_enabled: Configure cookies. The default is enabled: true. - :param pulumi.Input[bool] distributed_tracing_enabled: Configure distributed tracing in browser apps. The default is enabled: true. - :param pulumi.Input[str] loader_type: Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + :param pulumi.Input[int] account_id: The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. + :param pulumi.Input[bool] cookies_enabled: Configures cookies. Defaults to `true`, if not specified. + :param pulumi.Input[bool] distributed_tracing_enabled: Configures distributed tracing in browser apps. Defaults to `true`, if not specified. + :param pulumi.Input[str] loader_type: Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. :param pulumi.Input[str] name: The name of the browser application. """ if account_id is not None: @@ -42,7 +42,7 @@ def __init__(__self__, *, @pulumi.getter(name="accountId") def account_id(self) -> Optional[pulumi.Input[int]]: """ - The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. """ return pulumi.get(self, "account_id") @@ -54,7 +54,7 @@ def account_id(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="cookiesEnabled") def cookies_enabled(self) -> Optional[pulumi.Input[bool]]: """ - Configure cookies. The default is enabled: true. + Configures cookies. Defaults to `true`, if not specified. """ return pulumi.get(self, "cookies_enabled") @@ -66,7 +66,7 @@ def cookies_enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="distributedTracingEnabled") def distributed_tracing_enabled(self) -> Optional[pulumi.Input[bool]]: """ - Configure distributed tracing in browser apps. The default is enabled: true. + Configures distributed tracing in browser apps. Defaults to `true`, if not specified. """ return pulumi.get(self, "distributed_tracing_enabled") @@ -78,7 +78,7 @@ def distributed_tracing_enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="loaderType") def loader_type(self) -> Optional[pulumi.Input[str]]: """ - Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. """ return pulumi.get(self, "loader_type") @@ -103,6 +103,7 @@ def name(self, value: Optional[pulumi.Input[str]]): class _BrowserApplicationState: def __init__(__self__, *, account_id: Optional[pulumi.Input[int]] = None, + application_id: Optional[pulumi.Input[str]] = None, cookies_enabled: Optional[pulumi.Input[bool]] = None, distributed_tracing_enabled: Optional[pulumi.Input[bool]] = None, guid: Optional[pulumi.Input[str]] = None, @@ -111,16 +112,19 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering BrowserApplication resources. - :param pulumi.Input[int] account_id: The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. - :param pulumi.Input[bool] cookies_enabled: Configure cookies. The default is enabled: true. - :param pulumi.Input[bool] distributed_tracing_enabled: Configure distributed tracing in browser apps. The default is enabled: true. + :param pulumi.Input[int] account_id: The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. + :param pulumi.Input[str] application_id: The application ID of the browser application (not to be confused with GUID). + :param pulumi.Input[bool] cookies_enabled: Configures cookies. Defaults to `true`, if not specified. + :param pulumi.Input[bool] distributed_tracing_enabled: Configures distributed tracing in browser apps. Defaults to `true`, if not specified. :param pulumi.Input[str] guid: The GUID of the browser application. - :param pulumi.Input[str] js_config: JavaScript configuration of the browser application encoded into a string. - :param pulumi.Input[str] loader_type: Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + :param pulumi.Input[str] js_config: The JavaScript configuration of the browser application, encoded into a string. + :param pulumi.Input[str] loader_type: Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. :param pulumi.Input[str] name: The name of the browser application. """ if account_id is not None: pulumi.set(__self__, "account_id", account_id) + if application_id is not None: + pulumi.set(__self__, "application_id", application_id) if cookies_enabled is not None: pulumi.set(__self__, "cookies_enabled", cookies_enabled) if distributed_tracing_enabled is not None: @@ -138,7 +142,7 @@ def __init__(__self__, *, @pulumi.getter(name="accountId") def account_id(self) -> Optional[pulumi.Input[int]]: """ - The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. """ return pulumi.get(self, "account_id") @@ -146,11 +150,23 @@ def account_id(self) -> Optional[pulumi.Input[int]]: def account_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "account_id", value) + @property + @pulumi.getter(name="applicationId") + def application_id(self) -> Optional[pulumi.Input[str]]: + """ + The application ID of the browser application (not to be confused with GUID). + """ + return pulumi.get(self, "application_id") + + @application_id.setter + def application_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "application_id", value) + @property @pulumi.getter(name="cookiesEnabled") def cookies_enabled(self) -> Optional[pulumi.Input[bool]]: """ - Configure cookies. The default is enabled: true. + Configures cookies. Defaults to `true`, if not specified. """ return pulumi.get(self, "cookies_enabled") @@ -162,7 +178,7 @@ def cookies_enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="distributedTracingEnabled") def distributed_tracing_enabled(self) -> Optional[pulumi.Input[bool]]: """ - Configure distributed tracing in browser apps. The default is enabled: true. + Configures distributed tracing in browser apps. Defaults to `true`, if not specified. """ return pulumi.get(self, "distributed_tracing_enabled") @@ -186,7 +202,7 @@ def guid(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="jsConfig") def js_config(self) -> Optional[pulumi.Input[str]]: """ - JavaScript configuration of the browser application encoded into a string. + The JavaScript configuration of the browser application, encoded into a string. """ return pulumi.get(self, "js_config") @@ -198,7 +214,7 @@ def js_config(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="loaderType") def loader_type(self) -> Optional[pulumi.Input[str]]: """ - Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. """ return pulumi.get(self, "loader_type") @@ -231,26 +247,9 @@ def __init__(__self__, name: Optional[pulumi.Input[str]] = None, __props__=None): """ - Use this resource to create, update, and delete a standalone New Relic browser application. - - ## Example Usage - - Basic usage to create a standalone browser application. - - ```python - import pulumi - import pulumi_newrelic as newrelic - - foo = newrelic.BrowserApplication("foo", - cookies_enabled=True, - distributed_tracing_enabled=True, - loader_type="SPA") - ``` - - ## Import - Browser applications can be imported using the GUID of the browser application. + A browser application can be imported using its GUID, i.e. bash @@ -260,10 +259,10 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[int] account_id: The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. - :param pulumi.Input[bool] cookies_enabled: Configure cookies. The default is enabled: true. - :param pulumi.Input[bool] distributed_tracing_enabled: Configure distributed tracing in browser apps. The default is enabled: true. - :param pulumi.Input[str] loader_type: Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + :param pulumi.Input[int] account_id: The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. + :param pulumi.Input[bool] cookies_enabled: Configures cookies. Defaults to `true`, if not specified. + :param pulumi.Input[bool] distributed_tracing_enabled: Configures distributed tracing in browser apps. Defaults to `true`, if not specified. + :param pulumi.Input[str] loader_type: Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. :param pulumi.Input[str] name: The name of the browser application. """ ... @@ -273,26 +272,9 @@ def __init__(__self__, args: Optional[BrowserApplicationArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ - Use this resource to create, update, and delete a standalone New Relic browser application. - - ## Example Usage - - Basic usage to create a standalone browser application. - - ```python - import pulumi - import pulumi_newrelic as newrelic - - foo = newrelic.BrowserApplication("foo", - cookies_enabled=True, - distributed_tracing_enabled=True, - loader_type="SPA") - ``` - - ## Import - Browser applications can be imported using the GUID of the browser application. + A browser application can be imported using its GUID, i.e. bash @@ -334,6 +316,7 @@ def _internal_init(__self__, __props__.__dict__["distributed_tracing_enabled"] = distributed_tracing_enabled __props__.__dict__["loader_type"] = loader_type __props__.__dict__["name"] = name + __props__.__dict__["application_id"] = None __props__.__dict__["guid"] = None __props__.__dict__["js_config"] = None super(BrowserApplication, __self__).__init__( @@ -347,6 +330,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, account_id: Optional[pulumi.Input[int]] = None, + application_id: Optional[pulumi.Input[str]] = None, cookies_enabled: Optional[pulumi.Input[bool]] = None, distributed_tracing_enabled: Optional[pulumi.Input[bool]] = None, guid: Optional[pulumi.Input[str]] = None, @@ -360,12 +344,13 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[int] account_id: The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. - :param pulumi.Input[bool] cookies_enabled: Configure cookies. The default is enabled: true. - :param pulumi.Input[bool] distributed_tracing_enabled: Configure distributed tracing in browser apps. The default is enabled: true. + :param pulumi.Input[int] account_id: The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. + :param pulumi.Input[str] application_id: The application ID of the browser application (not to be confused with GUID). + :param pulumi.Input[bool] cookies_enabled: Configures cookies. Defaults to `true`, if not specified. + :param pulumi.Input[bool] distributed_tracing_enabled: Configures distributed tracing in browser apps. Defaults to `true`, if not specified. :param pulumi.Input[str] guid: The GUID of the browser application. - :param pulumi.Input[str] js_config: JavaScript configuration of the browser application encoded into a string. - :param pulumi.Input[str] loader_type: Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + :param pulumi.Input[str] js_config: The JavaScript configuration of the browser application, encoded into a string. + :param pulumi.Input[str] loader_type: Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. :param pulumi.Input[str] name: The name of the browser application. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -373,6 +358,7 @@ def get(resource_name: str, __props__ = _BrowserApplicationState.__new__(_BrowserApplicationState) __props__.__dict__["account_id"] = account_id + __props__.__dict__["application_id"] = application_id __props__.__dict__["cookies_enabled"] = cookies_enabled __props__.__dict__["distributed_tracing_enabled"] = distributed_tracing_enabled __props__.__dict__["guid"] = guid @@ -385,15 +371,23 @@ def get(resource_name: str, @pulumi.getter(name="accountId") def account_id(self) -> pulumi.Output[int]: """ - The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. + The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` if not specified. """ return pulumi.get(self, "account_id") + @property + @pulumi.getter(name="applicationId") + def application_id(self) -> pulumi.Output[str]: + """ + The application ID of the browser application (not to be confused with GUID). + """ + return pulumi.get(self, "application_id") + @property @pulumi.getter(name="cookiesEnabled") def cookies_enabled(self) -> pulumi.Output[Optional[bool]]: """ - Configure cookies. The default is enabled: true. + Configures cookies. Defaults to `true`, if not specified. """ return pulumi.get(self, "cookies_enabled") @@ -401,7 +395,7 @@ def cookies_enabled(self) -> pulumi.Output[Optional[bool]]: @pulumi.getter(name="distributedTracingEnabled") def distributed_tracing_enabled(self) -> pulumi.Output[Optional[bool]]: """ - Configure distributed tracing in browser apps. The default is enabled: true. + Configures distributed tracing in browser apps. Defaults to `true`, if not specified. """ return pulumi.get(self, "distributed_tracing_enabled") @@ -417,7 +411,7 @@ def guid(self) -> pulumi.Output[str]: @pulumi.getter(name="jsConfig") def js_config(self) -> pulumi.Output[str]: """ - JavaScript configuration of the browser application encoded into a string. + The JavaScript configuration of the browser application, encoded into a string. """ return pulumi.get(self, "js_config") @@ -425,7 +419,7 @@ def js_config(self) -> pulumi.Output[str]: @pulumi.getter(name="loaderType") def loader_type(self) -> pulumi.Output[Optional[str]]: """ - Determines which browser loader is configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. See the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for a for information on the valid loader types. + Determines the browser loader configured. Valid values are `SPA`, `PRO`, and `LITE`. The default is `SPA`. Refer to the [browser agent loader documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for more information on valid loader types. """ return pulumi.get(self, "loader_type") diff --git a/sdk/python/pulumi_newrelic/synthetics/broken_links_monitor.py b/sdk/python/pulumi_newrelic/synthetics/broken_links_monitor.py index 5a647fab..154c33b1 100644 --- a/sdk/python/pulumi_newrelic/synthetics/broken_links_monitor.py +++ b/sdk/python/pulumi_newrelic/synthetics/broken_links_monitor.py @@ -23,6 +23,8 @@ def __init__(__self__, *, locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]] = None): """ The set of arguments for constructing a BrokenLinksMonitor resource. @@ -33,6 +35,10 @@ def __init__(__self__, *, :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. :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. :param pulumi.Input[str] name: The name for the monitor. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **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. :param pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details """ pulumi.set(__self__, "period", period) @@ -46,6 +52,10 @@ def __init__(__self__, *, pulumi.set(__self__, "locations_publics", locations_publics) if name is not None: pulumi.set(__self__, "name", name) + if runtime_type is not None: + pulumi.set(__self__, "runtime_type", runtime_type) + if runtime_type_version is not None: + pulumi.set(__self__, "runtime_type_version", runtime_type_version) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -133,6 +143,32 @@ def name(self) -> Optional[pulumi.Input[str]]: def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> Optional[pulumi.Input[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @runtime_type.setter + def runtime_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type", value) + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> Optional[pulumi.Input[str]]: + """ + The specific version of the runtime type selected. + + > **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. + """ + return pulumi.get(self, "runtime_type_version") + + @runtime_type_version.setter + def runtime_type_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type_version", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]]: @@ -156,6 +192,8 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, period_in_minutes: Optional[pulumi.Input[int]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]]] = None, uri: Optional[pulumi.Input[str]] = None): @@ -168,6 +206,10 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The name for the monitor. :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. :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :param pulumi.Input[Sequence[pulumi.Input['BrokenLinksMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details :param pulumi.Input[str] uri: The URI the monitor runs against. @@ -186,6 +228,10 @@ def __init__(__self__, *, pulumi.set(__self__, "period", period) if period_in_minutes is not None: pulumi.set(__self__, "period_in_minutes", period_in_minutes) + if runtime_type is not None: + pulumi.set(__self__, "runtime_type", runtime_type) + if runtime_type_version is not None: + pulumi.set(__self__, "runtime_type_version", runtime_type_version) if status is not None: pulumi.set(__self__, "status", status) if tags is not None: @@ -277,6 +323,32 @@ def period_in_minutes(self) -> Optional[pulumi.Input[int]]: def period_in_minutes(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "period_in_minutes", value) + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> Optional[pulumi.Input[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @runtime_type.setter + def runtime_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type", value) + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> Optional[pulumi.Input[str]]: + """ + The specific version of the runtime type selected. + + > **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. + """ + return pulumi.get(self, "runtime_type_version") + + @runtime_type_version.setter + def runtime_type_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type_version", value) + @property @pulumi.getter def status(self) -> Optional[pulumi.Input[str]]: @@ -324,6 +396,8 @@ def __init__(__self__, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None, uri: Optional[pulumi.Input[str]] = None, @@ -338,9 +412,11 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - monitor = newrelic.synthetics.BrokenLinksMonitor("monitor", + foo = newrelic.synthetics.BrokenLinksMonitor("foo", locations_publics=["AP_SOUTH_1"], period="EVERY_6_HOURS", + runtime_type="NODE_API", + runtime_type_version="16.10", status="ENABLED", tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs( key="some_key", @@ -364,12 +440,12 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - location = newrelic.synthetics.PrivateLocation("location", - description="Test Description", + foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation", + description="Sample Private Location Description", verified_script_execution=False) - monitor = newrelic.synthetics.BrokenLinksMonitor("monitor", + foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor", uri="https://www.one.example.com", - locations_privates=[location.id], + locations_privates=[foo_private_location.id], period="EVERY_6_HOURS", status="ENABLED", tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs( @@ -381,7 +457,7 @@ def __init__(__self__, ## Import - Synthetics broken links monitor scripts can be imported using the `guid`, e.g. + A broken links monitor can be imported using its GUID, using the following command. bash @@ -396,6 +472,10 @@ def __init__(__self__, :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. :param pulumi.Input[str] name: The name for the monitor. :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. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :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 :param pulumi.Input[str] uri: The URI the monitor runs against. @@ -416,9 +496,11 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - monitor = newrelic.synthetics.BrokenLinksMonitor("monitor", + foo = newrelic.synthetics.BrokenLinksMonitor("foo", locations_publics=["AP_SOUTH_1"], period="EVERY_6_HOURS", + runtime_type="NODE_API", + runtime_type_version="16.10", status="ENABLED", tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs( key="some_key", @@ -442,12 +524,12 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - location = newrelic.synthetics.PrivateLocation("location", - description="Test Description", + foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation", + description="Sample Private Location Description", verified_script_execution=False) - monitor = newrelic.synthetics.BrokenLinksMonitor("monitor", + foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("fooBrokenLinksMonitor", uri="https://www.one.example.com", - locations_privates=[location.id], + locations_privates=[foo_private_location.id], period="EVERY_6_HOURS", status="ENABLED", tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs( @@ -459,7 +541,7 @@ def __init__(__self__, ## Import - Synthetics broken links monitor scripts can be imported using the `guid`, e.g. + A broken links monitor can be imported using its GUID, using the following command. bash @@ -487,6 +569,8 @@ def _internal_init(__self__, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None, uri: Optional[pulumi.Input[str]] = None, @@ -506,6 +590,8 @@ def _internal_init(__self__, if period is None and not opts.urn: raise TypeError("Missing required property 'period'") __props__.__dict__["period"] = period + __props__.__dict__["runtime_type"] = runtime_type + __props__.__dict__["runtime_type_version"] = runtime_type_version if status is None and not opts.urn: raise TypeError("Missing required property 'status'") __props__.__dict__["status"] = status @@ -532,6 +618,8 @@ def get(resource_name: str, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, period_in_minutes: Optional[pulumi.Input[int]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BrokenLinksMonitorTagArgs']]]]] = None, uri: Optional[pulumi.Input[str]] = None) -> 'BrokenLinksMonitor': @@ -549,6 +637,10 @@ def get(resource_name: str, :param pulumi.Input[str] name: The name for the monitor. :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. :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :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 :param pulumi.Input[str] uri: The URI the monitor runs against. @@ -564,6 +656,8 @@ def get(resource_name: str, __props__.__dict__["name"] = name __props__.__dict__["period"] = period __props__.__dict__["period_in_minutes"] = period_in_minutes + __props__.__dict__["runtime_type"] = runtime_type + __props__.__dict__["runtime_type_version"] = runtime_type_version __props__.__dict__["status"] = status __props__.__dict__["tags"] = tags __props__.__dict__["uri"] = uri @@ -625,6 +719,24 @@ def period_in_minutes(self) -> pulumi.Output[int]: """ return pulumi.get(self, "period_in_minutes") + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> pulumi.Output[Optional[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> pulumi.Output[Optional[str]]: + """ + The specific version of the runtime type selected. + + > **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. + """ + return pulumi.get(self, "runtime_type_version") + @property @pulumi.getter def status(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_newrelic/synthetics/cert_check_monitor.py b/sdk/python/pulumi_newrelic/synthetics/cert_check_monitor.py index 62f373cd..47767391 100644 --- a/sdk/python/pulumi_newrelic/synthetics/cert_check_monitor.py +++ b/sdk/python/pulumi_newrelic/synthetics/cert_check_monitor.py @@ -24,6 +24,8 @@ def __init__(__self__, *, locations_privates: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]]] = None): """ The set of arguments for constructing a CertCheckMonitor resource. @@ -35,6 +37,10 @@ def __init__(__self__, *, :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. :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. :param pulumi.Input[str] name: The name for the monitor. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **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. :param pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details """ pulumi.set(__self__, "certificate_expiration", certificate_expiration) @@ -49,6 +55,10 @@ def __init__(__self__, *, pulumi.set(__self__, "locations_publics", locations_publics) if name is not None: pulumi.set(__self__, "name", name) + if runtime_type is not None: + pulumi.set(__self__, "runtime_type", runtime_type) + if runtime_type_version is not None: + pulumi.set(__self__, "runtime_type_version", runtime_type_version) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -148,6 +158,32 @@ def name(self) -> Optional[pulumi.Input[str]]: def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> Optional[pulumi.Input[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @runtime_type.setter + def runtime_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type", value) + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> Optional[pulumi.Input[str]]: + """ + The specific version of the runtime type selected. + + > **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. + """ + return pulumi.get(self, "runtime_type_version") + + @runtime_type_version.setter + def runtime_type_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type_version", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]]]: @@ -172,6 +208,8 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, period_in_minutes: Optional[pulumi.Input[int]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]]] = None): """ @@ -184,6 +222,10 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The name for the monitor. :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. :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :param pulumi.Input[Sequence[pulumi.Input['CertCheckMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details """ @@ -203,6 +245,10 @@ def __init__(__self__, *, pulumi.set(__self__, "period", period) if period_in_minutes is not None: pulumi.set(__self__, "period_in_minutes", period_in_minutes) + if runtime_type is not None: + pulumi.set(__self__, "runtime_type", runtime_type) + if runtime_type_version is not None: + pulumi.set(__self__, "runtime_type_version", runtime_type_version) if status is not None: pulumi.set(__self__, "status", status) if tags is not None: @@ -304,6 +350,32 @@ def period_in_minutes(self) -> Optional[pulumi.Input[int]]: def period_in_minutes(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "period_in_minutes", value) + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> Optional[pulumi.Input[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @runtime_type.setter + def runtime_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type", value) + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> Optional[pulumi.Input[str]]: + """ + The specific version of the runtime type selected. + + > **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. + """ + return pulumi.get(self, "runtime_type_version") + + @runtime_type_version.setter + def runtime_type_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type_version", value) + @property @pulumi.getter def status(self) -> Optional[pulumi.Input[str]]: @@ -341,6 +413,8 @@ def __init__(__self__, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertCheckMonitorTagArgs']]]]] = None, __props__=None): @@ -354,11 +428,13 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - cert_check_monitor = newrelic.synthetics.CertCheckMonitor("cert-check-monitor", + foo = newrelic.synthetics.CertCheckMonitor("foo", certificate_expiration=10, domain="www.example.com", locations_publics=["AP_SOUTH_1"], period="EVERY_6_HOURS", + runtime_type="NODE_API", + runtime_type_version="16.10", status="ENABLED", tags=[newrelic.synthetics.CertCheckMonitorTagArgs( key="some_key", @@ -381,12 +457,13 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - location = newrelic.synthetics.PrivateLocation("location", - description="Test Description", + foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation", + description="Sample Private Location Description", verified_script_execution=False) - monitor = newrelic.synthetics.CertCheckMonitor("monitor", - domain="https://www.one.example.com", - locations_privates=[location.id], + foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("fooCertCheckMonitor", + domain="www.one.example.com", + locations_privates=[foo_private_location.id], + certificate_expiration=10, period="EVERY_6_HOURS", status="ENABLED", tags=[newrelic.synthetics.CertCheckMonitorTagArgs( @@ -398,7 +475,7 @@ def __init__(__self__, ## Import - Synthetics certificate check monitor scripts can be imported using the `guid`, e.g. + A cert check monitor can be imported using its GUID, using the following command. bash @@ -415,6 +492,10 @@ def __init__(__self__, :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. :param pulumi.Input[str] name: The name for the monitor. :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. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :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 """ @@ -434,11 +515,13 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - cert_check_monitor = newrelic.synthetics.CertCheckMonitor("cert-check-monitor", + foo = newrelic.synthetics.CertCheckMonitor("foo", certificate_expiration=10, domain="www.example.com", locations_publics=["AP_SOUTH_1"], period="EVERY_6_HOURS", + runtime_type="NODE_API", + runtime_type_version="16.10", status="ENABLED", tags=[newrelic.synthetics.CertCheckMonitorTagArgs( key="some_key", @@ -461,12 +544,13 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - location = newrelic.synthetics.PrivateLocation("location", - description="Test Description", + foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation", + description="Sample Private Location Description", verified_script_execution=False) - monitor = newrelic.synthetics.CertCheckMonitor("monitor", - domain="https://www.one.example.com", - locations_privates=[location.id], + foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("fooCertCheckMonitor", + domain="www.one.example.com", + locations_privates=[foo_private_location.id], + certificate_expiration=10, period="EVERY_6_HOURS", status="ENABLED", tags=[newrelic.synthetics.CertCheckMonitorTagArgs( @@ -478,7 +562,7 @@ def __init__(__self__, ## Import - Synthetics certificate check monitor scripts can be imported using the `guid`, e.g. + A cert check monitor can be imported using its GUID, using the following command. bash @@ -508,6 +592,8 @@ def _internal_init(__self__, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertCheckMonitorTagArgs']]]]] = None, __props__=None): @@ -532,6 +618,8 @@ def _internal_init(__self__, if period is None and not opts.urn: raise TypeError("Missing required property 'period'") __props__.__dict__["period"] = period + __props__.__dict__["runtime_type"] = runtime_type + __props__.__dict__["runtime_type_version"] = runtime_type_version if status is None and not opts.urn: raise TypeError("Missing required property 'status'") __props__.__dict__["status"] = status @@ -555,6 +643,8 @@ def get(resource_name: str, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, period_in_minutes: Optional[pulumi.Input[int]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertCheckMonitorTagArgs']]]]] = None) -> 'CertCheckMonitor': """ @@ -572,6 +662,10 @@ def get(resource_name: str, :param pulumi.Input[str] name: The name for the monitor. :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. :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :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 """ @@ -587,6 +681,8 @@ def get(resource_name: str, __props__.__dict__["name"] = name __props__.__dict__["period"] = period __props__.__dict__["period_in_minutes"] = period_in_minutes + __props__.__dict__["runtime_type"] = runtime_type + __props__.__dict__["runtime_type_version"] = runtime_type_version __props__.__dict__["status"] = status __props__.__dict__["tags"] = tags return CertCheckMonitor(resource_name, opts=opts, __props__=__props__) @@ -655,6 +751,24 @@ def period_in_minutes(self) -> pulumi.Output[int]: """ return pulumi.get(self, "period_in_minutes") + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> pulumi.Output[Optional[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> pulumi.Output[Optional[str]]: + """ + The specific version of the runtime type selected. + + > **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. + """ + return pulumi.get(self, "runtime_type_version") + @property @pulumi.getter def status(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_newrelic/synthetics/step_monitor.py b/sdk/python/pulumi_newrelic/synthetics/step_monitor.py index 533bdd00..fa4b3a63 100644 --- a/sdk/python/pulumi_newrelic/synthetics/step_monitor.py +++ b/sdk/python/pulumi_newrelic/synthetics/step_monitor.py @@ -24,6 +24,8 @@ def __init__(__self__, *, location_privates: Optional[pulumi.Input[Sequence[pulumi.Input['StepMonitorLocationPrivateArgs']]]] = None, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['StepMonitorTagArgs']]]] = None): """ The set of arguments for constructing a StepMonitor resource. @@ -35,6 +37,10 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input['StepMonitorLocationPrivateArgs']]] location_privates: The location the monitor will run from. At least one of `locations_public` or `location_private` is required. See Nested locations_private blocks below for details. :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. :param pulumi.Input[str] name: The name for the monitor. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. :param pulumi.Input[Sequence[pulumi.Input['StepMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details. """ pulumi.set(__self__, "period", period) @@ -50,6 +56,10 @@ def __init__(__self__, *, pulumi.set(__self__, "locations_publics", locations_publics) if name is not None: pulumi.set(__self__, "name", name) + if runtime_type is not None: + pulumi.set(__self__, "runtime_type", runtime_type) + if runtime_type_version is not None: + pulumi.set(__self__, "runtime_type_version", runtime_type_version) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -149,6 +159,32 @@ def name(self) -> Optional[pulumi.Input[str]]: def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> Optional[pulumi.Input[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @runtime_type.setter + def runtime_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type", value) + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> Optional[pulumi.Input[str]]: + """ + The specific version of the runtime type selected. + + > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + """ + return pulumi.get(self, "runtime_type_version") + + @runtime_type_version.setter + def runtime_type_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type_version", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StepMonitorTagArgs']]]]: @@ -173,6 +209,8 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, period_in_minutes: Optional[pulumi.Input[int]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input['StepMonitorStepArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['StepMonitorTagArgs']]]] = None): @@ -186,6 +224,10 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The name for the monitor. :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. :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :param pulumi.Input[Sequence[pulumi.Input['StepMonitorStepArgs']]] steps: The steps that make up the script the monitor will run. See Nested steps blocks below for details. :param pulumi.Input[Sequence[pulumi.Input['StepMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details. @@ -206,6 +248,10 @@ def __init__(__self__, *, pulumi.set(__self__, "period", period) if period_in_minutes is not None: pulumi.set(__self__, "period_in_minutes", period_in_minutes) + if runtime_type is not None: + pulumi.set(__self__, "runtime_type", runtime_type) + if runtime_type_version is not None: + pulumi.set(__self__, "runtime_type_version", runtime_type_version) if status is not None: pulumi.set(__self__, "status", status) if steps is not None: @@ -309,6 +355,32 @@ def period_in_minutes(self) -> Optional[pulumi.Input[int]]: def period_in_minutes(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "period_in_minutes", value) + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> Optional[pulumi.Input[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @runtime_type.setter + def runtime_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type", value) + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> Optional[pulumi.Input[str]]: + """ + The specific version of the runtime type selected. + + > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + """ + return pulumi.get(self, "runtime_type_version") + + @runtime_type_version.setter + def runtime_type_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "runtime_type_version", value) + @property @pulumi.getter def status(self) -> Optional[pulumi.Input[str]]: @@ -357,6 +429,8 @@ def __init__(__self__, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorStepArgs']]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorTagArgs']]]]] = None, @@ -371,13 +445,15 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - monitor = newrelic.synthetics.StepMonitor("monitor", + foo = newrelic.synthetics.StepMonitor("foo", enable_screenshot_on_failure_and_script=True, locations_publics=[ "US_EAST_1", "US_EAST_2", ], period="EVERY_6_HOURS", + runtime_type="CHROME_BROWSER", + runtime_type_version="100", status="ENABLED", steps=[newrelic.synthetics.StepMonitorStepArgs( ordinal=0, @@ -394,9 +470,42 @@ def __init__(__self__, ## 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. + + + ```python + import pulumi + import pulumi_newrelic as newrelic + + foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation", + description="Sample Private Location Description", + verified_script_execution=True) + foo_step_monitor = newrelic.synthetics.StepMonitor("fooStepMonitor", + period="EVERY_6_HOURS", + status="ENABLED", + location_privates=[newrelic.synthetics.StepMonitorLocationPrivateArgs( + guid=foo_private_location.id, + vse_password="secret", + )], + steps=[newrelic.synthetics.StepMonitorStepArgs( + ordinal=0, + type="NAVIGATE", + values=["https://google.com"], + )], + tags=[newrelic.synthetics.StepMonitorTagArgs( + key="some_key", + values=["some_value"], + )]) + ``` + + ## Import - Synthetics step monitor scripts can be imported using the `guid`, e.g. + A step monitor can be imported using its GUID, using the following command. bash @@ -412,6 +521,10 @@ def __init__(__self__, :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. :param pulumi.Input[str] name: The name for the monitor. :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. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorStepArgs']]]] steps: The steps that make up the script the monitor will run. See Nested steps blocks below for details. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details. @@ -432,13 +545,15 @@ def __init__(__self__, import pulumi import pulumi_newrelic as newrelic - monitor = newrelic.synthetics.StepMonitor("monitor", + foo = newrelic.synthetics.StepMonitor("foo", enable_screenshot_on_failure_and_script=True, locations_publics=[ "US_EAST_1", "US_EAST_2", ], period="EVERY_6_HOURS", + runtime_type="CHROME_BROWSER", + runtime_type_version="100", status="ENABLED", steps=[newrelic.synthetics.StepMonitorStepArgs( ordinal=0, @@ -455,9 +570,42 @@ def __init__(__self__, ## 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. + + + ```python + import pulumi + import pulumi_newrelic as newrelic + + foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation", + description="Sample Private Location Description", + verified_script_execution=True) + foo_step_monitor = newrelic.synthetics.StepMonitor("fooStepMonitor", + period="EVERY_6_HOURS", + status="ENABLED", + location_privates=[newrelic.synthetics.StepMonitorLocationPrivateArgs( + guid=foo_private_location.id, + vse_password="secret", + )], + steps=[newrelic.synthetics.StepMonitorStepArgs( + ordinal=0, + type="NAVIGATE", + values=["https://google.com"], + )], + tags=[newrelic.synthetics.StepMonitorTagArgs( + key="some_key", + values=["some_value"], + )]) + ``` + + ## Import - Synthetics step monitor scripts can be imported using the `guid`, e.g. + A step monitor can be imported using its GUID, using the following command. bash @@ -486,6 +634,8 @@ def _internal_init(__self__, locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorStepArgs']]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorTagArgs']]]]] = None, @@ -506,6 +656,8 @@ def _internal_init(__self__, if period is None and not opts.urn: raise TypeError("Missing required property 'period'") __props__.__dict__["period"] = period + __props__.__dict__["runtime_type"] = runtime_type + __props__.__dict__["runtime_type_version"] = runtime_type_version if status is None and not opts.urn: raise TypeError("Missing required property 'status'") __props__.__dict__["status"] = status @@ -533,6 +685,8 @@ def get(resource_name: str, name: Optional[pulumi.Input[str]] = None, period: Optional[pulumi.Input[str]] = None, period_in_minutes: Optional[pulumi.Input[int]] = None, + runtime_type: Optional[pulumi.Input[str]] = None, + runtime_type_version: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorStepArgs']]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorTagArgs']]]]] = None) -> 'StepMonitor': @@ -551,6 +705,10 @@ def get(resource_name: str, :param pulumi.Input[str] name: The name for the monitor. :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. :param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run. + :param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. + :param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. + + > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. :param pulumi.Input[str] status: The monitor status (ENABLED or DISABLED). :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorStepArgs']]]] steps: The steps that make up the script the monitor will run. See Nested steps blocks below for details. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details. @@ -567,6 +725,8 @@ def get(resource_name: str, __props__.__dict__["name"] = name __props__.__dict__["period"] = period __props__.__dict__["period_in_minutes"] = period_in_minutes + __props__.__dict__["runtime_type"] = runtime_type + __props__.__dict__["runtime_type_version"] = runtime_type_version __props__.__dict__["status"] = status __props__.__dict__["steps"] = steps __props__.__dict__["tags"] = tags @@ -636,6 +796,24 @@ def period_in_minutes(self) -> pulumi.Output[int]: """ return pulumi.get(self, "period_in_minutes") + @property + @pulumi.getter(name="runtimeType") + def runtime_type(self) -> pulumi.Output[Optional[str]]: + """ + The runtime that the monitor will use to run jobs. + """ + return pulumi.get(self, "runtime_type") + + @property + @pulumi.getter(name="runtimeTypeVersion") + def runtime_type_version(self) -> pulumi.Output[Optional[str]]: + """ + The specific version of the runtime type selected. + + > **NOTE:** Currently, the values of `runtime_type` and `runtime_type_version` supported by this resource are `CHROME_BROWSER` and `100` 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. + """ + return pulumi.get(self, "runtime_type_version") + @property @pulumi.getter def status(self) -> pulumi.Output[str]: diff --git a/upstream b/upstream index e6b70e9a..85e069e7 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit e6b70e9a86a1b9cfe08c9137005a8416352b5513 +Subproject commit 85e069e7ade55364f5e8e88fda25723e00a543fd