pulumi-alicloud 3.73.0a1736850863__py3-none-any.whl → 3.74.0__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 (123) hide show
  1. pulumi_alicloud/__init__.py +139 -0
  2. pulumi_alicloud/alb/__init__.py +2 -0
  3. pulumi_alicloud/alb/_inputs.py +913 -250
  4. pulumi_alicloud/alb/a_script.py +116 -98
  5. pulumi_alicloud/alb/get_server_groups.py +55 -25
  6. pulumi_alicloud/alb/listener.py +269 -174
  7. pulumi_alicloud/alb/load_balancer.py +239 -118
  8. pulumi_alicloud/alb/load_balancer_access_log_config_attachment.py +303 -0
  9. pulumi_alicloud/alb/load_balancer_zone_shifted_attachment.py +303 -0
  10. pulumi_alicloud/alb/outputs.py +720 -222
  11. pulumi_alicloud/alb/server_group.py +532 -122
  12. pulumi_alicloud/alikafka/instance.py +188 -70
  13. pulumi_alicloud/amqp/instance.py +77 -28
  14. pulumi_alicloud/bastionhost/_inputs.py +40 -38
  15. pulumi_alicloud/bastionhost/get_instances.py +6 -22
  16. pulumi_alicloud/bastionhost/outputs.py +60 -49
  17. pulumi_alicloud/cen/_inputs.py +34 -0
  18. pulumi_alicloud/cen/instance_grant.py +4 -0
  19. pulumi_alicloud/cen/outputs.py +37 -0
  20. pulumi_alicloud/cen/transit_router_multicast_domain.py +123 -36
  21. pulumi_alicloud/cloudcontrol/__init__.py +12 -0
  22. pulumi_alicloud/cloudcontrol/get_prices.py +199 -0
  23. pulumi_alicloud/cloudcontrol/get_products.py +187 -0
  24. pulumi_alicloud/cloudcontrol/get_resource_types.py +178 -0
  25. pulumi_alicloud/cloudcontrol/outputs.py +688 -0
  26. pulumi_alicloud/cloudcontrol/resource.py +407 -0
  27. pulumi_alicloud/cms/_inputs.py +21 -15
  28. pulumi_alicloud/cms/alarm.py +7 -7
  29. pulumi_alicloud/cms/outputs.py +14 -10
  30. pulumi_alicloud/cs/_inputs.py +349 -1
  31. pulumi_alicloud/cs/get_edge_kubernetes_clusters.py +4 -2
  32. pulumi_alicloud/cs/get_managed_kubernetes_clusters.py +2 -0
  33. pulumi_alicloud/cs/kubernetes.py +29 -29
  34. pulumi_alicloud/cs/managed_kubernetes.py +137 -47
  35. pulumi_alicloud/cs/node_pool.py +77 -2
  36. pulumi_alicloud/cs/outputs.py +265 -1
  37. pulumi_alicloud/dataworks/__init__.py +4 -0
  38. pulumi_alicloud/dataworks/_inputs.py +1534 -0
  39. pulumi_alicloud/dataworks/di_alarm_rule.py +708 -0
  40. pulumi_alicloud/dataworks/di_job.py +1005 -0
  41. pulumi_alicloud/dataworks/dw_resource_group.py +703 -0
  42. pulumi_alicloud/dataworks/network.py +331 -0
  43. pulumi_alicloud/dataworks/outputs.py +1247 -0
  44. pulumi_alicloud/dcdn/waf_rule.py +14 -14
  45. pulumi_alicloud/dfs/file_system.py +62 -23
  46. pulumi_alicloud/dfs/mount_point.py +48 -22
  47. pulumi_alicloud/dns/get_alidns_domains.py +7 -2
  48. pulumi_alicloud/dns/outputs.py +8 -0
  49. pulumi_alicloud/ecs/ecs_launch_template.py +122 -0
  50. pulumi_alicloud/ecs/ecs_network_interface.py +14 -14
  51. pulumi_alicloud/ecs/ecs_session_manager_status.py +18 -18
  52. pulumi_alicloud/ecs/instance.py +7 -7
  53. pulumi_alicloud/ecs/launch_template.py +88 -0
  54. pulumi_alicloud/esa/__init__.py +3 -0
  55. pulumi_alicloud/esa/_inputs.py +81 -0
  56. pulumi_alicloud/esa/http_request_header_modification_rule.py +531 -0
  57. pulumi_alicloud/esa/list.py +361 -0
  58. pulumi_alicloud/esa/outputs.py +48 -0
  59. pulumi_alicloud/esa/page.py +376 -0
  60. pulumi_alicloud/esa/rate_plan_instance.py +63 -7
  61. pulumi_alicloud/ess/get_scaling_groups.py +64 -10
  62. pulumi_alicloud/ess/get_scaling_rules.py +74 -10
  63. pulumi_alicloud/ess/outputs.py +357 -17
  64. pulumi_alicloud/eventbridge/get_service.py +2 -6
  65. pulumi_alicloud/fc/_inputs.py +75 -75
  66. pulumi_alicloud/fc/custom_domain.py +2 -2
  67. pulumi_alicloud/fc/function.py +32 -4
  68. pulumi_alicloud/fc/outputs.py +50 -50
  69. pulumi_alicloud/fc/v2_function.py +20 -0
  70. pulumi_alicloud/fc/v3_function.py +53 -6
  71. pulumi_alicloud/hbr/__init__.py +1 -0
  72. pulumi_alicloud/hbr/cross_account.py +338 -0
  73. pulumi_alicloud/ims/oidc_provider.py +28 -0
  74. pulumi_alicloud/kms/__init__.py +1 -0
  75. pulumi_alicloud/kms/get_instances.py +160 -0
  76. pulumi_alicloud/kms/instance.py +0 -60
  77. pulumi_alicloud/kms/outputs.py +19 -0
  78. pulumi_alicloud/log/resource_record.py +42 -26
  79. pulumi_alicloud/maxcompute/__init__.py +5 -0
  80. pulumi_alicloud/maxcompute/_inputs.py +615 -42
  81. pulumi_alicloud/maxcompute/outputs.py +486 -28
  82. pulumi_alicloud/maxcompute/project.py +63 -31
  83. pulumi_alicloud/maxcompute/quota_plan.py +412 -0
  84. pulumi_alicloud/maxcompute/quota_schedule.py +260 -0
  85. pulumi_alicloud/maxcompute/role.py +423 -0
  86. pulumi_alicloud/maxcompute/role_user_attachment.py +368 -0
  87. pulumi_alicloud/maxcompute/tunnel_quota_timer.py +287 -0
  88. pulumi_alicloud/message/service_queue.py +106 -59
  89. pulumi_alicloud/message/service_topic.py +182 -37
  90. pulumi_alicloud/mongodb/account.py +138 -163
  91. pulumi_alicloud/oos/secret_parameter.py +84 -9
  92. pulumi_alicloud/oss/bucket.py +1 -1
  93. pulumi_alicloud/oss/bucket_policy.py +2 -4
  94. pulumi_alicloud/oss/bucket_referer.py +2 -4
  95. pulumi_alicloud/oss/get_buckets.py +16 -2
  96. pulumi_alicloud/oss/outputs.py +18 -17
  97. pulumi_alicloud/pulumi-plugin.json +1 -1
  98. pulumi_alicloud/rds/instance.py +68 -0
  99. pulumi_alicloud/sae/application.py +84 -7
  100. pulumi_alicloud/sls/collection_policy.py +2 -2
  101. pulumi_alicloud/vpc/__init__.py +6 -0
  102. pulumi_alicloud/vpc/get_ipam_ipam_pool_allocations.py +295 -0
  103. pulumi_alicloud/vpc/get_ipam_ipam_pool_cidrs.py +196 -0
  104. pulumi_alicloud/vpc/get_ipam_ipam_pools.py +353 -0
  105. pulumi_alicloud/vpc/get_ipam_ipam_scopes.py +333 -0
  106. pulumi_alicloud/vpc/get_ipam_ipams.py +291 -0
  107. pulumi_alicloud/vpc/get_networks.py +3 -0
  108. pulumi_alicloud/vpc/ipam_ipam_pool.py +47 -0
  109. pulumi_alicloud/vpc/ipam_ipam_scope.py +47 -0
  110. pulumi_alicloud/vpc/ipam_service.py +144 -0
  111. pulumi_alicloud/vpc/ipv4_cidr_block.py +162 -51
  112. pulumi_alicloud/vpc/nat_gateway.py +145 -7
  113. pulumi_alicloud/vpc/outputs.py +777 -0
  114. pulumi_alicloud/vpc/snat_entry.py +107 -48
  115. pulumi_alicloud/vpn/_inputs.py +96 -72
  116. pulumi_alicloud/vpn/connection.py +24 -28
  117. pulumi_alicloud/vpn/outputs.py +64 -48
  118. pulumi_alicloud/yundun/_inputs.py +26 -24
  119. pulumi_alicloud/yundun/outputs.py +37 -22
  120. {pulumi_alicloud-3.73.0a1736850863.dist-info → pulumi_alicloud-3.74.0.dist-info}/METADATA +1 -1
  121. {pulumi_alicloud-3.73.0a1736850863.dist-info → pulumi_alicloud-3.74.0.dist-info}/RECORD +123 -95
  122. {pulumi_alicloud-3.73.0a1736850863.dist-info → pulumi_alicloud-3.74.0.dist-info}/WHEEL +0 -0
  123. {pulumi_alicloud-3.73.0a1736850863.dist-info → pulumi_alicloud-3.74.0.dist-info}/top_level.txt +0 -0
