pulumi-alicloud 3.73.0a1736850863__py3-none-any.whl → 3.74.0a1737090935__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 (78) hide show
  1. pulumi_alicloud/__init__.py +59 -0
  2. pulumi_alicloud/alb/__init__.py +1 -0
  3. pulumi_alicloud/alb/_inputs.py +6 -6
  4. pulumi_alicloud/alb/a_script.py +116 -98
  5. pulumi_alicloud/alb/load_balancer_access_log_config_attachment.py +303 -0
  6. pulumi_alicloud/alb/outputs.py +4 -4
  7. pulumi_alicloud/alikafka/instance.py +188 -70
  8. pulumi_alicloud/amqp/instance.py +77 -28
  9. pulumi_alicloud/bastionhost/_inputs.py +40 -38
  10. pulumi_alicloud/bastionhost/get_instances.py +6 -22
  11. pulumi_alicloud/bastionhost/outputs.py +60 -49
  12. pulumi_alicloud/cen/instance_grant.py +4 -0
  13. pulumi_alicloud/cloudcontrol/__init__.py +12 -0
  14. pulumi_alicloud/cloudcontrol/get_prices.py +199 -0
  15. pulumi_alicloud/cloudcontrol/get_products.py +187 -0
  16. pulumi_alicloud/cloudcontrol/get_resource_types.py +178 -0
  17. pulumi_alicloud/cloudcontrol/outputs.py +688 -0
  18. pulumi_alicloud/cloudcontrol/resource.py +407 -0
  19. pulumi_alicloud/cms/_inputs.py +21 -15
  20. pulumi_alicloud/cms/alarm.py +7 -7
  21. pulumi_alicloud/cms/outputs.py +14 -10
  22. pulumi_alicloud/cs/get_edge_kubernetes_clusters.py +4 -2
  23. pulumi_alicloud/cs/get_managed_kubernetes_clusters.py +2 -0
  24. pulumi_alicloud/cs/kubernetes.py +14 -14
  25. pulumi_alicloud/cs/managed_kubernetes.py +137 -47
  26. pulumi_alicloud/dataworks/__init__.py +4 -0
  27. pulumi_alicloud/dataworks/_inputs.py +1534 -0
  28. pulumi_alicloud/dataworks/di_alarm_rule.py +708 -0
  29. pulumi_alicloud/dataworks/di_job.py +1005 -0
  30. pulumi_alicloud/dataworks/dw_resource_group.py +703 -0
  31. pulumi_alicloud/dataworks/network.py +331 -0
  32. pulumi_alicloud/dataworks/outputs.py +1247 -0
  33. pulumi_alicloud/dcdn/waf_rule.py +14 -14
  34. pulumi_alicloud/dns/get_alidns_domains.py +7 -2
  35. pulumi_alicloud/dns/outputs.py +8 -0
  36. pulumi_alicloud/ecs/ecs_launch_template.py +122 -0
  37. pulumi_alicloud/ecs/ecs_network_interface.py +14 -14
  38. pulumi_alicloud/ecs/ecs_session_manager_status.py +18 -18
  39. pulumi_alicloud/ecs/instance.py +7 -7
  40. pulumi_alicloud/ecs/launch_template.py +88 -0
  41. pulumi_alicloud/fc/custom_domain.py +2 -2
  42. pulumi_alicloud/fc/function.py +32 -4
  43. pulumi_alicloud/fc/v2_function.py +20 -0
  44. pulumi_alicloud/hbr/__init__.py +1 -0
  45. pulumi_alicloud/hbr/cross_account.py +338 -0
  46. pulumi_alicloud/ims/oidc_provider.py +28 -0
  47. pulumi_alicloud/log/resource_record.py +42 -26
  48. pulumi_alicloud/message/service_queue.py +106 -59
  49. pulumi_alicloud/message/service_topic.py +182 -37
  50. pulumi_alicloud/mongodb/account.py +138 -163
  51. pulumi_alicloud/oos/secret_parameter.py +84 -9
  52. pulumi_alicloud/oss/bucket.py +1 -1
  53. pulumi_alicloud/oss/bucket_policy.py +2 -4
  54. pulumi_alicloud/oss/bucket_referer.py +2 -4
  55. pulumi_alicloud/oss/get_buckets.py +16 -2
  56. pulumi_alicloud/oss/outputs.py +18 -17
  57. pulumi_alicloud/pulumi-plugin.json +1 -1
  58. pulumi_alicloud/sae/application.py +84 -7
  59. pulumi_alicloud/sls/collection_policy.py +2 -2
  60. pulumi_alicloud/vpc/__init__.py +5 -0
  61. pulumi_alicloud/vpc/get_ipam_ipam_pool_allocations.py +295 -0
  62. pulumi_alicloud/vpc/get_ipam_ipam_pool_cidrs.py +196 -0
  63. pulumi_alicloud/vpc/get_ipam_ipam_pools.py +353 -0
  64. pulumi_alicloud/vpc/get_ipam_ipam_scopes.py +333 -0
  65. pulumi_alicloud/vpc/get_ipam_ipams.py +291 -0
  66. pulumi_alicloud/vpc/get_networks.py +3 -0
  67. pulumi_alicloud/vpc/nat_gateway.py +145 -7
  68. pulumi_alicloud/vpc/outputs.py +777 -0
  69. pulumi_alicloud/vpc/snat_entry.py +107 -48
  70. pulumi_alicloud/vpn/_inputs.py +96 -72
  71. pulumi_alicloud/vpn/connection.py +24 -28
  72. pulumi_alicloud/vpn/outputs.py +64 -48
  73. pulumi_alicloud/yundun/_inputs.py +26 -24
  74. pulumi_alicloud/yundun/outputs.py +37 -22
  75. {pulumi_alicloud-3.73.0a1736850863.dist-info → pulumi_alicloud-3.74.0a1737090935.dist-info}/METADATA +1 -1
  76. {pulumi_alicloud-3.73.0a1736850863.dist-info → pulumi_alicloud-3.74.0a1737090935.dist-info}/RECORD +78 -61
  77. {pulumi_alicloud-3.73.0a1736850863.dist-info → pulumi_alicloud-3.74.0a1737090935.dist-info}/WHEEL +0 -0
  78. {pulumi_alicloud-3.73.0a1736850863.dist-info → pulumi_alicloud-3.74.0a1737090935.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,407 @@
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__ = ['ResourceArgs', 'Resource']
18
+
19
+ @pulumi.input_type
20
+ class ResourceArgs:
21
+ def __init__(__self__, *,
22
+ product: pulumi.Input[str],
23
+ resource_code: pulumi.Input[str],
24
+ desire_attributes: Optional[pulumi.Input[str]] = None,
25
+ resource_id: Optional[pulumi.Input[str]] = None):
26
+ """
27
+ The set of arguments for constructing a Resource resource.
28
+ :param pulumi.Input[str] product: The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
29
+ :param pulumi.Input[str] resource_code: Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
30
+ :param pulumi.Input[str] desire_attributes: Resource attributes specified when a user creates or updates a resource.
31
+ :param pulumi.Input[str] resource_id: If there is a parent resource, you need to enter the id of the parent resource, for example, in the VPC::VSwtich resource, you need to enter the id of the VPC: vpc-dexadfe3r4ad. If there are more than one level of parent resources, you need to use `:` to split.
32
+ """
33
+ pulumi.set(__self__, "product", product)
34
+ pulumi.set(__self__, "resource_code", resource_code)
35
+ if desire_attributes is not None:
36
+ pulumi.set(__self__, "desire_attributes", desire_attributes)
37
+ if resource_id is not None:
38
+ pulumi.set(__self__, "resource_id", resource_id)
39
+
40
+ @property
41
+ @pulumi.getter
42
+ def product(self) -> pulumi.Input[str]:
43
+ """
44
+ The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
45
+ """
46
+ return pulumi.get(self, "product")
47
+
48
+ @product.setter
49
+ def product(self, value: pulumi.Input[str]):
50
+ pulumi.set(self, "product", value)
51
+
52
+ @property
53
+ @pulumi.getter(name="resourceCode")
54
+ def resource_code(self) -> pulumi.Input[str]:
55
+ """
56
+ Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
57
+ """
58
+ return pulumi.get(self, "resource_code")
59
+
60
+ @resource_code.setter
61
+ def resource_code(self, value: pulumi.Input[str]):
62
+ pulumi.set(self, "resource_code", value)
63
+
64
+ @property
65
+ @pulumi.getter(name="desireAttributes")
66
+ def desire_attributes(self) -> Optional[pulumi.Input[str]]:
67
+ """
68
+ Resource attributes specified when a user creates or updates a resource.
69
+ """
70
+ return pulumi.get(self, "desire_attributes")
71
+
72
+ @desire_attributes.setter
73
+ def desire_attributes(self, value: Optional[pulumi.Input[str]]):
74
+ pulumi.set(self, "desire_attributes", value)
75
+
76
+ @property
77
+ @pulumi.getter(name="resourceId")
78
+ def resource_id(self) -> Optional[pulumi.Input[str]]:
79
+ """
80
+ If there is a parent resource, you need to enter the id of the parent resource, for example, in the VPC::VSwtich resource, you need to enter the id of the VPC: vpc-dexadfe3r4ad. If there are more than one level of parent resources, you need to use `:` to split.
81
+ """
82
+ return pulumi.get(self, "resource_id")
83
+
84
+ @resource_id.setter
85
+ def resource_id(self, value: Optional[pulumi.Input[str]]):
86
+ pulumi.set(self, "resource_id", value)
87
+
88
+
89
+ @pulumi.input_type
90
+ class _ResourceState:
91
+ def __init__(__self__, *,
92
+ desire_attributes: Optional[pulumi.Input[str]] = None,
93
+ product: Optional[pulumi.Input[str]] = None,
94
+ resource_attributes: Optional[pulumi.Input[str]] = None,
95
+ resource_code: Optional[pulumi.Input[str]] = None,
96
+ resource_id: Optional[pulumi.Input[str]] = None):
97
+ """
98
+ Input properties used for looking up and filtering Resource resources.
99
+ :param pulumi.Input[str] desire_attributes: Resource attributes specified when a user creates or updates a resource.
100
+ :param pulumi.Input[str] product: The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
101
+ :param pulumi.Input[str] resource_attributes: The collection of properties for the resource.
102
+ :param pulumi.Input[str] resource_code: Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
103
+ :param pulumi.Input[str] resource_id: If there is a parent resource, you need to enter the id of the parent resource, for example, in the VPC::VSwtich resource, you need to enter the id of the VPC: vpc-dexadfe3r4ad. If there are more than one level of parent resources, you need to use `:` to split.
104
+ """
105
+ if desire_attributes is not None:
106
+ pulumi.set(__self__, "desire_attributes", desire_attributes)
107
+ if product is not None:
108
+ pulumi.set(__self__, "product", product)
109
+ if resource_attributes is not None:
110
+ pulumi.set(__self__, "resource_attributes", resource_attributes)
111
+ if resource_code is not None:
112
+ pulumi.set(__self__, "resource_code", resource_code)
113
+ if resource_id is not None:
114
+ pulumi.set(__self__, "resource_id", resource_id)
115
+
116
+ @property
117
+ @pulumi.getter(name="desireAttributes")
118
+ def desire_attributes(self) -> Optional[pulumi.Input[str]]:
119
+ """
120
+ Resource attributes specified when a user creates or updates a resource.
121
+ """
122
+ return pulumi.get(self, "desire_attributes")
123
+
124
+ @desire_attributes.setter
125
+ def desire_attributes(self, value: Optional[pulumi.Input[str]]):
126
+ pulumi.set(self, "desire_attributes", value)
127
+
128
+ @property
129
+ @pulumi.getter
130
+ def product(self) -> Optional[pulumi.Input[str]]:
131
+ """
132
+ The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
133
+ """
134
+ return pulumi.get(self, "product")
135
+
136
+ @product.setter
137
+ def product(self, value: Optional[pulumi.Input[str]]):
138
+ pulumi.set(self, "product", value)
139
+
140
+ @property
141
+ @pulumi.getter(name="resourceAttributes")
142
+ def resource_attributes(self) -> Optional[pulumi.Input[str]]:
143
+ """
144
+ The collection of properties for the resource.
145
+ """
146
+ return pulumi.get(self, "resource_attributes")
147
+
148
+ @resource_attributes.setter
149
+ def resource_attributes(self, value: Optional[pulumi.Input[str]]):
150
+ pulumi.set(self, "resource_attributes", value)
151
+
152
+ @property
153
+ @pulumi.getter(name="resourceCode")
154
+ def resource_code(self) -> Optional[pulumi.Input[str]]:
155
+ """
156
+ Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
157
+ """
158
+ return pulumi.get(self, "resource_code")
159
+
160
+ @resource_code.setter
161
+ def resource_code(self, value: Optional[pulumi.Input[str]]):
162
+ pulumi.set(self, "resource_code", value)
163
+
164
+ @property
165
+ @pulumi.getter(name="resourceId")
166
+ def resource_id(self) -> Optional[pulumi.Input[str]]:
167
+ """
168
+ If there is a parent resource, you need to enter the id of the parent resource, for example, in the VPC::VSwtich resource, you need to enter the id of the VPC: vpc-dexadfe3r4ad. If there are more than one level of parent resources, you need to use `:` to split.
169
+ """
170
+ return pulumi.get(self, "resource_id")
171
+
172
+ @resource_id.setter
173
+ def resource_id(self, value: Optional[pulumi.Input[str]]):
174
+ pulumi.set(self, "resource_id", value)
175
+
176
+
177
+ class Resource(pulumi.CustomResource):
178
+ @overload
179
+ def __init__(__self__,
180
+ resource_name: str,
181
+ opts: Optional[pulumi.ResourceOptions] = None,
182
+ desire_attributes: Optional[pulumi.Input[str]] = None,
183
+ product: Optional[pulumi.Input[str]] = None,
184
+ resource_code: Optional[pulumi.Input[str]] = None,
185
+ resource_id: Optional[pulumi.Input[str]] = None,
186
+ __props__=None):
187
+ """
188
+ Provides a Cloud Control Resource resource.
189
+
190
+ For information about Cloud Control Resource and how to use it, see [What is Resource](https://www.alibabacloud.com/help/en/).
191
+
192
+ > **NOTE:** Available since v1.241.0.
193
+
194
+ ## Example Usage
195
+
196
+ Basic Usage
197
+
198
+ ```python
199
+ import pulumi
200
+ import json
201
+ import pulumi_alicloud as alicloud
202
+
203
+ config = pulumi.Config()
204
+ name = config.get("name")
205
+ if name is None:
206
+ name = "terraform-example"
207
+ mq_instance = alicloud.cloudcontrol.Resource("mq_instance",
208
+ desire_attributes=json.dumps({
209
+ "InstanceName": "terraform-example-ons-instance",
210
+ }),
211
+ product="Ons",
212
+ resource_code="Instance")
213
+ default = alicloud.cloudcontrol.Resource("default",
214
+ product="Ons",
215
+ resource_code="Instance::Topic",
216
+ resource_id=mq_instance.resource_id,
217
+ desire_attributes=pulumi.Output.json_dumps({
218
+ "InstanceId": mq_instance.resource_id,
219
+ "TopicName": "terraform-example-ons-topic",
220
+ "MessageType": "1",
221
+ }))
222
+ ```
223
+
224
+ ## Import
225
+
226
+ Cloud Control Resource can be imported using the id, e.g.
227
+
228
+ ```sh
229
+ $ pulumi import alicloud:cloudcontrol/resource:Resource example <provider>:<product>:<resource_code>:<resource_id>
230
+ ```
231
+
232
+ :param str resource_name: The name of the resource.
233
+ :param pulumi.ResourceOptions opts: Options for the resource.
234
+ :param pulumi.Input[str] desire_attributes: Resource attributes specified when a user creates or updates a resource.
235
+ :param pulumi.Input[str] product: The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
236
+ :param pulumi.Input[str] resource_code: Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
237
+ :param pulumi.Input[str] resource_id: If there is a parent resource, you need to enter the id of the parent resource, for example, in the VPC::VSwtich resource, you need to enter the id of the VPC: vpc-dexadfe3r4ad. If there are more than one level of parent resources, you need to use `:` to split.
238
+ """
239
+ ...
240
+ @overload
241
+ def __init__(__self__,
242
+ resource_name: str,
243
+ args: ResourceArgs,
244
+ opts: Optional[pulumi.ResourceOptions] = None):
245
+ """
246
+ Provides a Cloud Control Resource resource.
247
+
248
+ For information about Cloud Control Resource and how to use it, see [What is Resource](https://www.alibabacloud.com/help/en/).
249
+
250
+ > **NOTE:** Available since v1.241.0.
251
+
252
+ ## Example Usage
253
+
254
+ Basic Usage
255
+
256
+ ```python
257
+ import pulumi
258
+ import json
259
+ import pulumi_alicloud as alicloud
260
+
261
+ config = pulumi.Config()
262
+ name = config.get("name")
263
+ if name is None:
264
+ name = "terraform-example"
265
+ mq_instance = alicloud.cloudcontrol.Resource("mq_instance",
266
+ desire_attributes=json.dumps({
267
+ "InstanceName": "terraform-example-ons-instance",
268
+ }),
269
+ product="Ons",
270
+ resource_code="Instance")
271
+ default = alicloud.cloudcontrol.Resource("default",
272
+ product="Ons",
273
+ resource_code="Instance::Topic",
274
+ resource_id=mq_instance.resource_id,
275
+ desire_attributes=pulumi.Output.json_dumps({
276
+ "InstanceId": mq_instance.resource_id,
277
+ "TopicName": "terraform-example-ons-topic",
278
+ "MessageType": "1",
279
+ }))
280
+ ```
281
+
282
+ ## Import
283
+
284
+ Cloud Control Resource can be imported using the id, e.g.
285
+
286
+ ```sh
287
+ $ pulumi import alicloud:cloudcontrol/resource:Resource example <provider>:<product>:<resource_code>:<resource_id>
288
+ ```
289
+
290
+ :param str resource_name: The name of the resource.
291
+ :param ResourceArgs args: The arguments to use to populate this resource's properties.
292
+ :param pulumi.ResourceOptions opts: Options for the resource.
293
+ """
294
+ ...
295
+ def __init__(__self__, resource_name: str, *args, **kwargs):
296
+ resource_args, opts = _utilities.get_resource_args_opts(ResourceArgs, pulumi.ResourceOptions, *args, **kwargs)
297
+ if resource_args is not None:
298
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
299
+ else:
300
+ __self__._internal_init(resource_name, *args, **kwargs)
301
+
302
+ def _internal_init(__self__,
303
+ resource_name: str,
304
+ opts: Optional[pulumi.ResourceOptions] = None,
305
+ desire_attributes: Optional[pulumi.Input[str]] = None,
306
+ product: Optional[pulumi.Input[str]] = None,
307
+ resource_code: Optional[pulumi.Input[str]] = None,
308
+ resource_id: Optional[pulumi.Input[str]] = None,
309
+ __props__=None):
310
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
311
+ if not isinstance(opts, pulumi.ResourceOptions):
312
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
313
+ if opts.id is None:
314
+ if __props__ is not None:
315
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
316
+ __props__ = ResourceArgs.__new__(ResourceArgs)
317
+
318
+ __props__.__dict__["desire_attributes"] = None if desire_attributes is None else pulumi.Output.secret(desire_attributes)
319
+ if product is None and not opts.urn:
320
+ raise TypeError("Missing required property 'product'")
321
+ __props__.__dict__["product"] = product
322
+ if resource_code is None and not opts.urn:
323
+ raise TypeError("Missing required property 'resource_code'")
324
+ __props__.__dict__["resource_code"] = resource_code
325
+ __props__.__dict__["resource_id"] = resource_id
326
+ __props__.__dict__["resource_attributes"] = None
327
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["desireAttributes"])
328
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
329
+ super(Resource, __self__).__init__(
330
+ 'alicloud:cloudcontrol/resource:Resource',
331
+ resource_name,
332
+ __props__,
333
+ opts)
334
+
335
+ @staticmethod
336
+ def get(resource_name: str,
337
+ id: pulumi.Input[str],
338
+ opts: Optional[pulumi.ResourceOptions] = None,
339
+ desire_attributes: Optional[pulumi.Input[str]] = None,
340
+ product: Optional[pulumi.Input[str]] = None,
341
+ resource_attributes: Optional[pulumi.Input[str]] = None,
342
+ resource_code: Optional[pulumi.Input[str]] = None,
343
+ resource_id: Optional[pulumi.Input[str]] = None) -> 'Resource':
344
+ """
345
+ Get an existing Resource resource's state with the given name, id, and optional extra
346
+ properties used to qualify the lookup.
347
+
348
+ :param str resource_name: The unique name of the resulting resource.
349
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
350
+ :param pulumi.ResourceOptions opts: Options for the resource.
351
+ :param pulumi.Input[str] desire_attributes: Resource attributes specified when a user creates or updates a resource.
352
+ :param pulumi.Input[str] product: The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
353
+ :param pulumi.Input[str] resource_attributes: The collection of properties for the resource.
354
+ :param pulumi.Input[str] resource_code: Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
355
+ :param pulumi.Input[str] resource_id: If there is a parent resource, you need to enter the id of the parent resource, for example, in the VPC::VSwtich resource, you need to enter the id of the VPC: vpc-dexadfe3r4ad. If there are more than one level of parent resources, you need to use `:` to split.
356
+ """
357
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
358
+
359
+ __props__ = _ResourceState.__new__(_ResourceState)
360
+
361
+ __props__.__dict__["desire_attributes"] = desire_attributes
362
+ __props__.__dict__["product"] = product
363
+ __props__.__dict__["resource_attributes"] = resource_attributes
364
+ __props__.__dict__["resource_code"] = resource_code
365
+ __props__.__dict__["resource_id"] = resource_id
366
+ return Resource(resource_name, opts=opts, __props__=__props__)
367
+
368
+ @property
369
+ @pulumi.getter(name="desireAttributes")
370
+ def desire_attributes(self) -> pulumi.Output[Optional[str]]:
371
+ """
372
+ Resource attributes specified when a user creates or updates a resource.
373
+ """
374
+ return pulumi.get(self, "desire_attributes")
375
+
376
+ @property
377
+ @pulumi.getter
378
+ def product(self) -> pulumi.Output[str]:
379
+ """
380
+ The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
381
+ """
382
+ return pulumi.get(self, "product")
383
+
384
+ @property
385
+ @pulumi.getter(name="resourceAttributes")
386
+ def resource_attributes(self) -> pulumi.Output[str]:
387
+ """
388
+ The collection of properties for the resource.
389
+ """
390
+ return pulumi.get(self, "resource_attributes")
391
+
392
+ @property
393
+ @pulumi.getter(name="resourceCode")
394
+ def resource_code(self) -> pulumi.Output[str]:
395
+ """
396
+ Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
397
+ """
398
+ return pulumi.get(self, "resource_code")
399
+
400
+ @property
401
+ @pulumi.getter(name="resourceId")
402
+ def resource_id(self) -> pulumi.Output[str]:
403
+ """
404
+ If there is a parent resource, you need to enter the id of the parent resource, for example, in the VPC::VSwtich resource, you need to enter the id of the VPC: vpc-dexadfe3r4ad. If there are more than one level of parent resources, you need to use `:` to split.
405
+ """
406
+ return pulumi.get(self, "resource_id")
407
+
@@ -680,13 +680,15 @@ if not MYPY:
680
680
  class AlarmTargetArgsDict(TypedDict):
