pulumi-harness 0.8.0a1750480667__py3-none-any.whl → 0.8.0a1752731737__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-harness might be problematic. Click here for more details.

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