@@ -22,29 +22,40 @@ class AccountArgs:
22
22
  account_name: pulumi.Input[str],
23
23
  account_password: pulumi.Input[str],
24
24
  instance_id: pulumi.Input[str],
25
- account_description: Optional[pulumi.Input[str]] = None):
25
+ account_description: Optional[pulumi.Input[str]] = None,
26
+ character_type: Optional[pulumi.Input[str]] = None):
26
27
  """
27
28
  The set of arguments for constructing a Account resource.
28
- :param pulumi.Input[str] account_name: The name of the account. Valid values: `root`.
29
- :param pulumi.Input[str] account_password: The Password of the Account.
30
- * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `!#$%^&*()_+-=`.
31
- * The password must be `8` to `32` characters in length.
32
- :param pulumi.Input[str] instance_id: The ID of the instance.
33
- :param pulumi.Input[str] account_description: The description of the account.
34
- * The description must start with a letter, and cannot start with `http://` or `https://`.
35
- * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
29
+ :param pulumi.Input[str] account_name: The new password.
30
+
31
+ - The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! # $ % ^ & * ( ) _ + - =`
32
+ - The password must be 8 to 32 characters in length.
33
+ :param pulumi.Input[str] account_password: The password of the database account. The password must be 8 to 32 characters in length. It can contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! # $ % ^ & \\* ( ) \\_ + - =
34
+ :param pulumi.Input[str] instance_id: The account whose password needs to be reset. Set the value to `root`.
35
+ :param pulumi.Input[str] account_description: Account comment information.
36
+
37
+ > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
38
+ :param pulumi.Input[str] character_type: The role type of the instance. Value description
39
+
40
+ - When the instance type is sharded cluster, charactertype is required. The values are db and cs.
41
+ - When the instance type is a replica set, charactertype can be null or pass in normal.
36
42
  """