681
681
  arn: NotRequired[pulumi.Input[str]]
682
682
  """
683
- ARN uniquely identifies the resource that the alert targets.
684
- > **NOTE:** The targets attribute is used to specify where notifications or actions should be directed when an alarm condition is met. This attribute corresponds to what is referred to as the "Push Channel" in the Alibaba Cloud console.
685
- > **NOTE:** Currently, the Alibaba Cloud Resource Name (ARN) of the resource. To use, please [submit an application](https://www.alibabacloud.com/help/en/cloudmonitor/latest/describemetricruletargets).
683
+ The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS) (SMQ), Auto Scaling, Simple Log Service, and Function Compute are supported:
684
+ - SMQ: `acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. {regionId}: the region ID of the SMQ queue or topic. {userId}: the ID of the Alibaba Cloud account that owns the resource. {Resource type}: the type of the resource for which alerts are triggered. Valid values:queues, topics. {Resource name}: the resource name. If the resource type is queues, the resource name is the queue name. If the resource type is topics, the resource name is the topic name.
685
+ - Auto Scaling: `acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID}`
686
+ - Simple Log Service: `acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name}`
687
+ - Function Compute: `acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name}`
686
688
  """
687
689
  json_params: NotRequired[pulumi.Input[str]]
688
690
  """
689
- Specifies additional parameters for the alert callback in JSON format. This can include configuration settings specific to the alert action.
691
+ The parameters of the alert callback. The parameters are in the JSON format.
690
692
  """
