pulumi-harness 0.8.0a1755714852__py3-none-any.whl → 0.8.1__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 +2299 -3
- pulumi_harness/platform/azure_cloud_cost_connector.py +18 -0
- pulumi_harness/platform/default_notification_template_set.py +495 -0
- pulumi_harness/platform/get_azure_cloud_cost_connector.py +3 -0
- pulumi_harness/platform/get_default_notification_template_set.py +244 -0
- pulumi_harness/platform/gitops_applicationset.py +2 -0
- pulumi_harness/platform/outputs.py +1608 -4
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.8.0a1755714852.dist-info → pulumi_harness-0.8.1.dist-info}/METADATA +1 -1
- {pulumi_harness-0.8.0a1755714852.dist-info → pulumi_harness-0.8.1.dist-info}/RECORD +14 -12
- {pulumi_harness-0.8.0a1755714852.dist-info → pulumi_harness-0.8.1.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1755714852.dist-info → pulumi_harness-0.8.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,244 @@
|
|
|
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
|
+
'GetDefaultNotificationTemplateSetResult',
|
|
21
|
+
'AwaitableGetDefaultNotificationTemplateSetResult',
|
|
22
|
+
'get_default_notification_template_set',
|
|
23
|
+
'get_default_notification_template_set_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetDefaultNotificationTemplateSetResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getDefaultNotificationTemplateSet.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, created=None, description=None, event_template_configuration_sets=None, id=None, identifier=None, last_modified=None, name=None, notification_channel_type=None, notification_entity=None, tags=None):
|
|
32
|
+
if created and not isinstance(created, int):
|
|
33
|
+
raise TypeError("Expected argument 'created' to be a int")
|
|
34
|
+
pulumi.set(__self__, "created", created)
|
|
35
|
+
if description and not isinstance(description, str):
|
|
36
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
37
|
+
pulumi.set(__self__, "description", description)
|
|
38
|
+
if event_template_configuration_sets and not isinstance(event_template_configuration_sets, list):
|
|
39
|
+
raise TypeError("Expected argument 'event_template_configuration_sets' to be a list")
|
|
40
|
+
pulumi.set(__self__, "event_template_configuration_sets", event_template_configuration_sets)
|
|
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_type and not isinstance(notification_channel_type, str):
|
|
54
|
+
raise TypeError("Expected argument 'notification_channel_type' to be a str")
|
|
55
|
+
pulumi.set(__self__, "notification_channel_type", notification_channel_type)
|
|
56
|
+
if notification_entity and not isinstance(notification_entity, str):
|
|
57
|
+
raise TypeError("Expected argument 'notification_entity' to be a str")
|
|
58
|
+
pulumi.set(__self__, "notification_entity", notification_entity)
|
|
59
|
+
if tags and not isinstance(tags, dict):
|
|
60
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
|
61
|
+
pulumi.set(__self__, "tags", tags)
|
|
62
|
+
|
|
63
|
+
@_builtins.property
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def created(self) -> _builtins.int:
|
|
66
|
+
"""
|
|
67
|
+
Timestamp when the notification rule was created.
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "created")
|
|
70
|
+
|
|
71
|
+
@_builtins.property
|
|
72
|
+
@pulumi.getter
|
|
73
|
+
def description(self) -> Optional[_builtins.str]:
|
|
74
|
+
"""
|
|
75
|
+
Description for Default Notification Template Set
|
|
76
|
+
"""
|
|
77
|
+
return pulumi.get(self, "description")
|
|
78
|
+
|
|
79
|
+
@_builtins.property
|
|
80
|
+
@pulumi.getter(name="eventTemplateConfigurationSets")
|
|
81
|
+
def event_template_configuration_sets(self) -> Sequence['outputs.GetDefaultNotificationTemplateSetEventTemplateConfigurationSetResult']:
|
|
82
|
+
"""
|
|
83
|
+
Set of event-template configurations
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "event_template_configuration_sets")
|
|
86
|
+
|
|
87
|
+
@_builtins.property
|
|
88
|
+
@pulumi.getter
|
|
89
|
+
def id(self) -> _builtins.str:
|
|
90
|
+
"""
|
|
91
|
+
The provider-assigned unique ID for this managed resource.
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "id")
|
|
94
|
+
|
|
95
|
+
@_builtins.property
|
|
96
|
+
@pulumi.getter
|
|
97
|
+
def identifier(self) -> _builtins.str:
|
|
98
|
+
"""
|
|
99
|
+
Identifier of Default Notification Template Set
|
|
100
|
+
"""
|
|
101
|
+
return pulumi.get(self, "identifier")
|
|
102
|
+
|
|
103
|
+
@_builtins.property
|
|
104
|
+
@pulumi.getter(name="lastModified")
|
|
105
|
+
def last_modified(self) -> _builtins.int:
|
|
106
|
+
"""
|
|
107
|
+
Timestamp when the notification rule was last modified.
|
|
108
|
+
"""
|
|
109
|
+
return pulumi.get(self, "last_modified")
|
|
110
|
+
|
|
111
|
+
@_builtins.property
|
|
112
|
+
@pulumi.getter
|
|
113
|
+
def name(self) -> _builtins.str:
|
|
114
|
+
"""
|
|
115
|
+
Name of Default Notification Template Set
|
|
116
|
+
"""
|
|
117
|
+
return pulumi.get(self, "name")
|
|
118
|
+
|
|
119
|
+
@_builtins.property
|
|
120
|
+
@pulumi.getter(name="notificationChannelType")
|
|
121
|
+
def notification_channel_type(self) -> _builtins.str:
|
|
122
|
+
"""
|
|
123
|
+
Type of channel (e.g. SLACK, EMAIL, etc.)
|
|
124
|
+
"""
|
|
125
|
+
return pulumi.get(self, "notification_channel_type")
|
|
126
|
+
|
|
127
|
+
@_builtins.property
|
|
128
|
+
@pulumi.getter(name="notificationEntity")
|
|
129
|
+
def notification_entity(self) -> _builtins.str:
|
|
130
|
+
"""
|
|
131
|
+
Type of the entity (e.g. PIPELINE, SERVICE, etc.)
|
|
132
|
+
"""
|
|
133
|
+
return pulumi.get(self, "notification_entity")
|
|
134
|
+
|
|
135
|
+
@_builtins.property
|
|
136
|
+
@pulumi.getter
|
|
137
|
+
def tags(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
138
|
+
"""
|
|
139
|
+
Key-value tags
|
|
140
|
+
"""
|
|
141
|
+
return pulumi.get(self, "tags")
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class AwaitableGetDefaultNotificationTemplateSetResult(GetDefaultNotificationTemplateSetResult):
|
|
145
|
+
# pylint: disable=using-constant-test
|
|
146
|
+
def __await__(self):
|
|
147
|
+
if False:
|
|
148
|
+
yield self
|
|
149
|
+
return GetDefaultNotificationTemplateSetResult(
|
|
150
|
+
created=self.created,
|
|
151
|
+
description=self.description,
|
|
152
|
+
event_template_configuration_sets=self.event_template_configuration_sets,
|
|
153
|
+
id=self.id,
|
|
154
|
+
identifier=self.identifier,
|
|
155
|
+
last_modified=self.last_modified,
|
|
156
|
+
name=self.name,
|
|
157
|
+
notification_channel_type=self.notification_channel_type,
|
|
158
|
+
notification_entity=self.notification_entity,
|
|
159
|
+
tags=self.tags)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def get_default_notification_template_set(description: Optional[_builtins.str] = None,
|
|
163
|
+
event_template_configuration_sets: Optional[Sequence[Union['GetDefaultNotificationTemplateSetEventTemplateConfigurationSetArgs', 'GetDefaultNotificationTemplateSetEventTemplateConfigurationSetArgsDict']]] = None,
|
|
164
|
+
identifier: Optional[_builtins.str] = None,
|
|
165
|
+
name: Optional[_builtins.str] = None,
|
|
166
|
+
notification_channel_type: Optional[_builtins.str] = None,
|
|
167
|
+
notification_entity: Optional[_builtins.str] = None,
|
|
168
|
+
tags: Optional[Mapping[str, _builtins.str]] = None,
|
|
169
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDefaultNotificationTemplateSetResult:
|
|
170
|
+
"""
|
|
171
|
+
Data source for retrieving a Default Notification Template Set.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:param _builtins.str description: Description for Default Notification Template Set
|
|
175
|
+
:param Sequence[Union['GetDefaultNotificationTemplateSetEventTemplateConfigurationSetArgs', 'GetDefaultNotificationTemplateSetEventTemplateConfigurationSetArgsDict']] event_template_configuration_sets: Set of event-template configurations
|
|
176
|
+
:param _builtins.str identifier: Identifier of Default Notification Template Set
|
|
177
|
+
:param _builtins.str name: Name of Default Notification Template Set
|
|
178
|
+
:param _builtins.str notification_channel_type: Type of channel (e.g. SLACK, EMAIL, etc.)
|
|
179
|
+
:param _builtins.str notification_entity: Type of the entity (e.g. PIPELINE, SERVICE, etc.)
|
|
180
|
+
:param Mapping[str, _builtins.str] tags: Key-value tags
|
|
181
|
+
"""
|
|
182
|
+
__args__ = dict()
|
|
183
|
+
__args__['description'] = description
|
|
184
|
+
__args__['eventTemplateConfigurationSets'] = event_template_configuration_sets
|
|
185
|
+
__args__['identifier'] = identifier
|
|
186
|
+
__args__['name'] = name
|
|
187
|
+
__args__['notificationChannelType'] = notification_channel_type
|
|
188
|
+
__args__['notificationEntity'] = notification_entity
|
|
189
|
+
__args__['tags'] = tags
|
|
190
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
191
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getDefaultNotificationTemplateSet:getDefaultNotificationTemplateSet', __args__, opts=opts, typ=GetDefaultNotificationTemplateSetResult).value
|
|
192
|
+
|
|
193
|
+
return AwaitableGetDefaultNotificationTemplateSetResult(
|
|
194
|
+
created=pulumi.get(__ret__, 'created'),
|
|
195
|
+
description=pulumi.get(__ret__, 'description'),
|
|
196
|
+
event_template_configuration_sets=pulumi.get(__ret__, 'event_template_configuration_sets'),
|
|
197
|
+
id=pulumi.get(__ret__, 'id'),
|
|
198
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
199
|
+
last_modified=pulumi.get(__ret__, 'last_modified'),
|
|
200
|
+
name=pulumi.get(__ret__, 'name'),
|
|
201
|
+
notification_channel_type=pulumi.get(__ret__, 'notification_channel_type'),
|
|
202
|
+
notification_entity=pulumi.get(__ret__, 'notification_entity'),
|
|
203
|
+
tags=pulumi.get(__ret__, 'tags'))
|
|
204
|
+
def get_default_notification_template_set_output(description: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
205
|
+
event_template_configuration_sets: Optional[pulumi.Input[Sequence[Union['GetDefaultNotificationTemplateSetEventTemplateConfigurationSetArgs', 'GetDefaultNotificationTemplateSetEventTemplateConfigurationSetArgsDict']]]] = None,
|
|
206
|
+
identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
207
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
208
|
+
notification_channel_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
209
|
+
notification_entity: Optional[pulumi.Input[_builtins.str]] = None,
|
|
210
|
+
tags: Optional[pulumi.Input[Optional[Mapping[str, _builtins.str]]]] = None,
|
|
211
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDefaultNotificationTemplateSetResult]:
|
|
212
|
+
"""
|
|
213
|
+
Data source for retrieving a Default Notification Template Set.
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
:param _builtins.str description: Description for Default Notification Template Set
|
|
217
|
+
:param Sequence[Union['GetDefaultNotificationTemplateSetEventTemplateConfigurationSetArgs', 'GetDefaultNotificationTemplateSetEventTemplateConfigurationSetArgsDict']] event_template_configuration_sets: Set of event-template configurations
|
|
218
|
+
:param _builtins.str identifier: Identifier of Default Notification Template Set
|
|
219
|
+
:param _builtins.str name: Name of Default Notification Template Set
|
|
220
|
+
:param _builtins.str notification_channel_type: Type of channel (e.g. SLACK, EMAIL, etc.)
|
|
221
|
+
:param _builtins.str notification_entity: Type of the entity (e.g. PIPELINE, SERVICE, etc.)
|
|
222
|
+
:param Mapping[str, _builtins.str] tags: Key-value tags
|
|
223
|
+
"""
|
|
224
|
+
__args__ = dict()
|
|
225
|
+
__args__['description'] = description
|
|
226
|
+
__args__['eventTemplateConfigurationSets'] = event_template_configuration_sets
|
|
227
|
+
__args__['identifier'] = identifier
|
|
228
|
+
__args__['name'] = name
|
|
229
|
+
__args__['notificationChannelType'] = notification_channel_type
|
|
230
|
+
__args__['notificationEntity'] = notification_entity
|
|
231
|
+
__args__['tags'] = tags
|
|
232
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
233
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getDefaultNotificationTemplateSet:getDefaultNotificationTemplateSet', __args__, opts=opts, typ=GetDefaultNotificationTemplateSetResult)
|
|
234
|
+
return __ret__.apply(lambda __response__: GetDefaultNotificationTemplateSetResult(
|
|
235
|
+
created=pulumi.get(__response__, 'created'),
|
|
236
|
+
description=pulumi.get(__response__, 'description'),
|
|
237
|
+
event_template_configuration_sets=pulumi.get(__response__, 'event_template_configuration_sets'),
|
|
238
|
+
id=pulumi.get(__response__, 'id'),
|
|
239
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
240
|
+
last_modified=pulumi.get(__response__, 'last_modified'),
|
|
241
|
+
name=pulumi.get(__response__, 'name'),
|
|
242
|
+
notification_channel_type=pulumi.get(__response__, 'notification_channel_type'),
|
|
243
|
+
notification_entity=pulumi.get(__response__, 'notification_entity'),
|
|
244
|
+
tags=pulumi.get(__response__, 'tags')))
|
|
@@ -239,6 +239,7 @@ class GitopsApplicationset(pulumi.CustomResource):
|
|
|
239
239
|
},
|
|
240
240
|
"spec": {
|
|
241
241
|
"go_template": True,
|
|
242
|
+
"go_template_options": ["missingkey=error"],
|
|
242
243
|
"generators": [{
|
|
243
244
|
"clusters": [{
|
|
244
245
|
"enabled": True,
|
|
@@ -304,6 +305,7 @@ class GitopsApplicationset(pulumi.CustomResource):
|
|
|
304
305
|
},
|
|
305
306
|
"spec": {
|
|
306
307
|
"go_template": True,
|
|
308
|
+
"go_template_options": ["missingkey=error"],
|
|
307
309
|
"generators": [{
|
|
308
310
|
"clusters": [{
|
|
309
311
|
"enabled": True,
|