pulumi-alicloud 3.63.1__py3-none-any.whl → 3.64.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.
- pulumi_alicloud/__init__.py +16 -0
- pulumi_alicloud/amqp/instance.py +8 -8
- pulumi_alicloud/bss/get_open_api_pricing_modules.py +4 -4
- pulumi_alicloud/bss/get_open_api_products.py +4 -4
- pulumi_alicloud/cas/get_certificates.py +17 -1
- pulumi_alicloud/cas/get_service_certificates.py +153 -17
- pulumi_alicloud/cas/outputs.py +40 -36
- pulumi_alicloud/cen/instance.py +108 -53
- pulumi_alicloud/cloudfirewall/control_policy.py +524 -23
- pulumi_alicloud/cloudfirewall/instance.py +64 -36
- pulumi_alicloud/cs/_inputs.py +390 -26
- pulumi_alicloud/cs/get_serverless_kubernetes_clusters.py +2 -0
- pulumi_alicloud/cs/kubernetes.py +48 -35
- pulumi_alicloud/cs/managed_kubernetes.py +91 -35
- pulumi_alicloud/cs/node_pool.py +68 -14
- pulumi_alicloud/cs/outputs.py +293 -16
- pulumi_alicloud/cs/serverless_kubernetes.py +157 -63
- pulumi_alicloud/databasefilesystem/_inputs.py +0 -6
- pulumi_alicloud/databasefilesystem/instance.py +31 -0
- pulumi_alicloud/databasefilesystem/outputs.py +0 -4
- pulumi_alicloud/dns/get_alidns_records.py +26 -4
- pulumi_alicloud/dns/outputs.py +2 -2
- pulumi_alicloud/eais/instance.py +55 -57
- pulumi_alicloud/ecp/instance.py +177 -219
- pulumi_alicloud/ecs/disk.py +2 -2
- pulumi_alicloud/ecs/ecs_disk.py +142 -58
- pulumi_alicloud/ecs/ecs_key_pair.py +1 -1
- pulumi_alicloud/ecs/ecs_launch_template.py +169 -0
- pulumi_alicloud/ecs/get_ecs_launch_templates.py +172 -6
- pulumi_alicloud/ecs/instance.py +131 -98
- pulumi_alicloud/ecs/key_pair.py +1 -1
- pulumi_alicloud/ecs/launch_template.py +102 -0
- pulumi_alicloud/ecs/outputs.py +57 -24
- pulumi_alicloud/ens/disk.py +2 -2
- pulumi_alicloud/ens/disk_instance_attachment.py +2 -2
- pulumi_alicloud/ess/_inputs.py +342 -2
- pulumi_alicloud/ess/eci_scaling_configuration.py +202 -0
- pulumi_alicloud/ess/outputs.py +226 -2
- pulumi_alicloud/ess/scaling_configuration.py +376 -0
- pulumi_alicloud/ga/_inputs.py +57 -22
- pulumi_alicloud/ga/outputs.py +39 -15
- pulumi_alicloud/gpdb/__init__.py +1 -0
- pulumi_alicloud/gpdb/database.py +545 -0
- pulumi_alicloud/gpdb/instance.py +1 -1
- pulumi_alicloud/kvstore/instance.py +24 -5
- pulumi_alicloud/mse/cluster.py +149 -51
- pulumi_alicloud/mse/engine_namespace.py +176 -74
- pulumi_alicloud/mse/get_clusters.py +70 -10
- pulumi_alicloud/mse/get_engine_namespaces.py +93 -15
- pulumi_alicloud/mse/outputs.py +36 -8
- pulumi_alicloud/nas/data_flow.py +6 -6
- pulumi_alicloud/nas/fileset.py +6 -6
- pulumi_alicloud/nas/lifecycle_policy.py +6 -6
- pulumi_alicloud/nas/recycle_bin.py +6 -6
- pulumi_alicloud/nas/snapshot.py +6 -6
- pulumi_alicloud/polardb/cluster.py +162 -0
- pulumi_alicloud/privatelink/get_vpc_endpoint_services.py +51 -7
- pulumi_alicloud/privatelink/outputs.py +17 -6
- pulumi_alicloud/privatelink/vpc_endpoint_service_user.py +54 -17
- pulumi_alicloud/privatelink/vpc_endpoint_zone.py +7 -21
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rds/instance.py +50 -3
- pulumi_alicloud/resourcemanager/get_folders.py +35 -28
- pulumi_alicloud/resourcemanager/outputs.py +8 -8
- pulumi_alicloud/servicemesh/_inputs.py +656 -174
- pulumi_alicloud/servicemesh/outputs.py +507 -117
- pulumi_alicloud/servicemesh/service_mesh.py +120 -78
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/_inputs.py +307 -0
- pulumi_alicloud/sls/collection_policy.py +561 -0
- pulumi_alicloud/sls/outputs.py +263 -0
- pulumi_alicloud/threatdetection/instance.py +331 -43
- {pulumi_alicloud-3.63.1.dist-info → pulumi_alicloud-3.64.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.63.1.dist-info → pulumi_alicloud-3.64.0.dist-info}/RECORD +76 -74
- {pulumi_alicloud-3.63.1.dist-info → pulumi_alicloud-3.64.0.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.63.1.dist-info → pulumi_alicloud-3.64.0.dist-info}/top_level.txt +0 -0
pulumi_alicloud/ecp/instance.py
CHANGED
|
@@ -38,31 +38,25 @@ class InstanceArgs:
|
|
|
38
38
|
vnc_password: Optional[pulumi.Input[str]] = None):
|
|
39
39
|
"""
|
|
40
40
|
The set of arguments for constructing a Instance resource.
|
|
41
|
-
:param pulumi.Input[str] image_id: The ID
|
|
42
|
-
:param pulumi.Input[str] instance_type:
|
|
43
|
-
:param pulumi.Input[str] security_group_id: The ID of the security group.
|
|
44
|
-
|
|
45
|
-
:param pulumi.Input[
|
|
46
|
-
:param pulumi.Input[bool]
|
|
47
|
-
:param pulumi.Input[
|
|
48
|
-
:param pulumi.Input[
|
|
49
|
-
|
|
50
|
-
:param pulumi.Input[
|
|
51
|
-
:param pulumi.Input[
|
|
52
|
-
:param pulumi.Input[str]
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
:param pulumi.Input[str]
|
|
57
|
-
:param pulumi.Input[str]
|
|
58
|
-
:param pulumi.Input[str]
|
|
59
|
-
|
|
60
|
-
:param pulumi.Input[str] period_unit: The duration unit that you will buy the resource. Valid value: `Year`,`Month`. Default
|
|
61
|
-
to `Month`.
|
|
62
|
-
:param pulumi.Input[str] resolution: The selected resolution for the cloud mobile phone instance.
|
|
63
|
-
:param pulumi.Input[str] status: Instance status. Valid values: `Running`, `Stopped`.
|
|
64
|
-
:param pulumi.Input[str] vnc_password: Cloud mobile phone VNC password. The password must be six characters in length and must
|
|
65
|
-
contain only uppercase, lowercase English letters and Arabic numerals.
|
|
41
|
+
:param pulumi.Input[str] image_id: The ID of the image.
|
|
42
|
+
:param pulumi.Input[str] instance_type: The specifications of the ECP instance.
|
|
43
|
+
:param pulumi.Input[str] security_group_id: The ID of the security group.
|
|
44
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch.
|
|
45
|
+
:param pulumi.Input[bool] auto_pay: Specifies whether to enable the auto-payment feature. Valid values:
|
|
46
|
+
:param pulumi.Input[bool] auto_renew: Specifies whether to enable the auto-renewal feature. Valid values:
|
|
47
|
+
:param pulumi.Input[str] description: The description of the ECP instance. The description must be `2` to `256` characters in length and cannot start with `http://` or `https://`.
|
|
48
|
+
:param pulumi.Input[int] eip_bandwidth: The bandwidth of the elastic IP address (EIP). **NOTE:** From version 1.232.0, `eip_bandwidth` cannot be modified.
|
|
49
|
+
:param pulumi.Input[bool] force: Specifies whether to forcefully stop and release the instance. Default value: `false`. Valid values:
|
|
50
|
+
:param pulumi.Input[str] instance_name: The name of the ECP instance. The name must be `2` to `128` characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
|
|
51
|
+
:param pulumi.Input[str] key_pair_name: The name of the key pair that you want to use to connect to the instance.
|
|
52
|
+
:param pulumi.Input[str] payment_type: The billing method of the ECP instance. Default value: `PayAsYouGo`. Valid values: `PayAsYouGo`,`Subscription`. **NOTE:** From version 1.232.0, `payment_type` cannot be modified.
|
|
53
|
+
:param pulumi.Input[str] period: The subscription duration. Default value: `1`. Valid values:
|
|
54
|
+
- If `period_unit` is set to `Month`. Valid values: `1`, `2`, `3`, and `6`.
|
|
55
|
+
- If `period_unit` is set to `Year`. Valid values: `1` to `5`.
|
|
56
|
+
:param pulumi.Input[str] period_unit: The unit of the subscription duration. Default value: `Month`. Valid values: `Month`, `Year`.
|
|
57
|
+
:param pulumi.Input[str] resolution: The resolution that you want to select for the ECP instance. **NOTE:** From version 1.232.0, `resolution` can be modified.
|
|
58
|
+
:param pulumi.Input[str] status: The status of the Instance. Valid values: `Running`, `Stopped`.
|
|
59
|
+
:param pulumi.Input[str] vnc_password: The VNC password of the instance. The password must be `6` characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
66
60
|
"""
|
|
67
61
|
pulumi.set(__self__, "image_id", image_id)
|
|
68
62
|
pulumi.set(__self__, "instance_type", instance_type)
|
|
@@ -99,7 +93,7 @@ class InstanceArgs:
|
|
|
99
93
|
@pulumi.getter(name="imageId")
|
|
100
94
|
def image_id(self) -> pulumi.Input[str]:
|
|
101
95
|
"""
|
|
102
|
-
The ID
|
|
96
|
+
The ID of the image.
|
|
103
97
|
"""
|
|
104
98
|
return pulumi.get(self, "image_id")
|
|
105
99
|
|
|
@@ -111,7 +105,7 @@ class InstanceArgs:
|
|
|
111
105
|
@pulumi.getter(name="instanceType")
|
|
112
106
|
def instance_type(self) -> pulumi.Input[str]:
|
|
113
107
|
"""
|
|
114
|
-
|
|
108
|
+
The specifications of the ECP instance.
|
|
115
109
|
"""
|
|
116
110
|
return pulumi.get(self, "instance_type")
|
|
117
111
|
|
|
@@ -123,8 +117,7 @@ class InstanceArgs:
|
|
|
123
117
|
@pulumi.getter(name="securityGroupId")
|
|
124
118
|
def security_group_id(self) -> pulumi.Input[str]:
|
|
125
119
|
"""
|
|
126
|
-
The ID of the security group.
|
|
127
|
-
ECS instance.
|
|
120
|
+
The ID of the security group.
|
|
128
121
|
"""
|
|
129
122
|
return pulumi.get(self, "security_group_id")
|
|
130
123
|
|
|
@@ -136,7 +129,7 @@ class InstanceArgs:
|
|
|
136
129
|
@pulumi.getter(name="vswitchId")
|
|
137
130
|
def vswitch_id(self) -> pulumi.Input[str]:
|
|
138
131
|
"""
|
|
139
|
-
The
|
|
132
|
+
The ID of the vSwitch.
|
|
140
133
|
"""
|
|
141
134
|
return pulumi.get(self, "vswitch_id")
|
|
142
135
|
|
|
@@ -148,7 +141,7 @@ class InstanceArgs:
|
|
|
148
141
|
@pulumi.getter(name="autoPay")
|
|
149
142
|
def auto_pay(self) -> Optional[pulumi.Input[bool]]:
|
|
150
143
|
"""
|
|
151
|
-
|
|
144
|
+
Specifies whether to enable the auto-payment feature. Valid values:
|
|
152
145
|
"""
|
|
153
146
|
return pulumi.get(self, "auto_pay")
|
|
154
147
|
|
|
@@ -160,7 +153,7 @@ class InstanceArgs:
|
|
|
160
153
|
@pulumi.getter(name="autoRenew")
|
|
161
154
|
def auto_renew(self) -> Optional[pulumi.Input[bool]]:
|
|
162
155
|
"""
|
|
163
|
-
|
|
156
|
+
Specifies whether to enable the auto-renewal feature. Valid values:
|
|
164
157
|
"""
|
|
165
158
|
return pulumi.get(self, "auto_renew")
|
|
166
159
|
|
|
@@ -172,8 +165,7 @@ class InstanceArgs:
|
|
|
172
165
|
@pulumi.getter
|
|
173
166
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
174
167
|
"""
|
|
175
|
-
|
|
176
|
-
start with `http://` and `https`.
|
|
168
|
+
The description of the ECP instance. The description must be `2` to `256` characters in length and cannot start with `http://` or `https://`.
|
|
177
169
|
"""
|
|
178
170
|
return pulumi.get(self, "description")
|
|
179
171
|
|
|
@@ -185,7 +177,7 @@ class InstanceArgs:
|
|
|
185
177
|
@pulumi.getter(name="eipBandwidth")
|
|
186
178
|
def eip_bandwidth(self) -> Optional[pulumi.Input[int]]:
|
|
187
179
|
"""
|
|
188
|
-
The
|
|
180
|
+
The bandwidth of the elastic IP address (EIP). **NOTE:** From version 1.232.0, `eip_bandwidth` cannot be modified.
|
|
189
181
|
"""
|
|
190
182
|
return pulumi.get(self, "eip_bandwidth")
|
|
191
183
|
|
|
@@ -197,7 +189,7 @@ class InstanceArgs:
|
|
|
197
189
|
@pulumi.getter
|
|
198
190
|
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
199
191
|
"""
|
|
200
|
-
|
|
192
|
+
Specifies whether to forcefully stop and release the instance. Default value: `false`. Valid values:
|
|
201
193
|
"""
|
|
202
194
|
return pulumi.get(self, "force")
|
|
203
195
|
|
|
@@ -209,10 +201,7 @@ class InstanceArgs:
|
|
|
209
201
|
@pulumi.getter(name="instanceName")
|
|
210
202
|
def instance_name(self) -> Optional[pulumi.Input[str]]:
|
|
211
203
|
"""
|
|
212
|
-
The name of the instance.
|
|
213
|
-
uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers,
|
|
214
|
-
half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of
|
|
215
|
-
the instance.
|
|
204
|
+
The name of the ECP instance. The name must be `2` to `128` characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
|
|
216
205
|
"""
|
|
217
206
|
return pulumi.get(self, "instance_name")
|
|
218
207
|
|
|
@@ -224,7 +213,7 @@ class InstanceArgs:
|
|
|
224
213
|
@pulumi.getter(name="keyPairName")
|
|
225
214
|
def key_pair_name(self) -> Optional[pulumi.Input[str]]:
|
|
226
215
|
"""
|
|
227
|
-
The name of the key pair
|
|
216
|
+
The name of the key pair that you want to use to connect to the instance.
|
|
228
217
|
"""
|
|
229
218
|
return pulumi.get(self, "key_pair_name")
|
|
230
219
|
|
|
@@ -236,7 +225,7 @@ class InstanceArgs:
|
|
|
236
225
|
@pulumi.getter(name="paymentType")
|
|
237
226
|
def payment_type(self) -> Optional[pulumi.Input[str]]:
|
|
238
227
|
"""
|
|
239
|
-
The
|
|
228
|
+
The billing method of the ECP instance. Default value: `PayAsYouGo`. Valid values: `PayAsYouGo`,`Subscription`. **NOTE:** From version 1.232.0, `payment_type` cannot be modified.
|
|
240
229
|
"""
|
|
241
230
|
return pulumi.get(self, "payment_type")
|
|
242
231
|
|
|
@@ -248,8 +237,9 @@ class InstanceArgs:
|
|
|
248
237
|
@pulumi.getter
|
|
249
238
|
def period(self) -> Optional[pulumi.Input[str]]:
|
|
250
239
|
"""
|
|
251
|
-
The
|
|
252
|
-
|
|
240
|
+
The subscription duration. Default value: `1`. Valid values:
|
|
241
|
+
- If `period_unit` is set to `Month`. Valid values: `1`, `2`, `3`, and `6`.
|
|
242
|
+
- If `period_unit` is set to `Year`. Valid values: `1` to `5`.
|
|
253
243
|
"""
|
|
254
244
|
return pulumi.get(self, "period")
|
|
255
245
|
|
|
@@ -261,8 +251,7 @@ class InstanceArgs:
|
|
|
261
251
|
@pulumi.getter(name="periodUnit")
|
|
262
252
|
def period_unit(self) -> Optional[pulumi.Input[str]]:
|
|
263
253
|
"""
|
|
264
|
-
The
|
|
265
|
-
to `Month`.
|
|
254
|
+
The unit of the subscription duration. Default value: `Month`. Valid values: `Month`, `Year`.
|
|
266
255
|
"""
|
|
267
256
|
return pulumi.get(self, "period_unit")
|
|
268
257
|
|
|
@@ -274,7 +263,7 @@ class InstanceArgs:
|
|
|
274
263
|
@pulumi.getter
|
|
275
264
|
def resolution(self) -> Optional[pulumi.Input[str]]:
|
|
276
265
|
"""
|
|
277
|
-
The
|
|
266
|
+
The resolution that you want to select for the ECP instance. **NOTE:** From version 1.232.0, `resolution` can be modified.
|
|
278
267
|
"""
|
|
279
268
|
return pulumi.get(self, "resolution")
|
|
280
269
|
|
|
@@ -286,7 +275,7 @@ class InstanceArgs:
|
|
|
286
275
|
@pulumi.getter
|
|
287
276
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
288
277
|
"""
|
|
289
|
-
|
|
278
|
+
The status of the Instance. Valid values: `Running`, `Stopped`.
|
|
290
279
|
"""
|
|
291
280
|
return pulumi.get(self, "status")
|
|
292
281
|
|
|
@@ -298,8 +287,7 @@ class InstanceArgs:
|
|
|
298
287
|
@pulumi.getter(name="vncPassword")
|
|
299
288
|
def vnc_password(self) -> Optional[pulumi.Input[str]]:
|
|
300
289
|
"""
|
|
301
|
-
|
|
302
|
-
contain only uppercase, lowercase English letters and Arabic numerals.
|
|
290
|
+
The VNC password of the instance. The password must be `6` characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
303
291
|
"""
|
|
304
292
|
return pulumi.get(self, "vnc_password")
|
|
305
293
|
|
|
@@ -330,31 +318,25 @@ class _InstanceState:
|
|
|
330
318
|
vswitch_id: Optional[pulumi.Input[str]] = None):
|
|
331
319
|
"""
|
|
332
320
|
Input properties used for looking up and filtering Instance resources.
|
|
333
|
-
:param pulumi.Input[bool] auto_pay:
|
|
334
|
-
:param pulumi.Input[bool] auto_renew:
|
|
335
|
-
:param pulumi.Input[str] description:
|
|
336
|
-
|
|
337
|
-
:param pulumi.Input[
|
|
338
|
-
:param pulumi.Input[
|
|
339
|
-
:param pulumi.Input[str]
|
|
340
|
-
:param pulumi.Input[str]
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
:param pulumi.Input[str]
|
|
347
|
-
:param pulumi.Input[str]
|
|
348
|
-
|
|
349
|
-
:param pulumi.Input[str]
|
|
350
|
-
|
|
351
|
-
:param pulumi.Input[str]
|
|
352
|
-
:param pulumi.Input[str] security_group_id: The ID of the security group. The security group is the same as that of the
|
|
353
|
-
ECS instance.
|
|
354
|
-
:param pulumi.Input[str] status: Instance status. Valid values: `Running`, `Stopped`.
|
|
355
|
-
:param pulumi.Input[str] vnc_password: Cloud mobile phone VNC password. The password must be six characters in length and must
|
|
356
|
-
contain only uppercase, lowercase English letters and Arabic numerals.
|
|
357
|
-
:param pulumi.Input[str] vswitch_id: The vswitch id.
|
|
321
|
+
:param pulumi.Input[bool] auto_pay: Specifies whether to enable the auto-payment feature. Valid values:
|
|
322
|
+
:param pulumi.Input[bool] auto_renew: Specifies whether to enable the auto-renewal feature. Valid values:
|
|
323
|
+
:param pulumi.Input[str] description: The description of the ECP instance. The description must be `2` to `256` characters in length and cannot start with `http://` or `https://`.
|
|
324
|
+
:param pulumi.Input[int] eip_bandwidth: The bandwidth of the elastic IP address (EIP). **NOTE:** From version 1.232.0, `eip_bandwidth` cannot be modified.
|
|
325
|
+
:param pulumi.Input[bool] force: Specifies whether to forcefully stop and release the instance. Default value: `false`. Valid values:
|
|
326
|
+
:param pulumi.Input[str] image_id: The ID of the image.
|
|
327
|
+
:param pulumi.Input[str] instance_name: The name of the ECP instance. The name must be `2` to `128` characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
|
|
328
|
+
:param pulumi.Input[str] instance_type: The specifications of the ECP instance.
|
|
329
|
+
:param pulumi.Input[str] key_pair_name: The name of the key pair that you want to use to connect to the instance.
|
|
330
|
+
:param pulumi.Input[str] payment_type: The billing method of the ECP instance. Default value: `PayAsYouGo`. Valid values: `PayAsYouGo`,`Subscription`. **NOTE:** From version 1.232.0, `payment_type` cannot be modified.
|
|
331
|
+
:param pulumi.Input[str] period: The subscription duration. Default value: `1`. Valid values:
|
|
332
|
+
- If `period_unit` is set to `Month`. Valid values: `1`, `2`, `3`, and `6`.
|
|
333
|
+
- If `period_unit` is set to `Year`. Valid values: `1` to `5`.
|
|
334
|
+
:param pulumi.Input[str] period_unit: The unit of the subscription duration. Default value: `Month`. Valid values: `Month`, `Year`.
|
|
335
|
+
:param pulumi.Input[str] resolution: The resolution that you want to select for the ECP instance. **NOTE:** From version 1.232.0, `resolution` can be modified.
|
|
336
|
+
:param pulumi.Input[str] security_group_id: The ID of the security group.
|
|
337
|
+
:param pulumi.Input[str] status: The status of the Instance. Valid values: `Running`, `Stopped`.
|
|
338
|
+
:param pulumi.Input[str] vnc_password: The VNC password of the instance. The password must be `6` characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
339
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch.
|
|
358
340
|
"""
|
|
359
341
|
if auto_pay is not None:
|
|
360
342
|
pulumi.set(__self__, "auto_pay", auto_pay)
|
|
@@ -395,7 +377,7 @@ class _InstanceState:
|
|
|
395
377
|
@pulumi.getter(name="autoPay")
|
|
396
378
|
def auto_pay(self) -> Optional[pulumi.Input[bool]]:
|
|
397
379
|
"""
|
|
398
|
-
|
|
380
|
+
Specifies whether to enable the auto-payment feature. Valid values:
|
|
399
381
|
"""
|
|
400
382
|
return pulumi.get(self, "auto_pay")
|
|
401
383
|
|
|
@@ -407,7 +389,7 @@ class _InstanceState:
|
|
|
407
389
|
@pulumi.getter(name="autoRenew")
|
|
408
390
|
def auto_renew(self) -> Optional[pulumi.Input[bool]]:
|
|
409
391
|
"""
|
|
410
|
-
|
|
392
|
+
Specifies whether to enable the auto-renewal feature. Valid values:
|
|
411
393
|
"""
|
|
412
394
|
return pulumi.get(self, "auto_renew")
|
|
413
395
|
|
|
@@ -419,8 +401,7 @@ class _InstanceState:
|
|
|
419
401
|
@pulumi.getter
|
|
420
402
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
421
403
|
"""
|
|
422
|
-
|
|
423
|
-
start with `http://` and `https`.
|
|
404
|
+
The description of the ECP instance. The description must be `2` to `256` characters in length and cannot start with `http://` or `https://`.
|
|
424
405
|
"""
|
|
425
406
|
return pulumi.get(self, "description")
|
|
426
407
|
|
|
@@ -432,7 +413,7 @@ class _InstanceState:
|
|
|
432
413
|
@pulumi.getter(name="eipBandwidth")
|
|
433
414
|
def eip_bandwidth(self) -> Optional[pulumi.Input[int]]:
|
|
434
415
|
"""
|
|
435
|
-
The
|
|
416
|
+
The bandwidth of the elastic IP address (EIP). **NOTE:** From version 1.232.0, `eip_bandwidth` cannot be modified.
|
|
436
417
|
"""
|
|
437
418
|
return pulumi.get(self, "eip_bandwidth")
|
|
438
419
|
|
|
@@ -444,7 +425,7 @@ class _InstanceState:
|
|
|
444
425
|
@pulumi.getter
|
|
445
426
|
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
446
427
|
"""
|
|
447
|
-
|
|
428
|
+
Specifies whether to forcefully stop and release the instance. Default value: `false`. Valid values:
|
|
448
429
|
"""
|
|
449
430
|
return pulumi.get(self, "force")
|
|
450
431
|
|
|
@@ -456,7 +437,7 @@ class _InstanceState:
|
|
|
456
437
|
@pulumi.getter(name="imageId")
|
|
457
438
|
def image_id(self) -> Optional[pulumi.Input[str]]:
|
|
458
439
|
"""
|
|
459
|
-
The ID
|
|
440
|
+
The ID of the image.
|
|
460
441
|
"""
|
|
461
442
|
return pulumi.get(self, "image_id")
|
|
462
443
|
|
|
@@ -468,10 +449,7 @@ class _InstanceState:
|
|
|
468
449
|
@pulumi.getter(name="instanceName")
|
|
469
450
|
def instance_name(self) -> Optional[pulumi.Input[str]]:
|
|
470
451
|
"""
|
|
471
|
-
The name of the instance.
|
|
472
|
-
uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers,
|
|
473
|
-
half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of
|
|
474
|
-
the instance.
|
|
452
|
+
The name of the ECP instance. The name must be `2` to `128` characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
|
|
475
453
|
"""
|
|
476
454
|
return pulumi.get(self, "instance_name")
|
|
477
455
|
|
|
@@ -483,7 +461,7 @@ class _InstanceState:
|
|
|
483
461
|
@pulumi.getter(name="instanceType")
|
|
484
462
|
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
485
463
|
"""
|
|
486
|
-
|
|
464
|
+
The specifications of the ECP instance.
|
|
487
465
|
"""
|
|
488
466
|
return pulumi.get(self, "instance_type")
|
|
489
467
|
|
|
@@ -495,7 +473,7 @@ class _InstanceState:
|
|
|
495
473
|
@pulumi.getter(name="keyPairName")
|
|
496
474
|
def key_pair_name(self) -> Optional[pulumi.Input[str]]:
|
|
497
475
|
"""
|
|
498
|
-
The name of the key pair
|
|
476
|
+
The name of the key pair that you want to use to connect to the instance.
|
|
499
477
|
"""
|
|
500
478
|
return pulumi.get(self, "key_pair_name")
|
|
501
479
|
|
|
@@ -507,7 +485,7 @@ class _InstanceState:
|
|
|
507
485
|
@pulumi.getter(name="paymentType")
|
|
508
486
|
def payment_type(self) -> Optional[pulumi.Input[str]]:
|
|
509
487
|
"""
|
|
510
|
-
The
|
|
488
|
+
The billing method of the ECP instance. Default value: `PayAsYouGo`. Valid values: `PayAsYouGo`,`Subscription`. **NOTE:** From version 1.232.0, `payment_type` cannot be modified.
|
|
511
489
|
"""
|
|
512
490
|
return pulumi.get(self, "payment_type")
|
|
513
491
|
|
|
@@ -519,8 +497,9 @@ class _InstanceState:
|
|
|
519
497
|
@pulumi.getter
|
|
520
498
|
def period(self) -> Optional[pulumi.Input[str]]:
|
|
521
499
|
"""
|
|
522
|
-
The
|
|
523
|
-
|
|
500
|
+
The subscription duration. Default value: `1`. Valid values:
|
|
501
|
+
- If `period_unit` is set to `Month`. Valid values: `1`, `2`, `3`, and `6`.
|
|
502
|
+
- If `period_unit` is set to `Year`. Valid values: `1` to `5`.
|
|
524
503
|
"""
|
|
525
504
|
return pulumi.get(self, "period")
|
|
526
505
|
|
|
@@ -532,8 +511,7 @@ class _InstanceState:
|
|
|
532
511
|
@pulumi.getter(name="periodUnit")
|
|
533
512
|
def period_unit(self) -> Optional[pulumi.Input[str]]:
|
|
534
513
|
"""
|
|
535
|
-
The
|
|
536
|
-
to `Month`.
|
|
514
|
+
The unit of the subscription duration. Default value: `Month`. Valid values: `Month`, `Year`.
|
|
537
515
|
"""
|
|
538
516
|
return pulumi.get(self, "period_unit")
|
|
539
517
|
|
|
@@ -545,7 +523,7 @@ class _InstanceState:
|
|
|
545
523
|
@pulumi.getter
|
|
546
524
|
def resolution(self) -> Optional[pulumi.Input[str]]:
|
|
547
525
|
"""
|
|
548
|
-
The
|
|
526
|
+
The resolution that you want to select for the ECP instance. **NOTE:** From version 1.232.0, `resolution` can be modified.
|
|
549
527
|
"""
|
|
550
528
|
return pulumi.get(self, "resolution")
|
|
551
529
|
|
|
@@ -557,8 +535,7 @@ class _InstanceState:
|
|
|
557
535
|
@pulumi.getter(name="securityGroupId")
|
|
558
536
|
def security_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
559
537
|
"""
|
|
560
|
-
The ID of the security group.
|
|
561
|
-
ECS instance.
|
|
538
|
+
The ID of the security group.
|
|
562
539
|
"""
|
|
563
540
|
return pulumi.get(self, "security_group_id")
|
|
564
541
|
|
|
@@ -570,7 +547,7 @@ class _InstanceState:
|
|
|
570
547
|
@pulumi.getter
|
|
571
548
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
572
549
|
"""
|
|
573
|
-
|
|
550
|
+
The status of the Instance. Valid values: `Running`, `Stopped`.
|
|
574
551
|
"""
|
|
575
552
|
return pulumi.get(self, "status")
|
|
576
553
|
|
|
@@ -582,8 +559,7 @@ class _InstanceState:
|
|
|
582
559
|
@pulumi.getter(name="vncPassword")
|
|
583
560
|
def vnc_password(self) -> Optional[pulumi.Input[str]]:
|
|
584
561
|
"""
|
|
585
|
-
|
|
586
|
-
contain only uppercase, lowercase English letters and Arabic numerals.
|
|
562
|
+
The VNC password of the instance. The password must be `6` characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
587
563
|
"""
|
|
588
564
|
return pulumi.get(self, "vnc_password")
|
|
589
565
|
|
|
@@ -595,7 +571,7 @@ class _InstanceState:
|
|
|
595
571
|
@pulumi.getter(name="vswitchId")
|
|
596
572
|
def vswitch_id(self) -> Optional[pulumi.Input[str]]:
|
|
597
573
|
"""
|
|
598
|
-
The
|
|
574
|
+
The ID of the vSwitch.
|
|
599
575
|
"""
|
|
600
576
|
return pulumi.get(self, "vswitch_id")
|
|
601
577
|
|
|
@@ -630,8 +606,7 @@ class Instance(pulumi.CustomResource):
|
|
|
630
606
|
"""
|
|
631
607
|
Provides a Elastic Cloud Phone (ECP) Instance resource.
|
|
632
608
|
|
|
633
|
-
For information about Elastic Cloud Phone (ECP) Instance and how to use it,
|
|
634
|
-
see [What is Instance](https://www.alibabacloud.com/help/en/cloudphone/latest/api-cloudphone-2020-12-30-runinstances).
|
|
609
|
+
For information about Elastic Cloud Phone (ECP) Instance and how to use it, see [What is Instance](https://www.alibabacloud.com/help/en/cloudphone/latest/api-cloudphone-2020-12-30-runinstances).
|
|
635
610
|
|
|
636
611
|
> **NOTE:** Available since v1.158.0.
|
|
637
612
|
|
|
@@ -647,35 +622,36 @@ class Instance(pulumi.CustomResource):
|
|
|
647
622
|
config = pulumi.Config()
|
|
648
623
|
name = config.get("name")
|
|
649
624
|
if name is None:
|
|
650
|
-
name = "
|
|
625
|
+
name = "terraform-example"
|
|
626
|
+
default = alicloud.ecp.get_zones()
|
|
627
|
+
default_get_instance_types = alicloud.ecp.get_instance_types()
|
|
651
628
|
default_integer = random.index.Integer("default",
|
|
652
629
|
min=10000,
|
|
653
630
|
max=99999)
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
vpc_id=default_get_networks.ids[0])
|
|
631
|
+
default_network = alicloud.vpc.Network("default",
|
|
632
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
633
|
+
cidr_block="192.168.0.0/16")
|
|
634
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
635
|
+
vswitch_name=f"{name}-{default_integer['result']}",
|
|
636
|
+
vpc_id=default_network.id,
|
|
637
|
+
cidr_block="192.168.192.0/24",
|
|
638
|
+
zone_id=default.zones[0].zone_id)
|
|
639
|
+
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
640
|
+
name=f"{name}-{default_integer['result']}",
|
|
641
|
+
vpc_id=default_network.id)
|
|
666
642
|
default_key_pair = alicloud.ecp.KeyPair("default",
|
|
667
643
|
key_pair_name=f"{name}-{default_integer['result']}",
|
|
668
644
|
public_key_body="ssh-rsa AAAAB3Nza12345678qwertyuudsfsg")
|
|
669
645
|
default_instance = alicloud.ecp.Instance("default",
|
|
670
|
-
|
|
671
|
-
|
|
646
|
+
instance_type=default_get_instance_types.instance_types[0].instance_type,
|
|
647
|
+
image_id="android-image-release5501072_a11_20240530.raw",
|
|
648
|
+
vswitch_id=default_switch.id,
|
|
649
|
+
security_group_id=default_security_group.id,
|
|
672
650
|
key_pair_name=default_key_pair.key_pair_name,
|
|
673
|
-
security_group_id=group.id,
|
|
674
|
-
vswitch_id=default_get_switches.ids[0],
|
|
675
|
-
image_id="android_9_0_0_release_2851157_20211201.vhd",
|
|
676
|
-
instance_type=default_get_instance_types.instance_types[1].instance_type,
|
|
677
651
|
vnc_password="Ecp123",
|
|
678
652
|
payment_type="PayAsYouGo",
|
|
653
|
+
instance_name=name,
|
|
654
|
+
description=name,
|
|
679
655
|
force=True)
|
|
680
656
|
```
|
|
681
657
|
|
|
@@ -689,31 +665,25 @@ class Instance(pulumi.CustomResource):
|
|
|
689
665
|
|
|
690
666
|
:param str resource_name: The name of the resource.
|
|
691
667
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
692
|
-
:param pulumi.Input[bool] auto_pay:
|
|
693
|
-
:param pulumi.Input[bool] auto_renew:
|
|
694
|
-
:param pulumi.Input[str] description:
|
|
695
|
-
|
|
696
|
-
:param pulumi.Input[
|
|
697
|
-
:param pulumi.Input[
|
|
698
|
-
:param pulumi.Input[str]
|
|
699
|
-
:param pulumi.Input[str]
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
:param pulumi.Input[str]
|
|
706
|
-
:param pulumi.Input[str]
|
|
707
|
-
|
|
708
|
-
:param pulumi.Input[str]
|
|
709
|
-
|
|
710
|
-
:param pulumi.Input[str]
|
|
711
|
-
:param pulumi.Input[str] security_group_id: The ID of the security group. The security group is the same as that of the
|
|
712
|
-
ECS instance.
|
|
713
|
-
:param pulumi.Input[str] status: Instance status. Valid values: `Running`, `Stopped`.
|
|
714
|
-
:param pulumi.Input[str] vnc_password: Cloud mobile phone VNC password. The password must be six characters in length and must
|
|
715
|
-
contain only uppercase, lowercase English letters and Arabic numerals.
|
|
716
|
-
:param pulumi.Input[str] vswitch_id: The vswitch id.
|
|
668
|
+
:param pulumi.Input[bool] auto_pay: Specifies whether to enable the auto-payment feature. Valid values:
|
|
669
|
+
:param pulumi.Input[bool] auto_renew: Specifies whether to enable the auto-renewal feature. Valid values:
|
|
670
|
+
:param pulumi.Input[str] description: The description of the ECP instance. The description must be `2` to `256` characters in length and cannot start with `http://` or `https://`.
|
|
671
|
+
:param pulumi.Input[int] eip_bandwidth: The bandwidth of the elastic IP address (EIP). **NOTE:** From version 1.232.0, `eip_bandwidth` cannot be modified.
|
|
672
|
+
:param pulumi.Input[bool] force: Specifies whether to forcefully stop and release the instance. Default value: `false`. Valid values:
|
|
673
|
+
:param pulumi.Input[str] image_id: The ID of the image.
|
|
674
|
+
:param pulumi.Input[str] instance_name: The name of the ECP instance. The name must be `2` to `128` characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
|
|
675
|
+
:param pulumi.Input[str] instance_type: The specifications of the ECP instance.
|
|
676
|
+
:param pulumi.Input[str] key_pair_name: The name of the key pair that you want to use to connect to the instance.
|
|
677
|
+
:param pulumi.Input[str] payment_type: The billing method of the ECP instance. Default value: `PayAsYouGo`. Valid values: `PayAsYouGo`,`Subscription`. **NOTE:** From version 1.232.0, `payment_type` cannot be modified.
|
|
678
|
+
:param pulumi.Input[str] period: The subscription duration. Default value: `1`. Valid values:
|
|
679
|
+
- If `period_unit` is set to `Month`. Valid values: `1`, `2`, `3`, and `6`.
|
|
680
|
+
- If `period_unit` is set to `Year`. Valid values: `1` to `5`.
|
|
681
|
+
:param pulumi.Input[str] period_unit: The unit of the subscription duration. Default value: `Month`. Valid values: `Month`, `Year`.
|
|
682
|
+
:param pulumi.Input[str] resolution: The resolution that you want to select for the ECP instance. **NOTE:** From version 1.232.0, `resolution` can be modified.
|
|
683
|
+
:param pulumi.Input[str] security_group_id: The ID of the security group.
|
|
684
|
+
:param pulumi.Input[str] status: The status of the Instance. Valid values: `Running`, `Stopped`.
|
|
685
|
+
:param pulumi.Input[str] vnc_password: The VNC password of the instance. The password must be `6` characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
686
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch.
|
|
717
687
|
"""
|
|
718
688
|
...
|
|
719
689
|
@overload
|
|
@@ -724,8 +694,7 @@ class Instance(pulumi.CustomResource):
|
|
|
724
694
|
"""
|
|
725
695
|
Provides a Elastic Cloud Phone (ECP) Instance resource.
|
|
726
696
|
|
|
727
|
-
For information about Elastic Cloud Phone (ECP) Instance and how to use it,
|
|
728
|
-
see [What is Instance](https://www.alibabacloud.com/help/en/cloudphone/latest/api-cloudphone-2020-12-30-runinstances).
|
|
697
|
+
For information about Elastic Cloud Phone (ECP) Instance and how to use it, see [What is Instance](https://www.alibabacloud.com/help/en/cloudphone/latest/api-cloudphone-2020-12-30-runinstances).
|
|
729
698
|
|
|
730
699
|
> **NOTE:** Available since v1.158.0.
|
|
731
700
|
|
|
@@ -741,35 +710,36 @@ class Instance(pulumi.CustomResource):
|
|
|
741
710
|
config = pulumi.Config()
|
|
742
711
|
name = config.get("name")
|
|
743
712
|
if name is None:
|
|
744
|
-
name = "
|
|
713
|
+
name = "terraform-example"
|
|
714
|
+
default = alicloud.ecp.get_zones()
|
|
715
|
+
default_get_instance_types = alicloud.ecp.get_instance_types()
|
|
745
716
|
default_integer = random.index.Integer("default",
|
|
746
717
|
min=10000,
|
|
747
718
|
max=99999)
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
vpc_id=default_get_networks.ids[0])
|
|
719
|
+
default_network = alicloud.vpc.Network("default",
|
|
720
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
721
|
+
cidr_block="192.168.0.0/16")
|
|
722
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
723
|
+
vswitch_name=f"{name}-{default_integer['result']}",
|
|
724
|
+
vpc_id=default_network.id,
|
|
725
|
+
cidr_block="192.168.192.0/24",
|
|
726
|
+
zone_id=default.zones[0].zone_id)
|
|
727
|
+
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
728
|
+
name=f"{name}-{default_integer['result']}",
|
|
729
|
+
vpc_id=default_network.id)
|
|
760
730
|
default_key_pair = alicloud.ecp.KeyPair("default",
|
|
761
731
|
key_pair_name=f"{name}-{default_integer['result']}",
|
|
762
732
|
public_key_body="ssh-rsa AAAAB3Nza12345678qwertyuudsfsg")
|
|
763
733
|
default_instance = alicloud.ecp.Instance("default",
|
|
764
|
-
|
|
765
|
-
|
|
734
|
+
instance_type=default_get_instance_types.instance_types[0].instance_type,
|
|
735
|
+
image_id="android-image-release5501072_a11_20240530.raw",
|
|
736
|
+
vswitch_id=default_switch.id,
|
|
737
|
+
security_group_id=default_security_group.id,
|
|
766
738
|
key_pair_name=default_key_pair.key_pair_name,
|
|
767
|
-
security_group_id=group.id,
|
|
768
|
-
vswitch_id=default_get_switches.ids[0],
|
|
769
|
-
image_id="android_9_0_0_release_2851157_20211201.vhd",
|
|
770
|
-
instance_type=default_get_instance_types.instance_types[1].instance_type,
|
|
771
739
|
vnc_password="Ecp123",
|
|
772
740
|
payment_type="PayAsYouGo",
|
|
741
|
+
instance_name=name,
|
|
742
|
+
description=name,
|
|
773
743
|
force=True)
|
|
774
744
|
```
|
|
775
745
|
|
|
@@ -883,31 +853,25 @@ class Instance(pulumi.CustomResource):
|
|
|
883
853
|
:param str resource_name: The unique name of the resulting resource.
|
|
884
854
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
885
855
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
886
|
-
:param pulumi.Input[bool] auto_pay:
|
|
887
|
-
:param pulumi.Input[bool] auto_renew:
|
|
888
|
-
:param pulumi.Input[str] description:
|
|
889
|
-
|
|
890
|
-
:param pulumi.Input[
|
|
891
|
-
:param pulumi.Input[
|
|
892
|
-
:param pulumi.Input[str]
|
|
893
|
-
:param pulumi.Input[str]
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
:param pulumi.Input[str]
|
|
900
|
-
:param pulumi.Input[str]
|
|
901
|
-
|
|
902
|
-
:param pulumi.Input[str]
|
|
903
|
-
|
|
904
|
-
:param pulumi.Input[str]
|
|
905
|
-
:param pulumi.Input[str] security_group_id: The ID of the security group. The security group is the same as that of the
|
|
906
|
-
ECS instance.
|
|
907
|
-
:param pulumi.Input[str] status: Instance status. Valid values: `Running`, `Stopped`.
|
|
908
|
-
:param pulumi.Input[str] vnc_password: Cloud mobile phone VNC password. The password must be six characters in length and must
|
|
909
|
-
contain only uppercase, lowercase English letters and Arabic numerals.
|
|
910
|
-
:param pulumi.Input[str] vswitch_id: The vswitch id.
|
|
856
|
+
:param pulumi.Input[bool] auto_pay: Specifies whether to enable the auto-payment feature. Valid values:
|
|
857
|
+
:param pulumi.Input[bool] auto_renew: Specifies whether to enable the auto-renewal feature. Valid values:
|
|
858
|
+
:param pulumi.Input[str] description: The description of the ECP instance. The description must be `2` to `256` characters in length and cannot start with `http://` or `https://`.
|
|
859
|
+
:param pulumi.Input[int] eip_bandwidth: The bandwidth of the elastic IP address (EIP). **NOTE:** From version 1.232.0, `eip_bandwidth` cannot be modified.
|
|
860
|
+
:param pulumi.Input[bool] force: Specifies whether to forcefully stop and release the instance. Default value: `false`. Valid values:
|
|
861
|
+
:param pulumi.Input[str] image_id: The ID of the image.
|
|
862
|
+
:param pulumi.Input[str] instance_name: The name of the ECP instance. The name must be `2` to `128` characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
|
|
863
|
+
:param pulumi.Input[str] instance_type: The specifications of the ECP instance.
|
|
864
|
+
:param pulumi.Input[str] key_pair_name: The name of the key pair that you want to use to connect to the instance.
|
|
865
|
+
:param pulumi.Input[str] payment_type: The billing method of the ECP instance. Default value: `PayAsYouGo`. Valid values: `PayAsYouGo`,`Subscription`. **NOTE:** From version 1.232.0, `payment_type` cannot be modified.
|
|
866
|
+
:param pulumi.Input[str] period: The subscription duration. Default value: `1`. Valid values:
|
|
867
|
+
- If `period_unit` is set to `Month`. Valid values: `1`, `2`, `3`, and `6`.
|
|
868
|
+
- If `period_unit` is set to `Year`. Valid values: `1` to `5`.
|
|
869
|
+
:param pulumi.Input[str] period_unit: The unit of the subscription duration. Default value: `Month`. Valid values: `Month`, `Year`.
|
|
870
|
+
:param pulumi.Input[str] resolution: The resolution that you want to select for the ECP instance. **NOTE:** From version 1.232.0, `resolution` can be modified.
|
|
871
|
+
:param pulumi.Input[str] security_group_id: The ID of the security group.
|
|
872
|
+
:param pulumi.Input[str] status: The status of the Instance. Valid values: `Running`, `Stopped`.
|
|
873
|
+
:param pulumi.Input[str] vnc_password: The VNC password of the instance. The password must be `6` characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
874
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch.
|
|
911
875
|
"""
|
|
912
876
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
913
877
|
|
|
@@ -936,7 +900,7 @@ class Instance(pulumi.CustomResource):
|
|
|
936
900
|
@pulumi.getter(name="autoPay")
|
|
937
901
|
def auto_pay(self) -> pulumi.Output[Optional[bool]]:
|
|
938
902
|
"""
|
|
939
|
-
|
|
903
|
+
Specifies whether to enable the auto-payment feature. Valid values:
|
|
940
904
|
"""
|
|
941
905
|
return pulumi.get(self, "auto_pay")
|
|
942
906
|
|
|
@@ -944,7 +908,7 @@ class Instance(pulumi.CustomResource):
|
|
|
944
908
|
@pulumi.getter(name="autoRenew")
|
|
945
909
|
def auto_renew(self) -> pulumi.Output[Optional[bool]]:
|
|
946
910
|
"""
|
|
947
|
-
|
|
911
|
+
Specifies whether to enable the auto-renewal feature. Valid values:
|
|
948
912
|
"""
|
|
949
913
|
return pulumi.get(self, "auto_renew")
|
|
950
914
|
|
|
@@ -952,8 +916,7 @@ class Instance(pulumi.CustomResource):
|
|
|
952
916
|
@pulumi.getter
|
|
953
917
|
def description(self) -> pulumi.Output[Optional[str]]:
|
|
954
918
|
"""
|
|
955
|
-
|
|
956
|
-
start with `http://` and `https`.
|
|
919
|
+
The description of the ECP instance. The description must be `2` to `256` characters in length and cannot start with `http://` or `https://`.
|
|
957
920
|
"""
|
|
958
921
|
return pulumi.get(self, "description")
|
|
959
922
|
|
|
@@ -961,7 +924,7 @@ class Instance(pulumi.CustomResource):
|
|
|
961
924
|
@pulumi.getter(name="eipBandwidth")
|
|
962
925
|
def eip_bandwidth(self) -> pulumi.Output[Optional[int]]:
|
|
963
926
|
"""
|
|
964
|
-
The
|
|
927
|
+
The bandwidth of the elastic IP address (EIP). **NOTE:** From version 1.232.0, `eip_bandwidth` cannot be modified.
|
|
965
928
|
"""
|
|
966
929
|
return pulumi.get(self, "eip_bandwidth")
|
|
967
930
|
|
|
@@ -969,7 +932,7 @@ class Instance(pulumi.CustomResource):
|
|
|
969
932
|
@pulumi.getter
|
|
970
933
|
def force(self) -> pulumi.Output[Optional[bool]]:
|
|
971
934
|
"""
|
|
972
|
-
|
|
935
|
+
Specifies whether to forcefully stop and release the instance. Default value: `false`. Valid values:
|
|
973
936
|
"""
|
|
974
937
|
return pulumi.get(self, "force")
|
|
975
938
|
|
|
@@ -977,18 +940,15 @@ class Instance(pulumi.CustomResource):
|
|
|
977
940
|
@pulumi.getter(name="imageId")
|
|
978
941
|
def image_id(self) -> pulumi.Output[str]:
|
|
979
942
|
"""
|
|
980
|
-
The ID
|
|
943
|
+
The ID of the image.
|
|
981
944
|
"""
|
|
982
945
|
return pulumi.get(self, "image_id")
|
|
983
946
|
|
|
984
947
|
@property
|
|
985
948
|
@pulumi.getter(name="instanceName")
|
|
986
|
-
def instance_name(self) -> pulumi.Output[
|
|
949
|
+
def instance_name(self) -> pulumi.Output[str]:
|
|
987
950
|
"""
|
|
988
|
-
The name of the instance.
|
|
989
|
-
uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers,
|
|
990
|
-
half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of
|
|
991
|
-
the instance.
|
|
951
|
+
The name of the ECP instance. The name must be `2` to `128` characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
|
|
992
952
|
"""
|
|
993
953
|
return pulumi.get(self, "instance_name")
|
|
994
954
|
|
|
@@ -996,7 +956,7 @@ class Instance(pulumi.CustomResource):
|
|
|
996
956
|
@pulumi.getter(name="instanceType")
|
|
997
957
|
def instance_type(self) -> pulumi.Output[str]:
|
|
998
958
|
"""
|
|
999
|
-
|
|
959
|
+
The specifications of the ECP instance.
|
|
1000
960
|
"""
|
|
1001
961
|
return pulumi.get(self, "instance_type")
|
|
1002
962
|
|
|
@@ -1004,15 +964,15 @@ class Instance(pulumi.CustomResource):
|
|
|
1004
964
|
@pulumi.getter(name="keyPairName")
|
|
1005
965
|
def key_pair_name(self) -> pulumi.Output[Optional[str]]:
|
|
1006
966
|
"""
|
|
1007
|
-
The name of the key pair
|
|
967
|
+
The name of the key pair that you want to use to connect to the instance.
|
|
1008
968
|
"""
|
|
1009
969
|
return pulumi.get(self, "key_pair_name")
|
|
1010
970
|
|
|
1011
971
|
@property
|
|
1012
972
|
@pulumi.getter(name="paymentType")
|
|
1013
|
-
def payment_type(self) -> pulumi.Output[
|
|
973
|
+
def payment_type(self) -> pulumi.Output[str]:
|
|
1014
974
|
"""
|
|
1015
|
-
The
|
|
975
|
+
The billing method of the ECP instance. Default value: `PayAsYouGo`. Valid values: `PayAsYouGo`,`Subscription`. **NOTE:** From version 1.232.0, `payment_type` cannot be modified.
|
|
1016
976
|
"""
|
|
1017
977
|
return pulumi.get(self, "payment_type")
|
|
1018
978
|
|
|
@@ -1020,8 +980,9 @@ class Instance(pulumi.CustomResource):
|
|
|
1020
980
|
@pulumi.getter
|
|
1021
981
|
def period(self) -> pulumi.Output[Optional[str]]:
|
|
1022
982
|
"""
|
|
1023
|
-
The
|
|
1024
|
-
|
|
983
|
+
The subscription duration. Default value: `1`. Valid values:
|
|
984
|
+
- If `period_unit` is set to `Month`. Valid values: `1`, `2`, `3`, and `6`.
|
|
985
|
+
- If `period_unit` is set to `Year`. Valid values: `1` to `5`.
|
|
1025
986
|
"""
|
|
1026
987
|
return pulumi.get(self, "period")
|
|
1027
988
|
|
|
@@ -1029,8 +990,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1029
990
|
@pulumi.getter(name="periodUnit")
|
|
1030
991
|
def period_unit(self) -> pulumi.Output[Optional[str]]:
|
|
1031
992
|
"""
|
|
1032
|
-
The
|
|
1033
|
-
to `Month`.
|
|
993
|
+
The unit of the subscription duration. Default value: `Month`. Valid values: `Month`, `Year`.
|
|
1034
994
|
"""
|
|
1035
995
|
return pulumi.get(self, "period_unit")
|
|
1036
996
|
|
|
@@ -1038,7 +998,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1038
998
|
@pulumi.getter
|
|
1039
999
|
def resolution(self) -> pulumi.Output[str]:
|
|
1040
1000
|
"""
|
|
1041
|
-
The
|
|
1001
|
+
The resolution that you want to select for the ECP instance. **NOTE:** From version 1.232.0, `resolution` can be modified.
|
|
1042
1002
|
"""
|
|
1043
1003
|
return pulumi.get(self, "resolution")
|
|
1044
1004
|
|
|
@@ -1046,8 +1006,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1046
1006
|
@pulumi.getter(name="securityGroupId")
|
|
1047
1007
|
def security_group_id(self) -> pulumi.Output[str]:
|
|
1048
1008
|
"""
|
|
1049
|
-
The ID of the security group.
|
|
1050
|
-
ECS instance.
|
|
1009
|
+
The ID of the security group.
|
|
1051
1010
|
"""
|
|
1052
1011
|
return pulumi.get(self, "security_group_id")
|
|
1053
1012
|
|
|
@@ -1055,7 +1014,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1055
1014
|
@pulumi.getter
|
|
1056
1015
|
def status(self) -> pulumi.Output[str]:
|
|
1057
1016
|
"""
|
|
1058
|
-
|
|
1017
|
+
The status of the Instance. Valid values: `Running`, `Stopped`.
|
|
1059
1018
|
"""
|
|
1060
1019
|
return pulumi.get(self, "status")
|
|
1061
1020
|
|
|
@@ -1063,8 +1022,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1063
1022
|
@pulumi.getter(name="vncPassword")
|
|
1064
1023
|
def vnc_password(self) -> pulumi.Output[Optional[str]]:
|
|
1065
1024
|
"""
|
|
1066
|
-
|
|
1067
|
-
contain only uppercase, lowercase English letters and Arabic numerals.
|
|
1025
|
+
The VNC password of the instance. The password must be `6` characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
1068
1026
|
"""
|
|
1069
1027
|
return pulumi.get(self, "vnc_password")
|
|
1070
1028
|
|
|
@@ -1072,7 +1030,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1072
1030
|
@pulumi.getter(name="vswitchId")
|
|
1073
1031
|
def vswitch_id(self) -> pulumi.Output[str]:
|
|
1074
1032
|
"""
|
|
1075
|
-
The
|
|
1033
|
+
The ID of the vSwitch.
|
|
1076
1034
|
"""
|
|
1077
1035
|
return pulumi.get(self, "vswitch_id")
|
|
1078
1036
|
|