691
693
  level: NotRequired[pulumi.Input[str]]
692
694
  """
@@ -694,7 +696,7 @@ if not MYPY:
694
696
  """
695
697
  target_id: NotRequired[pulumi.Input[str]]
696
698
  """
697
- The ID of the resource for which alerts are triggered. This is typically used to specify individual resources that should respond to the alert.
699
+ The ID of the resource for which alerts are triggered. For more information about how to obtain the ID of the resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://www.alibabacloud.com/help/en/cms/developer-reference/api-describemetricruletargets) .
698
700
  """
699
701
  elif False:
700
702
  AlarmTargetArgsDict: TypeAlias = Mapping[str, Any]
@@ -707,12 +709,14 @@ class AlarmTargetArgs:
707
709
  level: Optional[pulumi.Input[str]] = None,
708
710
  target_id: Optional[pulumi.Input[str]] = None):
709
711
  """
710
- :param pulumi.Input[str] arn: ARN uniquely identifies the resource that the alert targets.
711
- > **NOTE:** The targets attribute is used to specify where notifications or actions should be directed when an alarm condition is met. This attribute corresponds to what is referred to as the "Push Channel" in the Alibaba Cloud console.
712
- > **NOTE:** Currently, the Alibaba Cloud Resource Name (ARN) of the resource. To use, please [submit an application](https://www.alibabacloud.com/help/en/cloudmonitor/latest/describemetricruletargets).
713
- :param pulumi.Input[str] json_params: Specifies additional parameters for the alert callback in JSON format. This can include configuration settings specific to the alert action.
712
+ :param pulumi.Input[str] arn: The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS) (SMQ), Auto Scaling, Simple Log Service, and Function Compute are supported:
713
+ - SMQ: `acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. {regionId}: the region ID of the SMQ queue or topic. {userId}: the ID of the Alibaba Cloud account that owns the resource. {Resource type}: the type of the resource for which alerts are triggered. Valid values:queues, topics. {Resource name}: the resource name. If the resource type is queues, the resource name is the queue name. If the resource type is topics, the resource name is the topic name.
714
+ - Auto Scaling: `acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID}`
715
+ - Simple Log Service: `acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name}`
716
+ - Function Compute: `acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name}`
717
+ :param pulumi.Input[str] json_params: The parameters of the alert callback. The parameters are in the JSON format.
714
718
  :param pulumi.Input[str] level: The level of the alert. Valid values: `Critical`, `Warn`, `Info`.
715
- :param pulumi.Input[str] target_id: The ID of the resource for which alerts are triggered. This is typically used to specify individual resources that should respond to the alert.
719
+ :param pulumi.Input[str] target_id: The ID of the resource for which alerts are triggered. For more information about how to obtain the ID of the resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://www.alibabacloud.com/help/en/cms/developer-reference/api-describemetricruletargets) .
716
720
  """
