pulumi-alicloud 3.73.0__py3-none-any.whl → 3.73.0a1736313335__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-alicloud might be problematic. Click here for more details.

Files changed (78) hide show
  1. pulumi_alicloud/__init__.py +0 -59
  2. pulumi_alicloud/alb/__init__.py +0 -1
  3. pulumi_alicloud/alb/_inputs.py +6 -6
  4. pulumi_alicloud/alb/a_script.py +98 -116
  5. pulumi_alicloud/alb/outputs.py +4 -4
  6. pulumi_alicloud/alikafka/instance.py +70 -188
  7. pulumi_alicloud/amqp/instance.py +28 -77
  8. pulumi_alicloud/bastionhost/_inputs.py +38 -40
  9. pulumi_alicloud/bastionhost/get_instances.py +22 -6
  10. pulumi_alicloud/bastionhost/outputs.py +49 -60
  11. pulumi_alicloud/cen/instance_grant.py +0 -4
  12. pulumi_alicloud/cms/_inputs.py +15 -21
  13. pulumi_alicloud/cms/alarm.py +7 -7
  14. pulumi_alicloud/cms/outputs.py +10 -14
  15. pulumi_alicloud/cs/get_edge_kubernetes_clusters.py +2 -4
  16. pulumi_alicloud/cs/get_managed_kubernetes_clusters.py +0 -2
  17. pulumi_alicloud/cs/kubernetes.py +14 -14
  18. pulumi_alicloud/cs/managed_kubernetes.py +47 -137
  19. pulumi_alicloud/dataworks/__init__.py +0 -4
  20. pulumi_alicloud/dataworks/_inputs.py +0 -1534
  21. pulumi_alicloud/dataworks/outputs.py +0 -1247
  22. pulumi_alicloud/dcdn/waf_rule.py +14 -14
  23. pulumi_alicloud/dns/get_alidns_domains.py +2 -7
  24. pulumi_alicloud/dns/outputs.py +0 -8
  25. pulumi_alicloud/ecs/ecs_launch_template.py +0 -122
  26. pulumi_alicloud/ecs/ecs_network_interface.py +14 -14
  27. pulumi_alicloud/ecs/ecs_session_manager_status.py +18 -18
  28. pulumi_alicloud/ecs/instance.py +7 -7
  29. pulumi_alicloud/ecs/launch_template.py +0 -88
  30. pulumi_alicloud/fc/custom_domain.py +2 -2
  31. pulumi_alicloud/fc/function.py +4 -32
  32. pulumi_alicloud/fc/v2_function.py +0 -20
  33. pulumi_alicloud/hbr/__init__.py +0 -1
  34. pulumi_alicloud/ims/oidc_provider.py +0 -28
  35. pulumi_alicloud/log/resource_record.py +26 -42
  36. pulumi_alicloud/message/service_queue.py +59 -106
  37. pulumi_alicloud/message/service_topic.py +37 -182
  38. pulumi_alicloud/mongodb/account.py +163 -138
  39. pulumi_alicloud/oos/secret_parameter.py +9 -84
  40. pulumi_alicloud/oss/bucket.py +1 -1
  41. pulumi_alicloud/oss/bucket_policy.py +4 -2
  42. pulumi_alicloud/oss/bucket_referer.py +4 -2
  43. pulumi_alicloud/oss/get_buckets.py +2 -16
  44. pulumi_alicloud/oss/outputs.py +17 -18
  45. pulumi_alicloud/pulumi-plugin.json +1 -1
  46. pulumi_alicloud/sae/application.py +7 -84
  47. pulumi_alicloud/sls/collection_policy.py +2 -2
  48. pulumi_alicloud/vpc/__init__.py +0 -5
  49. pulumi_alicloud/vpc/get_networks.py +0 -3
  50. pulumi_alicloud/vpc/nat_gateway.py +7 -145
  51. pulumi_alicloud/vpc/outputs.py +0 -777
  52. pulumi_alicloud/vpc/snat_entry.py +48 -107
  53. pulumi_alicloud/vpn/_inputs.py +72 -96
  54. pulumi_alicloud/vpn/connection.py +28 -24
  55. pulumi_alicloud/vpn/outputs.py +48 -64
  56. pulumi_alicloud/yundun/_inputs.py +24 -26
  57. pulumi_alicloud/yundun/outputs.py +22 -37
  58. {pulumi_alicloud-3.73.0.dist-info → pulumi_alicloud-3.73.0a1736313335.dist-info}/METADATA +2 -2
  59. {pulumi_alicloud-3.73.0.dist-info → pulumi_alicloud-3.73.0a1736313335.dist-info}/RECORD +61 -78
  60. {pulumi_alicloud-3.73.0.dist-info → pulumi_alicloud-3.73.0a1736313335.dist-info}/WHEEL +1 -1
  61. pulumi_alicloud/alb/load_balancer_access_log_config_attachment.py +0 -303
  62. pulumi_alicloud/cloudcontrol/__init__.py +0 -12
  63. pulumi_alicloud/cloudcontrol/get_prices.py +0 -199
  64. pulumi_alicloud/cloudcontrol/get_products.py +0 -187
  65. pulumi_alicloud/cloudcontrol/get_resource_types.py +0 -178
  66. pulumi_alicloud/cloudcontrol/outputs.py +0 -688
  67. pulumi_alicloud/cloudcontrol/resource.py +0 -407
  68. pulumi_alicloud/dataworks/di_alarm_rule.py +0 -708
  69. pulumi_alicloud/dataworks/di_job.py +0 -1005
  70. pulumi_alicloud/dataworks/dw_resource_group.py +0 -703
  71. pulumi_alicloud/dataworks/network.py +0 -331
  72. pulumi_alicloud/hbr/cross_account.py +0 -338
  73. pulumi_alicloud/vpc/get_ipam_ipam_pool_allocations.py +0 -295
  74. pulumi_alicloud/vpc/get_ipam_ipam_pool_cidrs.py +0 -196
  75. pulumi_alicloud/vpc/get_ipam_ipam_pools.py +0 -353
  76. pulumi_alicloud/vpc/get_ipam_ipam_scopes.py +0 -333
  77. pulumi_alicloud/vpc/get_ipam_ipams.py +0 -291
  78. {pulumi_alicloud-3.73.0.dist-info → pulumi_alicloud-3.73.0a1736313335.dist-info}/top_level.txt +0 -0