37
43
  pulumi.set(__self__, "account_name", account_name)
38
44
  pulumi.set(__self__, "account_password", account_password)
39
45
  pulumi.set(__self__, "instance_id", instance_id)
40
46
  if account_description is not None:
41
47
  pulumi.set(__self__, "account_description", account_description)
48
+ if character_type is not None:
49
+ pulumi.set(__self__, "character_type", character_type)
42
50
 
43
51
  @property
44
52
  @pulumi.getter(name="accountName")
45
53
  def account_name(self) -> pulumi.Input[str]:
46
54
  """
47
- The name of the account. Valid values: `root`.
55
+ The new password.
56
+
57
+ - The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! # $ % ^ & * ( ) _ + - =`
58
+ - The password must be 8 to 32 characters in length.
48
59
  """
49
60
  return pulumi.get(self, "account_name")
50
61
 
@@ -56,9 +67,7 @@ class AccountArgs:
56
67
  @pulumi.getter(name="accountPassword")
57
68
  def account_password(self) -> pulumi.Input[str]:
58
69
  """
59
- The Password of the Account.
60
- * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `!#$%^&*()_+-=`.
61
- * The password must be `8` to `32` characters in length.
70
+ The password of the database account. The password must be 8 to 32 characters in length. It can contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! # $ % ^ & \\* ( ) \\_ + - =
62
71
  """