717
721
  if arn is not None:
718
722
  pulumi.set(__self__, "arn", arn)
@@ -727,9 +731,11 @@ class AlarmTargetArgs:
727
731
  @pulumi.getter
728
732
  def arn(self) -> Optional[pulumi.Input[str]]:
729
733
  """
730
- ARN uniquely identifies the resource that the alert targets.
731
- > **NOTE:** The targets attribute is used to specify where notifications or actions should be directed when an alarm condition is met. This attribute corresponds to what is referred to as the "Push Channel" in the Alibaba Cloud console.
732
- > **NOTE:** Currently, the Alibaba Cloud Resource Name (ARN) of the resource. To use, please [submit an application](https://www.alibabacloud.com/help/en/cloudmonitor/latest/describemetricruletargets).
734
+ The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS) (SMQ), Auto Scaling, Simple Log Service, and Function Compute are supported:
735
+ - SMQ: `acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. {regionId}: the region ID of the SMQ queue or topic. {userId}: the ID of the Alibaba Cloud account that owns the resource. {Resource type}: the type of the resource for which alerts are triggered. Valid values:queues, topics. {Resource name}: the resource name. If the resource type is queues, the resource name is the queue name. If the resource type is topics, the resource name is the topic name.
736
+ - Auto Scaling: `acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID}`
737
+ - Simple Log Service: `acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name}`
738
+ - Function Compute: `acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name}`
733
739
  """
