pulumi-harness 0.9.0a1759531130__py3-none-any.whl → 0.9.0a1759989855__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.9.0a1759531130.dist-info → pulumi_harness-0.9.0a1759989855.dist-info}/METADATA +1 -1
- {pulumi_harness-0.9.0a1759531130.dist-info → pulumi_harness-0.9.0a1759989855.dist-info}/RECORD +15 -13
- {pulumi_harness-0.9.0a1759531130.dist-info → pulumi_harness-0.9.0a1759989855.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.9.0a1759531130.dist-info → pulumi_harness-0.9.0a1759989855.dist-info}/top_level.txt +0 -0
|
@@ -484,6 +484,21 @@ class AzureCloudProviderConnector(pulumi.CustomResource):
|
|
|
484
484
|
},
|
|
485
485
|
azure_environment_type="AZURE",
|
|
486
486
|
delegate_selectors=["harness-delegate"])
|
|
487
|
+
oidc_authentication = harness.platform.AzureCloudProviderConnector("oidc_authentication",
|
|
488
|
+
identifier="identifier",
|
|
489
|
+
name="name",
|
|
490
|
+
description="example",
|
|
491
|
+
tags=["foo:bar"],
|
|
492
|
+
credentials={
|
|
493
|
+
"type": "OidcAuthentication",
|
|
494
|
+
"azure_oidc_spec": {
|
|
495
|
+
"application_id": "application_id",
|
|
496
|
+
"tenant_id": "tenant_id",
|
|
497
|
+
"audience": "audience",
|
|
498
|
+
},
|
|
499
|
+
},
|
|
500
|
+
azure_environment_type="AZURE",
|
|
501
|
+
delegate_selectors=["harness-delegate"])
|
|
487
502
|
```
|
|
488
503
|
|
|
489
504
|
## Import
|
|
@@ -610,6 +625,21 @@ class AzureCloudProviderConnector(pulumi.CustomResource):
|
|
|
610
625
|
},
|
|
611
626
|
azure_environment_type="AZURE",
|
|
612
627
|
delegate_selectors=["harness-delegate"])
|
|
628
|
+
oidc_authentication = harness.platform.AzureCloudProviderConnector("oidc_authentication",
|
|
629
|
+
identifier="identifier",
|
|
630
|
+
name="name",
|
|
631
|
+
description="example",
|
|
632
|
+
tags=["foo:bar"],
|
|
633
|
+
credentials={
|
|
634
|
+
"type": "OidcAuthentication",
|
|
635
|
+
"azure_oidc_spec": {
|
|
636
|
+
"application_id": "application_id",
|
|
637
|
+
"tenant_id": "tenant_id",
|
|
638
|
+
"audience": "audience",
|
|
639
|
+
},
|
|
640
|
+
},
|
|
641
|
+
azure_environment_type="AZURE",
|
|
642
|
+
delegate_selectors=["harness-delegate"])
|
|
613
643
|
```
|
|
614
644
|
|
|
615
645
|
## Import
|
|
@@ -24,10 +24,10 @@ class CentralNotificationRuleArgs:
|
|
|
24
24
|
identifier: pulumi.Input[_builtins.str],
|
|
25
25
|
notification_channel_refs: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
26
26
|
notification_conditions: pulumi.Input[Sequence[pulumi.Input['CentralNotificationRuleNotificationConditionArgs']]],
|
|
27
|
-
project: pulumi.Input[_builtins.str],
|
|
28
27
|
custom_notification_template_ref: Optional[pulumi.Input['CentralNotificationRuleCustomNotificationTemplateRefArgs']] = None,
|
|
29
28
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
29
|
org: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
31
|
status: Optional[pulumi.Input[_builtins.str]] = None):
|
|
32
32
|
"""
|
|
33
33
|
The set of arguments for constructing a CentralNotificationRule resource.
|
|
@@ -35,13 +35,14 @@ class CentralNotificationRuleArgs:
|
|
|
35
35
|
pulumi.set(__self__, "identifier", identifier)
|
|
36
36
|
pulumi.set(__self__, "notification_channel_refs", notification_channel_refs)
|
|
37
37
|
pulumi.set(__self__, "notification_conditions", notification_conditions)
|
|
38
|
-
pulumi.set(__self__, "project", project)
|
|
39
38
|
if custom_notification_template_ref is not None:
|
|
40
39
|
pulumi.set(__self__, "custom_notification_template_ref", custom_notification_template_ref)
|
|
41
40
|
if name is not None:
|
|
42
41
|
pulumi.set(__self__, "name", name)
|
|
43
42
|
if org is not None:
|
|
44
43
|
pulumi.set(__self__, "org", org)
|
|
44
|
+
if project is not None:
|
|
45
|
+
pulumi.set(__self__, "project", project)
|
|
45
46
|
if status is not None:
|
|
46
47
|
pulumi.set(__self__, "status", status)
|
|
47
48
|
|
|
@@ -72,15 +73,6 @@ class CentralNotificationRuleArgs:
|
|
|
72
73
|
def notification_conditions(self, value: pulumi.Input[Sequence[pulumi.Input['CentralNotificationRuleNotificationConditionArgs']]]):
|
|
73
74
|
pulumi.set(self, "notification_conditions", value)
|
|
74
75
|
|
|
75
|
-
@_builtins.property
|
|
76
|
-
@pulumi.getter
|
|
77
|
-
def project(self) -> pulumi.Input[_builtins.str]:
|
|
78
|
-
return pulumi.get(self, "project")
|
|
79
|
-
|
|
80
|
-
@project.setter
|
|
81
|
-
def project(self, value: pulumi.Input[_builtins.str]):
|
|
82
|
-
pulumi.set(self, "project", value)
|
|
83
|
-
|
|
84
76
|
@_builtins.property
|
|
85
77
|
@pulumi.getter(name="customNotificationTemplateRef")
|
|
86
78
|
def custom_notification_template_ref(self) -> Optional[pulumi.Input['CentralNotificationRuleCustomNotificationTemplateRefArgs']]:
|
|
@@ -108,6 +100,15 @@ class CentralNotificationRuleArgs:
|
|
|
108
100
|
def org(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
109
101
|
pulumi.set(self, "org", value)
|
|
110
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
|
+
|
|
111
112
|
@_builtins.property
|
|
112
113
|
@pulumi.getter
|
|
113
114
|
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -286,6 +287,8 @@ class CentralNotificationRule(pulumi.CustomResource):
|
|
|
286
287
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
287
288
|
__props__=None):
|
|
288
289
|
"""
|
|
290
|
+
> Deprecated: Please migrate to `platform.PipelineCentralNotificationRule`. See the pipeline-specific resource docs.
|
|
291
|
+
|
|
289
292
|
Resource for creating a Harness Notification Rule
|
|
290
293
|
|
|
291
294
|
:param str resource_name: The name of the resource.
|
|
@@ -298,6 +301,8 @@ class CentralNotificationRule(pulumi.CustomResource):
|
|
|
298
301
|
args: CentralNotificationRuleArgs,
|
|
299
302
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
300
303
|
"""
|
|
304
|
+
> Deprecated: Please migrate to `platform.PipelineCentralNotificationRule`. See the pipeline-specific resource docs.
|
|
305
|
+
|
|
301
306
|
Resource for creating a Harness Notification Rule
|
|
302
307
|
|
|
303
308
|
:param str resource_name: The name of the resource.
|
|
@@ -344,8 +349,6 @@ class CentralNotificationRule(pulumi.CustomResource):
|
|
|
344
349
|
raise TypeError("Missing required property 'notification_conditions'")
|
|
345
350
|
__props__.__dict__["notification_conditions"] = notification_conditions
|
|
346
351
|
__props__.__dict__["org"] = org
|
|
347
|
-
if project is None and not opts.urn:
|
|
348
|
-
raise TypeError("Missing required property 'project'")
|
|
349
352
|
__props__.__dict__["project"] = project
|
|
350
353
|
__props__.__dict__["status"] = status
|
|
351
354
|
__props__.__dict__["account"] = None
|
|
@@ -456,7 +459,7 @@ class CentralNotificationRule(pulumi.CustomResource):
|
|
|
456
459
|
|
|
457
460
|
@_builtins.property
|
|
458
461
|
@pulumi.getter
|
|
459
|
-
def project(self) -> pulumi.Output[_builtins.str]:
|
|
462
|
+
def project(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
460
463
|
return pulumi.get(self, "project")
|
|
461
464
|
|
|
462
465
|
@_builtins.property
|
|
@@ -178,6 +178,8 @@ def get_central_notification_rule(custom_notification_template_ref: Optional[Uni
|
|
|
178
178
|
status: Optional[_builtins.str] = None,
|
|
179
179
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCentralNotificationRuleResult:
|
|
180
180
|
"""
|
|
181
|
+
> Deprecated: Please use `data.harness_platform_pipeline_central_notification_rule`. See the pipeline-specific data source docs.
|
|
182
|
+
|
|
181
183
|
Data source for retrieving a Notification Rule.
|
|
182
184
|
|
|
183
185
|
|
|
@@ -220,6 +222,8 @@ def get_central_notification_rule_output(custom_notification_template_ref: Optio
|
|
|
220
222
|
status: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
221
223
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCentralNotificationRuleResult]:
|
|
222
224
|
"""
|
|
225
|
+
> Deprecated: Please use `data.harness_platform_pipeline_central_notification_rule`. See the pipeline-specific data source docs.
|
|
226
|
+
|
|
223
227
|
Data source for retrieving a Notification Rule.
|
|
224
228
|
|
|
225
229
|
|
|
@@ -0,0 +1,253 @@
|
|
|
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__ = [
|
|
20
|
+
'GetPipelineCentralNotificationRuleResult',
|
|
21
|
+
'AwaitableGetPipelineCentralNotificationRuleResult',
|
|
22
|
+
'get_pipeline_central_notification_rule',
|
|
23
|
+
'get_pipeline_central_notification_rule_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetPipelineCentralNotificationRuleResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getPipelineCentralNotificationRule.
|
|
30
|
+
"""
|
|
31
|
+
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):
|
|
32
|
+
if account and not isinstance(account, str):
|
|
33
|
+
raise TypeError("Expected argument 'account' to be a str")
|
|
34
|
+
pulumi.set(__self__, "account", account)
|
|
35
|
+
if created and not isinstance(created, int):
|
|
36
|
+
raise TypeError("Expected argument 'created' to be a int")
|
|
37
|
+
pulumi.set(__self__, "created", created)
|
|
38
|
+
if custom_notification_template_ref and not isinstance(custom_notification_template_ref, dict):
|
|
39
|
+
raise TypeError("Expected argument 'custom_notification_template_ref' to be a dict")
|
|
40
|
+
pulumi.set(__self__, "custom_notification_template_ref", custom_notification_template_ref)
|
|
41
|
+
if id and not isinstance(id, str):
|
|
42
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
43
|
+
pulumi.set(__self__, "id", id)
|
|
44
|
+
if identifier and not isinstance(identifier, str):
|
|
45
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
46
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
47
|
+
if last_modified and not isinstance(last_modified, int):
|
|
48
|
+
raise TypeError("Expected argument 'last_modified' to be a int")
|
|
49
|
+
pulumi.set(__self__, "last_modified", last_modified)
|
|
50
|
+
if name and not isinstance(name, str):
|
|
51
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
52
|
+
pulumi.set(__self__, "name", name)
|
|
53
|
+
if notification_channel_refs and not isinstance(notification_channel_refs, list):
|
|
54
|
+
raise TypeError("Expected argument 'notification_channel_refs' to be a list")
|
|
55
|
+
pulumi.set(__self__, "notification_channel_refs", notification_channel_refs)
|
|
56
|
+
if notification_conditions and not isinstance(notification_conditions, list):
|
|
57
|
+
raise TypeError("Expected argument 'notification_conditions' to be a list")
|
|
58
|
+
pulumi.set(__self__, "notification_conditions", notification_conditions)
|
|
59
|
+
if org and not isinstance(org, str):
|
|
60
|
+
raise TypeError("Expected argument 'org' to be a str")
|
|
61
|
+
pulumi.set(__self__, "org", org)
|
|
62
|
+
if project and not isinstance(project, str):
|
|
63
|
+
raise TypeError("Expected argument 'project' to be a str")
|
|
64
|
+
pulumi.set(__self__, "project", project)
|
|
65
|
+
if status and not isinstance(status, str):
|
|
66
|
+
raise TypeError("Expected argument 'status' to be a str")
|
|
67
|
+
pulumi.set(__self__, "status", status)
|
|
68
|
+
|
|
69
|
+
@_builtins.property
|
|
70
|
+
@pulumi.getter
|
|
71
|
+
def account(self) -> _builtins.str:
|
|
72
|
+
"""
|
|
73
|
+
Account identifier associated with this notification channel.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "account")
|
|
76
|
+
|
|
77
|
+
@_builtins.property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def created(self) -> _builtins.int:
|
|
80
|
+
"""
|
|
81
|
+
Timestamp when the notification rule was created.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "created")
|
|
84
|
+
|
|
85
|
+
@_builtins.property
|
|
86
|
+
@pulumi.getter(name="customNotificationTemplateRef")
|
|
87
|
+
def custom_notification_template_ref(self) -> Optional['outputs.GetPipelineCentralNotificationRuleCustomNotificationTemplateRefResult']:
|
|
88
|
+
return pulumi.get(self, "custom_notification_template_ref")
|
|
89
|
+
|
|
90
|
+
@_builtins.property
|
|
91
|
+
@pulumi.getter
|
|
92
|
+
def id(self) -> _builtins.str:
|
|
93
|
+
"""
|
|
94
|
+
The provider-assigned unique ID for this managed resource.
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "id")
|
|
97
|
+
|
|
98
|
+
@_builtins.property
|
|
99
|
+
@pulumi.getter
|
|
100
|
+
def identifier(self) -> _builtins.str:
|
|
101
|
+
"""
|
|
102
|
+
Identifier of the Notification Rule.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "identifier")
|
|
105
|
+
|
|
106
|
+
@_builtins.property
|
|
107
|
+
@pulumi.getter(name="lastModified")
|
|
108
|
+
def last_modified(self) -> _builtins.int:
|
|
109
|
+
"""
|
|
110
|
+
Timestamp when the notification rule was last modified.
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "last_modified")
|
|
113
|
+
|
|
114
|
+
@_builtins.property
|
|
115
|
+
@pulumi.getter
|
|
116
|
+
def name(self) -> _builtins.str:
|
|
117
|
+
return pulumi.get(self, "name")
|
|
118
|
+
|
|
119
|
+
@_builtins.property
|
|
120
|
+
@pulumi.getter(name="notificationChannelRefs")
|
|
121
|
+
def notification_channel_refs(self) -> Optional[Sequence[_builtins.str]]:
|
|
122
|
+
return pulumi.get(self, "notification_channel_refs")
|
|
123
|
+
|
|
124
|
+
@_builtins.property
|
|
125
|
+
@pulumi.getter(name="notificationConditions")
|
|
126
|
+
def notification_conditions(self) -> Optional[Sequence['outputs.GetPipelineCentralNotificationRuleNotificationConditionResult']]:
|
|
127
|
+
return pulumi.get(self, "notification_conditions")
|
|
128
|
+
|
|
129
|
+
@_builtins.property
|
|
130
|
+
@pulumi.getter
|
|
131
|
+
def org(self) -> Optional[_builtins.str]:
|
|
132
|
+
"""
|
|
133
|
+
Identifier of the organization in which the Notification Rule is configured.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "org")
|
|
136
|
+
|
|
137
|
+
@_builtins.property
|
|
138
|
+
@pulumi.getter
|
|
139
|
+
def project(self) -> Optional[_builtins.str]:
|
|
140
|
+
"""
|
|
141
|
+
Identifier of the project in which the Notification Rule is configured.
|
|
142
|
+
"""
|
|
143
|
+
return pulumi.get(self, "project")
|
|
144
|
+
|
|
145
|
+
@_builtins.property
|
|
146
|
+
@pulumi.getter
|
|
147
|
+
def status(self) -> Optional[_builtins.str]:
|
|
148
|
+
return pulumi.get(self, "status")
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class AwaitableGetPipelineCentralNotificationRuleResult(GetPipelineCentralNotificationRuleResult):
|
|
152
|
+
# pylint: disable=using-constant-test
|
|
153
|
+
def __await__(self):
|
|
154
|
+
if False:
|
|
155
|
+
yield self
|
|
156
|
+
return GetPipelineCentralNotificationRuleResult(
|
|
157
|
+
account=self.account,
|
|
158
|
+
created=self.created,
|
|
159
|
+
custom_notification_template_ref=self.custom_notification_template_ref,
|
|
160
|
+
id=self.id,
|
|
161
|
+
identifier=self.identifier,
|
|
162
|
+
last_modified=self.last_modified,
|
|
163
|
+
name=self.name,
|
|
164
|
+
notification_channel_refs=self.notification_channel_refs,
|
|
165
|
+
notification_conditions=self.notification_conditions,
|
|
166
|
+
org=self.org,
|
|
167
|
+
project=self.project,
|
|
168
|
+
status=self.status)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
def get_pipeline_central_notification_rule(custom_notification_template_ref: Optional[Union['GetPipelineCentralNotificationRuleCustomNotificationTemplateRefArgs', 'GetPipelineCentralNotificationRuleCustomNotificationTemplateRefArgsDict']] = None,
|
|
172
|
+
identifier: Optional[_builtins.str] = None,
|
|
173
|
+
name: Optional[_builtins.str] = None,
|
|
174
|
+
notification_channel_refs: Optional[Sequence[_builtins.str]] = None,
|
|
175
|
+
notification_conditions: Optional[Sequence[Union['GetPipelineCentralNotificationRuleNotificationConditionArgs', 'GetPipelineCentralNotificationRuleNotificationConditionArgsDict']]] = None,
|
|
176
|
+
org: Optional[_builtins.str] = None,
|
|
177
|
+
project: Optional[_builtins.str] = None,
|
|
178
|
+
status: Optional[_builtins.str] = None,
|
|
179
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPipelineCentralNotificationRuleResult:
|
|
180
|
+
"""
|
|
181
|
+
Data source for retrieving a Notification Rule.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param _builtins.str identifier: Identifier of the Notification Rule.
|
|
185
|
+
:param _builtins.str org: Identifier of the organization in which the Notification Rule is configured.
|
|
186
|
+
:param _builtins.str project: Identifier of the project in which the Notification Rule is configured.
|
|
187
|
+
"""
|
|
188
|
+
__args__ = dict()
|
|
189
|
+
__args__['customNotificationTemplateRef'] = custom_notification_template_ref
|
|
190
|
+
__args__['identifier'] = identifier
|
|
191
|
+
__args__['name'] = name
|
|
192
|
+
__args__['notificationChannelRefs'] = notification_channel_refs
|
|
193
|
+
__args__['notificationConditions'] = notification_conditions
|
|
194
|
+
__args__['org'] = org
|
|
195
|
+
__args__['project'] = project
|
|
196
|
+
__args__['status'] = status
|
|
197
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
198
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getPipelineCentralNotificationRule:getPipelineCentralNotificationRule', __args__, opts=opts, typ=GetPipelineCentralNotificationRuleResult).value
|
|
199
|
+
|
|
200
|
+
return AwaitableGetPipelineCentralNotificationRuleResult(
|
|
201
|
+
account=pulumi.get(__ret__, 'account'),
|
|
202
|
+
created=pulumi.get(__ret__, 'created'),
|
|
203
|
+
custom_notification_template_ref=pulumi.get(__ret__, 'custom_notification_template_ref'),
|
|
204
|
+
id=pulumi.get(__ret__, 'id'),
|
|
205
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
206
|
+
last_modified=pulumi.get(__ret__, 'last_modified'),
|
|
207
|
+
name=pulumi.get(__ret__, 'name'),
|
|
208
|
+
notification_channel_refs=pulumi.get(__ret__, 'notification_channel_refs'),
|
|
209
|
+
notification_conditions=pulumi.get(__ret__, 'notification_conditions'),
|
|
210
|
+
org=pulumi.get(__ret__, 'org'),
|
|
211
|
+
project=pulumi.get(__ret__, 'project'),
|
|
212
|
+
status=pulumi.get(__ret__, 'status'))
|
|
213
|
+
def get_pipeline_central_notification_rule_output(custom_notification_template_ref: Optional[pulumi.Input[Optional[Union['GetPipelineCentralNotificationRuleCustomNotificationTemplateRefArgs', 'GetPipelineCentralNotificationRuleCustomNotificationTemplateRefArgsDict']]]] = None,
|
|
214
|
+
identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
215
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
216
|
+
notification_channel_refs: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
217
|
+
notification_conditions: Optional[pulumi.Input[Optional[Sequence[Union['GetPipelineCentralNotificationRuleNotificationConditionArgs', 'GetPipelineCentralNotificationRuleNotificationConditionArgsDict']]]]] = None,
|
|
218
|
+
org: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
219
|
+
project: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
220
|
+
status: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
221
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPipelineCentralNotificationRuleResult]:
|
|
222
|
+
"""
|
|
223
|
+
Data source for retrieving a Notification Rule.
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
:param _builtins.str identifier: Identifier of the Notification Rule.
|
|
227
|
+
:param _builtins.str org: Identifier of the organization in which the Notification Rule is configured.
|
|
228
|
+
:param _builtins.str project: Identifier of the project in which the Notification Rule is configured.
|
|
229
|
+
"""
|
|
230
|
+
__args__ = dict()
|
|
231
|
+
__args__['customNotificationTemplateRef'] = custom_notification_template_ref
|
|
232
|
+
__args__['identifier'] = identifier
|
|
233
|
+
__args__['name'] = name
|
|
234
|
+
__args__['notificationChannelRefs'] = notification_channel_refs
|
|
235
|
+
__args__['notificationConditions'] = notification_conditions
|
|
236
|
+
__args__['org'] = org
|
|
237
|
+
__args__['project'] = project
|
|
238
|
+
__args__['status'] = status
|
|
239
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
240
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getPipelineCentralNotificationRule:getPipelineCentralNotificationRule', __args__, opts=opts, typ=GetPipelineCentralNotificationRuleResult)
|
|
241
|
+
return __ret__.apply(lambda __response__: GetPipelineCentralNotificationRuleResult(
|
|
242
|
+
account=pulumi.get(__response__, 'account'),
|
|
243
|
+
created=pulumi.get(__response__, 'created'),
|
|
244
|
+
custom_notification_template_ref=pulumi.get(__response__, 'custom_notification_template_ref'),
|
|
245
|
+
id=pulumi.get(__response__, 'id'),
|
|
246
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
247
|
+
last_modified=pulumi.get(__response__, 'last_modified'),
|
|
248
|
+
name=pulumi.get(__response__, 'name'),
|
|
249
|
+
notification_channel_refs=pulumi.get(__response__, 'notification_channel_refs'),
|
|
250
|
+
notification_conditions=pulumi.get(__response__, 'notification_conditions'),
|
|
251
|
+
org=pulumi.get(__response__, 'org'),
|
|
252
|
+
project=pulumi.get(__response__, 'project'),
|
|
253
|
+
status=pulumi.get(__response__, 'status')))
|