pulumi-newrelic 5.42.1__py3-none-any.whl → 5.58.0a1766556761__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_newrelic/__init__.py +19 -1
- pulumi_newrelic/_inputs.py +4314 -3779
- pulumi_newrelic/_utilities.py +1 -1
- pulumi_newrelic/account_management.py +37 -36
- pulumi_newrelic/alert_channel.py +63 -62
- pulumi_newrelic/alert_condition.py +219 -218
- pulumi_newrelic/alert_muting_rule.py +96 -95
- pulumi_newrelic/alert_policy.py +71 -70
- pulumi_newrelic/alert_policy_channel.py +54 -53
- pulumi_newrelic/api_access_key.py +186 -201
- pulumi_newrelic/browser_application.py +115 -114
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +2226 -2118
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +101 -96
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +71 -70
- pulumi_newrelic/cloud/aws_integrations.py +240 -192
- pulumi_newrelic/cloud/aws_link_account.py +71 -70
- pulumi_newrelic/cloud/azure_integrations.py +180 -132
- pulumi_newrelic/cloud/azure_link_account.py +105 -104
- pulumi_newrelic/cloud/gcp_integrations.py +115 -114
- pulumi_newrelic/cloud/gcp_link_account.py +56 -55
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1512 -1410
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +2 -2
- pulumi_newrelic/config/vars.py +15 -15
- pulumi_newrelic/data_partition_rule.py +114 -113
- pulumi_newrelic/entity_tags.py +79 -22
- pulumi_newrelic/events_to_metrics_rule.py +97 -96
- pulumi_newrelic/get_account.py +22 -22
- pulumi_newrelic/get_alert_channel.py +53 -21
- pulumi_newrelic/get_alert_policy.py +52 -26
- pulumi_newrelic/get_application.py +14 -14
- pulumi_newrelic/get_authentication_domain.py +10 -10
- pulumi_newrelic/get_cloud_account.py +22 -22
- pulumi_newrelic/get_entity.py +53 -53
- pulumi_newrelic/get_group.py +22 -22
- pulumi_newrelic/get_key_transaction.py +26 -26
- pulumi_newrelic/get_notification_destination.py +31 -31
- pulumi_newrelic/get_obfuscation_expression.py +16 -16
- pulumi_newrelic/get_service_level_alert_helper.py +54 -54
- pulumi_newrelic/get_test_grok_pattern.py +23 -23
- pulumi_newrelic/get_user.py +22 -22
- pulumi_newrelic/group.py +54 -53
- pulumi_newrelic/infra_alert_condition.py +257 -256
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +33 -33
- pulumi_newrelic/insights/event.py +6 -5
- pulumi_newrelic/insights/outputs.py +23 -23
- pulumi_newrelic/key_transaction.py +106 -105
- pulumi_newrelic/log_parsing_rule.py +148 -147
- pulumi_newrelic/monitor_downtime.py +148 -154
- pulumi_newrelic/notification_channel.py +218 -163
- pulumi_newrelic/notification_destination.py +123 -136
- pulumi_newrelic/nrql_alert_condition.py +513 -414
- pulumi_newrelic/nrql_drop_rule.py +108 -147
- pulumi_newrelic/obfuscation_expression.py +71 -70
- pulumi_newrelic/obfuscation_rule.py +91 -90
- pulumi_newrelic/one_dashboard.py +95 -94
- pulumi_newrelic/one_dashboard_json.py +64 -63
- pulumi_newrelic/one_dashboard_raw.py +116 -115
- pulumi_newrelic/outputs.py +3026 -2665
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +159 -159
- pulumi_newrelic/plugins/application_settings.py +186 -171
- pulumi_newrelic/plugins/outputs.py +109 -109
- pulumi_newrelic/plugins/workload.py +133 -132
- pulumi_newrelic/provider.py +136 -116
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +78 -77
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +128 -128
- pulumi_newrelic/synthetics/alert_condition.py +97 -96
- pulumi_newrelic/synthetics/broken_links_monitor.py +218 -189
- pulumi_newrelic/synthetics/cert_check_monitor.py +226 -197
- pulumi_newrelic/synthetics/get_private_location.py +22 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +20 -20
- pulumi_newrelic/synthetics/monitor.py +399 -370
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +120 -119
- pulumi_newrelic/synthetics/outputs.py +86 -86
- pulumi_newrelic/synthetics/private_location.py +107 -106
- pulumi_newrelic/synthetics/script_monitor.py +385 -294
- pulumi_newrelic/synthetics/secure_credential.py +88 -87
- pulumi_newrelic/synthetics/step_monitor.py +241 -212
- pulumi_newrelic/user.py +71 -70
- pulumi_newrelic/workflow.py +141 -140
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/METADATA +4 -4
- pulumi_newrelic-5.58.0a1766556761.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.42.1.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -21,22 +21,22 @@ __all__ = ['NotificationChannelArgs', 'NotificationChannel']
|
|
|
21
21
|
@pulumi.input_type
|
|
22
22
|
class NotificationChannelArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
|
-
destination_id: pulumi.Input[str],
|
|
25
|
-
product: pulumi.Input[str],
|
|
24
|
+
destination_id: pulumi.Input[_builtins.str],
|
|
25
|
+
product: pulumi.Input[_builtins.str],
|
|
26
26
|
properties: pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]],
|
|
27
|
-
type: pulumi.Input[str],
|
|
28
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
29
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
30
|
-
name: Optional[pulumi.Input[str]] = None):
|
|
27
|
+
type: pulumi.Input[_builtins.str],
|
|
28
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
31
31
|
"""
|
|
32
32
|
The set of arguments for constructing a NotificationChannel resource.
|
|
33
|
-
:param pulumi.Input[str] destination_id: The id of the destination.
|
|
34
|
-
:param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
33
|
+
:param pulumi.Input[_builtins.str] destination_id: The id of the destination.
|
|
34
|
+
:param pulumi.Input[_builtins.str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
35
35
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
|
|
36
|
-
: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 `
|
|
37
|
-
: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.
|
|
38
|
-
:param pulumi.Input[bool] active: Indicates whether the channel is active.
|
|
39
|
-
:param pulumi.Input[str] name: The name of the channel.
|
|
36
|
+
:param pulumi.Input[_builtins.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`, `PAGERDUTY_SERVICE_INTEGRATION`, `MICROSOFT_TEAMS` or `WORKFLOW_AUTOMATION`.
|
|
37
|
+
:param pulumi.Input[_builtins.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.
|
|
38
|
+
:param pulumi.Input[_builtins.bool] active: Indicates whether the channel is active.
|
|
39
|
+
:param pulumi.Input[_builtins.str] name: The name of the channel.
|
|
40
40
|
"""
|
|
41
41
|
pulumi.set(__self__, "destination_id", destination_id)
|
|
42
42
|
pulumi.set(__self__, "product", product)
|
|
@@ -49,31 +49,31 @@ class NotificationChannelArgs:
|
|
|
49
49
|
if name is not None:
|
|
50
50
|
pulumi.set(__self__, "name", name)
|
|
51
51
|
|
|
52
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
53
53
|
@pulumi.getter(name="destinationId")
|
|
54
|
-
def destination_id(self) -> pulumi.Input[str]:
|
|
54
|
+
def destination_id(self) -> pulumi.Input[_builtins.str]:
|
|
55
55
|
"""
|
|
56
56
|
The id of the destination.
|
|
57
57
|
"""
|
|
58
58
|
return pulumi.get(self, "destination_id")
|
|
59
59
|
|
|
60
60
|
@destination_id.setter
|
|
61
|
-
def destination_id(self, value: pulumi.Input[str]):
|
|
61
|
+
def destination_id(self, value: pulumi.Input[_builtins.str]):
|
|
62
62
|
pulumi.set(self, "destination_id", value)
|
|
63
63
|
|
|
64
|
-
@property
|
|
64
|
+
@_builtins.property
|
|
65
65
|
@pulumi.getter
|
|
66
|
-
def product(self) -> pulumi.Input[str]:
|
|
66
|
+
def product(self) -> pulumi.Input[_builtins.str]:
|
|
67
67
|
"""
|
|
68
68
|
The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
69
69
|
"""
|
|
70
70
|
return pulumi.get(self, "product")
|
|
71
71
|
|
|
72
72
|
@product.setter
|
|
73
|
-
def product(self, value: pulumi.Input[str]):
|
|
73
|
+
def product(self, value: pulumi.Input[_builtins.str]):
|
|
74
74
|
pulumi.set(self, "product", value)
|
|
75
75
|
|
|
76
|
-
@property
|
|
76
|
+
@_builtins.property
|
|
77
77
|
@pulumi.getter
|
|
78
78
|
def properties(self) -> pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]]:
|
|
79
79
|
"""
|
|
@@ -85,76 +85,76 @@ class NotificationChannelArgs:
|
|
|
85
85
|
def properties(self, value: pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]]):
|
|
86
86
|
pulumi.set(self, "properties", value)
|
|
87
87
|
|
|
88
|
-
@property
|
|
88
|
+
@_builtins.property
|
|
89
89
|
@pulumi.getter
|
|
90
|
-
def type(self) -> pulumi.Input[str]:
|
|
90
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
91
91
|
"""
|
|
92
|
-
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 `
|
|
92
|
+
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`, `PAGERDUTY_SERVICE_INTEGRATION`, `MICROSOFT_TEAMS` or `WORKFLOW_AUTOMATION`.
|
|
93
93
|
"""
|
|
94
94
|
return pulumi.get(self, "type")
|
|
95
95
|
|
|
96
96
|
@type.setter
|
|
97
|
-
def type(self, value: pulumi.Input[str]):
|
|
97
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
98
98
|
pulumi.set(self, "type", value)
|
|
99
99
|
|
|
100
|
-
@property
|
|
100
|
+
@_builtins.property
|
|
101
101
|
@pulumi.getter(name="accountId")
|
|
102
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
|
102
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
103
103
|
"""
|
|
104
104
|
Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
|
|
105
105
|
"""
|
|
106
106
|
return pulumi.get(self, "account_id")
|
|
107
107
|
|
|
108
108
|
@account_id.setter
|
|
109
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
|
109
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
110
110
|
pulumi.set(self, "account_id", value)
|
|
111
111
|
|
|
112
|
-
@property
|
|
112
|
+
@_builtins.property
|
|
113
113
|
@pulumi.getter
|
|
114
|
-
def active(self) -> Optional[pulumi.Input[bool]]:
|
|
114
|
+
def active(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
115
115
|
"""
|
|
116
116
|
Indicates whether the channel is active.
|
|
117
117
|
"""
|
|
118
118
|
return pulumi.get(self, "active")
|
|
119
119
|
|
|
120
120
|
@active.setter
|
|
121
|
-
def active(self, value: Optional[pulumi.Input[bool]]):
|
|
121
|
+
def active(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
122
122
|
pulumi.set(self, "active", value)
|
|
123
123
|
|
|
124
|
-
@property
|
|
124
|
+
@_builtins.property
|
|
125
125
|
@pulumi.getter
|
|
126
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
126
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
127
127
|
"""
|
|
128
128
|
The name of the channel.
|
|
129
129
|
"""
|
|
130
130
|
return pulumi.get(self, "name")
|
|
131
131
|
|
|
132
132
|
@name.setter
|
|
133
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
133
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
134
134
|
pulumi.set(self, "name", value)
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
@pulumi.input_type
|
|
138
138
|
class _NotificationChannelState:
|
|
139
139
|
def __init__(__self__, *,
|
|
140
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
141
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
142
|
-
destination_id: Optional[pulumi.Input[str]] = None,
|
|
143
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
144
|
-
product: Optional[pulumi.Input[str]] = None,
|
|
140
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
141
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
142
|
+
destination_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
143
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
144
|
+
product: Optional[pulumi.Input[_builtins.str]] = None,
|
|
145
145
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]]] = None,
|
|
146
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
147
|
-
type: Optional[pulumi.Input[str]] = None):
|
|
146
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
147
|
+
type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
148
148
|
"""
|
|
149
149
|
Input properties used for looking up and filtering NotificationChannel resources.
|
|
150
|
-
: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.
|
|
151
|
-
:param pulumi.Input[bool] active: Indicates whether the channel is active.
|
|
152
|
-
:param pulumi.Input[str] destination_id: The id of the destination.
|
|
153
|
-
:param pulumi.Input[str] name: The name of the channel.
|
|
154
|
-
:param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
150
|
+
:param pulumi.Input[_builtins.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.
|
|
151
|
+
:param pulumi.Input[_builtins.bool] active: Indicates whether the channel is active.
|
|
152
|
+
:param pulumi.Input[_builtins.str] destination_id: The id of the destination.
|
|
153
|
+
:param pulumi.Input[_builtins.str] name: The name of the channel.
|
|
154
|
+
:param pulumi.Input[_builtins.str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
155
155
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
|
|
156
|
-
:param pulumi.Input[str] status: The status of the channel.
|
|
157
|
-
: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 `
|
|
156
|
+
:param pulumi.Input[_builtins.str] status: The status of the channel.
|
|
157
|
+
:param pulumi.Input[_builtins.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`, `PAGERDUTY_SERVICE_INTEGRATION`, `MICROSOFT_TEAMS` or `WORKFLOW_AUTOMATION`.
|
|
158
158
|
"""
|
|
159
159
|
if account_id is not None:
|
|
160
160
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -173,67 +173,67 @@ class _NotificationChannelState:
|
|
|
173
173
|
if type is not None:
|
|
174
174
|
pulumi.set(__self__, "type", type)
|
|
175
175
|
|
|
176
|
-
@property
|
|
176
|
+
@_builtins.property
|
|
177
177
|
@pulumi.getter(name="accountId")
|
|
178
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
|
178
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
179
179
|
"""
|
|
180
180
|
Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
|
|
181
181
|
"""
|
|
182
182
|
return pulumi.get(self, "account_id")
|
|
183
183
|
|
|
184
184
|
@account_id.setter
|
|
185
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
|
185
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
186
186
|
pulumi.set(self, "account_id", value)
|
|
187
187
|
|
|
188
|
-
@property
|
|
188
|
+
@_builtins.property
|
|
189
189
|
@pulumi.getter
|
|
190
|
-
def active(self) -> Optional[pulumi.Input[bool]]:
|
|
190
|
+
def active(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
191
191
|
"""
|
|
192
192
|
Indicates whether the channel is active.
|
|
193
193
|
"""
|
|
194
194
|
return pulumi.get(self, "active")
|
|
195
195
|
|
|
196
196
|
@active.setter
|
|
197
|
-
def active(self, value: Optional[pulumi.Input[bool]]):
|
|
197
|
+
def active(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
198
198
|
pulumi.set(self, "active", value)
|
|
199
199
|
|
|
200
|
-
@property
|
|
200
|
+
@_builtins.property
|
|
201
201
|
@pulumi.getter(name="destinationId")
|
|
202
|
-
def destination_id(self) -> Optional[pulumi.Input[str]]:
|
|
202
|
+
def destination_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
203
203
|
"""
|
|
204
204
|
The id of the destination.
|
|
205
205
|
"""
|
|
206
206
|
return pulumi.get(self, "destination_id")
|
|
207
207
|
|
|
208
208
|
@destination_id.setter
|
|
209
|
-
def destination_id(self, value: Optional[pulumi.Input[str]]):
|
|
209
|
+
def destination_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
210
210
|
pulumi.set(self, "destination_id", value)
|
|
211
211
|
|
|
212
|
-
@property
|
|
212
|
+
@_builtins.property
|
|
213
213
|
@pulumi.getter
|
|
214
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
214
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
215
215
|
"""
|
|
216
216
|
The name of the channel.
|
|
217
217
|
"""
|
|
218
218
|
return pulumi.get(self, "name")
|
|
219
219
|
|
|
220
220
|
@name.setter
|
|
221
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
221
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
222
222
|
pulumi.set(self, "name", value)
|
|
223
223
|
|
|
224
|
-
@property
|
|
224
|
+
@_builtins.property
|
|
225
225
|
@pulumi.getter
|
|
226
|
-
def product(self) -> Optional[pulumi.Input[str]]:
|
|
226
|
+
def product(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
227
227
|
"""
|
|
228
228
|
The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
229
229
|
"""
|
|
230
230
|
return pulumi.get(self, "product")
|
|
231
231
|
|
|
232
232
|
@product.setter
|
|
233
|
-
def product(self, value: Optional[pulumi.Input[str]]):
|
|
233
|
+
def product(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
234
234
|
pulumi.set(self, "product", value)
|
|
235
235
|
|
|
236
|
-
@property
|
|
236
|
+
@_builtins.property
|
|
237
237
|
@pulumi.getter
|
|
238
238
|
def properties(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]]]:
|
|
239
239
|
"""
|
|
@@ -245,43 +245,44 @@ class _NotificationChannelState:
|
|
|
245
245
|
def properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]]]):
|
|
246
246
|
pulumi.set(self, "properties", value)
|
|
247
247
|
|
|
248
|
-
@property
|
|
248
|
+
@_builtins.property
|
|
249
249
|
@pulumi.getter
|
|
250
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
|
250
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
251
251
|
"""
|
|
252
252
|
The status of the channel.
|
|
253
253
|
"""
|
|
254
254
|
return pulumi.get(self, "status")
|
|
255
255
|
|
|
256
256
|
@status.setter
|
|
257
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
|
257
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
258
258
|
pulumi.set(self, "status", value)
|
|
259
259
|
|
|
260
|
-
@property
|
|
260
|
+
@_builtins.property
|
|
261
261
|
@pulumi.getter
|
|
262
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
262
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
263
263
|
"""
|
|
264
|
-
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 `
|
|
264
|
+
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`, `PAGERDUTY_SERVICE_INTEGRATION`, `MICROSOFT_TEAMS` or `WORKFLOW_AUTOMATION`.
|
|
265
265
|
"""
|
|
266
266
|
return pulumi.get(self, "type")
|
|
267
267
|
|
|
268
268
|
@type.setter
|
|
269
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
269
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
270
270
|
pulumi.set(self, "type", value)
|
|
271
271
|
|
|
272
272
|
|
|
273
|
+
@pulumi.type_token("newrelic:index/notificationChannel:NotificationChannel")
|
|
273
274
|
class NotificationChannel(pulumi.CustomResource):
|
|
274
275
|
@overload
|
|
275
276
|
def __init__(__self__,
|
|
276
277
|
resource_name: str,
|
|
277
278
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
278
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
279
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
280
|
-
destination_id: Optional[pulumi.Input[str]] = None,
|
|
281
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
282
|
-
product: Optional[pulumi.Input[str]] = None,
|
|
279
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
280
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
281
|
+
destination_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
282
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
283
|
+
product: Optional[pulumi.Input[_builtins.str]] = None,
|
|
283
284
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]]] = None,
|
|
284
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
285
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
285
286
|
__props__=None):
|
|
286
287
|
"""
|
|
287
288
|
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).
|
|
@@ -434,17 +435,17 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
434
435
|
{
|
|
435
436
|
"key": "customDetails",
|
|
436
437
|
"value": \"\"\"{
|
|
437
|
-
"id":{{json issueId}},
|
|
438
|
-
"IssueURL":{{json issuePageUrl}},
|
|
439
|
-
"NewRelic priority":{{json priority}},
|
|
440
|
-
"Total Incidents":{{json totalIncidents}},
|
|
441
|
-
"Impacted Entities"
|
|
442
|
-
"Runbook"
|
|
443
|
-
"Description"
|
|
444
|
-
"isCorrelated":{{json isCorrelated}},
|
|
445
|
-
"Alert Policy Names"
|
|
446
|
-
"Alert Condition Names"
|
|
447
|
-
"Workflow Name":{{json workflowName}}
|
|
438
|
+
\\"id\\":{{json issueId}},
|
|
439
|
+
\\"IssueURL\\":{{json issuePageUrl}},
|
|
440
|
+
\\"NewRelic priority\\":{{json priority}},
|
|
441
|
+
\\"Total Incidents\\":{{json totalIncidents}},
|
|
442
|
+
\\"Impacted Entities\\":\\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
443
|
+
\\"Runbook\\":\\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
444
|
+
\\"Description\\":\\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
445
|
+
\\"isCorrelated\\":{{json isCorrelated}},
|
|
446
|
+
\\"Alert Policy Names\\":\\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
447
|
+
\\"Alert Condition Names\\":\\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
448
|
+
\\"Workflow Name\\":{{json workflowName}}
|
|
448
449
|
}
|
|
449
450
|
\"\"\",
|
|
450
451
|
},
|
|
@@ -470,17 +471,17 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
470
471
|
{
|
|
471
472
|
"key": "customDetails",
|
|
472
473
|
"value": \"\"\"{
|
|
473
|
-
"id":{{json issueId}},
|
|
474
|
-
"IssueURL":{{json issuePageUrl}},
|
|
475
|
-
"NewRelic priority":{{json priority}},
|
|
476
|
-
"Total Incidents":{{json totalIncidents}},
|
|
477
|
-
"Impacted Entities"
|
|
478
|
-
"Runbook"
|
|
479
|
-
"Description"
|
|
480
|
-
"isCorrelated":{{json isCorrelated}},
|
|
481
|
-
"Alert Policy Names"
|
|
482
|
-
"Alert Condition Names"
|
|
483
|
-
"Workflow Name":{{json workflowName}}
|
|
474
|
+
\\"id\\":{{json issueId}},
|
|
475
|
+
\\"IssueURL\\":{{json issuePageUrl}},
|
|
476
|
+
\\"NewRelic priority\\":{{json priority}},
|
|
477
|
+
\\"Total Incidents\\":{{json totalIncidents}},
|
|
478
|
+
\\"Impacted Entities\\":\\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
479
|
+
\\"Runbook\\":\\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
480
|
+
\\"Description\\":\\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
481
|
+
\\"isCorrelated\\":{{json isCorrelated}},
|
|
482
|
+
\\"Alert Policy Names\\":\\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
483
|
+
\\"Alert Condition Names\\":\\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
484
|
+
\\"Workflow Name\\":{{json workflowName}}
|
|
484
485
|
}
|
|
485
486
|
\"\"\",
|
|
486
487
|
},
|
|
@@ -546,6 +547,33 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
546
547
|
])
|
|
547
548
|
```
|
|
548
549
|
|
|
550
|
+
#### [MICROSOFT_TEAMS](https://docs.newrelic.com/docs/alerts/get-notified/microsoft-teams-integrations/)
|
|
551
|
+
```python
|
|
552
|
+
import pulumi
|
|
553
|
+
import pulumi_newrelic as newrelic
|
|
554
|
+
|
|
555
|
+
foo = newrelic.NotificationChannel("foo",
|
|
556
|
+
account_id="12345678",
|
|
557
|
+
name="ms-teams-example",
|
|
558
|
+
type="MICROSOFT_TEAMS",
|
|
559
|
+
destination_id="52d36b54-3d68-4ac4-9d0a-581febb91f2c",
|
|
560
|
+
product="IINT",
|
|
561
|
+
properties=[
|
|
562
|
+
{
|
|
563
|
+
"key": "teamId",
|
|
564
|
+
"value": "906379b4-f5ac-40fd-b242-d4faaa4d3963",
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"key": "channelId",
|
|
568
|
+
"value": "19:wk9tU4tSr335Y1cNiXOynredbi3lFoeabu0kybfmbBA1@thread.tacv2",
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"key": "customDetails",
|
|
572
|
+
"value": "{{ nrAccountId }}",
|
|
573
|
+
},
|
|
574
|
+
])
|
|
575
|
+
```
|
|
576
|
+
|
|
549
577
|
> **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.
|
|
550
578
|
|
|
551
579
|
## Full Scenario Example
|
|
@@ -613,13 +641,13 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
613
641
|
|
|
614
642
|
:param str resource_name: The name of the resource.
|
|
615
643
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
616
|
-
: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.
|
|
617
|
-
:param pulumi.Input[bool] active: Indicates whether the channel is active.
|
|
618
|
-
:param pulumi.Input[str] destination_id: The id of the destination.
|
|
619
|
-
:param pulumi.Input[str] name: The name of the channel.
|
|
620
|
-
:param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
644
|
+
:param pulumi.Input[_builtins.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.
|
|
645
|
+
:param pulumi.Input[_builtins.bool] active: Indicates whether the channel is active.
|
|
646
|
+
:param pulumi.Input[_builtins.str] destination_id: The id of the destination.
|
|
647
|
+
:param pulumi.Input[_builtins.str] name: The name of the channel.
|
|
648
|
+
:param pulumi.Input[_builtins.str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
621
649
|
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
|
|
622
|
-
: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 `
|
|
650
|
+
:param pulumi.Input[_builtins.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`, `PAGERDUTY_SERVICE_INTEGRATION`, `MICROSOFT_TEAMS` or `WORKFLOW_AUTOMATION`.
|
|
623
651
|
"""
|
|
624
652
|
...
|
|
625
653
|
@overload
|
|
@@ -778,17 +806,17 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
778
806
|
{
|
|
779
807
|
"key": "customDetails",
|
|
780
808
|
"value": \"\"\"{
|
|
781
|
-
"id":{{json issueId}},
|
|
782
|
-
"IssueURL":{{json issuePageUrl}},
|
|
783
|
-
"NewRelic priority":{{json priority}},
|
|
784
|
-
"Total Incidents":{{json totalIncidents}},
|
|
785
|
-
"Impacted Entities"
|
|
786
|
-
"Runbook"
|
|
787
|
-
"Description"
|
|
788
|
-
"isCorrelated":{{json isCorrelated}},
|
|
789
|
-
"Alert Policy Names"
|
|
790
|
-
"Alert Condition Names"
|
|
791
|
-
"Workflow Name":{{json workflowName}}
|
|
809
|
+
\\"id\\":{{json issueId}},
|
|
810
|
+
\\"IssueURL\\":{{json issuePageUrl}},
|
|
811
|
+
\\"NewRelic priority\\":{{json priority}},
|
|
812
|
+
\\"Total Incidents\\":{{json totalIncidents}},
|
|
813
|
+
\\"Impacted Entities\\":\\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
814
|
+
\\"Runbook\\":\\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
815
|
+
\\"Description\\":\\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
816
|
+
\\"isCorrelated\\":{{json isCorrelated}},
|
|
817
|
+
\\"Alert Policy Names\\":\\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
818
|
+
\\"Alert Condition Names\\":\\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
819
|
+
\\"Workflow Name\\":{{json workflowName}}
|
|
792
820
|
}
|
|
793
821
|
\"\"\",
|
|
794
822
|
},
|
|
@@ -814,17 +842,17 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
814
842
|
{
|
|
815
843
|
"key": "customDetails",
|
|
816
844
|
"value": \"\"\"{
|
|
817
|
-
"id":{{json issueId}},
|
|
818
|
-
"IssueURL":{{json issuePageUrl}},
|
|
819
|
-
"NewRelic priority":{{json priority}},
|
|
820
|
-
"Total Incidents":{{json totalIncidents}},
|
|
821
|
-
"Impacted Entities"
|
|
822
|
-
"Runbook"
|
|
823
|
-
"Description"
|
|
824
|
-
"isCorrelated":{{json isCorrelated}},
|
|
825
|
-
"Alert Policy Names"
|
|
826
|
-
"Alert Condition Names"
|
|
827
|
-
"Workflow Name":{{json workflowName}}
|
|
845
|
+
\\"id\\":{{json issueId}},
|
|
846
|
+
\\"IssueURL\\":{{json issuePageUrl}},
|
|
847
|
+
\\"NewRelic priority\\":{{json priority}},
|
|
848
|
+
\\"Total Incidents\\":{{json totalIncidents}},
|
|
849
|
+
\\"Impacted Entities\\":\\"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
850
|
+
\\"Runbook\\":\\"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
851
|
+
\\"Description\\":\\"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
852
|
+
\\"isCorrelated\\":{{json isCorrelated}},
|
|
853
|
+
\\"Alert Policy Names\\":\\"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
854
|
+
\\"Alert Condition Names\\":\\"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\\",
|
|
855
|
+
\\"Workflow Name\\":{{json workflowName}}
|
|
828
856
|
}
|
|
829
857
|
\"\"\",
|
|
830
858
|
},
|
|
@@ -890,6 +918,33 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
890
918
|
])
|
|
891
919
|
```
|
|
892
920
|
|
|
921
|
+
#### [MICROSOFT_TEAMS](https://docs.newrelic.com/docs/alerts/get-notified/microsoft-teams-integrations/)
|
|
922
|
+
```python
|
|
923
|
+
import pulumi
|
|
924
|
+
import pulumi_newrelic as newrelic
|
|
925
|
+
|
|
926
|
+
foo = newrelic.NotificationChannel("foo",
|
|
927
|
+
account_id="12345678",
|
|
928
|
+
name="ms-teams-example",
|
|
929
|
+
type="MICROSOFT_TEAMS",
|
|
930
|
+
destination_id="52d36b54-3d68-4ac4-9d0a-581febb91f2c",
|
|
931
|
+
product="IINT",
|
|
932
|
+
properties=[
|
|
933
|
+
{
|
|
934
|
+
"key": "teamId",
|
|
935
|
+
"value": "906379b4-f5ac-40fd-b242-d4faaa4d3963",
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"key": "channelId",
|
|
939
|
+
"value": "19:wk9tU4tSr335Y1cNiXOynredbi3lFoeabu0kybfmbBA1@thread.tacv2",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"key": "customDetails",
|
|
943
|
+
"value": "{{ nrAccountId }}",
|
|
944
|
+
},
|
|
945
|
+
])
|
|
946
|
+
```
|
|
947
|
+
|
|
893
948
|
> **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.
|
|
894
949
|
|
|
895
950
|
## Full Scenario Example
|
|
@@ -970,13 +1025,13 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
970
1025
|
def _internal_init(__self__,
|
|
971
1026
|
resource_name: str,
|
|
972
1027
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
973
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
974
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
975
|
-
destination_id: Optional[pulumi.Input[str]] = None,
|
|
976
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
977
|
-
product: Optional[pulumi.Input[str]] = None,
|
|
1028
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1029
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1030
|
+
destination_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1031
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1032
|
+
product: Optional[pulumi.Input[_builtins.str]] = None,
|
|
978
1033
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]]] = None,
|
|
979
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
1034
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
980
1035
|
__props__=None):
|
|
981
1036
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
982
1037
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -1012,14 +1067,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
1012
1067
|
def get(resource_name: str,
|
|
1013
1068
|
id: pulumi.Input[str],
|
|
1014
1069
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1015
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
1016
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
1017
|
-
destination_id: Optional[pulumi.Input[str]] = None,
|
|
1018
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1019
|
-
product: Optional[pulumi.Input[str]] = None,
|
|
1070
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1071
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1072
|
+
destination_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1073
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1074
|
+
product: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1020
1075
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]]] = None,
|
|
1021
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
1022
|
-
type: Optional[pulumi.Input[str]] = None) -> 'NotificationChannel':
|
|
1076
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1077
|
+
type: Optional[pulumi.Input[_builtins.str]] = None) -> 'NotificationChannel':
|
|
1023
1078
|
"""
|
|
1024
1079
|
Get an existing NotificationChannel resource's state with the given name, id, and optional extra
|
|
1025
1080
|
properties used to qualify the lookup.
|
|
@@ -1027,14 +1082,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
1027
1082
|
:param str resource_name: The unique name of the resulting resource.
|
|
1028
1083
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1029
1084
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1030
|
-
: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.
|
|
1031
|
-
:param pulumi.Input[bool] active: Indicates whether the channel is active.
|
|
1032
|
-
:param pulumi.Input[str] destination_id: The id of the destination.
|
|
1033
|
-
:param pulumi.Input[str] name: The name of the channel.
|
|
1034
|
-
:param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
1085
|
+
:param pulumi.Input[_builtins.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.
|
|
1086
|
+
:param pulumi.Input[_builtins.bool] active: Indicates whether the channel is active.
|
|
1087
|
+
:param pulumi.Input[_builtins.str] destination_id: The id of the destination.
|
|
1088
|
+
:param pulumi.Input[_builtins.str] name: The name of the channel.
|
|
1089
|
+
:param pulumi.Input[_builtins.str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
1035
1090
|
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
|
|
1036
|
-
:param pulumi.Input[str] status: The status of the channel.
|
|
1037
|
-
: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 `
|
|
1091
|
+
:param pulumi.Input[_builtins.str] status: The status of the channel.
|
|
1092
|
+
:param pulumi.Input[_builtins.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`, `PAGERDUTY_SERVICE_INTEGRATION`, `MICROSOFT_TEAMS` or `WORKFLOW_AUTOMATION`.
|
|
1038
1093
|
"""
|
|
1039
1094
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1040
1095
|
|
|
@@ -1050,47 +1105,47 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
1050
1105
|
__props__.__dict__["type"] = type
|
|
1051
1106
|
return NotificationChannel(resource_name, opts=opts, __props__=__props__)
|
|
1052
1107
|
|
|
1053
|
-
@property
|
|
1108
|
+
@_builtins.property
|
|
1054
1109
|
@pulumi.getter(name="accountId")
|
|
1055
|
-
def account_id(self) -> pulumi.Output[str]:
|
|
1110
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
1056
1111
|
"""
|
|
1057
1112
|
Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
|
|
1058
1113
|
"""
|
|
1059
1114
|
return pulumi.get(self, "account_id")
|
|
1060
1115
|
|
|
1061
|
-
@property
|
|
1116
|
+
@_builtins.property
|
|
1062
1117
|
@pulumi.getter
|
|
1063
|
-
def active(self) -> pulumi.Output[Optional[bool]]:
|
|
1118
|
+
def active(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1064
1119
|
"""
|
|
1065
1120
|
Indicates whether the channel is active.
|
|
1066
1121
|
"""
|
|
1067
1122
|
return pulumi.get(self, "active")
|
|
1068
1123
|
|
|
1069
|
-
@property
|
|
1124
|
+
@_builtins.property
|
|
1070
1125
|
@pulumi.getter(name="destinationId")
|
|
1071
|
-
def destination_id(self) -> pulumi.Output[str]:
|
|
1126
|
+
def destination_id(self) -> pulumi.Output[_builtins.str]:
|
|
1072
1127
|
"""
|
|
1073
1128
|
The id of the destination.
|
|
1074
1129
|
"""
|
|
1075
1130
|
return pulumi.get(self, "destination_id")
|
|
1076
1131
|
|
|
1077
|
-
@property
|
|
1132
|
+
@_builtins.property
|
|
1078
1133
|
@pulumi.getter
|
|
1079
|
-
def name(self) -> pulumi.Output[str]:
|
|
1134
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1080
1135
|
"""
|
|
1081
1136
|
The name of the channel.
|
|
1082
1137
|
"""
|
|
1083
1138
|
return pulumi.get(self, "name")
|
|
1084
1139
|
|
|
1085
|
-
@property
|
|
1140
|
+
@_builtins.property
|
|
1086
1141
|
@pulumi.getter
|
|
1087
|
-
def product(self) -> pulumi.Output[str]:
|
|
1142
|
+
def product(self) -> pulumi.Output[_builtins.str]:
|
|
1088
1143
|
"""
|
|
1089
1144
|
The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
1090
1145
|
"""
|
|
1091
1146
|
return pulumi.get(self, "product")
|
|
1092
1147
|
|
|
1093
|
-
@property
|
|
1148
|
+
@_builtins.property
|
|
1094
1149
|
@pulumi.getter
|
|
1095
1150
|
def properties(self) -> pulumi.Output[Sequence['outputs.NotificationChannelProperty']]:
|
|
1096
1151
|
"""
|
|
@@ -1098,19 +1153,19 @@ class NotificationChannel(pulumi.CustomResource):
|
|
|
1098
1153
|
"""
|
|
1099
1154
|
return pulumi.get(self, "properties")
|
|
1100
1155
|
|
|
1101
|
-
@property
|
|
1156
|
+
@_builtins.property
|
|
1102
1157
|
@pulumi.getter
|
|
1103
|
-
def status(self) -> pulumi.Output[str]:
|
|
1158
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
1104
1159
|
"""
|
|
1105
1160
|
The status of the channel.
|
|
1106
1161
|
"""
|
|
1107
1162
|
return pulumi.get(self, "status")
|
|
1108
1163
|
|
|
1109
|
-
@property
|
|
1164
|
+
@_builtins.property
|
|
1110
1165
|
@pulumi.getter
|
|
1111
|
-
def type(self) -> pulumi.Output[str]:
|
|
1166
|
+
def type(self) -> pulumi.Output[_builtins.str]:
|
|
1112
1167
|
"""
|
|
1113
|
-
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 `
|
|
1168
|
+
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`, `PAGERDUTY_SERVICE_INTEGRATION`, `MICROSOFT_TEAMS` or `WORKFLOW_AUTOMATION`.
|
|
1114
1169
|
"""
|
|
1115
1170
|
return pulumi.get(self, "type")
|
|
1116
1171
|
|