734
740
  return pulumi.get(self, "arn")
735
741
 
@@ -741,7 +747,7 @@ class AlarmTargetArgs:
741
747
  @pulumi.getter(name="jsonParams")
742
748
  def json_params(self) -> Optional[pulumi.Input[str]]:
743
749
  """
744
- Specifies additional parameters for the alert callback in JSON format. This can include configuration settings specific to the alert action.
750
+ The parameters of the alert callback. The parameters are in the JSON format.
745
751
  """
746
752
  return pulumi.get(self, "json_params")
747
753
 
@@ -765,7 +771,7 @@ class AlarmTargetArgs:
765
771
  @pulumi.getter(name="targetId")
766
772
  def target_id(self) -> Optional[pulumi.Input[str]]:
767
773
  """
768
- The ID of the resource for which alerts are triggered. This is typically used to specify individual resources that should respond to the alert.
774
+ The ID of the resource for which alerts are triggered. For more information about how to obtain the ID of the resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://www.alibabacloud.com/help/en/cms/developer-reference/api-describemetricruletargets) .
769
775
  """
770
776
  return pulumi.get(self, "target_id")
771
777
 
@@ -62,7 +62,7 @@ class AlarmArgs:
62
62
  :param pulumi.Input[int] silence_time: Notification silence period in the alarm state, in seconds. Default value: `86400`. Valid value range: [300, 86400].
