diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index d33c3a21..51de3305 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.12.0 \ No newline at end of file +0.13.0 \ No newline at end of file diff --git a/provider/cmd/pulumi-resource-newrelic/schema.json b/provider/cmd/pulumi-resource-newrelic/schema.json index 4d173f6d..10154ee8 100644 --- a/provider/cmd/pulumi-resource-newrelic/schema.json +++ b/provider/cmd/pulumi-resource-newrelic/schema.json @@ -5112,7 +5112,7 @@ "newrelic:index/OneDashboardPageWidgetLineThreshold:OneDashboardPageWidgetLineThreshold": { "properties": { "from": { - "type": "number", + "type": "string", "description": "The value 'from' which the threshold would need to be applied.\n" }, "name": { @@ -5124,7 +5124,7 @@ "description": "The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively.\n" }, "to": { - "type": "number", + "type": "string", "description": "The value until which the threshold would need to be applied.\n" } }, @@ -6185,7 +6185,7 @@ "description": "The name of the column in the table, to which the threshold would need to be applied.\n" }, "from": { - "type": "number", + "type": "string", "description": "The value 'from' which the threshold would need to be applied.\n" }, "severity": { @@ -6193,7 +6193,7 @@ "description": "The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively.\n" }, "to": { - "type": "number", + "type": "string", "description": "The value until which the threshold would need to be applied.\n" } }, @@ -6645,7 +6645,7 @@ }, "type": { "type": "string", - "description": "(Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA).\n" + "description": "(Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA).\n" }, "updateOriginalMessage": { "type": "boolean", @@ -11282,7 +11282,7 @@ } }, "newrelic:index/notificationChannel:NotificationChannel": { - "description": "Use this resource to create and manage New Relic notification channels. Details regarding supported products and permissions can be found [here](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/destinations).\n\nA channel is an entity that is used to configure notifications. It is also called a message template. It is a separate entity from workflows, but a channel is required in order to create a workflow.\n\n## Example Usage\n\n##### [Webhook](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#webhook)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"webhook-example\",\n type: \"WEBHOOK\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [{\n key: \"payload\",\n value: \"name: {{ foo }}\",\n label: \"Payload Template\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"webhook-example\",\n type=\"WEBHOOK\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[newrelic.NotificationChannelPropertyArgs(\n key=\"payload\",\n value=\"name: {{ foo }}\",\n label=\"Payload Template\",\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"webhook-example\",\n Type = \"WEBHOOK\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"payload\",\n Value = \"name: {{ foo }}\",\n Label = \"Payload Template\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"webhook-example\"),\n\t\t\tType: pulumi.String(\"WEBHOOK\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"payload\"),\n\t\t\t\t\tValue: pulumi.String(\"name: {{ foo }}\"),\n\t\t\t\t\tLabel: pulumi.String(\"Payload Template\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"webhook-example\")\n .type(\"WEBHOOK\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties(NotificationChannelPropertyArgs.builder()\n .key(\"payload\")\n .value(\"name: {{ foo }}\")\n .label(\"Payload Template\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: webhook-example\n type: WEBHOOK\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: payload\n value: 'name: {{ foo }}'\n label: Payload Template\n```\n\u003c!--End PulumiCodeChooser --\u003e\nSee additional examples.\n\n## Additional Examples\n\n\u003e **NOTE:** We support all properties. The mentioned properties are just an example.\n\n##### [ServiceNow](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenow)\nTo see the properties’ keys for your account, check ServiceNow incidents table.\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.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"servicenow-incident-example\",\n type: \"SERVICENOW_INCIDENTS\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"description\",\n value: \"General description\",\n },\n {\n key: \"short_description\",\n value: \"Short description\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"servicenow-incident-example\",\n type=\"SERVICENOW_INCIDENTS\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"description\",\n value=\"General description\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"short_description\",\n value=\"Short description\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"servicenow-incident-example\",\n Type = \"SERVICENOW_INCIDENTS\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"description\",\n Value = \"General description\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"short_description\",\n Value = \"Short description\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"servicenow-incident-example\"),\n\t\t\tType: pulumi.String(\"SERVICENOW_INCIDENTS\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"description\"),\n\t\t\t\t\tValue: pulumi.String(\"General description\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"short_description\"),\n\t\t\t\t\tValue: pulumi.String(\"Short description\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"servicenow-incident-example\")\n .type(\"SERVICENOW_INCIDENTS\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"description\")\n .value(\"General description\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"short_description\")\n .value(\"Short description\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: servicenow-incident-example\n type: SERVICENOW_INCIDENTS\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: description\n value: General description\n - key: short_description\n value: Short description\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"email-example\",\n type: \"EMAIL\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"subject\",\n value: \"New Subject Title\",\n },\n {\n key: \"customDetailsEmail\",\n value: \"issue id - {{issueId}}\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"email-example\",\n type=\"EMAIL\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"subject\",\n value=\"New Subject Title\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"customDetailsEmail\",\n value=\"issue id - {{issueId}}\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"email-example\",\n Type = \"EMAIL\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"subject\",\n Value = \"New Subject Title\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"customDetailsEmail\",\n Value = \"issue id - {{issueId}}\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"email-example\"),\n\t\t\tType: pulumi.String(\"EMAIL\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"subject\"),\n\t\t\t\t\tValue: pulumi.String(\"New Subject Title\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"customDetailsEmail\"),\n\t\t\t\t\tValue: pulumi.String(\"issue id - {{issueId}}\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"email-example\")\n .type(\"EMAIL\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"subject\")\n .value(\"New Subject Title\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"customDetailsEmail\")\n .value(\"issue id - {{issueId}}\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: email-example\n type: EMAIL\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: subject\n value: New Subject Title\n - key: customDetailsEmail\n value: issue id - {{issueId}}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n##### [Jira Classic](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#jira)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"jira-example\",\n type: \"JIRA_CLASSIC\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"ERROR_TRACKING\",\n properties: [\n {\n key: \"project\",\n value: \"10000\",\n },\n {\n key: \"issuetype\",\n value: \"10004\",\n },\n {\n key: \"description\",\n value: \"Issue ID: {{ issueId }}\",\n },\n {\n key: \"summary\",\n value: \"{{ annotations.title.[0] }}\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"jira-example\",\n type=\"JIRA_CLASSIC\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"ERROR_TRACKING\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"project\",\n value=\"10000\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"issuetype\",\n value=\"10004\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"description\",\n value=\"Issue ID: {{ issueId }}\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"summary\",\n value=\"{{ annotations.title.[0] }}\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"jira-example\",\n Type = \"JIRA_CLASSIC\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"ERROR_TRACKING\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"project\",\n Value = \"10000\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"issuetype\",\n Value = \"10004\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"description\",\n Value = \"Issue ID: {{ issueId }}\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"summary\",\n Value = \"{{ annotations.title.[0] }}\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"jira-example\"),\n\t\t\tType: pulumi.String(\"JIRA_CLASSIC\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"ERROR_TRACKING\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"project\"),\n\t\t\t\t\tValue: pulumi.String(\"10000\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"issuetype\"),\n\t\t\t\t\tValue: pulumi.String(\"10004\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"description\"),\n\t\t\t\t\tValue: pulumi.String(\"Issue ID: {{ issueId }}\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"summary\"),\n\t\t\t\t\tValue: pulumi.String(\"{{ annotations.title.[0] }}\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"jira-example\")\n .type(\"JIRA_CLASSIC\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"ERROR_TRACKING\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"project\")\n .value(\"10000\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"issuetype\")\n .value(\"10004\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"description\")\n .value(\"Issue ID: {{ issueId }}\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"summary\")\n .value(\"{{ annotations.title.[0] }}\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: jira-example\n type: JIRA_CLASSIC\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: ERROR_TRACKING\n properties:\n - key: project\n value: '10000'\n - key: issuetype\n value: '10004'\n - key: description\n value: 'Issue ID: {{ issueId }}'\n - key: summary\n value: '{{ annotations.title.[0] }}'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n##### [PagerDuty with account integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"pagerduty-account-example\",\n type: \"PAGERDUTY_ACCOUNT_INTEGRATION\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"summary\",\n value: \"General summary\",\n },\n {\n key: \"service\",\n label: \"Service Name\",\n value: \"PTQK3FM\",\n },\n {\n key: \"email\",\n value: \"example@email.com\",\n },\n {\n key: \"customDetails\",\n value: `{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n`,\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"pagerduty-account-example\",\n type=\"PAGERDUTY_ACCOUNT_INTEGRATION\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"summary\",\n value=\"General summary\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"service\",\n label=\"Service Name\",\n value=\"PTQK3FM\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"email\",\n value=\"example@email.com\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"customDetails\",\n value=\"\"\"{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n\"\"\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"pagerduty-account-example\",\n Type = \"PAGERDUTY_ACCOUNT_INTEGRATION\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"summary\",\n Value = \"General summary\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"service\",\n Label = \"Service Name\",\n Value = \"PTQK3FM\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"email\",\n Value = \"example@email.com\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"customDetails\",\n Value = @\"{\n\"\"id\"\":{{json issueId}},\n\"\"IssueURL\"\":{{json issuePageUrl}},\n\"\"NewRelic priority\"\":{{json priority}},\n\"\"Total Incidents\"\":{{json totalIncidents}},\n\"\"Impacted Entities\"\":\"\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Runbook\"\":\"\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Description\"\":\"\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"isCorrelated\"\":{{json isCorrelated}},\n\"\"Alert Policy Names\"\":\"\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Alert Condition Names\"\":\"\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Workflow Name\"\":{{json workflowName}}\n}\n\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"pagerduty-account-example\"),\n\t\t\tType: pulumi.String(\"PAGERDUTY_ACCOUNT_INTEGRATION\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"summary\"),\n\t\t\t\t\tValue: pulumi.String(\"General summary\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"service\"),\n\t\t\t\t\tLabel: pulumi.String(\"Service Name\"),\n\t\t\t\t\tValue: pulumi.String(\"PTQK3FM\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"email\"),\n\t\t\t\t\tValue: pulumi.String(\"example@email.com\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"customDetails\"),\n\t\t\t\t\tValue: pulumi.String(`{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n`),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"pagerduty-account-example\")\n .type(\"PAGERDUTY_ACCOUNT_INTEGRATION\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"summary\")\n .value(\"General summary\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"service\")\n .label(\"Service Name\")\n .value(\"PTQK3FM\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"email\")\n .value(\"example@email.com\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"customDetails\")\n .value(\"\"\"\n{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: pagerduty-account-example\n type: PAGERDUTY_ACCOUNT_INTEGRATION\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: summary\n value: General summary\n - key: service\n label: Service Name\n value: PTQK3FM\n - key: email\n value: example@email.com\n - key: customDetails\n value: |\n {\n \"id\":{{json issueId}},\n \"IssueURL\":{{json issuePageUrl}},\n \"NewRelic priority\":{{json priority}},\n \"Total Incidents\":{{json totalIncidents}},\n \"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"isCorrelated\":{{json isCorrelated}},\n \"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Workflow Name\":{{json workflowName}}\n }\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n##### [PagerDuty with service integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"pagerduty-account-example\",\n type: \"PAGERDUTY_SERVICE_INTEGRATION\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"summary\",\n value: \"General summary\",\n },\n {\n key: \"customDetails\",\n value: `{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n`,\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"pagerduty-account-example\",\n type=\"PAGERDUTY_SERVICE_INTEGRATION\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"summary\",\n value=\"General summary\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"customDetails\",\n value=\"\"\"{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n\"\"\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"pagerduty-account-example\",\n Type = \"PAGERDUTY_SERVICE_INTEGRATION\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"summary\",\n Value = \"General summary\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"customDetails\",\n Value = @\"{\n\"\"id\"\":{{json issueId}},\n\"\"IssueURL\"\":{{json issuePageUrl}},\n\"\"NewRelic priority\"\":{{json priority}},\n\"\"Total Incidents\"\":{{json totalIncidents}},\n\"\"Impacted Entities\"\":\"\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Runbook\"\":\"\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Description\"\":\"\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"isCorrelated\"\":{{json isCorrelated}},\n\"\"Alert Policy Names\"\":\"\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Alert Condition Names\"\":\"\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Workflow Name\"\":{{json workflowName}}\n}\n\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"pagerduty-account-example\"),\n\t\t\tType: pulumi.String(\"PAGERDUTY_SERVICE_INTEGRATION\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"summary\"),\n\t\t\t\t\tValue: pulumi.String(\"General summary\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"customDetails\"),\n\t\t\t\t\tValue: pulumi.String(`{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n`),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"pagerduty-account-example\")\n .type(\"PAGERDUTY_SERVICE_INTEGRATION\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"summary\")\n .value(\"General summary\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"customDetails\")\n .value(\"\"\"\n{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: pagerduty-account-example\n type: PAGERDUTY_SERVICE_INTEGRATION\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: summary\n value: General summary\n - key: customDetails\n value: |\n {\n \"id\":{{json issueId}},\n \"IssueURL\":{{json issuePageUrl}},\n \"NewRelic priority\":{{json priority}},\n \"Total Incidents\":{{json totalIncidents}},\n \"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"isCorrelated\":{{json isCorrelated}},\n \"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Workflow Name\":{{json workflowName}}\n }\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n#### Mobile Push\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"mobile-push-example\",\n type: \"MOBILE_PUSH\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"mobile-push-example\",\n type=\"MOBILE_PUSH\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\")\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"mobile-push-example\",\n Type = \"MOBILE_PUSH\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"mobile-push-example\"),\n\t\t\tType: pulumi.String(\"MOBILE_PUSH\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"mobile-push-example\")\n .type(\"MOBILE_PUSH\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: mobile-push-example\n type: MOBILE_PUSH\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n#### [AWS Event Bridge](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#eventBridge)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"event-bridge-example\",\n type: \"EVENT_BRIDGE\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"eventSource\",\n value: \"aws.partner/mydomain/myaccountid/name\",\n },\n {\n key: \"eventContent\",\n value: \"{ id: {{ json issueId }} }\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"event-bridge-example\",\n type=\"EVENT_BRIDGE\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"eventSource\",\n value=\"aws.partner/mydomain/myaccountid/name\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"eventContent\",\n value=\"{ id: {{ json issueId }} }\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"event-bridge-example\",\n Type = \"EVENT_BRIDGE\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"eventSource\",\n Value = \"aws.partner/mydomain/myaccountid/name\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"eventContent\",\n Value = \"{ id: {{ json issueId }} }\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"event-bridge-example\"),\n\t\t\tType: pulumi.String(\"EVENT_BRIDGE\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"eventSource\"),\n\t\t\t\t\tValue: pulumi.String(\"aws.partner/mydomain/myaccountid/name\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"eventContent\"),\n\t\t\t\t\tValue: pulumi.String(\"{ id: {{ json issueId }} }\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"event-bridge-example\")\n .type(\"EVENT_BRIDGE\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"eventSource\")\n .value(\"aws.partner/mydomain/myaccountid/name\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"eventContent\")\n .value(\"{ id: {{ json issueId }} }\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: event-bridge-example\n type: EVENT_BRIDGE\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: eventSource\n value: aws.partner/mydomain/myaccountid/name\n - key: eventContent\n value: '{ id: {{ json issueId }} }'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n#### [SLACK](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#slack)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"slack-example\",\n type: \"SLACK\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"channelId\",\n value: \"123456\",\n },\n {\n key: \"customDetailsSlack\",\n value: \"issue id - {{issueId}}\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"slack-example\",\n type=\"SLACK\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"channelId\",\n value=\"123456\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"customDetailsSlack\",\n value=\"issue id - {{issueId}}\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"slack-example\",\n Type = \"SLACK\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"channelId\",\n Value = \"123456\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"customDetailsSlack\",\n Value = \"issue id - {{issueId}}\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"slack-example\"),\n\t\t\tType: pulumi.String(\"SLACK\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"channelId\"),\n\t\t\t\t\tValue: pulumi.String(\"123456\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"customDetailsSlack\"),\n\t\t\t\t\tValue: pulumi.String(\"issue id - {{issueId}}\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"slack-example\")\n .type(\"SLACK\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"channelId\")\n .value(\"123456\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"customDetailsSlack\")\n .value(\"issue id - {{issueId}}\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: slack-example\n type: SLACK\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: channelId\n value: '123456'\n - key: customDetailsSlack\n value: issue id - {{issueId}}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e **NOTE:** Sensitive data such as channel API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.\n\n## Full Scenario Example\n\nCreate a destination resource and reference that destination to the channel resource:\n\n### Create a destination\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst webhook_destination = new newrelic.NotificationDestination(\"webhook-destination\", {\n accountId: \"12345678\",\n name: \"destination-webhook\",\n type: \"WEBHOOK\",\n properties: [{\n key: \"url\",\n value: \"https://webhook.mywebhook.com\",\n }],\n authBasic: {\n user: \"username\",\n password: \"password\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nwebhook_destination = newrelic.NotificationDestination(\"webhook-destination\",\n account_id=\"12345678\",\n name=\"destination-webhook\",\n type=\"WEBHOOK\",\n properties=[newrelic.NotificationDestinationPropertyArgs(\n key=\"url\",\n value=\"https://webhook.mywebhook.com\",\n )],\n auth_basic=newrelic.NotificationDestinationAuthBasicArgs(\n user=\"username\",\n password=\"password\",\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 webhook_destination = new NewRelic.NotificationDestination(\"webhook-destination\", new()\n {\n AccountId = \"12345678\",\n Name = \"destination-webhook\",\n Type = \"WEBHOOK\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationDestinationPropertyArgs\n {\n Key = \"url\",\n Value = \"https://webhook.mywebhook.com\",\n },\n },\n AuthBasic = new NewRelic.Inputs.NotificationDestinationAuthBasicArgs\n {\n User = \"username\",\n Password = \"password\",\n },\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.NewNotificationDestination(ctx, \"webhook-destination\", \u0026newrelic.NotificationDestinationArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"destination-webhook\"),\n\t\t\tType: pulumi.String(\"WEBHOOK\"),\n\t\t\tProperties: newrelic.NotificationDestinationPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationDestinationPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"url\"),\n\t\t\t\t\tValue: pulumi.String(\"https://webhook.mywebhook.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAuthBasic: \u0026newrelic.NotificationDestinationAuthBasicArgs{\n\t\t\t\tUser: pulumi.String(\"username\"),\n\t\t\t\tPassword: pulumi.String(\"password\"),\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.NotificationDestination;\nimport com.pulumi.newrelic.NotificationDestinationArgs;\nimport com.pulumi.newrelic.inputs.NotificationDestinationPropertyArgs;\nimport com.pulumi.newrelic.inputs.NotificationDestinationAuthBasicArgs;\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 webhook_destination = new NotificationDestination(\"webhook-destination\", NotificationDestinationArgs.builder()\n .accountId(12345678)\n .name(\"destination-webhook\")\n .type(\"WEBHOOK\")\n .properties(NotificationDestinationPropertyArgs.builder()\n .key(\"url\")\n .value(\"https://webhook.mywebhook.com\")\n .build())\n .authBasic(NotificationDestinationAuthBasicArgs.builder()\n .user(\"username\")\n .password(\"password\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n webhook-destination:\n type: newrelic:NotificationDestination\n properties:\n accountId: 1.2345678e+07\n name: destination-webhook\n type: WEBHOOK\n properties:\n - key: url\n value: https://webhook.mywebhook.com\n authBasic:\n user: username\n password: password\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Create a channel\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst webhook_channel = new newrelic.NotificationChannel(\"webhook-channel\", {\n accountId: \"12345678\",\n name: \"channel-webhook\",\n type: \"WEBHOOK\",\n destinationId: webhook_destination.id,\n product: \"IINT\",\n properties: [{\n key: \"payload\",\n value: \"{name: foo}\",\n label: \"Payload Template\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nwebhook_channel = newrelic.NotificationChannel(\"webhook-channel\",\n account_id=\"12345678\",\n name=\"channel-webhook\",\n type=\"WEBHOOK\",\n destination_id=webhook_destination[\"id\"],\n product=\"IINT\",\n properties=[newrelic.NotificationChannelPropertyArgs(\n key=\"payload\",\n value=\"{name: foo}\",\n label=\"Payload Template\",\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 webhook_channel = new NewRelic.NotificationChannel(\"webhook-channel\", new()\n {\n AccountId = \"12345678\",\n Name = \"channel-webhook\",\n Type = \"WEBHOOK\",\n DestinationId = webhook_destination.Id,\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"payload\",\n Value = \"{name: foo}\",\n Label = \"Payload Template\",\n },\n },\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.NewNotificationChannel(ctx, \"webhook-channel\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"channel-webhook\"),\n\t\t\tType: pulumi.String(\"WEBHOOK\"),\n\t\t\tDestinationId: pulumi.Any(webhook_destination.Id),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"payload\"),\n\t\t\t\t\tValue: pulumi.String(\"{name: foo}\"),\n\t\t\t\t\tLabel: pulumi.String(\"Payload Template\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 webhook_channel = new NotificationChannel(\"webhook-channel\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"channel-webhook\")\n .type(\"WEBHOOK\")\n .destinationId(webhook_destination.id())\n .product(\"IINT\")\n .properties(NotificationChannelPropertyArgs.builder()\n .key(\"payload\")\n .value(\"{name: foo}\")\n .label(\"Payload Template\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n webhook-channel:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: channel-webhook\n type: WEBHOOK\n destinationId: ${[\"webhook-destination\"].id}\n product: IINT\n properties:\n - key: payload\n value: '{name: foo}'\n label: Payload Template\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Additional Information\n\nMore details about the channels API can be found [here](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels).\n### Moving from Legacy Alert Channels to Notification Channels\nAs described in the documentation of this resource, channels can be created and managed using `newrelic.NotificationDestination`, which is **deprecated** and will be **removed in a future major release**, as stated in the documentation of the resource.\n\nIf you're currently using `newrelic.AlertChannel` to manage channels, we **strongly recommend** migrating to these notifications-based resources at the earliest.\n\nPlease refer to the examples in this page, or this example for illustrations on setting up channels with these resources.\n\n## Import\n\nChannels can only be used by a single workflow, therefore importing them is not particularly useful, because in the UI channels are created upon workflow creation. \n\nAdditionally, the channel id isn't available via the UI, and you'd need to look it up with the `channels` query in the NerdGraph API.\n\nThat being said, importing is possible using -\n\n```sh\n$ pulumi import newrelic:index/notificationChannel:NotificationChannel foo \u003cdestination_id\u003e\n```\n\n", + "description": "Use this resource to create and manage New Relic notification channels. Details regarding supported products and permissions can be found [here](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/destinations).\n\nA channel is an entity that is used to configure notifications. It is also called a message template. It is a separate entity from workflows, but a channel is required in order to create a workflow.\n\n## Example Usage\n\n##### [Webhook](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#webhook)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"webhook-example\",\n type: \"WEBHOOK\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [{\n key: \"payload\",\n value: \"name: {{ foo }}\",\n label: \"Payload Template\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"webhook-example\",\n type=\"WEBHOOK\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[newrelic.NotificationChannelPropertyArgs(\n key=\"payload\",\n value=\"name: {{ foo }}\",\n label=\"Payload Template\",\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"webhook-example\",\n Type = \"WEBHOOK\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"payload\",\n Value = \"name: {{ foo }}\",\n Label = \"Payload Template\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"webhook-example\"),\n\t\t\tType: pulumi.String(\"WEBHOOK\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"payload\"),\n\t\t\t\t\tValue: pulumi.String(\"name: {{ foo }}\"),\n\t\t\t\t\tLabel: pulumi.String(\"Payload Template\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"webhook-example\")\n .type(\"WEBHOOK\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties(NotificationChannelPropertyArgs.builder()\n .key(\"payload\")\n .value(\"name: {{ foo }}\")\n .label(\"Payload Template\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: webhook-example\n type: WEBHOOK\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: payload\n value: 'name: {{ foo }}'\n label: Payload Template\n```\n\u003c!--End PulumiCodeChooser --\u003e\nSee additional examples.\n\n## Additional Examples\n\n\u003e **NOTE:** We support all properties. The mentioned properties are just an example.\n\n##### [ServiceNow](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenow)\nTo see the properties’ keys for your account, check ServiceNow incidents table.\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.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"servicenow-incident-example\",\n type: \"SERVICENOW_INCIDENTS\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"description\",\n value: \"General description\",\n },\n {\n key: \"short_description\",\n value: \"Short description\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"servicenow-incident-example\",\n type=\"SERVICENOW_INCIDENTS\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"description\",\n value=\"General description\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"short_description\",\n value=\"Short description\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"servicenow-incident-example\",\n Type = \"SERVICENOW_INCIDENTS\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"description\",\n Value = \"General description\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"short_description\",\n Value = \"Short description\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"servicenow-incident-example\"),\n\t\t\tType: pulumi.String(\"SERVICENOW_INCIDENTS\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"description\"),\n\t\t\t\t\tValue: pulumi.String(\"General description\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"short_description\"),\n\t\t\t\t\tValue: pulumi.String(\"Short description\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"servicenow-incident-example\")\n .type(\"SERVICENOW_INCIDENTS\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"description\")\n .value(\"General description\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"short_description\")\n .value(\"Short description\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: servicenow-incident-example\n type: SERVICENOW_INCIDENTS\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: description\n value: General description\n - key: short_description\n value: Short description\n```\n\u003c!--End PulumiCodeChooser --\u003e\n##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"servicenow-app-example\",\n type: \"SERVICE_NOW_APP\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"servicenow-app-example\",\n type=\"SERVICE_NOW_APP\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\")\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"servicenow-app-example\",\n Type = \"SERVICE_NOW_APP\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"servicenow-app-example\"),\n\t\t\tType: pulumi.String(\"SERVICE_NOW_APP\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"servicenow-app-example\")\n .type(\"SERVICE_NOW_APP\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: servicenow-app-example\n type: SERVICE_NOW_APP\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"email-example\",\n type: \"EMAIL\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"subject\",\n value: \"New Subject Title\",\n },\n {\n key: \"customDetailsEmail\",\n value: \"issue id - {{issueId}}\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"email-example\",\n type=\"EMAIL\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"subject\",\n value=\"New Subject Title\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"customDetailsEmail\",\n value=\"issue id - {{issueId}}\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"email-example\",\n Type = \"EMAIL\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"subject\",\n Value = \"New Subject Title\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"customDetailsEmail\",\n Value = \"issue id - {{issueId}}\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"email-example\"),\n\t\t\tType: pulumi.String(\"EMAIL\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"subject\"),\n\t\t\t\t\tValue: pulumi.String(\"New Subject Title\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"customDetailsEmail\"),\n\t\t\t\t\tValue: pulumi.String(\"issue id - {{issueId}}\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"email-example\")\n .type(\"EMAIL\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"subject\")\n .value(\"New Subject Title\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"customDetailsEmail\")\n .value(\"issue id - {{issueId}}\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: email-example\n type: EMAIL\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: subject\n value: New Subject Title\n - key: customDetailsEmail\n value: issue id - {{issueId}}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n##### [Jira Classic](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#jira)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"jira-example\",\n type: \"JIRA_CLASSIC\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"ERROR_TRACKING\",\n properties: [\n {\n key: \"project\",\n value: \"10000\",\n },\n {\n key: \"issuetype\",\n value: \"10004\",\n },\n {\n key: \"description\",\n value: \"Issue ID: {{ issueId }}\",\n },\n {\n key: \"summary\",\n value: \"{{ annotations.title.[0] }}\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"jira-example\",\n type=\"JIRA_CLASSIC\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"ERROR_TRACKING\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"project\",\n value=\"10000\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"issuetype\",\n value=\"10004\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"description\",\n value=\"Issue ID: {{ issueId }}\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"summary\",\n value=\"{{ annotations.title.[0] }}\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"jira-example\",\n Type = \"JIRA_CLASSIC\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"ERROR_TRACKING\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"project\",\n Value = \"10000\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"issuetype\",\n Value = \"10004\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"description\",\n Value = \"Issue ID: {{ issueId }}\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"summary\",\n Value = \"{{ annotations.title.[0] }}\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"jira-example\"),\n\t\t\tType: pulumi.String(\"JIRA_CLASSIC\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"ERROR_TRACKING\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"project\"),\n\t\t\t\t\tValue: pulumi.String(\"10000\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"issuetype\"),\n\t\t\t\t\tValue: pulumi.String(\"10004\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"description\"),\n\t\t\t\t\tValue: pulumi.String(\"Issue ID: {{ issueId }}\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"summary\"),\n\t\t\t\t\tValue: pulumi.String(\"{{ annotations.title.[0] }}\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"jira-example\")\n .type(\"JIRA_CLASSIC\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"ERROR_TRACKING\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"project\")\n .value(\"10000\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"issuetype\")\n .value(\"10004\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"description\")\n .value(\"Issue ID: {{ issueId }}\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"summary\")\n .value(\"{{ annotations.title.[0] }}\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: jira-example\n type: JIRA_CLASSIC\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: ERROR_TRACKING\n properties:\n - key: project\n value: '10000'\n - key: issuetype\n value: '10004'\n - key: description\n value: 'Issue ID: {{ issueId }}'\n - key: summary\n value: '{{ annotations.title.[0] }}'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n##### [PagerDuty with account integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"pagerduty-account-example\",\n type: \"PAGERDUTY_ACCOUNT_INTEGRATION\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"summary\",\n value: \"General summary\",\n },\n {\n key: \"service\",\n label: \"Service Name\",\n value: \"PTQK3FM\",\n },\n {\n key: \"email\",\n value: \"example@email.com\",\n },\n {\n key: \"customDetails\",\n value: `{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n`,\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"pagerduty-account-example\",\n type=\"PAGERDUTY_ACCOUNT_INTEGRATION\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"summary\",\n value=\"General summary\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"service\",\n label=\"Service Name\",\n value=\"PTQK3FM\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"email\",\n value=\"example@email.com\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"customDetails\",\n value=\"\"\"{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n\"\"\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"pagerduty-account-example\",\n Type = \"PAGERDUTY_ACCOUNT_INTEGRATION\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"summary\",\n Value = \"General summary\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"service\",\n Label = \"Service Name\",\n Value = \"PTQK3FM\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"email\",\n Value = \"example@email.com\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"customDetails\",\n Value = @\"{\n\"\"id\"\":{{json issueId}},\n\"\"IssueURL\"\":{{json issuePageUrl}},\n\"\"NewRelic priority\"\":{{json priority}},\n\"\"Total Incidents\"\":{{json totalIncidents}},\n\"\"Impacted Entities\"\":\"\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Runbook\"\":\"\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Description\"\":\"\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"isCorrelated\"\":{{json isCorrelated}},\n\"\"Alert Policy Names\"\":\"\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Alert Condition Names\"\":\"\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Workflow Name\"\":{{json workflowName}}\n}\n\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"pagerduty-account-example\"),\n\t\t\tType: pulumi.String(\"PAGERDUTY_ACCOUNT_INTEGRATION\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"summary\"),\n\t\t\t\t\tValue: pulumi.String(\"General summary\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"service\"),\n\t\t\t\t\tLabel: pulumi.String(\"Service Name\"),\n\t\t\t\t\tValue: pulumi.String(\"PTQK3FM\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"email\"),\n\t\t\t\t\tValue: pulumi.String(\"example@email.com\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"customDetails\"),\n\t\t\t\t\tValue: pulumi.String(`{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n`),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"pagerduty-account-example\")\n .type(\"PAGERDUTY_ACCOUNT_INTEGRATION\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"summary\")\n .value(\"General summary\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"service\")\n .label(\"Service Name\")\n .value(\"PTQK3FM\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"email\")\n .value(\"example@email.com\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"customDetails\")\n .value(\"\"\"\n{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: pagerduty-account-example\n type: PAGERDUTY_ACCOUNT_INTEGRATION\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: summary\n value: General summary\n - key: service\n label: Service Name\n value: PTQK3FM\n - key: email\n value: example@email.com\n - key: customDetails\n value: |\n {\n \"id\":{{json issueId}},\n \"IssueURL\":{{json issuePageUrl}},\n \"NewRelic priority\":{{json priority}},\n \"Total Incidents\":{{json totalIncidents}},\n \"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"isCorrelated\":{{json isCorrelated}},\n \"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Workflow Name\":{{json workflowName}}\n }\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n##### [PagerDuty with service integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"pagerduty-account-example\",\n type: \"PAGERDUTY_SERVICE_INTEGRATION\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"summary\",\n value: \"General summary\",\n },\n {\n key: \"customDetails\",\n value: `{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n`,\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"pagerduty-account-example\",\n type=\"PAGERDUTY_SERVICE_INTEGRATION\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"summary\",\n value=\"General summary\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"customDetails\",\n value=\"\"\"{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n\"\"\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"pagerduty-account-example\",\n Type = \"PAGERDUTY_SERVICE_INTEGRATION\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"summary\",\n Value = \"General summary\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"customDetails\",\n Value = @\"{\n\"\"id\"\":{{json issueId}},\n\"\"IssueURL\"\":{{json issuePageUrl}},\n\"\"NewRelic priority\"\":{{json priority}},\n\"\"Total Incidents\"\":{{json totalIncidents}},\n\"\"Impacted Entities\"\":\"\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Runbook\"\":\"\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Description\"\":\"\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"isCorrelated\"\":{{json isCorrelated}},\n\"\"Alert Policy Names\"\":\"\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Alert Condition Names\"\":\"\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\"\",\n\"\"Workflow Name\"\":{{json workflowName}}\n}\n\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"pagerduty-account-example\"),\n\t\t\tType: pulumi.String(\"PAGERDUTY_SERVICE_INTEGRATION\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"summary\"),\n\t\t\t\t\tValue: pulumi.String(\"General summary\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"customDetails\"),\n\t\t\t\t\tValue: pulumi.String(`{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n`),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"pagerduty-account-example\")\n .type(\"PAGERDUTY_SERVICE_INTEGRATION\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"summary\")\n .value(\"General summary\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"customDetails\")\n .value(\"\"\"\n{\n\"id\":{{json issueId}},\n\"IssueURL\":{{json issuePageUrl}},\n\"NewRelic priority\":{{json priority}},\n\"Total Incidents\":{{json totalIncidents}},\n\"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"isCorrelated\":{{json isCorrelated}},\n\"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n\"Workflow Name\":{{json workflowName}}\n}\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: pagerduty-account-example\n type: PAGERDUTY_SERVICE_INTEGRATION\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: summary\n value: General summary\n - key: customDetails\n value: |\n {\n \"id\":{{json issueId}},\n \"IssueURL\":{{json issuePageUrl}},\n \"NewRelic priority\":{{json priority}},\n \"Total Incidents\":{{json totalIncidents}},\n \"Impacted Entities\":\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Runbook\":\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Description\":\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"isCorrelated\":{{json isCorrelated}},\n \"Alert Policy Names\":\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Alert Condition Names\":\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\",\n \"Workflow Name\":{{json workflowName}}\n }\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n#### Mobile Push\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"mobile-push-example\",\n type: \"MOBILE_PUSH\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"mobile-push-example\",\n type=\"MOBILE_PUSH\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\")\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"mobile-push-example\",\n Type = \"MOBILE_PUSH\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"mobile-push-example\"),\n\t\t\tType: pulumi.String(\"MOBILE_PUSH\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"mobile-push-example\")\n .type(\"MOBILE_PUSH\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: mobile-push-example\n type: MOBILE_PUSH\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n#### [AWS Event Bridge](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#eventBridge)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"event-bridge-example\",\n type: \"EVENT_BRIDGE\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"eventSource\",\n value: \"aws.partner/mydomain/myaccountid/name\",\n },\n {\n key: \"eventContent\",\n value: \"{ id: {{ json issueId }} }\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"event-bridge-example\",\n type=\"EVENT_BRIDGE\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"eventSource\",\n value=\"aws.partner/mydomain/myaccountid/name\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"eventContent\",\n value=\"{ id: {{ json issueId }} }\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"event-bridge-example\",\n Type = \"EVENT_BRIDGE\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"eventSource\",\n Value = \"aws.partner/mydomain/myaccountid/name\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"eventContent\",\n Value = \"{ id: {{ json issueId }} }\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"event-bridge-example\"),\n\t\t\tType: pulumi.String(\"EVENT_BRIDGE\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"eventSource\"),\n\t\t\t\t\tValue: pulumi.String(\"aws.partner/mydomain/myaccountid/name\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"eventContent\"),\n\t\t\t\t\tValue: pulumi.String(\"{ id: {{ json issueId }} }\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"event-bridge-example\")\n .type(\"EVENT_BRIDGE\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"eventSource\")\n .value(\"aws.partner/mydomain/myaccountid/name\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"eventContent\")\n .value(\"{ id: {{ json issueId }} }\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: event-bridge-example\n type: EVENT_BRIDGE\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: eventSource\n value: aws.partner/mydomain/myaccountid/name\n - key: eventContent\n value: '{ id: {{ json issueId }} }'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n#### [SLACK](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#slack)\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst foo = new newrelic.NotificationChannel(\"foo\", {\n accountId: \"12345678\",\n name: \"slack-example\",\n type: \"SLACK\",\n destinationId: \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product: \"IINT\",\n properties: [\n {\n key: \"channelId\",\n value: \"123456\",\n },\n {\n key: \"customDetailsSlack\",\n value: \"issue id - {{issueId}}\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nfoo = newrelic.NotificationChannel(\"foo\",\n account_id=\"12345678\",\n name=\"slack-example\",\n type=\"SLACK\",\n destination_id=\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n product=\"IINT\",\n properties=[\n newrelic.NotificationChannelPropertyArgs(\n key=\"channelId\",\n value=\"123456\",\n ),\n newrelic.NotificationChannelPropertyArgs(\n key=\"customDetailsSlack\",\n value=\"issue id - {{issueId}}\",\n ),\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.NotificationChannel(\"foo\", new()\n {\n AccountId = \"12345678\",\n Name = \"slack-example\",\n Type = \"SLACK\",\n DestinationId = \"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\",\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"channelId\",\n Value = \"123456\",\n },\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"customDetailsSlack\",\n Value = \"issue id - {{issueId}}\",\n },\n },\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.NewNotificationChannel(ctx, \"foo\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"slack-example\"),\n\t\t\tType: pulumi.String(\"SLACK\"),\n\t\t\tDestinationId: pulumi.String(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\"),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"channelId\"),\n\t\t\t\t\tValue: pulumi.String(\"123456\"),\n\t\t\t\t},\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"customDetailsSlack\"),\n\t\t\t\t\tValue: pulumi.String(\"issue id - {{issueId}}\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 NotificationChannel(\"foo\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"slack-example\")\n .type(\"SLACK\")\n .destinationId(\"00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\")\n .product(\"IINT\")\n .properties( \n NotificationChannelPropertyArgs.builder()\n .key(\"channelId\")\n .value(\"123456\")\n .build(),\n NotificationChannelPropertyArgs.builder()\n .key(\"customDetailsSlack\")\n .value(\"issue id - {{issueId}}\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: slack-example\n type: SLACK\n destinationId: 00b6bd1d-ac06-4d3d-bd72-49551e70f7a8\n product: IINT\n properties:\n - key: channelId\n value: '123456'\n - key: customDetailsSlack\n value: issue id - {{issueId}}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e **NOTE:** Sensitive data such as channel API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.\n\n## Full Scenario Example\n\nCreate a destination resource and reference that destination to the channel resource:\n\n### Create a destination\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst webhook_destination = new newrelic.NotificationDestination(\"webhook-destination\", {\n accountId: \"12345678\",\n name: \"destination-webhook\",\n type: \"WEBHOOK\",\n properties: [{\n key: \"url\",\n value: \"https://webhook.mywebhook.com\",\n }],\n authBasic: {\n user: \"username\",\n password: \"password\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nwebhook_destination = newrelic.NotificationDestination(\"webhook-destination\",\n account_id=\"12345678\",\n name=\"destination-webhook\",\n type=\"WEBHOOK\",\n properties=[newrelic.NotificationDestinationPropertyArgs(\n key=\"url\",\n value=\"https://webhook.mywebhook.com\",\n )],\n auth_basic=newrelic.NotificationDestinationAuthBasicArgs(\n user=\"username\",\n password=\"password\",\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 webhook_destination = new NewRelic.NotificationDestination(\"webhook-destination\", new()\n {\n AccountId = \"12345678\",\n Name = \"destination-webhook\",\n Type = \"WEBHOOK\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationDestinationPropertyArgs\n {\n Key = \"url\",\n Value = \"https://webhook.mywebhook.com\",\n },\n },\n AuthBasic = new NewRelic.Inputs.NotificationDestinationAuthBasicArgs\n {\n User = \"username\",\n Password = \"password\",\n },\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.NewNotificationDestination(ctx, \"webhook-destination\", \u0026newrelic.NotificationDestinationArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"destination-webhook\"),\n\t\t\tType: pulumi.String(\"WEBHOOK\"),\n\t\t\tProperties: newrelic.NotificationDestinationPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationDestinationPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"url\"),\n\t\t\t\t\tValue: pulumi.String(\"https://webhook.mywebhook.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAuthBasic: \u0026newrelic.NotificationDestinationAuthBasicArgs{\n\t\t\t\tUser: pulumi.String(\"username\"),\n\t\t\t\tPassword: pulumi.String(\"password\"),\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.NotificationDestination;\nimport com.pulumi.newrelic.NotificationDestinationArgs;\nimport com.pulumi.newrelic.inputs.NotificationDestinationPropertyArgs;\nimport com.pulumi.newrelic.inputs.NotificationDestinationAuthBasicArgs;\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 webhook_destination = new NotificationDestination(\"webhook-destination\", NotificationDestinationArgs.builder()\n .accountId(12345678)\n .name(\"destination-webhook\")\n .type(\"WEBHOOK\")\n .properties(NotificationDestinationPropertyArgs.builder()\n .key(\"url\")\n .value(\"https://webhook.mywebhook.com\")\n .build())\n .authBasic(NotificationDestinationAuthBasicArgs.builder()\n .user(\"username\")\n .password(\"password\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n webhook-destination:\n type: newrelic:NotificationDestination\n properties:\n accountId: 1.2345678e+07\n name: destination-webhook\n type: WEBHOOK\n properties:\n - key: url\n value: https://webhook.mywebhook.com\n authBasic:\n user: username\n password: password\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Create a channel\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as newrelic from \"@pulumi/newrelic\";\n\nconst webhook_channel = new newrelic.NotificationChannel(\"webhook-channel\", {\n accountId: \"12345678\",\n name: \"channel-webhook\",\n type: \"WEBHOOK\",\n destinationId: webhook_destination.id,\n product: \"IINT\",\n properties: [{\n key: \"payload\",\n value: \"{name: foo}\",\n label: \"Payload Template\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_newrelic as newrelic\n\nwebhook_channel = newrelic.NotificationChannel(\"webhook-channel\",\n account_id=\"12345678\",\n name=\"channel-webhook\",\n type=\"WEBHOOK\",\n destination_id=webhook_destination[\"id\"],\n product=\"IINT\",\n properties=[newrelic.NotificationChannelPropertyArgs(\n key=\"payload\",\n value=\"{name: foo}\",\n label=\"Payload Template\",\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 webhook_channel = new NewRelic.NotificationChannel(\"webhook-channel\", new()\n {\n AccountId = \"12345678\",\n Name = \"channel-webhook\",\n Type = \"WEBHOOK\",\n DestinationId = webhook_destination.Id,\n Product = \"IINT\",\n Properties = new[]\n {\n new NewRelic.Inputs.NotificationChannelPropertyArgs\n {\n Key = \"payload\",\n Value = \"{name: foo}\",\n Label = \"Payload Template\",\n },\n },\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.NewNotificationChannel(ctx, \"webhook-channel\", \u0026newrelic.NotificationChannelArgs{\n\t\t\tAccountId: pulumi.String(\"12345678\"),\n\t\t\tName: pulumi.String(\"channel-webhook\"),\n\t\t\tType: pulumi.String(\"WEBHOOK\"),\n\t\t\tDestinationId: pulumi.Any(webhook_destination.Id),\n\t\t\tProduct: pulumi.String(\"IINT\"),\n\t\t\tProperties: newrelic.NotificationChannelPropertyArray{\n\t\t\t\t\u0026newrelic.NotificationChannelPropertyArgs{\n\t\t\t\t\tKey: pulumi.String(\"payload\"),\n\t\t\t\t\tValue: pulumi.String(\"{name: foo}\"),\n\t\t\t\t\tLabel: pulumi.String(\"Payload Template\"),\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.NotificationChannel;\nimport com.pulumi.newrelic.NotificationChannelArgs;\nimport com.pulumi.newrelic.inputs.NotificationChannelPropertyArgs;\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 webhook_channel = new NotificationChannel(\"webhook-channel\", NotificationChannelArgs.builder()\n .accountId(12345678)\n .name(\"channel-webhook\")\n .type(\"WEBHOOK\")\n .destinationId(webhook_destination.id())\n .product(\"IINT\")\n .properties(NotificationChannelPropertyArgs.builder()\n .key(\"payload\")\n .value(\"{name: foo}\")\n .label(\"Payload Template\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n webhook-channel:\n type: newrelic:NotificationChannel\n properties:\n accountId: 1.2345678e+07\n name: channel-webhook\n type: WEBHOOK\n destinationId: ${[\"webhook-destination\"].id}\n product: IINT\n properties:\n - key: payload\n value: '{name: foo}'\n label: Payload Template\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Additional Information\n\nMore details about the channels API can be found [here](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels).\n### Moving from Legacy Alert Channels to Notification Channels\nAs described in the documentation of this resource, channels can be created and managed using `newrelic.NotificationDestination`, which is **deprecated** and will be **removed in a future major release**, as stated in the documentation of the resource.\n\nIf you're currently using `newrelic.AlertChannel` to manage channels, we **strongly recommend** migrating to these notifications-based resources at the earliest.\n\nPlease refer to the examples in this page, or this example for illustrations on setting up channels with these resources.\n\n## Import\n\nChannels can only be used by a single workflow, therefore importing them is not particularly useful, because in the UI channels are created upon workflow creation. \n\nAdditionally, the channel id isn't available via the UI, and you'd need to look it up with the `channels` query in the NerdGraph API.\n\nThat being said, importing is possible using -\n\n```sh\n$ pulumi import newrelic:index/notificationChannel:NotificationChannel foo \u003cdestination_id\u003e\n```\n\n", "properties": { "accountId": { "type": "string", @@ -11317,7 +11317,7 @@ }, "type": { "type": "string", - "description": "The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.\n" + "description": "The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.\n" } }, "required": [ @@ -11362,7 +11362,7 @@ }, "type": { "type": "string", - "description": "The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.\n", + "description": "The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.\n", "willReplaceOnChanges": true } }, @@ -11411,7 +11411,7 @@ }, "type": { "type": "string", - "description": "The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.\n", + "description": "The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.\n", "willReplaceOnChanges": true } }, @@ -11473,7 +11473,7 @@ }, "type": { "type": "string", - "description": "(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,\nPAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).\n" + "description": "(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP,\nPAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY,\nMOBILE_PUSH, EVENT_BRIDGE).\n" } }, "required": [ @@ -11527,7 +11527,7 @@ }, "type": { "type": "string", - "description": "(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,\nPAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).\n", + "description": "(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP,\nPAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY,\nMOBILE_PUSH, EVENT_BRIDGE).\n", "willReplaceOnChanges": true } }, @@ -11591,7 +11591,7 @@ }, "type": { "type": "string", - "description": "(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,\nPAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).\n", + "description": "(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP,\nPAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY,\nMOBILE_PUSH, EVENT_BRIDGE).\n", "willReplaceOnChanges": true } }, @@ -15308,7 +15308,7 @@ "type": "string" }, "type": { - "description": "The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`.\n", + "description": "The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`.\n", "type": "string" } }, diff --git a/provider/go.mod b/provider/go.mod index 8d6deea6..2fb6e958 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -164,7 +164,7 @@ require ( github.com/muesli/termenv v0.15.2 // indirect github.com/natefinch/atomic v1.0.1 // indirect github.com/newrelic/go-insights v1.0.3 // indirect - github.com/newrelic/newrelic-client-go/v2 v2.41.2 // indirect + github.com/newrelic/newrelic-client-go/v2 v2.42.1 // indirect github.com/nxadm/tail v1.4.11 // indirect github.com/oklog/run v1.1.0 // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index abb585e5..5d4194e1 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1923,8 +1923,8 @@ github.com/newrelic/go-agent/v3 v3.30.0 h1:ZXHCT/Cot4iIPwcegCZURuRQOsfmGA6wilW+S github.com/newrelic/go-agent/v3 v3.30.0/go.mod h1:9utrgxlSryNqRrTvII2XBL+0lpofXbqXApvVWPpbzUg= github.com/newrelic/go-insights v1.0.3 h1:zSNp1CEZnXktzSIEsbHJk8v6ZihdPFP2WsO/fzau3OQ= github.com/newrelic/go-insights v1.0.3/go.mod h1:A20BoT8TNkqPGX2nS/Z2fYmKl3Cqa3iKZd4whzedCY4= -github.com/newrelic/newrelic-client-go/v2 v2.41.2 h1:5YkFRSU19a9CoOkF8qgWoNRXVbL6qh0nZYaWbQjFppA= -github.com/newrelic/newrelic-client-go/v2 v2.41.2/go.mod h1:pDFY24/6iIMEbPIdowTRrRn9YYwkXc3j+B+XpTb4oF4= +github.com/newrelic/newrelic-client-go/v2 v2.42.1 h1:IztJJ2coZaU87y1MZfKueGO/setV/zIYC5Yamg7Mxi0= +github.com/newrelic/newrelic-client-go/v2 v2.42.1/go.mod h1:pDFY24/6iIMEbPIdowTRrRn9YYwkXc3j+B+XpTb4oF4= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nightlyone/lockfile v1.0.0 h1:RHep2cFKK4PonZJDdEl4GmkabuhbsRMgk/k3uAmxBiA= github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI= diff --git a/sdk/dotnet/GetNotificationDestination.cs b/sdk/dotnet/GetNotificationDestination.cs index 20b5af25..b5ca0f89 100644 --- a/sdk/dotnet/GetNotificationDestination.cs +++ b/sdk/dotnet/GetNotificationDestination.cs @@ -130,7 +130,7 @@ public sealed class GetNotificationDestinationResult /// public readonly string Status; /// - /// The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. + /// The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. /// public readonly string Type; diff --git a/sdk/dotnet/Inputs/OneDashboardPageWidgetLineThresholdArgs.cs b/sdk/dotnet/Inputs/OneDashboardPageWidgetLineThresholdArgs.cs index 5869dd80..f723f7d7 100644 --- a/sdk/dotnet/Inputs/OneDashboardPageWidgetLineThresholdArgs.cs +++ b/sdk/dotnet/Inputs/OneDashboardPageWidgetLineThresholdArgs.cs @@ -16,7 +16,7 @@ public sealed class OneDashboardPageWidgetLineThresholdArgs : global::Pulumi.Res /// The value 'from' which the threshold would need to be applied. /// [Input("from")] - public Input? From { get; set; } + public Input? From { get; set; } /// /// The title of the dashboard. @@ -34,7 +34,7 @@ public sealed class OneDashboardPageWidgetLineThresholdArgs : global::Pulumi.Res /// The value until which the threshold would need to be applied. /// [Input("to")] - public Input? To { get; set; } + public Input? To { get; set; } public OneDashboardPageWidgetLineThresholdArgs() { diff --git a/sdk/dotnet/Inputs/OneDashboardPageWidgetLineThresholdGetArgs.cs b/sdk/dotnet/Inputs/OneDashboardPageWidgetLineThresholdGetArgs.cs index 714be285..a57f52d8 100644 --- a/sdk/dotnet/Inputs/OneDashboardPageWidgetLineThresholdGetArgs.cs +++ b/sdk/dotnet/Inputs/OneDashboardPageWidgetLineThresholdGetArgs.cs @@ -16,7 +16,7 @@ public sealed class OneDashboardPageWidgetLineThresholdGetArgs : global::Pulumi. /// The value 'from' which the threshold would need to be applied. /// [Input("from")] - public Input? From { get; set; } + public Input? From { get; set; } /// /// The title of the dashboard. @@ -34,7 +34,7 @@ public sealed class OneDashboardPageWidgetLineThresholdGetArgs : global::Pulumi. /// The value until which the threshold would need to be applied. /// [Input("to")] - public Input? To { get; set; } + public Input? To { get; set; } public OneDashboardPageWidgetLineThresholdGetArgs() { diff --git a/sdk/dotnet/Inputs/OneDashboardPageWidgetTableThresholdArgs.cs b/sdk/dotnet/Inputs/OneDashboardPageWidgetTableThresholdArgs.cs index 43c667a1..94621974 100644 --- a/sdk/dotnet/Inputs/OneDashboardPageWidgetTableThresholdArgs.cs +++ b/sdk/dotnet/Inputs/OneDashboardPageWidgetTableThresholdArgs.cs @@ -22,7 +22,7 @@ public sealed class OneDashboardPageWidgetTableThresholdArgs : global::Pulumi.Re /// The value 'from' which the threshold would need to be applied. /// [Input("from")] - public Input? From { get; set; } + public Input? From { get; set; } /// /// The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. @@ -34,7 +34,7 @@ public sealed class OneDashboardPageWidgetTableThresholdArgs : global::Pulumi.Re /// The value until which the threshold would need to be applied. /// [Input("to")] - public Input? To { get; set; } + public Input? To { get; set; } public OneDashboardPageWidgetTableThresholdArgs() { diff --git a/sdk/dotnet/Inputs/OneDashboardPageWidgetTableThresholdGetArgs.cs b/sdk/dotnet/Inputs/OneDashboardPageWidgetTableThresholdGetArgs.cs index f5ed389e..5054ade3 100644 --- a/sdk/dotnet/Inputs/OneDashboardPageWidgetTableThresholdGetArgs.cs +++ b/sdk/dotnet/Inputs/OneDashboardPageWidgetTableThresholdGetArgs.cs @@ -22,7 +22,7 @@ public sealed class OneDashboardPageWidgetTableThresholdGetArgs : global::Pulumi /// The value 'from' which the threshold would need to be applied. /// [Input("from")] - public Input? From { get; set; } + public Input? From { get; set; } /// /// The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. @@ -34,7 +34,7 @@ public sealed class OneDashboardPageWidgetTableThresholdGetArgs : global::Pulumi /// The value until which the threshold would need to be applied. /// [Input("to")] - public Input? To { get; set; } + public Input? To { get; set; } public OneDashboardPageWidgetTableThresholdGetArgs() { diff --git a/sdk/dotnet/Inputs/WorkflowDestinationArgs.cs b/sdk/dotnet/Inputs/WorkflowDestinationArgs.cs index 225b6a8e..b9ebdeba 100644 --- a/sdk/dotnet/Inputs/WorkflowDestinationArgs.cs +++ b/sdk/dotnet/Inputs/WorkflowDestinationArgs.cs @@ -37,7 +37,7 @@ public InputList NotificationTriggers } /// - /// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + /// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). /// [Input("type")] public Input? Type { get; set; } diff --git a/sdk/dotnet/Inputs/WorkflowDestinationGetArgs.cs b/sdk/dotnet/Inputs/WorkflowDestinationGetArgs.cs index 40e432dd..440e9c0e 100644 --- a/sdk/dotnet/Inputs/WorkflowDestinationGetArgs.cs +++ b/sdk/dotnet/Inputs/WorkflowDestinationGetArgs.cs @@ -37,7 +37,7 @@ public InputList NotificationTriggers } /// - /// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + /// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). /// [Input("type")] public Input? Type { get; set; } diff --git a/sdk/dotnet/NotificationChannel.cs b/sdk/dotnet/NotificationChannel.cs index bd34b010..2596c814 100644 --- a/sdk/dotnet/NotificationChannel.cs +++ b/sdk/dotnet/NotificationChannel.cs @@ -86,6 +86,26 @@ namespace Pulumi.NewRelic /// /// }); /// ``` + /// ##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp) + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using NewRelic = Pulumi.NewRelic; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = new NewRelic.NotificationChannel("foo", new() + /// { + /// AccountId = "12345678", + /// Name = "servicenow-app-example", + /// Type = "SERVICE_NOW_APP", + /// DestinationId = "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8", + /// Product = "IINT", + /// }); + /// + /// }); + /// ``` /// /// ##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email) /// ```csharp @@ -495,7 +515,7 @@ public partial class NotificationChannel : global::Pulumi.CustomResource public Output Status { get; private set; } = null!; /// - /// The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + /// The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. /// [Output("type")] public Output Type { get; private set; } = null!; @@ -589,7 +609,7 @@ public InputList Properties } /// - /// The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + /// The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. /// [Input("type", required: true)] public Input Type { get; set; } = null!; @@ -651,7 +671,7 @@ public InputList Properties public Input? Status { get; set; } /// - /// The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + /// The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. /// [Input("type")] public Input? Type { get; set; } diff --git a/sdk/dotnet/NotificationDestination.cs b/sdk/dotnet/NotificationDestination.cs index 86757870..3e4e663c 100644 --- a/sdk/dotnet/NotificationDestination.cs +++ b/sdk/dotnet/NotificationDestination.cs @@ -148,8 +148,9 @@ public partial class NotificationDestination : global::Pulumi.CustomResource public Output Status { get; private set; } = null!; /// - /// (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - /// PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + /// (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + /// PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + /// MOBILE_PUSH, EVENT_BRIDGE). /// [Output("type")] public Output Type { get; private set; } = null!; @@ -261,8 +262,9 @@ public InputList Properties public Input? SecureUrl { get; set; } /// - /// (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - /// PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + /// (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + /// PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + /// MOBILE_PUSH, EVENT_BRIDGE). /// [Input("type", required: true)] public Input Type { get; set; } = null!; @@ -354,8 +356,9 @@ public InputList Properties public Input? Status { get; set; } /// - /// (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - /// PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + /// (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + /// PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + /// MOBILE_PUSH, EVENT_BRIDGE). /// [Input("type")] public Input? Type { get; set; } diff --git a/sdk/dotnet/Outputs/OneDashboardPageWidgetLineThreshold.cs b/sdk/dotnet/Outputs/OneDashboardPageWidgetLineThreshold.cs index 5f2b7aa2..841d3d39 100644 --- a/sdk/dotnet/Outputs/OneDashboardPageWidgetLineThreshold.cs +++ b/sdk/dotnet/Outputs/OneDashboardPageWidgetLineThreshold.cs @@ -16,7 +16,7 @@ public sealed class OneDashboardPageWidgetLineThreshold /// /// The value 'from' which the threshold would need to be applied. /// - public readonly double? From; + public readonly string? From; /// /// The title of the dashboard. /// @@ -28,17 +28,17 @@ public sealed class OneDashboardPageWidgetLineThreshold /// /// The value until which the threshold would need to be applied. /// - public readonly double? To; + public readonly string? To; [OutputConstructor] private OneDashboardPageWidgetLineThreshold( - double? from, + string? from, string? name, string? severity, - double? to) + string? to) { From = from; Name = name; diff --git a/sdk/dotnet/Outputs/OneDashboardPageWidgetTableThreshold.cs b/sdk/dotnet/Outputs/OneDashboardPageWidgetTableThreshold.cs index 439fb765..8af2df6b 100644 --- a/sdk/dotnet/Outputs/OneDashboardPageWidgetTableThreshold.cs +++ b/sdk/dotnet/Outputs/OneDashboardPageWidgetTableThreshold.cs @@ -20,7 +20,7 @@ public sealed class OneDashboardPageWidgetTableThreshold /// /// The value 'from' which the threshold would need to be applied. /// - public readonly double? From; + public readonly string? From; /// /// The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. /// @@ -28,17 +28,17 @@ public sealed class OneDashboardPageWidgetTableThreshold /// /// The value until which the threshold would need to be applied. /// - public readonly double? To; + public readonly string? To; [OutputConstructor] private OneDashboardPageWidgetTableThreshold( string? columnName, - double? from, + string? from, string? severity, - double? to) + string? to) { ColumnName = columnName; From = from; diff --git a/sdk/dotnet/Outputs/WorkflowDestination.cs b/sdk/dotnet/Outputs/WorkflowDestination.cs index 1083e808..9743a3b6 100644 --- a/sdk/dotnet/Outputs/WorkflowDestination.cs +++ b/sdk/dotnet/Outputs/WorkflowDestination.cs @@ -26,7 +26,7 @@ public sealed class WorkflowDestination /// public readonly ImmutableArray NotificationTriggers; /// - /// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + /// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). /// public readonly string? Type; /// diff --git a/sdk/go/newrelic/getNotificationDestination.go b/sdk/go/newrelic/getNotificationDestination.go index 302ed8b0..534c5fbc 100644 --- a/sdk/go/newrelic/getNotificationDestination.go +++ b/sdk/go/newrelic/getNotificationDestination.go @@ -51,7 +51,7 @@ type LookupNotificationDestinationResult struct { SecureUrls []GetNotificationDestinationSecureUrl `pulumi:"secureUrls"` // The status of the notification destination. Status string `pulumi:"status"` - // The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. + // The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. Type string `pulumi:"type"` } @@ -139,7 +139,7 @@ func (o LookupNotificationDestinationResultOutput) Status() pulumi.StringOutput return o.ApplyT(func(v LookupNotificationDestinationResult) string { return v.Status }).(pulumi.StringOutput) } -// The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. +// The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. func (o LookupNotificationDestinationResultOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v LookupNotificationDestinationResult) string { return v.Type }).(pulumi.StringOutput) } diff --git a/sdk/go/newrelic/notificationChannel.go b/sdk/go/newrelic/notificationChannel.go index 56568653..eb932116 100644 --- a/sdk/go/newrelic/notificationChannel.go +++ b/sdk/go/newrelic/notificationChannel.go @@ -99,6 +99,34 @@ import ( // } // // ``` +// ##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp) +// ```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.NewNotificationChannel(ctx, "foo", &newrelic.NotificationChannelArgs{ +// AccountId: pulumi.String("12345678"), +// Name: pulumi.String("servicenow-app-example"), +// Type: pulumi.String("SERVICE_NOW_APP"), +// DestinationId: pulumi.String("00b6bd1d-ac06-4d3d-bd72-49551e70f7a8"), +// Product: pulumi.String("IINT"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` // // ##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email) // ```go @@ -527,7 +555,7 @@ type NotificationChannel struct { Properties NotificationChannelPropertyArrayOutput `pulumi:"properties"` // The status of the channel. Status pulumi.StringOutput `pulumi:"status"` - // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. Type pulumi.StringOutput `pulumi:"type"` } @@ -587,7 +615,7 @@ type notificationChannelState struct { Properties []NotificationChannelProperty `pulumi:"properties"` // The status of the channel. Status *string `pulumi:"status"` - // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. Type *string `pulumi:"type"` } @@ -606,7 +634,7 @@ type NotificationChannelState struct { Properties NotificationChannelPropertyArrayInput // The status of the channel. Status pulumi.StringPtrInput - // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. Type pulumi.StringPtrInput } @@ -627,7 +655,7 @@ type notificationChannelArgs struct { Product string `pulumi:"product"` // A nested block that describes a notification channel property. See Nested property blocks below for details. Properties []NotificationChannelProperty `pulumi:"properties"` - // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. Type string `pulumi:"type"` } @@ -645,7 +673,7 @@ type NotificationChannelArgs struct { Product pulumi.StringInput // A nested block that describes a notification channel property. See Nested property blocks below for details. Properties NotificationChannelPropertyArrayInput - // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + // The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. Type pulumi.StringInput } @@ -771,7 +799,7 @@ func (o NotificationChannelOutput) Status() pulumi.StringOutput { return o.ApplyT(func(v *NotificationChannel) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput) } -// The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. +// The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. func (o NotificationChannelOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v *NotificationChannel) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) } diff --git a/sdk/go/newrelic/notificationDestination.go b/sdk/go/newrelic/notificationDestination.go index b3523381..2c97d136 100644 --- a/sdk/go/newrelic/notificationDestination.go +++ b/sdk/go/newrelic/notificationDestination.go @@ -104,8 +104,9 @@ type NotificationDestination struct { SecureUrl NotificationDestinationSecureUrlPtrOutput `pulumi:"secureUrl"` // The status of the destination. Status pulumi.StringOutput `pulumi:"status"` - // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - // PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + // PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + // MOBILE_PUSH, EVENT_BRIDGE). Type pulumi.StringOutput `pulumi:"type"` } @@ -167,8 +168,9 @@ type notificationDestinationState struct { SecureUrl *NotificationDestinationSecureUrl `pulumi:"secureUrl"` // The status of the destination. Status *string `pulumi:"status"` - // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - // PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + // PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + // MOBILE_PUSH, EVENT_BRIDGE). Type *string `pulumi:"type"` } @@ -195,8 +197,9 @@ type NotificationDestinationState struct { SecureUrl NotificationDestinationSecureUrlPtrInput // The status of the destination. Status pulumi.StringPtrInput - // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - // PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + // PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + // MOBILE_PUSH, EVENT_BRIDGE). Type pulumi.StringPtrInput } @@ -221,8 +224,9 @@ type notificationDestinationArgs struct { Properties []NotificationDestinationProperty `pulumi:"properties"` // A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secureUrl block is permitted per notification destination definition. See Nested secureUrl blocks below for details. SecureUrl *NotificationDestinationSecureUrl `pulumi:"secureUrl"` - // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - // PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + // PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + // MOBILE_PUSH, EVENT_BRIDGE). Type string `pulumi:"type"` } @@ -244,8 +248,9 @@ type NotificationDestinationArgs struct { Properties NotificationDestinationPropertyArrayInput // A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secureUrl block is permitted per notification destination definition. See Nested secureUrl blocks below for details. SecureUrl NotificationDestinationSecureUrlPtrInput - // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - // PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + // (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + // PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + // MOBILE_PUSH, EVENT_BRIDGE). Type pulumi.StringInput } @@ -393,8 +398,9 @@ func (o NotificationDestinationOutput) Status() pulumi.StringOutput { return o.ApplyT(func(v *NotificationDestination) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput) } -// (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, -// PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). +// (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, +// PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, +// MOBILE_PUSH, EVENT_BRIDGE). func (o NotificationDestinationOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v *NotificationDestination) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) } diff --git a/sdk/go/newrelic/pulumiTypes.go b/sdk/go/newrelic/pulumiTypes.go index 583ef5cf..98bd3bca 100644 --- a/sdk/go/newrelic/pulumiTypes.go +++ b/sdk/go/newrelic/pulumiTypes.go @@ -12745,13 +12745,13 @@ func (o OneDashboardPageWidgetLineNullValueSeriesOverrideArrayOutput) Index(i pu type OneDashboardPageWidgetLineThreshold struct { // The value 'from' which the threshold would need to be applied. - From *float64 `pulumi:"from"` + From *string `pulumi:"from"` // The title of the dashboard. Name *string `pulumi:"name"` // The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. Severity *string `pulumi:"severity"` // The value until which the threshold would need to be applied. - To *float64 `pulumi:"to"` + To *string `pulumi:"to"` } // OneDashboardPageWidgetLineThresholdInput is an input type that accepts OneDashboardPageWidgetLineThresholdArgs and OneDashboardPageWidgetLineThresholdOutput values. @@ -12767,13 +12767,13 @@ type OneDashboardPageWidgetLineThresholdInput interface { type OneDashboardPageWidgetLineThresholdArgs struct { // The value 'from' which the threshold would need to be applied. - From pulumi.Float64PtrInput `pulumi:"from"` + From pulumi.StringPtrInput `pulumi:"from"` // The title of the dashboard. Name pulumi.StringPtrInput `pulumi:"name"` // The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. Severity pulumi.StringPtrInput `pulumi:"severity"` // The value until which the threshold would need to be applied. - To pulumi.Float64PtrInput `pulumi:"to"` + To pulumi.StringPtrInput `pulumi:"to"` } func (OneDashboardPageWidgetLineThresholdArgs) ElementType() reflect.Type { @@ -12828,8 +12828,8 @@ func (o OneDashboardPageWidgetLineThresholdOutput) ToOneDashboardPageWidgetLineT } // The value 'from' which the threshold would need to be applied. -func (o OneDashboardPageWidgetLineThresholdOutput) From() pulumi.Float64PtrOutput { - return o.ApplyT(func(v OneDashboardPageWidgetLineThreshold) *float64 { return v.From }).(pulumi.Float64PtrOutput) +func (o OneDashboardPageWidgetLineThresholdOutput) From() pulumi.StringPtrOutput { + return o.ApplyT(func(v OneDashboardPageWidgetLineThreshold) *string { return v.From }).(pulumi.StringPtrOutput) } // The title of the dashboard. @@ -12843,8 +12843,8 @@ func (o OneDashboardPageWidgetLineThresholdOutput) Severity() pulumi.StringPtrOu } // The value until which the threshold would need to be applied. -func (o OneDashboardPageWidgetLineThresholdOutput) To() pulumi.Float64PtrOutput { - return o.ApplyT(func(v OneDashboardPageWidgetLineThreshold) *float64 { return v.To }).(pulumi.Float64PtrOutput) +func (o OneDashboardPageWidgetLineThresholdOutput) To() pulumi.StringPtrOutput { + return o.ApplyT(func(v OneDashboardPageWidgetLineThreshold) *string { return v.To }).(pulumi.StringPtrOutput) } type OneDashboardPageWidgetLineThresholdArrayOutput struct{ *pulumi.OutputState } @@ -17848,11 +17848,11 @@ type OneDashboardPageWidgetTableThreshold struct { // The name of the column in the table, to which the threshold would need to be applied. ColumnName *string `pulumi:"columnName"` // The value 'from' which the threshold would need to be applied. - From *float64 `pulumi:"from"` + From *string `pulumi:"from"` // The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. Severity *string `pulumi:"severity"` // The value until which the threshold would need to be applied. - To *float64 `pulumi:"to"` + To *string `pulumi:"to"` } // OneDashboardPageWidgetTableThresholdInput is an input type that accepts OneDashboardPageWidgetTableThresholdArgs and OneDashboardPageWidgetTableThresholdOutput values. @@ -17870,11 +17870,11 @@ type OneDashboardPageWidgetTableThresholdArgs struct { // The name of the column in the table, to which the threshold would need to be applied. ColumnName pulumi.StringPtrInput `pulumi:"columnName"` // The value 'from' which the threshold would need to be applied. - From pulumi.Float64PtrInput `pulumi:"from"` + From pulumi.StringPtrInput `pulumi:"from"` // The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. Severity pulumi.StringPtrInput `pulumi:"severity"` // The value until which the threshold would need to be applied. - To pulumi.Float64PtrInput `pulumi:"to"` + To pulumi.StringPtrInput `pulumi:"to"` } func (OneDashboardPageWidgetTableThresholdArgs) ElementType() reflect.Type { @@ -17934,8 +17934,8 @@ func (o OneDashboardPageWidgetTableThresholdOutput) ColumnName() pulumi.StringPt } // The value 'from' which the threshold would need to be applied. -func (o OneDashboardPageWidgetTableThresholdOutput) From() pulumi.Float64PtrOutput { - return o.ApplyT(func(v OneDashboardPageWidgetTableThreshold) *float64 { return v.From }).(pulumi.Float64PtrOutput) +func (o OneDashboardPageWidgetTableThresholdOutput) From() pulumi.StringPtrOutput { + return o.ApplyT(func(v OneDashboardPageWidgetTableThreshold) *string { return v.From }).(pulumi.StringPtrOutput) } // The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. @@ -17944,8 +17944,8 @@ func (o OneDashboardPageWidgetTableThresholdOutput) Severity() pulumi.StringPtrO } // The value until which the threshold would need to be applied. -func (o OneDashboardPageWidgetTableThresholdOutput) To() pulumi.Float64PtrOutput { - return o.ApplyT(func(v OneDashboardPageWidgetTableThreshold) *float64 { return v.To }).(pulumi.Float64PtrOutput) +func (o OneDashboardPageWidgetTableThresholdOutput) To() pulumi.StringPtrOutput { + return o.ApplyT(func(v OneDashboardPageWidgetTableThreshold) *string { return v.To }).(pulumi.StringPtrOutput) } type OneDashboardPageWidgetTableThresholdArrayOutput struct{ *pulumi.OutputState } @@ -20753,7 +20753,7 @@ type WorkflowDestination struct { Name *string `pulumi:"name"` // List of triggers to notify about in this destination configuration. NotificationTriggers []string `pulumi:"notificationTriggers"` - // (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + // (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). Type *string `pulumi:"type"` // Update original notification message (Slack channels only) UpdateOriginalMessage *bool `pulumi:"updateOriginalMessage"` @@ -20777,7 +20777,7 @@ type WorkflowDestinationArgs struct { Name pulumi.StringPtrInput `pulumi:"name"` // List of triggers to notify about in this destination configuration. NotificationTriggers pulumi.StringArrayInput `pulumi:"notificationTriggers"` - // (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + // (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). Type pulumi.StringPtrInput `pulumi:"type"` // Update original notification message (Slack channels only) UpdateOriginalMessage pulumi.BoolPtrInput `pulumi:"updateOriginalMessage"` @@ -20849,7 +20849,7 @@ func (o WorkflowDestinationOutput) NotificationTriggers() pulumi.StringArrayOutp return o.ApplyT(func(v WorkflowDestination) []string { return v.NotificationTriggers }).(pulumi.StringArrayOutput) } -// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). +// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). func (o WorkflowDestinationOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v WorkflowDestination) *string { return v.Type }).(pulumi.StringPtrOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 61d221b3..0255c29a 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.12.0") + implementation("com.pulumi:pulumi:0.13.0") } task sourcesJar(type: Jar) { @@ -150,4 +150,4 @@ if (signingKey) { useInMemoryPgpKeys(signingKey, signingPassword) sign publishing.publications.mainPublication } -} \ No newline at end of file +} diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/AccountManagement.java b/sdk/java/src/main/java/com/pulumi/newrelic/AccountManagement.java index 846a0cfa..8ea56e65 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/AccountManagement.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/AccountManagement.java @@ -119,13 +119,20 @@ public AccountManagement(String name, AccountManagementArgs args) { * @param options A bag of options that control this resource's behavior. */ public AccountManagement(String name, AccountManagementArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/accountManagement:AccountManagement", name, args == null ? AccountManagementArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/accountManagement:AccountManagement", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AccountManagement(String name, Output id, @Nullable AccountManagementState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/accountManagement:AccountManagement", name, state, makeResourceOptions(options, id)); } + private static AccountManagementArgs makeArgs(AccountManagementArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AccountManagementArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/AlertChannel.java b/sdk/java/src/main/java/com/pulumi/newrelic/AlertChannel.java index 79a2ce3b..d9fec912 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/AlertChannel.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/AlertChannel.java @@ -415,13 +415,20 @@ public AlertChannel(String name, AlertChannelArgs args) { * @param options A bag of options that control this resource's behavior. */ public AlertChannel(String name, AlertChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/alertChannel:AlertChannel", name, args == null ? AlertChannelArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/alertChannel:AlertChannel", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AlertChannel(String name, Output id, @Nullable AlertChannelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/alertChannel:AlertChannel", name, state, makeResourceOptions(options, id)); } + private static AlertChannelArgs makeArgs(AlertChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertChannelArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/AlertCondition.java b/sdk/java/src/main/java/com/pulumi/newrelic/AlertCondition.java index 80da3825..c9a0da57 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/AlertCondition.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/AlertCondition.java @@ -415,13 +415,20 @@ public AlertCondition(String name, AlertConditionArgs args) { * @param options A bag of options that control this resource's behavior. */ public AlertCondition(String name, AlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/alertCondition:AlertCondition", name, args == null ? AlertConditionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/alertCondition:AlertCondition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AlertCondition(String name, Output id, @Nullable AlertConditionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/alertCondition:AlertCondition", name, state, makeResourceOptions(options, id)); } + private static AlertConditionArgs makeArgs(AlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertConditionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/AlertMutingRule.java b/sdk/java/src/main/java/com/pulumi/newrelic/AlertMutingRule.java index 865d8f4d..be3b5832 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/AlertMutingRule.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/AlertMutingRule.java @@ -200,13 +200,20 @@ public AlertMutingRule(String name, AlertMutingRuleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AlertMutingRule(String name, AlertMutingRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/alertMutingRule:AlertMutingRule", name, args == null ? AlertMutingRuleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/alertMutingRule:AlertMutingRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AlertMutingRule(String name, Output id, @Nullable AlertMutingRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/alertMutingRule:AlertMutingRule", name, state, makeResourceOptions(options, id)); } + private static AlertMutingRuleArgs makeArgs(AlertMutingRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertMutingRuleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/AlertPolicy.java b/sdk/java/src/main/java/com/pulumi/newrelic/AlertPolicy.java index fd752a3c..fb05bde8 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/AlertPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/AlertPolicy.java @@ -280,13 +280,20 @@ public AlertPolicy(String name, @Nullable AlertPolicyArgs args) { * @param options A bag of options that control this resource's behavior. */ public AlertPolicy(String name, @Nullable AlertPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/alertPolicy:AlertPolicy", name, args == null ? AlertPolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/alertPolicy:AlertPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AlertPolicy(String name, Output id, @Nullable AlertPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/alertPolicy:AlertPolicy", name, state, makeResourceOptions(options, id)); } + private static AlertPolicyArgs makeArgs(@Nullable AlertPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertPolicyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/AlertPolicyChannel.java b/sdk/java/src/main/java/com/pulumi/newrelic/AlertPolicyChannel.java index 077900b4..a2a89926 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/AlertPolicyChannel.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/AlertPolicyChannel.java @@ -169,13 +169,20 @@ public AlertPolicyChannel(String name, AlertPolicyChannelArgs args) { * @param options A bag of options that control this resource's behavior. */ public AlertPolicyChannel(String name, AlertPolicyChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/alertPolicyChannel:AlertPolicyChannel", name, args == null ? AlertPolicyChannelArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/alertPolicyChannel:AlertPolicyChannel", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AlertPolicyChannel(String name, Output id, @Nullable AlertPolicyChannelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/alertPolicyChannel:AlertPolicyChannel", name, state, makeResourceOptions(options, id)); } + private static AlertPolicyChannelArgs makeArgs(AlertPolicyChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertPolicyChannelArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/ApiAccessKey.java b/sdk/java/src/main/java/com/pulumi/newrelic/ApiAccessKey.java index fb9d778b..d21c39e1 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/ApiAccessKey.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/ApiAccessKey.java @@ -168,13 +168,20 @@ public ApiAccessKey(String name, ApiAccessKeyArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApiAccessKey(String name, ApiAccessKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/apiAccessKey:ApiAccessKey", name, args == null ? ApiAccessKeyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/apiAccessKey:ApiAccessKey", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApiAccessKey(String name, Output id, @Nullable ApiAccessKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/apiAccessKey:ApiAccessKey", name, state, makeResourceOptions(options, id)); } + private static ApiAccessKeyArgs makeArgs(ApiAccessKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApiAccessKeyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) 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 7cd520ac..f9f849ac 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplication.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/BrowserApplication.java @@ -164,13 +164,20 @@ public BrowserApplication(String name, @Nullable BrowserApplicationArgs args) { * @param options A bag of options that control this resource's behavior. */ public BrowserApplication(String name, @Nullable BrowserApplicationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/browserApplication:BrowserApplication", name, args == null ? BrowserApplicationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/browserApplication:BrowserApplication", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private BrowserApplication(String name, Output id, @Nullable BrowserApplicationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/browserApplication:BrowserApplication", name, state, makeResourceOptions(options, id)); } + private static BrowserApplicationArgs makeArgs(@Nullable BrowserApplicationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BrowserApplicationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/DataPartitionRule.java b/sdk/java/src/main/java/com/pulumi/newrelic/DataPartitionRule.java index dd70385e..cd744f36 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/DataPartitionRule.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/DataPartitionRule.java @@ -195,13 +195,20 @@ public DataPartitionRule(String name, DataPartitionRuleArgs args) { * @param options A bag of options that control this resource's behavior. */ public DataPartitionRule(String name, DataPartitionRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/dataPartitionRule:DataPartitionRule", name, args == null ? DataPartitionRuleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/dataPartitionRule:DataPartitionRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private DataPartitionRule(String name, Output id, @Nullable DataPartitionRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/dataPartitionRule:DataPartitionRule", name, state, makeResourceOptions(options, id)); } + private static DataPartitionRuleArgs makeArgs(DataPartitionRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DataPartitionRuleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/EntityTags.java b/sdk/java/src/main/java/com/pulumi/newrelic/EntityTags.java index 30653583..3b992f71 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/EntityTags.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/EntityTags.java @@ -139,13 +139,20 @@ public EntityTags(String name, EntityTagsArgs args) { * @param options A bag of options that control this resource's behavior. */ public EntityTags(String name, EntityTagsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/entityTags:EntityTags", name, args == null ? EntityTagsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/entityTags:EntityTags", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private EntityTags(String name, Output id, @Nullable EntityTagsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/entityTags:EntityTags", name, state, makeResourceOptions(options, id)); } + private static EntityTagsArgs makeArgs(EntityTagsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EntityTagsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/EventsToMetricsRule.java b/sdk/java/src/main/java/com/pulumi/newrelic/EventsToMetricsRule.java index 8e2bccb5..2e1b47aa 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/EventsToMetricsRule.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/EventsToMetricsRule.java @@ -178,13 +178,20 @@ public EventsToMetricsRule(String name, EventsToMetricsRuleArgs args) { * @param options A bag of options that control this resource's behavior. */ public EventsToMetricsRule(String name, EventsToMetricsRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/eventsToMetricsRule:EventsToMetricsRule", name, args == null ? EventsToMetricsRuleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/eventsToMetricsRule:EventsToMetricsRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private EventsToMetricsRule(String name, Output id, @Nullable EventsToMetricsRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/eventsToMetricsRule:EventsToMetricsRule", name, state, makeResourceOptions(options, id)); } + private static EventsToMetricsRuleArgs makeArgs(EventsToMetricsRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EventsToMetricsRuleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/Group.java b/sdk/java/src/main/java/com/pulumi/newrelic/Group.java index 82a4c1d1..9adfd8a4 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/Group.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/Group.java @@ -272,13 +272,20 @@ public Group(String name, GroupArgs args) { * @param options A bag of options that control this resource's behavior. */ public Group(String name, GroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/group:Group", name, args == null ? GroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/group:Group", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Group(String name, Output id, @Nullable GroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/group:Group", name, state, makeResourceOptions(options, id)); } + private static GroupArgs makeArgs(GroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GroupArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/InfraAlertCondition.java b/sdk/java/src/main/java/com/pulumi/newrelic/InfraAlertCondition.java index 056a5e2f..90a36f0e 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/InfraAlertCondition.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/InfraAlertCondition.java @@ -499,13 +499,20 @@ public InfraAlertCondition(String name, InfraAlertConditionArgs args) { * @param options A bag of options that control this resource's behavior. */ public InfraAlertCondition(String name, InfraAlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/infraAlertCondition:InfraAlertCondition", name, args == null ? InfraAlertConditionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/infraAlertCondition:InfraAlertCondition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private InfraAlertCondition(String name, Output id, @Nullable InfraAlertConditionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/infraAlertCondition:InfraAlertCondition", name, state, makeResourceOptions(options, id)); } + private static InfraAlertConditionArgs makeArgs(InfraAlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InfraAlertConditionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/LogParsingRule.java b/sdk/java/src/main/java/com/pulumi/newrelic/LogParsingRule.java index 71f2eb6b..1f607293 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/LogParsingRule.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/LogParsingRule.java @@ -271,13 +271,20 @@ public LogParsingRule(String name, LogParsingRuleArgs args) { * @param options A bag of options that control this resource's behavior. */ public LogParsingRule(String name, LogParsingRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/logParsingRule:LogParsingRule", name, args == null ? LogParsingRuleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/logParsingRule:LogParsingRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LogParsingRule(String name, Output id, @Nullable LogParsingRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/logParsingRule:LogParsingRule", name, state, makeResourceOptions(options, id)); } + private static LogParsingRuleArgs makeArgs(LogParsingRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LogParsingRuleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/MonitorDowntime.java b/sdk/java/src/main/java/com/pulumi/newrelic/MonitorDowntime.java index 076ac22d..c46be83a 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/MonitorDowntime.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/MonitorDowntime.java @@ -503,13 +503,20 @@ public MonitorDowntime(String name, MonitorDowntimeArgs args) { * @param options A bag of options that control this resource's behavior. */ public MonitorDowntime(String name, MonitorDowntimeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/monitorDowntime:MonitorDowntime", name, args == null ? MonitorDowntimeArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/monitorDowntime:MonitorDowntime", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MonitorDowntime(String name, Output id, @Nullable MonitorDowntimeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/monitorDowntime:MonitorDowntime", name, state, makeResourceOptions(options, id)); } + private static MonitorDowntimeArgs makeArgs(MonitorDowntimeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MonitorDowntimeArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/NotificationChannel.java b/sdk/java/src/main/java/com/pulumi/newrelic/NotificationChannel.java index ae7e01ef..6e9055a5 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/NotificationChannel.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/NotificationChannel.java @@ -122,6 +122,43 @@ * } * * <!--End PulumiCodeChooser --> + * ##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp) + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.newrelic.NotificationChannel;
+ * import com.pulumi.newrelic.NotificationChannelArgs;
+ * 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 NotificationChannel("foo", NotificationChannelArgs.builder()
+ *             .accountId(12345678)
+ *             .name("servicenow-app-example")
+ *             .type("SERVICE_NOW_APP")
+ *             .destinationId("00b6bd1d-ac06-4d3d-bd72-49551e70f7a8")
+ *             .product("IINT")
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> * * ##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email) * <!--Start PulumiCodeChooser --> @@ -714,14 +751,14 @@ public Output status() { return this.status; } /** - * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** - * @return The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * @return The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * */ public Output type() { @@ -750,13 +787,20 @@ public NotificationChannel(String name, NotificationChannelArgs args) { * @param options A bag of options that control this resource's behavior. */ public NotificationChannel(String name, NotificationChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/notificationChannel:NotificationChannel", name, args == null ? NotificationChannelArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/notificationChannel:NotificationChannel", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private NotificationChannel(String name, Output id, @Nullable NotificationChannelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/notificationChannel:NotificationChannel", name, state, makeResourceOptions(options, id)); } + private static NotificationChannelArgs makeArgs(NotificationChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NotificationChannelArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/NotificationChannelArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/NotificationChannelArgs.java index e642b33e..abddbaec 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/NotificationChannelArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/NotificationChannelArgs.java @@ -110,14 +110,14 @@ public Output> properties() { } /** - * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * */ @Import(name="type", required=true) private Output type; /** - * @return The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * @return The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * */ public Output type() { @@ -291,7 +291,7 @@ public Builder properties(NotificationChannelPropertyArgs... properties) { } /** - * @param type The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * @param type The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * * @return builder * @@ -302,7 +302,7 @@ public Builder type(Output type) { } /** - * @param type The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * @param type The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/NotificationDestination.java b/sdk/java/src/main/java/com/pulumi/newrelic/NotificationDestination.java index e7e7d0ac..6affa851 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/NotificationDestination.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/NotificationDestination.java @@ -248,16 +248,18 @@ public Output status() { return this.status; } /** - * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** - * @return (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * @return (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * */ public Output type() { @@ -286,13 +288,20 @@ public NotificationDestination(String name, NotificationDestinationArgs args) { * @param options A bag of options that control this resource's behavior. */ public NotificationDestination(String name, NotificationDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/notificationDestination:NotificationDestination", name, args == null ? NotificationDestinationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/notificationDestination:NotificationDestination", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private NotificationDestination(String name, Output id, @Nullable NotificationDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/notificationDestination:NotificationDestination", name, state, makeResourceOptions(options, id)); } + private static NotificationDestinationArgs makeArgs(NotificationDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NotificationDestinationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/NotificationDestinationArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/NotificationDestinationArgs.java index 818aa211..3db80b80 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/NotificationDestinationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/NotificationDestinationArgs.java @@ -144,16 +144,18 @@ public Optional> secureUrl() { } /** - * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * */ @Import(name="type", required=true) private Output type; /** - * @return (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * @return (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * */ public Output type() { @@ -381,8 +383,9 @@ public Builder secureUrl(NotificationDestinationSecureUrlArgs secureUrl) { } /** - * @param type (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * @param type (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * * @return builder * @@ -393,8 +396,9 @@ public Builder type(Output type) { } /** - * @param type (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * @param type (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/NrqlAlertCondition.java b/sdk/java/src/main/java/com/pulumi/newrelic/NrqlAlertCondition.java index d9835676..db8f66e8 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/NrqlAlertCondition.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/NrqlAlertCondition.java @@ -839,13 +839,20 @@ public NrqlAlertCondition(String name, NrqlAlertConditionArgs args) { * @param options A bag of options that control this resource's behavior. */ public NrqlAlertCondition(String name, NrqlAlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/nrqlAlertCondition:NrqlAlertCondition", name, args == null ? NrqlAlertConditionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/nrqlAlertCondition:NrqlAlertCondition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private NrqlAlertCondition(String name, Output id, @Nullable NrqlAlertConditionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/nrqlAlertCondition:NrqlAlertCondition", name, state, makeResourceOptions(options, id)); } + private static NrqlAlertConditionArgs makeArgs(NrqlAlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NrqlAlertConditionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/NrqlDropRule.java b/sdk/java/src/main/java/com/pulumi/newrelic/NrqlDropRule.java index 282c2526..414bc50a 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/NrqlDropRule.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/NrqlDropRule.java @@ -186,13 +186,20 @@ public NrqlDropRule(String name, NrqlDropRuleArgs args) { * @param options A bag of options that control this resource's behavior. */ public NrqlDropRule(String name, NrqlDropRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/nrqlDropRule:NrqlDropRule", name, args == null ? NrqlDropRuleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/nrqlDropRule:NrqlDropRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private NrqlDropRule(String name, Output id, @Nullable NrqlDropRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/nrqlDropRule:NrqlDropRule", name, state, makeResourceOptions(options, id)); } + private static NrqlDropRuleArgs makeArgs(NrqlDropRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NrqlDropRuleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/ObfuscationExpression.java b/sdk/java/src/main/java/com/pulumi/newrelic/ObfuscationExpression.java index fc890d3d..7437fe78 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/ObfuscationExpression.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/ObfuscationExpression.java @@ -147,13 +147,20 @@ public ObfuscationExpression(String name, ObfuscationExpressionArgs args) { * @param options A bag of options that control this resource's behavior. */ public ObfuscationExpression(String name, ObfuscationExpressionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/obfuscationExpression:ObfuscationExpression", name, args == null ? ObfuscationExpressionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/obfuscationExpression:ObfuscationExpression", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ObfuscationExpression(String name, Output id, @Nullable ObfuscationExpressionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/obfuscationExpression:ObfuscationExpression", name, state, makeResourceOptions(options, id)); } + private static ObfuscationExpressionArgs makeArgs(ObfuscationExpressionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ObfuscationExpressionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/ObfuscationRule.java b/sdk/java/src/main/java/com/pulumi/newrelic/ObfuscationRule.java index d16b7b6a..7ff0b4e5 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/ObfuscationRule.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/ObfuscationRule.java @@ -192,13 +192,20 @@ public ObfuscationRule(String name, ObfuscationRuleArgs args) { * @param options A bag of options that control this resource's behavior. */ public ObfuscationRule(String name, ObfuscationRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/obfuscationRule:ObfuscationRule", name, args == null ? ObfuscationRuleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/obfuscationRule:ObfuscationRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ObfuscationRule(String name, Output id, @Nullable ObfuscationRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/obfuscationRule:ObfuscationRule", name, state, makeResourceOptions(options, id)); } + private static ObfuscationRuleArgs makeArgs(ObfuscationRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ObfuscationRuleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboard.java b/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboard.java index 8934b4b3..5d58be7a 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboard.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboard.java @@ -166,13 +166,20 @@ public OneDashboard(String name, OneDashboardArgs args) { * @param options A bag of options that control this resource's behavior. */ public OneDashboard(String name, OneDashboardArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/oneDashboard:OneDashboard", name, args == null ? OneDashboardArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/oneDashboard:OneDashboard", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OneDashboard(String name, Output id, @Nullable OneDashboardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/oneDashboard:OneDashboard", name, state, makeResourceOptions(options, id)); } + private static OneDashboardArgs makeArgs(OneDashboardArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OneDashboardArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboardJson.java b/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboardJson.java index 550eaa93..27e996fb 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboardJson.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboardJson.java @@ -120,13 +120,20 @@ public OneDashboardJson(String name, OneDashboardJsonArgs args) { * @param options A bag of options that control this resource's behavior. */ public OneDashboardJson(String name, OneDashboardJsonArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/oneDashboardJson:OneDashboardJson", name, args == null ? OneDashboardJsonArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/oneDashboardJson:OneDashboardJson", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OneDashboardJson(String name, Output id, @Nullable OneDashboardJsonState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/oneDashboardJson:OneDashboardJson", name, state, makeResourceOptions(options, id)); } + private static OneDashboardJsonArgs makeArgs(OneDashboardJsonArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OneDashboardJsonArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboardRaw.java b/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboardRaw.java index a08574e3..7663b246 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboardRaw.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/OneDashboardRaw.java @@ -249,13 +249,20 @@ public OneDashboardRaw(String name, OneDashboardRawArgs args) { * @param options A bag of options that control this resource's behavior. */ public OneDashboardRaw(String name, OneDashboardRawArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/oneDashboardRaw:OneDashboardRaw", name, args == null ? OneDashboardRawArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/oneDashboardRaw:OneDashboardRaw", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OneDashboardRaw(String name, Output id, @Nullable OneDashboardRawState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/oneDashboardRaw:OneDashboardRaw", name, state, makeResourceOptions(options, id)); } + private static OneDashboardRawArgs makeArgs(OneDashboardRawArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OneDashboardRawArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/Provider.java b/sdk/java/src/main/java/com/pulumi/newrelic/Provider.java index 191de8e9..595d4fac 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/Provider.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/Provider.java @@ -150,7 +150,14 @@ public Provider(String name, ProviderArgs args) { * @param options A bag of options that control this resource's behavior. */ public Provider(String name, ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + } + + private static ProviderArgs makeArgs(ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProviderArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/ServiceLevel.java b/sdk/java/src/main/java/com/pulumi/newrelic/ServiceLevel.java index 4e2b8d4b..af1055f1 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/ServiceLevel.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/ServiceLevel.java @@ -391,13 +391,20 @@ public ServiceLevel(String name, ServiceLevelArgs args) { * @param options A bag of options that control this resource's behavior. */ public ServiceLevel(String name, ServiceLevelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/serviceLevel:ServiceLevel", name, args == null ? ServiceLevelArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/serviceLevel:ServiceLevel", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ServiceLevel(String name, Output id, @Nullable ServiceLevelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/serviceLevel:ServiceLevel", name, state, makeResourceOptions(options, id)); } + private static ServiceLevelArgs makeArgs(ServiceLevelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ServiceLevelArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/User.java b/sdk/java/src/main/java/com/pulumi/newrelic/User.java index 780528bc..b32b4a97 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/User.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/User.java @@ -159,13 +159,20 @@ public User(String name, UserArgs args) { * @param options A bag of options that control this resource's behavior. */ public User(String name, UserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/user:User", name, args == null ? UserArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/user:User", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private User(String name, Output id, @Nullable UserState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/user:User", name, state, makeResourceOptions(options, id)); } + private static UserArgs makeArgs(UserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? UserArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/Workflow.java b/sdk/java/src/main/java/com/pulumi/newrelic/Workflow.java index 52957fee..60a20483 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/Workflow.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/Workflow.java @@ -511,13 +511,20 @@ public Workflow(String name, WorkflowArgs args) { * @param options A bag of options that control this resource's behavior. */ public Workflow(String name, WorkflowArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:index/workflow:Workflow", name, args == null ? WorkflowArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:index/workflow:Workflow", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Workflow(String name, Output id, @Nullable WorkflowState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:index/workflow:Workflow", name, state, makeResourceOptions(options, id)); } + private static WorkflowArgs makeArgs(WorkflowArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WorkflowArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsGovcloudIntegrations.java b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsGovcloudIntegrations.java index bc7a4908..423283b3 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsGovcloudIntegrations.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsGovcloudIntegrations.java @@ -581,13 +581,20 @@ public AwsGovcloudIntegrations(String name, AwsGovcloudIntegrationsArgs args) { * @param options A bag of options that control this resource's behavior. */ public AwsGovcloudIntegrations(String name, AwsGovcloudIntegrationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:cloud/awsGovcloudIntegrations:AwsGovcloudIntegrations", name, args == null ? AwsGovcloudIntegrationsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:cloud/awsGovcloudIntegrations:AwsGovcloudIntegrations", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AwsGovcloudIntegrations(String name, Output id, @Nullable AwsGovcloudIntegrationsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:cloud/awsGovcloudIntegrations:AwsGovcloudIntegrations", name, state, makeResourceOptions(options, id)); } + private static AwsGovcloudIntegrationsArgs makeArgs(AwsGovcloudIntegrationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AwsGovcloudIntegrationsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsGovcloudLinkAccount.java b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsGovcloudLinkAccount.java index 4fa07a0c..294c0bf7 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsGovcloudLinkAccount.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsGovcloudLinkAccount.java @@ -188,13 +188,20 @@ public AwsGovcloudLinkAccount(String name, AwsGovcloudLinkAccountArgs args) { * @param options A bag of options that control this resource's behavior. */ public AwsGovcloudLinkAccount(String name, AwsGovcloudLinkAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount", name, args == null ? AwsGovcloudLinkAccountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AwsGovcloudLinkAccount(String name, Output id, @Nullable AwsGovcloudLinkAccountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount", name, state, makeResourceOptions(options, id)); } + private static AwsGovcloudLinkAccountArgs makeArgs(AwsGovcloudLinkAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AwsGovcloudLinkAccountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsIntegrations.java b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsIntegrations.java index 35a27a1e..4f670890 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsIntegrations.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsIntegrations.java @@ -1321,13 +1321,20 @@ public AwsIntegrations(String name, AwsIntegrationsArgs args) { * @param options A bag of options that control this resource's behavior. */ public AwsIntegrations(String name, AwsIntegrationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:cloud/awsIntegrations:AwsIntegrations", name, args == null ? AwsIntegrationsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:cloud/awsIntegrations:AwsIntegrations", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AwsIntegrations(String name, Output id, @Nullable AwsIntegrationsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:cloud/awsIntegrations:AwsIntegrations", name, state, makeResourceOptions(options, id)); } + private static AwsIntegrationsArgs makeArgs(AwsIntegrationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AwsIntegrationsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsLinkAccount.java b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsLinkAccount.java index 0289779a..a6b3b4bc 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsLinkAccount.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AwsLinkAccount.java @@ -156,13 +156,20 @@ public AwsLinkAccount(String name, AwsLinkAccountArgs args) { * @param options A bag of options that control this resource's behavior. */ public AwsLinkAccount(String name, AwsLinkAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:cloud/awsLinkAccount:AwsLinkAccount", name, args == null ? AwsLinkAccountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:cloud/awsLinkAccount:AwsLinkAccount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AwsLinkAccount(String name, Output id, @Nullable AwsLinkAccountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:cloud/awsLinkAccount:AwsLinkAccount", name, state, makeResourceOptions(options, id)); } + private static AwsLinkAccountArgs makeArgs(AwsLinkAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AwsLinkAccountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AzureIntegrations.java b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AzureIntegrations.java index 705951b4..d0ae5e2d 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AzureIntegrations.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AzureIntegrations.java @@ -800,13 +800,20 @@ public AzureIntegrations(String name, AzureIntegrationsArgs args) { * @param options A bag of options that control this resource's behavior. */ public AzureIntegrations(String name, AzureIntegrationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:cloud/azureIntegrations:AzureIntegrations", name, args == null ? AzureIntegrationsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:cloud/azureIntegrations:AzureIntegrations", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AzureIntegrations(String name, Output id, @Nullable AzureIntegrationsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:cloud/azureIntegrations:AzureIntegrations", name, state, makeResourceOptions(options, id)); } + private static AzureIntegrationsArgs makeArgs(AzureIntegrationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AzureIntegrationsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AzureLinkAccount.java b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AzureLinkAccount.java index ccdde07d..e412f350 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AzureLinkAccount.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/AzureLinkAccount.java @@ -187,13 +187,20 @@ public AzureLinkAccount(String name, AzureLinkAccountArgs args) { * @param options A bag of options that control this resource's behavior. */ public AzureLinkAccount(String name, AzureLinkAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:cloud/azureLinkAccount:AzureLinkAccount", name, args == null ? AzureLinkAccountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:cloud/azureLinkAccount:AzureLinkAccount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AzureLinkAccount(String name, Output id, @Nullable AzureLinkAccountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:cloud/azureLinkAccount:AzureLinkAccount", name, state, makeResourceOptions(options, id)); } + private static AzureLinkAccountArgs makeArgs(AzureLinkAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AzureLinkAccountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/GcpIntegrations.java b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/GcpIntegrations.java index 4bcebb2b..a96126c1 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/GcpIntegrations.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/GcpIntegrations.java @@ -629,13 +629,20 @@ public GcpIntegrations(String name, GcpIntegrationsArgs args) { * @param options A bag of options that control this resource's behavior. */ public GcpIntegrations(String name, GcpIntegrationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:cloud/gcpIntegrations:GcpIntegrations", name, args == null ? GcpIntegrationsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:cloud/gcpIntegrations:GcpIntegrations", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private GcpIntegrations(String name, Output id, @Nullable GcpIntegrationsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:cloud/gcpIntegrations:GcpIntegrations", name, state, makeResourceOptions(options, id)); } + private static GcpIntegrationsArgs makeArgs(GcpIntegrationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GcpIntegrationsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/GcpLinkAccount.java b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/GcpLinkAccount.java index a6041668..490ad2d9 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/cloud/GcpLinkAccount.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/cloud/GcpLinkAccount.java @@ -145,13 +145,20 @@ public GcpLinkAccount(String name, GcpLinkAccountArgs args) { * @param options A bag of options that control this resource's behavior. */ public GcpLinkAccount(String name, GcpLinkAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:cloud/gcpLinkAccount:GcpLinkAccount", name, args == null ? GcpLinkAccountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:cloud/gcpLinkAccount:GcpLinkAccount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private GcpLinkAccount(String name, Output id, @Nullable GcpLinkAccountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:cloud/gcpLinkAccount:GcpLinkAccount", name, state, makeResourceOptions(options, id)); } + private static GcpLinkAccountArgs makeArgs(GcpLinkAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GcpLinkAccountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/NotificationChannelState.java b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/NotificationChannelState.java index 96c477ee..9c0a5db2 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/NotificationChannelState.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/NotificationChannelState.java @@ -124,14 +124,14 @@ public Optional> status() { } /** - * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * */ @Import(name="type") private @Nullable Output type; /** - * @return The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * @return The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * */ public Optional> type() { @@ -327,7 +327,7 @@ public Builder status(String status) { } /** - * @param type The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * @param type The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * * @return builder * @@ -338,7 +338,7 @@ public Builder type(@Nullable Output type) { } /** - * @param type The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * @param type The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/NotificationDestinationState.java b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/NotificationDestinationState.java index ab456de3..fda326f1 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/NotificationDestinationState.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/NotificationDestinationState.java @@ -188,16 +188,18 @@ public Optional> status() { } /** - * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * */ @Import(name="type") private @Nullable Output type; /** - * @return (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * @return (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * */ public Optional> type() { @@ -491,8 +493,9 @@ public Builder status(String status) { } /** - * @param type (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * @param type (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * * @return builder * @@ -503,8 +506,9 @@ public Builder type(@Nullable Output type) { } /** - * @param type (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * @param type (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/OneDashboardPageWidgetLineThresholdArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/OneDashboardPageWidgetLineThresholdArgs.java index 4fe20bad..ae8f53b6 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/OneDashboardPageWidgetLineThresholdArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/OneDashboardPageWidgetLineThresholdArgs.java @@ -5,7 +5,6 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; -import java.lang.Double; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -21,13 +20,13 @@ public final class OneDashboardPageWidgetLineThresholdArgs extends com.pulumi.re * */ @Import(name="from") - private @Nullable Output from; + private @Nullable Output from; /** * @return The value 'from' which the threshold would need to be applied. * */ - public Optional> from() { + public Optional> from() { return Optional.ofNullable(this.from); } @@ -66,13 +65,13 @@ public Optional> severity() { * */ @Import(name="to") - private @Nullable Output to; + private @Nullable Output to; /** * @return The value until which the threshold would need to be applied. * */ - public Optional> to() { + public Optional> to() { return Optional.ofNullable(this.to); } @@ -109,7 +108,7 @@ public Builder(OneDashboardPageWidgetLineThresholdArgs defaults) { * @return builder * */ - public Builder from(@Nullable Output from) { + public Builder from(@Nullable Output from) { $.from = from; return this; } @@ -120,7 +119,7 @@ public Builder from(@Nullable Output from) { * @return builder * */ - public Builder from(Double from) { + public Builder from(String from) { return from(Output.of(from)); } @@ -172,7 +171,7 @@ public Builder severity(String severity) { * @return builder * */ - public Builder to(@Nullable Output to) { + public Builder to(@Nullable Output to) { $.to = to; return this; } @@ -183,7 +182,7 @@ public Builder to(@Nullable Output to) { * @return builder * */ - public Builder to(Double to) { + public Builder to(String to) { return to(Output.of(to)); } diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/OneDashboardPageWidgetTableThresholdArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/OneDashboardPageWidgetTableThresholdArgs.java index 81176c41..39b23478 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/OneDashboardPageWidgetTableThresholdArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/OneDashboardPageWidgetTableThresholdArgs.java @@ -5,7 +5,6 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; -import java.lang.Double; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -36,13 +35,13 @@ public Optional> columnName() { * */ @Import(name="from") - private @Nullable Output from; + private @Nullable Output from; /** * @return The value 'from' which the threshold would need to be applied. * */ - public Optional> from() { + public Optional> from() { return Optional.ofNullable(this.from); } @@ -66,13 +65,13 @@ public Optional> severity() { * */ @Import(name="to") - private @Nullable Output to; + private @Nullable Output to; /** * @return The value until which the threshold would need to be applied. * */ - public Optional> to() { + public Optional> to() { return Optional.ofNullable(this.to); } @@ -130,7 +129,7 @@ public Builder columnName(String columnName) { * @return builder * */ - public Builder from(@Nullable Output from) { + public Builder from(@Nullable Output from) { $.from = from; return this; } @@ -141,7 +140,7 @@ public Builder from(@Nullable Output from) { * @return builder * */ - public Builder from(Double from) { + public Builder from(String from) { return from(Output.of(from)); } @@ -172,7 +171,7 @@ public Builder severity(String severity) { * @return builder * */ - public Builder to(@Nullable Output to) { + public Builder to(@Nullable Output to) { $.to = to; return this; } @@ -183,7 +182,7 @@ public Builder to(@Nullable Output to) { * @return builder * */ - public Builder to(Double to) { + public Builder to(String to) { return to(Output.of(to)); } diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/WorkflowDestinationArgs.java b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/WorkflowDestinationArgs.java index 98b9b20e..62e05002 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/inputs/WorkflowDestinationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/inputs/WorkflowDestinationArgs.java @@ -64,14 +64,14 @@ public Optional>> notificationTriggers() { } /** - * (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + * (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). * */ @Import(name="type") private @Nullable Output type; /** - * @return (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + * @return (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). * */ public Optional> type() { @@ -195,7 +195,7 @@ public Builder notificationTriggers(String... notificationTriggers) { } /** - * @param type (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + * @param type (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). * * @return builder * @@ -206,7 +206,7 @@ public Builder type(@Nullable Output type) { } /** - * @param type (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + * @param type (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/insights/Event.java b/sdk/java/src/main/java/com/pulumi/newrelic/insights/Event.java index a0ac4457..7114dc0c 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/insights/Event.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/insights/Event.java @@ -127,13 +127,20 @@ public Event(String name, EventArgs args) { * @param options A bag of options that control this resource's behavior. */ public Event(String name, EventArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:insights/event:Event", name, args == null ? EventArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:insights/event:Event", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Event(String name, Output id, @Nullable EventState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:insights/event:Event", name, state, makeResourceOptions(options, id)); } + private static EventArgs makeArgs(EventArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EventArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/outputs/GetNotificationDestinationResult.java b/sdk/java/src/main/java/com/pulumi/newrelic/outputs/GetNotificationDestinationResult.java index 969cd454..07ad8143 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/outputs/GetNotificationDestinationResult.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/outputs/GetNotificationDestinationResult.java @@ -49,7 +49,7 @@ public final class GetNotificationDestinationResult { */ private String status; /** - * @return The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. + * @return The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. * */ private String type; @@ -104,7 +104,7 @@ public String status() { return this.status; } /** - * @return The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. + * @return The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. * */ public String type() { diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/outputs/OneDashboardPageWidgetLineThreshold.java b/sdk/java/src/main/java/com/pulumi/newrelic/outputs/OneDashboardPageWidgetLineThreshold.java index 4451db59..60298f08 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/outputs/OneDashboardPageWidgetLineThreshold.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/outputs/OneDashboardPageWidgetLineThreshold.java @@ -4,7 +4,6 @@ package com.pulumi.newrelic.outputs; import com.pulumi.core.annotations.CustomType; -import java.lang.Double; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -16,7 +15,7 @@ public final class OneDashboardPageWidgetLineThreshold { * @return The value 'from' which the threshold would need to be applied. * */ - private @Nullable Double from; + private @Nullable String from; /** * @return The title of the dashboard. * @@ -31,14 +30,14 @@ public final class OneDashboardPageWidgetLineThreshold { * @return The value until which the threshold would need to be applied. * */ - private @Nullable Double to; + private @Nullable String to; private OneDashboardPageWidgetLineThreshold() {} /** * @return The value 'from' which the threshold would need to be applied. * */ - public Optional from() { + public Optional from() { return Optional.ofNullable(this.from); } /** @@ -59,7 +58,7 @@ public Optional severity() { * @return The value until which the threshold would need to be applied. * */ - public Optional to() { + public Optional to() { return Optional.ofNullable(this.to); } @@ -72,10 +71,10 @@ public static Builder builder(OneDashboardPageWidgetLineThreshold defaults) { } @CustomType.Builder public static final class Builder { - private @Nullable Double from; + private @Nullable String from; private @Nullable String name; private @Nullable String severity; - private @Nullable Double to; + private @Nullable String to; public Builder() {} public Builder(OneDashboardPageWidgetLineThreshold defaults) { Objects.requireNonNull(defaults); @@ -86,7 +85,7 @@ public Builder(OneDashboardPageWidgetLineThreshold defaults) { } @CustomType.Setter - public Builder from(@Nullable Double from) { + public Builder from(@Nullable String from) { this.from = from; return this; @@ -104,7 +103,7 @@ public Builder severity(@Nullable String severity) { return this; } @CustomType.Setter - public Builder to(@Nullable Double to) { + public Builder to(@Nullable String to) { this.to = to; return this; diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/outputs/OneDashboardPageWidgetTableThreshold.java b/sdk/java/src/main/java/com/pulumi/newrelic/outputs/OneDashboardPageWidgetTableThreshold.java index 762d7c12..1fd3ac17 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/outputs/OneDashboardPageWidgetTableThreshold.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/outputs/OneDashboardPageWidgetTableThreshold.java @@ -4,7 +4,6 @@ package com.pulumi.newrelic.outputs; import com.pulumi.core.annotations.CustomType; -import java.lang.Double; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -21,7 +20,7 @@ public final class OneDashboardPageWidgetTableThreshold { * @return The value 'from' which the threshold would need to be applied. * */ - private @Nullable Double from; + private @Nullable String from; /** * @return The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. * @@ -31,7 +30,7 @@ public final class OneDashboardPageWidgetTableThreshold { * @return The value until which the threshold would need to be applied. * */ - private @Nullable Double to; + private @Nullable String to; private OneDashboardPageWidgetTableThreshold() {} /** @@ -45,7 +44,7 @@ public Optional columnName() { * @return The value 'from' which the threshold would need to be applied. * */ - public Optional from() { + public Optional from() { return Optional.ofNullable(this.from); } /** @@ -59,7 +58,7 @@ public Optional severity() { * @return The value until which the threshold would need to be applied. * */ - public Optional to() { + public Optional to() { return Optional.ofNullable(this.to); } @@ -73,9 +72,9 @@ public static Builder builder(OneDashboardPageWidgetTableThreshold defaults) { @CustomType.Builder public static final class Builder { private @Nullable String columnName; - private @Nullable Double from; + private @Nullable String from; private @Nullable String severity; - private @Nullable Double to; + private @Nullable String to; public Builder() {} public Builder(OneDashboardPageWidgetTableThreshold defaults) { Objects.requireNonNull(defaults); @@ -92,7 +91,7 @@ public Builder columnName(@Nullable String columnName) { return this; } @CustomType.Setter - public Builder from(@Nullable Double from) { + public Builder from(@Nullable String from) { this.from = from; return this; @@ -104,7 +103,7 @@ public Builder severity(@Nullable String severity) { return this; } @CustomType.Setter - public Builder to(@Nullable Double to) { + public Builder to(@Nullable String to) { this.to = to; return this; diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/outputs/WorkflowDestination.java b/sdk/java/src/main/java/com/pulumi/newrelic/outputs/WorkflowDestination.java index b4a32709..d4facee0 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/outputs/WorkflowDestination.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/outputs/WorkflowDestination.java @@ -30,7 +30,7 @@ public final class WorkflowDestination { */ private @Nullable List notificationTriggers; /** - * @return (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + * @return (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). * */ private @Nullable String type; @@ -63,7 +63,7 @@ public List notificationTriggers() { return this.notificationTriggers == null ? List.of() : this.notificationTriggers; } /** - * @return (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + * @return (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). * */ public Optional type() { diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/plugins/ApplicationSettings.java b/sdk/java/src/main/java/com/pulumi/newrelic/plugins/ApplicationSettings.java index e2c9efa2..b03de603 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/plugins/ApplicationSettings.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/plugins/ApplicationSettings.java @@ -155,13 +155,20 @@ public ApplicationSettings(String name, ApplicationSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplicationSettings(String name, ApplicationSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:plugins/applicationSettings:ApplicationSettings", name, args == null ? ApplicationSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:plugins/applicationSettings:ApplicationSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplicationSettings(String name, Output id, @Nullable ApplicationSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:plugins/applicationSettings:ApplicationSettings", name, state, makeResourceOptions(options, id)); } + private static ApplicationSettingsArgs makeArgs(ApplicationSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplicationSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/plugins/Workload.java b/sdk/java/src/main/java/com/pulumi/newrelic/plugins/Workload.java index 9512528c..056ba138 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/plugins/Workload.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/plugins/Workload.java @@ -478,13 +478,20 @@ public Workload(String name, @Nullable WorkloadArgs args) { * @param options A bag of options that control this resource's behavior. */ public Workload(String name, @Nullable WorkloadArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:plugins/workload:Workload", name, args == null ? WorkloadArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:plugins/workload:Workload", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Workload(String name, Output id, @Nullable WorkloadState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:plugins/workload:Workload", name, state, makeResourceOptions(options, id)); } + private static WorkloadArgs makeArgs(@Nullable WorkloadArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WorkloadArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/AlertCondition.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/AlertCondition.java index 195ee859..10bd7b5f 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/AlertCondition.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/AlertCondition.java @@ -265,13 +265,20 @@ public AlertCondition(String name, AlertConditionArgs args) { * @param options A bag of options that control this resource's behavior. */ public AlertCondition(String name, AlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/alertCondition:AlertCondition", name, args == null ? AlertConditionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/alertCondition:AlertCondition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AlertCondition(String name, Output id, @Nullable AlertConditionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/alertCondition:AlertCondition", name, state, makeResourceOptions(options, id)); } + private static AlertConditionArgs makeArgs(AlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertConditionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) 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 9ff70519..41de299a 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 @@ -339,13 +339,20 @@ public BrokenLinksMonitor(String name, BrokenLinksMonitorArgs args) { * @param options A bag of options that control this resource's behavior. */ public BrokenLinksMonitor(String name, BrokenLinksMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor", name, args == null ? BrokenLinksMonitorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private BrokenLinksMonitor(String name, Output id, @Nullable BrokenLinksMonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor", name, state, makeResourceOptions(options, id)); } + private static BrokenLinksMonitorArgs makeArgs(BrokenLinksMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BrokenLinksMonitorArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) 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 ce68c157..84e9e1ef 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 @@ -341,13 +341,20 @@ public CertCheckMonitor(String name, CertCheckMonitorArgs args) { * @param options A bag of options that control this resource's behavior. */ public CertCheckMonitor(String name, CertCheckMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/certCheckMonitor:CertCheckMonitor", name, args == null ? CertCheckMonitorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/certCheckMonitor:CertCheckMonitor", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CertCheckMonitor(String name, Output id, @Nullable CertCheckMonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/certCheckMonitor:CertCheckMonitor", name, state, makeResourceOptions(options, id)); } + private static CertCheckMonitorArgs makeArgs(CertCheckMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CertCheckMonitorArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/Monitor.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/Monitor.java index 3ca15cb2..54ebc6c2 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/Monitor.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/Monitor.java @@ -607,13 +607,20 @@ public Monitor(String name, MonitorArgs args) { * @param options A bag of options that control this resource's behavior. */ public Monitor(String name, MonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/monitor:Monitor", name, args == null ? MonitorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/monitor:Monitor", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Monitor(String name, Output id, @Nullable MonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/monitor:Monitor", name, state, makeResourceOptions(options, id)); } + private static MonitorArgs makeArgs(MonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MonitorArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/MultiLocationAlertCondition.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/MultiLocationAlertCondition.java index 0c3a5410..1f5664d3 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/MultiLocationAlertCondition.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/MultiLocationAlertCondition.java @@ -355,13 +355,20 @@ public MultiLocationAlertCondition(String name, MultiLocationAlertConditionArgs * @param options A bag of options that control this resource's behavior. */ public MultiLocationAlertCondition(String name, MultiLocationAlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition", name, args == null ? MultiLocationAlertConditionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MultiLocationAlertCondition(String name, Output id, @Nullable MultiLocationAlertConditionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition", name, state, makeResourceOptions(options, id)); } + private static MultiLocationAlertConditionArgs makeArgs(MultiLocationAlertConditionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MultiLocationAlertConditionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/PrivateLocation.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/PrivateLocation.java index 1a4c9909..7d627262 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/PrivateLocation.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/PrivateLocation.java @@ -200,13 +200,20 @@ public PrivateLocation(String name, PrivateLocationArgs args) { * @param options A bag of options that control this resource's behavior. */ public PrivateLocation(String name, PrivateLocationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/privateLocation:PrivateLocation", name, args == null ? PrivateLocationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/privateLocation:PrivateLocation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private PrivateLocation(String name, Output id, @Nullable PrivateLocationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/privateLocation:PrivateLocation", name, state, makeResourceOptions(options, id)); } + private static PrivateLocationArgs makeArgs(PrivateLocationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? PrivateLocationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/ScriptMonitor.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/ScriptMonitor.java index 80bdbd2f..bbd62426 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/ScriptMonitor.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/ScriptMonitor.java @@ -535,13 +535,20 @@ public ScriptMonitor(String name, ScriptMonitorArgs args) { * @param options A bag of options that control this resource's behavior. */ public ScriptMonitor(String name, ScriptMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/scriptMonitor:ScriptMonitor", name, args == null ? ScriptMonitorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/scriptMonitor:ScriptMonitor", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ScriptMonitor(String name, Output id, @Nullable ScriptMonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/scriptMonitor:ScriptMonitor", name, state, makeResourceOptions(options, id)); } + private static ScriptMonitorArgs makeArgs(ScriptMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ScriptMonitorArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/SecureCredential.java b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/SecureCredential.java index d7b59aca..6045d7bb 100644 --- a/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/SecureCredential.java +++ b/sdk/java/src/main/java/com/pulumi/newrelic/synthetics/SecureCredential.java @@ -159,13 +159,20 @@ public SecureCredential(String name, SecureCredentialArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecureCredential(String name, SecureCredentialArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/secureCredential:SecureCredential", name, args == null ? SecureCredentialArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/secureCredential:SecureCredential", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecureCredential(String name, Output id, @Nullable SecureCredentialState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/secureCredential:SecureCredential", name, state, makeResourceOptions(options, id)); } + private static SecureCredentialArgs makeArgs(SecureCredentialArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecureCredentialArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) 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 2e9fe2ed..42a9dae0 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 @@ -373,13 +373,20 @@ public StepMonitor(String name, StepMonitorArgs args) { * @param options A bag of options that control this resource's behavior. */ public StepMonitor(String name, StepMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("newrelic:synthetics/stepMonitor:StepMonitor", name, args == null ? StepMonitorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("newrelic:synthetics/stepMonitor:StepMonitor", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private StepMonitor(String name, Output id, @Nullable StepMonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("newrelic:synthetics/stepMonitor:StepMonitor", name, state, makeResourceOptions(options, id)); } + private static StepMonitorArgs makeArgs(StepMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? StepMonitorArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/nodejs/getNotificationDestination.ts b/sdk/nodejs/getNotificationDestination.ts index 64aa6783..4570599d 100644 --- a/sdk/nodejs/getNotificationDestination.ts +++ b/sdk/nodejs/getNotificationDestination.ts @@ -73,7 +73,7 @@ export interface GetNotificationDestinationResult { */ readonly status: string; /** - * The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. + * The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. */ readonly type: string; } diff --git a/sdk/nodejs/notificationChannel.ts b/sdk/nodejs/notificationChannel.ts index d88bace0..9a215899 100644 --- a/sdk/nodejs/notificationChannel.ts +++ b/sdk/nodejs/notificationChannel.ts @@ -62,6 +62,19 @@ import * as utilities from "./utilities"; * ], * }); * ``` + * ##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp) + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as newrelic from "@pulumi/newrelic"; + * + * const foo = new newrelic.NotificationChannel("foo", { + * accountId: "12345678", + * name: "servicenow-app-example", + * type: "SERVICE_NOW_APP", + * destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8", + * product: "IINT", + * }); + * ``` * * ##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email) * ```typescript @@ -388,7 +401,7 @@ export class NotificationChannel extends pulumi.CustomResource { */ public /*out*/ readonly status!: pulumi.Output; /** - * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. */ public readonly type!: pulumi.Output; @@ -474,7 +487,7 @@ export interface NotificationChannelState { */ status?: pulumi.Input; /** - * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. */ type?: pulumi.Input; } @@ -508,7 +521,7 @@ export interface NotificationChannelArgs { */ properties: pulumi.Input[]>; /** - * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. */ type: pulumi.Input; } diff --git a/sdk/nodejs/notificationDestination.ts b/sdk/nodejs/notificationDestination.ts index 61bb6436..617126dc 100644 --- a/sdk/nodejs/notificationDestination.ts +++ b/sdk/nodejs/notificationDestination.ts @@ -148,8 +148,9 @@ export class NotificationDestination extends pulumi.CustomResource { */ public /*out*/ readonly status!: pulumi.Output; /** - * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). */ public readonly type!: pulumi.Output; @@ -253,8 +254,9 @@ export interface NotificationDestinationState { */ status?: pulumi.Input; /** - * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). */ type?: pulumi.Input; } @@ -296,8 +298,9 @@ export interface NotificationDestinationArgs { */ secureUrl?: pulumi.Input; /** - * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - * PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + * (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + * PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + * MOBILE_PUSH, EVENT_BRIDGE). */ type: pulumi.Input; } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 8439f1dc..51b72d04 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -1805,7 +1805,7 @@ export interface OneDashboardPageWidgetLineThreshold { /** * The value 'from' which the threshold would need to be applied. */ - from?: pulumi.Input; + from?: pulumi.Input; /** * The title of the dashboard. */ @@ -1817,7 +1817,7 @@ export interface OneDashboardPageWidgetLineThreshold { /** * The value until which the threshold would need to be applied. */ - to?: pulumi.Input; + to?: pulumi.Input; } export interface OneDashboardPageWidgetLineUnit { @@ -2541,7 +2541,7 @@ export interface OneDashboardPageWidgetTableThreshold { /** * The value 'from' which the threshold would need to be applied. */ - from?: pulumi.Input; + from?: pulumi.Input; /** * The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. */ @@ -2549,7 +2549,7 @@ export interface OneDashboardPageWidgetTableThreshold { /** * The value until which the threshold would need to be applied. */ - to?: pulumi.Input; + to?: pulumi.Input; } export interface OneDashboardPageWidgetTableUnit { @@ -2863,7 +2863,7 @@ export interface WorkflowDestination { */ notificationTriggers?: pulumi.Input[]>; /** - * (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + * (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). */ type?: pulumi.Input; /** diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 7a275d90..627e2063 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -1858,7 +1858,7 @@ export interface OneDashboardPageWidgetLineThreshold { /** * The value 'from' which the threshold would need to be applied. */ - from?: number; + from?: string; /** * The title of the dashboard. */ @@ -1870,7 +1870,7 @@ export interface OneDashboardPageWidgetLineThreshold { /** * The value until which the threshold would need to be applied. */ - to?: number; + to?: string; } export interface OneDashboardPageWidgetLineUnit { @@ -2594,7 +2594,7 @@ export interface OneDashboardPageWidgetTableThreshold { /** * The value 'from' which the threshold would need to be applied. */ - from?: number; + from?: string; /** * The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. */ @@ -2602,7 +2602,7 @@ export interface OneDashboardPageWidgetTableThreshold { /** * The value until which the threshold would need to be applied. */ - to?: number; + to?: string; } export interface OneDashboardPageWidgetTableUnit { @@ -2916,7 +2916,7 @@ export interface WorkflowDestination { */ notificationTriggers: string[]; /** - * (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + * (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). */ type: string; /** diff --git a/sdk/python/pulumi_newrelic/_inputs.py b/sdk/python/pulumi_newrelic/_inputs.py index 9f71de96..768013f1 100644 --- a/sdk/python/pulumi_newrelic/_inputs.py +++ b/sdk/python/pulumi_newrelic/_inputs.py @@ -6781,15 +6781,15 @@ def series_name(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class OneDashboardPageWidgetLineThresholdArgs: def __init__(__self__, *, - from_: Optional[pulumi.Input[float]] = None, + from_: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, severity: Optional[pulumi.Input[str]] = None, - to: Optional[pulumi.Input[float]] = None): + to: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[float] from_: The value 'from' which the threshold would need to be applied. + :param pulumi.Input[str] from_: The value 'from' which the threshold would need to be applied. :param pulumi.Input[str] name: The title of the dashboard. :param pulumi.Input[str] severity: The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. - :param pulumi.Input[float] to: The value until which the threshold would need to be applied. + :param pulumi.Input[str] to: The value until which the threshold would need to be applied. """ if from_ is not None: pulumi.set(__self__, "from_", from_) @@ -6802,14 +6802,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="from") - def from_(self) -> Optional[pulumi.Input[float]]: + def from_(self) -> Optional[pulumi.Input[str]]: """ The value 'from' which the threshold would need to be applied. """ return pulumi.get(self, "from_") @from_.setter - def from_(self, value: Optional[pulumi.Input[float]]): + def from_(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "from_", value) @property @@ -6838,14 +6838,14 @@ def severity(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter - def to(self) -> Optional[pulumi.Input[float]]: + def to(self) -> Optional[pulumi.Input[str]]: """ The value until which the threshold would need to be applied. """ return pulumi.get(self, "to") @to.setter - def to(self, value: Optional[pulumi.Input[float]]): + def to(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "to", value) @@ -9521,14 +9521,14 @@ def series_name(self, value: Optional[pulumi.Input[str]]): class OneDashboardPageWidgetTableThresholdArgs: def __init__(__self__, *, column_name: Optional[pulumi.Input[str]] = None, - from_: Optional[pulumi.Input[float]] = None, + from_: Optional[pulumi.Input[str]] = None, severity: Optional[pulumi.Input[str]] = None, - to: Optional[pulumi.Input[float]] = None): + to: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] column_name: The name of the column in the table, to which the threshold would need to be applied. - :param pulumi.Input[float] from_: The value 'from' which the threshold would need to be applied. + :param pulumi.Input[str] from_: The value 'from' which the threshold would need to be applied. :param pulumi.Input[str] severity: The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. - :param pulumi.Input[float] to: The value until which the threshold would need to be applied. + :param pulumi.Input[str] to: The value until which the threshold would need to be applied. """ if column_name is not None: pulumi.set(__self__, "column_name", column_name) @@ -9553,14 +9553,14 @@ def column_name(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="from") - def from_(self) -> Optional[pulumi.Input[float]]: + def from_(self) -> Optional[pulumi.Input[str]]: """ The value 'from' which the threshold would need to be applied. """ return pulumi.get(self, "from_") @from_.setter - def from_(self, value: Optional[pulumi.Input[float]]): + def from_(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "from_", value) @property @@ -9577,14 +9577,14 @@ def severity(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter - def to(self) -> Optional[pulumi.Input[float]]: + def to(self) -> Optional[pulumi.Input[str]]: """ The value until which the threshold would need to be applied. """ return pulumi.get(self, "to") @to.setter - def to(self, value: Optional[pulumi.Input[float]]): + def to(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "to", value) @@ -10667,7 +10667,7 @@ def __init__(__self__, *, :param pulumi.Input[str] channel_id: (Required) Destination's channel id. :param pulumi.Input[str] name: The name of the workflow. :param pulumi.Input[Sequence[pulumi.Input[str]]] notification_triggers: List of triggers to notify about in this destination configuration. - :param pulumi.Input[str] type: (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + :param pulumi.Input[str] type: (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). :param pulumi.Input[bool] update_original_message: Update original notification message (Slack channels only) """ pulumi.set(__self__, "channel_id", channel_id) @@ -10720,7 +10720,7 @@ def notification_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Inp @pulumi.getter def type(self) -> Optional[pulumi.Input[str]]: """ - (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). """ return pulumi.get(self, "type") diff --git a/sdk/python/pulumi_newrelic/get_notification_destination.py b/sdk/python/pulumi_newrelic/get_notification_destination.py index 3ce2598e..91235b5a 100644 --- a/sdk/python/pulumi_newrelic/get_notification_destination.py +++ b/sdk/python/pulumi_newrelic/get_notification_destination.py @@ -114,7 +114,7 @@ def status(self) -> str: @pulumi.getter def type(self) -> str: """ - The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. + The notification destination type, either: `EMAIL`, `SERVICE_NOW`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`, `SLACK` and `SLACK_COLLABORATION`. """ return pulumi.get(self, "type") diff --git a/sdk/python/pulumi_newrelic/notification_channel.py b/sdk/python/pulumi_newrelic/notification_channel.py index a52bb52b..76ab7103 100644 --- a/sdk/python/pulumi_newrelic/notification_channel.py +++ b/sdk/python/pulumi_newrelic/notification_channel.py @@ -28,7 +28,7 @@ def __init__(__self__, *, :param pulumi.Input[str] destination_id: The id of the destination. :param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows). :param pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details. - :param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + :param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. :param pulumi.Input[str] account_id: Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used. :param pulumi.Input[bool] active: Indicates whether the channel is active. :param pulumi.Input[str] name: The name of the channel. @@ -84,7 +84,7 @@ def properties(self, value: pulumi.Input[Sequence[pulumi.Input['NotificationChan @pulumi.getter def type(self) -> pulumi.Input[str]: """ - The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. """ return pulumi.get(self, "type") @@ -149,7 +149,7 @@ def __init__(__self__, *, :param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows). :param pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details. :param pulumi.Input[str] status: The status of the channel. - :param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + :param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. """ if account_id is not None: pulumi.set(__self__, "account_id", account_id) @@ -256,7 +256,7 @@ def status(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def type(self) -> Optional[pulumi.Input[str]]: """ - The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. """ return pulumi.get(self, "type") @@ -332,6 +332,18 @@ def __init__(__self__, ), ]) ``` + ##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp) + ```python + import pulumi + import pulumi_newrelic as newrelic + + foo = newrelic.NotificationChannel("foo", + account_id="12345678", + name="servicenow-app-example", + type="SERVICE_NOW_APP", + destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8", + product="IINT") + ``` ##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email) ```python @@ -600,7 +612,7 @@ def __init__(__self__, :param pulumi.Input[str] name: The name of the channel. :param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows). :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationChannelPropertyArgs']]]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details. - :param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + :param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. """ ... @overload @@ -662,6 +674,18 @@ def __init__(__self__, ), ]) ``` + ##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp) + ```python + import pulumi + import pulumi_newrelic as newrelic + + foo = newrelic.NotificationChannel("foo", + account_id="12345678", + name="servicenow-app-example", + type="SERVICE_NOW_APP", + destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8", + product="IINT") + ``` ##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email) ```python @@ -1001,7 +1025,7 @@ def get(resource_name: str, :param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows). :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationChannelPropertyArgs']]]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details. :param pulumi.Input[str] status: The status of the channel. - :param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + :param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -1077,7 +1101,7 @@ def status(self) -> pulumi.Output[str]: @pulumi.getter def type(self) -> pulumi.Output[str]: """ - The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. + The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`. """ return pulumi.get(self, "type") diff --git a/sdk/python/pulumi_newrelic/notification_destination.py b/sdk/python/pulumi_newrelic/notification_destination.py index 90c89e24..5b73b1b1 100644 --- a/sdk/python/pulumi_newrelic/notification_destination.py +++ b/sdk/python/pulumi_newrelic/notification_destination.py @@ -28,8 +28,9 @@ def __init__(__self__, *, """ The set of arguments for constructing a NotificationDestination resource. :param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details. - :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + MOBILE_PUSH, EVENT_BRIDGE). :param pulumi.Input[str] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used. :param pulumi.Input[bool] active: Indicates whether the destination is active. :param pulumi.Input['NotificationDestinationAuthBasicArgs'] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details. @@ -71,8 +72,9 @@ def properties(self, value: pulumi.Input[Sequence[pulumi.Input['NotificationDest @pulumi.getter def type(self) -> pulumi.Input[str]: """ - (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + MOBILE_PUSH, EVENT_BRIDGE). """ return pulumi.get(self, "type") @@ -193,8 +195,9 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details. :param pulumi.Input['NotificationDestinationSecureUrlArgs'] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details. :param pulumi.Input[str] status: The status of the destination. - :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + MOBILE_PUSH, EVENT_BRIDGE). """ if account_id is not None: pulumi.set(__self__, "account_id", account_id) @@ -357,8 +360,9 @@ def status(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def type(self) -> Optional[pulumi.Input[str]]: """ - (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + MOBILE_PUSH, EVENT_BRIDGE). """ return pulumi.get(self, "type") @@ -461,8 +465,9 @@ def __init__(__self__, :param pulumi.Input[str] name: The name of the destination. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details. :param pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details. - :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + MOBILE_PUSH, EVENT_BRIDGE). """ ... @overload @@ -628,8 +633,9 @@ def get(resource_name: str, :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details. :param pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details. :param pulumi.Input[str] status: The status of the destination. - :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + MOBILE_PUSH, EVENT_BRIDGE). """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -741,8 +747,9 @@ def status(self) -> pulumi.Output[str]: @pulumi.getter def type(self) -> pulumi.Output[str]: """ - (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, - PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE). + (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, SERVICE_NOW_APP, + PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, + MOBILE_PUSH, EVENT_BRIDGE). """ return pulumi.get(self, "type") diff --git a/sdk/python/pulumi_newrelic/outputs.py b/sdk/python/pulumi_newrelic/outputs.py index 28bebf4d..74f7e7c9 100644 --- a/sdk/python/pulumi_newrelic/outputs.py +++ b/sdk/python/pulumi_newrelic/outputs.py @@ -6980,15 +6980,15 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - from_: Optional[float] = None, + from_: Optional[str] = None, name: Optional[str] = None, severity: Optional[str] = None, - to: Optional[float] = None): + to: Optional[str] = None): """ - :param float from_: The value 'from' which the threshold would need to be applied. + :param str from_: The value 'from' which the threshold would need to be applied. :param str name: The title of the dashboard. :param str severity: The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. - :param float to: The value until which the threshold would need to be applied. + :param str to: The value until which the threshold would need to be applied. """ if from_ is not None: pulumi.set(__self__, "from_", from_) @@ -7001,7 +7001,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="from") - def from_(self) -> Optional[float]: + def from_(self) -> Optional[str]: """ The value 'from' which the threshold would need to be applied. """ @@ -7025,7 +7025,7 @@ def severity(self) -> Optional[str]: @property @pulumi.getter - def to(self) -> Optional[float]: + def to(self) -> Optional[str]: """ The value until which the threshold would need to be applied. """ @@ -9887,14 +9887,14 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, column_name: Optional[str] = None, - from_: Optional[float] = None, + from_: Optional[str] = None, severity: Optional[str] = None, - to: Optional[float] = None): + to: Optional[str] = None): """ :param str column_name: The name of the column in the table, to which the threshold would need to be applied. - :param float from_: The value 'from' which the threshold would need to be applied. + :param str from_: The value 'from' which the threshold would need to be applied. :param str severity: The severity of the threshold, which would affect the visual appearance of the threshold (such as its color) accordingly. The value of this attribute would need to be one of the following - `warning`, `severe`, `critical`, `success`, `unavailable` which correspond to the severity labels _Warning_, _Approaching critical_, _Critical_, _Good_, _Neutral_ in the dropdown that helps specify the severity of thresholds in table widgets in the UI, respectively. - :param float to: The value until which the threshold would need to be applied. + :param str to: The value until which the threshold would need to be applied. """ if column_name is not None: pulumi.set(__self__, "column_name", column_name) @@ -9915,7 +9915,7 @@ def column_name(self) -> Optional[str]: @property @pulumi.getter(name="from") - def from_(self) -> Optional[float]: + def from_(self) -> Optional[str]: """ The value 'from' which the threshold would need to be applied. """ @@ -9931,7 +9931,7 @@ def severity(self) -> Optional[str]: @property @pulumi.getter - def to(self) -> Optional[float]: + def to(self) -> Optional[str]: """ The value until which the threshold would need to be applied. """ @@ -10999,7 +10999,7 @@ def __init__(__self__, *, :param str channel_id: (Required) Destination's channel id. :param str name: The name of the workflow. :param Sequence[str] notification_triggers: List of triggers to notify about in this destination configuration. - :param str type: (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + :param str type: (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). :param bool update_original_message: Update original notification message (Slack channels only) """ pulumi.set(__self__, "channel_id", channel_id) @@ -11040,7 +11040,7 @@ def notification_triggers(self) -> Optional[Sequence[str]]: @pulumi.getter def type(self) -> Optional[str]: """ - (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). + (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, SERVICE_NOW_APP, WEBHOOK, MOBILE_PUSH, SLACK, JIRA). """ return pulumi.get(self, "type") diff --git a/upstream b/upstream index 617d473b..af21a810 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 617d473bf2474b830b0e3bff084335f3d3d3f693 +Subproject commit af21a8106b700b32059d52739d2880cfa7ba53ef