63
72
  return pulumi.get(self, "account_password")
64
73
 
@@ -70,7 +79,7 @@ class AccountArgs:
70
79
  @pulumi.getter(name="instanceId")
71
80
  def instance_id(self) -> pulumi.Input[str]:
72
81
  """
73
- The ID of the instance.
82
+ The account whose password needs to be reset. Set the value to `root`.
74
83
  """
75
84
  return pulumi.get(self, "instance_id")
76
85
 
@@ -82,9 +91,9 @@ class AccountArgs:
82
91
  @pulumi.getter(name="accountDescription")
83
92
  def account_description(self) -> Optional[pulumi.Input[str]]:
84
93
  """
85
- The description of the account.
86
- * The description must start with a letter, and cannot start with `http://` or `https://`.
87
- * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
94
+ Account comment information.
95
+
96
+ > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
88
97
  """
89
98
  return pulumi.get(self, "account_description")
90
99
 
@@ -92,6 +101,21 @@ class AccountArgs:
92
101
  def account_description(self, value: Optional[pulumi.Input[str]]):
93
102
  pulumi.set(self, "account_description", value)
94
103
 
104
+ @property
105
+ @pulumi.getter(name="characterType")
106
+ def character_type(self) -> Optional[pulumi.Input[str]]:
107
+ """
108
+ The role type of the instance. Value description
109
+
110
+ - When the instance type is sharded cluster, charactertype is required. The values are db and cs.
111
+ - When the instance type is a replica set, charactertype can be null or pass in normal.
112
+ """
113
+ return pulumi.get(self, "character_type")
114
+
115
+ @character_type.setter
116
+ def character_type(self, value: Optional[pulumi.Input[str]]):
117
+ pulumi.set(self, "character_type", value)
118
+
95
119
 
96
120
  @pulumi.input_type
97
121
  class _AccountState:
@@ -99,19 +123,25 @@ class _AccountState:
99
123
  account_description: Optional[pulumi.Input[str]] = None,
100
124
  account_name: Optional[pulumi.Input[str]] = None,
101
125
  account_password: Optional[pulumi.Input[str]] = None,
126
+ character_type: Optional[pulumi.Input[str]] = None,
102
127
  instance_id: Optional[pulumi.Input[str]] = None,
103
128
  status: Optional[pulumi.Input[str]] = None):
104
129
  """
105
130
  Input properties used for looking up and filtering Account resources.
106
- :param pulumi.Input[str] account_description: The description of the account.
107
- * The description must start with a letter, and cannot start with `http://` or `https://`.
108
- * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
109
- :param pulumi.Input[str] account_name: The name of the account. Valid values: `root`.
110
- :param pulumi.Input[str] account_password: The Password of the Account.
111
- * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `!#$%^&*()_+-=`.
112
- * The password must be `8` to `32` characters in length.
113
- :param pulumi.Input[str] instance_id: The ID of the instance.
114
- :param pulumi.Input[str] status: The status of the account. Valid values: `Unavailable`, `Available`.
131
+ :param pulumi.Input[str] account_description: Account comment information.
132
+
133
+ > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
134
+ :param pulumi.Input[str] account_name: The new password.
135
+
136
+ - The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! # $ % ^ & * ( ) _ + - =`
137
+ - The password must be 8 to 32 characters in length.
138
+ :param pulumi.Input[str] account_password: The password of the database account. The password must be 8 to 32 characters in length. It can contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! # $ % ^ & \\* ( ) \\_ + - =
139
+ :param pulumi.Input[str] character_type: The role type of the instance. Value description
140
+
141
+ - When the instance type is sharded cluster, charactertype is required. The values are db and cs.
142
+ - When the instance type is a replica set, charactertype can be null or pass in normal.
143
+ :param pulumi.Input[str] instance_id: The account whose password needs to be reset. Set the value to `root`.
144
+ :param pulumi.Input[str] status: Account Status
115
145
  """