63
63
  :param pulumi.Input[int] start_time: Field `start_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
64
64
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
65
- :param pulumi.Input[Sequence[pulumi.Input['AlarmTargetArgs']]] targets: The information about the resource for which alerts are triggered. See `targets` below.
65
+ :param pulumi.Input[Sequence[pulumi.Input['AlarmTargetArgs']]] targets: Adds or modifies the push channels of an alert rule. See `targets` below.
66
66
  :param pulumi.Input[str] webhook: The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
67
67
  """
68
68
  pulumi.set(__self__, "contact_groups", contact_groups)
@@ -336,7 +336,7 @@ class AlarmArgs:
336
336
  @pulumi.getter
337
337
  def targets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlarmTargetArgs']]]]:
338
338
  """
339
- The information about the resource for which alerts are triggered. See `targets` below.
339
+ Adds or modifies the push channels of an alert rule. See `targets` below.
340
340
  """
341
341
  return pulumi.get(self, "targets")
342
342
 
@@ -403,7 +403,7 @@ class _AlarmState:
403
403
  :param pulumi.Input[int] start_time: Field `start_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
404
404
  :param pulumi.Input[str] status: The status of the Alarm.
405
405
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
406
- :param pulumi.Input[Sequence[pulumi.Input['AlarmTargetArgs']]] targets: The information about the resource for which alerts are triggered. See `targets` below.
406
+ :param pulumi.Input[Sequence[pulumi.Input['AlarmTargetArgs']]] targets: Adds or modifies the push channels of an alert rule. See `targets` below.
407
407
  :param pulumi.Input[str] webhook: The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
