pulumi-alicloud 3.69.0a1733375908__py3-none-any.whl → 3.69.0a1733740345__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-alicloud might be problematic. Click here for more details.

Files changed (47) hide show
  1. pulumi_alicloud/__init__.py +56 -0
  2. pulumi_alicloud/adb/db_cluster.py +7 -0
  3. pulumi_alicloud/arms/__init__.py +2 -0
  4. pulumi_alicloud/arms/_inputs.py +42 -4
  5. pulumi_alicloud/arms/alert_robot.py +421 -0
  6. pulumi_alicloud/arms/dispatch_rule.py +4 -0
  7. pulumi_alicloud/arms/get_alert_robots.py +230 -0
  8. pulumi_alicloud/arms/get_dispatch_rules.py +99 -6
  9. pulumi_alicloud/arms/outputs.py +154 -13
  10. pulumi_alicloud/cfg/rule.py +4 -4
  11. pulumi_alicloud/cs/autoscaling_config.py +51 -0
  12. pulumi_alicloud/dataworks/__init__.py +4 -0
  13. pulumi_alicloud/dataworks/_inputs.py +95 -0
  14. pulumi_alicloud/dataworks/data_source.py +686 -0
  15. pulumi_alicloud/dataworks/data_source_shared_rule.py +378 -0
  16. pulumi_alicloud/dataworks/outputs.py +44 -0
  17. pulumi_alicloud/dataworks/project.py +294 -140
  18. pulumi_alicloud/dataworks/project_member.py +380 -0
  19. pulumi_alicloud/ecs/__init__.py +1 -0
  20. pulumi_alicloud/ecs/_inputs.py +34 -0
  21. pulumi_alicloud/ecs/disk.py +156 -14
  22. pulumi_alicloud/ecs/ecs_disk.py +308 -97
  23. pulumi_alicloud/ecs/ecs_key_pair.py +77 -49
  24. pulumi_alicloud/ecs/image_pipeline_execution.py +245 -0
  25. pulumi_alicloud/ecs/instance.py +145 -0
  26. pulumi_alicloud/ecs/key_pair.py +27 -7
  27. pulumi_alicloud/ecs/outputs.py +37 -0
  28. pulumi_alicloud/oss/__init__.py +1 -0
  29. pulumi_alicloud/oss/_inputs.py +1750 -0
  30. pulumi_alicloud/oss/bucket_website.py +416 -0
  31. pulumi_alicloud/oss/outputs.py +1338 -0
  32. pulumi_alicloud/polardb/cluster.py +7 -7
  33. pulumi_alicloud/polardb/get_clusters.py +1 -1
  34. pulumi_alicloud/polardb/outputs.py +2 -2
  35. pulumi_alicloud/pulumi-plugin.json +1 -1
  36. pulumi_alicloud/redis/tair_instance.py +63 -30
  37. pulumi_alicloud/sae/application.py +1 -1
  38. pulumi_alicloud/slb/attachment.py +2 -6
  39. pulumi_alicloud/sls/__init__.py +1 -0
  40. pulumi_alicloud/sls/_inputs.py +484 -0
  41. pulumi_alicloud/sls/oss_export_sink.py +428 -0
  42. pulumi_alicloud/sls/outputs.py +346 -0
  43. pulumi_alicloud/vpc/network.py +7 -7
  44. {pulumi_alicloud-3.69.0a1733375908.dist-info → pulumi_alicloud-3.69.0a1733740345.dist-info}/METADATA +1 -1
  45. {pulumi_alicloud-3.69.0a1733375908.dist-info → pulumi_alicloud-3.69.0a1733740345.dist-info}/RECORD +47 -38
  46. {pulumi_alicloud-3.69.0a1733375908.dist-info → pulumi_alicloud-3.69.0a1733740345.dist-info}/WHEEL +0 -0
  47. {pulumi_alicloud-3.69.0a1733375908.dist-info → pulumi_alicloud-3.69.0a1733740345.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,421 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
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
+
17
+ __all__ = ['AlertRobotArgs', 'AlertRobot']
18
+
19
+ @pulumi.input_type
20
+ class AlertRobotArgs:
21
+ def __init__(__self__, *,
22
+ alert_robot_name: pulumi.Input[str],
23
+ robot_addr: pulumi.Input[str],
24
+ robot_type: pulumi.Input[str],
25
+ daily_noc: Optional[pulumi.Input[bool]] = None,
26
+ daily_noc_time: Optional[pulumi.Input[str]] = None):
27
+ """
28
+ The set of arguments for constructing a AlertRobot resource.
29
+ :param pulumi.Input[str] alert_robot_name: The name of the resource.
30
+ :param pulumi.Input[str] robot_addr: The webhook url of the robot.
31
+ :param pulumi.Input[str] robot_type: The type of the robot, Valid values: `wechat`, `dingding`, `feishu`.
32
+ :param pulumi.Input[bool] daily_noc: Specifies whether the alert robot receives daily notifications. Valid values: `true`: receives daily notifications. `false`: does not receive daily notifications, default to `false`.
33
+ :param pulumi.Input[str] daily_noc_time: The time of the daily notification.
34
+ """
35
+ pulumi.set(__self__, "alert_robot_name", alert_robot_name)
36
+ pulumi.set(__self__, "robot_addr", robot_addr)
37
+ pulumi.set(__self__, "robot_type", robot_type)
38
+ if daily_noc is not None:
39
+ pulumi.set(__self__, "daily_noc", daily_noc)
40
+ if daily_noc_time is not None:
41
+ pulumi.set(__self__, "daily_noc_time", daily_noc_time)
42
+
43
+ @property
44
+ @pulumi.getter(name="alertRobotName")
45
+ def alert_robot_name(self) -> pulumi.Input[str]:
46
+ """
47
+ The name of the resource.
48
+ """
49
+ return pulumi.get(self, "alert_robot_name")
50
+
51
+ @alert_robot_name.setter
52
+ def alert_robot_name(self, value: pulumi.Input[str]):
53
+ pulumi.set(self, "alert_robot_name", value)
54
+
55
+ @property
56
+ @pulumi.getter(name="robotAddr")
57
+ def robot_addr(self) -> pulumi.Input[str]:
58
+ """
59
+ The webhook url of the robot.
60
+ """
61
+ return pulumi.get(self, "robot_addr")
62
+
63
+ @robot_addr.setter
64
+ def robot_addr(self, value: pulumi.Input[str]):
65
+ pulumi.set(self, "robot_addr", value)
66
+
67
+ @property
68
+ @pulumi.getter(name="robotType")
69
+ def robot_type(self) -> pulumi.Input[str]:
70
+ """
71
+ The type of the robot, Valid values: `wechat`, `dingding`, `feishu`.
72
+ """
73
+ return pulumi.get(self, "robot_type")
74
+
75
+ @robot_type.setter
76
+ def robot_type(self, value: pulumi.Input[str]):
77
+ pulumi.set(self, "robot_type", value)
78
+
79
+ @property
80
+ @pulumi.getter(name="dailyNoc")
81
+ def daily_noc(self) -> Optional[pulumi.Input[bool]]:
82
+ """
83
+ Specifies whether the alert robot receives daily notifications. Valid values: `true`: receives daily notifications. `false`: does not receive daily notifications, default to `false`.
84
+ """
85
+ return pulumi.get(self, "daily_noc")
86
+
87
+ @daily_noc.setter
88
+ def daily_noc(self, value: Optional[pulumi.Input[bool]]):
89
+ pulumi.set(self, "daily_noc", value)
90
+
91
+ @property
92
+ @pulumi.getter(name="dailyNocTime")
93
+ def daily_noc_time(self) -> Optional[pulumi.Input[str]]:
94
+ """
95
+ The time of the daily notification.
96
+ """
97
+ return pulumi.get(self, "daily_noc_time")
98
+
99
+ @daily_noc_time.setter
100
+ def daily_noc_time(self, value: Optional[pulumi.Input[str]]):
101
+ pulumi.set(self, "daily_noc_time", value)
102
+
103
+
104
+ @pulumi.input_type
105
+ class _AlertRobotState:
106
+ def __init__(__self__, *,
107
+ alert_robot_name: Optional[pulumi.Input[str]] = None,
108
+ daily_noc: Optional[pulumi.Input[bool]] = None,
109
+ daily_noc_time: Optional[pulumi.Input[str]] = None,
110
+ robot_addr: Optional[pulumi.Input[str]] = None,
111
+ robot_type: Optional[pulumi.Input[str]] = None):
112
+ """
113
+ Input properties used for looking up and filtering AlertRobot resources.
114
+ :param pulumi.Input[str] alert_robot_name: The name of the resource.
115
+ :param pulumi.Input[bool] daily_noc: Specifies whether the alert robot receives daily notifications. Valid values: `true`: receives daily notifications. `false`: does not receive daily notifications, default to `false`.
116
+ :param pulumi.Input[str] daily_noc_time: The time of the daily notification.
117
+ :param pulumi.Input[str] robot_addr: The webhook url of the robot.
118
+ :param pulumi.Input[str] robot_type: The type of the robot, Valid values: `wechat`, `dingding`, `feishu`.
119
+ """
120
+ if alert_robot_name is not None:
121
+ pulumi.set(__self__, "alert_robot_name", alert_robot_name)
122
+ if daily_noc is not None:
123
+ pulumi.set(__self__, "daily_noc", daily_noc)
124
+ if daily_noc_time is not None:
125
+ pulumi.set(__self__, "daily_noc_time", daily_noc_time)
126
+ if robot_addr is not None:
127
+ pulumi.set(__self__, "robot_addr", robot_addr)
128
+ if robot_type is not None:
129
+ pulumi.set(__self__, "robot_type", robot_type)
130
+
131
+ @property
132
+ @pulumi.getter(name="alertRobotName")
133
+ def alert_robot_name(self) -> Optional[pulumi.Input[str]]:
134
+ """
135
+ The name of the resource.
136
+ """
137
+ return pulumi.get(self, "alert_robot_name")
138
+
139
+ @alert_robot_name.setter
140
+ def alert_robot_name(self, value: Optional[pulumi.Input[str]]):
141
+ pulumi.set(self, "alert_robot_name", value)
142
+
143
+ @property
144
+ @pulumi.getter(name="dailyNoc")
145
+ def daily_noc(self) -> Optional[pulumi.Input[bool]]:
146
+ """
147
+ Specifies whether the alert robot receives daily notifications. Valid values: `true`: receives daily notifications. `false`: does not receive daily notifications, default to `false`.
148
+ """
149
+ return pulumi.get(self, "daily_noc")
150
+
151
+ @daily_noc.setter
152
+ def daily_noc(self, value: Optional[pulumi.Input[bool]]):
153
+ pulumi.set(self, "daily_noc", value)
154
+
155
+ @property
156
+ @pulumi.getter(name="dailyNocTime")
157
+ def daily_noc_time(self) -> Optional[pulumi.Input[str]]:
158
+ """
159
+ The time of the daily notification.
160
+ """
161
+ return pulumi.get(self, "daily_noc_time")
162
+
163
+ @daily_noc_time.setter
164
+ def daily_noc_time(self, value: Optional[pulumi.Input[str]]):
165
+ pulumi.set(self, "daily_noc_time", value)
166
+
167
+ @property
168
+ @pulumi.getter(name="robotAddr")
169
+ def robot_addr(self) -> Optional[pulumi.Input[str]]:
170
+ """
171
+ The webhook url of the robot.
172
+ """
173
+ return pulumi.get(self, "robot_addr")
174
+
175
+ @robot_addr.setter
176
+ def robot_addr(self, value: Optional[pulumi.Input[str]]):
177
+ pulumi.set(self, "robot_addr", value)
178
+
179
+ @property
180
+ @pulumi.getter(name="robotType")
181
+ def robot_type(self) -> Optional[pulumi.Input[str]]:
182
+ """
183
+ The type of the robot, Valid values: `wechat`, `dingding`, `feishu`.
184
+ """
185
+ return pulumi.get(self, "robot_type")
186
+
187
+ @robot_type.setter
188
+ def robot_type(self, value: Optional[pulumi.Input[str]]):
189
+ pulumi.set(self, "robot_type", value)
190
+
191
+
192
+ class AlertRobot(pulumi.CustomResource):
193
+ @overload
194
+ def __init__(__self__,
195
+ resource_name: str,
196
+ opts: Optional[pulumi.ResourceOptions] = None,
197
+ alert_robot_name: Optional[pulumi.Input[str]] = None,
198
+ daily_noc: Optional[pulumi.Input[bool]] = None,
199
+ daily_noc_time: Optional[pulumi.Input[str]] = None,
200
+ robot_addr: Optional[pulumi.Input[str]] = None,
201
+ robot_type: Optional[pulumi.Input[str]] = None,
202
+ __props__=None):
203
+ """
204
+ Provides a Application Real-Time Monitoring Service (ARMS) Alert Robot resource.
205
+
206
+ For information about Application Real-Time Monitoring Service (ARMS) Alert Robot and how to use it, see [What is Alert Robot](https://next.api.alibabacloud.com/document/ARMS/2019-08-08/CreateOrUpdateIMRobot).
207
+
208
+ > **NOTE:** Available since v1.237.0.
209
+
210
+ ## Example Usage
211
+
212
+ Basic Usage
213
+
214
+ ```python
215
+ import pulumi
216
+ import pulumi_alicloud as alicloud
217
+
218
+ wechat = alicloud.arms.AlertRobot("wechat",
219
+ alert_robot_name="example_wechat",
220
+ robot_type="wechat",
221
+ robot_addr="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1c704e23",
222
+ daily_noc=True,
223
+ daily_noc_time="09:30,17:00")
224
+ dingding = alicloud.arms.AlertRobot("dingding",
225
+ alert_robot_name="example_dingding",
226
+ robot_type="dingding",
227
+ robot_addr="https://oapi.dingtalk.com/robot/send?access_token=1c704e23",
228
+ daily_noc=True,
229
+ daily_noc_time="09:30,17:00")
230
+ feishu = alicloud.arms.AlertRobot("feishu",
231
+ alert_robot_name="example_feishu",
232
+ robot_type="feishu",
233
+ robot_addr="https://open.feishu.cn/open-apis/bot/v2/hook/a48efa01",
234
+ daily_noc=True,
235
+ daily_noc_time="09:30,17:00")
236
+ ```
237
+
238
+ ## Import
239
+
240
+ Application Real-Time Monitoring Service (ARMS) Alert Robot can be imported using the id, e.g.
241
+
242
+ ```sh
243
+ $ pulumi import alicloud:arms/alertRobot:AlertRobot example <id>
244
+ ```
245
+
246
+ :param str resource_name: The name of the resource.
247
+ :param pulumi.ResourceOptions opts: Options for the resource.
248
+ :param pulumi.Input[str] alert_robot_name: The name of the resource.
249
+ :param pulumi.Input[bool] daily_noc: Specifies whether the alert robot receives daily notifications. Valid values: `true`: receives daily notifications. `false`: does not receive daily notifications, default to `false`.
250
+ :param pulumi.Input[str] daily_noc_time: The time of the daily notification.
251
+ :param pulumi.Input[str] robot_addr: The webhook url of the robot.
252
+ :param pulumi.Input[str] robot_type: The type of the robot, Valid values: `wechat`, `dingding`, `feishu`.
253
+ """
254
+ ...
255
+ @overload
256
+ def __init__(__self__,
257
+ resource_name: str,
258
+ args: AlertRobotArgs,
259
+ opts: Optional[pulumi.ResourceOptions] = None):
260
+ """
261
+ Provides a Application Real-Time Monitoring Service (ARMS) Alert Robot resource.
262
+
263
+ For information about Application Real-Time Monitoring Service (ARMS) Alert Robot and how to use it, see [What is Alert Robot](https://next.api.alibabacloud.com/document/ARMS/2019-08-08/CreateOrUpdateIMRobot).
264
+
265
+ > **NOTE:** Available since v1.237.0.
266
+
267
+ ## Example Usage
268
+
269
+ Basic Usage
270
+
271
+ ```python
272
+ import pulumi
273
+ import pulumi_alicloud as alicloud
274
+
275
+ wechat = alicloud.arms.AlertRobot("wechat",
276
+ alert_robot_name="example_wechat",
277
+ robot_type="wechat",
278
+ robot_addr="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1c704e23",
279
+ daily_noc=True,
280
+ daily_noc_time="09:30,17:00")
281
+ dingding = alicloud.arms.AlertRobot("dingding",
282
+ alert_robot_name="example_dingding",
283
+ robot_type="dingding",
284
+ robot_addr="https://oapi.dingtalk.com/robot/send?access_token=1c704e23",
285
+ daily_noc=True,
286
+ daily_noc_time="09:30,17:00")
287
+ feishu = alicloud.arms.AlertRobot("feishu",
288
+ alert_robot_name="example_feishu",
289
+ robot_type="feishu",
290
+ robot_addr="https://open.feishu.cn/open-apis/bot/v2/hook/a48efa01",
291
+ daily_noc=True,
292
+ daily_noc_time="09:30,17:00")
293
+ ```
294
+
295
+ ## Import
296
+
297
+ Application Real-Time Monitoring Service (ARMS) Alert Robot can be imported using the id, e.g.
298
+
299
+ ```sh
300
+ $ pulumi import alicloud:arms/alertRobot:AlertRobot example <id>
301
+ ```
302
+
303
+ :param str resource_name: The name of the resource.
304
+ :param AlertRobotArgs args: The arguments to use to populate this resource's properties.
305
+ :param pulumi.ResourceOptions opts: Options for the resource.
306
+ """
307
+ ...
308
+ def __init__(__self__, resource_name: str, *args, **kwargs):
309
+ resource_args, opts = _utilities.get_resource_args_opts(AlertRobotArgs, pulumi.ResourceOptions, *args, **kwargs)
310
+ if resource_args is not None:
311
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
312
+ else:
313
+ __self__._internal_init(resource_name, *args, **kwargs)
314
+
315
+ def _internal_init(__self__,
316
+ resource_name: str,
317
+ opts: Optional[pulumi.ResourceOptions] = None,
318
+ alert_robot_name: Optional[pulumi.Input[str]] = None,
319
+ daily_noc: Optional[pulumi.Input[bool]] = None,
320
+ daily_noc_time: Optional[pulumi.Input[str]] = None,
321
+ robot_addr: Optional[pulumi.Input[str]] = None,
322
+ robot_type: Optional[pulumi.Input[str]] = None,
323
+ __props__=None):
324
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
325
+ if not isinstance(opts, pulumi.ResourceOptions):
326
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
327
+ if opts.id is None:
328
+ if __props__ is not None:
329
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
330
+ __props__ = AlertRobotArgs.__new__(AlertRobotArgs)
331
+
332
+ if alert_robot_name is None and not opts.urn:
333
+ raise TypeError("Missing required property 'alert_robot_name'")
334
+ __props__.__dict__["alert_robot_name"] = alert_robot_name
335
+ __props__.__dict__["daily_noc"] = daily_noc
336
+ __props__.__dict__["daily_noc_time"] = daily_noc_time
337
+ if robot_addr is None and not opts.urn:
338
+ raise TypeError("Missing required property 'robot_addr'")
339
+ __props__.__dict__["robot_addr"] = robot_addr
340
+ if robot_type is None and not opts.urn:
341
+ raise TypeError("Missing required property 'robot_type'")
342
+ __props__.__dict__["robot_type"] = robot_type
343
+ super(AlertRobot, __self__).__init__(
344
+ 'alicloud:arms/alertRobot:AlertRobot',
345
+ resource_name,
346
+ __props__,
347
+ opts)
348
+
349
+ @staticmethod
350
+ def get(resource_name: str,
351
+ id: pulumi.Input[str],
352
+ opts: Optional[pulumi.ResourceOptions] = None,
353
+ alert_robot_name: Optional[pulumi.Input[str]] = None,
354
+ daily_noc: Optional[pulumi.Input[bool]] = None,
355
+ daily_noc_time: Optional[pulumi.Input[str]] = None,
356
+ robot_addr: Optional[pulumi.Input[str]] = None,
357
+ robot_type: Optional[pulumi.Input[str]] = None) -> 'AlertRobot':
358
+ """
359
+ Get an existing AlertRobot resource's state with the given name, id, and optional extra
360
+ properties used to qualify the lookup.
361
+
362
+ :param str resource_name: The unique name of the resulting resource.
363
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
364
+ :param pulumi.ResourceOptions opts: Options for the resource.
365
+ :param pulumi.Input[str] alert_robot_name: The name of the resource.
366
+ :param pulumi.Input[bool] daily_noc: Specifies whether the alert robot receives daily notifications. Valid values: `true`: receives daily notifications. `false`: does not receive daily notifications, default to `false`.
367
+ :param pulumi.Input[str] daily_noc_time: The time of the daily notification.
368
+ :param pulumi.Input[str] robot_addr: The webhook url of the robot.
369
+ :param pulumi.Input[str] robot_type: The type of the robot, Valid values: `wechat`, `dingding`, `feishu`.
370
+ """
371
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
372
+
373
+ __props__ = _AlertRobotState.__new__(_AlertRobotState)
374
+
375
+ __props__.__dict__["alert_robot_name"] = alert_robot_name
376
+ __props__.__dict__["daily_noc"] = daily_noc
377
+ __props__.__dict__["daily_noc_time"] = daily_noc_time
378
+ __props__.__dict__["robot_addr"] = robot_addr
379
+ __props__.__dict__["robot_type"] = robot_type
380
+ return AlertRobot(resource_name, opts=opts, __props__=__props__)
381
+
382
+ @property
383
+ @pulumi.getter(name="alertRobotName")
384
+ def alert_robot_name(self) -> pulumi.Output[str]:
385
+ """
386
+ The name of the resource.
387
+ """
388
+ return pulumi.get(self, "alert_robot_name")
389
+
390
+ @property
391
+ @pulumi.getter(name="dailyNoc")
392
+ def daily_noc(self) -> pulumi.Output[Optional[bool]]:
393
+ """
394
+ Specifies whether the alert robot receives daily notifications. Valid values: `true`: receives daily notifications. `false`: does not receive daily notifications, default to `false`.
395
+ """
396
+ return pulumi.get(self, "daily_noc")
397
+
398
+ @property
399
+ @pulumi.getter(name="dailyNocTime")
400
+ def daily_noc_time(self) -> pulumi.Output[Optional[str]]:
401
+ """
402
+ The time of the daily notification.
403
+ """
404
+ return pulumi.get(self, "daily_noc_time")
405
+
406
+ @property
407
+ @pulumi.getter(name="robotAddr")
408
+ def robot_addr(self) -> pulumi.Output[str]:
409
+ """
410
+ The webhook url of the robot.
411
+ """
412
+ return pulumi.get(self, "robot_addr")
413
+
414
+ @property
415
+ @pulumi.getter(name="robotType")
416
+ def robot_type(self) -> pulumi.Output[str]:
417
+ """
418
+ The type of the robot, Valid values: `wechat`, `dingding`, `feishu`.
419
+ """
420
+ return pulumi.get(self, "robot_type")
421
+
@@ -306,6 +306,8 @@ class DispatchRule(pulumi.CustomResource):
306
306
  "dingTalk",
307
307
  "wechat",
308
308
  ],