116
146
  if account_description is not None:
117
147
  pulumi.set(__self__, "account_description", account_description)
@@ -119,6 +149,8 @@ class _AccountState:
119
149
  pulumi.set(__self__, "account_name", account_name)
120
150
  if account_password is not None:
121
151
  pulumi.set(__self__, "account_password", account_password)
152
+ if character_type is not None:
153
+ pulumi.set(__self__, "character_type", character_type)
122
154
  if instance_id is not None:
123
155
  pulumi.set(__self__, "instance_id", instance_id)
124
156
  if status is not None:
@@ -128,9 +160,9 @@ class _AccountState:
128
160
  @pulumi.getter(name="accountDescription")
129
161
  def account_description(self) -> Optional[pulumi.Input[str]]:
130
162
  """
131
- The description of the account.
132
- * The description must start with a letter, and cannot start with `http://` or `https://`.
133
- * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
163
+ Account comment information.
164
+
165
+ > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
134
166
  """
135
167
  return pulumi.get(self, "account_description")
136
168
 
@@ -142,7 +174,10 @@ class _AccountState:
142
174
  @pulumi.getter(name="accountName")
143
175
  def account_name(self) -> Optional[pulumi.Input[str]]:
144
176
  """
145
- The name of the account. Valid values: `root`.
177
+ The new password.
178
+
179
+ - The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! # $ % ^ & * ( ) _ + - =`
180
+ - The password must be 8 to 32 characters in length.
146
181
  """
147
182
  return pulumi.get(self, "account_name")
148
183
 
@@ -154,9 +189,7 @@ class _AccountState:
154
189
  @pulumi.getter(name="accountPassword")
155
190
  def account_password(self) -> Optional[pulumi.Input[str]]:
156
191
  """
157
- The Password of the Account.
158
- * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `!#$%^&*()_+-=`.
159
- * The password must be `8` to `32` characters in length.
192
+ The password of the database account. The password must be 8 to 32 characters in length. It can contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! # $ % ^ & \\* ( ) \\_ + - =
160
193
  """
161
194
  return pulumi.get(self, "account_password")
162
195
 
@@ -164,11 +197,26 @@ class _AccountState:
164
197
  def account_password(self, value: Optional[pulumi.Input[str]]):
165
198
  pulumi.set(self, "account_password", value)
166
199
 
200
+ @property
201
+ @pulumi.getter(name="characterType")
202
+ def character_type(self) -> Optional[pulumi.Input[str]]:
203
+ """
204
+ The role type of the instance. Value description
205
+
206
+ - When the instance type is sharded cluster, charactertype is required. The values are db and cs.
207
+ - When the instance type is a replica set, charactertype can be null or pass in normal.
208
+ """
209
+ return pulumi.get(self, "character_type")
210
+
211
+ @character_type.setter
212
+ def character_type(self, value: Optional[pulumi.Input[str]]):
213
+ pulumi.set(self, "character_type", value)
214
+
167
215
  @property
168
216
  @pulumi.getter(name="instanceId")
169
217
  def instance_id(self) -> Optional[pulumi.Input[str]]:
170
218
  """
171
- The ID of the instance.
219
+ The account whose password needs to be reset. Set the value to `root`.
172
220
  """
173
221
  return pulumi.get(self, "instance_id")
174
222
 
@@ -180,7 +228,7 @@ class _AccountState:
180
228
  @pulumi.getter
181
229
  def status(self) -> Optional[pulumi.Input[str]]:
182
230
  """
183
- The status of the account. Valid values: `Unavailable`, `Available`.
231
+ Account Status
184
232
  """
185
233
  return pulumi.get(self, "status")
186
234
 
@@ -197,62 +245,13 @@ class Account(pulumi.CustomResource):
197
245
  account_description: Optional[pulumi.Input[str]] = None,
198
246
  account_name: Optional[pulumi.Input[str]] = None,