408
408
  """
409
409
  if composite_expression is not None:
@@ -694,7 +694,7 @@ class _AlarmState:
694
694
  @pulumi.getter
695
695
  def targets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlarmTargetArgs']]]]:
696
696
  """
697
- The information about the resource for which alerts are triggered. See `targets` below.
697
+ Adds or modifies the push channels of an alert rule. See `targets` below.
698
698
  """
699
699
  return pulumi.get(self, "targets")
700
700
 
@@ -836,7 +836,7 @@ class Alarm(pulumi.CustomResource):
836
836
  :param pulumi.Input[int] silence_time: Notification silence period in the alarm state, in seconds. Default value: `86400`. Valid value range: [300, 86400].
837
837
  :param pulumi.Input[int] start_time: Field `start_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
838
838
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
839
- :param pulumi.Input[Sequence[pulumi.Input[Union['AlarmTargetArgs', 'AlarmTargetArgsDict']]]] targets: The information about the resource for which alerts are triggered. See `targets` below.
839
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AlarmTargetArgs', 'AlarmTargetArgsDict']]]] targets: Adds or modifies the push channels of an alert rule. See `targets` below.
840
840
  :param pulumi.Input[str] webhook: The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
841
841
  """
842
842
  ...
@@ -1048,7 +1048,7 @@ class Alarm(pulumi.CustomResource):
1048
1048
  :param pulumi.Input[int] start_time: Field `start_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
1049
1049
  :param pulumi.Input[str] status: The status of the Alarm.
1050
1050
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
1051
- :param pulumi.Input[Sequence[pulumi.Input[Union['AlarmTargetArgs', 'AlarmTargetArgsDict']]]] targets: The information about the resource for which alerts are triggered. See `targets` below.
1051
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AlarmTargetArgs', 'AlarmTargetArgsDict']]]] targets: Adds or modifies the push channels of an alert rule. See `targets` below.
1052
1052
  :param pulumi.Input[str] webhook: The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
1053
1053
  """
1054
1054
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -1238,7 +1238,7 @@ class Alarm(pulumi.CustomResource):
1238
1238
  @pulumi.getter
1239
1239
  def targets(self) -> pulumi.Output[Sequence['outputs.AlarmTarget']]:
1240
1240
  """
1241
- The information about the resource for which alerts are triggered. See `targets` below.
1241
+ Adds or modifies the push channels of an alert rule. See `targets` below.
1242
1242
  """
1243
1243
  return pulumi.get(self, "targets")
1244
1244
 
@@ -579,12 +579,14 @@ class AlarmTarget(dict):
579
579
  level: Optional[str] = None,
580
580
  target_id: Optional[str] = None):
581
581
  """
582
- :param str arn: ARN uniquely identifies the resource that the alert targets.
583
- > **NOTE:** The targets attribute is used to specify where notifications or actions should be directed when an alarm condition is met. This attribute corresponds to what is referred to as the "Push Channel" in the Alibaba Cloud console.
584
- > **NOTE:** Currently, the Alibaba Cloud Resource Name (ARN) of the resource. To use, please [submit an application](https://www.alibabacloud.com/help/en/cloudmonitor/latest/describemetricruletargets).
585
- :param str json_params: Specifies additional parameters for the alert callback in JSON format. This can include configuration settings specific to the alert action.
582
+ :param str arn: The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS) (SMQ), Auto Scaling, Simple Log Service, and Function Compute are supported:
583
+ - SMQ: `acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. {regionId}: the region ID of the SMQ queue or topic. {userId}: the ID of the Alibaba Cloud account that owns the resource. {Resource type}: the type of the resource for which alerts are triggered. Valid values:queues, topics. {Resource name}: the resource name. If the resource type is queues, the resource name is the queue name. If the resource type is topics, the resource name is the topic name.
584
+ - Auto Scaling: `acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID}`
585
+ - Simple Log Service: `acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name}`
586
+ - Function Compute: `acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name}`
587
+ :param str json_params: The parameters of the alert callback. The parameters are in the JSON format.
586
588
  :param str level: The level of the alert. Valid values: `Critical`, `Warn`, `Info`.