309
+ "notify_start_time": "10:00",
310
+ "notify_end_time": "23:00",
309
311
  }])
310
312
  ```
311
313
 
@@ -388,6 +390,8 @@ class DispatchRule(pulumi.CustomResource):
388
390
  "dingTalk",
389
391
  "wechat",
390
392
  ],
393
+ "notify_start_time": "10:00",
394
+ "notify_end_time": "23:00",
391
395
  }])
392
396
  ```
393
397
 
@@ -0,0 +1,230 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
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
+
18
+ __all__ = [
19
+ 'GetAlertRobotsResult',
20
+ 'AwaitableGetAlertRobotsResult',
21
+ 'get_alert_robots',
22
+ 'get_alert_robots_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetAlertRobotsResult:
27
+ """
28
+ A collection of values returned by getAlertRobots.
29
+ """
30
+ def __init__(__self__, alert_robot_name=None, id=None, ids=None, name_regex=None, names=None, output_file=None, robot_type=None, robots=None):
31
+ if alert_robot_name and not isinstance(alert_robot_name, str):
32
+ raise TypeError("Expected argument 'alert_robot_name' to be a str")
33
+ pulumi.set(__self__, "alert_robot_name", alert_robot_name)
34
+ if id and not isinstance(id, str):
35
+ raise TypeError("Expected argument 'id' to be a str")
36
+ pulumi.set(__self__, "id", id)
37
+ if ids and not isinstance(ids, list):
38
+ raise TypeError("Expected argument 'ids' to be a list")
39
+ pulumi.set(__self__, "ids", ids)
40
+ if name_regex and not isinstance(name_regex, str):
41
+ raise TypeError("Expected argument 'name_regex' to be a str")
42
+ pulumi.set(__self__, "name_regex", name_regex)
43
+ if names and not isinstance(names, list):
44
+ raise TypeError("Expected argument 'names' to be a list")
45
+ pulumi.set(__self__, "names", names)
46
+ if output_file and not isinstance(output_file, str):
47
+ raise TypeError("Expected argument 'output_file' to be a str")
48
+ pulumi.set(__self__, "output_file", output_file)
49
+ if robot_type and not isinstance(robot_type, str):
50
+ raise TypeError("Expected argument 'robot_type' to be a str")
51
+ pulumi.set(__self__, "robot_type", robot_type)
52
+ if robots and not isinstance(robots, list):
53
+ raise TypeError("Expected argument 'robots' to be a list")
54
+ pulumi.set(__self__, "robots", robots)
55
+
56
+ @property
57
+ @pulumi.getter(name="alertRobotName")
58
+ def alert_robot_name(self) -> Optional[str]:
59
+ return pulumi.get(self, "alert_robot_name")
60
+
61
+ @property
62
+ @pulumi.getter
63
+ def id(self) -> str:
64
+ """
65
+ The provider-assigned unique ID for this managed resource.
66
+ """
67
+ return pulumi.get(self, "id")
68
+
69
+ @property
70
+ @pulumi.getter
71
+ def ids(self) -> Sequence[str]:
72
+ """
73
+ A list of Alert Robot IDs.
74
+ """
75
+ return pulumi.get(self, "ids")
76
+
77
+ @property
78
+ @pulumi.getter(name="nameRegex")
79
+ def name_regex(self) -> Optional[str]:
80
+ return pulumi.get(self, "name_regex")
81
+
82
+ @property
83
+ @pulumi.getter
84
+ def names(self) -> Sequence[str]:
85
+ """
86
+ A list of Alert Robot names.
87
+ """
88
+ return pulumi.get(self, "names")
89
+
90
+ @property
91
+ @pulumi.getter(name="outputFile")
92
+ def output_file(self) -> Optional[str]:
93
+ return pulumi.get(self, "output_file")
94
+
95
+ @property
96
+ @pulumi.getter(name="robotType")
97
+ def robot_type(self) -> Optional[str]:
98
+ """
99
+ The type of the robot.
100
+ """
101
+ return pulumi.get(self, "robot_type")
102
+
103
+ @property
104
+ @pulumi.getter
105
+ def robots(self) -> Sequence['outputs.GetAlertRobotsRobotResult']:
106
+ """
107
+ A list of Arms Alert Robots. Each element contains the following attributes:
108
+ """
109
+ return pulumi.get(self, "robots")
110
+
111
+
112
+ class AwaitableGetAlertRobotsResult(GetAlertRobotsResult):
113
+ # pylint: disable=using-constant-test
114
+ def __await__(self):
115
+ if False:
116
+ yield self
117
+ return GetAlertRobotsResult(
118
+ alert_robot_name=self.alert_robot_name,
119
+ id=self.id,
120
+ ids=self.ids,
121
+ name_regex=self.name_regex,
122
+ names=self.names,
123
+ output_file=self.output_file,
124
+ robot_type=self.robot_type,
125
+ robots=self.robots)
126
+
127
+
128
+ def get_alert_robots(alert_robot_name: Optional[str] = None,
129
+ ids: Optional[Sequence[str]] = None,
130
+ name_regex: Optional[str] = None,
131
+ output_file: Optional[str] = None,
132
+ robot_type: Optional[str] = None,
133
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertRobotsResult:
134
+ """
135
+ This data source provides the Arms Alert Robots of the current Alibaba Cloud user.
136
+
137
+ > **NOTE:** Available since v1.237.0.
138
+
139
+ ## Example Usage
140
+
141
+ Basic Usage
142
+
143
+ ```python
144
+ import pulumi
145
+ import pulumi_alicloud as alicloud
146
+
147
+ default = alicloud.arms.AlertRobot("default",
148
+ alert_robot_name="my-AlertRobot",
149
+ robot_type="wechat",
150
+ robot_addr="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1c704e23")
151
+ name_regex = alicloud.arms.get_alert_robots_output(alert_robot_name=default.alert_robot_name)
152
+ pulumi.export("armsAlertRobotId", name_regex.robots[0].id)
153
+ ```
154
+
155
+
156
+ :param str alert_robot_name: The robot name.
157
+ :param Sequence[str] ids: A list of Alert Robot IDs.
158
+ :param str name_regex: A regex string to filter results by Alert Robot name.
159
+ :param str output_file: File name where to save data source results (after running `pulumi preview`).
160
+ :param str robot_type: The robot type.
161
+ """
162
+ __args__ = dict()
163
+ __args__['alertRobotName'] = alert_robot_name
164
+ __args__['ids'] = ids
165
+ __args__['nameRegex'] = name_regex
166
+ __args__['outputFile'] = output_file
167
+ __args__['robotType'] = robot_type
168
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
169
+ __ret__ = pulumi.runtime.invoke('alicloud:arms/getAlertRobots:getAlertRobots', __args__, opts=opts, typ=GetAlertRobotsResult).value
170
+
171
+ return AwaitableGetAlertRobotsResult(
172
+ alert_robot_name=pulumi.get(__ret__, 'alert_robot_name'),
173
+ id=pulumi.get(__ret__, 'id'),
174
+ ids=pulumi.get(__ret__, 'ids'),
175
+ name_regex=pulumi.get(__ret__, 'name_regex'),
176
+ names=pulumi.get(__ret__, 'names'),
177
+ output_file=pulumi.get(__ret__, 'output_file'),
178
+ robot_type=pulumi.get(__ret__, 'robot_type'),
179
+ robots=pulumi.get(__ret__, 'robots'))
180
+ def get_alert_robots_output(alert_robot_name: Optional[pulumi.Input[Optional[str]]] = None,
181
+ ids: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
182
+ name_regex: Optional[pulumi.Input[Optional[str]]] = None,
183
+ output_file: Optional[pulumi.Input[Optional[str]]] = None,
184
+ robot_type: Optional[pulumi.Input[Optional[str]]] = None,
185
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertRobotsResult]:
186
+ """
187
+ This data source provides the Arms Alert Robots of the current Alibaba Cloud user.
188
+
189
+ > **NOTE:** Available since v1.237.0.
190
+
191
+ ## Example Usage
192
+
193
+ Basic Usage
194
+
195
+ ```python
196
+ import pulumi
197
+ import pulumi_alicloud as alicloud
198
+
199
+ default = alicloud.arms.AlertRobot("default",
200
+ alert_robot_name="my-AlertRobot",
201
+ robot_type="wechat",
202
+ robot_addr="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1c704e23")
203
+ name_regex = alicloud.arms.get_alert_robots_output(alert_robot_name=default.alert_robot_name)
204
+ pulumi.export("armsAlertRobotId", name_regex.robots[0].id)
205
+ ```
206
+
207
+
208
+ :param str alert_robot_name: The robot name.
209
+ :param Sequence[str] ids: A list of Alert Robot IDs.
210
+ :param str name_regex: A regex string to filter results by Alert Robot name.
211
+ :param str output_file: File name where to save data source results (after running `pulumi preview`).
212
+ :param str robot_type: The robot type.
213
+ """
214
+ __args__ = dict()
215
+ __args__['alertRobotName'] = alert_robot_name
216
+ __args__['ids'] = ids
217
+ __args__['nameRegex'] = name_regex
218
+ __args__['outputFile'] = output_file
219
+ __args__['robotType'] = robot_type
220
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
221
+ __ret__ = pulumi.runtime.invoke_output('alicloud:arms/getAlertRobots:getAlertRobots', __args__, opts=opts, typ=GetAlertRobotsResult)
222
+ return __ret__.apply(lambda __response__: GetAlertRobotsResult(
223
+ alert_robot_name=pulumi.get(__response__, 'alert_robot_name'),
224
+ id=pulumi.get(__response__, 'id'),
225
+ ids=pulumi.get(__response__, 'ids'),
226
+ name_regex=pulumi.get(__response__, 'name_regex'),
227
+ names=pulumi.get(__response__, 'names'),
228
+ output_file=pulumi.get(__response__, 'output_file'),
229
+ robot_type=pulumi.get(__response__, 'robot_type'),
230
+ robots=pulumi.get(__response__, 'robots')))