pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__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.
Potentially problematic release.
This version of pulumi-newrelic might be problematic. Click here for more details.
- pulumi_newrelic/__init__.py +28 -1
- pulumi_newrelic/_inputs.py +10385 -2976
- pulumi_newrelic/_utilities.py +50 -10
- pulumi_newrelic/account_management.py +48 -42
- pulumi_newrelic/alert_channel.py +165 -175
- pulumi_newrelic/alert_condition.py +307 -319
- pulumi_newrelic/alert_muting_rule.py +193 -140
- pulumi_newrelic/alert_policy.py +121 -117
- pulumi_newrelic/alert_policy_channel.py +89 -79
- pulumi_newrelic/api_access_key.py +195 -193
- pulumi_newrelic/browser_application.py +120 -114
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +4267 -2714
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
- pulumi_newrelic/cloud/aws_integrations.py +510 -1490
- pulumi_newrelic/cloud/aws_link_account.py +80 -76
- pulumi_newrelic/cloud/azure_integrations.py +673 -587
- pulumi_newrelic/cloud/azure_link_account.py +121 -117
- pulumi_newrelic/cloud/gcp_integrations.py +428 -408
- pulumi_newrelic/cloud/gcp_link_account.py +65 -61
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1678 -2321
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +8 -3
- pulumi_newrelic/config/vars.py +22 -17
- pulumi_newrelic/data_partition_rule.py +119 -117
- pulumi_newrelic/entity_tags.py +111 -53
- pulumi_newrelic/events_to_metrics_rule.py +106 -102
- pulumi_newrelic/get_account.py +41 -33
- pulumi_newrelic/get_alert_channel.py +73 -28
- pulumi_newrelic/get_alert_policy.py +82 -33
- pulumi_newrelic/get_application.py +51 -43
- pulumi_newrelic/get_authentication_domain.py +27 -23
- pulumi_newrelic/get_cloud_account.py +43 -35
- pulumi_newrelic/get_entity.py +126 -183
- pulumi_newrelic/get_group.py +76 -31
- pulumi_newrelic/get_key_transaction.py +117 -42
- pulumi_newrelic/get_notification_destination.py +75 -38
- pulumi_newrelic/get_obfuscation_expression.py +47 -39
- pulumi_newrelic/get_service_level_alert_helper.py +189 -171
- pulumi_newrelic/get_test_grok_pattern.py +47 -36
- pulumi_newrelic/get_user.py +39 -31
- pulumi_newrelic/group.py +59 -199
- pulumi_newrelic/infra_alert_condition.py +399 -405
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +71 -28
- pulumi_newrelic/insights/event.py +54 -52
- pulumi_newrelic/insights/outputs.py +28 -23
- pulumi_newrelic/key_transaction.py +465 -0
- pulumi_newrelic/log_parsing_rule.py +159 -157
- pulumi_newrelic/monitor_downtime.py +311 -331
- pulumi_newrelic/notification_channel.py +534 -464
- pulumi_newrelic/notification_destination.py +238 -141
- pulumi_newrelic/nrql_alert_condition.py +820 -614
- pulumi_newrelic/nrql_drop_rule.py +113 -151
- pulumi_newrelic/obfuscation_expression.py +80 -76
- pulumi_newrelic/obfuscation_rule.py +115 -109
- pulumi_newrelic/one_dashboard.py +110 -104
- pulumi_newrelic/one_dashboard_json.py +69 -63
- pulumi_newrelic/one_dashboard_raw.py +212 -206
- pulumi_newrelic/outputs.py +4936 -2234
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +519 -89
- pulumi_newrelic/plugins/application_settings.py +463 -187
- pulumi_newrelic/plugins/outputs.py +336 -74
- pulumi_newrelic/plugins/workload.py +313 -189
- pulumi_newrelic/provider.py +156 -142
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +263 -263
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +265 -108
- pulumi_newrelic/synthetics/alert_condition.py +170 -180
- pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
- pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
- pulumi_newrelic/synthetics/get_private_location.py +51 -47
- pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
- pulumi_newrelic/synthetics/monitor.py +658 -460
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
- pulumi_newrelic/synthetics/outputs.py +92 -87
- pulumi_newrelic/synthetics/private_location.py +118 -112
- pulumi_newrelic/synthetics/script_monitor.py +613 -373
- pulumi_newrelic/synthetics/secure_credential.py +97 -95
- pulumi_newrelic/synthetics/step_monitor.py +445 -275
- pulumi_newrelic/user.py +84 -80
- pulumi_newrelic/workflow.py +336 -322
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
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
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -17,22 +22,25 @@ __all__ = ['NotificationDestinationArgs', 'NotificationDestination']
|
|
|
17
22
|
class NotificationDestinationArgs:
|
|
18
23
|
def __init__(__self__, *,
|
|
19
24
|
properties: pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]],
|
|
20
|
-
type: pulumi.Input[str],
|
|
21
|
-
account_id: Optional[pulumi.Input[
|
|
22
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
25
|
+
type: pulumi.Input[_builtins.str],
|
|
26
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
23
28
|
auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
|
|
29
|
+
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]] = None,
|
|
24
30
|
auth_token: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']] = None,
|
|
25
|
-
name: Optional[pulumi.Input[str]] = None
|
|
31
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
secure_url: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']] = None):
|
|
26
33
|
"""
|
|
27
34
|
The set of arguments for constructing a NotificationDestination resource.
|
|
28
35
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
|
29
|
-
:param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
|
|
30
|
-
|
|
31
|
-
:param pulumi.Input[
|
|
32
|
-
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
|
36
|
+
:param pulumi.Input[_builtins.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, MICROSOFT_TEAMS, WORKFLOW_AUTOMATION).
|
|
37
|
+
:param pulumi.Input[_builtins.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.
|
|
38
|
+
:param pulumi.Input[_builtins.bool] active: Indicates whether the destination is active.
|
|
33
39
|
: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.
|
|
40
|
+
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]] auth_custom_headers: A nested block that describes a custom header authentication credentials. This field is required when the destination type is WORKFLOW_AUTOMATION and optional for other destination types. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
|
34
41
|
:param pulumi.Input['NotificationDestinationAuthTokenArgs'] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
|
|
35
|
-
:param pulumi.Input[str] name: The name of the destination.
|
|
42
|
+
:param pulumi.Input[_builtins.str] name: The name of the destination.
|
|
43
|
+
: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.
|
|
36
44
|
"""
|
|
37
45
|
pulumi.set(__self__, "properties", properties)
|
|
38
46
|
pulumi.set(__self__, "type", type)
|
|
@@ -42,12 +50,16 @@ class NotificationDestinationArgs:
|
|
|
42
50
|
pulumi.set(__self__, "active", active)
|
|
43
51
|
if auth_basic is not None:
|
|
44
52
|
pulumi.set(__self__, "auth_basic", auth_basic)
|
|
53
|
+
if auth_custom_headers is not None:
|
|
54
|
+
pulumi.set(__self__, "auth_custom_headers", auth_custom_headers)
|
|
45
55
|
if auth_token is not None:
|
|
46
56
|
pulumi.set(__self__, "auth_token", auth_token)
|
|
47
57
|
if name is not None:
|
|
48
58
|
pulumi.set(__self__, "name", name)
|
|
59
|
+
if secure_url is not None:
|
|
60
|
+
pulumi.set(__self__, "secure_url", secure_url)
|
|
49
61
|
|
|
50
|
-
@property
|
|
62
|
+
@_builtins.property
|
|
51
63
|
@pulumi.getter
|
|
52
64
|
def properties(self) -> pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]:
|
|
53
65
|
"""
|
|
@@ -59,44 +71,43 @@ class NotificationDestinationArgs:
|
|
|
59
71
|
def properties(self, value: pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]):
|
|
60
72
|
pulumi.set(self, "properties", value)
|
|
61
73
|
|
|
62
|
-
@property
|
|
74
|
+
@_builtins.property
|
|
63
75
|
@pulumi.getter
|
|
64
|
-
def type(self) -> pulumi.Input[str]:
|
|
76
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
65
77
|
"""
|
|
66
|
-
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
|
|
67
|
-
PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
|
|
78
|
+
(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, MICROSOFT_TEAMS, WORKFLOW_AUTOMATION).
|
|
68
79
|
"""
|
|
69
80
|
return pulumi.get(self, "type")
|
|
70
81
|
|
|
71
82
|
@type.setter
|
|
72
|
-
def type(self, value: pulumi.Input[str]):
|
|
83
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
73
84
|
pulumi.set(self, "type", value)
|
|
74
85
|
|
|
75
|
-
@property
|
|
86
|
+
@_builtins.property
|
|
76
87
|
@pulumi.getter(name="accountId")
|
|
77
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
88
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
78
89
|
"""
|
|
79
90
|
Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
|
80
91
|
"""
|
|
81
92
|
return pulumi.get(self, "account_id")
|
|
82
93
|
|
|
83
94
|
@account_id.setter
|
|
84
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
95
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
85
96
|
pulumi.set(self, "account_id", value)
|
|
86
97
|
|
|
87
|
-
@property
|
|
98
|
+
@_builtins.property
|
|
88
99
|
@pulumi.getter
|
|
89
|
-
def active(self) -> Optional[pulumi.Input[bool]]:
|
|
100
|
+
def active(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
90
101
|
"""
|
|
91
102
|
Indicates whether the destination is active.
|
|
92
103
|
"""
|
|
93
104
|
return pulumi.get(self, "active")
|
|
94
105
|
|
|
95
106
|
@active.setter
|
|
96
|
-
def active(self, value: Optional[pulumi.Input[bool]]):
|
|
107
|
+
def active(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
97
108
|
pulumi.set(self, "active", value)
|
|
98
109
|
|
|
99
|
-
@property
|
|
110
|
+
@_builtins.property
|
|
100
111
|
@pulumi.getter(name="authBasic")
|
|
101
112
|
def auth_basic(self) -> Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']]:
|
|
102
113
|
"""
|
|
@@ -108,7 +119,19 @@ class NotificationDestinationArgs:
|
|
|
108
119
|
def auth_basic(self, value: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']]):
|
|
109
120
|
pulumi.set(self, "auth_basic", value)
|
|
110
121
|
|
|
111
|
-
@property
|
|
122
|
+
@_builtins.property
|
|
123
|
+
@pulumi.getter(name="authCustomHeaders")
|
|
124
|
+
def auth_custom_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]:
|
|
125
|
+
"""
|
|
126
|
+
A nested block that describes a custom header authentication credentials. This field is required when the destination type is WORKFLOW_AUTOMATION and optional for other destination types. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "auth_custom_headers")
|
|
129
|
+
|
|
130
|
+
@auth_custom_headers.setter
|
|
131
|
+
def auth_custom_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]):
|
|
132
|
+
pulumi.set(self, "auth_custom_headers", value)
|
|
133
|
+
|
|
134
|
+
@_builtins.property
|
|
112
135
|
@pulumi.getter(name="authToken")
|
|
113
136
|
def auth_token(self) -> Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]:
|
|
114
137
|
"""
|
|
@@ -120,45 +143,60 @@ class NotificationDestinationArgs:
|
|
|
120
143
|
def auth_token(self, value: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]):
|
|
121
144
|
pulumi.set(self, "auth_token", value)
|
|
122
145
|
|
|
123
|
-
@property
|
|
146
|
+
@_builtins.property
|
|
124
147
|
@pulumi.getter
|
|
125
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
148
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
126
149
|
"""
|
|
127
150
|
The name of the destination.
|
|
128
151
|
"""
|
|
129
152
|
return pulumi.get(self, "name")
|
|
130
153
|
|
|
131
154
|
@name.setter
|
|
132
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
155
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
133
156
|
pulumi.set(self, "name", value)
|
|
134
157
|
|
|
158
|
+
@_builtins.property
|
|
159
|
+
@pulumi.getter(name="secureUrl")
|
|
160
|
+
def secure_url(self) -> Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]:
|
|
161
|
+
"""
|
|
162
|
+
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.
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "secure_url")
|
|
165
|
+
|
|
166
|
+
@secure_url.setter
|
|
167
|
+
def secure_url(self, value: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]):
|
|
168
|
+
pulumi.set(self, "secure_url", value)
|
|
169
|
+
|
|
135
170
|
|
|
136
171
|
@pulumi.input_type
|
|
137
172
|
class _NotificationDestinationState:
|
|
138
173
|
def __init__(__self__, *,
|
|
139
|
-
account_id: Optional[pulumi.Input[
|
|
140
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
174
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
175
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
141
176
|
auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
|
|
177
|
+
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]] = None,
|
|
142
178
|
auth_token: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']] = None,
|
|
143
|
-
guid: Optional[pulumi.Input[str]] = None,
|
|
144
|
-
last_sent: Optional[pulumi.Input[str]] = None,
|
|
145
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
179
|
+
guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
180
|
+
last_sent: Optional[pulumi.Input[_builtins.str]] = None,
|
|
181
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
146
182
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]] = None,
|
|
147
|
-
|
|
148
|
-
|
|
183
|
+
secure_url: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']] = None,
|
|
184
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
185
|
+
type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
149
186
|
"""
|
|
150
187
|
Input properties used for looking up and filtering NotificationDestination resources.
|
|
151
|
-
:param pulumi.Input[
|
|
152
|
-
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
|
188
|
+
:param pulumi.Input[_builtins.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.
|
|
189
|
+
:param pulumi.Input[_builtins.bool] active: Indicates whether the destination is active.
|
|
153
190
|
: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.
|
|
191
|
+
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]] auth_custom_headers: A nested block that describes a custom header authentication credentials. This field is required when the destination type is WORKFLOW_AUTOMATION and optional for other destination types. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
|
154
192
|
:param pulumi.Input['NotificationDestinationAuthTokenArgs'] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
|
|
155
|
-
:param pulumi.Input[str] guid: The unique entity identifier of the destination in New Relic.
|
|
156
|
-
:param pulumi.Input[str] last_sent: The last time a notification was sent.
|
|
157
|
-
:param pulumi.Input[str] name: The name of the destination.
|
|
193
|
+
:param pulumi.Input[_builtins.str] guid: The unique entity identifier of the destination in New Relic.
|
|
194
|
+
:param pulumi.Input[_builtins.str] last_sent: The last time a notification was sent.
|
|
195
|
+
:param pulumi.Input[_builtins.str] name: The name of the destination.
|
|
158
196
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
|
159
|
-
:param pulumi.Input[
|
|
160
|
-
:param pulumi.Input[str]
|
|
161
|
-
|
|
197
|
+
: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.
|
|
198
|
+
:param pulumi.Input[_builtins.str] status: The status of the destination.
|
|
199
|
+
:param pulumi.Input[_builtins.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, MICROSOFT_TEAMS, WORKFLOW_AUTOMATION).
|
|
162
200
|
"""
|
|
163
201
|
if account_id is not None:
|
|
164
202
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -166,6 +204,8 @@ class _NotificationDestinationState:
|
|
|
166
204
|
pulumi.set(__self__, "active", active)
|
|
167
205
|
if auth_basic is not None:
|
|
168
206
|
pulumi.set(__self__, "auth_basic", auth_basic)
|
|
207
|
+
if auth_custom_headers is not None:
|
|
208
|
+
pulumi.set(__self__, "auth_custom_headers", auth_custom_headers)
|
|
169
209
|
if auth_token is not None:
|
|
170
210
|
pulumi.set(__self__, "auth_token", auth_token)
|
|
171
211
|
if guid is not None:
|
|
@@ -176,36 +216,38 @@ class _NotificationDestinationState:
|
|
|
176
216
|
pulumi.set(__self__, "name", name)
|
|
177
217
|
if properties is not None:
|
|
178
218
|
pulumi.set(__self__, "properties", properties)
|
|
219
|
+
if secure_url is not None:
|
|
220
|
+
pulumi.set(__self__, "secure_url", secure_url)
|
|
179
221
|
if status is not None:
|
|
180
222
|
pulumi.set(__self__, "status", status)
|
|
181
223
|
if type is not None:
|
|
182
224
|
pulumi.set(__self__, "type", type)
|
|
183
225
|
|
|
184
|
-
@property
|
|
226
|
+
@_builtins.property
|
|
185
227
|
@pulumi.getter(name="accountId")
|
|
186
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
228
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
187
229
|
"""
|
|
188
230
|
Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
|
189
231
|
"""
|
|
190
232
|
return pulumi.get(self, "account_id")
|
|
191
233
|
|
|
192
234
|
@account_id.setter
|
|
193
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
235
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
194
236
|
pulumi.set(self, "account_id", value)
|
|
195
237
|
|
|
196
|
-
@property
|
|
238
|
+
@_builtins.property
|
|
197
239
|
@pulumi.getter
|
|
198
|
-
def active(self) -> Optional[pulumi.Input[bool]]:
|
|
240
|
+
def active(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
199
241
|
"""
|
|
200
242
|
Indicates whether the destination is active.
|
|
201
243
|
"""
|
|
202
244
|
return pulumi.get(self, "active")
|
|
203
245
|
|
|
204
246
|
@active.setter
|
|
205
|
-
def active(self, value: Optional[pulumi.Input[bool]]):
|
|
247
|
+
def active(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
206
248
|
pulumi.set(self, "active", value)
|
|
207
249
|
|
|
208
|
-
@property
|
|
250
|
+
@_builtins.property
|
|
209
251
|
@pulumi.getter(name="authBasic")
|
|
210
252
|
def auth_basic(self) -> Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']]:
|
|
211
253
|
"""
|
|
@@ -217,7 +259,19 @@ class _NotificationDestinationState:
|
|
|
217
259
|
def auth_basic(self, value: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']]):
|
|
218
260
|
pulumi.set(self, "auth_basic", value)
|
|
219
261
|
|
|
220
|
-
@property
|
|
262
|
+
@_builtins.property
|
|
263
|
+
@pulumi.getter(name="authCustomHeaders")
|
|
264
|
+
def auth_custom_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]:
|
|
265
|
+
"""
|
|
266
|
+
A nested block that describes a custom header authentication credentials. This field is required when the destination type is WORKFLOW_AUTOMATION and optional for other destination types. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
|
267
|
+
"""
|
|
268
|
+
return pulumi.get(self, "auth_custom_headers")
|
|
269
|
+
|
|
270
|
+
@auth_custom_headers.setter
|
|
271
|
+
def auth_custom_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]):
|
|
272
|
+
pulumi.set(self, "auth_custom_headers", value)
|
|
273
|
+
|
|
274
|
+
@_builtins.property
|
|
221
275
|
@pulumi.getter(name="authToken")
|
|
222
276
|
def auth_token(self) -> Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]:
|
|
223
277
|
"""
|
|
@@ -229,43 +283,43 @@ class _NotificationDestinationState:
|
|
|
229
283
|
def auth_token(self, value: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]):
|
|
230
284
|
pulumi.set(self, "auth_token", value)
|
|
231
285
|
|
|
232
|
-
@property
|
|
286
|
+
@_builtins.property
|
|
233
287
|
@pulumi.getter
|
|
234
|
-
def guid(self) -> Optional[pulumi.Input[str]]:
|
|
288
|
+
def guid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
235
289
|
"""
|
|
236
290
|
The unique entity identifier of the destination in New Relic.
|
|
237
291
|
"""
|
|
238
292
|
return pulumi.get(self, "guid")
|
|
239
293
|
|
|
240
294
|
@guid.setter
|
|
241
|
-
def guid(self, value: Optional[pulumi.Input[str]]):
|
|
295
|
+
def guid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
242
296
|
pulumi.set(self, "guid", value)
|
|
243
297
|
|
|
244
|
-
@property
|
|
298
|
+
@_builtins.property
|
|
245
299
|
@pulumi.getter(name="lastSent")
|
|
246
|
-
def last_sent(self) -> Optional[pulumi.Input[str]]:
|
|
300
|
+
def last_sent(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
247
301
|
"""
|
|
248
302
|
The last time a notification was sent.
|
|
249
303
|
"""
|
|
250
304
|
return pulumi.get(self, "last_sent")
|
|
251
305
|
|
|
252
306
|
@last_sent.setter
|
|
253
|
-
def last_sent(self, value: Optional[pulumi.Input[str]]):
|
|
307
|
+
def last_sent(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
254
308
|
pulumi.set(self, "last_sent", value)
|
|
255
309
|
|
|
256
|
-
@property
|
|
310
|
+
@_builtins.property
|
|
257
311
|
@pulumi.getter
|
|
258
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
312
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
259
313
|
"""
|
|
260
314
|
The name of the destination.
|
|
261
315
|
"""
|
|
262
316
|
return pulumi.get(self, "name")
|
|
263
317
|
|
|
264
318
|
@name.setter
|
|
265
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
319
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
266
320
|
pulumi.set(self, "name", value)
|
|
267
321
|
|
|
268
|
-
@property
|
|
322
|
+
@_builtins.property
|
|
269
323
|
@pulumi.getter
|
|
270
324
|
def properties(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]]:
|
|
271
325
|
"""
|
|
@@ -277,48 +331,64 @@ class _NotificationDestinationState:
|
|
|
277
331
|
def properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]]):
|
|
278
332
|
pulumi.set(self, "properties", value)
|
|
279
333
|
|
|
280
|
-
@property
|
|
334
|
+
@_builtins.property
|
|
335
|
+
@pulumi.getter(name="secureUrl")
|
|
336
|
+
def secure_url(self) -> Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]:
|
|
337
|
+
"""
|
|
338
|
+
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.
|
|
339
|
+
"""
|
|
340
|
+
return pulumi.get(self, "secure_url")
|
|
341
|
+
|
|
342
|
+
@secure_url.setter
|
|
343
|
+
def secure_url(self, value: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]):
|
|
344
|
+
pulumi.set(self, "secure_url", value)
|
|
345
|
+
|
|
346
|
+
@_builtins.property
|
|
281
347
|
@pulumi.getter
|
|
282
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
|
348
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
283
349
|
"""
|
|
284
350
|
The status of the destination.
|
|
285
351
|
"""
|
|
286
352
|
return pulumi.get(self, "status")
|
|
287
353
|
|
|
288
354
|
@status.setter
|
|
289
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
|
355
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
290
356
|
pulumi.set(self, "status", value)
|
|
291
357
|
|
|
292
|
-
@property
|
|
358
|
+
@_builtins.property
|
|
293
359
|
@pulumi.getter
|
|
294
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
360
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
295
361
|
"""
|
|
296
|
-
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
|
|
297
|
-
PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
|
|
362
|
+
(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, MICROSOFT_TEAMS, WORKFLOW_AUTOMATION).
|
|
298
363
|
"""
|
|
299
364
|
return pulumi.get(self, "type")
|
|
300
365
|
|
|
301
366
|
@type.setter
|
|
302
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
367
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
303
368
|
pulumi.set(self, "type", value)
|
|
304
369
|
|
|
305
370
|
|
|
371
|
+
@pulumi.type_token("newrelic:index/notificationDestination:NotificationDestination")
|
|
306
372
|
class NotificationDestination(pulumi.CustomResource):
|
|
307
373
|
@overload
|
|
308
374
|
def __init__(__self__,
|
|
309
375
|
resource_name: str,
|
|
310
376
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
311
|
-
account_id: Optional[pulumi.Input[
|
|
312
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
313
|
-
auth_basic: Optional[pulumi.Input[
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
377
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
378
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
379
|
+
auth_basic: Optional[pulumi.Input[Union['NotificationDestinationAuthBasicArgs', 'NotificationDestinationAuthBasicArgsDict']]] = None,
|
|
380
|
+
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationAuthCustomHeaderArgs', 'NotificationDestinationAuthCustomHeaderArgsDict']]]]] = None,
|
|
381
|
+
auth_token: Optional[pulumi.Input[Union['NotificationDestinationAuthTokenArgs', 'NotificationDestinationAuthTokenArgsDict']]] = None,
|
|
382
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
383
|
+
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationPropertyArgs', 'NotificationDestinationPropertyArgsDict']]]]] = None,
|
|
384
|
+
secure_url: Optional[pulumi.Input[Union['NotificationDestinationSecureUrlArgs', 'NotificationDestinationSecureUrlArgsDict']]] = None,
|
|
385
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
318
386
|
__props__=None):
|
|
319
387
|
"""
|
|
320
388
|
## Import
|
|
321
389
|
|
|
390
|
+
~> **WARNING:** Slack-based destinations can only be imported and destroyed; this resource **does not** support creating and updating Slack-based destinations, owing to the reasons stated above, under the **Slack** section.
|
|
391
|
+
|
|
322
392
|
Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
|
|
323
393
|
|
|
324
394
|
This example is especially useful for slack destinations which *must* be imported.
|
|
@@ -336,16 +406,16 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
336
406
|
```
|
|
337
407
|
|
|
338
408
|
3. Run the following command after the import successfully done and copy the information to your resource:
|
|
409
|
+
|
|
410
|
+
`terraform state show newrelic_notification_destination.foo`
|
|
339
411
|
|
|
340
|
-
`
|
|
341
|
-
|
|
342
|
-
4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
|
|
412
|
+
4. Add `ignore_changes` attribute on `all` in your imported resource:
|
|
343
413
|
|
|
344
414
|
terraform
|
|
345
415
|
|
|
346
416
|
lifecycle {
|
|
347
417
|
|
|
348
|
-
ignore_changes =
|
|
418
|
+
ignore_changes = all
|
|
349
419
|
|
|
350
420
|
}
|
|
351
421
|
|
|
@@ -357,7 +427,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
357
427
|
|
|
358
428
|
lifecycle {
|
|
359
429
|
|
|
360
|
-
ignore_changes =
|
|
430
|
+
ignore_changes = all
|
|
361
431
|
|
|
362
432
|
}
|
|
363
433
|
|
|
@@ -385,14 +455,15 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
385
455
|
|
|
386
456
|
:param str resource_name: The name of the resource.
|
|
387
457
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
388
|
-
:param pulumi.Input[
|
|
389
|
-
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
|
390
|
-
:param pulumi.Input[
|
|
391
|
-
:param pulumi.Input[pulumi.
|
|
392
|
-
:param pulumi.Input[
|
|
393
|
-
:param pulumi.Input[
|
|
394
|
-
:param pulumi.Input[
|
|
395
|
-
|
|
458
|
+
:param pulumi.Input[_builtins.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.
|
|
459
|
+
:param pulumi.Input[_builtins.bool] active: Indicates whether the destination is active.
|
|
460
|
+
:param pulumi.Input[Union['NotificationDestinationAuthBasicArgs', 'NotificationDestinationAuthBasicArgsDict']] 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.
|
|
461
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationAuthCustomHeaderArgs', 'NotificationDestinationAuthCustomHeaderArgsDict']]]] auth_custom_headers: A nested block that describes a custom header authentication credentials. This field is required when the destination type is WORKFLOW_AUTOMATION and optional for other destination types. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
|
462
|
+
:param pulumi.Input[Union['NotificationDestinationAuthTokenArgs', 'NotificationDestinationAuthTokenArgsDict']] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
|
|
463
|
+
:param pulumi.Input[_builtins.str] name: The name of the destination.
|
|
464
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationPropertyArgs', 'NotificationDestinationPropertyArgsDict']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
|
465
|
+
:param pulumi.Input[Union['NotificationDestinationSecureUrlArgs', 'NotificationDestinationSecureUrlArgsDict']] 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.
|
|
466
|
+
:param pulumi.Input[_builtins.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, MICROSOFT_TEAMS, WORKFLOW_AUTOMATION).
|
|
396
467
|
"""
|
|
397
468
|
...
|
|
398
469
|
@overload
|
|
@@ -403,6 +474,8 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
403
474
|
"""
|
|
404
475
|
## Import
|
|
405
476
|
|
|
477
|
+
~> **WARNING:** Slack-based destinations can only be imported and destroyed; this resource **does not** support creating and updating Slack-based destinations, owing to the reasons stated above, under the **Slack** section.
|
|
478
|
+
|
|
406
479
|
Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
|
|
407
480
|
|
|
408
481
|
This example is especially useful for slack destinations which *must* be imported.
|
|
@@ -420,16 +493,16 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
420
493
|
```
|
|
421
494
|
|
|
422
495
|
3. Run the following command after the import successfully done and copy the information to your resource:
|
|
496
|
+
|
|
497
|
+
`terraform state show newrelic_notification_destination.foo`
|
|
423
498
|
|
|
424
|
-
`
|
|
425
|
-
|
|
426
|
-
4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
|
|
499
|
+
4. Add `ignore_changes` attribute on `all` in your imported resource:
|
|
427
500
|
|
|
428
501
|
terraform
|
|
429
502
|
|
|
430
503
|
lifecycle {
|
|
431
504
|
|
|
432
|
-
ignore_changes =
|
|
505
|
+
ignore_changes = all
|
|
433
506
|
|
|
434
507
|
}
|
|
435
508
|
|
|
@@ -441,7 +514,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
441
514
|
|
|
442
515
|
lifecycle {
|
|
443
516
|
|
|
444
|
-
ignore_changes =
|
|
517
|
+
ignore_changes = all
|
|
445
518
|
|
|
446
519
|
}
|
|
447
520
|
|
|
@@ -482,13 +555,15 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
482
555
|
def _internal_init(__self__,
|
|
483
556
|
resource_name: str,
|
|
484
557
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
485
|
-
account_id: Optional[pulumi.Input[
|
|
486
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
487
|
-
auth_basic: Optional[pulumi.Input[
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
558
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
559
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
560
|
+
auth_basic: Optional[pulumi.Input[Union['NotificationDestinationAuthBasicArgs', 'NotificationDestinationAuthBasicArgsDict']]] = None,
|
|
561
|
+
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationAuthCustomHeaderArgs', 'NotificationDestinationAuthCustomHeaderArgsDict']]]]] = None,
|
|
562
|
+
auth_token: Optional[pulumi.Input[Union['NotificationDestinationAuthTokenArgs', 'NotificationDestinationAuthTokenArgsDict']]] = None,
|
|
563
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
564
|
+
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationPropertyArgs', 'NotificationDestinationPropertyArgsDict']]]]] = None,
|
|
565
|
+
secure_url: Optional[pulumi.Input[Union['NotificationDestinationSecureUrlArgs', 'NotificationDestinationSecureUrlArgsDict']]] = None,
|
|
566
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
492
567
|
__props__=None):
|
|
493
568
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
494
569
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -501,11 +576,13 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
501
576
|
__props__.__dict__["account_id"] = account_id
|
|
502
577
|
__props__.__dict__["active"] = active
|
|
503
578
|
__props__.__dict__["auth_basic"] = auth_basic
|
|
579
|
+
__props__.__dict__["auth_custom_headers"] = auth_custom_headers
|
|
504
580
|
__props__.__dict__["auth_token"] = auth_token
|
|
505
581
|
__props__.__dict__["name"] = name
|
|
506
582
|
if properties is None and not opts.urn:
|
|
507
583
|
raise TypeError("Missing required property 'properties'")
|
|
508
584
|
__props__.__dict__["properties"] = properties
|
|
585
|
+
__props__.__dict__["secure_url"] = secure_url
|
|
509
586
|
if type is None and not opts.urn:
|
|
510
587
|
raise TypeError("Missing required property 'type'")
|
|
511
588
|
__props__.__dict__["type"] = type
|
|
@@ -522,16 +599,18 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
522
599
|
def get(resource_name: str,
|
|
523
600
|
id: pulumi.Input[str],
|
|
524
601
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
525
|
-
account_id: Optional[pulumi.Input[
|
|
526
|
-
active: Optional[pulumi.Input[bool]] = None,
|
|
527
|
-
auth_basic: Optional[pulumi.Input[
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
602
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
603
|
+
active: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
604
|
+
auth_basic: Optional[pulumi.Input[Union['NotificationDestinationAuthBasicArgs', 'NotificationDestinationAuthBasicArgsDict']]] = None,
|
|
605
|
+
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationAuthCustomHeaderArgs', 'NotificationDestinationAuthCustomHeaderArgsDict']]]]] = None,
|
|
606
|
+
auth_token: Optional[pulumi.Input[Union['NotificationDestinationAuthTokenArgs', 'NotificationDestinationAuthTokenArgsDict']]] = None,
|
|
607
|
+
guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
608
|
+
last_sent: Optional[pulumi.Input[_builtins.str]] = None,
|
|
609
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
610
|
+
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationPropertyArgs', 'NotificationDestinationPropertyArgsDict']]]]] = None,
|
|
611
|
+
secure_url: Optional[pulumi.Input[Union['NotificationDestinationSecureUrlArgs', 'NotificationDestinationSecureUrlArgsDict']]] = None,
|
|
612
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
613
|
+
type: Optional[pulumi.Input[_builtins.str]] = None) -> 'NotificationDestination':
|
|
535
614
|
"""
|
|
536
615
|
Get an existing NotificationDestination resource's state with the given name, id, and optional extra
|
|
537
616
|
properties used to qualify the lookup.
|
|
@@ -539,17 +618,18 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
539
618
|
:param str resource_name: The unique name of the resulting resource.
|
|
540
619
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
541
620
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
542
|
-
:param pulumi.Input[
|
|
543
|
-
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
|
544
|
-
:param pulumi.Input[
|
|
545
|
-
:param pulumi.Input[pulumi.
|
|
546
|
-
:param pulumi.Input[
|
|
547
|
-
:param pulumi.Input[str]
|
|
548
|
-
:param pulumi.Input[str]
|
|
549
|
-
:param pulumi.Input[
|
|
550
|
-
:param pulumi.Input[
|
|
551
|
-
:param pulumi.Input[
|
|
552
|
-
|
|
621
|
+
:param pulumi.Input[_builtins.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.
|
|
622
|
+
:param pulumi.Input[_builtins.bool] active: Indicates whether the destination is active.
|
|
623
|
+
:param pulumi.Input[Union['NotificationDestinationAuthBasicArgs', 'NotificationDestinationAuthBasicArgsDict']] 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.
|
|
624
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationAuthCustomHeaderArgs', 'NotificationDestinationAuthCustomHeaderArgsDict']]]] auth_custom_headers: A nested block that describes a custom header authentication credentials. This field is required when the destination type is WORKFLOW_AUTOMATION and optional for other destination types. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
|
625
|
+
:param pulumi.Input[Union['NotificationDestinationAuthTokenArgs', 'NotificationDestinationAuthTokenArgsDict']] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
|
|
626
|
+
:param pulumi.Input[_builtins.str] guid: The unique entity identifier of the destination in New Relic.
|
|
627
|
+
:param pulumi.Input[_builtins.str] last_sent: The last time a notification was sent.
|
|
628
|
+
:param pulumi.Input[_builtins.str] name: The name of the destination.
|
|
629
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationDestinationPropertyArgs', 'NotificationDestinationPropertyArgsDict']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
|
630
|
+
:param pulumi.Input[Union['NotificationDestinationSecureUrlArgs', 'NotificationDestinationSecureUrlArgsDict']] 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.
|
|
631
|
+
:param pulumi.Input[_builtins.str] status: The status of the destination.
|
|
632
|
+
:param pulumi.Input[_builtins.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, MICROSOFT_TEAMS, WORKFLOW_AUTOMATION).
|
|
553
633
|
"""
|
|
554
634
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
555
635
|
|
|
@@ -558,32 +638,34 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
558
638
|
__props__.__dict__["account_id"] = account_id
|
|
559
639
|
__props__.__dict__["active"] = active
|
|
560
640
|
__props__.__dict__["auth_basic"] = auth_basic
|
|
641
|
+
__props__.__dict__["auth_custom_headers"] = auth_custom_headers
|
|
561
642
|
__props__.__dict__["auth_token"] = auth_token
|
|
562
643
|
__props__.__dict__["guid"] = guid
|
|
563
644
|
__props__.__dict__["last_sent"] = last_sent
|
|
564
645
|
__props__.__dict__["name"] = name
|
|
565
646
|
__props__.__dict__["properties"] = properties
|
|
647
|
+
__props__.__dict__["secure_url"] = secure_url
|
|
566
648
|
__props__.__dict__["status"] = status
|
|
567
649
|
__props__.__dict__["type"] = type
|
|
568
650
|
return NotificationDestination(resource_name, opts=opts, __props__=__props__)
|
|
569
651
|
|
|
570
|
-
@property
|
|
652
|
+
@_builtins.property
|
|
571
653
|
@pulumi.getter(name="accountId")
|
|
572
|
-
def account_id(self) -> pulumi.Output[
|
|
654
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
573
655
|
"""
|
|
574
656
|
Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
|
575
657
|
"""
|
|
576
658
|
return pulumi.get(self, "account_id")
|
|
577
659
|
|
|
578
|
-
@property
|
|
660
|
+
@_builtins.property
|
|
579
661
|
@pulumi.getter
|
|
580
|
-
def active(self) -> pulumi.Output[Optional[bool]]:
|
|
662
|
+
def active(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
581
663
|
"""
|
|
582
664
|
Indicates whether the destination is active.
|
|
583
665
|
"""
|
|
584
666
|
return pulumi.get(self, "active")
|
|
585
667
|
|
|
586
|
-
@property
|
|
668
|
+
@_builtins.property
|
|
587
669
|
@pulumi.getter(name="authBasic")
|
|
588
670
|
def auth_basic(self) -> pulumi.Output[Optional['outputs.NotificationDestinationAuthBasic']]:
|
|
589
671
|
"""
|
|
@@ -591,7 +673,15 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
591
673
|
"""
|
|
592
674
|
return pulumi.get(self, "auth_basic")
|
|
593
675
|
|
|
594
|
-
@property
|
|
676
|
+
@_builtins.property
|
|
677
|
+
@pulumi.getter(name="authCustomHeaders")
|
|
678
|
+
def auth_custom_headers(self) -> pulumi.Output[Optional[Sequence['outputs.NotificationDestinationAuthCustomHeader']]]:
|
|
679
|
+
"""
|
|
680
|
+
A nested block that describes a custom header authentication credentials. This field is required when the destination type is WORKFLOW_AUTOMATION and optional for other destination types. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
|
681
|
+
"""
|
|
682
|
+
return pulumi.get(self, "auth_custom_headers")
|
|
683
|
+
|
|
684
|
+
@_builtins.property
|
|
595
685
|
@pulumi.getter(name="authToken")
|
|
596
686
|
def auth_token(self) -> pulumi.Output[Optional['outputs.NotificationDestinationAuthToken']]:
|
|
597
687
|
"""
|
|
@@ -599,31 +689,31 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
599
689
|
"""
|
|
600
690
|
return pulumi.get(self, "auth_token")
|
|
601
691
|
|
|
602
|
-
@property
|
|
692
|
+
@_builtins.property
|
|
603
693
|
@pulumi.getter
|
|
604
|
-
def guid(self) -> pulumi.Output[str]:
|
|
694
|
+
def guid(self) -> pulumi.Output[_builtins.str]:
|
|
605
695
|
"""
|
|
606
696
|
The unique entity identifier of the destination in New Relic.
|
|
607
697
|
"""
|
|
608
698
|
return pulumi.get(self, "guid")
|
|
609
699
|
|
|
610
|
-
@property
|
|
700
|
+
@_builtins.property
|
|
611
701
|
@pulumi.getter(name="lastSent")
|
|
612
|
-
def last_sent(self) -> pulumi.Output[str]:
|
|
702
|
+
def last_sent(self) -> pulumi.Output[_builtins.str]:
|
|
613
703
|
"""
|
|
614
704
|
The last time a notification was sent.
|
|
615
705
|
"""
|
|
616
706
|
return pulumi.get(self, "last_sent")
|
|
617
707
|
|
|
618
|
-
@property
|
|
708
|
+
@_builtins.property
|
|
619
709
|
@pulumi.getter
|
|
620
|
-
def name(self) -> pulumi.Output[str]:
|
|
710
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
621
711
|
"""
|
|
622
712
|
The name of the destination.
|
|
623
713
|
"""
|
|
624
714
|
return pulumi.get(self, "name")
|
|
625
715
|
|
|
626
|
-
@property
|
|
716
|
+
@_builtins.property
|
|
627
717
|
@pulumi.getter
|
|
628
718
|
def properties(self) -> pulumi.Output[Sequence['outputs.NotificationDestinationProperty']]:
|
|
629
719
|
"""
|
|
@@ -631,20 +721,27 @@ class NotificationDestination(pulumi.CustomResource):
|
|
|
631
721
|
"""
|
|
632
722
|
return pulumi.get(self, "properties")
|
|
633
723
|
|
|
634
|
-
@property
|
|
724
|
+
@_builtins.property
|
|
725
|
+
@pulumi.getter(name="secureUrl")
|
|
726
|
+
def secure_url(self) -> pulumi.Output[Optional['outputs.NotificationDestinationSecureUrl']]:
|
|
727
|
+
"""
|
|
728
|
+
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.
|
|
729
|
+
"""
|
|
730
|
+
return pulumi.get(self, "secure_url")
|
|
731
|
+
|
|
732
|
+
@_builtins.property
|
|
635
733
|
@pulumi.getter
|
|
636
|
-
def status(self) -> pulumi.Output[str]:
|
|
734
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
637
735
|
"""
|
|
638
736
|
The status of the destination.
|
|
639
737
|
"""
|
|
640
738
|
return pulumi.get(self, "status")
|
|
641
739
|
|
|
642
|
-
@property
|
|
740
|
+
@_builtins.property
|
|
643
741
|
@pulumi.getter
|
|
644
|
-
def type(self) -> pulumi.Output[str]:
|
|
742
|
+
def type(self) -> pulumi.Output[_builtins.str]:
|
|
645
743
|
"""
|
|
646
|
-
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
|
|
647
|
-
PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
|
|
744
|
+
(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, MICROSOFT_TEAMS, WORKFLOW_AUTOMATION).
|
|
648
745
|
"""
|
|
649
746
|
return pulumi.get(self, "type")
|
|
650
747
|
|