199
247
  account_password: Optional[pulumi.Input[str]] = None,
248
+ character_type: Optional[pulumi.Input[str]] = None,
200
249
  instance_id: Optional[pulumi.Input[str]] = None,
201
250
  __props__=None):
202
251
  """
203
- Provides a MongoDB Account resource.
204
-
205
- For information about MongoDB Account and how to use it, see [What is Account](https://www.alibabacloud.com/help/en/doc-detail/62154.html).
206
-
207
- > **NOTE:** Available since v1.148.0.
208
-
209
- ## Example Usage
210
-
211
- Basic 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 = "terraform-example"
221
- default = alicloud.mongodb.get_zones()
222
- index = len(default.zones) - 1
223
- zone_id = default.zones[index].id
224
- default_network = alicloud.vpc.Network("default",
225
- vpc_name=name,
226
- cidr_block="172.17.3.0/24")
227
- default_switch = alicloud.vpc.Switch("default",
228
- vswitch_name=name,
229
- cidr_block="172.17.3.0/24",
230
- vpc_id=default_network.id,
231
- zone_id=zone_id)
232
- default_instance = alicloud.mongodb.Instance("default",
233
- engine_version="4.2",
234
- db_instance_class="dds.mongo.mid",
235
- db_instance_storage=10,
236
- vswitch_id=default_switch.id,
237
- security_ip_lists=[
238
- "10.168.1.12",
239
- "100.69.7.112",
240
- ],
241
- name=name,
242
- tags={
243
- "Created": "TF",
244
- "For": "example",
245
- })
246
- default_account = alicloud.mongodb.Account("default",
247
- account_name="root",
248
- account_password="Example_123",
249
- instance_id=default_instance.id,
250
- account_description=name)
251
- ```
252
-
253
252
  ## Import
254
253
 
255
- MongoDB Account can be imported using the id, e.g.
254
+ Mongo D B Account can be imported using the id, e.g.
256
255
 
257
256
  ```sh
258
257
  $ pulumi import alicloud:mongodb/account:Account example <instance_id>:<account_name>
@@ -260,14 +259,19 @@ class Account(pulumi.CustomResource):
260
259
 
261
260
  :param str resource_name: The name of the resource.
262
261
  :param pulumi.ResourceOptions opts: Options for the resource.
263
- :param pulumi.Input[str] account_description: The description of the account.
264
- * The description must start with a letter, and cannot start with `http://` or `https://`.
265
- * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
266
- :param pulumi.Input[str] account_name: The name of the account. Valid values: `root`.
267
- :param pulumi.Input[str] account_password: The Password of the Account.
268
- * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `!#$%^&*()_+-=`.
269
- * The password must be `8` to `32` characters in length.
270
- :param pulumi.Input[str] instance_id: The ID of the instance.
262
+ :param pulumi.Input[str] account_description: Account comment information.
263
+
264
+ > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
265
+ :param pulumi.Input[str] account_name: The new password.
266
+
267
+ - The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! # $ % ^ & * ( ) _ + - =`
268
+ - The password must be 8 to 32 characters in length.
269
+ :param pulumi.Input[str] account_password: The password of the database account. The password must be 8 to 32 characters in length. It can contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! # $ % ^ & \\* ( ) \\_ + - =
270
+ :param pulumi.Input[str] character_type: The role type of the instance. Value description
271
+
272
+ - When the instance type is sharded cluster, charactertype is required. The values are db and cs.
273
+ - When the instance type is a replica set, charactertype can be null or pass in normal.
274
+ :param pulumi.Input[str] instance_id: The account whose password needs to be reset. Set the value to `root`.
271
275
  """
272
276
  ...
273
277
  @overload
@@ -276,59 +280,9 @@ class Account(pulumi.CustomResource):
276
280
  args: AccountArgs,
277
281
  opts: Optional[pulumi.ResourceOptions] = None):
