pulumi-alicloud 3.63.0a1726291447__py3-none-any.whl → 3.63.0a1726828180__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/amqp/binding.py +30 -36
- pulumi_alicloud/cen/_inputs.py +180 -14
- pulumi_alicloud/cen/outputs.py +173 -12
- pulumi_alicloud/cen/traffic_marking_policy.py +116 -53
- pulumi_alicloud/cen/transit_router_vpc_attachment.py +338 -119
- pulumi_alicloud/cr/chart_namespace.py +14 -6
- pulumi_alicloud/cr/endpoint_acl_policy.py +10 -2
- pulumi_alicloud/cr/namespace.py +10 -2
- pulumi_alicloud/cs/registry_enterprise_sync_rule.py +10 -10
- pulumi_alicloud/ddos/bgp_ip.py +1 -1
- pulumi_alicloud/ecs/_inputs.py +28 -0
- pulumi_alicloud/ecs/outputs.py +20 -0
- pulumi_alicloud/emrv2/_inputs.py +12 -12
- pulumi_alicloud/emrv2/outputs.py +12 -12
- pulumi_alicloud/ens/_inputs.py +50 -2
- pulumi_alicloud/ens/instance.py +428 -184
- pulumi_alicloud/ens/outputs.py +57 -2
- pulumi_alicloud/expressconnect/physical_connection.py +321 -185
- pulumi_alicloud/fc/trigger.py +22 -24
- pulumi_alicloud/ga/endpoint_group.py +68 -14
- pulumi_alicloud/mongodb/instance.py +94 -0
- pulumi_alicloud/nlb/_inputs.py +120 -64
- pulumi_alicloud/nlb/get_listeners.py +32 -2
- pulumi_alicloud/nlb/get_server_group_server_attachments.py +8 -2
- pulumi_alicloud/nlb/listener.py +315 -245
- pulumi_alicloud/nlb/listener_additional_certificate_attachment.py +25 -25
- pulumi_alicloud/nlb/load_balancer.py +181 -212
- pulumi_alicloud/nlb/load_balancer_security_group_attachment.py +29 -39
- pulumi_alicloud/nlb/loadbalancer_common_bandwidth_package_attachment.py +22 -18
- pulumi_alicloud/nlb/outputs.py +122 -66
- pulumi_alicloud/nlb/security_policy.py +53 -25
- pulumi_alicloud/nlb/server_group.py +196 -133
- pulumi_alicloud/ocean/base_instance.py +498 -163
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/servicemesh/extension_provider.py +2 -2
- pulumi_alicloud/vpc/common_bandwith_package_attachment.py +2 -2
- {pulumi_alicloud-3.63.0a1726291447.dist-info → pulumi_alicloud-3.63.0a1726828180.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.63.0a1726291447.dist-info → pulumi_alicloud-3.63.0a1726828180.dist-info}/RECORD +40 -40
- {pulumi_alicloud-3.63.0a1726291447.dist-info → pulumi_alicloud-3.63.0a1726828180.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.63.0a1726291447.dist-info → pulumi_alicloud-3.63.0a1726828180.dist-info}/top_level.txt +0 -0
pulumi_alicloud/ens/instance.py
CHANGED
|
@@ -20,6 +20,7 @@ class InstanceArgs:
|
|
|
20
20
|
payment_type: pulumi.Input[str],
|
|
21
21
|
schedule_area_level: pulumi.Input[str],
|
|
22
22
|
amount: Optional[pulumi.Input[int]] = None,
|
|
23
|
+
auto_release_time: Optional[pulumi.Input[str]] = None,
|
|
23
24
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
24
25
|
auto_use_coupon: Optional[pulumi.Input[str]] = None,
|
|
25
26
|
billing_cycle: Optional[pulumi.Input[str]] = None,
|
|
@@ -35,6 +36,7 @@ class InstanceArgs:
|
|
|
35
36
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
36
37
|
internet_max_bandwidth_out: Optional[pulumi.Input[int]] = None,
|
|
37
38
|
ip_type: Optional[pulumi.Input[str]] = None,
|
|
39
|
+
key_pair_name: Optional[pulumi.Input[str]] = None,
|
|
38
40
|
net_district_code: Optional[pulumi.Input[str]] = None,
|
|
39
41
|
net_work_id: Optional[pulumi.Input[str]] = None,
|
|
40
42
|
password: Optional[pulumi.Input[str]] = None,
|
|
@@ -46,85 +48,101 @@ class InstanceArgs:
|
|
|
46
48
|
scheduling_price_strategy: Optional[pulumi.Input[str]] = None,
|
|
47
49
|
scheduling_strategy: Optional[pulumi.Input[str]] = None,
|
|
48
50
|
security_id: Optional[pulumi.Input[str]] = None,
|
|
51
|
+
spot_strategy: Optional[pulumi.Input[str]] = None,
|
|
49
52
|
status: Optional[pulumi.Input[str]] = None,
|
|
50
53
|
system_disk: Optional[pulumi.Input['InstanceSystemDiskArgs']] = None,
|
|
54
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
51
55
|
unique_suffix: Optional[pulumi.Input[bool]] = None,
|
|
52
56
|
user_data: Optional[pulumi.Input[str]] = None,
|
|
53
57
|
vswitch_id: Optional[pulumi.Input[str]] = None):
|
|
54
58
|
"""
|
|
55
59
|
The set of arguments for constructing a Instance resource.
|
|
56
|
-
:param pulumi.Input[str] instance_type: The specification of the instance. Example value: ens.sn1.small
|
|
57
|
-
:param pulumi.Input[str] payment_type: Instance payment method. Optional values:
|
|
60
|
+
:param pulumi.Input[str] instance_type: The specification of the instance. Example value: ens.sn1.small
|
|
61
|
+
:param pulumi.Input[str] payment_type: Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:
|
|
58
62
|
- Subscription: prepaid, annual and monthly
|
|
59
|
-
- PayAsYouGo: Pay by volume
|
|
63
|
+
- PayAsYouGo: Pay by volume
|
|
60
64
|
:param pulumi.Input[str] schedule_area_level: Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
|
|
61
65
|
- Node-level scheduling: Region
|
|
62
|
-
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
63
|
-
:param pulumi.Input[int] amount: The number of instances created, with a minimum of 1 and a maximum of 100
|
|
66
|
+
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
67
|
+
:param pulumi.Input[int] amount: The number of instances created, with a minimum of 1 and a maximum of 100
|
|
68
|
+
:param pulumi.Input[str] auto_release_time: The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
|
|
69
|
+
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
|
|
70
|
+
- The minimum release time is one hour after the current time.
|
|
64
71
|
:param pulumi.Input[bool] auto_renew: Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
|
|
65
72
|
:param pulumi.Input[str] auto_use_coupon: Whether to use vouchers. The default is to use. Value:
|
|
66
73
|
- true (used)
|
|
67
|
-
- false (not used)
|
|
74
|
+
- false (not used)
|
|
68
75
|
:param pulumi.Input[str] billing_cycle: The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
|
|
69
76
|
- Hour: hourly billing
|
|
70
77
|
- Day: Daily billing
|
|
71
|
-
- Month: monthly billing
|
|
78
|
+
- Month: monthly billing
|
|
72
79
|
:param pulumi.Input[str] carrier: Operator, required for regional scheduling. Optional values:
|
|
73
80
|
- cmcc (mobile)
|
|
74
81
|
- unicom
|
|
75
|
-
- telecom
|
|
76
|
-
:param pulumi.Input[Sequence[pulumi.Input['InstanceDataDiskArgs']]] data_disks: Data disk specifications
|
|
82
|
+
- telecom
|
|
83
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceDataDiskArgs']]] data_disks: Data disk specifications See `data_disk` below.
|
|
77
84
|
:param pulumi.Input[str] ens_region_id: The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
|
|
78
85
|
:param pulumi.Input[str] force_stop: Whether to force the identity when operating the instance. Optional values:
|
|
79
86
|
- true: Force
|
|
80
87
|
- false (default): non-mandatory
|
|
81
|
-
:param pulumi.Input[str] host_name: The host name of the instance. Example value: test-HostName
|
|
82
|
-
:param pulumi.Input[str] image_id: The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * *
|
|
88
|
+
:param pulumi.Input[str] host_name: The host name of the instance. Example value: test-HostName
|
|
89
|
+
:param pulumi.Input[str] image_id: The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
|
|
83
90
|
:param pulumi.Input[bool] include_data_disks: Whether the Payment type of the disk created with the instance is converted.
|
|
84
91
|
:param pulumi.Input[str] instance_charge_strategy: The instance billing policy. Optional values:
|
|
85
92
|
- instance: instance granularity (the subscription method does not support instance)
|
|
86
|
-
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
87
|
-
:param pulumi.Input[str] instance_name: The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
93
|
+
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
94
|
+
:param pulumi.Input[str] instance_name: The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
95
|
+
|
|
96
|
+
The default value is the InstanceId of the instance.
|
|
88
97
|
:param pulumi.Input[str] internet_charge_type: Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
|
|
89
98
|
- BandwidthByDay: Daily peak bandwidth
|
|
90
|
-
- 95bandwidthbymonth: 95 peak bandwidth
|
|
91
|
-
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
99
|
+
- 95bandwidthbymonth: 95 peak bandwidth
|
|
100
|
+
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
92
101
|
:param pulumi.Input[str] ip_type: The IP type. Value:
|
|
93
102
|
- ipv4 (default):IPv4
|
|
94
103
|
- ipv6:IPv6
|
|
95
|
-
- ipv4Andipv6:IPv4 and IPv6
|
|
96
|
-
:param pulumi.Input[str]
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:param pulumi.Input[
|
|
104
|
+
- ipv4Andipv6:IPv4 and IPv6
|
|
105
|
+
:param pulumi.Input[str] key_pair_name: The key pair name.
|
|
106
|
+
|
|
107
|
+
> **NOTE:** At least one of `Password`, `KeyPairName`, and **PasswordInherit.
|
|
108
|
+
:param pulumi.Input[str] net_district_code: The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
109
|
+
:param pulumi.Input[str] net_work_id: The network ID of the instance. Can only be used in node-level scheduling
|
|
110
|
+
:param pulumi.Input[str] password: The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
111
|
+
:param pulumi.Input[bool] password_inherit: Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
100
112
|
:param pulumi.Input[int] period: The duration of the resource purchase. Value method:
|
|
101
113
|
- If PeriodUnit is set to Day, Period can only be set to 3.
|
|
102
114
|
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
|
|
103
115
|
:param pulumi.Input[str] period_unit: The unit of time for purchasing resources. Value:
|
|
104
116
|
- Month (default): purchase by Month
|
|
105
|
-
- Day: buy by Day
|
|
117
|
+
- Day: buy by Day
|
|
106
118
|
:param pulumi.Input[str] private_ip_address: The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
|
|
107
119
|
:param pulumi.Input[bool] public_ip_identification: Whether to assign a public IP identifier. Value:
|
|
108
120
|
- true (default): Assign
|
|
109
|
-
- false: do not assign
|
|
121
|
+
- false: do not assign
|
|
110
122
|
:param pulumi.Input[str] scheduling_price_strategy: Scheduling price policy. If it is not filled in, the default priority is low price. Value:
|
|
111
123
|
- PriceLowPriority
|
|
112
|
-
- PriceLowPriority (priority low price)
|
|
124
|
+
- PriceLowPriority (priority low price)
|
|
113
125
|
:param pulumi.Input[str] scheduling_strategy: Scheduling policy. Optional values:
|
|
114
126
|
- Concentrate for node-level scheduling
|
|
115
|
-
- For regional scheduling, Concentrate, Disperse
|
|
127
|
+
- For regional scheduling, Concentrate, Disperse
|
|
116
128
|
:param pulumi.Input[str] security_id: ID of the security group to which the instance belongs.
|
|
117
|
-
:param pulumi.Input[str]
|
|
129
|
+
:param pulumi.Input[str] spot_strategy: The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
|
|
130
|
+
- NoSpot: normal pay-as-you-go instance (default)
|
|
131
|
+
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
|
|
132
|
+
:param pulumi.Input[str] status: Status of the instance
|
|
118
133
|
:param pulumi.Input['InstanceSystemDiskArgs'] system_disk: System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See `system_disk` below.
|
|
134
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tag bound to the instance
|
|
119
135
|
:param pulumi.Input[bool] unique_suffix: Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
|
|
120
136
|
:param pulumi.Input[str] user_data: User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
|
|
121
|
-
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
137
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
122
138
|
"""
|
|
123
139
|
pulumi.set(__self__, "instance_type", instance_type)
|
|
124
140
|
pulumi.set(__self__, "payment_type", payment_type)
|
|
125
141
|
pulumi.set(__self__, "schedule_area_level", schedule_area_level)
|
|
126
142
|
if amount is not None:
|
|
127
143
|
pulumi.set(__self__, "amount", amount)
|
|
144
|
+
if auto_release_time is not None:
|
|
145
|
+
pulumi.set(__self__, "auto_release_time", auto_release_time)
|
|
128
146
|
if auto_renew is not None:
|
|
129
147
|
pulumi.set(__self__, "auto_renew", auto_renew)
|
|
130
148
|
if auto_use_coupon is not None:
|
|
@@ -155,6 +173,8 @@ class InstanceArgs:
|
|
|
155
173
|
pulumi.set(__self__, "internet_max_bandwidth_out", internet_max_bandwidth_out)
|
|
156
174
|
if ip_type is not None:
|
|
157
175
|
pulumi.set(__self__, "ip_type", ip_type)
|
|
176
|
+
if key_pair_name is not None:
|
|
177
|
+
pulumi.set(__self__, "key_pair_name", key_pair_name)
|
|
158
178
|
if net_district_code is not None:
|
|
159
179
|
pulumi.set(__self__, "net_district_code", net_district_code)
|
|
160
180
|
if net_work_id is not None:
|
|
@@ -177,10 +197,14 @@ class InstanceArgs:
|
|
|
177
197
|
pulumi.set(__self__, "scheduling_strategy", scheduling_strategy)
|
|
178
198
|
if security_id is not None:
|
|
179
199
|
pulumi.set(__self__, "security_id", security_id)
|
|
200
|
+
if spot_strategy is not None:
|
|
201
|
+
pulumi.set(__self__, "spot_strategy", spot_strategy)
|
|
180
202
|
if status is not None:
|
|
181
203
|
pulumi.set(__self__, "status", status)
|
|
182
204
|
if system_disk is not None:
|
|
183
205
|
pulumi.set(__self__, "system_disk", system_disk)
|
|
206
|
+
if tags is not None:
|
|
207
|
+
pulumi.set(__self__, "tags", tags)
|
|
184
208
|
if unique_suffix is not None:
|
|
185
209
|
pulumi.set(__self__, "unique_suffix", unique_suffix)
|
|
186
210
|
if user_data is not None:
|
|
@@ -192,7 +216,7 @@ class InstanceArgs:
|
|
|
192
216
|
@pulumi.getter(name="instanceType")
|
|
193
217
|
def instance_type(self) -> pulumi.Input[str]:
|
|
194
218
|
"""
|
|
195
|
-
The specification of the instance. Example value: ens.sn1.small
|
|
219
|
+
The specification of the instance. Example value: ens.sn1.small
|
|
196
220
|
"""
|
|
197
221
|
return pulumi.get(self, "instance_type")
|
|
198
222
|
|
|
@@ -204,9 +228,9 @@ class InstanceArgs:
|
|
|
204
228
|
@pulumi.getter(name="paymentType")
|
|
205
229
|
def payment_type(self) -> pulumi.Input[str]:
|
|
206
230
|
"""
|
|
207
|
-
Instance payment method. Optional values:
|
|
231
|
+
Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:
|
|
208
232
|
- Subscription: prepaid, annual and monthly
|
|
209
|
-
- PayAsYouGo: Pay by volume
|
|
233
|
+
- PayAsYouGo: Pay by volume
|
|
210
234
|
"""
|
|
211
235
|
return pulumi.get(self, "payment_type")
|
|
212
236
|
|
|
@@ -220,7 +244,7 @@ class InstanceArgs:
|
|
|
220
244
|
"""
|
|
221
245
|
Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
|
|
222
246
|
- Node-level scheduling: Region
|
|
223
|
-
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
247
|
+
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
224
248
|
"""
|
|
225
249
|
return pulumi.get(self, "schedule_area_level")
|
|
226
250
|
|
|
@@ -232,7 +256,7 @@ class InstanceArgs:
|
|
|
232
256
|
@pulumi.getter
|
|
233
257
|
def amount(self) -> Optional[pulumi.Input[int]]:
|
|
234
258
|
"""
|
|
235
|
-
The number of instances created, with a minimum of 1 and a maximum of 100
|
|
259
|
+
The number of instances created, with a minimum of 1 and a maximum of 100
|
|
236
260
|
"""
|
|
237
261
|
return pulumi.get(self, "amount")
|
|
238
262
|
|
|
@@ -240,6 +264,20 @@ class InstanceArgs:
|
|
|
240
264
|
def amount(self, value: Optional[pulumi.Input[int]]):
|
|
241
265
|
pulumi.set(self, "amount", value)
|
|
242
266
|
|
|
267
|
+
@property
|
|
268
|
+
@pulumi.getter(name="autoReleaseTime")
|
|
269
|
+
def auto_release_time(self) -> Optional[pulumi.Input[str]]:
|
|
270
|
+
"""
|
|
271
|
+
The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
|
|
272
|
+
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
|
|
273
|
+
- The minimum release time is one hour after the current time.
|
|
274
|
+
"""
|
|
275
|
+
return pulumi.get(self, "auto_release_time")
|
|
276
|
+
|
|
277
|
+
@auto_release_time.setter
|
|
278
|
+
def auto_release_time(self, value: Optional[pulumi.Input[str]]):
|
|
279
|
+
pulumi.set(self, "auto_release_time", value)
|
|
280
|
+
|
|
243
281
|
@property
|
|
244
282
|
@pulumi.getter(name="autoRenew")
|
|
245
283
|
def auto_renew(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -258,7 +296,7 @@ class InstanceArgs:
|
|
|
258
296
|
"""
|
|
259
297
|
Whether to use vouchers. The default is to use. Value:
|
|
260
298
|
- true (used)
|
|
261
|
-
- false (not used)
|
|
299
|
+
- false (not used)
|
|
262
300
|
"""
|
|
263
301
|
return pulumi.get(self, "auto_use_coupon")
|
|
264
302
|
|
|
@@ -273,7 +311,7 @@ class InstanceArgs:
|
|
|
273
311
|
The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
|
|
274
312
|
- Hour: hourly billing
|
|
275
313
|
- Day: Daily billing
|
|
276
|
-
- Month: monthly billing
|
|
314
|
+
- Month: monthly billing
|
|
277
315
|
"""
|
|
278
316
|
return pulumi.get(self, "billing_cycle")
|
|
279
317
|
|
|
@@ -288,7 +326,7 @@ class InstanceArgs:
|
|
|
288
326
|
Operator, required for regional scheduling. Optional values:
|
|
289
327
|
- cmcc (mobile)
|
|
290
328
|
- unicom
|
|
291
|
-
- telecom
|
|
329
|
+
- telecom
|
|
292
330
|
"""
|
|
293
331
|
return pulumi.get(self, "carrier")
|
|
294
332
|
|
|
@@ -300,7 +338,7 @@ class InstanceArgs:
|
|
|
300
338
|
@pulumi.getter(name="dataDisks")
|
|
301
339
|
def data_disks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceDataDiskArgs']]]]:
|
|
302
340
|
"""
|
|
303
|
-
Data disk specifications
|
|
341
|
+
Data disk specifications See `data_disk` below.
|
|
304
342
|
"""
|
|
305
343
|
return pulumi.get(self, "data_disks")
|
|
306
344
|
|
|
@@ -338,7 +376,7 @@ class InstanceArgs:
|
|
|
338
376
|
@pulumi.getter(name="hostName")
|
|
339
377
|
def host_name(self) -> Optional[pulumi.Input[str]]:
|
|
340
378
|
"""
|
|
341
|
-
The host name of the instance. Example value: test-HostName
|
|
379
|
+
The host name of the instance. Example value: test-HostName
|
|
342
380
|
"""
|
|
343
381
|
return pulumi.get(self, "host_name")
|
|
344
382
|
|
|
@@ -350,7 +388,7 @@ class InstanceArgs:
|
|
|
350
388
|
@pulumi.getter(name="imageId")
|
|
351
389
|
def image_id(self) -> Optional[pulumi.Input[str]]:
|
|
352
390
|
"""
|
|
353
|
-
The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * *
|
|
391
|
+
The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
|
|
354
392
|
"""
|
|
355
393
|
return pulumi.get(self, "image_id")
|
|
356
394
|
|
|
@@ -376,7 +414,7 @@ class InstanceArgs:
|
|
|
376
414
|
"""
|
|
377
415
|
The instance billing policy. Optional values:
|
|
378
416
|
- instance: instance granularity (the subscription method does not support instance)
|
|
379
|
-
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
417
|
+
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
380
418
|
"""
|
|
381
419
|
return pulumi.get(self, "instance_charge_strategy")
|
|
382
420
|
|
|
@@ -388,7 +426,9 @@ class InstanceArgs:
|
|
|
388
426
|
@pulumi.getter(name="instanceName")
|
|
389
427
|
def instance_name(self) -> Optional[pulumi.Input[str]]:
|
|
390
428
|
"""
|
|
391
|
-
The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
429
|
+
The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
430
|
+
|
|
431
|
+
The default value is the InstanceId of the instance.
|
|
392
432
|
"""
|
|
393
433
|
return pulumi.get(self, "instance_name")
|
|
394
434
|
|
|
@@ -402,7 +442,7 @@ class InstanceArgs:
|
|
|
402
442
|
"""
|
|
403
443
|
Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
|
|
404
444
|
- BandwidthByDay: Daily peak bandwidth
|
|
405
|
-
- 95bandwidthbymonth: 95 peak bandwidth
|
|
445
|
+
- 95bandwidthbymonth: 95 peak bandwidth
|
|
406
446
|
"""
|
|
407
447
|
return pulumi.get(self, "internet_charge_type")
|
|
408
448
|
|
|
@@ -414,7 +454,7 @@ class InstanceArgs:
|
|
|
414
454
|
@pulumi.getter(name="internetMaxBandwidthOut")
|
|
415
455
|
def internet_max_bandwidth_out(self) -> Optional[pulumi.Input[int]]:
|
|
416
456
|
"""
|
|
417
|
-
Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
457
|
+
Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
418
458
|
"""
|
|
419
459
|
return pulumi.get(self, "internet_max_bandwidth_out")
|
|
420
460
|
|
|
@@ -429,7 +469,7 @@ class InstanceArgs:
|
|
|
429
469
|
The IP type. Value:
|
|
430
470
|
- ipv4 (default):IPv4
|
|
431
471
|
- ipv6:IPv6
|
|
432
|
-
- ipv4Andipv6:IPv4 and IPv6
|
|
472
|
+
- ipv4Andipv6:IPv4 and IPv6
|
|
433
473
|
"""
|
|
434
474
|
return pulumi.get(self, "ip_type")
|
|
435
475
|
|
|
@@ -437,11 +477,25 @@ class InstanceArgs:
|
|
|
437
477
|
def ip_type(self, value: Optional[pulumi.Input[str]]):
|
|
438
478
|
pulumi.set(self, "ip_type", value)
|
|
439
479
|
|
|
480
|
+
@property
|
|
481
|
+
@pulumi.getter(name="keyPairName")
|
|
482
|
+
def key_pair_name(self) -> Optional[pulumi.Input[str]]:
|
|
483
|
+
"""
|
|
484
|
+
The key pair name.
|
|
485
|
+
|
|
486
|
+
> **NOTE:** At least one of `Password`, `KeyPairName`, and **PasswordInherit.
|
|
487
|
+
"""
|
|
488
|
+
return pulumi.get(self, "key_pair_name")
|
|
489
|
+
|
|
490
|
+
@key_pair_name.setter
|
|
491
|
+
def key_pair_name(self, value: Optional[pulumi.Input[str]]):
|
|
492
|
+
pulumi.set(self, "key_pair_name", value)
|
|
493
|
+
|
|
440
494
|
@property
|
|
441
495
|
@pulumi.getter(name="netDistrictCode")
|
|
442
496
|
def net_district_code(self) -> Optional[pulumi.Input[str]]:
|
|
443
497
|
"""
|
|
444
|
-
The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
498
|
+
The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
445
499
|
"""
|
|
446
500
|
return pulumi.get(self, "net_district_code")
|
|
447
501
|
|
|
@@ -453,7 +507,7 @@ class InstanceArgs:
|
|
|
453
507
|
@pulumi.getter(name="netWorkId")
|
|
454
508
|
def net_work_id(self) -> Optional[pulumi.Input[str]]:
|
|
455
509
|
"""
|
|
456
|
-
The network ID of the instance. Can only be used in node-level scheduling
|
|
510
|
+
The network ID of the instance. Can only be used in node-level scheduling
|
|
457
511
|
"""
|
|
458
512
|
return pulumi.get(self, "net_work_id")
|
|
459
513
|
|
|
@@ -465,7 +519,7 @@ class InstanceArgs:
|
|
|
465
519
|
@pulumi.getter
|
|
466
520
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
467
521
|
"""
|
|
468
|
-
The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
522
|
+
The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
469
523
|
"""
|
|
470
524
|
return pulumi.get(self, "password")
|
|
471
525
|
|
|
@@ -477,7 +531,7 @@ class InstanceArgs:
|
|
|
477
531
|
@pulumi.getter(name="passwordInherit")
|
|
478
532
|
def password_inherit(self) -> Optional[pulumi.Input[bool]]:
|
|
479
533
|
"""
|
|
480
|
-
Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
534
|
+
Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
481
535
|
"""
|
|
482
536
|
return pulumi.get(self, "password_inherit")
|
|
483
537
|
|
|
@@ -505,7 +559,7 @@ class InstanceArgs:
|
|
|
505
559
|
"""
|
|
506
560
|
The unit of time for purchasing resources. Value:
|
|
507
561
|
- Month (default): purchase by Month
|
|
508
|
-
- Day: buy by Day
|
|
562
|
+
- Day: buy by Day
|
|
509
563
|
"""
|
|
510
564
|
return pulumi.get(self, "period_unit")
|
|
511
565
|
|
|
@@ -531,7 +585,7 @@ class InstanceArgs:
|
|
|
531
585
|
"""
|
|
532
586
|
Whether to assign a public IP identifier. Value:
|
|
533
587
|
- true (default): Assign
|
|
534
|
-
- false: do not assign
|
|
588
|
+
- false: do not assign
|
|
535
589
|
"""
|
|
536
590
|
return pulumi.get(self, "public_ip_identification")
|
|
537
591
|
|
|
@@ -545,7 +599,7 @@ class InstanceArgs:
|
|
|
545
599
|
"""
|
|
546
600
|
Scheduling price policy. If it is not filled in, the default priority is low price. Value:
|
|
547
601
|
- PriceLowPriority
|
|
548
|
-
- PriceLowPriority (priority low price)
|
|
602
|
+
- PriceLowPriority (priority low price)
|
|
549
603
|
"""
|
|
550
604
|
return pulumi.get(self, "scheduling_price_strategy")
|
|
551
605
|
|
|
@@ -559,7 +613,7 @@ class InstanceArgs:
|
|
|
559
613
|
"""
|
|
560
614
|
Scheduling policy. Optional values:
|
|
561
615
|
- Concentrate for node-level scheduling
|
|
562
|
-
- For regional scheduling, Concentrate, Disperse
|
|
616
|
+
- For regional scheduling, Concentrate, Disperse
|
|
563
617
|
"""
|
|
564
618
|
return pulumi.get(self, "scheduling_strategy")
|
|
565
619
|
|
|
@@ -579,11 +633,25 @@ class InstanceArgs:
|
|
|
579
633
|
def security_id(self, value: Optional[pulumi.Input[str]]):
|
|
580
634
|
pulumi.set(self, "security_id", value)
|
|
581
635
|
|
|
636
|
+
@property
|
|
637
|
+
@pulumi.getter(name="spotStrategy")
|
|
638
|
+
def spot_strategy(self) -> Optional[pulumi.Input[str]]:
|
|
639
|
+
"""
|
|
640
|
+
The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
|
|
641
|
+
- NoSpot: normal pay-as-you-go instance (default)
|
|
642
|
+
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
|
|
643
|
+
"""
|
|
644
|
+
return pulumi.get(self, "spot_strategy")
|
|
645
|
+
|
|
646
|
+
@spot_strategy.setter
|
|
647
|
+
def spot_strategy(self, value: Optional[pulumi.Input[str]]):
|
|
648
|
+
pulumi.set(self, "spot_strategy", value)
|
|
649
|
+
|
|
582
650
|
@property
|
|
583
651
|
@pulumi.getter
|
|
584
652
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
585
653
|
"""
|
|
586
|
-
Status of the instance
|
|
654
|
+
Status of the instance
|
|
587
655
|
"""
|
|
588
656
|
return pulumi.get(self, "status")
|
|
589
657
|
|
|
@@ -603,6 +671,18 @@ class InstanceArgs:
|
|
|
603
671
|
def system_disk(self, value: Optional[pulumi.Input['InstanceSystemDiskArgs']]):
|
|
604
672
|
pulumi.set(self, "system_disk", value)
|
|
605
673
|
|
|
674
|
+
@property
|
|
675
|
+
@pulumi.getter
|
|
676
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
677
|
+
"""
|
|
678
|
+
The tag bound to the instance
|
|
679
|
+
"""
|
|
680
|
+
return pulumi.get(self, "tags")
|
|
681
|
+
|
|
682
|
+
@tags.setter
|
|
683
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
684
|
+
pulumi.set(self, "tags", value)
|
|
685
|
+
|
|
606
686
|
@property
|
|
607
687
|
@pulumi.getter(name="uniqueSuffix")
|
|
608
688
|
def unique_suffix(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -631,7 +711,7 @@ class InstanceArgs:
|
|
|
631
711
|
@pulumi.getter(name="vswitchId")
|
|
632
712
|
def vswitch_id(self) -> Optional[pulumi.Input[str]]:
|
|
633
713
|
"""
|
|
634
|
-
The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
714
|
+
The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
635
715
|
"""
|
|
636
716
|
return pulumi.get(self, "vswitch_id")
|
|
637
717
|
|
|
@@ -644,6 +724,7 @@ class InstanceArgs:
|
|
|
644
724
|
class _InstanceState:
|
|
645
725
|
def __init__(__self__, *,
|
|
646
726
|
amount: Optional[pulumi.Input[int]] = None,
|
|
727
|
+
auto_release_time: Optional[pulumi.Input[str]] = None,
|
|
647
728
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
648
729
|
auto_use_coupon: Optional[pulumi.Input[str]] = None,
|
|
649
730
|
billing_cycle: Optional[pulumi.Input[str]] = None,
|
|
@@ -660,6 +741,7 @@ class _InstanceState:
|
|
|
660
741
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
661
742
|
internet_max_bandwidth_out: Optional[pulumi.Input[int]] = None,
|
|
662
743
|
ip_type: Optional[pulumi.Input[str]] = None,
|
|
744
|
+
key_pair_name: Optional[pulumi.Input[str]] = None,
|
|
663
745
|
net_district_code: Optional[pulumi.Input[str]] = None,
|
|
664
746
|
net_work_id: Optional[pulumi.Input[str]] = None,
|
|
665
747
|
password: Optional[pulumi.Input[str]] = None,
|
|
@@ -673,82 +755,98 @@ class _InstanceState:
|
|
|
673
755
|
scheduling_price_strategy: Optional[pulumi.Input[str]] = None,
|
|
674
756
|
scheduling_strategy: Optional[pulumi.Input[str]] = None,
|
|
675
757
|
security_id: Optional[pulumi.Input[str]] = None,
|
|
758
|
+
spot_strategy: Optional[pulumi.Input[str]] = None,
|
|
676
759
|
status: Optional[pulumi.Input[str]] = None,
|
|
677
760
|
system_disk: Optional[pulumi.Input['InstanceSystemDiskArgs']] = None,
|
|
761
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
678
762
|
unique_suffix: Optional[pulumi.Input[bool]] = None,
|
|
679
763
|
user_data: Optional[pulumi.Input[str]] = None,
|
|
680
764
|
vswitch_id: Optional[pulumi.Input[str]] = None):
|
|
681
765
|
"""
|
|
682
766
|
Input properties used for looking up and filtering Instance resources.
|
|
683
|
-
:param pulumi.Input[int] amount: The number of instances created, with a minimum of 1 and a maximum of 100
|
|
767
|
+
:param pulumi.Input[int] amount: The number of instances created, with a minimum of 1 and a maximum of 100
|
|
768
|
+
:param pulumi.Input[str] auto_release_time: The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
|
|
769
|
+
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
|
|
770
|
+
- The minimum release time is one hour after the current time.
|
|
684
771
|
:param pulumi.Input[bool] auto_renew: Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
|
|
685
772
|
:param pulumi.Input[str] auto_use_coupon: Whether to use vouchers. The default is to use. Value:
|
|
686
773
|
- true (used)
|
|
687
|
-
- false (not used)
|
|
774
|
+
- false (not used)
|
|
688
775
|
:param pulumi.Input[str] billing_cycle: The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
|
|
689
776
|
- Hour: hourly billing
|
|
690
777
|
- Day: Daily billing
|
|
691
|
-
- Month: monthly billing
|
|
778
|
+
- Month: monthly billing
|
|
692
779
|
:param pulumi.Input[str] carrier: Operator, required for regional scheduling. Optional values:
|
|
693
780
|
- cmcc (mobile)
|
|
694
781
|
- unicom
|
|
695
|
-
- telecom
|
|
696
|
-
:param pulumi.Input[Sequence[pulumi.Input['InstanceDataDiskArgs']]] data_disks: Data disk specifications
|
|
782
|
+
- telecom
|
|
783
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceDataDiskArgs']]] data_disks: Data disk specifications See `data_disk` below.
|
|
697
784
|
:param pulumi.Input[str] ens_region_id: The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
|
|
698
785
|
:param pulumi.Input[str] force_stop: Whether to force the identity when operating the instance. Optional values:
|
|
699
786
|
- true: Force
|
|
700
787
|
- false (default): non-mandatory
|
|
701
|
-
:param pulumi.Input[str] host_name: The host name of the instance. Example value: test-HostName
|
|
702
|
-
:param pulumi.Input[str] image_id: The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * *
|
|
788
|
+
:param pulumi.Input[str] host_name: The host name of the instance. Example value: test-HostName
|
|
789
|
+
:param pulumi.Input[str] image_id: The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
|
|
703
790
|
:param pulumi.Input[bool] include_data_disks: Whether the Payment type of the disk created with the instance is converted.
|
|
704
791
|
:param pulumi.Input[str] instance_charge_strategy: The instance billing policy. Optional values:
|
|
705
792
|
- instance: instance granularity (the subscription method does not support instance)
|
|
706
|
-
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
707
|
-
:param pulumi.Input[str] instance_name: The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
708
|
-
|
|
793
|
+
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
794
|
+
:param pulumi.Input[str] instance_name: The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
795
|
+
|
|
796
|
+
The default value is the InstanceId of the instance.
|
|
797
|
+
:param pulumi.Input[str] instance_type: The specification of the instance. Example value: ens.sn1.small
|
|
709
798
|
:param pulumi.Input[str] internet_charge_type: Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
|
|
710
799
|
- BandwidthByDay: Daily peak bandwidth
|
|
711
|
-
- 95bandwidthbymonth: 95 peak bandwidth
|
|
712
|
-
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
800
|
+
- 95bandwidthbymonth: 95 peak bandwidth
|
|
801
|
+
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
713
802
|
:param pulumi.Input[str] ip_type: The IP type. Value:
|
|
714
803
|
- ipv4 (default):IPv4
|
|
715
804
|
- ipv6:IPv6
|
|
716
|
-
- ipv4Andipv6:IPv4 and IPv6
|
|
717
|
-
:param pulumi.Input[str]
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
:param pulumi.Input[
|
|
721
|
-
:param pulumi.Input[str]
|
|
805
|
+
- ipv4Andipv6:IPv4 and IPv6
|
|
806
|
+
:param pulumi.Input[str] key_pair_name: The key pair name.
|
|
807
|
+
|
|
808
|
+
> **NOTE:** At least one of `Password`, `KeyPairName`, and **PasswordInherit.
|
|
809
|
+
:param pulumi.Input[str] net_district_code: The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
810
|
+
:param pulumi.Input[str] net_work_id: The network ID of the instance. Can only be used in node-level scheduling
|
|
811
|
+
:param pulumi.Input[str] password: The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
812
|
+
:param pulumi.Input[bool] password_inherit: Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
813
|
+
:param pulumi.Input[str] payment_type: Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:
|
|
722
814
|
- Subscription: prepaid, annual and monthly
|
|
723
|
-
- PayAsYouGo: Pay by volume
|
|
815
|
+
- PayAsYouGo: Pay by volume
|
|
724
816
|
:param pulumi.Input[int] period: The duration of the resource purchase. Value method:
|
|
725
817
|
- If PeriodUnit is set to Day, Period can only be set to 3.
|
|
726
818
|
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
|
|
727
819
|
:param pulumi.Input[str] period_unit: The unit of time for purchasing resources. Value:
|
|
728
820
|
- Month (default): purchase by Month
|
|
729
|
-
- Day: buy by Day
|
|
821
|
+
- Day: buy by Day
|
|
730
822
|
:param pulumi.Input[str] private_ip_address: The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
|
|
731
823
|
:param pulumi.Input[bool] public_ip_identification: Whether to assign a public IP identifier. Value:
|
|
732
824
|
- true (default): Assign
|
|
733
|
-
- false: do not assign
|
|
825
|
+
- false: do not assign
|
|
734
826
|
:param pulumi.Input[str] schedule_area_level: Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
|
|
735
827
|
- Node-level scheduling: Region
|
|
736
|
-
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
828
|
+
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
737
829
|
:param pulumi.Input[str] scheduling_price_strategy: Scheduling price policy. If it is not filled in, the default priority is low price. Value:
|
|
738
830
|
- PriceLowPriority
|
|
739
|
-
- PriceLowPriority (priority low price)
|
|
831
|
+
- PriceLowPriority (priority low price)
|
|
740
832
|
:param pulumi.Input[str] scheduling_strategy: Scheduling policy. Optional values:
|
|
741
833
|
- Concentrate for node-level scheduling
|
|
742
|
-
- For regional scheduling, Concentrate, Disperse
|
|
834
|
+
- For regional scheduling, Concentrate, Disperse
|
|
743
835
|
:param pulumi.Input[str] security_id: ID of the security group to which the instance belongs.
|
|
744
|
-
:param pulumi.Input[str]
|
|
836
|
+
:param pulumi.Input[str] spot_strategy: The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
|
|
837
|
+
- NoSpot: normal pay-as-you-go instance (default)
|
|
838
|
+
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
|
|
839
|
+
:param pulumi.Input[str] status: Status of the instance
|
|
745
840
|
:param pulumi.Input['InstanceSystemDiskArgs'] system_disk: System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See `system_disk` below.
|
|
841
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tag bound to the instance
|
|
746
842
|
:param pulumi.Input[bool] unique_suffix: Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
|
|
747
843
|
:param pulumi.Input[str] user_data: User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
|
|
748
|
-
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
844
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
749
845
|
"""
|
|
750
846
|
if amount is not None:
|
|
751
847
|
pulumi.set(__self__, "amount", amount)
|
|
848
|
+
if auto_release_time is not None:
|
|
849
|
+
pulumi.set(__self__, "auto_release_time", auto_release_time)
|
|
752
850
|
if auto_renew is not None:
|
|
753
851
|
pulumi.set(__self__, "auto_renew", auto_renew)
|
|
754
852
|
if auto_use_coupon is not None:
|
|
@@ -781,6 +879,8 @@ class _InstanceState:
|
|
|
781
879
|
pulumi.set(__self__, "internet_max_bandwidth_out", internet_max_bandwidth_out)
|
|
782
880
|
if ip_type is not None:
|
|
783
881
|
pulumi.set(__self__, "ip_type", ip_type)
|
|
882
|
+
if key_pair_name is not None:
|
|
883
|
+
pulumi.set(__self__, "key_pair_name", key_pair_name)
|
|
784
884
|
if net_district_code is not None:
|
|
785
885
|
pulumi.set(__self__, "net_district_code", net_district_code)
|
|
786
886
|
if net_work_id is not None:
|
|
@@ -807,10 +907,14 @@ class _InstanceState:
|
|
|
807
907
|
pulumi.set(__self__, "scheduling_strategy", scheduling_strategy)
|
|
808
908
|
if security_id is not None:
|
|
809
909
|
pulumi.set(__self__, "security_id", security_id)
|
|
910
|
+
if spot_strategy is not None:
|
|
911
|
+
pulumi.set(__self__, "spot_strategy", spot_strategy)
|
|
810
912
|
if status is not None:
|
|
811
913
|
pulumi.set(__self__, "status", status)
|
|
812
914
|
if system_disk is not None:
|
|
813
915
|
pulumi.set(__self__, "system_disk", system_disk)
|
|
916
|
+
if tags is not None:
|
|
917
|
+
pulumi.set(__self__, "tags", tags)
|
|
814
918
|
if unique_suffix is not None:
|
|
815
919
|
pulumi.set(__self__, "unique_suffix", unique_suffix)
|
|
816
920
|
if user_data is not None:
|
|
@@ -822,7 +926,7 @@ class _InstanceState:
|
|
|
822
926
|
@pulumi.getter
|
|
823
927
|
def amount(self) -> Optional[pulumi.Input[int]]:
|
|
824
928
|
"""
|
|
825
|
-
The number of instances created, with a minimum of 1 and a maximum of 100
|
|
929
|
+
The number of instances created, with a minimum of 1 and a maximum of 100
|
|
826
930
|
"""
|
|
827
931
|
return pulumi.get(self, "amount")
|
|
828
932
|
|
|
@@ -830,6 +934,20 @@ class _InstanceState:
|
|
|
830
934
|
def amount(self, value: Optional[pulumi.Input[int]]):
|
|
831
935
|
pulumi.set(self, "amount", value)
|
|
832
936
|
|
|
937
|
+
@property
|
|
938
|
+
@pulumi.getter(name="autoReleaseTime")
|
|
939
|
+
def auto_release_time(self) -> Optional[pulumi.Input[str]]:
|
|
940
|
+
"""
|
|
941
|
+
The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
|
|
942
|
+
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
|
|
943
|
+
- The minimum release time is one hour after the current time.
|
|
944
|
+
"""
|
|
945
|
+
return pulumi.get(self, "auto_release_time")
|
|
946
|
+
|
|
947
|
+
@auto_release_time.setter
|
|
948
|
+
def auto_release_time(self, value: Optional[pulumi.Input[str]]):
|
|
949
|
+
pulumi.set(self, "auto_release_time", value)
|
|
950
|
+
|
|
833
951
|
@property
|
|
834
952
|
@pulumi.getter(name="autoRenew")
|
|
835
953
|
def auto_renew(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -848,7 +966,7 @@ class _InstanceState:
|
|
|
848
966
|
"""
|
|
849
967
|
Whether to use vouchers. The default is to use. Value:
|
|
850
968
|
- true (used)
|
|
851
|
-
- false (not used)
|
|
969
|
+
- false (not used)
|
|
852
970
|
"""
|
|
853
971
|
return pulumi.get(self, "auto_use_coupon")
|
|
854
972
|
|
|
@@ -863,7 +981,7 @@ class _InstanceState:
|
|
|
863
981
|
The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
|
|
864
982
|
- Hour: hourly billing
|
|
865
983
|
- Day: Daily billing
|
|
866
|
-
- Month: monthly billing
|
|
984
|
+
- Month: monthly billing
|
|
867
985
|
"""
|
|
868
986
|
return pulumi.get(self, "billing_cycle")
|
|
869
987
|
|
|
@@ -878,7 +996,7 @@ class _InstanceState:
|
|
|
878
996
|
Operator, required for regional scheduling. Optional values:
|
|
879
997
|
- cmcc (mobile)
|
|
880
998
|
- unicom
|
|
881
|
-
- telecom
|
|
999
|
+
- telecom
|
|
882
1000
|
"""
|
|
883
1001
|
return pulumi.get(self, "carrier")
|
|
884
1002
|
|
|
@@ -890,7 +1008,7 @@ class _InstanceState:
|
|
|
890
1008
|
@pulumi.getter(name="dataDisks")
|
|
891
1009
|
def data_disks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceDataDiskArgs']]]]:
|
|
892
1010
|
"""
|
|
893
|
-
Data disk specifications
|
|
1011
|
+
Data disk specifications See `data_disk` below.
|
|
894
1012
|
"""
|
|
895
1013
|
return pulumi.get(self, "data_disks")
|
|
896
1014
|
|
|
@@ -928,7 +1046,7 @@ class _InstanceState:
|
|
|
928
1046
|
@pulumi.getter(name="hostName")
|
|
929
1047
|
def host_name(self) -> Optional[pulumi.Input[str]]:
|
|
930
1048
|
"""
|
|
931
|
-
The host name of the instance. Example value: test-HostName
|
|
1049
|
+
The host name of the instance. Example value: test-HostName
|
|
932
1050
|
"""
|
|
933
1051
|
return pulumi.get(self, "host_name")
|
|
934
1052
|
|
|
@@ -940,7 +1058,7 @@ class _InstanceState:
|
|
|
940
1058
|
@pulumi.getter(name="imageId")
|
|
941
1059
|
def image_id(self) -> Optional[pulumi.Input[str]]:
|
|
942
1060
|
"""
|
|
943
|
-
The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * *
|
|
1061
|
+
The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
|
|
944
1062
|
"""
|
|
945
1063
|
return pulumi.get(self, "image_id")
|
|
946
1064
|
|
|
@@ -966,7 +1084,7 @@ class _InstanceState:
|
|
|
966
1084
|
"""
|
|
967
1085
|
The instance billing policy. Optional values:
|
|
968
1086
|
- instance: instance granularity (the subscription method does not support instance)
|
|
969
|
-
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
1087
|
+
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
970
1088
|
"""
|
|
971
1089
|
return pulumi.get(self, "instance_charge_strategy")
|
|
972
1090
|
|
|
@@ -978,7 +1096,9 @@ class _InstanceState:
|
|
|
978
1096
|
@pulumi.getter(name="instanceName")
|
|
979
1097
|
def instance_name(self) -> Optional[pulumi.Input[str]]:
|
|
980
1098
|
"""
|
|
981
|
-
The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
1099
|
+
The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
1100
|
+
|
|
1101
|
+
The default value is the InstanceId of the instance.
|
|
982
1102
|
"""
|
|
983
1103
|
return pulumi.get(self, "instance_name")
|
|
984
1104
|
|
|
@@ -990,7 +1110,7 @@ class _InstanceState:
|
|
|
990
1110
|
@pulumi.getter(name="instanceType")
|
|
991
1111
|
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
992
1112
|
"""
|
|
993
|
-
The specification of the instance. Example value: ens.sn1.small
|
|
1113
|
+
The specification of the instance. Example value: ens.sn1.small
|
|
994
1114
|
"""
|
|
995
1115
|
return pulumi.get(self, "instance_type")
|
|
996
1116
|
|
|
@@ -1004,7 +1124,7 @@ class _InstanceState:
|
|
|
1004
1124
|
"""
|
|
1005
1125
|
Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
|
|
1006
1126
|
- BandwidthByDay: Daily peak bandwidth
|
|
1007
|
-
- 95bandwidthbymonth: 95 peak bandwidth
|
|
1127
|
+
- 95bandwidthbymonth: 95 peak bandwidth
|
|
1008
1128
|
"""
|
|
1009
1129
|
return pulumi.get(self, "internet_charge_type")
|
|
1010
1130
|
|
|
@@ -1016,7 +1136,7 @@ class _InstanceState:
|
|
|
1016
1136
|
@pulumi.getter(name="internetMaxBandwidthOut")
|
|
1017
1137
|
def internet_max_bandwidth_out(self) -> Optional[pulumi.Input[int]]:
|
|
1018
1138
|
"""
|
|
1019
|
-
Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
1139
|
+
Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
1020
1140
|
"""
|
|
1021
1141
|
return pulumi.get(self, "internet_max_bandwidth_out")
|
|
1022
1142
|
|
|
@@ -1031,7 +1151,7 @@ class _InstanceState:
|
|
|
1031
1151
|
The IP type. Value:
|
|
1032
1152
|
- ipv4 (default):IPv4
|
|
1033
1153
|
- ipv6:IPv6
|
|
1034
|
-
- ipv4Andipv6:IPv4 and IPv6
|
|
1154
|
+
- ipv4Andipv6:IPv4 and IPv6
|
|
1035
1155
|
"""
|
|
1036
1156
|
return pulumi.get(self, "ip_type")
|
|
1037
1157
|
|
|
@@ -1039,11 +1159,25 @@ class _InstanceState:
|
|
|
1039
1159
|
def ip_type(self, value: Optional[pulumi.Input[str]]):
|
|
1040
1160
|
pulumi.set(self, "ip_type", value)
|
|
1041
1161
|
|
|
1162
|
+
@property
|
|
1163
|
+
@pulumi.getter(name="keyPairName")
|
|
1164
|
+
def key_pair_name(self) -> Optional[pulumi.Input[str]]:
|
|
1165
|
+
"""
|
|
1166
|
+
The key pair name.
|
|
1167
|
+
|
|
1168
|
+
> **NOTE:** At least one of `Password`, `KeyPairName`, and **PasswordInherit.
|
|
1169
|
+
"""
|
|
1170
|
+
return pulumi.get(self, "key_pair_name")
|
|
1171
|
+
|
|
1172
|
+
@key_pair_name.setter
|
|
1173
|
+
def key_pair_name(self, value: Optional[pulumi.Input[str]]):
|
|
1174
|
+
pulumi.set(self, "key_pair_name", value)
|
|
1175
|
+
|
|
1042
1176
|
@property
|
|
1043
1177
|
@pulumi.getter(name="netDistrictCode")
|
|
1044
1178
|
def net_district_code(self) -> Optional[pulumi.Input[str]]:
|
|
1045
1179
|
"""
|
|
1046
|
-
The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
1180
|
+
The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
1047
1181
|
"""
|
|
1048
1182
|
return pulumi.get(self, "net_district_code")
|
|
1049
1183
|
|
|
@@ -1055,7 +1189,7 @@ class _InstanceState:
|
|
|
1055
1189
|
@pulumi.getter(name="netWorkId")
|
|
1056
1190
|
def net_work_id(self) -> Optional[pulumi.Input[str]]:
|
|
1057
1191
|
"""
|
|
1058
|
-
The network ID of the instance. Can only be used in node-level scheduling
|
|
1192
|
+
The network ID of the instance. Can only be used in node-level scheduling
|
|
1059
1193
|
"""
|
|
1060
1194
|
return pulumi.get(self, "net_work_id")
|
|
1061
1195
|
|
|
@@ -1067,7 +1201,7 @@ class _InstanceState:
|
|
|
1067
1201
|
@pulumi.getter
|
|
1068
1202
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
1069
1203
|
"""
|
|
1070
|
-
The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
1204
|
+
The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
1071
1205
|
"""
|
|
1072
1206
|
return pulumi.get(self, "password")
|
|
1073
1207
|
|
|
@@ -1079,7 +1213,7 @@ class _InstanceState:
|
|
|
1079
1213
|
@pulumi.getter(name="passwordInherit")
|
|
1080
1214
|
def password_inherit(self) -> Optional[pulumi.Input[bool]]:
|
|
1081
1215
|
"""
|
|
1082
|
-
Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
1216
|
+
Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
1083
1217
|
"""
|
|
1084
1218
|
return pulumi.get(self, "password_inherit")
|
|
1085
1219
|
|
|
@@ -1091,9 +1225,9 @@ class _InstanceState:
|
|
|
1091
1225
|
@pulumi.getter(name="paymentType")
|
|
1092
1226
|
def payment_type(self) -> Optional[pulumi.Input[str]]:
|
|
1093
1227
|
"""
|
|
1094
|
-
Instance payment method. Optional values:
|
|
1228
|
+
Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:
|
|
1095
1229
|
- Subscription: prepaid, annual and monthly
|
|
1096
|
-
- PayAsYouGo: Pay by volume
|
|
1230
|
+
- PayAsYouGo: Pay by volume
|
|
1097
1231
|
"""
|
|
1098
1232
|
return pulumi.get(self, "payment_type")
|
|
1099
1233
|
|
|
@@ -1121,7 +1255,7 @@ class _InstanceState:
|
|
|
1121
1255
|
"""
|
|
1122
1256
|
The unit of time for purchasing resources. Value:
|
|
1123
1257
|
- Month (default): purchase by Month
|
|
1124
|
-
- Day: buy by Day
|
|
1258
|
+
- Day: buy by Day
|
|
1125
1259
|
"""
|
|
1126
1260
|
return pulumi.get(self, "period_unit")
|
|
1127
1261
|
|
|
@@ -1147,7 +1281,7 @@ class _InstanceState:
|
|
|
1147
1281
|
"""
|
|
1148
1282
|
Whether to assign a public IP identifier. Value:
|
|
1149
1283
|
- true (default): Assign
|
|
1150
|
-
- false: do not assign
|
|
1284
|
+
- false: do not assign
|
|
1151
1285
|
"""
|
|
1152
1286
|
return pulumi.get(self, "public_ip_identification")
|
|
1153
1287
|
|
|
@@ -1161,7 +1295,7 @@ class _InstanceState:
|
|
|
1161
1295
|
"""
|
|
1162
1296
|
Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
|
|
1163
1297
|
- Node-level scheduling: Region
|
|
1164
|
-
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
1298
|
+
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
1165
1299
|
"""
|
|
1166
1300
|
return pulumi.get(self, "schedule_area_level")
|
|
1167
1301
|
|
|
@@ -1175,7 +1309,7 @@ class _InstanceState:
|
|
|
1175
1309
|
"""
|
|
1176
1310
|
Scheduling price policy. If it is not filled in, the default priority is low price. Value:
|
|
1177
1311
|
- PriceLowPriority
|
|
1178
|
-
- PriceLowPriority (priority low price)
|
|
1312
|
+
- PriceLowPriority (priority low price)
|
|
1179
1313
|
"""
|
|
1180
1314
|
return pulumi.get(self, "scheduling_price_strategy")
|
|
1181
1315
|
|
|
@@ -1189,7 +1323,7 @@ class _InstanceState:
|
|
|
1189
1323
|
"""
|
|
1190
1324
|
Scheduling policy. Optional values:
|
|
1191
1325
|
- Concentrate for node-level scheduling
|
|
1192
|
-
- For regional scheduling, Concentrate, Disperse
|
|
1326
|
+
- For regional scheduling, Concentrate, Disperse
|
|
1193
1327
|
"""
|
|
1194
1328
|
return pulumi.get(self, "scheduling_strategy")
|
|
1195
1329
|
|
|
@@ -1209,11 +1343,25 @@ class _InstanceState:
|
|
|
1209
1343
|
def security_id(self, value: Optional[pulumi.Input[str]]):
|
|
1210
1344
|
pulumi.set(self, "security_id", value)
|
|
1211
1345
|
|
|
1346
|
+
@property
|
|
1347
|
+
@pulumi.getter(name="spotStrategy")
|
|
1348
|
+
def spot_strategy(self) -> Optional[pulumi.Input[str]]:
|
|
1349
|
+
"""
|
|
1350
|
+
The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
|
|
1351
|
+
- NoSpot: normal pay-as-you-go instance (default)
|
|
1352
|
+
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
|
|
1353
|
+
"""
|
|
1354
|
+
return pulumi.get(self, "spot_strategy")
|
|
1355
|
+
|
|
1356
|
+
@spot_strategy.setter
|
|
1357
|
+
def spot_strategy(self, value: Optional[pulumi.Input[str]]):
|
|
1358
|
+
pulumi.set(self, "spot_strategy", value)
|
|
1359
|
+
|
|
1212
1360
|
@property
|
|
1213
1361
|
@pulumi.getter
|
|
1214
1362
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
1215
1363
|
"""
|
|
1216
|
-
Status of the instance
|
|
1364
|
+
Status of the instance
|
|
1217
1365
|
"""
|
|
1218
1366
|
return pulumi.get(self, "status")
|
|
1219
1367
|
|
|
@@ -1233,6 +1381,18 @@ class _InstanceState:
|
|
|
1233
1381
|
def system_disk(self, value: Optional[pulumi.Input['InstanceSystemDiskArgs']]):
|
|
1234
1382
|
pulumi.set(self, "system_disk", value)
|
|
1235
1383
|
|
|
1384
|
+
@property
|
|
1385
|
+
@pulumi.getter
|
|
1386
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
1387
|
+
"""
|
|
1388
|
+
The tag bound to the instance
|
|
1389
|
+
"""
|
|
1390
|
+
return pulumi.get(self, "tags")
|
|
1391
|
+
|
|
1392
|
+
@tags.setter
|
|
1393
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
1394
|
+
pulumi.set(self, "tags", value)
|
|
1395
|
+
|
|
1236
1396
|
@property
|
|
1237
1397
|
@pulumi.getter(name="uniqueSuffix")
|
|
1238
1398
|
def unique_suffix(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -1261,7 +1421,7 @@ class _InstanceState:
|
|
|
1261
1421
|
@pulumi.getter(name="vswitchId")
|
|
1262
1422
|
def vswitch_id(self) -> Optional[pulumi.Input[str]]:
|
|
1263
1423
|
"""
|
|
1264
|
-
The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
1424
|
+
The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
1265
1425
|
"""
|
|
1266
1426
|
return pulumi.get(self, "vswitch_id")
|
|
1267
1427
|
|
|
@@ -1276,6 +1436,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1276
1436
|
resource_name: str,
|
|
1277
1437
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1278
1438
|
amount: Optional[pulumi.Input[int]] = None,
|
|
1439
|
+
auto_release_time: Optional[pulumi.Input[str]] = None,
|
|
1279
1440
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
1280
1441
|
auto_use_coupon: Optional[pulumi.Input[str]] = None,
|
|
1281
1442
|
billing_cycle: Optional[pulumi.Input[str]] = None,
|
|
@@ -1292,6 +1453,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1292
1453
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
1293
1454
|
internet_max_bandwidth_out: Optional[pulumi.Input[int]] = None,
|
|
1294
1455
|
ip_type: Optional[pulumi.Input[str]] = None,
|
|
1456
|
+
key_pair_name: Optional[pulumi.Input[str]] = None,
|
|
1295
1457
|
net_district_code: Optional[pulumi.Input[str]] = None,
|
|
1296
1458
|
net_work_id: Optional[pulumi.Input[str]] = None,
|
|
1297
1459
|
password: Optional[pulumi.Input[str]] = None,
|
|
@@ -1305,8 +1467,10 @@ class Instance(pulumi.CustomResource):
|
|
|
1305
1467
|
scheduling_price_strategy: Optional[pulumi.Input[str]] = None,
|
|
1306
1468
|
scheduling_strategy: Optional[pulumi.Input[str]] = None,
|
|
1307
1469
|
security_id: Optional[pulumi.Input[str]] = None,
|
|
1470
|
+
spot_strategy: Optional[pulumi.Input[str]] = None,
|
|
1308
1471
|
status: Optional[pulumi.Input[str]] = None,
|
|
1309
1472
|
system_disk: Optional[pulumi.Input[Union['InstanceSystemDiskArgs', 'InstanceSystemDiskArgsDict']]] = None,
|
|
1473
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1310
1474
|
unique_suffix: Optional[pulumi.Input[bool]] = None,
|
|
1311
1475
|
user_data: Optional[pulumi.Input[str]] = None,
|
|
1312
1476
|
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -1314,7 +1478,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1314
1478
|
"""
|
|
1315
1479
|
## Import
|
|
1316
1480
|
|
|
1317
|
-
|
|
1481
|
+
Ens Instance can be imported using the id, e.g.
|
|
1318
1482
|
|
|
1319
1483
|
```sh
|
|
1320
1484
|
$ pulumi import alicloud:ens/instance:Instance example <id>
|
|
@@ -1322,72 +1486,84 @@ class Instance(pulumi.CustomResource):
|
|
|
1322
1486
|
|
|
1323
1487
|
:param str resource_name: The name of the resource.
|
|
1324
1488
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1325
|
-
:param pulumi.Input[int] amount: The number of instances created, with a minimum of 1 and a maximum of 100
|
|
1489
|
+
:param pulumi.Input[int] amount: The number of instances created, with a minimum of 1 and a maximum of 100
|
|
1490
|
+
:param pulumi.Input[str] auto_release_time: The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
|
|
1491
|
+
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
|
|
1492
|
+
- The minimum release time is one hour after the current time.
|
|
1326
1493
|
:param pulumi.Input[bool] auto_renew: Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
|
|
1327
1494
|
:param pulumi.Input[str] auto_use_coupon: Whether to use vouchers. The default is to use. Value:
|
|
1328
1495
|
- true (used)
|
|
1329
|
-
- false (not used)
|
|
1496
|
+
- false (not used)
|
|
1330
1497
|
:param pulumi.Input[str] billing_cycle: The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
|
|
1331
1498
|
- Hour: hourly billing
|
|
1332
1499
|
- Day: Daily billing
|
|
1333
|
-
- Month: monthly billing
|
|
1500
|
+
- Month: monthly billing
|
|
1334
1501
|
:param pulumi.Input[str] carrier: Operator, required for regional scheduling. Optional values:
|
|
1335
1502
|
- cmcc (mobile)
|
|
1336
1503
|
- unicom
|
|
1337
|
-
- telecom
|
|
1338
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceDataDiskArgs', 'InstanceDataDiskArgsDict']]]] data_disks: Data disk specifications
|
|
1504
|
+
- telecom
|
|
1505
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceDataDiskArgs', 'InstanceDataDiskArgsDict']]]] data_disks: Data disk specifications See `data_disk` below.
|
|
1339
1506
|
:param pulumi.Input[str] ens_region_id: The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
|
|
1340
1507
|
:param pulumi.Input[str] force_stop: Whether to force the identity when operating the instance. Optional values:
|
|
1341
1508
|
- true: Force
|
|
1342
1509
|
- false (default): non-mandatory
|
|
1343
|
-
:param pulumi.Input[str] host_name: The host name of the instance. Example value: test-HostName
|
|
1344
|
-
:param pulumi.Input[str] image_id: The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * *
|
|
1510
|
+
:param pulumi.Input[str] host_name: The host name of the instance. Example value: test-HostName
|
|
1511
|
+
:param pulumi.Input[str] image_id: The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
|
|
1345
1512
|
:param pulumi.Input[bool] include_data_disks: Whether the Payment type of the disk created with the instance is converted.
|
|
1346
1513
|
:param pulumi.Input[str] instance_charge_strategy: The instance billing policy. Optional values:
|
|
1347
1514
|
- instance: instance granularity (the subscription method does not support instance)
|
|
1348
|
-
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
1349
|
-
:param pulumi.Input[str] instance_name: The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
1350
|
-
|
|
1515
|
+
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
1516
|
+
:param pulumi.Input[str] instance_name: The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
1517
|
+
|
|
1518
|
+
The default value is the InstanceId of the instance.
|
|
1519
|
+
:param pulumi.Input[str] instance_type: The specification of the instance. Example value: ens.sn1.small
|
|
1351
1520
|
:param pulumi.Input[str] internet_charge_type: Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
|
|
1352
1521
|
- BandwidthByDay: Daily peak bandwidth
|
|
1353
|
-
- 95bandwidthbymonth: 95 peak bandwidth
|
|
1354
|
-
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
1522
|
+
- 95bandwidthbymonth: 95 peak bandwidth
|
|
1523
|
+
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
1355
1524
|
:param pulumi.Input[str] ip_type: The IP type. Value:
|
|
1356
1525
|
- ipv4 (default):IPv4
|
|
1357
1526
|
- ipv6:IPv6
|
|
1358
|
-
- ipv4Andipv6:IPv4 and IPv6
|
|
1359
|
-
:param pulumi.Input[str]
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
:param pulumi.Input[
|
|
1363
|
-
:param pulumi.Input[str]
|
|
1527
|
+
- ipv4Andipv6:IPv4 and IPv6
|
|
1528
|
+
:param pulumi.Input[str] key_pair_name: The key pair name.
|
|
1529
|
+
|
|
1530
|
+
> **NOTE:** At least one of `Password`, `KeyPairName`, and **PasswordInherit.
|
|
1531
|
+
:param pulumi.Input[str] net_district_code: The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
1532
|
+
:param pulumi.Input[str] net_work_id: The network ID of the instance. Can only be used in node-level scheduling
|
|
1533
|
+
:param pulumi.Input[str] password: The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
1534
|
+
:param pulumi.Input[bool] password_inherit: Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
1535
|
+
:param pulumi.Input[str] payment_type: Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:
|
|
1364
1536
|
- Subscription: prepaid, annual and monthly
|
|
1365
|
-
- PayAsYouGo: Pay by volume
|
|
1537
|
+
- PayAsYouGo: Pay by volume
|
|
1366
1538
|
:param pulumi.Input[int] period: The duration of the resource purchase. Value method:
|
|
1367
1539
|
- If PeriodUnit is set to Day, Period can only be set to 3.
|
|
1368
1540
|
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
|
|
1369
1541
|
:param pulumi.Input[str] period_unit: The unit of time for purchasing resources. Value:
|
|
1370
1542
|
- Month (default): purchase by Month
|
|
1371
|
-
- Day: buy by Day
|
|
1543
|
+
- Day: buy by Day
|
|
1372
1544
|
:param pulumi.Input[str] private_ip_address: The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
|
|
1373
1545
|
:param pulumi.Input[bool] public_ip_identification: Whether to assign a public IP identifier. Value:
|
|
1374
1546
|
- true (default): Assign
|
|
1375
|
-
- false: do not assign
|
|
1547
|
+
- false: do not assign
|
|
1376
1548
|
:param pulumi.Input[str] schedule_area_level: Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
|
|
1377
1549
|
- Node-level scheduling: Region
|
|
1378
|
-
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
1550
|
+
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
1379
1551
|
:param pulumi.Input[str] scheduling_price_strategy: Scheduling price policy. If it is not filled in, the default priority is low price. Value:
|
|
1380
1552
|
- PriceLowPriority
|
|
1381
|
-
- PriceLowPriority (priority low price)
|
|
1553
|
+
- PriceLowPriority (priority low price)
|
|
1382
1554
|
:param pulumi.Input[str] scheduling_strategy: Scheduling policy. Optional values:
|
|
1383
1555
|
- Concentrate for node-level scheduling
|
|
1384
|
-
- For regional scheduling, Concentrate, Disperse
|
|
1556
|
+
- For regional scheduling, Concentrate, Disperse
|
|
1385
1557
|
:param pulumi.Input[str] security_id: ID of the security group to which the instance belongs.
|
|
1386
|
-
:param pulumi.Input[str]
|
|
1558
|
+
:param pulumi.Input[str] spot_strategy: The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
|
|
1559
|
+
- NoSpot: normal pay-as-you-go instance (default)
|
|
1560
|
+
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
|
|
1561
|
+
:param pulumi.Input[str] status: Status of the instance
|
|
1387
1562
|
:param pulumi.Input[Union['InstanceSystemDiskArgs', 'InstanceSystemDiskArgsDict']] system_disk: System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See `system_disk` below.
|
|
1563
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tag bound to the instance
|
|
1388
1564
|
:param pulumi.Input[bool] unique_suffix: Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
|
|
1389
1565
|
:param pulumi.Input[str] user_data: User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
|
|
1390
|
-
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
1566
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
1391
1567
|
"""
|
|
1392
1568
|
...
|
|
1393
1569
|
@overload
|
|
@@ -1398,7 +1574,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1398
1574
|
"""
|
|
1399
1575
|
## Import
|
|
1400
1576
|
|
|
1401
|
-
|
|
1577
|
+
Ens Instance can be imported using the id, e.g.
|
|
1402
1578
|
|
|
1403
1579
|
```sh
|
|
1404
1580
|
$ pulumi import alicloud:ens/instance:Instance example <id>
|
|
@@ -1420,6 +1596,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1420
1596
|
resource_name: str,
|
|
1421
1597
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1422
1598
|
amount: Optional[pulumi.Input[int]] = None,
|
|
1599
|
+
auto_release_time: Optional[pulumi.Input[str]] = None,
|
|
1423
1600
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
1424
1601
|
auto_use_coupon: Optional[pulumi.Input[str]] = None,
|
|
1425
1602
|
billing_cycle: Optional[pulumi.Input[str]] = None,
|
|
@@ -1436,6 +1613,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1436
1613
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
1437
1614
|
internet_max_bandwidth_out: Optional[pulumi.Input[int]] = None,
|
|
1438
1615
|
ip_type: Optional[pulumi.Input[str]] = None,
|
|
1616
|
+
key_pair_name: Optional[pulumi.Input[str]] = None,
|
|
1439
1617
|
net_district_code: Optional[pulumi.Input[str]] = None,
|
|
1440
1618
|
net_work_id: Optional[pulumi.Input[str]] = None,
|
|
1441
1619
|
password: Optional[pulumi.Input[str]] = None,
|
|
@@ -1449,8 +1627,10 @@ class Instance(pulumi.CustomResource):
|
|
|
1449
1627
|
scheduling_price_strategy: Optional[pulumi.Input[str]] = None,
|
|
1450
1628
|
scheduling_strategy: Optional[pulumi.Input[str]] = None,
|
|
1451
1629
|
security_id: Optional[pulumi.Input[str]] = None,
|
|
1630
|
+
spot_strategy: Optional[pulumi.Input[str]] = None,
|
|
1452
1631
|
status: Optional[pulumi.Input[str]] = None,
|
|
1453
1632
|
system_disk: Optional[pulumi.Input[Union['InstanceSystemDiskArgs', 'InstanceSystemDiskArgsDict']]] = None,
|
|
1633
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1454
1634
|
unique_suffix: Optional[pulumi.Input[bool]] = None,
|
|
1455
1635
|
user_data: Optional[pulumi.Input[str]] = None,
|
|
1456
1636
|
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -1464,6 +1644,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1464
1644
|
__props__ = InstanceArgs.__new__(InstanceArgs)
|
|
1465
1645
|
|
|
1466
1646
|
__props__.__dict__["amount"] = amount
|
|
1647
|
+
__props__.__dict__["auto_release_time"] = auto_release_time
|
|
1467
1648
|
__props__.__dict__["auto_renew"] = auto_renew
|
|
1468
1649
|
__props__.__dict__["auto_use_coupon"] = auto_use_coupon
|
|
1469
1650
|
__props__.__dict__["billing_cycle"] = billing_cycle
|
|
@@ -1482,6 +1663,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1482
1663
|
__props__.__dict__["internet_charge_type"] = internet_charge_type
|
|
1483
1664
|
__props__.__dict__["internet_max_bandwidth_out"] = internet_max_bandwidth_out
|
|
1484
1665
|
__props__.__dict__["ip_type"] = ip_type
|
|
1666
|
+
__props__.__dict__["key_pair_name"] = key_pair_name
|
|
1485
1667
|
__props__.__dict__["net_district_code"] = net_district_code
|
|
1486
1668
|
__props__.__dict__["net_work_id"] = net_work_id
|
|
1487
1669
|
__props__.__dict__["password"] = None if password is None else pulumi.Output.secret(password)
|
|
@@ -1499,8 +1681,10 @@ class Instance(pulumi.CustomResource):
|
|
|
1499
1681
|
__props__.__dict__["scheduling_price_strategy"] = scheduling_price_strategy
|
|
1500
1682
|
__props__.__dict__["scheduling_strategy"] = scheduling_strategy
|
|
1501
1683
|
__props__.__dict__["security_id"] = security_id
|
|
1684
|
+
__props__.__dict__["spot_strategy"] = spot_strategy
|
|
1502
1685
|
__props__.__dict__["status"] = status
|
|
1503
1686
|
__props__.__dict__["system_disk"] = system_disk
|
|
1687
|
+
__props__.__dict__["tags"] = tags
|
|
1504
1688
|
__props__.__dict__["unique_suffix"] = unique_suffix
|
|
1505
1689
|
__props__.__dict__["user_data"] = user_data
|
|
1506
1690
|
__props__.__dict__["vswitch_id"] = vswitch_id
|
|
@@ -1517,6 +1701,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1517
1701
|
id: pulumi.Input[str],
|
|
1518
1702
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1519
1703
|
amount: Optional[pulumi.Input[int]] = None,
|
|
1704
|
+
auto_release_time: Optional[pulumi.Input[str]] = None,
|
|
1520
1705
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
1521
1706
|
auto_use_coupon: Optional[pulumi.Input[str]] = None,
|
|
1522
1707
|
billing_cycle: Optional[pulumi.Input[str]] = None,
|
|
@@ -1533,6 +1718,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1533
1718
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
1534
1719
|
internet_max_bandwidth_out: Optional[pulumi.Input[int]] = None,
|
|
1535
1720
|
ip_type: Optional[pulumi.Input[str]] = None,
|
|
1721
|
+
key_pair_name: Optional[pulumi.Input[str]] = None,
|
|
1536
1722
|
net_district_code: Optional[pulumi.Input[str]] = None,
|
|
1537
1723
|
net_work_id: Optional[pulumi.Input[str]] = None,
|
|
1538
1724
|
password: Optional[pulumi.Input[str]] = None,
|
|
@@ -1546,8 +1732,10 @@ class Instance(pulumi.CustomResource):
|
|
|
1546
1732
|
scheduling_price_strategy: Optional[pulumi.Input[str]] = None,
|
|
1547
1733
|
scheduling_strategy: Optional[pulumi.Input[str]] = None,
|
|
1548
1734
|
security_id: Optional[pulumi.Input[str]] = None,
|
|
1735
|
+
spot_strategy: Optional[pulumi.Input[str]] = None,
|
|
1549
1736
|
status: Optional[pulumi.Input[str]] = None,
|
|
1550
1737
|
system_disk: Optional[pulumi.Input[Union['InstanceSystemDiskArgs', 'InstanceSystemDiskArgsDict']]] = None,
|
|
1738
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1551
1739
|
unique_suffix: Optional[pulumi.Input[bool]] = None,
|
|
1552
1740
|
user_data: Optional[pulumi.Input[str]] = None,
|
|
1553
1741
|
vswitch_id: Optional[pulumi.Input[str]] = None) -> 'Instance':
|
|
@@ -1558,78 +1746,91 @@ class Instance(pulumi.CustomResource):
|
|
|
1558
1746
|
:param str resource_name: The unique name of the resulting resource.
|
|
1559
1747
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1560
1748
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1561
|
-
:param pulumi.Input[int] amount: The number of instances created, with a minimum of 1 and a maximum of 100
|
|
1749
|
+
:param pulumi.Input[int] amount: The number of instances created, with a minimum of 1 and a maximum of 100
|
|
1750
|
+
:param pulumi.Input[str] auto_release_time: The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
|
|
1751
|
+
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
|
|
1752
|
+
- The minimum release time is one hour after the current time.
|
|
1562
1753
|
:param pulumi.Input[bool] auto_renew: Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
|
|
1563
1754
|
:param pulumi.Input[str] auto_use_coupon: Whether to use vouchers. The default is to use. Value:
|
|
1564
1755
|
- true (used)
|
|
1565
|
-
- false (not used)
|
|
1756
|
+
- false (not used)
|
|
1566
1757
|
:param pulumi.Input[str] billing_cycle: The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
|
|
1567
1758
|
- Hour: hourly billing
|
|
1568
1759
|
- Day: Daily billing
|
|
1569
|
-
- Month: monthly billing
|
|
1760
|
+
- Month: monthly billing
|
|
1570
1761
|
:param pulumi.Input[str] carrier: Operator, required for regional scheduling. Optional values:
|
|
1571
1762
|
- cmcc (mobile)
|
|
1572
1763
|
- unicom
|
|
1573
|
-
- telecom
|
|
1574
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceDataDiskArgs', 'InstanceDataDiskArgsDict']]]] data_disks: Data disk specifications
|
|
1764
|
+
- telecom
|
|
1765
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceDataDiskArgs', 'InstanceDataDiskArgsDict']]]] data_disks: Data disk specifications See `data_disk` below.
|
|
1575
1766
|
:param pulumi.Input[str] ens_region_id: The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
|
|
1576
1767
|
:param pulumi.Input[str] force_stop: Whether to force the identity when operating the instance. Optional values:
|
|
1577
1768
|
- true: Force
|
|
1578
1769
|
- false (default): non-mandatory
|
|
1579
|
-
:param pulumi.Input[str] host_name: The host name of the instance. Example value: test-HostName
|
|
1580
|
-
:param pulumi.Input[str] image_id: The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * *
|
|
1770
|
+
:param pulumi.Input[str] host_name: The host name of the instance. Example value: test-HostName
|
|
1771
|
+
:param pulumi.Input[str] image_id: The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
|
|
1581
1772
|
:param pulumi.Input[bool] include_data_disks: Whether the Payment type of the disk created with the instance is converted.
|
|
1582
1773
|
:param pulumi.Input[str] instance_charge_strategy: The instance billing policy. Optional values:
|
|
1583
1774
|
- instance: instance granularity (the subscription method does not support instance)
|
|
1584
|
-
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
1585
|
-
:param pulumi.Input[str] instance_name: The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
1586
|
-
|
|
1775
|
+
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
1776
|
+
:param pulumi.Input[str] instance_name: The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
1777
|
+
|
|
1778
|
+
The default value is the InstanceId of the instance.
|
|
1779
|
+
:param pulumi.Input[str] instance_type: The specification of the instance. Example value: ens.sn1.small
|
|
1587
1780
|
:param pulumi.Input[str] internet_charge_type: Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
|
|
1588
1781
|
- BandwidthByDay: Daily peak bandwidth
|
|
1589
|
-
- 95bandwidthbymonth: 95 peak bandwidth
|
|
1590
|
-
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
1782
|
+
- 95bandwidthbymonth: 95 peak bandwidth
|
|
1783
|
+
:param pulumi.Input[int] internet_max_bandwidth_out: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
1591
1784
|
:param pulumi.Input[str] ip_type: The IP type. Value:
|
|
1592
1785
|
- ipv4 (default):IPv4
|
|
1593
1786
|
- ipv6:IPv6
|
|
1594
|
-
- ipv4Andipv6:IPv4 and IPv6
|
|
1595
|
-
:param pulumi.Input[str]
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
:param pulumi.Input[
|
|
1599
|
-
:param pulumi.Input[str]
|
|
1787
|
+
- ipv4Andipv6:IPv4 and IPv6
|
|
1788
|
+
:param pulumi.Input[str] key_pair_name: The key pair name.
|
|
1789
|
+
|
|
1790
|
+
> **NOTE:** At least one of `Password`, `KeyPairName`, and **PasswordInherit.
|
|
1791
|
+
:param pulumi.Input[str] net_district_code: The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
1792
|
+
:param pulumi.Input[str] net_work_id: The network ID of the instance. Can only be used in node-level scheduling
|
|
1793
|
+
:param pulumi.Input[str] password: The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
1794
|
+
:param pulumi.Input[bool] password_inherit: Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
1795
|
+
:param pulumi.Input[str] payment_type: Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:
|
|
1600
1796
|
- Subscription: prepaid, annual and monthly
|
|
1601
|
-
- PayAsYouGo: Pay by volume
|
|
1797
|
+
- PayAsYouGo: Pay by volume
|
|
1602
1798
|
:param pulumi.Input[int] period: The duration of the resource purchase. Value method:
|
|
1603
1799
|
- If PeriodUnit is set to Day, Period can only be set to 3.
|
|
1604
1800
|
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
|
|
1605
1801
|
:param pulumi.Input[str] period_unit: The unit of time for purchasing resources. Value:
|
|
1606
1802
|
- Month (default): purchase by Month
|
|
1607
|
-
- Day: buy by Day
|
|
1803
|
+
- Day: buy by Day
|
|
1608
1804
|
:param pulumi.Input[str] private_ip_address: The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
|
|
1609
1805
|
:param pulumi.Input[bool] public_ip_identification: Whether to assign a public IP identifier. Value:
|
|
1610
1806
|
- true (default): Assign
|
|
1611
|
-
- false: do not assign
|
|
1807
|
+
- false: do not assign
|
|
1612
1808
|
:param pulumi.Input[str] schedule_area_level: Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
|
|
1613
1809
|
- Node-level scheduling: Region
|
|
1614
|
-
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
1810
|
+
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
1615
1811
|
:param pulumi.Input[str] scheduling_price_strategy: Scheduling price policy. If it is not filled in, the default priority is low price. Value:
|
|
1616
1812
|
- PriceLowPriority
|
|
1617
|
-
- PriceLowPriority (priority low price)
|
|
1813
|
+
- PriceLowPriority (priority low price)
|
|
1618
1814
|
:param pulumi.Input[str] scheduling_strategy: Scheduling policy. Optional values:
|
|
1619
1815
|
- Concentrate for node-level scheduling
|
|
1620
|
-
- For regional scheduling, Concentrate, Disperse
|
|
1816
|
+
- For regional scheduling, Concentrate, Disperse
|
|
1621
1817
|
:param pulumi.Input[str] security_id: ID of the security group to which the instance belongs.
|
|
1622
|
-
:param pulumi.Input[str]
|
|
1818
|
+
:param pulumi.Input[str] spot_strategy: The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
|
|
1819
|
+
- NoSpot: normal pay-as-you-go instance (default)
|
|
1820
|
+
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
|
|
1821
|
+
:param pulumi.Input[str] status: Status of the instance
|
|
1623
1822
|
:param pulumi.Input[Union['InstanceSystemDiskArgs', 'InstanceSystemDiskArgsDict']] system_disk: System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See `system_disk` below.
|
|
1823
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tag bound to the instance
|
|
1624
1824
|
:param pulumi.Input[bool] unique_suffix: Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
|
|
1625
1825
|
:param pulumi.Input[str] user_data: User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
|
|
1626
|
-
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
1826
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
1627
1827
|
"""
|
|
1628
1828
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1629
1829
|
|
|
1630
1830
|
__props__ = _InstanceState.__new__(_InstanceState)
|
|
1631
1831
|
|
|
1632
1832
|
__props__.__dict__["amount"] = amount
|
|
1833
|
+
__props__.__dict__["auto_release_time"] = auto_release_time
|
|
1633
1834
|
__props__.__dict__["auto_renew"] = auto_renew
|
|
1634
1835
|
__props__.__dict__["auto_use_coupon"] = auto_use_coupon
|
|
1635
1836
|
__props__.__dict__["billing_cycle"] = billing_cycle
|
|
@@ -1646,6 +1847,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1646
1847
|
__props__.__dict__["internet_charge_type"] = internet_charge_type
|
|
1647
1848
|
__props__.__dict__["internet_max_bandwidth_out"] = internet_max_bandwidth_out
|
|
1648
1849
|
__props__.__dict__["ip_type"] = ip_type
|
|
1850
|
+
__props__.__dict__["key_pair_name"] = key_pair_name
|
|
1649
1851
|
__props__.__dict__["net_district_code"] = net_district_code
|
|
1650
1852
|
__props__.__dict__["net_work_id"] = net_work_id
|
|
1651
1853
|
__props__.__dict__["password"] = password
|
|
@@ -1659,8 +1861,10 @@ class Instance(pulumi.CustomResource):
|
|
|
1659
1861
|
__props__.__dict__["scheduling_price_strategy"] = scheduling_price_strategy
|
|
1660
1862
|
__props__.__dict__["scheduling_strategy"] = scheduling_strategy
|
|
1661
1863
|
__props__.__dict__["security_id"] = security_id
|
|
1864
|
+
__props__.__dict__["spot_strategy"] = spot_strategy
|
|
1662
1865
|
__props__.__dict__["status"] = status
|
|
1663
1866
|
__props__.__dict__["system_disk"] = system_disk
|
|
1867
|
+
__props__.__dict__["tags"] = tags
|
|
1664
1868
|
__props__.__dict__["unique_suffix"] = unique_suffix
|
|
1665
1869
|
__props__.__dict__["user_data"] = user_data
|
|
1666
1870
|
__props__.__dict__["vswitch_id"] = vswitch_id
|
|
@@ -1670,10 +1874,20 @@ class Instance(pulumi.CustomResource):
|
|
|
1670
1874
|
@pulumi.getter
|
|
1671
1875
|
def amount(self) -> pulumi.Output[Optional[int]]:
|
|
1672
1876
|
"""
|
|
1673
|
-
The number of instances created, with a minimum of 1 and a maximum of 100
|
|
1877
|
+
The number of instances created, with a minimum of 1 and a maximum of 100
|
|
1674
1878
|
"""
|
|
1675
1879
|
return pulumi.get(self, "amount")
|
|
1676
1880
|
|
|
1881
|
+
@property
|
|
1882
|
+
@pulumi.getter(name="autoReleaseTime")
|
|
1883
|
+
def auto_release_time(self) -> pulumi.Output[Optional[str]]:
|
|
1884
|
+
"""
|
|
1885
|
+
The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
|
|
1886
|
+
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
|
|
1887
|
+
- The minimum release time is one hour after the current time.
|
|
1888
|
+
"""
|
|
1889
|
+
return pulumi.get(self, "auto_release_time")
|
|
1890
|
+
|
|
1677
1891
|
@property
|
|
1678
1892
|
@pulumi.getter(name="autoRenew")
|
|
1679
1893
|
def auto_renew(self) -> pulumi.Output[Optional[bool]]:
|
|
@@ -1688,7 +1902,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1688
1902
|
"""
|
|
1689
1903
|
Whether to use vouchers. The default is to use. Value:
|
|
1690
1904
|
- true (used)
|
|
1691
|
-
- false (not used)
|
|
1905
|
+
- false (not used)
|
|
1692
1906
|
"""
|
|
1693
1907
|
return pulumi.get(self, "auto_use_coupon")
|
|
1694
1908
|
|
|
@@ -1699,7 +1913,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1699
1913
|
The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
|
|
1700
1914
|
- Hour: hourly billing
|
|
1701
1915
|
- Day: Daily billing
|
|
1702
|
-
- Month: monthly billing
|
|
1916
|
+
- Month: monthly billing
|
|
1703
1917
|
"""
|
|
1704
1918
|
return pulumi.get(self, "billing_cycle")
|
|
1705
1919
|
|
|
@@ -1710,7 +1924,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1710
1924
|
Operator, required for regional scheduling. Optional values:
|
|
1711
1925
|
- cmcc (mobile)
|
|
1712
1926
|
- unicom
|
|
1713
|
-
- telecom
|
|
1927
|
+
- telecom
|
|
1714
1928
|
"""
|
|
1715
1929
|
return pulumi.get(self, "carrier")
|
|
1716
1930
|
|
|
@@ -1718,7 +1932,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1718
1932
|
@pulumi.getter(name="dataDisks")
|
|
1719
1933
|
def data_disks(self) -> pulumi.Output[Sequence['outputs.InstanceDataDisk']]:
|
|
1720
1934
|
"""
|
|
1721
|
-
Data disk specifications
|
|
1935
|
+
Data disk specifications See `data_disk` below.
|
|
1722
1936
|
"""
|
|
1723
1937
|
return pulumi.get(self, "data_disks")
|
|
1724
1938
|
|
|
@@ -1744,7 +1958,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1744
1958
|
@pulumi.getter(name="hostName")
|
|
1745
1959
|
def host_name(self) -> pulumi.Output[str]:
|
|
1746
1960
|
"""
|
|
1747
|
-
The host name of the instance. Example value: test-HostName
|
|
1961
|
+
The host name of the instance. Example value: test-HostName
|
|
1748
1962
|
"""
|
|
1749
1963
|
return pulumi.get(self, "host_name")
|
|
1750
1964
|
|
|
@@ -1752,7 +1966,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1752
1966
|
@pulumi.getter(name="imageId")
|
|
1753
1967
|
def image_id(self) -> pulumi.Output[Optional[str]]:
|
|
1754
1968
|
"""
|
|
1755
|
-
The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * *
|
|
1969
|
+
The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
|
|
1756
1970
|
"""
|
|
1757
1971
|
return pulumi.get(self, "image_id")
|
|
1758
1972
|
|
|
@@ -1770,7 +1984,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1770
1984
|
"""
|
|
1771
1985
|
The instance billing policy. Optional values:
|
|
1772
1986
|
- instance: instance granularity (the subscription method does not support instance)
|
|
1773
|
-
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
1987
|
+
- user: user Dimension (user is not transmitted or supported in the prepaid mode)
|
|
1774
1988
|
"""
|
|
1775
1989
|
return pulumi.get(self, "instance_charge_strategy")
|
|
1776
1990
|
|
|
@@ -1778,7 +1992,9 @@ class Instance(pulumi.CustomResource):
|
|
|
1778
1992
|
@pulumi.getter(name="instanceName")
|
|
1779
1993
|
def instance_name(self) -> pulumi.Output[str]:
|
|
1780
1994
|
"""
|
|
1781
|
-
The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
1995
|
+
The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-)
|
|
1996
|
+
|
|
1997
|
+
The default value is the InstanceId of the instance.
|
|
1782
1998
|
"""
|
|
1783
1999
|
return pulumi.get(self, "instance_name")
|
|
1784
2000
|
|
|
@@ -1786,7 +2002,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1786
2002
|
@pulumi.getter(name="instanceType")
|
|
1787
2003
|
def instance_type(self) -> pulumi.Output[str]:
|
|
1788
2004
|
"""
|
|
1789
|
-
The specification of the instance. Example value: ens.sn1.small
|
|
2005
|
+
The specification of the instance. Example value: ens.sn1.small
|
|
1790
2006
|
"""
|
|
1791
2007
|
return pulumi.get(self, "instance_type")
|
|
1792
2008
|
|
|
@@ -1796,7 +2012,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1796
2012
|
"""
|
|
1797
2013
|
Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
|
|
1798
2014
|
- BandwidthByDay: Daily peak bandwidth
|
|
1799
|
-
- 95bandwidthbymonth: 95 peak bandwidth
|
|
2015
|
+
- 95bandwidthbymonth: 95 peak bandwidth
|
|
1800
2016
|
"""
|
|
1801
2017
|
return pulumi.get(self, "internet_charge_type")
|
|
1802
2018
|
|
|
@@ -1804,7 +2020,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1804
2020
|
@pulumi.getter(name="internetMaxBandwidthOut")
|
|
1805
2021
|
def internet_max_bandwidth_out(self) -> pulumi.Output[int]:
|
|
1806
2022
|
"""
|
|
1807
|
-
Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
2023
|
+
Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991
|
|
1808
2024
|
"""
|
|
1809
2025
|
return pulumi.get(self, "internet_max_bandwidth_out")
|
|
1810
2026
|
|
|
@@ -1815,15 +2031,25 @@ class Instance(pulumi.CustomResource):
|
|
|
1815
2031
|
The IP type. Value:
|
|
1816
2032
|
- ipv4 (default):IPv4
|
|
1817
2033
|
- ipv6:IPv6
|
|
1818
|
-
- ipv4Andipv6:IPv4 and IPv6
|
|
2034
|
+
- ipv4Andipv6:IPv4 and IPv6
|
|
1819
2035
|
"""
|
|
1820
2036
|
return pulumi.get(self, "ip_type")
|
|
1821
2037
|
|
|
2038
|
+
@property
|
|
2039
|
+
@pulumi.getter(name="keyPairName")
|
|
2040
|
+
def key_pair_name(self) -> pulumi.Output[Optional[str]]:
|
|
2041
|
+
"""
|
|
2042
|
+
The key pair name.
|
|
2043
|
+
|
|
2044
|
+
> **NOTE:** At least one of `Password`, `KeyPairName`, and **PasswordInherit.
|
|
2045
|
+
"""
|
|
2046
|
+
return pulumi.get(self, "key_pair_name")
|
|
2047
|
+
|
|
1822
2048
|
@property
|
|
1823
2049
|
@pulumi.getter(name="netDistrictCode")
|
|
1824
2050
|
def net_district_code(self) -> pulumi.Output[Optional[str]]:
|
|
1825
2051
|
"""
|
|
1826
|
-
The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
2052
|
+
The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
|
|
1827
2053
|
"""
|
|
1828
2054
|
return pulumi.get(self, "net_district_code")
|
|
1829
2055
|
|
|
@@ -1831,7 +2057,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1831
2057
|
@pulumi.getter(name="netWorkId")
|
|
1832
2058
|
def net_work_id(self) -> pulumi.Output[str]:
|
|
1833
2059
|
"""
|
|
1834
|
-
The network ID of the instance. Can only be used in node-level scheduling
|
|
2060
|
+
The network ID of the instance. Can only be used in node-level scheduling
|
|
1835
2061
|
"""
|
|
1836
2062
|
return pulumi.get(self, "net_work_id")
|
|
1837
2063
|
|
|
@@ -1839,7 +2065,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1839
2065
|
@pulumi.getter
|
|
1840
2066
|
def password(self) -> pulumi.Output[Optional[str]]:
|
|
1841
2067
|
"""
|
|
1842
|
-
The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
2068
|
+
The instance password. At least one of Password, KeyPairName, and PasswordInherit
|
|
1843
2069
|
"""
|
|
1844
2070
|
return pulumi.get(self, "password")
|
|
1845
2071
|
|
|
@@ -1847,7 +2073,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1847
2073
|
@pulumi.getter(name="passwordInherit")
|
|
1848
2074
|
def password_inherit(self) -> pulumi.Output[Optional[bool]]:
|
|
1849
2075
|
"""
|
|
1850
|
-
Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
2076
|
+
Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
|
|
1851
2077
|
"""
|
|
1852
2078
|
return pulumi.get(self, "password_inherit")
|
|
1853
2079
|
|
|
@@ -1855,9 +2081,9 @@ class Instance(pulumi.CustomResource):
|
|
|
1855
2081
|
@pulumi.getter(name="paymentType")
|
|
1856
2082
|
def payment_type(self) -> pulumi.Output[str]:
|
|
1857
2083
|
"""
|
|
1858
|
-
Instance payment method. Optional values:
|
|
2084
|
+
Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:
|
|
1859
2085
|
- Subscription: prepaid, annual and monthly
|
|
1860
|
-
- PayAsYouGo: Pay by volume
|
|
2086
|
+
- PayAsYouGo: Pay by volume
|
|
1861
2087
|
"""
|
|
1862
2088
|
return pulumi.get(self, "payment_type")
|
|
1863
2089
|
|
|
@@ -1877,7 +2103,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1877
2103
|
"""
|
|
1878
2104
|
The unit of time for purchasing resources. Value:
|
|
1879
2105
|
- Month (default): purchase by Month
|
|
1880
|
-
- Day: buy by Day
|
|
2106
|
+
- Day: buy by Day
|
|
1881
2107
|
"""
|
|
1882
2108
|
return pulumi.get(self, "period_unit")
|
|
1883
2109
|
|
|
@@ -1895,7 +2121,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1895
2121
|
"""
|
|
1896
2122
|
Whether to assign a public IP identifier. Value:
|
|
1897
2123
|
- true (default): Assign
|
|
1898
|
-
- false: do not assign
|
|
2124
|
+
- false: do not assign
|
|
1899
2125
|
"""
|
|
1900
2126
|
return pulumi.get(self, "public_ip_identification")
|
|
1901
2127
|
|
|
@@ -1905,7 +2131,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1905
2131
|
"""
|
|
1906
2132
|
Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
|
|
1907
2133
|
- Node-level scheduling: Region
|
|
1908
|
-
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
2134
|
+
- Regional scheduling: Big (region),Middle (province),Small (city)
|
|
1909
2135
|
"""
|
|
1910
2136
|
return pulumi.get(self, "schedule_area_level")
|
|
1911
2137
|
|
|
@@ -1915,7 +2141,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1915
2141
|
"""
|
|
1916
2142
|
Scheduling price policy. If it is not filled in, the default priority is low price. Value:
|
|
1917
2143
|
- PriceLowPriority
|
|
1918
|
-
- PriceLowPriority (priority low price)
|
|
2144
|
+
- PriceLowPriority (priority low price)
|
|
1919
2145
|
"""
|
|
1920
2146
|
return pulumi.get(self, "scheduling_price_strategy")
|
|
1921
2147
|
|
|
@@ -1925,7 +2151,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1925
2151
|
"""
|
|
1926
2152
|
Scheduling policy. Optional values:
|
|
1927
2153
|
- Concentrate for node-level scheduling
|
|
1928
|
-
- For regional scheduling, Concentrate, Disperse
|
|
2154
|
+
- For regional scheduling, Concentrate, Disperse
|
|
1929
2155
|
"""
|
|
1930
2156
|
return pulumi.get(self, "scheduling_strategy")
|
|
1931
2157
|
|
|
@@ -1937,11 +2163,21 @@ class Instance(pulumi.CustomResource):
|
|
|
1937
2163
|
"""
|
|
1938
2164
|
return pulumi.get(self, "security_id")
|
|
1939
2165
|
|
|
2166
|
+
@property
|
|
2167
|
+
@pulumi.getter(name="spotStrategy")
|
|
2168
|
+
def spot_strategy(self) -> pulumi.Output[Optional[str]]:
|
|
2169
|
+
"""
|
|
2170
|
+
The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
|
|
2171
|
+
- NoSpot: normal pay-as-you-go instance (default)
|
|
2172
|
+
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
|
|
2173
|
+
"""
|
|
2174
|
+
return pulumi.get(self, "spot_strategy")
|
|
2175
|
+
|
|
1940
2176
|
@property
|
|
1941
2177
|
@pulumi.getter
|
|
1942
2178
|
def status(self) -> pulumi.Output[str]:
|
|
1943
2179
|
"""
|
|
1944
|
-
Status of the instance
|
|
2180
|
+
Status of the instance
|
|
1945
2181
|
"""
|
|
1946
2182
|
return pulumi.get(self, "status")
|
|
1947
2183
|
|
|
@@ -1953,6 +2189,14 @@ class Instance(pulumi.CustomResource):
|
|
|
1953
2189
|
"""
|
|
1954
2190
|
return pulumi.get(self, "system_disk")
|
|
1955
2191
|
|
|
2192
|
+
@property
|
|
2193
|
+
@pulumi.getter
|
|
2194
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
2195
|
+
"""
|
|
2196
|
+
The tag bound to the instance
|
|
2197
|
+
"""
|
|
2198
|
+
return pulumi.get(self, "tags")
|
|
2199
|
+
|
|
1956
2200
|
@property
|
|
1957
2201
|
@pulumi.getter(name="uniqueSuffix")
|
|
1958
2202
|
def unique_suffix(self) -> pulumi.Output[Optional[bool]]:
|
|
@@ -1973,7 +2217,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1973
2217
|
@pulumi.getter(name="vswitchId")
|
|
1974
2218
|
def vswitch_id(self) -> pulumi.Output[str]:
|
|
1975
2219
|
"""
|
|
1976
|
-
The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
2220
|
+
The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
|
|
1977
2221
|
"""
|
|
1978
2222
|
return pulumi.get(self, "vswitch_id")
|
|
1979
2223
|
|