pulumi-alicloud 3.88.0a1761582647__py3-none-any.whl → 3.88.0a1761969289__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 (66) hide show
  1. pulumi_alicloud/__init__.py +59 -0
  2. pulumi_alicloud/cfg/_inputs.py +27 -24
  3. pulumi_alicloud/cfg/aggregator.py +142 -53
  4. pulumi_alicloud/cfg/outputs.py +18 -15
  5. pulumi_alicloud/cloudfirewall/__init__.py +1 -0
  6. pulumi_alicloud/cloudfirewall/get_tls_inspect_ca_certificates.py +214 -0
  7. pulumi_alicloud/cloudfirewall/outputs.py +30 -0
  8. pulumi_alicloud/cms/_inputs.py +870 -10
  9. pulumi_alicloud/cms/get_site_monitors.py +2 -2
  10. pulumi_alicloud/cms/outputs.py +606 -6
  11. pulumi_alicloud/cms/site_monitor.py +360 -89
  12. pulumi_alicloud/cr/registry_enterprise_instance.py +63 -0
  13. pulumi_alicloud/dts/instance.py +14 -14
  14. pulumi_alicloud/eci/container_group.py +47 -0
  15. pulumi_alicloud/ecs/security_group_rule.py +7 -7
  16. pulumi_alicloud/ens/load_balancer.py +8 -4
  17. pulumi_alicloud/esa/__init__.py +1 -0
  18. pulumi_alicloud/esa/_inputs.py +611 -0
  19. pulumi_alicloud/esa/cache_rule.py +47 -0
  20. pulumi_alicloud/esa/certificate.py +21 -54
  21. pulumi_alicloud/esa/compression_rule.py +47 -0
  22. pulumi_alicloud/esa/load_balancer.py +999 -0
  23. pulumi_alicloud/esa/outputs.py +469 -0
  24. pulumi_alicloud/eventbridge/event_source.py +57 -57
  25. pulumi_alicloud/ga/_inputs.py +56 -16
  26. pulumi_alicloud/ga/outputs.py +39 -11
  27. pulumi_alicloud/lindorm/instance_v2.py +358 -70
  28. pulumi_alicloud/oss/_inputs.py +53 -0
  29. pulumi_alicloud/oss/bucket_logging.py +80 -29
  30. pulumi_alicloud/oss/bucket_replication.py +55 -8
  31. pulumi_alicloud/oss/outputs.py +31 -0
  32. pulumi_alicloud/polardb/__init__.py +2 -0
  33. pulumi_alicloud/polardb/cluster.py +14 -14
  34. pulumi_alicloud/polardb/zonal_account.py +449 -0
  35. pulumi_alicloud/polardb/zonal_db_cluster.py +2 -2
  36. pulumi_alicloud/polardb/zonal_endpoint.py +865 -0
  37. pulumi_alicloud/pulumi-plugin.json +1 -1
  38. pulumi_alicloud/ram/policy.py +2 -2
  39. pulumi_alicloud/resourcemanager/__init__.py +2 -0
  40. pulumi_alicloud/resourcemanager/_inputs.py +745 -0
  41. pulumi_alicloud/resourcemanager/delivery_channel.py +449 -0
  42. pulumi_alicloud/resourcemanager/multi_account_delivery_channel.py +470 -0
  43. pulumi_alicloud/resourcemanager/outputs.py +643 -0
  44. pulumi_alicloud/sae/_inputs.py +60 -0
  45. pulumi_alicloud/sae/application.py +1 -1
  46. pulumi_alicloud/sae/outputs.py +42 -0
  47. pulumi_alicloud/sls/__init__.py +1 -0
  48. pulumi_alicloud/sls/get_indexs.py +304 -0
  49. pulumi_alicloud/sls/outputs.py +148 -0
  50. pulumi_alicloud/star_rocks_instance.py +8 -2
  51. pulumi_alicloud/starrocks/__init__.py +12 -0
  52. pulumi_alicloud/starrocks/_inputs.py +656 -0
  53. pulumi_alicloud/starrocks/instance.py +1427 -0
  54. pulumi_alicloud/starrocks/node_group.py +1298 -0
  55. pulumi_alicloud/starrocks/outputs.py +508 -0
  56. pulumi_alicloud/vpc/_inputs.py +84 -0
  57. pulumi_alicloud/vpc/gateway_endpoint.py +8 -8
  58. pulumi_alicloud/vpc/network_acl_entries.py +16 -20
  59. pulumi_alicloud/vpc/outputs.py +48 -0
  60. pulumi_alicloud/wafv3/_inputs.py +396 -0
  61. pulumi_alicloud/wafv3/defense_rule.py +40 -110
  62. pulumi_alicloud/wafv3/outputs.py +303 -0
  63. {pulumi_alicloud-3.88.0a1761582647.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/METADATA +1 -1
  64. {pulumi_alicloud-3.88.0a1761582647.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/RECORD +66 -54
  65. {pulumi_alicloud-3.88.0a1761582647.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/WHEEL +0 -0
  66. {pulumi_alicloud-3.88.0a1761582647.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/top_level.txt +0 -0
@@ -122,7 +122,7 @@ class ClusterArgs:
122
122
  :param pulumi.Input[_builtins.str] default_time_zone: The time zone of the cluster. You can set the parameter to a value that is on the hour from -12:00 to +13:00 based on UTC. Example: 00:00. Default value: SYSTEM. This value indicates that the time zone of the cluster is the same as the time zone of the region.
123
123
  > **NOTE:** This parameter is valid only when the DBType parameter is set to MySQL.
124
124
  :param pulumi.Input[_builtins.int] deletion_lock: turn on table deletion_lock. Valid values are 0, 1. 1 means to open the cluster protection lock, 0 means to close the cluster protection lock
125
- > **NOTE:** Cannot modify after created when `pay_type` is `Prepaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `Postpaid`.
125
+ > **NOTE:** Cannot modify after created when `pay_type` is `PrePaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `PostPaid`.
126
126
  :param pulumi.Input[_builtins.str] description: The description of cluster.
127
127
  :param pulumi.Input[_builtins.str] encrypt_new_tables: turn on table auto encryption. Valid values are `ON`, `OFF`. Only MySQL 8.0 supports.
128
128
  > **NOTE:** `encrypt_new_tables` Polardb MySQL 8.0 cluster, after TDE and Automatic Encryption are enabled, all newly created tables are automatically encrypted in the cluster.
@@ -187,7 +187,7 @@ class ClusterArgs:
187
187
  :param pulumi.Input[_builtins.str] source_resource_id: The ID of the source RDS instance or the ID of the source PolarDB cluster. This parameter is required only when CreationOption is set to MigrationFromRDS, CloneFromRDS, or CloneFromPolarDB.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `SourceResourceId`.
188
188
  :param pulumi.Input[_builtins.str] standby_az: The availability zone where the hot standby cluster is stored, takes effect when `hot_standby_cluster` is `ON` or `EQUAL`.
189
189
  > **NOTE:** `standby_az` is required when `hot_standby_cluster` is `EQUAL`.
190
- :param pulumi.Input[_builtins.str] storage_pay_type: The billing method of the storage. Valid values `Postpaid`, `Prepaid`.
190
+ :param pulumi.Input[_builtins.str] storage_pay_type: The billing method of the storage. Valid values `PostPaid`, `PrePaid`.
191
191
  :param pulumi.Input[_builtins.int] storage_space: Storage space charged by space (monthly package). Unit: GB.
192
192
  > **NOTE:** Valid values for PolarDB for MySQL Standard Edition: 20 to 32000. It is valid when pay_type are `PrePaid` ,`PostPaid`.
193
193
  > **NOTE:** Valid values for PolarDB for MySQL Enterprise Edition: 50 to 100000.It is valid when pay_type is `PrePaid`.
@@ -566,7 +566,7 @@ class ClusterArgs:
566
566
  def deletion_lock(self) -> Optional[pulumi.Input[_builtins.int]]:
567
567
  """
568
568
  turn on table deletion_lock. Valid values are 0, 1. 1 means to open the cluster protection lock, 0 means to close the cluster protection lock
569
- > **NOTE:** Cannot modify after created when `pay_type` is `Prepaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `Postpaid`.
569
+ > **NOTE:** Cannot modify after created when `pay_type` is `PrePaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `PostPaid`.
570
570
  """
571
571
  return pulumi.get(self, "deletion_lock")
572
572
 
@@ -1104,7 +1104,7 @@ class ClusterArgs:
1104
1104
  @pulumi.getter(name="storagePayType")
1105
1105
  def storage_pay_type(self) -> Optional[pulumi.Input[_builtins.str]]:
1106
1106
  """
1107
- The billing method of the storage. Valid values `Postpaid`, `Prepaid`.
1107
+ The billing method of the storage. Valid values `PostPaid`, `PrePaid`.
1108
1108
  """
1109
1109
  return pulumi.get(self, "storage_pay_type")
1110
1110
 
@@ -1364,7 +1364,7 @@ class _ClusterState:
1364
1364
  :param pulumi.Input[_builtins.str] default_time_zone: The time zone of the cluster. You can set the parameter to a value that is on the hour from -12:00 to +13:00 based on UTC. Example: 00:00. Default value: SYSTEM. This value indicates that the time zone of the cluster is the same as the time zone of the region.
1365
1365
  > **NOTE:** This parameter is valid only when the DBType parameter is set to MySQL.
1366
1366
  :param pulumi.Input[_builtins.int] deletion_lock: turn on table deletion_lock. Valid values are 0, 1. 1 means to open the cluster protection lock, 0 means to close the cluster protection lock
1367
- > **NOTE:** Cannot modify after created when `pay_type` is `Prepaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `Postpaid`.
1367
+ > **NOTE:** Cannot modify after created when `pay_type` is `PrePaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `PostPaid`.
1368
1368
  :param pulumi.Input[_builtins.str] description: The description of cluster.
1369
1369
  :param pulumi.Input[_builtins.str] encrypt_new_tables: turn on table auto encryption. Valid values are `ON`, `OFF`. Only MySQL 8.0 supports.
1370
1370
  > **NOTE:** `encrypt_new_tables` Polardb MySQL 8.0 cluster, after TDE and Automatic Encryption are enabled, all newly created tables are automatically encrypted in the cluster.
@@ -1431,7 +1431,7 @@ class _ClusterState:
1431
1431
  :param pulumi.Input[_builtins.str] standby_az: The availability zone where the hot standby cluster is stored, takes effect when `hot_standby_cluster` is `ON` or `EQUAL`.
1432
1432
  > **NOTE:** `standby_az` is required when `hot_standby_cluster` is `EQUAL`.
1433
1433
  :param pulumi.Input[_builtins.str] status: (Available since 1.204.1) PolarDB cluster status.
1434
- :param pulumi.Input[_builtins.str] storage_pay_type: The billing method of the storage. Valid values `Postpaid`, `Prepaid`.
1434
+ :param pulumi.Input[_builtins.str] storage_pay_type: The billing method of the storage. Valid values `PostPaid`, `PrePaid`.
1435
1435
  :param pulumi.Input[_builtins.int] storage_space: Storage space charged by space (monthly package). Unit: GB.
1436
1436
  > **NOTE:** Valid values for PolarDB for MySQL Standard Edition: 20 to 32000. It is valid when pay_type are `PrePaid` ,`PostPaid`.
1437
1437
  > **NOTE:** Valid values for PolarDB for MySQL Enterprise Edition: 50 to 100000.It is valid when pay_type is `PrePaid`.
@@ -1864,7 +1864,7 @@ class _ClusterState:
1864
1864
  def deletion_lock(self) -> Optional[pulumi.Input[_builtins.int]]:
1865
1865
  """
1866
1866
  turn on table deletion_lock. Valid values are 0, 1. 1 means to open the cluster protection lock, 0 means to close the cluster protection lock
1867
- > **NOTE:** Cannot modify after created when `pay_type` is `Prepaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `Postpaid`.
1867
+ > **NOTE:** Cannot modify after created when `pay_type` is `PrePaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `PostPaid`.
1868
1868
  """
1869
1869
  return pulumi.get(self, "deletion_lock")
1870
1870
 
@@ -2426,7 +2426,7 @@ class _ClusterState:
2426
2426
  @pulumi.getter(name="storagePayType")
2427
2427
  def storage_pay_type(self) -> Optional[pulumi.Input[_builtins.str]]:
2428
2428
  """
2429
- The billing method of the storage. Valid values `Postpaid`, `Prepaid`.
2429
+ The billing method of the storage. Valid values `PostPaid`, `PrePaid`.
2430
2430
  """
2431
2431
  return pulumi.get(self, "storage_pay_type")
2432
2432
 
@@ -2704,7 +2704,7 @@ class Cluster(pulumi.CustomResource):
2704
2704
  :param pulumi.Input[_builtins.str] default_time_zone: The time zone of the cluster. You can set the parameter to a value that is on the hour from -12:00 to +13:00 based on UTC. Example: 00:00. Default value: SYSTEM. This value indicates that the time zone of the cluster is the same as the time zone of the region.
2705
2705
  > **NOTE:** This parameter is valid only when the DBType parameter is set to MySQL.
2706
2706
  :param pulumi.Input[_builtins.int] deletion_lock: turn on table deletion_lock. Valid values are 0, 1. 1 means to open the cluster protection lock, 0 means to close the cluster protection lock
2707
- > **NOTE:** Cannot modify after created when `pay_type` is `Prepaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `Postpaid`.
2707
+ > **NOTE:** Cannot modify after created when `pay_type` is `PrePaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `PostPaid`.
2708
2708
  :param pulumi.Input[_builtins.str] description: The description of cluster.
2709
2709
  :param pulumi.Input[_builtins.str] encrypt_new_tables: turn on table auto encryption. Valid values are `ON`, `OFF`. Only MySQL 8.0 supports.
2710
2710
  > **NOTE:** `encrypt_new_tables` Polardb MySQL 8.0 cluster, after TDE and Automatic Encryption are enabled, all newly created tables are automatically encrypted in the cluster.
@@ -2769,7 +2769,7 @@ class Cluster(pulumi.CustomResource):
2769
2769
  :param pulumi.Input[_builtins.str] source_resource_id: The ID of the source RDS instance or the ID of the source PolarDB cluster. This parameter is required only when CreationOption is set to MigrationFromRDS, CloneFromRDS, or CloneFromPolarDB.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `SourceResourceId`.
2770
2770
  :param pulumi.Input[_builtins.str] standby_az: The availability zone where the hot standby cluster is stored, takes effect when `hot_standby_cluster` is `ON` or `EQUAL`.
2771
2771
  > **NOTE:** `standby_az` is required when `hot_standby_cluster` is `EQUAL`.
2772
- :param pulumi.Input[_builtins.str] storage_pay_type: The billing method of the storage. Valid values `Postpaid`, `Prepaid`.
2772
+ :param pulumi.Input[_builtins.str] storage_pay_type: The billing method of the storage. Valid values `PostPaid`, `PrePaid`.
2773
2773
  :param pulumi.Input[_builtins.int] storage_space: Storage space charged by space (monthly package). Unit: GB.
2774
2774
  > **NOTE:** Valid values for PolarDB for MySQL Standard Edition: 20 to 32000. It is valid when pay_type are `PrePaid` ,`PostPaid`.
2775
2775
  > **NOTE:** Valid values for PolarDB for MySQL Enterprise Edition: 50 to 100000.It is valid when pay_type is `PrePaid`.
@@ -3108,7 +3108,7 @@ class Cluster(pulumi.CustomResource):
3108
3108
  :param pulumi.Input[_builtins.str] default_time_zone: The time zone of the cluster. You can set the parameter to a value that is on the hour from -12:00 to +13:00 based on UTC. Example: 00:00. Default value: SYSTEM. This value indicates that the time zone of the cluster is the same as the time zone of the region.
3109
3109
  > **NOTE:** This parameter is valid only when the DBType parameter is set to MySQL.
3110
3110
  :param pulumi.Input[_builtins.int] deletion_lock: turn on table deletion_lock. Valid values are 0, 1. 1 means to open the cluster protection lock, 0 means to close the cluster protection lock
3111
- > **NOTE:** Cannot modify after created when `pay_type` is `Prepaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `Postpaid`.
3111
+ > **NOTE:** Cannot modify after created when `pay_type` is `PrePaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `PostPaid`.
3112
3112
  :param pulumi.Input[_builtins.str] description: The description of cluster.
3113
3113
  :param pulumi.Input[_builtins.str] encrypt_new_tables: turn on table auto encryption. Valid values are `ON`, `OFF`. Only MySQL 8.0 supports.
3114
3114
  > **NOTE:** `encrypt_new_tables` Polardb MySQL 8.0 cluster, after TDE and Automatic Encryption are enabled, all newly created tables are automatically encrypted in the cluster.
@@ -3175,7 +3175,7 @@ class Cluster(pulumi.CustomResource):
3175
3175
  :param pulumi.Input[_builtins.str] standby_az: The availability zone where the hot standby cluster is stored, takes effect when `hot_standby_cluster` is `ON` or `EQUAL`.
3176
3176
  > **NOTE:** `standby_az` is required when `hot_standby_cluster` is `EQUAL`.
3177
3177
  :param pulumi.Input[_builtins.str] status: (Available since 1.204.1) PolarDB cluster status.
3178
- :param pulumi.Input[_builtins.str] storage_pay_type: The billing method of the storage. Valid values `Postpaid`, `Prepaid`.
3178
+ :param pulumi.Input[_builtins.str] storage_pay_type: The billing method of the storage. Valid values `PostPaid`, `PrePaid`.
3179
3179
  :param pulumi.Input[_builtins.int] storage_space: Storage space charged by space (monthly package). Unit: GB.
3180
3180
  > **NOTE:** Valid values for PolarDB for MySQL Standard Edition: 20 to 32000. It is valid when pay_type are `PrePaid` ,`PostPaid`.
3181
3181
  > **NOTE:** Valid values for PolarDB for MySQL Enterprise Edition: 50 to 100000.It is valid when pay_type is `PrePaid`.
@@ -3455,7 +3455,7 @@ class Cluster(pulumi.CustomResource):
3455
3455
  def deletion_lock(self) -> pulumi.Output[Optional[_builtins.int]]:
3456
3456
  """
3457
3457
  turn on table deletion_lock. Valid values are 0, 1. 1 means to open the cluster protection lock, 0 means to close the cluster protection lock
3458
- > **NOTE:** Cannot modify after created when `pay_type` is `Prepaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `Postpaid`.
3458
+ > **NOTE:** Cannot modify after created when `pay_type` is `PrePaid` .`deletion_lock` the cluster protection lock can be turned on or off when `pay_type` is `PostPaid`.
3459
3459
  """
3460
3460
  return pulumi.get(self, "deletion_lock")
3461
3461
 
@@ -3837,7 +3837,7 @@ class Cluster(pulumi.CustomResource):
3837
3837
  @pulumi.getter(name="storagePayType")
3838
3838
  def storage_pay_type(self) -> pulumi.Output[_builtins.str]:
3839
3839
  """
3840
- The billing method of the storage. Valid values `Postpaid`, `Prepaid`.
3840
+ The billing method of the storage. Valid values `PostPaid`, `PrePaid`.
3841
3841
  """
3842
3842
  return pulumi.get(self, "storage_pay_type")
3843
3843
 
@@ -0,0 +1,449 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+
17
+ __all__ = ['ZonalAccountArgs', 'ZonalAccount']
18
+
19
+ @pulumi.input_type
20
+ class ZonalAccountArgs:
21
+ def __init__(__self__, *,
22
+ account_name: pulumi.Input[_builtins.str],
23
+ db_cluster_id: pulumi.Input[_builtins.str],
24
+ account_description: Optional[pulumi.Input[_builtins.str]] = None,
25
+ account_password: Optional[pulumi.Input[_builtins.str]] = None,
26
+ account_type: Optional[pulumi.Input[_builtins.str]] = None):
27
+ """
28
+ The set of arguments for constructing a ZonalAccount resource.
29
+ :param pulumi.Input[_builtins.str] account_name: Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
30
+ :param pulumi.Input[_builtins.str] db_cluster_id: The Id of cluster in which account belongs.
31
+ :param pulumi.Input[_builtins.str] account_description: Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
32
+ :param pulumi.Input[_builtins.str] account_password: Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters.
33
+ :param pulumi.Input[_builtins.str] account_type: Account type, Valid values are `Normal`, `Super`, Default to `Normal`.
34
+ """
35
+ pulumi.set(__self__, "account_name", account_name)
36
+ pulumi.set(__self__, "db_cluster_id", db_cluster_id)
37
+ if account_description is not None:
38
+ pulumi.set(__self__, "account_description", account_description)
39
+ if account_password is not None:
40
+ pulumi.set(__self__, "account_password", account_password)
41
+ if account_type is not None:
42
+ pulumi.set(__self__, "account_type", account_type)
43
+
44
+ @_builtins.property
45
+ @pulumi.getter(name="accountName")
46
+ def account_name(self) -> pulumi.Input[_builtins.str]:
47
+ """
48
+ Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
49
+ """
50
+ return pulumi.get(self, "account_name")
51
+
52
+ @account_name.setter
53
+ def account_name(self, value: pulumi.Input[_builtins.str]):
54
+ pulumi.set(self, "account_name", value)
55
+
56
+ @_builtins.property
57
+ @pulumi.getter(name="dbClusterId")
58
+ def db_cluster_id(self) -> pulumi.Input[_builtins.str]:
59
+ """
60
+ The Id of cluster in which account belongs.
61
+ """
62
+ return pulumi.get(self, "db_cluster_id")
63
+
64
+ @db_cluster_id.setter
65
+ def db_cluster_id(self, value: pulumi.Input[_builtins.str]):
66
+ pulumi.set(self, "db_cluster_id", value)
67
+
68
+ @_builtins.property
69
+ @pulumi.getter(name="accountDescription")
70
+ def account_description(self) -> Optional[pulumi.Input[_builtins.str]]:
71
+ """
72
+ Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
73
+ """
74
+ return pulumi.get(self, "account_description")
75
+
76
+ @account_description.setter
77
+ def account_description(self, value: Optional[pulumi.Input[_builtins.str]]):
78
+ pulumi.set(self, "account_description", value)
79
+
80
+ @_builtins.property
81
+ @pulumi.getter(name="accountPassword")
82
+ def account_password(self) -> Optional[pulumi.Input[_builtins.str]]:
83
+ """
84
+ Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters.
85
+ """
86
+ return pulumi.get(self, "account_password")
87
+
88
+ @account_password.setter
89
+ def account_password(self, value: Optional[pulumi.Input[_builtins.str]]):
90
+ pulumi.set(self, "account_password", value)
91
+
92
+ @_builtins.property
93
+ @pulumi.getter(name="accountType")
94
+ def account_type(self) -> Optional[pulumi.Input[_builtins.str]]:
95
+ """
96
+ Account type, Valid values are `Normal`, `Super`, Default to `Normal`.
97
+ """
98
+ return pulumi.get(self, "account_type")
99
+
100
+ @account_type.setter
101
+ def account_type(self, value: Optional[pulumi.Input[_builtins.str]]):
102
+ pulumi.set(self, "account_type", value)
103
+
104
+
105
+ @pulumi.input_type
106
+ class _ZonalAccountState:
107
+ def __init__(__self__, *,
108
+ account_description: Optional[pulumi.Input[_builtins.str]] = None,
109
+ account_name: Optional[pulumi.Input[_builtins.str]] = None,
110
+ account_password: Optional[pulumi.Input[_builtins.str]] = None,
111
+ account_type: Optional[pulumi.Input[_builtins.str]] = None,
112
+ db_cluster_id: Optional[pulumi.Input[_builtins.str]] = None):
113
+ """
114
+ Input properties used for looking up and filtering ZonalAccount resources.
115
+ :param pulumi.Input[_builtins.str] account_description: Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
116
+ :param pulumi.Input[_builtins.str] account_name: Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
117
+ :param pulumi.Input[_builtins.str] account_password: Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters.
118
+ :param pulumi.Input[_builtins.str] account_type: Account type, Valid values are `Normal`, `Super`, Default to `Normal`.
119
+ :param pulumi.Input[_builtins.str] db_cluster_id: The Id of cluster in which account belongs.
120
+ """
121
+ if account_description is not None:
122
+ pulumi.set(__self__, "account_description", account_description)
123
+ if account_name is not None:
124
+ pulumi.set(__self__, "account_name", account_name)
125
+ if account_password is not None:
126
+ pulumi.set(__self__, "account_password", account_password)
127
+ if account_type is not None:
128
+ pulumi.set(__self__, "account_type", account_type)
129
+ if db_cluster_id is not None:
130
+ pulumi.set(__self__, "db_cluster_id", db_cluster_id)
131
+
132
+ @_builtins.property
133
+ @pulumi.getter(name="accountDescription")
134
+ def account_description(self) -> Optional[pulumi.Input[_builtins.str]]:
135
+ """
136
+ Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
137
+ """
138
+ return pulumi.get(self, "account_description")
139
+
140
+ @account_description.setter
141
+ def account_description(self, value: Optional[pulumi.Input[_builtins.str]]):
142
+ pulumi.set(self, "account_description", value)
143
+
144
+ @_builtins.property
145
+ @pulumi.getter(name="accountName")
146
+ def account_name(self) -> Optional[pulumi.Input[_builtins.str]]:
147
+ """
148
+ Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
149
+ """
150
+ return pulumi.get(self, "account_name")
151
+
152
+ @account_name.setter
153
+ def account_name(self, value: Optional[pulumi.Input[_builtins.str]]):
154
+ pulumi.set(self, "account_name", value)
155
+
156
+ @_builtins.property
157
+ @pulumi.getter(name="accountPassword")
158
+ def account_password(self) -> Optional[pulumi.Input[_builtins.str]]:
159
+ """
160
+ Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters.
161
+ """
162
+ return pulumi.get(self, "account_password")
163
+
164
+ @account_password.setter
165
+ def account_password(self, value: Optional[pulumi.Input[_builtins.str]]):
166
+ pulumi.set(self, "account_password", value)
167
+
168
+ @_builtins.property
169
+ @pulumi.getter(name="accountType")
170
+ def account_type(self) -> Optional[pulumi.Input[_builtins.str]]:
171
+ """
172
+ Account type, Valid values are `Normal`, `Super`, Default to `Normal`.
173
+ """
174
+ return pulumi.get(self, "account_type")
175
+
176
+ @account_type.setter
177
+ def account_type(self, value: Optional[pulumi.Input[_builtins.str]]):
178
+ pulumi.set(self, "account_type", value)
179
+
180
+ @_builtins.property
181
+ @pulumi.getter(name="dbClusterId")
182
+ def db_cluster_id(self) -> Optional[pulumi.Input[_builtins.str]]:
183
+ """
184
+ The Id of cluster in which account belongs.
185
+ """
186
+ return pulumi.get(self, "db_cluster_id")
187
+
188
+ @db_cluster_id.setter
189
+ def db_cluster_id(self, value: Optional[pulumi.Input[_builtins.str]]):
190
+ pulumi.set(self, "db_cluster_id", value)
191
+
192
+
193
+ @pulumi.type_token("alicloud:polardb/zonalAccount:ZonalAccount")
194
+ class ZonalAccount(pulumi.CustomResource):
195
+ @overload
196
+ def __init__(__self__,
197
+ resource_name: str,
198
+ opts: Optional[pulumi.ResourceOptions] = None,
199
+ account_description: Optional[pulumi.Input[_builtins.str]] = None,
200
+ account_name: Optional[pulumi.Input[_builtins.str]] = None,
201
+ account_password: Optional[pulumi.Input[_builtins.str]] = None,
202
+ account_type: Optional[pulumi.Input[_builtins.str]] = None,
203
+ db_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
204
+ __props__=None):
205
+ """
206
+ Provides a PolarDB Zonal account resource and used to manage databases.
207
+
208
+ > **NOTE:** Available since v1.262.0.
209
+
210
+ ## Example Usage
211
+
212
+ ```python
213
+ import pulumi
214
+ import json
215
+ import pulumi_alicloud as alicloud
216
+
217
+ config = pulumi.Config()
218
+ # The advanced configuration for all nodes in the cluster except for the RW node, including db_node_class, hot_replica_mode, and imci_switch properties.
219
+ db_cluster_nodes_configs = config.get_object("dbClusterNodesConfigs")
220
+ if db_cluster_nodes_configs is None:
221
+ db_cluster_nodes_configs = {
222
+ "db_node_1": {
223
+ "dbNodeClass": "polar.mysql.x4.medium.c",
224
+ "dbNodeRole": "Writer",
225
+ "hotReplicaMode": None,
226
+ "imciSwitch": None,
227
+ },
228
+ }
229
+ default = alicloud.ens.Network("default",
230
+ network_name="terraform-example",
231
+ description="LoadBalancerNetworkDescription_test",
232
+ cidr_block="192.168.2.0/24",
233
+ ens_region_id="tr-Istanbul-1")
234
+ default_vswitch = alicloud.ens.Vswitch("default",
235
+ description="LoadBalancerVSwitchDescription_test",
236
+ cidr_block="192.168.2.0/24",
237
+ vswitch_name="terraform-example",
238
+ ens_region_id="tr-Istanbul-1",
239
+ network_id=default.id)
240
+ default_zonal_db_cluster = alicloud.polardb.ZonalDbCluster("default",
241
+ db_node_class="polar.mysql.x4.medium.c",
242
+ description="terraform-example",
243
+ ens_region_id="tr-Istanbul-1",
244
+ vpc_id=default.id,
245
+ vswitch_id=default_vswitch.id,
246
+ db_cluster_nodes_configs={node: json.dumps({k: v for k, v in config if v != None}) for node, config in db_cluster_nodes_configs})
247
+ default_zonal_account = alicloud.polardb.ZonalAccount("default",
248
+ db_cluster_id=default_zonal_db_cluster.id,
249
+ account_name="terraform_example",
250
+ account_password="Example1234")
251
+ ```
252
+
253
+ ## Import
254
+
255
+ PolarDB Zonal account can be imported using the id, e.g.
256
+
257
+ ```sh
258
+ $ pulumi import alicloud:polardb/zonalAccount:ZonalAccount example "pc-12345:tf_account"
259
+ ```
260
+
261
+ :param str resource_name: The name of the resource.
262
+ :param pulumi.ResourceOptions opts: Options for the resource.
263
+ :param pulumi.Input[_builtins.str] account_description: Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
264
+ :param pulumi.Input[_builtins.str] account_name: Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
265
+ :param pulumi.Input[_builtins.str] account_password: Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters.
266
+ :param pulumi.Input[_builtins.str] account_type: Account type, Valid values are `Normal`, `Super`, Default to `Normal`.
267
+ :param pulumi.Input[_builtins.str] db_cluster_id: The Id of cluster in which account belongs.
268
+ """
269
+ ...
270
+ @overload
271
+ def __init__(__self__,
272
+ resource_name: str,
273
+ args: ZonalAccountArgs,
274
+ opts: Optional[pulumi.ResourceOptions] = None):
275
+ """
276
+ Provides a PolarDB Zonal account resource and used to manage databases.
277
+
278
+ > **NOTE:** Available since v1.262.0.
279
+
280
+ ## Example Usage
281
+
282
+ ```python
283
+ import pulumi
284
+ import json
285
+ import pulumi_alicloud as alicloud
286
+
287
+ config = pulumi.Config()
288
+ # The advanced configuration for all nodes in the cluster except for the RW node, including db_node_class, hot_replica_mode, and imci_switch properties.
289
+ db_cluster_nodes_configs = config.get_object("dbClusterNodesConfigs")
290
+ if db_cluster_nodes_configs is None:
291
+ db_cluster_nodes_configs = {
292
+ "db_node_1": {
293
+ "dbNodeClass": "polar.mysql.x4.medium.c",
294
+ "dbNodeRole": "Writer",
295
+ "hotReplicaMode": None,
296
+ "imciSwitch": None,
297
+ },
298
+ }
299
+ default = alicloud.ens.Network("default",
300
+ network_name="terraform-example",
301
+ description="LoadBalancerNetworkDescription_test",
302
+ cidr_block="192.168.2.0/24",
303
+ ens_region_id="tr-Istanbul-1")
304
+ default_vswitch = alicloud.ens.Vswitch("default",
305
+ description="LoadBalancerVSwitchDescription_test",
306
+ cidr_block="192.168.2.0/24",
307
+ vswitch_name="terraform-example",
308
+ ens_region_id="tr-Istanbul-1",
309
+ network_id=default.id)
310
+ default_zonal_db_cluster = alicloud.polardb.ZonalDbCluster("default",
311
+ db_node_class="polar.mysql.x4.medium.c",
312
+ description="terraform-example",
313
+ ens_region_id="tr-Istanbul-1",
314
+ vpc_id=default.id,
315
+ vswitch_id=default_vswitch.id,
316
+ db_cluster_nodes_configs={node: json.dumps({k: v for k, v in config if v != None}) for node, config in db_cluster_nodes_configs})
317
+ default_zonal_account = alicloud.polardb.ZonalAccount("default",
318
+ db_cluster_id=default_zonal_db_cluster.id,
319
+ account_name="terraform_example",
320
+ account_password="Example1234")
321
+ ```
322
+
323
+ ## Import
324
+
325
+ PolarDB Zonal account can be imported using the id, e.g.
326
+
327
+ ```sh
328
+ $ pulumi import alicloud:polardb/zonalAccount:ZonalAccount example "pc-12345:tf_account"
329
+ ```
330
+
331
+ :param str resource_name: The name of the resource.
332
+ :param ZonalAccountArgs args: The arguments to use to populate this resource's properties.
333
+ :param pulumi.ResourceOptions opts: Options for the resource.
334
+ """
335
+ ...
336
+ def __init__(__self__, resource_name: str, *args, **kwargs):
337
+ resource_args, opts = _utilities.get_resource_args_opts(ZonalAccountArgs, pulumi.ResourceOptions, *args, **kwargs)
338
+ if resource_args is not None:
339
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
340
+ else:
341
+ __self__._internal_init(resource_name, *args, **kwargs)
342
+
343
+ def _internal_init(__self__,
344
+ resource_name: str,
345
+ opts: Optional[pulumi.ResourceOptions] = None,
346
+ account_description: Optional[pulumi.Input[_builtins.str]] = None,
347
+ account_name: Optional[pulumi.Input[_builtins.str]] = None,
348
+ account_password: Optional[pulumi.Input[_builtins.str]] = None,
349
+ account_type: Optional[pulumi.Input[_builtins.str]] = None,
350
+ db_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
351
+ __props__=None):
352
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
353
+ if not isinstance(opts, pulumi.ResourceOptions):
354
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
355
+ if opts.id is None:
356
+ if __props__ is not None:
357
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
358
+ __props__ = ZonalAccountArgs.__new__(ZonalAccountArgs)
359
+
360
+ __props__.__dict__["account_description"] = account_description
361
+ if account_name is None and not opts.urn:
362
+ raise TypeError("Missing required property 'account_name'")
363
+ __props__.__dict__["account_name"] = account_name
364
+ __props__.__dict__["account_password"] = None if account_password is None else pulumi.Output.secret(account_password)
365
+ __props__.__dict__["account_type"] = account_type
366
+ if db_cluster_id is None and not opts.urn:
367
+ raise TypeError("Missing required property 'db_cluster_id'")
368
+ __props__.__dict__["db_cluster_id"] = db_cluster_id
369
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accountPassword"])
370
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
371
+ super(ZonalAccount, __self__).__init__(
372
+ 'alicloud:polardb/zonalAccount:ZonalAccount',
373
+ resource_name,
374
+ __props__,
375
+ opts)
376
+
377
+ @staticmethod
378
+ def get(resource_name: str,
379
+ id: pulumi.Input[str],
380
+ opts: Optional[pulumi.ResourceOptions] = None,
381
+ account_description: Optional[pulumi.Input[_builtins.str]] = None,
382
+ account_name: Optional[pulumi.Input[_builtins.str]] = None,
383
+ account_password: Optional[pulumi.Input[_builtins.str]] = None,
384
+ account_type: Optional[pulumi.Input[_builtins.str]] = None,
385
+ db_cluster_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'ZonalAccount':
386
+ """
387
+ Get an existing ZonalAccount resource's state with the given name, id, and optional extra
388
+ properties used to qualify the lookup.
389
+
390
+ :param str resource_name: The unique name of the resulting resource.
391
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
392
+ :param pulumi.ResourceOptions opts: Options for the resource.
393
+ :param pulumi.Input[_builtins.str] account_description: Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
394
+ :param pulumi.Input[_builtins.str] account_name: Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
395
+ :param pulumi.Input[_builtins.str] account_password: Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters.
396
+ :param pulumi.Input[_builtins.str] account_type: Account type, Valid values are `Normal`, `Super`, Default to `Normal`.
397
+ :param pulumi.Input[_builtins.str] db_cluster_id: The Id of cluster in which account belongs.
398
+ """
399
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
400
+
401
+ __props__ = _ZonalAccountState.__new__(_ZonalAccountState)
402
+
403
+ __props__.__dict__["account_description"] = account_description
404
+ __props__.__dict__["account_name"] = account_name
405
+ __props__.__dict__["account_password"] = account_password
406
+ __props__.__dict__["account_type"] = account_type
407
+ __props__.__dict__["db_cluster_id"] = db_cluster_id
408
+ return ZonalAccount(resource_name, opts=opts, __props__=__props__)
409
+
410
+ @_builtins.property
411
+ @pulumi.getter(name="accountDescription")
412
+ def account_description(self) -> pulumi.Output[Optional[_builtins.str]]:
413
+ """
414
+ Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
415
+ """
416
+ return pulumi.get(self, "account_description")
417
+
418
+ @_builtins.property
419
+ @pulumi.getter(name="accountName")
420
+ def account_name(self) -> pulumi.Output[_builtins.str]:
421
+ """
422
+ Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
423
+ """
424
+ return pulumi.get(self, "account_name")
425
+
426
+ @_builtins.property
427
+ @pulumi.getter(name="accountPassword")
428
+ def account_password(self) -> pulumi.Output[_builtins.str]:
429
+ """
430
+ Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters.
431
+ """
432
+ return pulumi.get(self, "account_password")
433
+
434
+ @_builtins.property
435
+ @pulumi.getter(name="accountType")
436
+ def account_type(self) -> pulumi.Output[_builtins.str]:
437
+ """
438
+ Account type, Valid values are `Normal`, `Super`, Default to `Normal`.
439
+ """
440
+ return pulumi.get(self, "account_type")
441
+
442
+ @_builtins.property
443
+ @pulumi.getter(name="dbClusterId")
444
+ def db_cluster_id(self) -> pulumi.Output[_builtins.str]:
445
+ """
446
+ The Id of cluster in which account belongs.
447
+ """
448
+ return pulumi.get(self, "db_cluster_id")
449
+
@@ -737,7 +737,7 @@ class ZonalDbCluster(pulumi.CustomResource):
737
737
  environment in the cloud. An PolarDB zonal cluster can contain multiple user-created
738
738
  databases.
739
739
 
740
- > **NOTE:** Available since v1.66.0.
740
+ > **NOTE:** Available since v1.261.0.
741
741
 
742
742
  ## Example Usage
743
743
 
@@ -828,7 +828,7 @@ class ZonalDbCluster(pulumi.CustomResource):
828
828
  environment in the cloud. An PolarDB zonal cluster can contain multiple user-created
829
829
  databases.
830
830
 
831
- > **NOTE:** Available since v1.66.0.
831
+ > **NOTE:** Available since v1.261.0.
832
832
 
833
833
  ## Example Usage
834
834