pulumi-harness 0.8.0a1750480667__py3-none-any.whl → 0.8.0a1752731737__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-harness might be problematic. Click here for more details.
- pulumi_harness/__init__.py +16 -0
- pulumi_harness/platform/__init__.py +4 -0
- pulumi_harness/platform/_inputs.py +913 -0
- pulumi_harness/platform/central_notification_channel.py +432 -0
- pulumi_harness/platform/central_notification_rule.py +467 -0
- pulumi_harness/platform/delegatetoken.py +148 -89
- pulumi_harness/platform/get_central_notification_channel.py +277 -0
- pulumi_harness/platform/get_central_notification_rule.py +254 -0
- pulumi_harness/platform/get_delegatetoken.py +87 -31
- pulumi_harness/platform/get_workspace.py +16 -1
- pulumi_harness/platform/outputs.py +628 -0
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.8.0a1750480667.dist-info → pulumi_harness-0.8.0a1752731737.dist-info}/METADATA +1 -1
- {pulumi_harness-0.8.0a1750480667.dist-info → pulumi_harness-0.8.0a1752731737.dist-info}/RECORD +16 -12
- {pulumi_harness-0.8.0a1750480667.dist-info → pulumi_harness-0.8.0a1752731737.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1750480667.dist-info → pulumi_harness-0.8.0a1752731737.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from .. import _utilities
|
|
17
|
+
from . import outputs
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
'GetCentralNotificationChannelResult',
|
|
22
|
+
'AwaitableGetCentralNotificationChannelResult',
|
|
23
|
+
'get_central_notification_channel',
|
|
24
|
+
'get_central_notification_channel_output',
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
@pulumi.output_type
|
|
28
|
+
class GetCentralNotificationChannelResult:
|
|
29
|
+
"""
|
|
30
|
+
A collection of values returned by getCentralNotificationChannel.
|
|
31
|
+
"""
|
|
32
|
+
def __init__(__self__, account=None, channels=None, created=None, id=None, identifier=None, last_modified=None, name=None, notification_channel_type=None, org=None, project=None, status=None):
|
|
33
|
+
if account and not isinstance(account, str):
|
|
34
|
+
raise TypeError("Expected argument 'account' to be a str")
|
|
35
|
+
pulumi.set(__self__, "account", account)
|
|
36
|
+
if channels and not isinstance(channels, list):
|
|
37
|
+
raise TypeError("Expected argument 'channels' to be a list")
|
|
38
|
+
pulumi.set(__self__, "channels", channels)
|
|
39
|
+
if created and not isinstance(created, int):
|
|
40
|
+
raise TypeError("Expected argument 'created' to be a int")
|
|
41
|
+
pulumi.set(__self__, "created", created)
|
|
42
|
+
if id and not isinstance(id, str):
|
|
43
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
44
|
+
pulumi.set(__self__, "id", id)
|
|
45
|
+
if identifier and not isinstance(identifier, str):
|
|
46
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
47
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
48
|
+
if last_modified and not isinstance(last_modified, int):
|
|
49
|
+
raise TypeError("Expected argument 'last_modified' to be a int")
|
|
50
|
+
pulumi.set(__self__, "last_modified", last_modified)
|
|
51
|
+
if name and not isinstance(name, str):
|
|
52
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
53
|
+
pulumi.set(__self__, "name", name)
|
|
54
|
+
if notification_channel_type and not isinstance(notification_channel_type, str):
|
|
55
|
+
raise TypeError("Expected argument 'notification_channel_type' to be a str")
|
|
56
|
+
pulumi.set(__self__, "notification_channel_type", notification_channel_type)
|
|
57
|
+
if org and not isinstance(org, str):
|
|
58
|
+
raise TypeError("Expected argument 'org' to be a str")
|
|
59
|
+
pulumi.set(__self__, "org", org)
|
|
60
|
+
if project and not isinstance(project, str):
|
|
61
|
+
raise TypeError("Expected argument 'project' to be a str")
|
|
62
|
+
pulumi.set(__self__, "project", project)
|
|
63
|
+
if status and not isinstance(status, str):
|
|
64
|
+
raise TypeError("Expected argument 'status' to be a str")
|
|
65
|
+
pulumi.set(__self__, "status", status)
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter
|
|
69
|
+
def account(self) -> Optional[builtins.str]:
|
|
70
|
+
"""
|
|
71
|
+
Account identifier associated with this notification channel.
|
|
72
|
+
"""
|
|
73
|
+
return pulumi.get(self, "account")
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
@pulumi.getter
|
|
77
|
+
def channels(self) -> Optional[Sequence['outputs.GetCentralNotificationChannelChannelResult']]:
|
|
78
|
+
"""
|
|
79
|
+
Configuration details of the notification channel.
|
|
80
|
+
"""
|
|
81
|
+
return pulumi.get(self, "channels")
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
@pulumi.getter
|
|
85
|
+
def created(self) -> Optional[builtins.int]:
|
|
86
|
+
"""
|
|
87
|
+
Timestamp when the notification channel was created.
|
|
88
|
+
"""
|
|
89
|
+
return pulumi.get(self, "created")
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
@pulumi.getter
|
|
93
|
+
def id(self) -> builtins.str:
|
|
94
|
+
"""
|
|
95
|
+
The provider-assigned unique ID for this managed resource.
|
|
96
|
+
"""
|
|
97
|
+
return pulumi.get(self, "id")
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
@pulumi.getter
|
|
101
|
+
def identifier(self) -> builtins.str:
|
|
102
|
+
"""
|
|
103
|
+
Unique identifier of the notification channel.
|
|
104
|
+
"""
|
|
105
|
+
return pulumi.get(self, "identifier")
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
@pulumi.getter(name="lastModified")
|
|
109
|
+
def last_modified(self) -> Optional[builtins.int]:
|
|
110
|
+
"""
|
|
111
|
+
Timestamp when the notification channel was last modified.
|
|
112
|
+
"""
|
|
113
|
+
return pulumi.get(self, "last_modified")
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
@pulumi.getter
|
|
117
|
+
def name(self) -> Optional[builtins.str]:
|
|
118
|
+
"""
|
|
119
|
+
Name of the notification channel.
|
|
120
|
+
"""
|
|
121
|
+
return pulumi.get(self, "name")
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
@pulumi.getter(name="notificationChannelType")
|
|
125
|
+
def notification_channel_type(self) -> Optional[builtins.str]:
|
|
126
|
+
"""
|
|
127
|
+
Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
|
|
128
|
+
"""
|
|
129
|
+
return pulumi.get(self, "notification_channel_type")
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
@pulumi.getter
|
|
133
|
+
def org(self) -> Optional[builtins.str]:
|
|
134
|
+
"""
|
|
135
|
+
Identifier of the organization the notification channel is scoped to.
|
|
136
|
+
"""
|
|
137
|
+
return pulumi.get(self, "org")
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
@pulumi.getter
|
|
141
|
+
def project(self) -> Optional[builtins.str]:
|
|
142
|
+
"""
|
|
143
|
+
Identifier of the project the notification channel is scoped to.
|
|
144
|
+
"""
|
|
145
|
+
return pulumi.get(self, "project")
|
|
146
|
+
|
|
147
|
+
@property
|
|
148
|
+
@pulumi.getter
|
|
149
|
+
def status(self) -> Optional[builtins.str]:
|
|
150
|
+
"""
|
|
151
|
+
Status of the notification channel. Possible values are ENABLED or DISABLED.
|
|
152
|
+
"""
|
|
153
|
+
return pulumi.get(self, "status")
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
class AwaitableGetCentralNotificationChannelResult(GetCentralNotificationChannelResult):
|
|
157
|
+
# pylint: disable=using-constant-test
|
|
158
|
+
def __await__(self):
|
|
159
|
+
if False:
|
|
160
|
+
yield self
|
|
161
|
+
return GetCentralNotificationChannelResult(
|
|
162
|
+
account=self.account,
|
|
163
|
+
channels=self.channels,
|
|
164
|
+
created=self.created,
|
|
165
|
+
id=self.id,
|
|
166
|
+
identifier=self.identifier,
|
|
167
|
+
last_modified=self.last_modified,
|
|
168
|
+
name=self.name,
|
|
169
|
+
notification_channel_type=self.notification_channel_type,
|
|
170
|
+
org=self.org,
|
|
171
|
+
project=self.project,
|
|
172
|
+
status=self.status)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def get_central_notification_channel(account: Optional[builtins.str] = None,
|
|
176
|
+
channels: Optional[Sequence[Union['GetCentralNotificationChannelChannelArgs', 'GetCentralNotificationChannelChannelArgsDict']]] = None,
|
|
177
|
+
created: Optional[builtins.int] = None,
|
|
178
|
+
identifier: Optional[builtins.str] = None,
|
|
179
|
+
last_modified: Optional[builtins.int] = None,
|
|
180
|
+
name: Optional[builtins.str] = None,
|
|
181
|
+
notification_channel_type: Optional[builtins.str] = None,
|
|
182
|
+
org: Optional[builtins.str] = None,
|
|
183
|
+
project: Optional[builtins.str] = None,
|
|
184
|
+
status: Optional[builtins.str] = None,
|
|
185
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCentralNotificationChannelResult:
|
|
186
|
+
"""
|
|
187
|
+
Data source for retrieving a central notification channel in Harness.
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:param builtins.str account: Account identifier associated with this notification channel.
|
|
191
|
+
:param Sequence[Union['GetCentralNotificationChannelChannelArgs', 'GetCentralNotificationChannelChannelArgsDict']] channels: Configuration details of the notification channel.
|
|
192
|
+
:param builtins.int created: Timestamp when the notification channel was created.
|
|
193
|
+
:param builtins.str identifier: Unique identifier of the notification channel.
|
|
194
|
+
:param builtins.int last_modified: Timestamp when the notification channel was last modified.
|
|
195
|
+
:param builtins.str name: Name of the notification channel.
|
|
196
|
+
:param builtins.str notification_channel_type: Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
|
|
197
|
+
:param builtins.str org: Identifier of the organization the notification channel is scoped to.
|
|
198
|
+
:param builtins.str project: Identifier of the project the notification channel is scoped to.
|
|
199
|
+
:param builtins.str status: Status of the notification channel. Possible values are ENABLED or DISABLED.
|
|
200
|
+
"""
|
|
201
|
+
__args__ = dict()
|
|
202
|
+
__args__['account'] = account
|
|
203
|
+
__args__['channels'] = channels
|
|
204
|
+
__args__['created'] = created
|
|
205
|
+
__args__['identifier'] = identifier
|
|
206
|
+
__args__['lastModified'] = last_modified
|
|
207
|
+
__args__['name'] = name
|
|
208
|
+
__args__['notificationChannelType'] = notification_channel_type
|
|
209
|
+
__args__['org'] = org
|
|
210
|
+
__args__['project'] = project
|
|
211
|
+
__args__['status'] = status
|
|
212
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
213
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getCentralNotificationChannel:getCentralNotificationChannel', __args__, opts=opts, typ=GetCentralNotificationChannelResult).value
|
|
214
|
+
|
|
215
|
+
return AwaitableGetCentralNotificationChannelResult(
|
|
216
|
+
account=pulumi.get(__ret__, 'account'),
|
|
217
|
+
channels=pulumi.get(__ret__, 'channels'),
|
|
218
|
+
created=pulumi.get(__ret__, 'created'),
|
|
219
|
+
id=pulumi.get(__ret__, 'id'),
|
|
220
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
221
|
+
last_modified=pulumi.get(__ret__, 'last_modified'),
|
|
222
|
+
name=pulumi.get(__ret__, 'name'),
|
|
223
|
+
notification_channel_type=pulumi.get(__ret__, 'notification_channel_type'),
|
|
224
|
+
org=pulumi.get(__ret__, 'org'),
|
|
225
|
+
project=pulumi.get(__ret__, 'project'),
|
|
226
|
+
status=pulumi.get(__ret__, 'status'))
|
|
227
|
+
def get_central_notification_channel_output(account: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
228
|
+
channels: Optional[pulumi.Input[Optional[Sequence[Union['GetCentralNotificationChannelChannelArgs', 'GetCentralNotificationChannelChannelArgsDict']]]]] = None,
|
|
229
|
+
created: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
|
230
|
+
identifier: Optional[pulumi.Input[builtins.str]] = None,
|
|
231
|
+
last_modified: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
|
232
|
+
name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
233
|
+
notification_channel_type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
234
|
+
org: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
235
|
+
project: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
236
|
+
status: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
237
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCentralNotificationChannelResult]:
|
|
238
|
+
"""
|
|
239
|
+
Data source for retrieving a central notification channel in Harness.
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
:param builtins.str account: Account identifier associated with this notification channel.
|
|
243
|
+
:param Sequence[Union['GetCentralNotificationChannelChannelArgs', 'GetCentralNotificationChannelChannelArgsDict']] channels: Configuration details of the notification channel.
|
|
244
|
+
:param builtins.int created: Timestamp when the notification channel was created.
|
|
245
|
+
:param builtins.str identifier: Unique identifier of the notification channel.
|
|
246
|
+
:param builtins.int last_modified: Timestamp when the notification channel was last modified.
|
|
247
|
+
:param builtins.str name: Name of the notification channel.
|
|
248
|
+
:param builtins.str notification_channel_type: Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
|
|
249
|
+
:param builtins.str org: Identifier of the organization the notification channel is scoped to.
|
|
250
|
+
:param builtins.str project: Identifier of the project the notification channel is scoped to.
|
|
251
|
+
:param builtins.str status: Status of the notification channel. Possible values are ENABLED or DISABLED.
|
|
252
|
+
"""
|
|
253
|
+
__args__ = dict()
|
|
254
|
+
__args__['account'] = account
|
|
255
|
+
__args__['channels'] = channels
|
|
256
|
+
__args__['created'] = created
|
|
257
|
+
__args__['identifier'] = identifier
|
|
258
|
+
__args__['lastModified'] = last_modified
|
|
259
|
+
__args__['name'] = name
|
|
260
|
+
__args__['notificationChannelType'] = notification_channel_type
|
|
261
|
+
__args__['org'] = org
|
|
262
|
+
__args__['project'] = project
|
|
263
|
+
__args__['status'] = status
|
|
264
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
265
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getCentralNotificationChannel:getCentralNotificationChannel', __args__, opts=opts, typ=GetCentralNotificationChannelResult)
|
|
266
|
+
return __ret__.apply(lambda __response__: GetCentralNotificationChannelResult(
|
|
267
|
+
account=pulumi.get(__response__, 'account'),
|
|
268
|
+
channels=pulumi.get(__response__, 'channels'),
|
|
269
|
+
created=pulumi.get(__response__, 'created'),
|
|
270
|
+
id=pulumi.get(__response__, 'id'),
|
|
271
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
272
|
+
last_modified=pulumi.get(__response__, 'last_modified'),
|
|
273
|
+
name=pulumi.get(__response__, 'name'),
|
|
274
|
+
notification_channel_type=pulumi.get(__response__, 'notification_channel_type'),
|
|
275
|
+
org=pulumi.get(__response__, 'org'),
|
|
276
|
+
project=pulumi.get(__response__, 'project'),
|
|
277
|
+
status=pulumi.get(__response__, 'status')))
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from .. import _utilities
|
|
17
|
+
from . import outputs
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
'GetCentralNotificationRuleResult',
|
|
22
|
+
'AwaitableGetCentralNotificationRuleResult',
|
|
23
|
+
'get_central_notification_rule',
|
|
24
|
+
'get_central_notification_rule_output',
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
@pulumi.output_type
|
|
28
|
+
class GetCentralNotificationRuleResult:
|
|
29
|
+
"""
|
|
30
|
+
A collection of values returned by getCentralNotificationRule.
|
|
31
|
+
"""
|
|
32
|
+
def __init__(__self__, account=None, created=None, custom_notification_template_ref=None, id=None, identifier=None, last_modified=None, name=None, notification_channel_refs=None, notification_conditions=None, org=None, project=None, status=None):
|
|
33
|
+
if account and not isinstance(account, str):
|
|
34
|
+
raise TypeError("Expected argument 'account' to be a str")
|
|
35
|
+
pulumi.set(__self__, "account", account)
|
|
36
|
+
if created and not isinstance(created, int):
|
|
37
|
+
raise TypeError("Expected argument 'created' to be a int")
|
|
38
|
+
pulumi.set(__self__, "created", created)
|
|
39
|
+
if custom_notification_template_ref and not isinstance(custom_notification_template_ref, dict):
|
|
40
|
+
raise TypeError("Expected argument 'custom_notification_template_ref' to be a dict")
|
|
41
|
+
pulumi.set(__self__, "custom_notification_template_ref", custom_notification_template_ref)
|
|
42
|
+
if id and not isinstance(id, str):
|
|
43
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
44
|
+
pulumi.set(__self__, "id", id)
|
|
45
|
+
if identifier and not isinstance(identifier, str):
|
|
46
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
47
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
48
|
+
if last_modified and not isinstance(last_modified, int):
|
|
49
|
+
raise TypeError("Expected argument 'last_modified' to be a int")
|
|
50
|
+
pulumi.set(__self__, "last_modified", last_modified)
|
|
51
|
+
if name and not isinstance(name, str):
|
|
52
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
53
|
+
pulumi.set(__self__, "name", name)
|
|
54
|
+
if notification_channel_refs and not isinstance(notification_channel_refs, list):
|
|
55
|
+
raise TypeError("Expected argument 'notification_channel_refs' to be a list")
|
|
56
|
+
pulumi.set(__self__, "notification_channel_refs", notification_channel_refs)
|
|
57
|
+
if notification_conditions and not isinstance(notification_conditions, list):
|
|
58
|
+
raise TypeError("Expected argument 'notification_conditions' to be a list")
|
|
59
|
+
pulumi.set(__self__, "notification_conditions", notification_conditions)
|
|
60
|
+
if org and not isinstance(org, str):
|
|
61
|
+
raise TypeError("Expected argument 'org' to be a str")
|
|
62
|
+
pulumi.set(__self__, "org", org)
|
|
63
|
+
if project and not isinstance(project, str):
|
|
64
|
+
raise TypeError("Expected argument 'project' to be a str")
|
|
65
|
+
pulumi.set(__self__, "project", project)
|
|
66
|
+
if status and not isinstance(status, str):
|
|
67
|
+
raise TypeError("Expected argument 'status' to be a str")
|
|
68
|
+
pulumi.set(__self__, "status", status)
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
@pulumi.getter
|
|
72
|
+
def account(self) -> builtins.str:
|
|
73
|
+
"""
|
|
74
|
+
Account identifier associated with this notification channel.
|
|
75
|
+
"""
|
|
76
|
+
return pulumi.get(self, "account")
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
@pulumi.getter
|
|
80
|
+
def created(self) -> builtins.int:
|
|
81
|
+
"""
|
|
82
|
+
Timestamp when the notification rule was created.
|
|
83
|
+
"""
|
|
84
|
+
return pulumi.get(self, "created")
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter(name="customNotificationTemplateRef")
|
|
88
|
+
def custom_notification_template_ref(self) -> Optional['outputs.GetCentralNotificationRuleCustomNotificationTemplateRefResult']:
|
|
89
|
+
return pulumi.get(self, "custom_notification_template_ref")
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
@pulumi.getter
|
|
93
|
+
def id(self) -> builtins.str:
|
|
94
|
+
"""
|
|
95
|
+
The provider-assigned unique ID for this managed resource.
|
|
96
|
+
"""
|
|
97
|
+
return pulumi.get(self, "id")
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
@pulumi.getter
|
|
101
|
+
def identifier(self) -> builtins.str:
|
|
102
|
+
"""
|
|
103
|
+
Identifier of the Notification Rule.
|
|
104
|
+
"""
|
|
105
|
+
return pulumi.get(self, "identifier")
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
@pulumi.getter(name="lastModified")
|
|
109
|
+
def last_modified(self) -> builtins.int:
|
|
110
|
+
"""
|
|
111
|
+
Timestamp when the notification rule was last modified.
|
|
112
|
+
"""
|
|
113
|
+
return pulumi.get(self, "last_modified")
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
@pulumi.getter
|
|
117
|
+
def name(self) -> Optional[builtins.str]:
|
|
118
|
+
return pulumi.get(self, "name")
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
@pulumi.getter(name="notificationChannelRefs")
|
|
122
|
+
def notification_channel_refs(self) -> Optional[Sequence[builtins.str]]:
|
|
123
|
+
return pulumi.get(self, "notification_channel_refs")
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
@pulumi.getter(name="notificationConditions")
|
|
127
|
+
def notification_conditions(self) -> Optional[Sequence['outputs.GetCentralNotificationRuleNotificationConditionResult']]:
|
|
128
|
+
return pulumi.get(self, "notification_conditions")
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
@pulumi.getter
|
|
132
|
+
def org(self) -> Optional[builtins.str]:
|
|
133
|
+
"""
|
|
134
|
+
Identifier of the organization in which the Notification Rule is configured.
|
|
135
|
+
"""
|
|
136
|
+
return pulumi.get(self, "org")
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
@pulumi.getter
|
|
140
|
+
def project(self) -> Optional[builtins.str]:
|
|
141
|
+
"""
|
|
142
|
+
Identifier of the project in which the Notification Rule is configured.
|
|
143
|
+
"""
|
|
144
|
+
return pulumi.get(self, "project")
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
@pulumi.getter
|
|
148
|
+
def status(self) -> Optional[builtins.str]:
|
|
149
|
+
return pulumi.get(self, "status")
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
class AwaitableGetCentralNotificationRuleResult(GetCentralNotificationRuleResult):
|
|
153
|
+
# pylint: disable=using-constant-test
|
|
154
|
+
def __await__(self):
|
|
155
|
+
if False:
|
|
156
|
+
yield self
|
|
157
|
+
return GetCentralNotificationRuleResult(
|
|
158
|
+
account=self.account,
|
|
159
|
+
created=self.created,
|
|
160
|
+
custom_notification_template_ref=self.custom_notification_template_ref,
|
|
161
|
+
id=self.id,
|
|
162
|
+
identifier=self.identifier,
|
|
163
|
+
last_modified=self.last_modified,
|
|
164
|
+
name=self.name,
|
|
165
|
+
notification_channel_refs=self.notification_channel_refs,
|
|
166
|
+
notification_conditions=self.notification_conditions,
|
|
167
|
+
org=self.org,
|
|
168
|
+
project=self.project,
|
|
169
|
+
status=self.status)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def get_central_notification_rule(custom_notification_template_ref: Optional[Union['GetCentralNotificationRuleCustomNotificationTemplateRefArgs', 'GetCentralNotificationRuleCustomNotificationTemplateRefArgsDict']] = None,
|
|
173
|
+
identifier: Optional[builtins.str] = None,
|
|
174
|
+
name: Optional[builtins.str] = None,
|
|
175
|
+
notification_channel_refs: Optional[Sequence[builtins.str]] = None,
|
|
176
|
+
notification_conditions: Optional[Sequence[Union['GetCentralNotificationRuleNotificationConditionArgs', 'GetCentralNotificationRuleNotificationConditionArgsDict']]] = None,
|
|
177
|
+
org: Optional[builtins.str] = None,
|
|
178
|
+
project: Optional[builtins.str] = None,
|
|
179
|
+
status: Optional[builtins.str] = None,
|
|
180
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCentralNotificationRuleResult:
|
|
181
|
+
"""
|
|
182
|
+
Data source for retrieving a Notification Rule.
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:param builtins.str identifier: Identifier of the Notification Rule.
|
|
186
|
+
:param builtins.str org: Identifier of the organization in which the Notification Rule is configured.
|
|
187
|
+
:param builtins.str project: Identifier of the project in which the Notification Rule is configured.
|
|
188
|
+
"""
|
|
189
|
+
__args__ = dict()
|
|
190
|
+
__args__['customNotificationTemplateRef'] = custom_notification_template_ref
|
|
191
|
+
__args__['identifier'] = identifier
|
|
192
|
+
__args__['name'] = name
|
|
193
|
+
__args__['notificationChannelRefs'] = notification_channel_refs
|
|
194
|
+
__args__['notificationConditions'] = notification_conditions
|
|
195
|
+
__args__['org'] = org
|
|
196
|
+
__args__['project'] = project
|
|
197
|
+
__args__['status'] = status
|
|
198
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
199
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getCentralNotificationRule:getCentralNotificationRule', __args__, opts=opts, typ=GetCentralNotificationRuleResult).value
|
|
200
|
+
|
|
201
|
+
return AwaitableGetCentralNotificationRuleResult(
|
|
202
|
+
account=pulumi.get(__ret__, 'account'),
|
|
203
|
+
created=pulumi.get(__ret__, 'created'),
|
|
204
|
+
custom_notification_template_ref=pulumi.get(__ret__, 'custom_notification_template_ref'),
|
|
205
|
+
id=pulumi.get(__ret__, 'id'),
|
|
206
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
207
|
+
last_modified=pulumi.get(__ret__, 'last_modified'),
|
|
208
|
+
name=pulumi.get(__ret__, 'name'),
|
|
209
|
+
notification_channel_refs=pulumi.get(__ret__, 'notification_channel_refs'),
|
|
210
|
+
notification_conditions=pulumi.get(__ret__, 'notification_conditions'),
|
|
211
|
+
org=pulumi.get(__ret__, 'org'),
|
|
212
|
+
project=pulumi.get(__ret__, 'project'),
|
|
213
|
+
status=pulumi.get(__ret__, 'status'))
|
|
214
|
+
def get_central_notification_rule_output(custom_notification_template_ref: Optional[pulumi.Input[Optional[Union['GetCentralNotificationRuleCustomNotificationTemplateRefArgs', 'GetCentralNotificationRuleCustomNotificationTemplateRefArgsDict']]]] = None,
|
|
215
|
+
identifier: Optional[pulumi.Input[builtins.str]] = None,
|
|
216
|
+
name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
217
|
+
notification_channel_refs: Optional[pulumi.Input[Optional[Sequence[builtins.str]]]] = None,
|
|
218
|
+
notification_conditions: Optional[pulumi.Input[Optional[Sequence[Union['GetCentralNotificationRuleNotificationConditionArgs', 'GetCentralNotificationRuleNotificationConditionArgsDict']]]]] = None,
|
|
219
|
+
org: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
220
|
+
project: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
221
|
+
status: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
222
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCentralNotificationRuleResult]:
|
|
223
|
+
"""
|
|
224
|
+
Data source for retrieving a Notification Rule.
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
:param builtins.str identifier: Identifier of the Notification Rule.
|
|
228
|
+
:param builtins.str org: Identifier of the organization in which the Notification Rule is configured.
|
|
229
|
+
:param builtins.str project: Identifier of the project in which the Notification Rule is configured.
|
|
230
|
+
"""
|
|
231
|
+
__args__ = dict()
|
|
232
|
+
__args__['customNotificationTemplateRef'] = custom_notification_template_ref
|
|
233
|
+
__args__['identifier'] = identifier
|
|
234
|
+
__args__['name'] = name
|
|
235
|
+
__args__['notificationChannelRefs'] = notification_channel_refs
|
|
236
|
+
__args__['notificationConditions'] = notification_conditions
|
|
237
|
+
__args__['org'] = org
|
|
238
|
+
__args__['project'] = project
|
|
239
|
+
__args__['status'] = status
|
|
240
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
241
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getCentralNotificationRule:getCentralNotificationRule', __args__, opts=opts, typ=GetCentralNotificationRuleResult)
|
|
242
|
+
return __ret__.apply(lambda __response__: GetCentralNotificationRuleResult(
|
|
243
|
+
account=pulumi.get(__response__, 'account'),
|
|
244
|
+
created=pulumi.get(__response__, 'created'),
|
|
245
|
+
custom_notification_template_ref=pulumi.get(__response__, 'custom_notification_template_ref'),
|
|
246
|
+
id=pulumi.get(__response__, 'id'),
|
|
247
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
248
|
+
last_modified=pulumi.get(__response__, 'last_modified'),
|
|
249
|
+
name=pulumi.get(__response__, 'name'),
|
|
250
|
+
notification_channel_refs=pulumi.get(__response__, 'notification_channel_refs'),
|
|
251
|
+
notification_conditions=pulumi.get(__response__, 'notification_conditions'),
|
|
252
|
+
org=pulumi.get(__response__, 'org'),
|
|
253
|
+
project=pulumi.get(__response__, 'project'),
|
|
254
|
+
status=pulumi.get(__response__, 'status')))
|