278
282
  """
279
- Provides a MongoDB Account resource.
280
-
281
- For information about MongoDB Account and how to use it, see [What is Account](https://www.alibabacloud.com/help/en/doc-detail/62154.html).
282
-
283
- > **NOTE:** Available since v1.148.0.
284
-
285
- ## Example Usage
286
-
287
- Basic Usage
288
-
289
- ```python
290
- import pulumi
291
- import pulumi_alicloud as alicloud
292
-
293
- config = pulumi.Config()
294
- name = config.get("name")
295
- if name is None:
296
- name = "terraform-example"
297
- default = alicloud.mongodb.get_zones()
298
- index = len(default.zones) - 1
299
- zone_id = default.zones[index].id
300
- default_network = alicloud.vpc.Network("default",
301
- vpc_name=name,
302
- cidr_block="172.17.3.0/24")
303
- default_switch = alicloud.vpc.Switch("default",
304
- vswitch_name=name,
305
- cidr_block="172.17.3.0/24",
306
- vpc_id=default_network.id,
307
- zone_id=zone_id)
308
- default_instance = alicloud.mongodb.Instance("default",
309
- engine_version="4.2",
310
- db_instance_class="dds.mongo.mid",
311
- db_instance_storage=10,
312
- vswitch_id=default_switch.id,
313
- security_ip_lists=[
314
- "10.168.1.12",
315
- "100.69.7.112",
316
- ],
317
- name=name,
318
- tags={
319
- "Created": "TF",
320
- "For": "example",
321
- })
322
- default_account = alicloud.mongodb.Account("default",
323
- account_name="root",
324
- account_password="Example_123",
325
- instance_id=default_instance.id,
326
- account_description=name)
327
- ```
328
-
329
283
  ## Import
330
284
 
331
- MongoDB Account can be imported using the id, e.g.
285
+ Mongo D B Account can be imported using the id, e.g.
332
286
 
333
287
  ```sh
334
288
  $ pulumi import alicloud:mongodb/account:Account example <instance_id>:<account_name>
@@ -352,6 +306,7 @@ class Account(pulumi.CustomResource):
352
306
  account_description: Optional[pulumi.Input[str]] = None,
353
307
  account_name: Optional[pulumi.Input[str]] = None,
354
308
  account_password: Optional[pulumi.Input[str]] = None,
309
+ character_type: Optional[pulumi.Input[str]] = None,
355
310
  instance_id: Optional[pulumi.Input[str]] = None,
356
311
  __props__=None):
357
312
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -369,6 +324,7 @@ class Account(pulumi.CustomResource):
369
324
  if account_password is None and not opts.urn:
370
325
  raise TypeError("Missing required property 'account_password'")
371
326
  __props__.__dict__["account_password"] = None if account_password is None else pulumi.Output.secret(account_password)
327
+ __props__.__dict__["character_type"] = character_type
372
328
  if instance_id is None and not opts.urn:
373
329
  raise TypeError("Missing required property 'instance_id'")
374
330
  __props__.__dict__["instance_id"] = instance_id
@@ -388,6 +344,7 @@ class Account(pulumi.CustomResource):
388
344
  account_description: Optional[pulumi.Input[str]] = None,
389
345
  account_name: Optional[pulumi.Input[str]] = None,
390
346
  account_password: Optional[pulumi.Input[str]] = None,
347
+ character_type: Optional[pulumi.Input[str]] = None,
391
348
  instance_id: Optional[pulumi.Input[str]] = None,
392
349
  status: Optional[pulumi.Input[str]] = None) -> 'Account':
393
350
  """
@@ -397,15 +354,20 @@ class Account(pulumi.CustomResource):
397
354
  :param str resource_name: The unique name of the resulting resource.
398
355
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
399
356
  :param pulumi.ResourceOptions opts: Options for the resource.