@@ -22,40 +22,29 @@ 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,
26
- character_type: Optional[pulumi.Input[str]] = None):
25
+ account_description: Optional[pulumi.Input[str]] = None):
27
26
  """
28
27
  The set of arguments for constructing a Account resource.
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.
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 (-).
42
36
  """
43
37
  pulumi.set(__self__, "account_name", account_name)
44
38
  pulumi.set(__self__, "account_password", account_password)
45
39
  pulumi.set(__self__, "instance_id", instance_id)
46
40
  if account_description is not None:
47
41
  pulumi.set(__self__, "account_description", account_description)
48
- if character_type is not None:
49
- pulumi.set(__self__, "character_type", character_type)
50
42
 
51
43
  @property
52
44
  @pulumi.getter(name="accountName")
53
45
  def account_name(self) -> pulumi.Input[str]:
54
46
  """
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.
47
+ The name of the account. Valid values: `root`.
59
48
  """
60
49
  return pulumi.get(self, "account_name")
61
50
 
@@ -67,7 +56,9 @@ class AccountArgs:
67
56
  @pulumi.getter(name="accountPassword")
68
57
  def account_password(self) -> pulumi.Input[str]:
69
58
  """
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 ! # $ % ^ & \\* ( ) \\_ + - =
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.
71
62
  """
72
63
  return pulumi.get(self, "account_password")
73
64
 
@@ -79,7 +70,7 @@ class AccountArgs:
79
70
  @pulumi.getter(name="instanceId")
80
71
  def instance_id(self) -> pulumi.Input[str]:
81
72
  """
82
- The account whose password needs to be reset. Set the value to `root`.
73
+ The ID of the instance.
83
74
  """
84
75
  return pulumi.get(self, "instance_id")
85
76
 
@@ -91,9 +82,9 @@ class AccountArgs:
91
82
  @pulumi.getter(name="accountDescription")
92
83
  def account_description(self) -> Optional[pulumi.Input[str]]:
93
84
  """
94
- Account comment information.
95
-
96
- > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
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 (-).
97
88
  """
98
89
  return pulumi.get(self, "account_description")
99
90
 
@@ -101,21 +92,6 @@ class AccountArgs:
101
92
  def account_description(self, value: Optional[pulumi.Input[str]]):
102
93
  pulumi.set(self, "account_description", value)
103
94
 
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
-
119
95
 
120
96
  @pulumi.input_type
121
97
  class _AccountState:
@@ -123,25 +99,19 @@ class _AccountState:
123
99
  account_description: Optional[pulumi.Input[str]] = None,
