pulumi-alicloud 3.73.0a1736832142__py3-none-any.whl → 3.73.0a1736949061__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.
- pulumi_alicloud/__init__.py +59 -0
- pulumi_alicloud/alb/__init__.py +1 -0
- pulumi_alicloud/alb/_inputs.py +6 -6
- pulumi_alicloud/alb/a_script.py +116 -98
- pulumi_alicloud/alb/load_balancer_access_log_config_attachment.py +303 -0
- pulumi_alicloud/alb/outputs.py +4 -4
- pulumi_alicloud/alikafka/instance.py +188 -70
- pulumi_alicloud/amqp/instance.py +77 -28
- pulumi_alicloud/bastionhost/_inputs.py +40 -38
- pulumi_alicloud/bastionhost/get_instances.py +6 -22
- pulumi_alicloud/bastionhost/outputs.py +60 -49
- pulumi_alicloud/cen/instance_grant.py +4 -0
- pulumi_alicloud/cloudcontrol/__init__.py +12 -0
- pulumi_alicloud/cloudcontrol/get_prices.py +199 -0
- pulumi_alicloud/cloudcontrol/get_products.py +187 -0
- pulumi_alicloud/cloudcontrol/get_resource_types.py +178 -0
- pulumi_alicloud/cloudcontrol/outputs.py +688 -0
- pulumi_alicloud/cloudcontrol/resource.py +407 -0
- pulumi_alicloud/cms/_inputs.py +21 -15
- pulumi_alicloud/cms/alarm.py +7 -7
- pulumi_alicloud/cms/outputs.py +14 -10
- pulumi_alicloud/cs/get_edge_kubernetes_clusters.py +4 -2
- pulumi_alicloud/cs/get_managed_kubernetes_clusters.py +2 -0
- pulumi_alicloud/cs/kubernetes.py +14 -14
- pulumi_alicloud/cs/managed_kubernetes.py +137 -47
- pulumi_alicloud/dataworks/__init__.py +4 -0
- pulumi_alicloud/dataworks/_inputs.py +1534 -0
- pulumi_alicloud/dataworks/di_alarm_rule.py +708 -0
- pulumi_alicloud/dataworks/di_job.py +1005 -0
- pulumi_alicloud/dataworks/dw_resource_group.py +703 -0
- pulumi_alicloud/dataworks/network.py +331 -0
- pulumi_alicloud/dataworks/outputs.py +1247 -0
- pulumi_alicloud/dcdn/waf_rule.py +14 -14
- pulumi_alicloud/dns/get_alidns_domains.py +7 -2
- pulumi_alicloud/dns/outputs.py +8 -0
- pulumi_alicloud/ecs/ecs_launch_template.py +122 -0
- pulumi_alicloud/ecs/ecs_network_interface.py +14 -14
- pulumi_alicloud/ecs/ecs_session_manager_status.py +18 -18
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/ecs/launch_template.py +88 -0
- pulumi_alicloud/fc/custom_domain.py +2 -2
- pulumi_alicloud/fc/function.py +32 -4
- pulumi_alicloud/fc/v2_function.py +20 -0
- pulumi_alicloud/hbr/__init__.py +1 -0
- pulumi_alicloud/hbr/cross_account.py +338 -0
- pulumi_alicloud/ims/oidc_provider.py +28 -0
- pulumi_alicloud/log/resource_record.py +42 -26
- pulumi_alicloud/message/service_queue.py +106 -59
- pulumi_alicloud/message/service_topic.py +182 -37
- pulumi_alicloud/mongodb/account.py +138 -163
- pulumi_alicloud/oos/secret_parameter.py +84 -9
- pulumi_alicloud/oss/bucket.py +1 -1
- pulumi_alicloud/oss/bucket_policy.py +2 -4
- pulumi_alicloud/oss/bucket_referer.py +2 -4
- pulumi_alicloud/oss/get_buckets.py +16 -2
- pulumi_alicloud/oss/outputs.py +18 -17
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/sae/application.py +84 -7
- pulumi_alicloud/sls/collection_policy.py +2 -2
- pulumi_alicloud/vpc/__init__.py +5 -0
- pulumi_alicloud/vpc/get_ipam_ipam_pool_allocations.py +295 -0
- pulumi_alicloud/vpc/get_ipam_ipam_pool_cidrs.py +196 -0
- pulumi_alicloud/vpc/get_ipam_ipam_pools.py +353 -0
- pulumi_alicloud/vpc/get_ipam_ipam_scopes.py +333 -0
- pulumi_alicloud/vpc/get_ipam_ipams.py +291 -0
- pulumi_alicloud/vpc/get_networks.py +3 -0
- pulumi_alicloud/vpc/nat_gateway.py +145 -7
- pulumi_alicloud/vpc/outputs.py +777 -0
- pulumi_alicloud/vpc/snat_entry.py +107 -48
- pulumi_alicloud/vpn/_inputs.py +96 -72
- pulumi_alicloud/vpn/connection.py +24 -28
- pulumi_alicloud/vpn/outputs.py +64 -48
- pulumi_alicloud/yundun/_inputs.py +26 -24
- pulumi_alicloud/yundun/outputs.py +37 -22
- {pulumi_alicloud-3.73.0a1736832142.dist-info → pulumi_alicloud-3.73.0a1736949061.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.73.0a1736832142.dist-info → pulumi_alicloud-3.73.0a1736949061.dist-info}/RECORD +78 -61
- {pulumi_alicloud-3.73.0a1736832142.dist-info → pulumi_alicloud-3.73.0a1736949061.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.73.0a1736832142.dist-info → pulumi_alicloud-3.73.0a1736949061.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
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
:param pulumi.Input[str]
|
|
33
|
-
:param pulumi.Input[str]
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
:param pulumi.Input[str] account_name: The
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
:param pulumi.Input[str]
|
|
114
|
-
:param pulumi.Input[str]
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
:param pulumi.Input[str] account_name: The
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
:param pulumi.Input[str]
|
|
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
|
-
|
|
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:
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
:param pulumi.Input[str] account_name: The
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
:param pulumi.Input[str]
|
|
408
|
-
:param pulumi.Input[str]
|
|
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
|
-
|
|
426
|
-
|
|
427
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
436
|
+
Account Status
|
|
462
437
|
"""
|
|
463
438
|
return pulumi.get(self, "status")
|
|
464
439
|
|