400
- :param pulumi.Input[str] account_description: The description of the account.
401
- * The description must start with a letter, and cannot start with `http://` or `https://`.
402
- * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
403
- :param pulumi.Input[str] account_name: The name of the account. Valid values: `root`.
404
- :param pulumi.Input[str] account_password: The Password of the Account.
405
- * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `!#$%^&*()_+-=`.
406
- * The password must be `8` to `32` characters in length.
407
- :param pulumi.Input[str] instance_id: The ID of the instance.
408
- :param pulumi.Input[str] status: The status of the account. Valid values: `Unavailable`, `Available`.
357
+ :param pulumi.Input[str] account_description: Account comment information.
358
+
359
+ > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
360
+ :param pulumi.Input[str] account_name: The new password.
361
+
362
+ - The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! # $ % ^ & * ( ) _ + - =`
363
+ - The password must be 8 to 32 characters in length.
364
+ :param pulumi.Input[str] account_password: The password of the database account. The password must be 8 to 32 characters in length. It can contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! # $ % ^ & \\* ( ) \\_ + - =
365
+ :param pulumi.Input[str] character_type: The role type of the instance. Value description
366
+
367
+ - When the instance type is sharded cluster, charactertype is required. The values are db and cs.
368
+ - When the instance type is a replica set, charactertype can be null or pass in normal.
369
+ :param pulumi.Input[str] instance_id: The account whose password needs to be reset. Set the value to `root`.
370
+ :param pulumi.Input[str] status: Account Status
409
371
  """
410
372
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
411
373
 
@@ -414,6 +376,7 @@ class Account(pulumi.CustomResource):
414
376
  __props__.__dict__["account_description"] = account_description
415
377
  __props__.__dict__["account_name"] = account_name
416
378
  __props__.__dict__["account_password"] = account_password
379
+ __props__.__dict__["character_type"] = character_type
417
380
  __props__.__dict__["instance_id"] = instance_id
418
381
  __props__.__dict__["status"] = status
419
382
  return Account(resource_name, opts=opts, __props__=__props__)
@@ -422,9 +385,9 @@ class Account(pulumi.CustomResource):
422
385
  @pulumi.getter(name="accountDescription")
423
386
  def account_description(self) -> pulumi.Output[Optional[str]]:
424
387
  """
425
- The description of the account.
426
- * The description must start with a letter, and cannot start with `http://` or `https://`.
427
- * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
388
+ Account comment information.
389
+
390
+ > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
428
391
  """
429
392
  return pulumi.get(self, "account_description")
430
393
 
@@ -432,7 +395,10 @@ class Account(pulumi.CustomResource):
432
395
  @pulumi.getter(name="accountName")
433
396
  def account_name(self) -> pulumi.Output[str]:
434
397
  """
435
- The name of the account. Valid values: `root`.
398
+ The new password.
399
+
400
+ - The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! # $ % ^ & * ( ) _ + - =`
401
+ - The password must be 8 to 32 characters in length.
436
402
  """
437
403
  return pulumi.get(self, "account_name")
438
404
 
@@ -440,17 +406,26 @@ class Account(pulumi.CustomResource):
440
406
  @pulumi.getter(name="accountPassword")
441
407
  def account_password(self) -> pulumi.Output[str]:
442
408
  """
443
- The Password of the Account.
444
- * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `!#$%^&*()_+-=`.
445
- * The password must be `8` to `32` characters in length.
409
+ The password of the database account. The password must be 8 to 32 characters in length. It can contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! # $ % ^ & \\* ( ) \\_ + - =
446
410
  """
447
411
  return pulumi.get(self, "account_password")
448
412
 
413
+ @property
414
+ @pulumi.getter(name="characterType")
415
+ def character_type(self) -> pulumi.Output[str]:
416
+ """
417
+ The role type of the instance. Value description
418
+
419
+ - When the instance type is sharded cluster, charactertype is required. The values are db and cs.
420
+ - When the instance type is a replica set, charactertype can be null or pass in normal.
421
+ """
422
+ return pulumi.get(self, "character_type")
423
+
449
424
  @property
450
425
  @pulumi.getter(name="instanceId")
451
426
  def instance_id(self) -> pulumi.Output[str]:
452
427
  """
453
- The ID of the instance.
428
+ The account whose password needs to be reset. Set the value to `root`.
454
429
  """
455
430
  return pulumi.get(self, "instance_id")
456
431
 
@@ -458,7 +433,7 @@ class Account(pulumi.CustomResource):
458
433
  @pulumi.getter
459
434
  def status(self) -> pulumi.Output[str]:
460
435
  """
461
- The status of the account. Valid values: `Unavailable`, `Available`.
436
+ Account Status
462
437
  """
463
438
  return pulumi.get(self, "status")
464
439