124
100
  account_name: Optional[pulumi.Input[str]] = None,
125
101
  account_password: Optional[pulumi.Input[str]] = None,
126
- character_type: Optional[pulumi.Input[str]] = None,
127
102
  instance_id: Optional[pulumi.Input[str]] = None,
128
103
  status: Optional[pulumi.Input[str]] = None):
129
104
  """
130
105
  Input properties used for looking up and filtering Account resources.
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
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`.
145
115
  """
146
116
  if account_description is not None:
147
117
  pulumi.set(__self__, "account_description", account_description)
@@ -149,8 +119,6 @@ class _AccountState:
149
119
  pulumi.set(__self__, "account_name", account_name)
150
120
  if account_password is not None:
151
121
  pulumi.set(__self__, "account_password", account_password)
152
- if character_type is not None:
153
- pulumi.set(__self__, "character_type", character_type)
154
122
  if instance_id is not None:
155
123
  pulumi.set(__self__, "instance_id", instance_id)
156
124
  if status is not None:
@@ -160,9 +128,9 @@ class _AccountState:
160
128
  @pulumi.getter(name="accountDescription")
161
129
  def account_description(self) -> Optional[pulumi.Input[str]]:
162
130
  """
163
- Account comment information.
164
-
165
- > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
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 (-).
166
134
  """
167
135
  return pulumi.get(self, "account_description")
168
136
 
@@ -174,10 +142,7 @@ class _AccountState:
174
142
  @pulumi.getter(name="accountName")
175
143
  def account_name(self) -> Optional[pulumi.Input[str]]:
176
144
  """
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.
145
+ The name of the account. Valid values: `root`.
181
146
  """
182
147
  return pulumi.get(self, "account_name")
183
148
 
@@ -189,7 +154,9 @@ class _AccountState:
189
154
  @pulumi.getter(name="accountPassword")
190
155
  def account_password(self) -> Optional[pulumi.Input[str]]:
191
156
  """
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 ! # $ % ^ & \\* ( ) \\_ + - =
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.
193
160
  """
194
161
  return pulumi.get(self, "account_password")
195
162
 
@@ -197,26 +164,11 @@ class _AccountState:
197
164
  def account_password(self, value: Optional[pulumi.Input[str]]):
198
165
  pulumi.set(self, "account_password", value)
199
166
 
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
-
215
167
  @property
216
168
  @pulumi.getter(name="instanceId")
217
169
  def instance_id(self) -> Optional[pulumi.Input[str]]:
218
170
  """
219
- The account whose password needs to be reset. Set the value to `root`.
171
+ The ID of the instance.
220
172
  """
221
173
  return pulumi.get(self, "instance_id")
222
174
 
@@ -228,7 +180,7 @@ class _AccountState:
228
180
  @pulumi.getter
229
181
  def status(self) -> Optional[pulumi.Input[str]]:
230
182
  """
231
- Account Status
183
+ The status of the account. Valid values: `Unavailable`, `Available`.
232
184
  """
233
185
  return pulumi.get(self, "status")
234
186
 
@@ -245,13 +197,62 @@ class Account(pulumi.CustomResource):
245
197
  account_description: Optional[pulumi.Input[str]] = None,
246
198
  account_name: Optional[pulumi.Input[str]] = None,
247
199
  account_password: Optional[pulumi.Input[str]] = None,
248
- character_type: Optional[pulumi.Input[str]] = None,
249
200
  instance_id: Optional[pulumi.Input[str]] = None,
250
201
  __props__=None):
251
202
  """
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
+
252
253
  ## Import
253
254
 
254
- Mongo D B Account can be imported using the id, e.g.
255
+ MongoDB Account can be imported using the id, e.g.
255
256
 
256
257
  ```sh
257
258
  $ pulumi import alicloud:mongodb/account:Account example <instance_id>:<account_name>
@@ -259,19 +260,14 @@ class Account(pulumi.CustomResource):
259
260
 
260
261
  :param str resource_name: The name of the resource.
261
262
  :param pulumi.ResourceOptions opts: Options for the resource.
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`.
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.
275
271
  """
276
272
  ...
277
273
  @overload
@@ -280,9 +276,59 @@ class Account(pulumi.CustomResource):
280
276
  args: AccountArgs,
281
277
  opts: Optional[pulumi.ResourceOptions] = None):
