pulumi-alicloud 3.79.0a1747891356__py3-none-any.whl → 3.79.0a1748578459__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 (48) hide show
  1. pulumi_alicloud/__init__.py +40 -0
  2. pulumi_alicloud/alb/_inputs.py +21 -105
  3. pulumi_alicloud/alb/get_load_balancers.py +169 -18
  4. pulumi_alicloud/alb/listener.py +28 -56
  5. pulumi_alicloud/alb/outputs.py +150 -105
  6. pulumi_alicloud/cs/_inputs.py +54 -0
  7. pulumi_alicloud/cs/get_kubernetes_version.py +4 -4
  8. pulumi_alicloud/cs/managed_kubernetes.py +129 -7
  9. pulumi_alicloud/cs/outputs.py +49 -0
  10. pulumi_alicloud/ecs/__init__.py +1 -0
  11. pulumi_alicloud/ecs/_inputs.py +40 -0
  12. pulumi_alicloud/ecs/get_dedicated_hosts.py +49 -22
  13. pulumi_alicloud/ecs/get_instances.py +4 -3
  14. pulumi_alicloud/ecs/instance.py +94 -0
  15. pulumi_alicloud/ecs/outputs.py +129 -39
  16. pulumi_alicloud/ecs/ram_role_attachment.py +406 -0
  17. pulumi_alicloud/eflo/__init__.py +1 -0
  18. pulumi_alicloud/eflo/vsc.py +433 -0
  19. pulumi_alicloud/elasticsearch/instance.py +7 -7
  20. pulumi_alicloud/ess/outputs.py +226 -4
  21. pulumi_alicloud/expressconnect/router_vpc_association.py +56 -49
  22. pulumi_alicloud/fc/__init__.py +1 -0
  23. pulumi_alicloud/fc/get_v3_triggers.py +277 -0
  24. pulumi_alicloud/fc/outputs.py +192 -0
  25. pulumi_alicloud/lindorm/__init__.py +1 -0
  26. pulumi_alicloud/lindorm/public_network.py +288 -0
  27. pulumi_alicloud/maxcompute/project.py +2 -4
  28. pulumi_alicloud/oos/get_parameters.py +72 -28
  29. pulumi_alicloud/oos/outputs.py +10 -10
  30. pulumi_alicloud/pai/__init__.py +1 -0
  31. pulumi_alicloud/pai/workspace_user_config.py +356 -0
  32. pulumi_alicloud/polardb/cluster.py +155 -0
  33. pulumi_alicloud/pulumi-plugin.json +1 -1
  34. pulumi_alicloud/pvtz/get_zone_records.py +66 -35
  35. pulumi_alicloud/pvtz/get_zones.py +49 -32
  36. pulumi_alicloud/pvtz/outputs.py +60 -56
  37. pulumi_alicloud/ram/policy.py +21 -35
  38. pulumi_alicloud/ram/role_attachment.py +6 -2
  39. pulumi_alicloud/rds/__init__.py +1 -0
  40. pulumi_alicloud/rds/db_proxy_public.py +512 -0
  41. pulumi_alicloud/rds/instance.py +35 -35
  42. pulumi_alicloud/sls/__init__.py +1 -0
  43. pulumi_alicloud/sls/get_alerts.py +463 -0
  44. pulumi_alicloud/sls/outputs.py +975 -0
  45. {pulumi_alicloud-3.79.0a1747891356.dist-info → pulumi_alicloud-3.79.0a1748578459.dist-info}/METADATA +1 -1
  46. {pulumi_alicloud-3.79.0a1747891356.dist-info → pulumi_alicloud-3.79.0a1748578459.dist-info}/RECORD +48 -41
  47. {pulumi_alicloud-3.79.0a1747891356.dist-info → pulumi_alicloud-3.79.0a1748578459.dist-info}/WHEEL +1 -1
  48. {pulumi_alicloud-3.79.0a1747891356.dist-info → pulumi_alicloud-3.79.0a1748578459.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,512 @@
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 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
+
18
+ __all__ = ['DbProxyPublicArgs', 'DbProxyPublic']
19
+
20
+ @pulumi.input_type
21
+ class DbProxyPublicArgs:
22
+ def __init__(__self__, *,
23
+ connection_string_prefix: pulumi.Input[builtins.str],
24
+ db_instance_id: pulumi.Input[builtins.str],
25
+ db_proxy_connection_string_net_type: pulumi.Input[builtins.str],
26
+ db_proxy_endpoint_id: pulumi.Input[builtins.str],
27
+ db_proxy_new_connect_string_port: Optional[pulumi.Input[builtins.str]] = None):
28
+ """
29
+ The set of arguments for constructing a DbProxyPublic resource.
30
+ :param pulumi.Input[builtins.str] connection_string_prefix: The prefix for the new database proxy connection address can be customized.
31
+ :param pulumi.Input[builtins.str] db_instance_id: Instance ID.
32
+ :param pulumi.Input[builtins.str] db_proxy_connection_string_net_type: The network type of the new database proxy connection address,This resource defaults to Public.
33
+ :param pulumi.Input[builtins.str] db_proxy_endpoint_id: Database proxy connection address ID.
34
+ :param pulumi.Input[builtins.str] db_proxy_new_connect_string_port: The port for the new database proxy connection address is 3306 by default for MySQL and 5432 by default for PostgreSQL, which can be customized.
35
+ """
36
+ pulumi.set(__self__, "connection_string_prefix", connection_string_prefix)
37
+ pulumi.set(__self__, "db_instance_id", db_instance_id)
38
+ pulumi.set(__self__, "db_proxy_connection_string_net_type", db_proxy_connection_string_net_type)
39
+ pulumi.set(__self__, "db_proxy_endpoint_id", db_proxy_endpoint_id)
40
+ if db_proxy_new_connect_string_port is not None:
41
+ pulumi.set(__self__, "db_proxy_new_connect_string_port", db_proxy_new_connect_string_port)
42
+
43
+ @property
44
+ @pulumi.getter(name="connectionStringPrefix")
45
+ def connection_string_prefix(self) -> pulumi.Input[builtins.str]:
46
+ """
47
+ The prefix for the new database proxy connection address can be customized.
48
+ """
49
+ return pulumi.get(self, "connection_string_prefix")
50
+
51
+ @connection_string_prefix.setter
52
+ def connection_string_prefix(self, value: pulumi.Input[builtins.str]):
53
+ pulumi.set(self, "connection_string_prefix", value)
54
+
55
+ @property
56
+ @pulumi.getter(name="dbInstanceId")
57
+ def db_instance_id(self) -> pulumi.Input[builtins.str]:
58
+ """
59
+ Instance ID.
60
+ """
61
+ return pulumi.get(self, "db_instance_id")
62
+
63
+ @db_instance_id.setter
64
+ def db_instance_id(self, value: pulumi.Input[builtins.str]):
65
+ pulumi.set(self, "db_instance_id", value)
66
+
67
+ @property
68
+ @pulumi.getter(name="dbProxyConnectionStringNetType")
69
+ def db_proxy_connection_string_net_type(self) -> pulumi.Input[builtins.str]:
70
+ """
71
+ The network type of the new database proxy connection address,This resource defaults to Public.
72
+ """
73
+ return pulumi.get(self, "db_proxy_connection_string_net_type")
74
+
75
+ @db_proxy_connection_string_net_type.setter
76
+ def db_proxy_connection_string_net_type(self, value: pulumi.Input[builtins.str]):
77
+ pulumi.set(self, "db_proxy_connection_string_net_type", value)
78
+
79
+ @property
80
+ @pulumi.getter(name="dbProxyEndpointId")
81
+ def db_proxy_endpoint_id(self) -> pulumi.Input[builtins.str]:
82
+ """
83
+ Database proxy connection address ID.
84
+ """
85
+ return pulumi.get(self, "db_proxy_endpoint_id")
86
+
87
+ @db_proxy_endpoint_id.setter
88
+ def db_proxy_endpoint_id(self, value: pulumi.Input[builtins.str]):
89
+ pulumi.set(self, "db_proxy_endpoint_id", value)
90
+
91
+ @property
92
+ @pulumi.getter(name="dbProxyNewConnectStringPort")
93
+ def db_proxy_new_connect_string_port(self) -> Optional[pulumi.Input[builtins.str]]:
94
+ """
95
+ The port for the new database proxy connection address is 3306 by default for MySQL and 5432 by default for PostgreSQL, which can be customized.
96
+ """
97
+ return pulumi.get(self, "db_proxy_new_connect_string_port")
98
+
99
+ @db_proxy_new_connect_string_port.setter
100
+ def db_proxy_new_connect_string_port(self, value: Optional[pulumi.Input[builtins.str]]):
101
+ pulumi.set(self, "db_proxy_new_connect_string_port", value)
102
+
103
+
104
+ @pulumi.input_type
105
+ class _DbProxyPublicState:
106
+ def __init__(__self__, *,
107
+ connection_string_prefix: Optional[pulumi.Input[builtins.str]] = None,
108
+ db_instance_id: Optional[pulumi.Input[builtins.str]] = None,
109
+ db_proxy_connection_string_net_type: Optional[pulumi.Input[builtins.str]] = None,
110
+ db_proxy_endpoint_id: Optional[pulumi.Input[builtins.str]] = None,
111
+ db_proxy_new_connect_string_port: Optional[pulumi.Input[builtins.str]] = None):
112
+ """
113
+ Input properties used for looking up and filtering DbProxyPublic resources.
114
+ :param pulumi.Input[builtins.str] connection_string_prefix: The prefix for the new database proxy connection address can be customized.
115
+ :param pulumi.Input[builtins.str] db_instance_id: Instance ID.
116
+ :param pulumi.Input[builtins.str] db_proxy_connection_string_net_type: The network type of the new database proxy connection address,This resource defaults to Public.
117
+ :param pulumi.Input[builtins.str] db_proxy_endpoint_id: Database proxy connection address ID.
118
+ :param pulumi.Input[builtins.str] db_proxy_new_connect_string_port: The port for the new database proxy connection address is 3306 by default for MySQL and 5432 by default for PostgreSQL, which can be customized.
119
+ """
120
+ if connection_string_prefix is not None:
121
+ pulumi.set(__self__, "connection_string_prefix", connection_string_prefix)
122
+ if db_instance_id is not None:
123
+ pulumi.set(__self__, "db_instance_id", db_instance_id)
124
+ if db_proxy_connection_string_net_type is not None:
125
+ pulumi.set(__self__, "db_proxy_connection_string_net_type", db_proxy_connection_string_net_type)
126
+ if db_proxy_endpoint_id is not None:
127
+ pulumi.set(__self__, "db_proxy_endpoint_id", db_proxy_endpoint_id)
128
+ if db_proxy_new_connect_string_port is not None:
129
+ pulumi.set(__self__, "db_proxy_new_connect_string_port", db_proxy_new_connect_string_port)
130
+
131
+ @property
132
+ @pulumi.getter(name="connectionStringPrefix")
133
+ def connection_string_prefix(self) -> Optional[pulumi.Input[builtins.str]]:
134
+ """
135
+ The prefix for the new database proxy connection address can be customized.
136
+ """
137
+ return pulumi.get(self, "connection_string_prefix")
138
+
139
+ @connection_string_prefix.setter
140
+ def connection_string_prefix(self, value: Optional[pulumi.Input[builtins.str]]):
141
+ pulumi.set(self, "connection_string_prefix", value)
142
+
143
+ @property
144
+ @pulumi.getter(name="dbInstanceId")
145
+ def db_instance_id(self) -> Optional[pulumi.Input[builtins.str]]:
146
+ """
147
+ Instance ID.
148
+ """
149
+ return pulumi.get(self, "db_instance_id")
150
+
151
+ @db_instance_id.setter
152
+ def db_instance_id(self, value: Optional[pulumi.Input[builtins.str]]):
153
+ pulumi.set(self, "db_instance_id", value)
154
+
155
+ @property
156
+ @pulumi.getter(name="dbProxyConnectionStringNetType")
157
+ def db_proxy_connection_string_net_type(self) -> Optional[pulumi.Input[builtins.str]]:
158
+ """
159
+ The network type of the new database proxy connection address,This resource defaults to Public.
160
+ """
161
+ return pulumi.get(self, "db_proxy_connection_string_net_type")
162
+
163
+ @db_proxy_connection_string_net_type.setter
164
+ def db_proxy_connection_string_net_type(self, value: Optional[pulumi.Input[builtins.str]]):
165
+ pulumi.set(self, "db_proxy_connection_string_net_type", value)
166
+
167
+ @property
168
+ @pulumi.getter(name="dbProxyEndpointId")
169
+ def db_proxy_endpoint_id(self) -> Optional[pulumi.Input[builtins.str]]:
170
+ """
171
+ Database proxy connection address ID.
172
+ """
173
+ return pulumi.get(self, "db_proxy_endpoint_id")
174
+
175
+ @db_proxy_endpoint_id.setter
176
+ def db_proxy_endpoint_id(self, value: Optional[pulumi.Input[builtins.str]]):
177
+ pulumi.set(self, "db_proxy_endpoint_id", value)
178
+
179
+ @property
180
+ @pulumi.getter(name="dbProxyNewConnectStringPort")
181
+ def db_proxy_new_connect_string_port(self) -> Optional[pulumi.Input[builtins.str]]:
182
+ """
183
+ The port for the new database proxy connection address is 3306 by default for MySQL and 5432 by default for PostgreSQL, which can be customized.
184
+ """
185
+ return pulumi.get(self, "db_proxy_new_connect_string_port")
186
+
187
+ @db_proxy_new_connect_string_port.setter
188
+ def db_proxy_new_connect_string_port(self, value: Optional[pulumi.Input[builtins.str]]):
189
+ pulumi.set(self, "db_proxy_new_connect_string_port", value)
190
+
191
+
192
+ @pulumi.type_token("alicloud:rds/dbProxyPublic:DbProxyPublic")
193
+ class DbProxyPublic(pulumi.CustomResource):
194
+ @overload
195
+ def __init__(__self__,
196
+ resource_name: str,
197
+ opts: Optional[pulumi.ResourceOptions] = None,
198
+ connection_string_prefix: Optional[pulumi.Input[builtins.str]] = None,
199
+ db_instance_id: Optional[pulumi.Input[builtins.str]] = None,
200
+ db_proxy_connection_string_net_type: Optional[pulumi.Input[builtins.str]] = None,
201
+ db_proxy_endpoint_id: Optional[pulumi.Input[builtins.str]] = None,
202
+ db_proxy_new_connect_string_port: Optional[pulumi.Input[builtins.str]] = None,
203
+ __props__=None):
204
+ """
205
+ Provides a RDS database proxy public network address resource.
206
+
207
+ For information about Resource AlicloudRdsDBProxyPublic and how to use it, see [What is proxy](https://www.alibabacloud.com/help/en/rds/developer-reference/api-rds-2014-08-15-createdbproxyendpointaddress).
208
+
209
+ > **NOTE:** Available since v1.250.0.
210
+
211
+ ## Example Usage
212
+
213
+ ```python
214
+ import pulumi
215
+ import pulumi_alicloud as alicloud
216
+
217
+ config = pulumi.Config()
218
+ name = config.get("name")
219
+ if name is None:
220
+ name = "tf-example"
221
+ default = alicloud.rds.get_zones(engine="MySQL",
222
+ engine_version="5.6")
223
+ default_network = alicloud.vpc.Network("default",
224
+ vpc_name=name,
225
+ cidr_block="172.16.0.0/16")
226
+ default_switch = alicloud.vpc.Switch("default",
227
+ vpc_id=default_network.id,
228
+ cidr_block="172.16.0.0/24",
229
+ zone_id=default.zones[0].id,
230
+ vswitch_name=name)
231
+ default_security_group = alicloud.ecs.SecurityGroup("default",
232
+ name=name,
233
+ vpc_id=default_network.id)
234
+ default_instance = alicloud.rds.Instance("default",
235
+ engine="MySQL",
236
+ engine_version="5.7",
237
+ instance_type="rds.mysql.c1.large",
238
+ instance_storage=20,
239
+ instance_charge_type="Postpaid",
240
+ instance_name=name,
241
+ vswitch_id=default_switch.id,
242
+ db_instance_storage_type="local_ssd")
243
+ default_read_only_instance = alicloud.rds.ReadOnlyInstance("default",
244
+ zone_id=default_instance.zone_id,
245
+ master_db_instance_id=default_instance.id,
246
+ engine_version=default_instance.engine_version,
247
+ instance_storage=default_instance.instance_storage,
248
+ instance_type=default_instance.instance_type,
249
+ instance_name=f"{name}readonly",
250
+ vswitch_id=default_switch.id)
251
+ default_rds_db_proxy = alicloud.rds.RdsDbProxy("default",
252
+ instance_id=default_instance.id,
253
+ instance_network_type="VPC",
254
+ vpc_id=default_instance.vpc_id,
255
+ vswitch_id=default_instance.vswitch_id,
256
+ db_proxy_instance_num=2,
257
+ db_proxy_connection_prefix="example",
258
+ db_proxy_connect_string_port=3306,
259
+ db_proxy_endpoint_read_write_mode="ReadWrite",
260
+ read_only_instance_max_delay_time=90,
261
+ db_proxy_features="TransactionReadSqlRouteOptimizeStatus:1;ConnectionPersist:1;ReadWriteSpliting:1",
262
+ read_only_instance_distribution_type="Custom",
263
+ read_only_instance_weights=[
264
+ {
265
+ "instance_id": default_instance.id,
266
+ "weight": "100",
267
+ },
268
+ {
269
+ "instance_id": default_read_only_instance.id,
270
+ "weight": "500",
271
+ },
272
+ ])
273
+ default_db_proxy_public = alicloud.rds.DbProxyPublic("default",
274
+ db_instance_id=default_instance.id,
275
+ db_proxy_endpoint_id=default_rds_db_proxy.db_proxy_endpoint_id,
276
+ connection_string_prefix="exampleabc",
277
+ db_proxy_connection_string_net_type="Public",
278
+ db_proxy_new_connect_string_port="3306")
279
+ ```
280
+
281
+ > **NOTE:** Resource `rds.DbProxyPublic` should be created after `rds.RdsDbProxy`, so the `depends_on` statement is necessary.
282
+
283
+ ## Import
284
+
285
+ RDS Database Proxy Public Network Address can be imported using the id, e.g.
286
+
287
+ ```sh
288
+ $ pulumi import alicloud:rds/dbProxyPublic:DbProxyPublic example <id>
289
+ ```
290
+
291
+ :param str resource_name: The name of the resource.
292
+ :param pulumi.ResourceOptions opts: Options for the resource.
293
+ :param pulumi.Input[builtins.str] connection_string_prefix: The prefix for the new database proxy connection address can be customized.
294
+ :param pulumi.Input[builtins.str] db_instance_id: Instance ID.
295
+ :param pulumi.Input[builtins.str] db_proxy_connection_string_net_type: The network type of the new database proxy connection address,This resource defaults to Public.
296
+ :param pulumi.Input[builtins.str] db_proxy_endpoint_id: Database proxy connection address ID.
297
+ :param pulumi.Input[builtins.str] db_proxy_new_connect_string_port: The port for the new database proxy connection address is 3306 by default for MySQL and 5432 by default for PostgreSQL, which can be customized.
298
+ """
299
+ ...
300
+ @overload
301
+ def __init__(__self__,
302
+ resource_name: str,
303
+ args: DbProxyPublicArgs,
304
+ opts: Optional[pulumi.ResourceOptions] = None):
305
+ """
306
+ Provides a RDS database proxy public network address resource.
307
+
308
+ For information about Resource AlicloudRdsDBProxyPublic and how to use it, see [What is proxy](https://www.alibabacloud.com/help/en/rds/developer-reference/api-rds-2014-08-15-createdbproxyendpointaddress).
309
+
310
+ > **NOTE:** Available since v1.250.0.
311
+
312
+ ## Example Usage
313
+
314
+ ```python
315
+ import pulumi
316
+ import pulumi_alicloud as alicloud
317
+
318
+ config = pulumi.Config()
319
+ name = config.get("name")
320
+ if name is None:
321
+ name = "tf-example"
322
+ default = alicloud.rds.get_zones(engine="MySQL",
323
+ engine_version="5.6")
324
+ default_network = alicloud.vpc.Network("default",
325
+ vpc_name=name,
326
+ cidr_block="172.16.0.0/16")
327
+ default_switch = alicloud.vpc.Switch("default",
328
+ vpc_id=default_network.id,
329
+ cidr_block="172.16.0.0/24",
330
+ zone_id=default.zones[0].id,
331
+ vswitch_name=name)
332
+ default_security_group = alicloud.ecs.SecurityGroup("default",
333
+ name=name,
334
+ vpc_id=default_network.id)
335
+ default_instance = alicloud.rds.Instance("default",
336
+ engine="MySQL",
337
+ engine_version="5.7",
338
+ instance_type="rds.mysql.c1.large",
339
+ instance_storage=20,
340
+ instance_charge_type="Postpaid",
341
+ instance_name=name,
342
+ vswitch_id=default_switch.id,
343
+ db_instance_storage_type="local_ssd")
344
+ default_read_only_instance = alicloud.rds.ReadOnlyInstance("default",
345
+ zone_id=default_instance.zone_id,
346
+ master_db_instance_id=default_instance.id,
347
+ engine_version=default_instance.engine_version,
348
+ instance_storage=default_instance.instance_storage,
349
+ instance_type=default_instance.instance_type,
350
+ instance_name=f"{name}readonly",
351
+ vswitch_id=default_switch.id)
352
+ default_rds_db_proxy = alicloud.rds.RdsDbProxy("default",
353
+ instance_id=default_instance.id,
354
+ instance_network_type="VPC",
355
+ vpc_id=default_instance.vpc_id,
356
+ vswitch_id=default_instance.vswitch_id,
357
+ db_proxy_instance_num=2,
358
+ db_proxy_connection_prefix="example",
359
+ db_proxy_connect_string_port=3306,
360
+ db_proxy_endpoint_read_write_mode="ReadWrite",
361
+ read_only_instance_max_delay_time=90,
362
+ db_proxy_features="TransactionReadSqlRouteOptimizeStatus:1;ConnectionPersist:1;ReadWriteSpliting:1",
363
+ read_only_instance_distribution_type="Custom",
364
+ read_only_instance_weights=[
365
+ {
366
+ "instance_id": default_instance.id,
367
+ "weight": "100",
368
+ },
369
+ {
370
+ "instance_id": default_read_only_instance.id,
371
+ "weight": "500",
372
+ },
373
+ ])
374
+ default_db_proxy_public = alicloud.rds.DbProxyPublic("default",
375
+ db_instance_id=default_instance.id,
376
+ db_proxy_endpoint_id=default_rds_db_proxy.db_proxy_endpoint_id,
377
+ connection_string_prefix="exampleabc",
378
+ db_proxy_connection_string_net_type="Public",
379
+ db_proxy_new_connect_string_port="3306")
380
+ ```
381
+
382
+ > **NOTE:** Resource `rds.DbProxyPublic` should be created after `rds.RdsDbProxy`, so the `depends_on` statement is necessary.
383
+
384
+ ## Import
385
+
386
+ RDS Database Proxy Public Network Address can be imported using the id, e.g.
387
+
388
+ ```sh
389
+ $ pulumi import alicloud:rds/dbProxyPublic:DbProxyPublic example <id>
390
+ ```
391
+
392
+ :param str resource_name: The name of the resource.
393
+ :param DbProxyPublicArgs args: The arguments to use to populate this resource's properties.
394
+ :param pulumi.ResourceOptions opts: Options for the resource.
395
+ """
396
+ ...
397
+ def __init__(__self__, resource_name: str, *args, **kwargs):
398
+ resource_args, opts = _utilities.get_resource_args_opts(DbProxyPublicArgs, pulumi.ResourceOptions, *args, **kwargs)
399
+ if resource_args is not None:
400
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
401
+ else:
402
+ __self__._internal_init(resource_name, *args, **kwargs)
403
+
404
+ def _internal_init(__self__,
405
+ resource_name: str,
406
+ opts: Optional[pulumi.ResourceOptions] = None,
407
+ connection_string_prefix: Optional[pulumi.Input[builtins.str]] = None,
408
+ db_instance_id: Optional[pulumi.Input[builtins.str]] = None,
409
+ db_proxy_connection_string_net_type: Optional[pulumi.Input[builtins.str]] = None,
410
+ db_proxy_endpoint_id: Optional[pulumi.Input[builtins.str]] = None,
411
+ db_proxy_new_connect_string_port: Optional[pulumi.Input[builtins.str]] = None,
412
+ __props__=None):
413
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
414
+ if not isinstance(opts, pulumi.ResourceOptions):
415
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
416
+ if opts.id is None:
417
+ if __props__ is not None:
418
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
419
+ __props__ = DbProxyPublicArgs.__new__(DbProxyPublicArgs)
420
+
421
+ if connection_string_prefix is None and not opts.urn:
422
+ raise TypeError("Missing required property 'connection_string_prefix'")
423
+ __props__.__dict__["connection_string_prefix"] = connection_string_prefix
424
+ if db_instance_id is None and not opts.urn:
425
+ raise TypeError("Missing required property 'db_instance_id'")
426
+ __props__.__dict__["db_instance_id"] = db_instance_id
427
+ if db_proxy_connection_string_net_type is None and not opts.urn:
428
+ raise TypeError("Missing required property 'db_proxy_connection_string_net_type'")
429
+ __props__.__dict__["db_proxy_connection_string_net_type"] = db_proxy_connection_string_net_type
430
+ if db_proxy_endpoint_id is None and not opts.urn:
431
+ raise TypeError("Missing required property 'db_proxy_endpoint_id'")
432
+ __props__.__dict__["db_proxy_endpoint_id"] = db_proxy_endpoint_id
433
+ __props__.__dict__["db_proxy_new_connect_string_port"] = db_proxy_new_connect_string_port
434
+ super(DbProxyPublic, __self__).__init__(
435
+ 'alicloud:rds/dbProxyPublic:DbProxyPublic',
436
+ resource_name,
437
+ __props__,
438
+ opts)
439
+
440
+ @staticmethod
441
+ def get(resource_name: str,
442
+ id: pulumi.Input[str],
443
+ opts: Optional[pulumi.ResourceOptions] = None,
444
+ connection_string_prefix: Optional[pulumi.Input[builtins.str]] = None,
445
+ db_instance_id: Optional[pulumi.Input[builtins.str]] = None,
446
+ db_proxy_connection_string_net_type: Optional[pulumi.Input[builtins.str]] = None,
447
+ db_proxy_endpoint_id: Optional[pulumi.Input[builtins.str]] = None,
448
+ db_proxy_new_connect_string_port: Optional[pulumi.Input[builtins.str]] = None) -> 'DbProxyPublic':
449
+ """
450
+ Get an existing DbProxyPublic resource's state with the given name, id, and optional extra
451
+ properties used to qualify the lookup.
452
+
453
+ :param str resource_name: The unique name of the resulting resource.
454
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
455
+ :param pulumi.ResourceOptions opts: Options for the resource.
456
+ :param pulumi.Input[builtins.str] connection_string_prefix: The prefix for the new database proxy connection address can be customized.
457
+ :param pulumi.Input[builtins.str] db_instance_id: Instance ID.
458
+ :param pulumi.Input[builtins.str] db_proxy_connection_string_net_type: The network type of the new database proxy connection address,This resource defaults to Public.
459
+ :param pulumi.Input[builtins.str] db_proxy_endpoint_id: Database proxy connection address ID.
460
+ :param pulumi.Input[builtins.str] db_proxy_new_connect_string_port: The port for the new database proxy connection address is 3306 by default for MySQL and 5432 by default for PostgreSQL, which can be customized.
461
+ """
462
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
463
+
464
+ __props__ = _DbProxyPublicState.__new__(_DbProxyPublicState)
465
+
466
+ __props__.__dict__["connection_string_prefix"] = connection_string_prefix
467
+ __props__.__dict__["db_instance_id"] = db_instance_id
468
+ __props__.__dict__["db_proxy_connection_string_net_type"] = db_proxy_connection_string_net_type
469
+ __props__.__dict__["db_proxy_endpoint_id"] = db_proxy_endpoint_id
470
+ __props__.__dict__["db_proxy_new_connect_string_port"] = db_proxy_new_connect_string_port
471
+ return DbProxyPublic(resource_name, opts=opts, __props__=__props__)
472
+
473
+ @property
474
+ @pulumi.getter(name="connectionStringPrefix")
475
+ def connection_string_prefix(self) -> pulumi.Output[builtins.str]:
476
+ """
477
+ The prefix for the new database proxy connection address can be customized.
478
+ """
479
+ return pulumi.get(self, "connection_string_prefix")
480
+
481
+ @property
482
+ @pulumi.getter(name="dbInstanceId")
483
+ def db_instance_id(self) -> pulumi.Output[builtins.str]:
484
+ """
485
+ Instance ID.
486
+ """
487
+ return pulumi.get(self, "db_instance_id")
488
+
489
+ @property
490
+ @pulumi.getter(name="dbProxyConnectionStringNetType")
491
+ def db_proxy_connection_string_net_type(self) -> pulumi.Output[builtins.str]:
492
+ """
493
+ The network type of the new database proxy connection address,This resource defaults to Public.
494
+ """
495
+ return pulumi.get(self, "db_proxy_connection_string_net_type")
496
+
497
+ @property
498
+ @pulumi.getter(name="dbProxyEndpointId")
499
+ def db_proxy_endpoint_id(self) -> pulumi.Output[builtins.str]:
500
+ """
501
+ Database proxy connection address ID.
502
+ """
503
+ return pulumi.get(self, "db_proxy_endpoint_id")
504
+
505
+ @property
506
+ @pulumi.getter(name="dbProxyNewConnectStringPort")
507
+ def db_proxy_new_connect_string_port(self) -> pulumi.Output[builtins.str]:
508
+ """
509
+ The port for the new database proxy connection address is 3306 by default for MySQL and 5432 by default for PostgreSQL, which can be customized.
510
+ """
511
+ return pulumi.get(self, "db_proxy_new_connect_string_port")
512
+
@@ -112,11 +112,11 @@ class InstanceArgs:
112
112
  - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
113
113
  - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
114
114
  - MariaDB: [ 10.3 ]
115
- - Serverless
116
- > - MySQL: [ 5.7、8.0 ]
117
- > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
118
- > - PostgreSQL: [ 14.0 ]
119
- > - MariaDB does not support creating serverless instances.
115
+ **Serverless**
116
+ - MySQL: [ 5.7、8.0 ]
117
+ - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
118
+ - PostgreSQL: [ 14.0 ]
119
+ - MariaDB does not support creating serverless instances.
120
120
  :param pulumi.Input[builtins.int] instance_storage: User-defined DB instance storage space. Value range:
121
121
  - [5, 2000] for MySQL/PostgreSQL HA dual node edition;
122
122
  - [20,1000] for MySQL 5.7 basic single node edition;
@@ -539,11 +539,11 @@ class InstanceArgs:
539
539
  - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
540
540
  - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
541
541
  - MariaDB: [ 10.3 ]
542
- - Serverless
543
- > - MySQL: [ 5.7、8.0 ]
544
- > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
545
- > - PostgreSQL: [ 14.0 ]
546
- > - MariaDB does not support creating serverless instances.
542
+ **Serverless**
543
+ - MySQL: [ 5.7、8.0 ]
544
+ - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
545
+ - PostgreSQL: [ 14.0 ]
546
+ - MariaDB does not support creating serverless instances.
547
547
  """
548
548
  return pulumi.get(self, "engine_version")
549
549
 
@@ -1833,11 +1833,11 @@ class _InstanceState:
1833
1833
  - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
1834
1834
  - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
1835
1835
  - MariaDB: [ 10.3 ]
1836
- - Serverless
1837
- > - MySQL: [ 5.7、8.0 ]
1838
- > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
1839
- > - PostgreSQL: [ 14.0 ]
1840
- > - MariaDB does not support creating serverless instances.
1836
+ **Serverless**
1837
+ - MySQL: [ 5.7、8.0 ]
1838
+ - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
1839
+ - PostgreSQL: [ 14.0 ]
1840
+ - MariaDB does not support creating serverless instances.
1841
1841
  :param pulumi.Input[builtins.str] force: Specifies whether to enable forcible switching. Valid values:
1842
1842
  - Yes
1843
1843
  - No
@@ -2576,11 +2576,11 @@ class _InstanceState:
2576
2576
  - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
2577
2577
  - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
2578
2578
  - MariaDB: [ 10.3 ]
2579
- - Serverless
2580
- > - MySQL: [ 5.7、8.0 ]
2581
- > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
2582
- > - PostgreSQL: [ 14.0 ]
2583
- > - MariaDB does not support creating serverless instances.
2579
+ **Serverless**
2580
+ - MySQL: [ 5.7、8.0 ]
2581
+ - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
2582
+ - PostgreSQL: [ 14.0 ]
2583
+ - MariaDB does not support creating serverless instances.
2584
2584
  """
2585
2585
  return pulumi.get(self, "engine_version")
2586
2586
 
@@ -3550,11 +3550,11 @@ class Instance(pulumi.CustomResource):
3550
3550
  - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
3551
3551
  - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
3552
3552
  - MariaDB: [ 10.3 ]
3553
- - Serverless
3554
- > - MySQL: [ 5.7、8.0 ]
3555
- > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
3556
- > - PostgreSQL: [ 14.0 ]
3557
- > - MariaDB does not support creating serverless instances.
3553
+ **Serverless**
3554
+ - MySQL: [ 5.7、8.0 ]
3555
+ - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
3556
+ - PostgreSQL: [ 14.0 ]
3557
+ - MariaDB does not support creating serverless instances.
3558
3558
  :param pulumi.Input[builtins.str] force: Specifies whether to enable forcible switching. Valid values:
3559
3559
  - Yes
3560
3560
  - No
@@ -4118,11 +4118,11 @@ class Instance(pulumi.CustomResource):
4118
4118
  - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
4119
4119
  - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
4120
4120
  - MariaDB: [ 10.3 ]
4121
- - Serverless
4122
- > - MySQL: [ 5.7、8.0 ]
4123
- > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
4124
- > - PostgreSQL: [ 14.0 ]
4125
- > - MariaDB does not support creating serverless instances.
4121
+ **Serverless**
4122
+ - MySQL: [ 5.7、8.0 ]
4123
+ - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
4124
+ - PostgreSQL: [ 14.0 ]
4125
+ - MariaDB does not support creating serverless instances.
4126
4126
  :param pulumi.Input[builtins.str] force: Specifies whether to enable forcible switching. Valid values:
4127
4127
  - Yes
4128
4128
  - No
@@ -4663,11 +4663,11 @@ class Instance(pulumi.CustomResource):
4663
4663
  - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
4664
4664
  - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
4665
4665
  - MariaDB: [ 10.3 ]
4666
- - Serverless
4667
- > - MySQL: [ 5.7、8.0 ]
4668
- > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
4669
- > - PostgreSQL: [ 14.0 ]
4670
- > - MariaDB does not support creating serverless instances.
4666
+ **Serverless**
4667
+ - MySQL: [ 5.7、8.0 ]
4668
+ - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
4669
+ - PostgreSQL: [ 14.0 ]
4670
+ - MariaDB does not support creating serverless instances.
4671
4671
  """
4672
4672
  return pulumi.get(self, "engine_version")
4673
4673
 
@@ -9,6 +9,7 @@ import typing
9
9
  from .alert import *
10
10
  from .collection_policy import *
11
11
  from .etl import *
12
+ from .get_alerts import *
12
13
  from .oss_export_sink import *
13
14
  from .scheduled_sql import *
14
15
  from ._inputs import *