587
- :param str target_id: The ID of the resource for which alerts are triggered. This is typically used to specify individual resources that should respond to the alert.
589
+ :param str target_id: The ID of the resource for which alerts are triggered. For more information about how to obtain the ID of the resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://www.alibabacloud.com/help/en/cms/developer-reference/api-describemetricruletargets) .
588
590
  """
589
591
  if arn is not None:
590
592
  pulumi.set(__self__, "arn", arn)
@@ -599,9 +601,11 @@ class AlarmTarget(dict):
599
601
  @pulumi.getter
600
602
  def arn(self) -> Optional[str]:
601
603
  """
602
- ARN uniquely identifies the resource that the alert targets.
603
- > **NOTE:** The targets attribute is used to specify where notifications or actions should be directed when an alarm condition is met. This attribute corresponds to what is referred to as the "Push Channel" in the Alibaba Cloud console.
604
- > **NOTE:** Currently, the Alibaba Cloud Resource Name (ARN) of the resource. To use, please [submit an application](https://www.alibabacloud.com/help/en/cloudmonitor/latest/describemetricruletargets).
604
+ The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS) (SMQ), Auto Scaling, Simple Log Service, and Function Compute are supported:
605
+ - SMQ: `acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. {regionId}: the region ID of the SMQ queue or topic. {userId}: the ID of the Alibaba Cloud account that owns the resource. {Resource type}: the type of the resource for which alerts are triggered. Valid values:queues, topics. {Resource name}: the resource name. If the resource type is queues, the resource name is the queue name. If the resource type is topics, the resource name is the topic name.
606
+ - Auto Scaling: `acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID}`
607
+ - Simple Log Service: `acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name}`
608
+ - Function Compute: `acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name}`
605
609
  """
606
610
  return pulumi.get(self, "arn")
607
611
 
@@ -609,7 +613,7 @@ class AlarmTarget(dict):
609
613
  @pulumi.getter(name="jsonParams")
610
614
  def json_params(self) -> Optional[str]:
611
615
  """
612
- Specifies additional parameters for the alert callback in JSON format. This can include configuration settings specific to the alert action.
616
+ The parameters of the alert callback. The parameters are in the JSON format.
613
617
  """
614
618
  return pulumi.get(self, "json_params")
615
619
 
@@ -625,7 +629,7 @@ class AlarmTarget(dict):
625
629
  @pulumi.getter(name="targetId")
626
630
  def target_id(self) -> Optional[str]:
627
631
  """
628
- The ID of the resource for which alerts are triggered. This is typically used to specify individual resources that should respond to the alert.
632
+ The ID of the resource for which alerts are triggered. For more information about how to obtain the ID of the resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://www.alibabacloud.com/help/en/cms/developer-reference/api-describemetricruletargets) .
629
633
  """
630
634
  return pulumi.get(self, "target_id")
631
635