282
278
  """
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
+
283
329
  ## Import
284
330
 
285
- Mongo D B Account can be imported using the id, e.g.
331
+ MongoDB Account can be imported using the id, e.g.
286
332
 
287
333
  ```sh
288
334
  $ pulumi import alicloud:mongodb/account:Account example <instance_id>:<account_name>
@@ -306,7 +352,6 @@ class Account(pulumi.CustomResource):
306
352
  account_description: Optional[pulumi.Input[str]] = None,
307
353
  account_name: Optional[pulumi.Input[str]] = None,
308
354
  account_password: Optional[pulumi.Input[str]] = None,
309
- character_type: Optional[pulumi.Input[str]] = None,
310
355
  instance_id: Optional[pulumi.Input[str]] = None,
311
356
  __props__=None):
312
357
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -324,7 +369,6 @@ class Account(pulumi.CustomResource):
324
369
  if account_password is None and not opts.urn:
325
370
  raise TypeError("Missing required property 'account_password'")
326
371
  __props__.__dict__["account_password"] = None if account_password is None else pulumi.Output.secret(account_password)
327
- __props__.__dict__["character_type"] = character_type
328
372
  if instance_id is None and not opts.urn:
329
373
  raise TypeError("Missing required property 'instance_id'")
330
374
  __props__.__dict__["instance_id"] = instance_id
@@ -344,7 +388,6 @@ class Account(pulumi.CustomResource):
344
388
  account_description: Optional[pulumi.Input[str]] = None,
345
389
  account_name: Optional[pulumi.Input[str]] = None,
346
390
  account_password: Optional[pulumi.Input[str]] = None,
347
- character_type: Optional[pulumi.Input[str]] = None,
348
391
  instance_id: Optional[pulumi.Input[str]] = None,
349
392
  status: Optional[pulumi.Input[str]] = None) -> 'Account':
350
393
  """
@@ -354,20 +397,15 @@ class Account(pulumi.CustomResource):
354
397
  :param str resource_name: The unique name of the resulting resource.
355
398
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
356
399
  :param pulumi.ResourceOptions opts: Options for the resource.
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
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`.
371
409
  """
372
410
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
373
411
 
@@ -376,7 +414,6 @@ class Account(pulumi.CustomResource):
376
414
  __props__.__dict__["account_description"] = account_description
377
415
  __props__.__dict__["account_name"] = account_name
378
416
  __props__.__dict__["account_password"] = account_password
379
- __props__.__dict__["character_type"] = character_type
380
417
  __props__.__dict__["instance_id"] = instance_id
381
418
  __props__.__dict__["status"] = status
382
419
  return Account(resource_name, opts=opts, __props__=__props__)
@@ -385,9 +422,9 @@ class Account(pulumi.CustomResource):
385
422
  @pulumi.getter(name="accountDescription")
386
423
  def account_description(self) -> pulumi.Output[Optional[str]]:
387
424
  """
388
- Account comment information.
389
-
390
- > **NOTE:** Call the ModifyAccountDescription interface to set the account description information before this parameter is returned.
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 (-).
391
428
  """
392
429
  return pulumi.get(self, "account_description")
393
430
 
@@ -395,10 +432,7 @@ class Account(pulumi.CustomResource):
395
432
  @pulumi.getter(name="accountName")
396
433
  def account_name(self) -> pulumi.Output[str]:
397
434
  """
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.
435
+ The name of the account. Valid values: `root`.
402
436
  """
403
437
  return pulumi.get(self, "account_name")
404
438
 
@@ -406,26 +440,17 @@ class Account(pulumi.CustomResource):
406
440
  @pulumi.getter(name="accountPassword")
407
441
  def account_password(self) -> pulumi.Output[str]:
408
442
  """
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 ! # $ % ^ & \\* ( ) \\_ + - =
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.
410
446
  """
411
447
  return pulumi.get(self, "account_password")
412
448
 
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
-
424
449
  @property
425
450
  @pulumi.getter(name="instanceId")
426
451
  def instance_id(self) -> pulumi.Output[str]:
427
452
  """
428
- The account whose password needs to be reset. Set the value to `root`.
453
+ The ID of the instance.
429
454
  """
430
455
  return pulumi.get(self, "instance_id")
431
456
 
@@ -433,7 +458,7 @@ class Account(pulumi.CustomResource):
433
458
  @pulumi.getter
434
459
  def status(self) -> pulumi.Output[str]:
435
460
  """
436
- Account Status
461
+ The status of the account. Valid values: `Unavailable`, `Available`.
437
462
  """
438
463
  return pulumi.get(self, "status")
439
464