pulumi-harness 0.8.0a1752696115__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 +8 -0
- pulumi_harness/platform/__init__.py +2 -0
- pulumi_harness/platform/_inputs.py +379 -0
- pulumi_harness/platform/central_notification_rule.py +467 -0
- pulumi_harness/platform/get_central_notification_rule.py +254 -0
- pulumi_harness/platform/get_workspace.py +16 -1
- pulumi_harness/platform/outputs.py +277 -0
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.8.0a1752696115.dist-info → pulumi_harness-0.8.0a1752731737.dist-info}/METADATA +1 -1
- {pulumi_harness-0.8.0a1752696115.dist-info → pulumi_harness-0.8.0a1752731737.dist-info}/RECORD +12 -10
- {pulumi_harness-0.8.0a1752696115.dist-info → pulumi_harness-0.8.0a1752731737.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1752696115.dist-info → pulumi_harness-0.8.0a1752731737.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,467 @@
|
|
|
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__ = ['CentralNotificationRuleArgs', 'CentralNotificationRule']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class CentralNotificationRuleArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
identifier: pulumi.Input[builtins.str],
|
|
26
|
+
notification_channel_refs: pulumi.Input[Sequence[pulumi.Input[builtins.str]]],
|
|
27
|
+
notification_conditions: pulumi.Input[Sequence[pulumi.Input['CentralNotificationRuleNotificationConditionArgs']]],
|
|
28
|
+
project: pulumi.Input[builtins.str],
|
|
29
|
+
custom_notification_template_ref: Optional[pulumi.Input['CentralNotificationRuleCustomNotificationTemplateRefArgs']] = None,
|
|
30
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
31
|
+
org: Optional[pulumi.Input[builtins.str]] = None,
|
|
32
|
+
status: Optional[pulumi.Input[builtins.str]] = None):
|
|
33
|
+
"""
|
|
34
|
+
The set of arguments for constructing a CentralNotificationRule resource.
|
|
35
|
+
"""
|
|
36
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
37
|
+
pulumi.set(__self__, "notification_channel_refs", notification_channel_refs)
|
|
38
|
+
pulumi.set(__self__, "notification_conditions", notification_conditions)
|
|
39
|
+
pulumi.set(__self__, "project", project)
|
|
40
|
+
if custom_notification_template_ref is not None:
|
|
41
|
+
pulumi.set(__self__, "custom_notification_template_ref", custom_notification_template_ref)
|
|
42
|
+
if name is not None:
|
|
43
|
+
pulumi.set(__self__, "name", name)
|
|
44
|
+
if org is not None:
|
|
45
|
+
pulumi.set(__self__, "org", org)
|
|
46
|
+
if status is not None:
|
|
47
|
+
pulumi.set(__self__, "status", status)
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
@pulumi.getter
|
|
51
|
+
def identifier(self) -> pulumi.Input[builtins.str]:
|
|
52
|
+
return pulumi.get(self, "identifier")
|
|
53
|
+
|
|
54
|
+
@identifier.setter
|
|
55
|
+
def identifier(self, value: pulumi.Input[builtins.str]):
|
|
56
|
+
pulumi.set(self, "identifier", value)
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
@pulumi.getter(name="notificationChannelRefs")
|
|
60
|
+
def notification_channel_refs(self) -> pulumi.Input[Sequence[pulumi.Input[builtins.str]]]:
|
|
61
|
+
return pulumi.get(self, "notification_channel_refs")
|
|
62
|
+
|
|
63
|
+
@notification_channel_refs.setter
|
|
64
|
+
def notification_channel_refs(self, value: pulumi.Input[Sequence[pulumi.Input[builtins.str]]]):
|
|
65
|
+
pulumi.set(self, "notification_channel_refs", value)
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter(name="notificationConditions")
|
|
69
|
+
def notification_conditions(self) -> pulumi.Input[Sequence[pulumi.Input['CentralNotificationRuleNotificationConditionArgs']]]:
|
|
70
|
+
return pulumi.get(self, "notification_conditions")
|
|
71
|
+
|
|
72
|
+
@notification_conditions.setter
|
|
73
|
+
def notification_conditions(self, value: pulumi.Input[Sequence[pulumi.Input['CentralNotificationRuleNotificationConditionArgs']]]):
|
|
74
|
+
pulumi.set(self, "notification_conditions", value)
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
@pulumi.getter
|
|
78
|
+
def project(self) -> pulumi.Input[builtins.str]:
|
|
79
|
+
return pulumi.get(self, "project")
|
|
80
|
+
|
|
81
|
+
@project.setter
|
|
82
|
+
def project(self, value: pulumi.Input[builtins.str]):
|
|
83
|
+
pulumi.set(self, "project", value)
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter(name="customNotificationTemplateRef")
|
|
87
|
+
def custom_notification_template_ref(self) -> Optional[pulumi.Input['CentralNotificationRuleCustomNotificationTemplateRefArgs']]:
|
|
88
|
+
return pulumi.get(self, "custom_notification_template_ref")
|
|
89
|
+
|
|
90
|
+
@custom_notification_template_ref.setter
|
|
91
|
+
def custom_notification_template_ref(self, value: Optional[pulumi.Input['CentralNotificationRuleCustomNotificationTemplateRefArgs']]):
|
|
92
|
+
pulumi.set(self, "custom_notification_template_ref", value)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
@pulumi.getter
|
|
96
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
97
|
+
return pulumi.get(self, "name")
|
|
98
|
+
|
|
99
|
+
@name.setter
|
|
100
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
101
|
+
pulumi.set(self, "name", value)
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
@pulumi.getter
|
|
105
|
+
def org(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
106
|
+
return pulumi.get(self, "org")
|
|
107
|
+
|
|
108
|
+
@org.setter
|
|
109
|
+
def org(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
110
|
+
pulumi.set(self, "org", value)
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter
|
|
114
|
+
def status(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
115
|
+
return pulumi.get(self, "status")
|
|
116
|
+
|
|
117
|
+
@status.setter
|
|
118
|
+
def status(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
119
|
+
pulumi.set(self, "status", value)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@pulumi.input_type
|
|
123
|
+
class _CentralNotificationRuleState:
|
|
124
|
+
def __init__(__self__, *,
|
|
125
|
+
account: Optional[pulumi.Input[builtins.str]] = None,
|
|
126
|
+
created: Optional[pulumi.Input[builtins.int]] = None,
|
|
127
|
+
custom_notification_template_ref: Optional[pulumi.Input['CentralNotificationRuleCustomNotificationTemplateRefArgs']] = None,
|
|
128
|
+
identifier: Optional[pulumi.Input[builtins.str]] = None,
|
|
129
|
+
last_modified: Optional[pulumi.Input[builtins.int]] = None,
|
|
130
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
131
|
+
notification_channel_refs: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
132
|
+
notification_conditions: Optional[pulumi.Input[Sequence[pulumi.Input['CentralNotificationRuleNotificationConditionArgs']]]] = None,
|
|
133
|
+
org: Optional[pulumi.Input[builtins.str]] = None,
|
|
134
|
+
project: Optional[pulumi.Input[builtins.str]] = None,
|
|
135
|
+
status: Optional[pulumi.Input[builtins.str]] = None):
|
|
136
|
+
"""
|
|
137
|
+
Input properties used for looking up and filtering CentralNotificationRule resources.
|
|
138
|
+
:param pulumi.Input[builtins.str] account: Account identifier associated with this notification channel.
|
|
139
|
+
:param pulumi.Input[builtins.int] created: Timestamp when the notification rule was created.
|
|
140
|
+
:param pulumi.Input[builtins.int] last_modified: Timestamp when the notification rule was last modified.
|
|
141
|
+
"""
|
|
142
|
+
if account is not None:
|
|
143
|
+
pulumi.set(__self__, "account", account)
|
|
144
|
+
if created is not None:
|
|
145
|
+
pulumi.set(__self__, "created", created)
|
|
146
|
+
if custom_notification_template_ref is not None:
|
|
147
|
+
pulumi.set(__self__, "custom_notification_template_ref", custom_notification_template_ref)
|
|
148
|
+
if identifier is not None:
|
|
149
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
150
|
+
if last_modified is not None:
|
|
151
|
+
pulumi.set(__self__, "last_modified", last_modified)
|
|
152
|
+
if name is not None:
|
|
153
|
+
pulumi.set(__self__, "name", name)
|
|
154
|
+
if notification_channel_refs is not None:
|
|
155
|
+
pulumi.set(__self__, "notification_channel_refs", notification_channel_refs)
|
|
156
|
+
if notification_conditions is not None:
|
|
157
|
+
pulumi.set(__self__, "notification_conditions", notification_conditions)
|
|
158
|
+
if org is not None:
|
|
159
|
+
pulumi.set(__self__, "org", org)
|
|
160
|
+
if project is not None:
|
|
161
|
+
pulumi.set(__self__, "project", project)
|
|
162
|
+
if status is not None:
|
|
163
|
+
pulumi.set(__self__, "status", status)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def account(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
168
|
+
"""
|
|
169
|
+
Account identifier associated with this notification channel.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "account")
|
|
172
|
+
|
|
173
|
+
@account.setter
|
|
174
|
+
def account(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
175
|
+
pulumi.set(self, "account", value)
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter
|
|
179
|
+
def created(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
180
|
+
"""
|
|
181
|
+
Timestamp when the notification rule was created.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "created")
|
|
184
|
+
|
|
185
|
+
@created.setter
|
|
186
|
+
def created(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
187
|
+
pulumi.set(self, "created", value)
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
@pulumi.getter(name="customNotificationTemplateRef")
|
|
191
|
+
def custom_notification_template_ref(self) -> Optional[pulumi.Input['CentralNotificationRuleCustomNotificationTemplateRefArgs']]:
|
|
192
|
+
return pulumi.get(self, "custom_notification_template_ref")
|
|
193
|
+
|
|
194
|
+
@custom_notification_template_ref.setter
|
|
195
|
+
def custom_notification_template_ref(self, value: Optional[pulumi.Input['CentralNotificationRuleCustomNotificationTemplateRefArgs']]):
|
|
196
|
+
pulumi.set(self, "custom_notification_template_ref", value)
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
@pulumi.getter
|
|
200
|
+
def identifier(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
201
|
+
return pulumi.get(self, "identifier")
|
|
202
|
+
|
|
203
|
+
@identifier.setter
|
|
204
|
+
def identifier(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
205
|
+
pulumi.set(self, "identifier", value)
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
@pulumi.getter(name="lastModified")
|
|
209
|
+
def last_modified(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
210
|
+
"""
|
|
211
|
+
Timestamp when the notification rule was last modified.
|
|
212
|
+
"""
|
|
213
|
+
return pulumi.get(self, "last_modified")
|
|
214
|
+
|
|
215
|
+
@last_modified.setter
|
|
216
|
+
def last_modified(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
217
|
+
pulumi.set(self, "last_modified", value)
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
@pulumi.getter
|
|
221
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
222
|
+
return pulumi.get(self, "name")
|
|
223
|
+
|
|
224
|
+
@name.setter
|
|
225
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
226
|
+
pulumi.set(self, "name", value)
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
@pulumi.getter(name="notificationChannelRefs")
|
|
230
|
+
def notification_channel_refs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
231
|
+
return pulumi.get(self, "notification_channel_refs")
|
|
232
|
+
|
|
233
|
+
@notification_channel_refs.setter
|
|
234
|
+
def notification_channel_refs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
235
|
+
pulumi.set(self, "notification_channel_refs", value)
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
@pulumi.getter(name="notificationConditions")
|
|
239
|
+
def notification_conditions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CentralNotificationRuleNotificationConditionArgs']]]]:
|
|
240
|
+
return pulumi.get(self, "notification_conditions")
|
|
241
|
+
|
|
242
|
+
@notification_conditions.setter
|
|
243
|
+
def notification_conditions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CentralNotificationRuleNotificationConditionArgs']]]]):
|
|
244
|
+
pulumi.set(self, "notification_conditions", value)
|
|
245
|
+
|
|
246
|
+
@property
|
|
247
|
+
@pulumi.getter
|
|
248
|
+
def org(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
249
|
+
return pulumi.get(self, "org")
|
|
250
|
+
|
|
251
|
+
@org.setter
|
|
252
|
+
def org(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
253
|
+
pulumi.set(self, "org", value)
|
|
254
|
+
|
|
255
|
+
@property
|
|
256
|
+
@pulumi.getter
|
|
257
|
+
def project(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
258
|
+
return pulumi.get(self, "project")
|
|
259
|
+
|
|
260
|
+
@project.setter
|
|
261
|
+
def project(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
262
|
+
pulumi.set(self, "project", value)
|
|
263
|
+
|
|
264
|
+
@property
|
|
265
|
+
@pulumi.getter
|
|
266
|
+
def status(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
267
|
+
return pulumi.get(self, "status")
|
|
268
|
+
|
|
269
|
+
@status.setter
|
|
270
|
+
def status(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
271
|
+
pulumi.set(self, "status", value)
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
@pulumi.type_token("harness:platform/centralNotificationRule:CentralNotificationRule")
|
|
275
|
+
class CentralNotificationRule(pulumi.CustomResource):
|
|
276
|
+
@overload
|
|
277
|
+
def __init__(__self__,
|
|
278
|
+
resource_name: str,
|
|
279
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
280
|
+
custom_notification_template_ref: Optional[pulumi.Input[Union['CentralNotificationRuleCustomNotificationTemplateRefArgs', 'CentralNotificationRuleCustomNotificationTemplateRefArgsDict']]] = None,
|
|
281
|
+
identifier: Optional[pulumi.Input[builtins.str]] = None,
|
|
282
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
283
|
+
notification_channel_refs: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
284
|
+
notification_conditions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CentralNotificationRuleNotificationConditionArgs', 'CentralNotificationRuleNotificationConditionArgsDict']]]]] = None,
|
|
285
|
+
org: Optional[pulumi.Input[builtins.str]] = None,
|
|
286
|
+
project: Optional[pulumi.Input[builtins.str]] = None,
|
|
287
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
|
288
|
+
__props__=None):
|
|
289
|
+
"""
|
|
290
|
+
Resource for creating a Harness Notification Rule
|
|
291
|
+
|
|
292
|
+
:param str resource_name: The name of the resource.
|
|
293
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
294
|
+
"""
|
|
295
|
+
...
|
|
296
|
+
@overload
|
|
297
|
+
def __init__(__self__,
|
|
298
|
+
resource_name: str,
|
|
299
|
+
args: CentralNotificationRuleArgs,
|
|
300
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
301
|
+
"""
|
|
302
|
+
Resource for creating a Harness Notification Rule
|
|
303
|
+
|
|
304
|
+
:param str resource_name: The name of the resource.
|
|
305
|
+
:param CentralNotificationRuleArgs args: The arguments to use to populate this resource's properties.
|
|
306
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
307
|
+
"""
|
|
308
|
+
...
|
|
309
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
310
|
+
resource_args, opts = _utilities.get_resource_args_opts(CentralNotificationRuleArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
311
|
+
if resource_args is not None:
|
|
312
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
313
|
+
else:
|
|
314
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
315
|
+
|
|
316
|
+
def _internal_init(__self__,
|
|
317
|
+
resource_name: str,
|
|
318
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
319
|
+
custom_notification_template_ref: Optional[pulumi.Input[Union['CentralNotificationRuleCustomNotificationTemplateRefArgs', 'CentralNotificationRuleCustomNotificationTemplateRefArgsDict']]] = None,
|
|
320
|
+
identifier: Optional[pulumi.Input[builtins.str]] = None,
|
|
321
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
322
|
+
notification_channel_refs: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
323
|
+
notification_conditions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CentralNotificationRuleNotificationConditionArgs', 'CentralNotificationRuleNotificationConditionArgsDict']]]]] = None,
|
|
324
|
+
org: Optional[pulumi.Input[builtins.str]] = None,
|
|
325
|
+
project: Optional[pulumi.Input[builtins.str]] = None,
|
|
326
|
+
status: Optional[pulumi.Input[builtins.str]] = None,
|
|
327
|
+
__props__=None):
|
|
328
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
329
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
330
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
331
|
+
if opts.id is None:
|
|
332
|
+
if __props__ is not None:
|
|
333
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
334
|
+
__props__ = CentralNotificationRuleArgs.__new__(CentralNotificationRuleArgs)
|
|
335
|
+
|
|
336
|
+
__props__.__dict__["custom_notification_template_ref"] = custom_notification_template_ref
|
|
337
|
+
if identifier is None and not opts.urn:
|
|
338
|
+
raise TypeError("Missing required property 'identifier'")
|
|
339
|
+
__props__.__dict__["identifier"] = identifier
|
|
340
|
+
__props__.__dict__["name"] = name
|
|
341
|
+
if notification_channel_refs is None and not opts.urn:
|
|
342
|
+
raise TypeError("Missing required property 'notification_channel_refs'")
|
|
343
|
+
__props__.__dict__["notification_channel_refs"] = notification_channel_refs
|
|
344
|
+
if notification_conditions is None and not opts.urn:
|
|
345
|
+
raise TypeError("Missing required property 'notification_conditions'")
|
|
346
|
+
__props__.__dict__["notification_conditions"] = notification_conditions
|
|
347
|
+
__props__.__dict__["org"] = org
|
|
348
|
+
if project is None and not opts.urn:
|
|
349
|
+
raise TypeError("Missing required property 'project'")
|
|
350
|
+
__props__.__dict__["project"] = project
|
|
351
|
+
__props__.__dict__["status"] = status
|
|
352
|
+
__props__.__dict__["account"] = None
|
|
353
|
+
__props__.__dict__["created"] = None
|
|
354
|
+
__props__.__dict__["last_modified"] = None
|
|
355
|
+
super(CentralNotificationRule, __self__).__init__(
|
|
356
|
+
'harness:platform/centralNotificationRule:CentralNotificationRule',
|
|
357
|
+
resource_name,
|
|
358
|
+
__props__,
|
|
359
|
+
opts)
|
|
360
|
+
|
|
361
|
+
@staticmethod
|
|
362
|
+
def get(resource_name: str,
|
|
363
|
+
id: pulumi.Input[str],
|
|
364
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
365
|
+
account: Optional[pulumi.Input[builtins.str]] = None,
|
|
366
|
+
created: Optional[pulumi.Input[builtins.int]] = None,
|
|
367
|
+
custom_notification_template_ref: Optional[pulumi.Input[Union['CentralNotificationRuleCustomNotificationTemplateRefArgs', 'CentralNotificationRuleCustomNotificationTemplateRefArgsDict']]] = None,
|
|
368
|
+
identifier: Optional[pulumi.Input[builtins.str]] = None,
|
|
369
|
+
last_modified: Optional[pulumi.Input[builtins.int]] = None,
|
|
370
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
371
|
+
notification_channel_refs: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
372
|
+
notification_conditions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CentralNotificationRuleNotificationConditionArgs', 'CentralNotificationRuleNotificationConditionArgsDict']]]]] = None,
|
|
373
|
+
org: Optional[pulumi.Input[builtins.str]] = None,
|
|
374
|
+
project: Optional[pulumi.Input[builtins.str]] = None,
|
|
375
|
+
status: Optional[pulumi.Input[builtins.str]] = None) -> 'CentralNotificationRule':
|
|
376
|
+
"""
|
|
377
|
+
Get an existing CentralNotificationRule resource's state with the given name, id, and optional extra
|
|
378
|
+
properties used to qualify the lookup.
|
|
379
|
+
|
|
380
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
381
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
382
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
383
|
+
:param pulumi.Input[builtins.str] account: Account identifier associated with this notification channel.
|
|
384
|
+
:param pulumi.Input[builtins.int] created: Timestamp when the notification rule was created.
|
|
385
|
+
:param pulumi.Input[builtins.int] last_modified: Timestamp when the notification rule was last modified.
|
|
386
|
+
"""
|
|
387
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
388
|
+
|
|
389
|
+
__props__ = _CentralNotificationRuleState.__new__(_CentralNotificationRuleState)
|
|
390
|
+
|
|
391
|
+
__props__.__dict__["account"] = account
|
|
392
|
+
__props__.__dict__["created"] = created
|
|
393
|
+
__props__.__dict__["custom_notification_template_ref"] = custom_notification_template_ref
|
|
394
|
+
__props__.__dict__["identifier"] = identifier
|
|
395
|
+
__props__.__dict__["last_modified"] = last_modified
|
|
396
|
+
__props__.__dict__["name"] = name
|
|
397
|
+
__props__.__dict__["notification_channel_refs"] = notification_channel_refs
|
|
398
|
+
__props__.__dict__["notification_conditions"] = notification_conditions
|
|
399
|
+
__props__.__dict__["org"] = org
|
|
400
|
+
__props__.__dict__["project"] = project
|
|
401
|
+
__props__.__dict__["status"] = status
|
|
402
|
+
return CentralNotificationRule(resource_name, opts=opts, __props__=__props__)
|
|
403
|
+
|
|
404
|
+
@property
|
|
405
|
+
@pulumi.getter
|
|
406
|
+
def account(self) -> pulumi.Output[builtins.str]:
|
|
407
|
+
"""
|
|
408
|
+
Account identifier associated with this notification channel.
|
|
409
|
+
"""
|
|
410
|
+
return pulumi.get(self, "account")
|
|
411
|
+
|
|
412
|
+
@property
|
|
413
|
+
@pulumi.getter
|
|
414
|
+
def created(self) -> pulumi.Output[builtins.int]:
|
|
415
|
+
"""
|
|
416
|
+
Timestamp when the notification rule was created.
|
|
417
|
+
"""
|
|
418
|
+
return pulumi.get(self, "created")
|
|
419
|
+
|
|
420
|
+
@property
|
|
421
|
+
@pulumi.getter(name="customNotificationTemplateRef")
|
|
422
|
+
def custom_notification_template_ref(self) -> pulumi.Output[Optional['outputs.CentralNotificationRuleCustomNotificationTemplateRef']]:
|
|
423
|
+
return pulumi.get(self, "custom_notification_template_ref")
|
|
424
|
+
|
|
425
|
+
@property
|
|
426
|
+
@pulumi.getter
|
|
427
|
+
def identifier(self) -> pulumi.Output[builtins.str]:
|
|
428
|
+
return pulumi.get(self, "identifier")
|
|
429
|
+
|
|
430
|
+
@property
|
|
431
|
+
@pulumi.getter(name="lastModified")
|
|
432
|
+
def last_modified(self) -> pulumi.Output[builtins.int]:
|
|
433
|
+
"""
|
|
434
|
+
Timestamp when the notification rule was last modified.
|
|
435
|
+
"""
|
|
436
|
+
return pulumi.get(self, "last_modified")
|
|
437
|
+
|
|
438
|
+
@property
|
|
439
|
+
@pulumi.getter
|
|
440
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
441
|
+
return pulumi.get(self, "name")
|
|
442
|
+
|
|
443
|
+
@property
|
|
444
|
+
@pulumi.getter(name="notificationChannelRefs")
|
|
445
|
+
def notification_channel_refs(self) -> pulumi.Output[Sequence[builtins.str]]:
|
|
446
|
+
return pulumi.get(self, "notification_channel_refs")
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
@pulumi.getter(name="notificationConditions")
|
|
450
|
+
def notification_conditions(self) -> pulumi.Output[Sequence['outputs.CentralNotificationRuleNotificationCondition']]:
|
|
451
|
+
return pulumi.get(self, "notification_conditions")
|
|
452
|
+
|
|
453
|
+
@property
|
|
454
|
+
@pulumi.getter
|
|
455
|
+
def org(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
456
|
+
return pulumi.get(self, "org")
|
|
457
|
+
|
|
458
|
+
@property
|
|
459
|
+
@pulumi.getter
|
|
460
|
+
def project(self) -> pulumi.Output[builtins.str]:
|
|
461
|
+
return pulumi.get(self, "project")
|
|
462
|
+
|
|
463
|
+
@property
|
|
464
|
+
@pulumi.getter
|
|
465
|
+
def status(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
466
|
+
return pulumi.get(self, "status")
|
|
467
|
+
|