pulumi-harness 0.8.4a1757561435__py3-none-any.whl → 0.8.5__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 +553 -4
- pulumi_harness/platform/azure_cloud_provider_connector.py +30 -0
- pulumi_harness/platform/central_notification_rule.py +17 -14
- pulumi_harness/platform/get_central_notification_rule.py +4 -0
- pulumi_harness/platform/get_pipeline_central_notification_rule.py +253 -0
- pulumi_harness/platform/outputs.py +472 -5
- pulumi_harness/platform/pipeline_central_notification_rule.py +465 -0
- pulumi_harness/platform/workspace.py +37 -9
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.8.4a1757561435.dist-info → pulumi_harness-0.8.5.dist-info}/METADATA +1 -1
- {pulumi_harness-0.8.4a1757561435.dist-info → pulumi_harness-0.8.5.dist-info}/RECORD +15 -13
- {pulumi_harness-0.8.4a1757561435.dist-info → pulumi_harness-0.8.5.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.4a1757561435.dist-info → pulumi_harness-0.8.5.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,465 @@
|
|
|
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 as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['PipelineCentralNotificationRuleArgs', 'PipelineCentralNotificationRule']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class PipelineCentralNotificationRuleArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
identifier: pulumi.Input[_builtins.str],
|
|
25
|
+
notification_channel_refs: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
26
|
+
notification_conditions: pulumi.Input[Sequence[pulumi.Input['PipelineCentralNotificationRuleNotificationConditionArgs']]],
|
|
27
|
+
custom_notification_template_ref: Optional[pulumi.Input['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs']] = None,
|
|
28
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
org: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
|
+
status: Optional[pulumi.Input[_builtins.str]] = None):
|
|
32
|
+
"""
|
|
33
|
+
The set of arguments for constructing a PipelineCentralNotificationRule resource.
|
|
34
|
+
"""
|
|
35
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
36
|
+
pulumi.set(__self__, "notification_channel_refs", notification_channel_refs)
|
|
37
|
+
pulumi.set(__self__, "notification_conditions", notification_conditions)
|
|
38
|
+
if custom_notification_template_ref is not None:
|
|
39
|
+
pulumi.set(__self__, "custom_notification_template_ref", custom_notification_template_ref)
|
|
40
|
+
if name is not None:
|
|
41
|
+
pulumi.set(__self__, "name", name)
|
|
42
|
+
if org is not None:
|
|
43
|
+
pulumi.set(__self__, "org", org)
|
|
44
|
+
if project is not None:
|
|
45
|
+
pulumi.set(__self__, "project", project)
|
|
46
|
+
if status is not None:
|
|
47
|
+
pulumi.set(__self__, "status", status)
|
|
48
|
+
|
|
49
|
+
@_builtins.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
|
+
@_builtins.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
|
+
@_builtins.property
|
|
68
|
+
@pulumi.getter(name="notificationConditions")
|
|
69
|
+
def notification_conditions(self) -> pulumi.Input[Sequence[pulumi.Input['PipelineCentralNotificationRuleNotificationConditionArgs']]]:
|
|
70
|
+
return pulumi.get(self, "notification_conditions")
|
|
71
|
+
|
|
72
|
+
@notification_conditions.setter
|
|
73
|
+
def notification_conditions(self, value: pulumi.Input[Sequence[pulumi.Input['PipelineCentralNotificationRuleNotificationConditionArgs']]]):
|
|
74
|
+
pulumi.set(self, "notification_conditions", value)
|
|
75
|
+
|
|
76
|
+
@_builtins.property
|
|
77
|
+
@pulumi.getter(name="customNotificationTemplateRef")
|
|
78
|
+
def custom_notification_template_ref(self) -> Optional[pulumi.Input['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs']]:
|
|
79
|
+
return pulumi.get(self, "custom_notification_template_ref")
|
|
80
|
+
|
|
81
|
+
@custom_notification_template_ref.setter
|
|
82
|
+
def custom_notification_template_ref(self, value: Optional[pulumi.Input['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs']]):
|
|
83
|
+
pulumi.set(self, "custom_notification_template_ref", value)
|
|
84
|
+
|
|
85
|
+
@_builtins.property
|
|
86
|
+
@pulumi.getter
|
|
87
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
88
|
+
return pulumi.get(self, "name")
|
|
89
|
+
|
|
90
|
+
@name.setter
|
|
91
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
92
|
+
pulumi.set(self, "name", value)
|
|
93
|
+
|
|
94
|
+
@_builtins.property
|
|
95
|
+
@pulumi.getter
|
|
96
|
+
def org(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
97
|
+
return pulumi.get(self, "org")
|
|
98
|
+
|
|
99
|
+
@org.setter
|
|
100
|
+
def org(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
101
|
+
pulumi.set(self, "org", value)
|
|
102
|
+
|
|
103
|
+
@_builtins.property
|
|
104
|
+
@pulumi.getter
|
|
105
|
+
def project(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
106
|
+
return pulumi.get(self, "project")
|
|
107
|
+
|
|
108
|
+
@project.setter
|
|
109
|
+
def project(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
110
|
+
pulumi.set(self, "project", value)
|
|
111
|
+
|
|
112
|
+
@_builtins.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 _PipelineCentralNotificationRuleState:
|
|
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['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs']] = 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['PipelineCentralNotificationRuleNotificationConditionArgs']]]] = 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 PipelineCentralNotificationRule 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
|
+
@_builtins.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
|
+
@_builtins.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
|
+
@_builtins.property
|
|
190
|
+
@pulumi.getter(name="customNotificationTemplateRef")
|
|
191
|
+
def custom_notification_template_ref(self) -> Optional[pulumi.Input['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs']]:
|
|
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['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs']]):
|
|
196
|
+
pulumi.set(self, "custom_notification_template_ref", value)
|
|
197
|
+
|
|
198
|
+
@_builtins.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
|
+
@_builtins.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
|
+
@_builtins.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
|
+
@_builtins.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
|
+
@_builtins.property
|
|
238
|
+
@pulumi.getter(name="notificationConditions")
|
|
239
|
+
def notification_conditions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PipelineCentralNotificationRuleNotificationConditionArgs']]]]:
|
|
240
|
+
return pulumi.get(self, "notification_conditions")
|
|
241
|
+
|
|
242
|
+
@notification_conditions.setter
|
|
243
|
+
def notification_conditions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PipelineCentralNotificationRuleNotificationConditionArgs']]]]):
|
|
244
|
+
pulumi.set(self, "notification_conditions", value)
|
|
245
|
+
|
|
246
|
+
@_builtins.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
|
+
@_builtins.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
|
+
@_builtins.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/pipelineCentralNotificationRule:PipelineCentralNotificationRule")
|
|
275
|
+
class PipelineCentralNotificationRule(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['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs', 'PipelineCentralNotificationRuleCustomNotificationTemplateRefArgsDict']]] = 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['PipelineCentralNotificationRuleNotificationConditionArgs', 'PipelineCentralNotificationRuleNotificationConditionArgsDict']]]]] = 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 for Pipeline
|
|
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: PipelineCentralNotificationRuleArgs,
|
|
300
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
301
|
+
"""
|
|
302
|
+
Resource for creating a Harness Notification Rule for Pipeline
|
|
303
|
+
|
|
304
|
+
:param str resource_name: The name of the resource.
|
|
305
|
+
:param PipelineCentralNotificationRuleArgs 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(PipelineCentralNotificationRuleArgs, 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['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs', 'PipelineCentralNotificationRuleCustomNotificationTemplateRefArgsDict']]] = 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['PipelineCentralNotificationRuleNotificationConditionArgs', 'PipelineCentralNotificationRuleNotificationConditionArgsDict']]]]] = 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__ = PipelineCentralNotificationRuleArgs.__new__(PipelineCentralNotificationRuleArgs)
|
|
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
|
+
__props__.__dict__["project"] = project
|
|
349
|
+
__props__.__dict__["status"] = status
|
|
350
|
+
__props__.__dict__["account"] = None
|
|
351
|
+
__props__.__dict__["created"] = None
|
|
352
|
+
__props__.__dict__["last_modified"] = None
|
|
353
|
+
super(PipelineCentralNotificationRule, __self__).__init__(
|
|
354
|
+
'harness:platform/pipelineCentralNotificationRule:PipelineCentralNotificationRule',
|
|
355
|
+
resource_name,
|
|
356
|
+
__props__,
|
|
357
|
+
opts)
|
|
358
|
+
|
|
359
|
+
@staticmethod
|
|
360
|
+
def get(resource_name: str,
|
|
361
|
+
id: pulumi.Input[str],
|
|
362
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
363
|
+
account: Optional[pulumi.Input[_builtins.str]] = None,
|
|
364
|
+
created: Optional[pulumi.Input[_builtins.int]] = None,
|
|
365
|
+
custom_notification_template_ref: Optional[pulumi.Input[Union['PipelineCentralNotificationRuleCustomNotificationTemplateRefArgs', 'PipelineCentralNotificationRuleCustomNotificationTemplateRefArgsDict']]] = None,
|
|
366
|
+
identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
367
|
+
last_modified: Optional[pulumi.Input[_builtins.int]] = None,
|
|
368
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
369
|
+
notification_channel_refs: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
370
|
+
notification_conditions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PipelineCentralNotificationRuleNotificationConditionArgs', 'PipelineCentralNotificationRuleNotificationConditionArgsDict']]]]] = None,
|
|
371
|
+
org: Optional[pulumi.Input[_builtins.str]] = None,
|
|
372
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
373
|
+
status: Optional[pulumi.Input[_builtins.str]] = None) -> 'PipelineCentralNotificationRule':
|
|
374
|
+
"""
|
|
375
|
+
Get an existing PipelineCentralNotificationRule resource's state with the given name, id, and optional extra
|
|
376
|
+
properties used to qualify the lookup.
|
|
377
|
+
|
|
378
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
379
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
380
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
381
|
+
:param pulumi.Input[_builtins.str] account: Account identifier associated with this notification channel.
|
|
382
|
+
:param pulumi.Input[_builtins.int] created: Timestamp when the notification rule was created.
|
|
383
|
+
:param pulumi.Input[_builtins.int] last_modified: Timestamp when the notification rule was last modified.
|
|
384
|
+
"""
|
|
385
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
386
|
+
|
|
387
|
+
__props__ = _PipelineCentralNotificationRuleState.__new__(_PipelineCentralNotificationRuleState)
|
|
388
|
+
|
|
389
|
+
__props__.__dict__["account"] = account
|
|
390
|
+
__props__.__dict__["created"] = created
|
|
391
|
+
__props__.__dict__["custom_notification_template_ref"] = custom_notification_template_ref
|
|
392
|
+
__props__.__dict__["identifier"] = identifier
|
|
393
|
+
__props__.__dict__["last_modified"] = last_modified
|
|
394
|
+
__props__.__dict__["name"] = name
|
|
395
|
+
__props__.__dict__["notification_channel_refs"] = notification_channel_refs
|
|
396
|
+
__props__.__dict__["notification_conditions"] = notification_conditions
|
|
397
|
+
__props__.__dict__["org"] = org
|
|
398
|
+
__props__.__dict__["project"] = project
|
|
399
|
+
__props__.__dict__["status"] = status
|
|
400
|
+
return PipelineCentralNotificationRule(resource_name, opts=opts, __props__=__props__)
|
|
401
|
+
|
|
402
|
+
@_builtins.property
|
|
403
|
+
@pulumi.getter
|
|
404
|
+
def account(self) -> pulumi.Output[_builtins.str]:
|
|
405
|
+
"""
|
|
406
|
+
Account identifier associated with this notification channel.
|
|
407
|
+
"""
|
|
408
|
+
return pulumi.get(self, "account")
|
|
409
|
+
|
|
410
|
+
@_builtins.property
|
|
411
|
+
@pulumi.getter
|
|
412
|
+
def created(self) -> pulumi.Output[_builtins.int]:
|
|
413
|
+
"""
|
|
414
|
+
Timestamp when the notification rule was created.
|
|
415
|
+
"""
|
|
416
|
+
return pulumi.get(self, "created")
|
|
417
|
+
|
|
418
|
+
@_builtins.property
|
|
419
|
+
@pulumi.getter(name="customNotificationTemplateRef")
|
|
420
|
+
def custom_notification_template_ref(self) -> pulumi.Output[Optional['outputs.PipelineCentralNotificationRuleCustomNotificationTemplateRef']]:
|
|
421
|
+
return pulumi.get(self, "custom_notification_template_ref")
|
|
422
|
+
|
|
423
|
+
@_builtins.property
|
|
424
|
+
@pulumi.getter
|
|
425
|
+
def identifier(self) -> pulumi.Output[_builtins.str]:
|
|
426
|
+
return pulumi.get(self, "identifier")
|
|
427
|
+
|
|
428
|
+
@_builtins.property
|
|
429
|
+
@pulumi.getter(name="lastModified")
|
|
430
|
+
def last_modified(self) -> pulumi.Output[_builtins.int]:
|
|
431
|
+
"""
|
|
432
|
+
Timestamp when the notification rule was last modified.
|
|
433
|
+
"""
|
|
434
|
+
return pulumi.get(self, "last_modified")
|
|
435
|
+
|
|
436
|
+
@_builtins.property
|
|
437
|
+
@pulumi.getter
|
|
438
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
439
|
+
return pulumi.get(self, "name")
|
|
440
|
+
|
|
441
|
+
@_builtins.property
|
|
442
|
+
@pulumi.getter(name="notificationChannelRefs")
|
|
443
|
+
def notification_channel_refs(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
444
|
+
return pulumi.get(self, "notification_channel_refs")
|
|
445
|
+
|
|
446
|
+
@_builtins.property
|
|
447
|
+
@pulumi.getter(name="notificationConditions")
|
|
448
|
+
def notification_conditions(self) -> pulumi.Output[Sequence['outputs.PipelineCentralNotificationRuleNotificationCondition']]:
|
|
449
|
+
return pulumi.get(self, "notification_conditions")
|
|
450
|
+
|
|
451
|
+
@_builtins.property
|
|
452
|
+
@pulumi.getter
|
|
453
|
+
def org(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
454
|
+
return pulumi.get(self, "org")
|
|
455
|
+
|
|
456
|
+
@_builtins.property
|
|
457
|
+
@pulumi.getter
|
|
458
|
+
def project(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
459
|
+
return pulumi.get(self, "project")
|
|
460
|
+
|
|
461
|
+
@_builtins.property
|
|
462
|
+
@pulumi.getter
|
|
463
|
+
def status(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
464
|
+
return pulumi.get(self, "status")
|
|
465
|
+
|
|
@@ -57,7 +57,7 @@ class WorkspaceArgs:
|
|
|
57
57
|
:param pulumi.Input[_builtins.str] description: Description of the resource.
|
|
58
58
|
:param pulumi.Input[Sequence[pulumi.Input['WorkspaceEnvironmentVariableArgs']]] environment_variables: Environment variables configured on the workspace
|
|
59
59
|
:param pulumi.Input[_builtins.str] name: Name of the resource.
|
|
60
|
-
:param pulumi.Input[_builtins.str] provider_connector: Provider connector is the reference to the connector for the infrastructure provider
|
|
60
|
+
:param pulumi.Input[_builtins.str] provider_connector: Provider connector is the reference to the connector for the infrastructure provider - this way of defining connector will be deprecated in the coming releases, use connector as block set.
|
|
61
61
|
:param pulumi.Input[_builtins.str] repository_branch: Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
|
|
62
62
|
:param pulumi.Input[_builtins.str] repository_commit: Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
|
|
63
63
|
:param pulumi.Input[_builtins.str] repository_sha: Repository commit is commit SHA to fetch the code from. This cannot be set if repository branch or commit is set.
|
|
@@ -266,7 +266,7 @@ class WorkspaceArgs:
|
|
|
266
266
|
@pulumi.getter(name="providerConnector")
|
|
267
267
|
def provider_connector(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
268
268
|
"""
|
|
269
|
-
Provider connector is the reference to the connector for the infrastructure provider
|
|
269
|
+
Provider connector is the reference to the connector for the infrastructure provider - this way of defining connector will be deprecated in the coming releases, use connector as block set.
|
|
270
270
|
"""
|
|
271
271
|
return pulumi.get(self, "provider_connector")
|
|
272
272
|
|
|
@@ -389,7 +389,7 @@ class _WorkspaceState:
|
|
|
389
389
|
:param pulumi.Input[_builtins.str] name: Name of the resource.
|
|
390
390
|
:param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
|
|
391
391
|
:param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
|
|
392
|
-
:param pulumi.Input[_builtins.str] provider_connector: Provider connector is the reference to the connector for the infrastructure provider
|
|
392
|
+
:param pulumi.Input[_builtins.str] provider_connector: Provider connector is the reference to the connector for the infrastructure provider - this way of defining connector will be deprecated in the coming releases, use connector as block set.
|
|
393
393
|
:param pulumi.Input[_builtins.str] repository: Repository is the name of the repository to fetch the code from.
|
|
394
394
|
:param pulumi.Input[_builtins.str] repository_branch: Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
|
|
395
395
|
:param pulumi.Input[_builtins.str] repository_commit: Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
|
|
@@ -556,7 +556,7 @@ class _WorkspaceState:
|
|
|
556
556
|
@pulumi.getter(name="providerConnector")
|
|
557
557
|
def provider_connector(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
558
558
|
"""
|
|
559
|
-
Provider connector is the reference to the connector for the infrastructure provider
|
|
559
|
+
Provider connector is the reference to the connector for the infrastructure provider - this way of defining connector will be deprecated in the coming releases, use connector as block set.
|
|
560
560
|
"""
|
|
561
561
|
return pulumi.get(self, "provider_connector")
|
|
562
562
|
|
|
@@ -802,7 +802,21 @@ class Workspace(pulumi.CustomResource):
|
|
|
802
802
|
"drift": "drift_pipeline_id",
|
|
803
803
|
"plan": "plan_pipeline_id",
|
|
804
804
|
"apply": "apply_pipeline_id",
|
|
805
|
-
}
|
|
805
|
+
},
|
|
806
|
+
connectors=[
|
|
807
|
+
{
|
|
808
|
+
"connector_ref": "awsconnector",
|
|
809
|
+
"type": "aws",
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"connector_ref": "gcpconnector",
|
|
813
|
+
"type": "gcp",
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"connector_ref": "azureconnector",
|
|
817
|
+
"type": "azure",
|
|
818
|
+
},
|
|
819
|
+
])
|
|
806
820
|
```
|
|
807
821
|
|
|
808
822
|
## Import
|
|
@@ -824,7 +838,7 @@ class Workspace(pulumi.CustomResource):
|
|
|
824
838
|
:param pulumi.Input[_builtins.str] name: Name of the resource.
|
|
825
839
|
:param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
|
|
826
840
|
:param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
|
|
827
|
-
:param pulumi.Input[_builtins.str] provider_connector: Provider connector is the reference to the connector for the infrastructure provider
|
|
841
|
+
:param pulumi.Input[_builtins.str] provider_connector: Provider connector is the reference to the connector for the infrastructure provider - this way of defining connector will be deprecated in the coming releases, use connector as block set.
|
|
828
842
|
:param pulumi.Input[_builtins.str] repository: Repository is the name of the repository to fetch the code from.
|
|
829
843
|
:param pulumi.Input[_builtins.str] repository_branch: Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
|
|
830
844
|
:param pulumi.Input[_builtins.str] repository_commit: Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
|
|
@@ -916,7 +930,21 @@ class Workspace(pulumi.CustomResource):
|
|
|
916
930
|
"drift": "drift_pipeline_id",
|
|
917
931
|
"plan": "plan_pipeline_id",
|
|
918
932
|
"apply": "apply_pipeline_id",
|
|
919
|
-
}
|
|
933
|
+
},
|
|
934
|
+
connectors=[
|
|
935
|
+
{
|
|
936
|
+
"connector_ref": "awsconnector",
|
|
937
|
+
"type": "aws",
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"connector_ref": "gcpconnector",
|
|
941
|
+
"type": "gcp",
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"connector_ref": "azureconnector",
|
|
945
|
+
"type": "azure",
|
|
946
|
+
},
|
|
947
|
+
])
|
|
920
948
|
```
|
|
921
949
|
|
|
922
950
|
## Import
|
|
@@ -1061,7 +1089,7 @@ class Workspace(pulumi.CustomResource):
|
|
|
1061
1089
|
:param pulumi.Input[_builtins.str] name: Name of the resource.
|
|
1062
1090
|
:param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
|
|
1063
1091
|
:param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
|
|
1064
|
-
:param pulumi.Input[_builtins.str] provider_connector: Provider connector is the reference to the connector for the infrastructure provider
|
|
1092
|
+
:param pulumi.Input[_builtins.str] provider_connector: Provider connector is the reference to the connector for the infrastructure provider - this way of defining connector will be deprecated in the coming releases, use connector as block set.
|
|
1065
1093
|
:param pulumi.Input[_builtins.str] repository: Repository is the name of the repository to fetch the code from.
|
|
1066
1094
|
:param pulumi.Input[_builtins.str] repository_branch: Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
|
|
1067
1095
|
:param pulumi.Input[_builtins.str] repository_commit: Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
|
|
@@ -1175,7 +1203,7 @@ class Workspace(pulumi.CustomResource):
|
|
|
1175
1203
|
@pulumi.getter(name="providerConnector")
|
|
1176
1204
|
def provider_connector(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1177
1205
|
"""
|
|
1178
|
-
Provider connector is the reference to the connector for the infrastructure provider
|
|
1206
|
+
Provider connector is the reference to the connector for the infrastructure provider - this way of defining connector will be deprecated in the coming releases, use connector as block set.
|
|
1179
1207
|
"""
|
|
1180
1208
|
return pulumi.get(self, "provider_connector")
|
|
1181
1209
|
|