pulumi-alicloud 3.88.0a1761888283__py3-none-any.whl → 3.89.0a1761974293__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +59 -0
- pulumi_alicloud/cfg/_inputs.py +27 -24
- pulumi_alicloud/cfg/aggregator.py +142 -53
- pulumi_alicloud/cfg/outputs.py +18 -15
- pulumi_alicloud/cloudfirewall/__init__.py +1 -0
- pulumi_alicloud/cloudfirewall/get_tls_inspect_ca_certificates.py +214 -0
- pulumi_alicloud/cloudfirewall/outputs.py +30 -0
- pulumi_alicloud/cms/_inputs.py +870 -10
- pulumi_alicloud/cms/get_site_monitors.py +2 -2
- pulumi_alicloud/cms/outputs.py +606 -6
- pulumi_alicloud/cms/site_monitor.py +360 -89
- pulumi_alicloud/cr/registry_enterprise_instance.py +63 -0
- pulumi_alicloud/dts/instance.py +14 -14
- pulumi_alicloud/eci/container_group.py +47 -0
- pulumi_alicloud/ecs/security_group_rule.py +7 -7
- pulumi_alicloud/ens/load_balancer.py +8 -4
- pulumi_alicloud/esa/__init__.py +1 -0
- pulumi_alicloud/esa/_inputs.py +611 -0
- pulumi_alicloud/esa/cache_rule.py +47 -0
- pulumi_alicloud/esa/certificate.py +21 -54
- pulumi_alicloud/esa/compression_rule.py +47 -0
- pulumi_alicloud/esa/load_balancer.py +999 -0
- pulumi_alicloud/esa/outputs.py +469 -0
- pulumi_alicloud/eventbridge/event_source.py +57 -57
- pulumi_alicloud/ga/_inputs.py +56 -16
- pulumi_alicloud/ga/outputs.py +39 -11
- pulumi_alicloud/lindorm/instance_v2.py +358 -70
- pulumi_alicloud/oss/_inputs.py +53 -0
- pulumi_alicloud/oss/bucket_logging.py +80 -29
- pulumi_alicloud/oss/bucket_replication.py +55 -8
- pulumi_alicloud/oss/outputs.py +31 -0
- pulumi_alicloud/polardb/__init__.py +2 -0
- pulumi_alicloud/polardb/cluster.py +14 -14
- pulumi_alicloud/polardb/zonal_account.py +449 -0
- pulumi_alicloud/polardb/zonal_db_cluster.py +2 -2
- pulumi_alicloud/polardb/zonal_endpoint.py +865 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/ram/policy.py +2 -2
- pulumi_alicloud/resourcemanager/__init__.py +2 -0
- pulumi_alicloud/resourcemanager/_inputs.py +745 -0
- pulumi_alicloud/resourcemanager/delivery_channel.py +449 -0
- pulumi_alicloud/resourcemanager/multi_account_delivery_channel.py +470 -0
- pulumi_alicloud/resourcemanager/outputs.py +643 -0
- pulumi_alicloud/sae/_inputs.py +60 -0
- pulumi_alicloud/sae/application.py +1 -1
- pulumi_alicloud/sae/outputs.py +42 -0
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/get_indexs.py +304 -0
- pulumi_alicloud/sls/outputs.py +148 -0
- pulumi_alicloud/star_rocks_instance.py +8 -2
- pulumi_alicloud/starrocks/__init__.py +12 -0
- pulumi_alicloud/starrocks/_inputs.py +656 -0
- pulumi_alicloud/starrocks/instance.py +1427 -0
- pulumi_alicloud/starrocks/node_group.py +1298 -0
- pulumi_alicloud/starrocks/outputs.py +508 -0
- pulumi_alicloud/vpc/_inputs.py +84 -0
- pulumi_alicloud/vpc/gateway_endpoint.py +8 -8
- pulumi_alicloud/vpc/network_acl_entries.py +16 -20
- pulumi_alicloud/vpc/outputs.py +48 -0
- pulumi_alicloud/wafv3/_inputs.py +396 -0
- pulumi_alicloud/wafv3/defense_rule.py +40 -110
- pulumi_alicloud/wafv3/outputs.py +303 -0
- {pulumi_alicloud-3.88.0a1761888283.dist-info → pulumi_alicloud-3.89.0a1761974293.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.88.0a1761888283.dist-info → pulumi_alicloud-3.89.0a1761974293.dist-info}/RECORD +66 -54
- {pulumi_alicloud-3.88.0a1761888283.dist-info → pulumi_alicloud-3.89.0a1761974293.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.88.0a1761888283.dist-info → pulumi_alicloud-3.89.0a1761974293.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1298 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['NodeGroupArgs', 'NodeGroup']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class NodeGroupArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
23
|
+
cu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
24
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
disk_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
26
|
+
duration: Optional[pulumi.Input[_builtins.int]] = None,
|
|
27
|
+
fast_mode: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
28
|
+
instance_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
local_storage_instance_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
node_group_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
|
+
pay_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
pricing_cycle: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
promotion_option_no: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
|
+
resident_node_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
35
|
+
spec_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
36
|
+
storage_performance_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
37
|
+
storage_size: Optional[pulumi.Input[_builtins.int]] = None):
|
|
38
|
+
"""
|
|
39
|
+
The set of arguments for constructing a NodeGroup resource.
|
|
40
|
+
:param pulumi.Input[_builtins.bool] auto_renew: Whether auto-renewal is enabled.
|
|
41
|
+
|
|
42
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
43
|
+
:param pulumi.Input[_builtins.int] cu: Number of CUs. CU (Compute Unit) is the basic unit of service measurement, where 1 CU = 1 vCPU + 4 GiB memory. When SpecType is memory-optimized, 1 CU = 1 vCPU + 8 GiB memory.
|
|
44
|
+
:param pulumi.Input[_builtins.str] description: Description of node group.
|
|
45
|
+
:param pulumi.Input[_builtins.int] disk_number: Number of disks.
|
|
46
|
+
:param pulumi.Input[_builtins.int] duration: Duration of node group.
|
|
47
|
+
|
|
48
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
49
|
+
:param pulumi.Input[_builtins.bool] fast_mode: Whether to restart in fast restart mode. The default is false.
|
|
50
|
+
- true: Reboots the compute node in fast restart mode. Restart computing nodes in multiple batches, restart in parallel within a batch, and execute serially between batches;
|
|
51
|
+
- false: Restarts the compute node in rolling restart mode.
|
|
52
|
+
|
|
53
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
54
|
+
:param pulumi.Input[_builtins.str] instance_id: The ID of the instance.
|
|
55
|
+
:param pulumi.Input[_builtins.str] local_storage_instance_type: Node group local SSD instance specification. This value is only relevant when based on ECS instances and SpecType is set to local SSD/large-scale storage.
|
|
56
|
+
:param pulumi.Input[_builtins.str] node_group_name: The name of the node group.
|
|
57
|
+
:param pulumi.Input[_builtins.str] pay_type: Payment type:
|
|
58
|
+
- PrePaid: Subscription (prepaid).
|
|
59
|
+
- PostPaid: Pay-as-you-go (postpaid).
|
|
60
|
+
:param pulumi.Input[_builtins.str] pricing_cycle: Unit of purchase duration:
|
|
61
|
+
- Month
|
|
62
|
+
- Year
|
|
63
|
+
|
|
64
|
+
This is only applicable when payType is set to PrePaid.
|
|
65
|
+
|
|
66
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
67
|
+
:param pulumi.Input[_builtins.int] resident_node_number: Number of nodes.
|
|
68
|
+
:param pulumi.Input[_builtins.str] spec_type: Node group spec types include the following:
|
|
69
|
+
- standard: Standard edition.
|
|
70
|
+
- localSSD: Local SSD.
|
|
71
|
+
- bigData: Large-scale storage.
|
|
72
|
+
- ramEnhanced: Memory-enhanced type.
|
|
73
|
+
- networkEnhanced: Network-enhanced type.
|
|
74
|
+
:param pulumi.Input[_builtins.str] storage_performance_level: Performance levels of the cloud disk. Includes the following values:
|
|
75
|
+
- pl0: Maximum random read/write IOPS of a single disk is 10,000.
|
|
76
|
+
- pl1: Maximum random read/write IOPS of a single disk is 50,000.
|
|
77
|
+
- pl2: Maximum random read/write IOPS of a single disk is 100,000.
|
|
78
|
+
- pl3: Maximum random read/write IOPS of a single disk is 1,000,000.
|
|
79
|
+
:param pulumi.Input[_builtins.int] storage_size: Storage size, measured in GiB.
|
|
80
|
+
"""
|
|
81
|
+
if auto_renew is not None:
|
|
82
|
+
pulumi.set(__self__, "auto_renew", auto_renew)
|
|
83
|
+
if cu is not None:
|
|
84
|
+
pulumi.set(__self__, "cu", cu)
|
|
85
|
+
if description is not None:
|
|
86
|
+
pulumi.set(__self__, "description", description)
|
|
87
|
+
if disk_number is not None:
|
|
88
|
+
pulumi.set(__self__, "disk_number", disk_number)
|
|
89
|
+
if duration is not None:
|
|
90
|
+
pulumi.set(__self__, "duration", duration)
|
|
91
|
+
if fast_mode is not None:
|
|
92
|
+
pulumi.set(__self__, "fast_mode", fast_mode)
|
|
93
|
+
if instance_id is not None:
|
|
94
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
95
|
+
if local_storage_instance_type is not None:
|
|
96
|
+
pulumi.set(__self__, "local_storage_instance_type", local_storage_instance_type)
|
|
97
|
+
if node_group_name is not None:
|
|
98
|
+
pulumi.set(__self__, "node_group_name", node_group_name)
|
|
99
|
+
if pay_type is not None:
|
|
100
|
+
pulumi.set(__self__, "pay_type", pay_type)
|
|
101
|
+
if pricing_cycle is not None:
|
|
102
|
+
pulumi.set(__self__, "pricing_cycle", pricing_cycle)
|
|
103
|
+
if promotion_option_no is not None:
|
|
104
|
+
pulumi.set(__self__, "promotion_option_no", promotion_option_no)
|
|
105
|
+
if resident_node_number is not None:
|
|
106
|
+
pulumi.set(__self__, "resident_node_number", resident_node_number)
|
|
107
|
+
if spec_type is not None:
|
|
108
|
+
pulumi.set(__self__, "spec_type", spec_type)
|
|
109
|
+
if storage_performance_level is not None:
|
|
110
|
+
pulumi.set(__self__, "storage_performance_level", storage_performance_level)
|
|
111
|
+
if storage_size is not None:
|
|
112
|
+
pulumi.set(__self__, "storage_size", storage_size)
|
|
113
|
+
|
|
114
|
+
@_builtins.property
|
|
115
|
+
@pulumi.getter(name="autoRenew")
|
|
116
|
+
def auto_renew(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
117
|
+
"""
|
|
118
|
+
Whether auto-renewal is enabled.
|
|
119
|
+
|
|
120
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
121
|
+
"""
|
|
122
|
+
return pulumi.get(self, "auto_renew")
|
|
123
|
+
|
|
124
|
+
@auto_renew.setter
|
|
125
|
+
def auto_renew(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
126
|
+
pulumi.set(self, "auto_renew", value)
|
|
127
|
+
|
|
128
|
+
@_builtins.property
|
|
129
|
+
@pulumi.getter
|
|
130
|
+
def cu(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
131
|
+
"""
|
|
132
|
+
Number of CUs. CU (Compute Unit) is the basic unit of service measurement, where 1 CU = 1 vCPU + 4 GiB memory. When SpecType is memory-optimized, 1 CU = 1 vCPU + 8 GiB memory.
|
|
133
|
+
"""
|
|
134
|
+
return pulumi.get(self, "cu")
|
|
135
|
+
|
|
136
|
+
@cu.setter
|
|
137
|
+
def cu(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
138
|
+
pulumi.set(self, "cu", value)
|
|
139
|
+
|
|
140
|
+
@_builtins.property
|
|
141
|
+
@pulumi.getter
|
|
142
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
143
|
+
"""
|
|
144
|
+
Description of node group.
|
|
145
|
+
"""
|
|
146
|
+
return pulumi.get(self, "description")
|
|
147
|
+
|
|
148
|
+
@description.setter
|
|
149
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
150
|
+
pulumi.set(self, "description", value)
|
|
151
|
+
|
|
152
|
+
@_builtins.property
|
|
153
|
+
@pulumi.getter(name="diskNumber")
|
|
154
|
+
def disk_number(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
155
|
+
"""
|
|
156
|
+
Number of disks.
|
|
157
|
+
"""
|
|
158
|
+
return pulumi.get(self, "disk_number")
|
|
159
|
+
|
|
160
|
+
@disk_number.setter
|
|
161
|
+
def disk_number(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
162
|
+
pulumi.set(self, "disk_number", value)
|
|
163
|
+
|
|
164
|
+
@_builtins.property
|
|
165
|
+
@pulumi.getter
|
|
166
|
+
def duration(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
167
|
+
"""
|
|
168
|
+
Duration of node group.
|
|
169
|
+
|
|
170
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
171
|
+
"""
|
|
172
|
+
return pulumi.get(self, "duration")
|
|
173
|
+
|
|
174
|
+
@duration.setter
|
|
175
|
+
def duration(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
176
|
+
pulumi.set(self, "duration", value)
|
|
177
|
+
|
|
178
|
+
@_builtins.property
|
|
179
|
+
@pulumi.getter(name="fastMode")
|
|
180
|
+
def fast_mode(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
181
|
+
"""
|
|
182
|
+
Whether to restart in fast restart mode. The default is false.
|
|
183
|
+
- true: Reboots the compute node in fast restart mode. Restart computing nodes in multiple batches, restart in parallel within a batch, and execute serially between batches;
|
|
184
|
+
- false: Restarts the compute node in rolling restart mode.
|
|
185
|
+
|
|
186
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
187
|
+
"""
|
|
188
|
+
return pulumi.get(self, "fast_mode")
|
|
189
|
+
|
|
190
|
+
@fast_mode.setter
|
|
191
|
+
def fast_mode(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
192
|
+
pulumi.set(self, "fast_mode", value)
|
|
193
|
+
|
|
194
|
+
@_builtins.property
|
|
195
|
+
@pulumi.getter(name="instanceId")
|
|
196
|
+
def instance_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
197
|
+
"""
|
|
198
|
+
The ID of the instance.
|
|
199
|
+
"""
|
|
200
|
+
return pulumi.get(self, "instance_id")
|
|
201
|
+
|
|
202
|
+
@instance_id.setter
|
|
203
|
+
def instance_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
204
|
+
pulumi.set(self, "instance_id", value)
|
|
205
|
+
|
|
206
|
+
@_builtins.property
|
|
207
|
+
@pulumi.getter(name="localStorageInstanceType")
|
|
208
|
+
def local_storage_instance_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
209
|
+
"""
|
|
210
|
+
Node group local SSD instance specification. This value is only relevant when based on ECS instances and SpecType is set to local SSD/large-scale storage.
|
|
211
|
+
"""
|
|
212
|
+
return pulumi.get(self, "local_storage_instance_type")
|
|
213
|
+
|
|
214
|
+
@local_storage_instance_type.setter
|
|
215
|
+
def local_storage_instance_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
216
|
+
pulumi.set(self, "local_storage_instance_type", value)
|
|
217
|
+
|
|
218
|
+
@_builtins.property
|
|
219
|
+
@pulumi.getter(name="nodeGroupName")
|
|
220
|
+
def node_group_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
221
|
+
"""
|
|
222
|
+
The name of the node group.
|
|
223
|
+
"""
|
|
224
|
+
return pulumi.get(self, "node_group_name")
|
|
225
|
+
|
|
226
|
+
@node_group_name.setter
|
|
227
|
+
def node_group_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
228
|
+
pulumi.set(self, "node_group_name", value)
|
|
229
|
+
|
|
230
|
+
@_builtins.property
|
|
231
|
+
@pulumi.getter(name="payType")
|
|
232
|
+
def pay_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
233
|
+
"""
|
|
234
|
+
Payment type:
|
|
235
|
+
- PrePaid: Subscription (prepaid).
|
|
236
|
+
- PostPaid: Pay-as-you-go (postpaid).
|
|
237
|
+
"""
|
|
238
|
+
return pulumi.get(self, "pay_type")
|
|
239
|
+
|
|
240
|
+
@pay_type.setter
|
|
241
|
+
def pay_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
242
|
+
pulumi.set(self, "pay_type", value)
|
|
243
|
+
|
|
244
|
+
@_builtins.property
|
|
245
|
+
@pulumi.getter(name="pricingCycle")
|
|
246
|
+
def pricing_cycle(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
247
|
+
"""
|
|
248
|
+
Unit of purchase duration:
|
|
249
|
+
- Month
|
|
250
|
+
- Year
|
|
251
|
+
|
|
252
|
+
This is only applicable when payType is set to PrePaid.
|
|
253
|
+
|
|
254
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
255
|
+
"""
|
|
256
|
+
return pulumi.get(self, "pricing_cycle")
|
|
257
|
+
|
|
258
|
+
@pricing_cycle.setter
|
|
259
|
+
def pricing_cycle(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
260
|
+
pulumi.set(self, "pricing_cycle", value)
|
|
261
|
+
|
|
262
|
+
@_builtins.property
|
|
263
|
+
@pulumi.getter(name="promotionOptionNo")
|
|
264
|
+
def promotion_option_no(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
265
|
+
return pulumi.get(self, "promotion_option_no")
|
|
266
|
+
|
|
267
|
+
@promotion_option_no.setter
|
|
268
|
+
def promotion_option_no(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
269
|
+
pulumi.set(self, "promotion_option_no", value)
|
|
270
|
+
|
|
271
|
+
@_builtins.property
|
|
272
|
+
@pulumi.getter(name="residentNodeNumber")
|
|
273
|
+
def resident_node_number(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
274
|
+
"""
|
|
275
|
+
Number of nodes.
|
|
276
|
+
"""
|
|
277
|
+
return pulumi.get(self, "resident_node_number")
|
|
278
|
+
|
|
279
|
+
@resident_node_number.setter
|
|
280
|
+
def resident_node_number(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
281
|
+
pulumi.set(self, "resident_node_number", value)
|
|
282
|
+
|
|
283
|
+
@_builtins.property
|
|
284
|
+
@pulumi.getter(name="specType")
|
|
285
|
+
def spec_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
286
|
+
"""
|
|
287
|
+
Node group spec types include the following:
|
|
288
|
+
- standard: Standard edition.
|
|
289
|
+
- localSSD: Local SSD.
|
|
290
|
+
- bigData: Large-scale storage.
|
|
291
|
+
- ramEnhanced: Memory-enhanced type.
|
|
292
|
+
- networkEnhanced: Network-enhanced type.
|
|
293
|
+
"""
|
|
294
|
+
return pulumi.get(self, "spec_type")
|
|
295
|
+
|
|
296
|
+
@spec_type.setter
|
|
297
|
+
def spec_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
298
|
+
pulumi.set(self, "spec_type", value)
|
|
299
|
+
|
|
300
|
+
@_builtins.property
|
|
301
|
+
@pulumi.getter(name="storagePerformanceLevel")
|
|
302
|
+
def storage_performance_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
303
|
+
"""
|
|
304
|
+
Performance levels of the cloud disk. Includes the following values:
|
|
305
|
+
- pl0: Maximum random read/write IOPS of a single disk is 10,000.
|
|
306
|
+
- pl1: Maximum random read/write IOPS of a single disk is 50,000.
|
|
307
|
+
- pl2: Maximum random read/write IOPS of a single disk is 100,000.
|
|
308
|
+
- pl3: Maximum random read/write IOPS of a single disk is 1,000,000.
|
|
309
|
+
"""
|
|
310
|
+
return pulumi.get(self, "storage_performance_level")
|
|
311
|
+
|
|
312
|
+
@storage_performance_level.setter
|
|
313
|
+
def storage_performance_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
314
|
+
pulumi.set(self, "storage_performance_level", value)
|
|
315
|
+
|
|
316
|
+
@_builtins.property
|
|
317
|
+
@pulumi.getter(name="storageSize")
|
|
318
|
+
def storage_size(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
319
|
+
"""
|
|
320
|
+
Storage size, measured in GiB.
|
|
321
|
+
"""
|
|
322
|
+
return pulumi.get(self, "storage_size")
|
|
323
|
+
|
|
324
|
+
@storage_size.setter
|
|
325
|
+
def storage_size(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
326
|
+
pulumi.set(self, "storage_size", value)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
@pulumi.input_type
|
|
330
|
+
class _NodeGroupState:
|
|
331
|
+
def __init__(__self__, *,
|
|
332
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
333
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
334
|
+
cu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
335
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
336
|
+
disk_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
337
|
+
duration: Optional[pulumi.Input[_builtins.int]] = None,
|
|
338
|
+
fast_mode: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
339
|
+
instance_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
340
|
+
local_storage_instance_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
341
|
+
node_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
342
|
+
node_group_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
343
|
+
pay_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
344
|
+
pricing_cycle: Optional[pulumi.Input[_builtins.str]] = None,
|
|
345
|
+
promotion_option_no: Optional[pulumi.Input[_builtins.str]] = None,
|
|
346
|
+
region_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
347
|
+
resident_node_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
348
|
+
spec_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
349
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
350
|
+
storage_performance_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
351
|
+
storage_size: Optional[pulumi.Input[_builtins.int]] = None):
|
|
352
|
+
"""
|
|
353
|
+
Input properties used for looking up and filtering NodeGroup resources.
|
|
354
|
+
:param pulumi.Input[_builtins.bool] auto_renew: Whether auto-renewal is enabled.
|
|
355
|
+
|
|
356
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
357
|
+
:param pulumi.Input[_builtins.str] create_time: The creation time of the node group.
|
|
358
|
+
:param pulumi.Input[_builtins.int] cu: Number of CUs. CU (Compute Unit) is the basic unit of service measurement, where 1 CU = 1 vCPU + 4 GiB memory. When SpecType is memory-optimized, 1 CU = 1 vCPU + 8 GiB memory.
|
|
359
|
+
:param pulumi.Input[_builtins.str] description: Description of node group.
|
|
360
|
+
:param pulumi.Input[_builtins.int] disk_number: Number of disks.
|
|
361
|
+
:param pulumi.Input[_builtins.int] duration: Duration of node group.
|
|
362
|
+
|
|
363
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
364
|
+
:param pulumi.Input[_builtins.bool] fast_mode: Whether to restart in fast restart mode. The default is false.
|
|
365
|
+
- true: Reboots the compute node in fast restart mode. Restart computing nodes in multiple batches, restart in parallel within a batch, and execute serially between batches;
|
|
366
|
+
- false: Restarts the compute node in rolling restart mode.
|
|
367
|
+
|
|
368
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
369
|
+
:param pulumi.Input[_builtins.str] instance_id: The ID of the instance.
|
|
370
|
+
:param pulumi.Input[_builtins.str] local_storage_instance_type: Node group local SSD instance specification. This value is only relevant when based on ECS instances and SpecType is set to local SSD/large-scale storage.
|
|
371
|
+
:param pulumi.Input[_builtins.str] node_group_id: The ID of the node group.
|
|
372
|
+
:param pulumi.Input[_builtins.str] node_group_name: The name of the node group.
|
|
373
|
+
:param pulumi.Input[_builtins.str] pay_type: Payment type:
|
|
374
|
+
- PrePaid: Subscription (prepaid).
|
|
375
|
+
- PostPaid: Pay-as-you-go (postpaid).
|
|
376
|
+
:param pulumi.Input[_builtins.str] pricing_cycle: Unit of purchase duration:
|
|
377
|
+
- Month
|
|
378
|
+
- Year
|
|
379
|
+
|
|
380
|
+
This is only applicable when payType is set to PrePaid.
|
|
381
|
+
|
|
382
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
383
|
+
:param pulumi.Input[_builtins.str] region_id: The region ID of the node group.
|
|
384
|
+
:param pulumi.Input[_builtins.int] resident_node_number: Number of nodes.
|
|
385
|
+
:param pulumi.Input[_builtins.str] spec_type: Node group spec types include the following:
|
|
386
|
+
- standard: Standard edition.
|
|
387
|
+
- localSSD: Local SSD.
|
|
388
|
+
- bigData: Large-scale storage.
|
|
389
|
+
- ramEnhanced: Memory-enhanced type.
|
|
390
|
+
- networkEnhanced: Network-enhanced type.
|
|
391
|
+
:param pulumi.Input[_builtins.str] status: Node group status, including the following values:_FAILED: Creation failed._CONFIG: Modifying configuration._TIMEZONE: Modifying timezone._SCALING_OUT: Elastic scaling out._SCALING_IN: Elastic scaling in._OUT: Scaling out._IN: Scaling in._UP: Scaling up (upgrading configuration)._DOWN: Scaling down (downgrading configuration)._PUBLIC_NETWORK: Enabling public network._PUBLIC_NETWORK: Disabling public network._AZ: Switching availability zones.
|
|
392
|
+
:param pulumi.Input[_builtins.str] storage_performance_level: Performance levels of the cloud disk. Includes the following values:
|
|
393
|
+
- pl0: Maximum random read/write IOPS of a single disk is 10,000.
|
|
394
|
+
- pl1: Maximum random read/write IOPS of a single disk is 50,000.
|
|
395
|
+
- pl2: Maximum random read/write IOPS of a single disk is 100,000.
|
|
396
|
+
- pl3: Maximum random read/write IOPS of a single disk is 1,000,000.
|
|
397
|
+
:param pulumi.Input[_builtins.int] storage_size: Storage size, measured in GiB.
|
|
398
|
+
"""
|
|
399
|
+
if auto_renew is not None:
|
|
400
|
+
pulumi.set(__self__, "auto_renew", auto_renew)
|
|
401
|
+
if create_time is not None:
|
|
402
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
403
|
+
if cu is not None:
|
|
404
|
+
pulumi.set(__self__, "cu", cu)
|
|
405
|
+
if description is not None:
|
|
406
|
+
pulumi.set(__self__, "description", description)
|
|
407
|
+
if disk_number is not None:
|
|
408
|
+
pulumi.set(__self__, "disk_number", disk_number)
|
|
409
|
+
if duration is not None:
|
|
410
|
+
pulumi.set(__self__, "duration", duration)
|
|
411
|
+
if fast_mode is not None:
|
|
412
|
+
pulumi.set(__self__, "fast_mode", fast_mode)
|
|
413
|
+
if instance_id is not None:
|
|
414
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
415
|
+
if local_storage_instance_type is not None:
|
|
416
|
+
pulumi.set(__self__, "local_storage_instance_type", local_storage_instance_type)
|
|
417
|
+
if node_group_id is not None:
|
|
418
|
+
pulumi.set(__self__, "node_group_id", node_group_id)
|
|
419
|
+
if node_group_name is not None:
|
|
420
|
+
pulumi.set(__self__, "node_group_name", node_group_name)
|
|
421
|
+
if pay_type is not None:
|
|
422
|
+
pulumi.set(__self__, "pay_type", pay_type)
|
|
423
|
+
if pricing_cycle is not None:
|
|
424
|
+
pulumi.set(__self__, "pricing_cycle", pricing_cycle)
|
|
425
|
+
if promotion_option_no is not None:
|
|
426
|
+
pulumi.set(__self__, "promotion_option_no", promotion_option_no)
|
|
427
|
+
if region_id is not None:
|
|
428
|
+
pulumi.set(__self__, "region_id", region_id)
|
|
429
|
+
if resident_node_number is not None:
|
|
430
|
+
pulumi.set(__self__, "resident_node_number", resident_node_number)
|
|
431
|
+
if spec_type is not None:
|
|
432
|
+
pulumi.set(__self__, "spec_type", spec_type)
|
|
433
|
+
if status is not None:
|
|
434
|
+
pulumi.set(__self__, "status", status)
|
|
435
|
+
if storage_performance_level is not None:
|
|
436
|
+
pulumi.set(__self__, "storage_performance_level", storage_performance_level)
|
|
437
|
+
if storage_size is not None:
|
|
438
|
+
pulumi.set(__self__, "storage_size", storage_size)
|
|
439
|
+
|
|
440
|
+
@_builtins.property
|
|
441
|
+
@pulumi.getter(name="autoRenew")
|
|
442
|
+
def auto_renew(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
443
|
+
"""
|
|
444
|
+
Whether auto-renewal is enabled.
|
|
445
|
+
|
|
446
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
447
|
+
"""
|
|
448
|
+
return pulumi.get(self, "auto_renew")
|
|
449
|
+
|
|
450
|
+
@auto_renew.setter
|
|
451
|
+
def auto_renew(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
452
|
+
pulumi.set(self, "auto_renew", value)
|
|
453
|
+
|
|
454
|
+
@_builtins.property
|
|
455
|
+
@pulumi.getter(name="createTime")
|
|
456
|
+
def create_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
457
|
+
"""
|
|
458
|
+
The creation time of the node group.
|
|
459
|
+
"""
|
|
460
|
+
return pulumi.get(self, "create_time")
|
|
461
|
+
|
|
462
|
+
@create_time.setter
|
|
463
|
+
def create_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
464
|
+
pulumi.set(self, "create_time", value)
|
|
465
|
+
|
|
466
|
+
@_builtins.property
|
|
467
|
+
@pulumi.getter
|
|
468
|
+
def cu(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
469
|
+
"""
|
|
470
|
+
Number of CUs. CU (Compute Unit) is the basic unit of service measurement, where 1 CU = 1 vCPU + 4 GiB memory. When SpecType is memory-optimized, 1 CU = 1 vCPU + 8 GiB memory.
|
|
471
|
+
"""
|
|
472
|
+
return pulumi.get(self, "cu")
|
|
473
|
+
|
|
474
|
+
@cu.setter
|
|
475
|
+
def cu(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
476
|
+
pulumi.set(self, "cu", value)
|
|
477
|
+
|
|
478
|
+
@_builtins.property
|
|
479
|
+
@pulumi.getter
|
|
480
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
481
|
+
"""
|
|
482
|
+
Description of node group.
|
|
483
|
+
"""
|
|
484
|
+
return pulumi.get(self, "description")
|
|
485
|
+
|
|
486
|
+
@description.setter
|
|
487
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
488
|
+
pulumi.set(self, "description", value)
|
|
489
|
+
|
|
490
|
+
@_builtins.property
|
|
491
|
+
@pulumi.getter(name="diskNumber")
|
|
492
|
+
def disk_number(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
493
|
+
"""
|
|
494
|
+
Number of disks.
|
|
495
|
+
"""
|
|
496
|
+
return pulumi.get(self, "disk_number")
|
|
497
|
+
|
|
498
|
+
@disk_number.setter
|
|
499
|
+
def disk_number(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
500
|
+
pulumi.set(self, "disk_number", value)
|
|
501
|
+
|
|
502
|
+
@_builtins.property
|
|
503
|
+
@pulumi.getter
|
|
504
|
+
def duration(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
505
|
+
"""
|
|
506
|
+
Duration of node group.
|
|
507
|
+
|
|
508
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
509
|
+
"""
|
|
510
|
+
return pulumi.get(self, "duration")
|
|
511
|
+
|
|
512
|
+
@duration.setter
|
|
513
|
+
def duration(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
514
|
+
pulumi.set(self, "duration", value)
|
|
515
|
+
|
|
516
|
+
@_builtins.property
|
|
517
|
+
@pulumi.getter(name="fastMode")
|
|
518
|
+
def fast_mode(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
519
|
+
"""
|
|
520
|
+
Whether to restart in fast restart mode. The default is false.
|
|
521
|
+
- true: Reboots the compute node in fast restart mode. Restart computing nodes in multiple batches, restart in parallel within a batch, and execute serially between batches;
|
|
522
|
+
- false: Restarts the compute node in rolling restart mode.
|
|
523
|
+
|
|
524
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
525
|
+
"""
|
|
526
|
+
return pulumi.get(self, "fast_mode")
|
|
527
|
+
|
|
528
|
+
@fast_mode.setter
|
|
529
|
+
def fast_mode(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
530
|
+
pulumi.set(self, "fast_mode", value)
|
|
531
|
+
|
|
532
|
+
@_builtins.property
|
|
533
|
+
@pulumi.getter(name="instanceId")
|
|
534
|
+
def instance_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
535
|
+
"""
|
|
536
|
+
The ID of the instance.
|
|
537
|
+
"""
|
|
538
|
+
return pulumi.get(self, "instance_id")
|
|
539
|
+
|
|
540
|
+
@instance_id.setter
|
|
541
|
+
def instance_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
542
|
+
pulumi.set(self, "instance_id", value)
|
|
543
|
+
|
|
544
|
+
@_builtins.property
|
|
545
|
+
@pulumi.getter(name="localStorageInstanceType")
|
|
546
|
+
def local_storage_instance_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
547
|
+
"""
|
|
548
|
+
Node group local SSD instance specification. This value is only relevant when based on ECS instances and SpecType is set to local SSD/large-scale storage.
|
|
549
|
+
"""
|
|
550
|
+
return pulumi.get(self, "local_storage_instance_type")
|
|
551
|
+
|
|
552
|
+
@local_storage_instance_type.setter
|
|
553
|
+
def local_storage_instance_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
554
|
+
pulumi.set(self, "local_storage_instance_type", value)
|
|
555
|
+
|
|
556
|
+
@_builtins.property
|
|
557
|
+
@pulumi.getter(name="nodeGroupId")
|
|
558
|
+
def node_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
559
|
+
"""
|
|
560
|
+
The ID of the node group.
|
|
561
|
+
"""
|
|
562
|
+
return pulumi.get(self, "node_group_id")
|
|
563
|
+
|
|
564
|
+
@node_group_id.setter
|
|
565
|
+
def node_group_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
566
|
+
pulumi.set(self, "node_group_id", value)
|
|
567
|
+
|
|
568
|
+
@_builtins.property
|
|
569
|
+
@pulumi.getter(name="nodeGroupName")
|
|
570
|
+
def node_group_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
571
|
+
"""
|
|
572
|
+
The name of the node group.
|
|
573
|
+
"""
|
|
574
|
+
return pulumi.get(self, "node_group_name")
|
|
575
|
+
|
|
576
|
+
@node_group_name.setter
|
|
577
|
+
def node_group_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
578
|
+
pulumi.set(self, "node_group_name", value)
|
|
579
|
+
|
|
580
|
+
@_builtins.property
|
|
581
|
+
@pulumi.getter(name="payType")
|
|
582
|
+
def pay_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
583
|
+
"""
|
|
584
|
+
Payment type:
|
|
585
|
+
- PrePaid: Subscription (prepaid).
|
|
586
|
+
- PostPaid: Pay-as-you-go (postpaid).
|
|
587
|
+
"""
|
|
588
|
+
return pulumi.get(self, "pay_type")
|
|
589
|
+
|
|
590
|
+
@pay_type.setter
|
|
591
|
+
def pay_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
592
|
+
pulumi.set(self, "pay_type", value)
|
|
593
|
+
|
|
594
|
+
@_builtins.property
|
|
595
|
+
@pulumi.getter(name="pricingCycle")
|
|
596
|
+
def pricing_cycle(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
597
|
+
"""
|
|
598
|
+
Unit of purchase duration:
|
|
599
|
+
- Month
|
|
600
|
+
- Year
|
|
601
|
+
|
|
602
|
+
This is only applicable when payType is set to PrePaid.
|
|
603
|
+
|
|
604
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
605
|
+
"""
|
|
606
|
+
return pulumi.get(self, "pricing_cycle")
|
|
607
|
+
|
|
608
|
+
@pricing_cycle.setter
|
|
609
|
+
def pricing_cycle(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
610
|
+
pulumi.set(self, "pricing_cycle", value)
|
|
611
|
+
|
|
612
|
+
@_builtins.property
|
|
613
|
+
@pulumi.getter(name="promotionOptionNo")
|
|
614
|
+
def promotion_option_no(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
615
|
+
return pulumi.get(self, "promotion_option_no")
|
|
616
|
+
|
|
617
|
+
@promotion_option_no.setter
|
|
618
|
+
def promotion_option_no(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
619
|
+
pulumi.set(self, "promotion_option_no", value)
|
|
620
|
+
|
|
621
|
+
@_builtins.property
|
|
622
|
+
@pulumi.getter(name="regionId")
|
|
623
|
+
def region_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
624
|
+
"""
|
|
625
|
+
The region ID of the node group.
|
|
626
|
+
"""
|
|
627
|
+
return pulumi.get(self, "region_id")
|
|
628
|
+
|
|
629
|
+
@region_id.setter
|
|
630
|
+
def region_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
631
|
+
pulumi.set(self, "region_id", value)
|
|
632
|
+
|
|
633
|
+
@_builtins.property
|
|
634
|
+
@pulumi.getter(name="residentNodeNumber")
|
|
635
|
+
def resident_node_number(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
636
|
+
"""
|
|
637
|
+
Number of nodes.
|
|
638
|
+
"""
|
|
639
|
+
return pulumi.get(self, "resident_node_number")
|
|
640
|
+
|
|
641
|
+
@resident_node_number.setter
|
|
642
|
+
def resident_node_number(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
643
|
+
pulumi.set(self, "resident_node_number", value)
|
|
644
|
+
|
|
645
|
+
@_builtins.property
|
|
646
|
+
@pulumi.getter(name="specType")
|
|
647
|
+
def spec_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
648
|
+
"""
|
|
649
|
+
Node group spec types include the following:
|
|
650
|
+
- standard: Standard edition.
|
|
651
|
+
- localSSD: Local SSD.
|
|
652
|
+
- bigData: Large-scale storage.
|
|
653
|
+
- ramEnhanced: Memory-enhanced type.
|
|
654
|
+
- networkEnhanced: Network-enhanced type.
|
|
655
|
+
"""
|
|
656
|
+
return pulumi.get(self, "spec_type")
|
|
657
|
+
|
|
658
|
+
@spec_type.setter
|
|
659
|
+
def spec_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
660
|
+
pulumi.set(self, "spec_type", value)
|
|
661
|
+
|
|
662
|
+
@_builtins.property
|
|
663
|
+
@pulumi.getter
|
|
664
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
665
|
+
"""
|
|
666
|
+
Node group status, including the following values:_FAILED: Creation failed._CONFIG: Modifying configuration._TIMEZONE: Modifying timezone._SCALING_OUT: Elastic scaling out._SCALING_IN: Elastic scaling in._OUT: Scaling out._IN: Scaling in._UP: Scaling up (upgrading configuration)._DOWN: Scaling down (downgrading configuration)._PUBLIC_NETWORK: Enabling public network._PUBLIC_NETWORK: Disabling public network._AZ: Switching availability zones.
|
|
667
|
+
"""
|
|
668
|
+
return pulumi.get(self, "status")
|
|
669
|
+
|
|
670
|
+
@status.setter
|
|
671
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
672
|
+
pulumi.set(self, "status", value)
|
|
673
|
+
|
|
674
|
+
@_builtins.property
|
|
675
|
+
@pulumi.getter(name="storagePerformanceLevel")
|
|
676
|
+
def storage_performance_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
677
|
+
"""
|
|
678
|
+
Performance levels of the cloud disk. Includes the following values:
|
|
679
|
+
- pl0: Maximum random read/write IOPS of a single disk is 10,000.
|
|
680
|
+
- pl1: Maximum random read/write IOPS of a single disk is 50,000.
|
|
681
|
+
- pl2: Maximum random read/write IOPS of a single disk is 100,000.
|
|
682
|
+
- pl3: Maximum random read/write IOPS of a single disk is 1,000,000.
|
|
683
|
+
"""
|
|
684
|
+
return pulumi.get(self, "storage_performance_level")
|
|
685
|
+
|
|
686
|
+
@storage_performance_level.setter
|
|
687
|
+
def storage_performance_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
688
|
+
pulumi.set(self, "storage_performance_level", value)
|
|
689
|
+
|
|
690
|
+
@_builtins.property
|
|
691
|
+
@pulumi.getter(name="storageSize")
|
|
692
|
+
def storage_size(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
693
|
+
"""
|
|
694
|
+
Storage size, measured in GiB.
|
|
695
|
+
"""
|
|
696
|
+
return pulumi.get(self, "storage_size")
|
|
697
|
+
|
|
698
|
+
@storage_size.setter
|
|
699
|
+
def storage_size(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
700
|
+
pulumi.set(self, "storage_size", value)
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
@pulumi.type_token("alicloud:starrocks/nodeGroup:NodeGroup")
|
|
704
|
+
class NodeGroup(pulumi.CustomResource):
|
|
705
|
+
@overload
|
|
706
|
+
def __init__(__self__,
|
|
707
|
+
resource_name: str,
|
|
708
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
709
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
710
|
+
cu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
711
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
712
|
+
disk_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
713
|
+
duration: Optional[pulumi.Input[_builtins.int]] = None,
|
|
714
|
+
fast_mode: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
715
|
+
instance_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
716
|
+
local_storage_instance_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
717
|
+
node_group_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
718
|
+
pay_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
719
|
+
pricing_cycle: Optional[pulumi.Input[_builtins.str]] = None,
|
|
720
|
+
promotion_option_no: Optional[pulumi.Input[_builtins.str]] = None,
|
|
721
|
+
resident_node_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
722
|
+
spec_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
723
|
+
storage_performance_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
724
|
+
storage_size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
725
|
+
__props__=None):
|
|
726
|
+
"""
|
|
727
|
+
Provides a Star Rocks Node Group resource.
|
|
728
|
+
|
|
729
|
+
For information about Star Rocks Node Group and how to use it, see [What is Node Group](https://next.api.alibabacloud.com/document/starrocks/2022-10-19/CreateNodeGroup).
|
|
730
|
+
|
|
731
|
+
> **NOTE:** Available since v1.262.0.
|
|
732
|
+
|
|
733
|
+
## Example Usage
|
|
734
|
+
|
|
735
|
+
Basic Usage
|
|
736
|
+
|
|
737
|
+
```python
|
|
738
|
+
import pulumi
|
|
739
|
+
import pulumi_alicloud as alicloud
|
|
740
|
+
|
|
741
|
+
config = pulumi.Config()
|
|
742
|
+
name = config.get("name")
|
|
743
|
+
if name is None:
|
|
744
|
+
name = "terraform-example"
|
|
745
|
+
defaultq6pc_fe = alicloud.vpc.Network("defaultq6pcFe",
|
|
746
|
+
cidr_block="172.16.0.0/12",
|
|
747
|
+
vpc_name="example-vpc-487")
|
|
748
|
+
defaultujlpy_g = alicloud.vpc.Switch("defaultujlpyG",
|
|
749
|
+
vpc_id=defaultq6pc_fe.id,
|
|
750
|
+
zone_id="cn-hangzhou-i",
|
|
751
|
+
cidr_block="172.16.0.0/24",
|
|
752
|
+
vswitch_name="sr-example-ng")
|
|
753
|
+
defaultvjnp_m0 = alicloud.starrocks.Instance("defaultvjnpM0",
|
|
754
|
+
cluster_zone_id="cn-hangzhou-i",
|
|
755
|
+
encrypted=False,
|
|
756
|
+
auto_renew=False,
|
|
757
|
+
pay_type="postPaid",
|
|
758
|
+
frontend_node_groups=[{
|
|
759
|
+
"cu": 8,
|
|
760
|
+
"storage_size": 100,
|
|
761
|
+
"storage_performance_level": "pl1",
|
|
762
|
+
"disk_number": 1,
|
|
763
|
+
"zone_id": "cn-hangzhou-i",
|
|
764
|
+
"spec_type": "standard",
|
|
765
|
+
"resident_node_number": 1,
|
|
766
|
+
}],
|
|
767
|
+
instance_name="t1",
|
|
768
|
+
vswitches=[{
|
|
769
|
+
"zone_id": "cn-hangzhou-i",
|
|
770
|
+
"vswitch_id": defaultujlpy_g.id,
|
|
771
|
+
}],
|
|
772
|
+
vpc_id=defaultq6pc_fe.id,
|
|
773
|
+
version="3.3",
|
|
774
|
+
run_mode="shared_data",
|
|
775
|
+
package_type="official",
|
|
776
|
+
oss_accessing_role_name="AliyunEMRStarRocksAccessingOSSRolecn",
|
|
777
|
+
admin_password="1qaz@QAZ",
|
|
778
|
+
backend_node_groups=[{
|
|
779
|
+
"cu": 8,
|
|
780
|
+
"storage_size": 200,
|
|
781
|
+
"zone_id": "cn-hangzhou-i",
|
|
782
|
+
"spec_type": "standard",
|
|
783
|
+
"resident_node_number": 3,
|
|
784
|
+
"disk_number": 1,
|
|
785
|
+
"storage_performance_level": "pl1",
|
|
786
|
+
}])
|
|
787
|
+
default = alicloud.starrocks.NodeGroup("default",
|
|
788
|
+
description="example_desc",
|
|
789
|
+
node_group_name="ng_676",
|
|
790
|
+
instance_id=defaultvjnp_m0.id,
|
|
791
|
+
spec_type="standard",
|
|
792
|
+
storage_performance_level="pl1",
|
|
793
|
+
pricing_cycle="1",
|
|
794
|
+
auto_renew=False,
|
|
795
|
+
storage_size=200,
|
|
796
|
+
duration=1,
|
|
797
|
+
pay_type="postPaid",
|
|
798
|
+
cu=8,
|
|
799
|
+
disk_number=1,
|
|
800
|
+
resident_node_number=1,
|
|
801
|
+
local_storage_instance_type="non_local_storage",
|
|
802
|
+
promotion_option_no="blank")
|
|
803
|
+
```
|
|
804
|
+
|
|
805
|
+
## Import
|
|
806
|
+
|
|
807
|
+
Star Rocks Node Group can be imported using the id, e.g.
|
|
808
|
+
|
|
809
|
+
```sh
|
|
810
|
+
$ pulumi import alicloud:starrocks/nodeGroup:NodeGroup example <instance_id>:<node_group_id>
|
|
811
|
+
```
|
|
812
|
+
|
|
813
|
+
:param str resource_name: The name of the resource.
|
|
814
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
815
|
+
:param pulumi.Input[_builtins.bool] auto_renew: Whether auto-renewal is enabled.
|
|
816
|
+
|
|
817
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
818
|
+
:param pulumi.Input[_builtins.int] cu: Number of CUs. CU (Compute Unit) is the basic unit of service measurement, where 1 CU = 1 vCPU + 4 GiB memory. When SpecType is memory-optimized, 1 CU = 1 vCPU + 8 GiB memory.
|
|
819
|
+
:param pulumi.Input[_builtins.str] description: Description of node group.
|
|
820
|
+
:param pulumi.Input[_builtins.int] disk_number: Number of disks.
|
|
821
|
+
:param pulumi.Input[_builtins.int] duration: Duration of node group.
|
|
822
|
+
|
|
823
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
824
|
+
:param pulumi.Input[_builtins.bool] fast_mode: Whether to restart in fast restart mode. The default is false.
|
|
825
|
+
- true: Reboots the compute node in fast restart mode. Restart computing nodes in multiple batches, restart in parallel within a batch, and execute serially between batches;
|
|
826
|
+
- false: Restarts the compute node in rolling restart mode.
|
|
827
|
+
|
|
828
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
829
|
+
:param pulumi.Input[_builtins.str] instance_id: The ID of the instance.
|
|
830
|
+
:param pulumi.Input[_builtins.str] local_storage_instance_type: Node group local SSD instance specification. This value is only relevant when based on ECS instances and SpecType is set to local SSD/large-scale storage.
|
|
831
|
+
:param pulumi.Input[_builtins.str] node_group_name: The name of the node group.
|
|
832
|
+
:param pulumi.Input[_builtins.str] pay_type: Payment type:
|
|
833
|
+
- PrePaid: Subscription (prepaid).
|
|
834
|
+
- PostPaid: Pay-as-you-go (postpaid).
|
|
835
|
+
:param pulumi.Input[_builtins.str] pricing_cycle: Unit of purchase duration:
|
|
836
|
+
- Month
|
|
837
|
+
- Year
|
|
838
|
+
|
|
839
|
+
This is only applicable when payType is set to PrePaid.
|
|
840
|
+
|
|
841
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
842
|
+
:param pulumi.Input[_builtins.int] resident_node_number: Number of nodes.
|
|
843
|
+
:param pulumi.Input[_builtins.str] spec_type: Node group spec types include the following:
|
|
844
|
+
- standard: Standard edition.
|
|
845
|
+
- localSSD: Local SSD.
|
|
846
|
+
- bigData: Large-scale storage.
|
|
847
|
+
- ramEnhanced: Memory-enhanced type.
|
|
848
|
+
- networkEnhanced: Network-enhanced type.
|
|
849
|
+
:param pulumi.Input[_builtins.str] storage_performance_level: Performance levels of the cloud disk. Includes the following values:
|
|
850
|
+
- pl0: Maximum random read/write IOPS of a single disk is 10,000.
|
|
851
|
+
- pl1: Maximum random read/write IOPS of a single disk is 50,000.
|
|
852
|
+
- pl2: Maximum random read/write IOPS of a single disk is 100,000.
|
|
853
|
+
- pl3: Maximum random read/write IOPS of a single disk is 1,000,000.
|
|
854
|
+
:param pulumi.Input[_builtins.int] storage_size: Storage size, measured in GiB.
|
|
855
|
+
"""
|
|
856
|
+
...
|
|
857
|
+
@overload
|
|
858
|
+
def __init__(__self__,
|
|
859
|
+
resource_name: str,
|
|
860
|
+
args: Optional[NodeGroupArgs] = None,
|
|
861
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
862
|
+
"""
|
|
863
|
+
Provides a Star Rocks Node Group resource.
|
|
864
|
+
|
|
865
|
+
For information about Star Rocks Node Group and how to use it, see [What is Node Group](https://next.api.alibabacloud.com/document/starrocks/2022-10-19/CreateNodeGroup).
|
|
866
|
+
|
|
867
|
+
> **NOTE:** Available since v1.262.0.
|
|
868
|
+
|
|
869
|
+
## Example Usage
|
|
870
|
+
|
|
871
|
+
Basic Usage
|
|
872
|
+
|
|
873
|
+
```python
|
|
874
|
+
import pulumi
|
|
875
|
+
import pulumi_alicloud as alicloud
|
|
876
|
+
|
|
877
|
+
config = pulumi.Config()
|
|
878
|
+
name = config.get("name")
|
|
879
|
+
if name is None:
|
|
880
|
+
name = "terraform-example"
|
|
881
|
+
defaultq6pc_fe = alicloud.vpc.Network("defaultq6pcFe",
|
|
882
|
+
cidr_block="172.16.0.0/12",
|
|
883
|
+
vpc_name="example-vpc-487")
|
|
884
|
+
defaultujlpy_g = alicloud.vpc.Switch("defaultujlpyG",
|
|
885
|
+
vpc_id=defaultq6pc_fe.id,
|
|
886
|
+
zone_id="cn-hangzhou-i",
|
|
887
|
+
cidr_block="172.16.0.0/24",
|
|
888
|
+
vswitch_name="sr-example-ng")
|
|
889
|
+
defaultvjnp_m0 = alicloud.starrocks.Instance("defaultvjnpM0",
|
|
890
|
+
cluster_zone_id="cn-hangzhou-i",
|
|
891
|
+
encrypted=False,
|
|
892
|
+
auto_renew=False,
|
|
893
|
+
pay_type="postPaid",
|
|
894
|
+
frontend_node_groups=[{
|
|
895
|
+
"cu": 8,
|
|
896
|
+
"storage_size": 100,
|
|
897
|
+
"storage_performance_level": "pl1",
|
|
898
|
+
"disk_number": 1,
|
|
899
|
+
"zone_id": "cn-hangzhou-i",
|
|
900
|
+
"spec_type": "standard",
|
|
901
|
+
"resident_node_number": 1,
|
|
902
|
+
}],
|
|
903
|
+
instance_name="t1",
|
|
904
|
+
vswitches=[{
|
|
905
|
+
"zone_id": "cn-hangzhou-i",
|
|
906
|
+
"vswitch_id": defaultujlpy_g.id,
|
|
907
|
+
}],
|
|
908
|
+
vpc_id=defaultq6pc_fe.id,
|
|
909
|
+
version="3.3",
|
|
910
|
+
run_mode="shared_data",
|
|
911
|
+
package_type="official",
|
|
912
|
+
oss_accessing_role_name="AliyunEMRStarRocksAccessingOSSRolecn",
|
|
913
|
+
admin_password="1qaz@QAZ",
|
|
914
|
+
backend_node_groups=[{
|
|
915
|
+
"cu": 8,
|
|
916
|
+
"storage_size": 200,
|
|
917
|
+
"zone_id": "cn-hangzhou-i",
|
|
918
|
+
"spec_type": "standard",
|
|
919
|
+
"resident_node_number": 3,
|
|
920
|
+
"disk_number": 1,
|
|
921
|
+
"storage_performance_level": "pl1",
|
|
922
|
+
}])
|
|
923
|
+
default = alicloud.starrocks.NodeGroup("default",
|
|
924
|
+
description="example_desc",
|
|
925
|
+
node_group_name="ng_676",
|
|
926
|
+
instance_id=defaultvjnp_m0.id,
|
|
927
|
+
spec_type="standard",
|
|
928
|
+
storage_performance_level="pl1",
|
|
929
|
+
pricing_cycle="1",
|
|
930
|
+
auto_renew=False,
|
|
931
|
+
storage_size=200,
|
|
932
|
+
duration=1,
|
|
933
|
+
pay_type="postPaid",
|
|
934
|
+
cu=8,
|
|
935
|
+
disk_number=1,
|
|
936
|
+
resident_node_number=1,
|
|
937
|
+
local_storage_instance_type="non_local_storage",
|
|
938
|
+
promotion_option_no="blank")
|
|
939
|
+
```
|
|
940
|
+
|
|
941
|
+
## Import
|
|
942
|
+
|
|
943
|
+
Star Rocks Node Group can be imported using the id, e.g.
|
|
944
|
+
|
|
945
|
+
```sh
|
|
946
|
+
$ pulumi import alicloud:starrocks/nodeGroup:NodeGroup example <instance_id>:<node_group_id>
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
:param str resource_name: The name of the resource.
|
|
950
|
+
:param NodeGroupArgs args: The arguments to use to populate this resource's properties.
|
|
951
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
952
|
+
"""
|
|
953
|
+
...
|
|
954
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
955
|
+
resource_args, opts = _utilities.get_resource_args_opts(NodeGroupArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
956
|
+
if resource_args is not None:
|
|
957
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
958
|
+
else:
|
|
959
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
960
|
+
|
|
961
|
+
def _internal_init(__self__,
|
|
962
|
+
resource_name: str,
|
|
963
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
964
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
965
|
+
cu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
966
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
967
|
+
disk_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
968
|
+
duration: Optional[pulumi.Input[_builtins.int]] = None,
|
|
969
|
+
fast_mode: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
970
|
+
instance_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
971
|
+
local_storage_instance_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
972
|
+
node_group_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
973
|
+
pay_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
974
|
+
pricing_cycle: Optional[pulumi.Input[_builtins.str]] = None,
|
|
975
|
+
promotion_option_no: Optional[pulumi.Input[_builtins.str]] = None,
|
|
976
|
+
resident_node_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
977
|
+
spec_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
978
|
+
storage_performance_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
979
|
+
storage_size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
980
|
+
__props__=None):
|
|
981
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
982
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
983
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
984
|
+
if opts.id is None:
|
|
985
|
+
if __props__ is not None:
|
|
986
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
987
|
+
__props__ = NodeGroupArgs.__new__(NodeGroupArgs)
|
|
988
|
+
|
|
989
|
+
__props__.__dict__["auto_renew"] = auto_renew
|
|
990
|
+
__props__.__dict__["cu"] = cu
|
|
991
|
+
__props__.__dict__["description"] = description
|
|
992
|
+
__props__.__dict__["disk_number"] = disk_number
|
|
993
|
+
__props__.__dict__["duration"] = duration
|
|
994
|
+
__props__.__dict__["fast_mode"] = fast_mode
|
|
995
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
996
|
+
__props__.__dict__["local_storage_instance_type"] = local_storage_instance_type
|
|
997
|
+
__props__.__dict__["node_group_name"] = node_group_name
|
|
998
|
+
__props__.__dict__["pay_type"] = pay_type
|
|
999
|
+
__props__.__dict__["pricing_cycle"] = pricing_cycle
|
|
1000
|
+
__props__.__dict__["promotion_option_no"] = promotion_option_no
|
|
1001
|
+
__props__.__dict__["resident_node_number"] = resident_node_number
|
|
1002
|
+
__props__.__dict__["spec_type"] = spec_type
|
|
1003
|
+
__props__.__dict__["storage_performance_level"] = storage_performance_level
|
|
1004
|
+
__props__.__dict__["storage_size"] = storage_size
|
|
1005
|
+
__props__.__dict__["create_time"] = None
|
|
1006
|
+
__props__.__dict__["node_group_id"] = None
|
|
1007
|
+
__props__.__dict__["region_id"] = None
|
|
1008
|
+
__props__.__dict__["status"] = None
|
|
1009
|
+
super(NodeGroup, __self__).__init__(
|
|
1010
|
+
'alicloud:starrocks/nodeGroup:NodeGroup',
|
|
1011
|
+
resource_name,
|
|
1012
|
+
__props__,
|
|
1013
|
+
opts)
|
|
1014
|
+
|
|
1015
|
+
@staticmethod
|
|
1016
|
+
def get(resource_name: str,
|
|
1017
|
+
id: pulumi.Input[str],
|
|
1018
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1019
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1020
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1021
|
+
cu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1022
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1023
|
+
disk_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1024
|
+
duration: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1025
|
+
fast_mode: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1026
|
+
instance_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1027
|
+
local_storage_instance_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1028
|
+
node_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1029
|
+
node_group_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1030
|
+
pay_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1031
|
+
pricing_cycle: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1032
|
+
promotion_option_no: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1033
|
+
region_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1034
|
+
resident_node_number: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1035
|
+
spec_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1036
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1037
|
+
storage_performance_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1038
|
+
storage_size: Optional[pulumi.Input[_builtins.int]] = None) -> 'NodeGroup':
|
|
1039
|
+
"""
|
|
1040
|
+
Get an existing NodeGroup resource's state with the given name, id, and optional extra
|
|
1041
|
+
properties used to qualify the lookup.
|
|
1042
|
+
|
|
1043
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
1044
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1045
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1046
|
+
:param pulumi.Input[_builtins.bool] auto_renew: Whether auto-renewal is enabled.
|
|
1047
|
+
|
|
1048
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
1049
|
+
:param pulumi.Input[_builtins.str] create_time: The creation time of the node group.
|
|
1050
|
+
:param pulumi.Input[_builtins.int] cu: Number of CUs. CU (Compute Unit) is the basic unit of service measurement, where 1 CU = 1 vCPU + 4 GiB memory. When SpecType is memory-optimized, 1 CU = 1 vCPU + 8 GiB memory.
|
|
1051
|
+
:param pulumi.Input[_builtins.str] description: Description of node group.
|
|
1052
|
+
:param pulumi.Input[_builtins.int] disk_number: Number of disks.
|
|
1053
|
+
:param pulumi.Input[_builtins.int] duration: Duration of node group.
|
|
1054
|
+
|
|
1055
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
1056
|
+
:param pulumi.Input[_builtins.bool] fast_mode: Whether to restart in fast restart mode. The default is false.
|
|
1057
|
+
- true: Reboots the compute node in fast restart mode. Restart computing nodes in multiple batches, restart in parallel within a batch, and execute serially between batches;
|
|
1058
|
+
- false: Restarts the compute node in rolling restart mode.
|
|
1059
|
+
|
|
1060
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
1061
|
+
:param pulumi.Input[_builtins.str] instance_id: The ID of the instance.
|
|
1062
|
+
:param pulumi.Input[_builtins.str] local_storage_instance_type: Node group local SSD instance specification. This value is only relevant when based on ECS instances and SpecType is set to local SSD/large-scale storage.
|
|
1063
|
+
:param pulumi.Input[_builtins.str] node_group_id: The ID of the node group.
|
|
1064
|
+
:param pulumi.Input[_builtins.str] node_group_name: The name of the node group.
|
|
1065
|
+
:param pulumi.Input[_builtins.str] pay_type: Payment type:
|
|
1066
|
+
- PrePaid: Subscription (prepaid).
|
|
1067
|
+
- PostPaid: Pay-as-you-go (postpaid).
|
|
1068
|
+
:param pulumi.Input[_builtins.str] pricing_cycle: Unit of purchase duration:
|
|
1069
|
+
- Month
|
|
1070
|
+
- Year
|
|
1071
|
+
|
|
1072
|
+
This is only applicable when payType is set to PrePaid.
|
|
1073
|
+
|
|
1074
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
1075
|
+
:param pulumi.Input[_builtins.str] region_id: The region ID of the node group.
|
|
1076
|
+
:param pulumi.Input[_builtins.int] resident_node_number: Number of nodes.
|
|
1077
|
+
:param pulumi.Input[_builtins.str] spec_type: Node group spec types include the following:
|
|
1078
|
+
- standard: Standard edition.
|
|
1079
|
+
- localSSD: Local SSD.
|
|
1080
|
+
- bigData: Large-scale storage.
|
|
1081
|
+
- ramEnhanced: Memory-enhanced type.
|
|
1082
|
+
- networkEnhanced: Network-enhanced type.
|
|
1083
|
+
:param pulumi.Input[_builtins.str] status: Node group status, including the following values:_FAILED: Creation failed._CONFIG: Modifying configuration._TIMEZONE: Modifying timezone._SCALING_OUT: Elastic scaling out._SCALING_IN: Elastic scaling in._OUT: Scaling out._IN: Scaling in._UP: Scaling up (upgrading configuration)._DOWN: Scaling down (downgrading configuration)._PUBLIC_NETWORK: Enabling public network._PUBLIC_NETWORK: Disabling public network._AZ: Switching availability zones.
|
|
1084
|
+
:param pulumi.Input[_builtins.str] storage_performance_level: Performance levels of the cloud disk. Includes the following values:
|
|
1085
|
+
- pl0: Maximum random read/write IOPS of a single disk is 10,000.
|
|
1086
|
+
- pl1: Maximum random read/write IOPS of a single disk is 50,000.
|
|
1087
|
+
- pl2: Maximum random read/write IOPS of a single disk is 100,000.
|
|
1088
|
+
- pl3: Maximum random read/write IOPS of a single disk is 1,000,000.
|
|
1089
|
+
:param pulumi.Input[_builtins.int] storage_size: Storage size, measured in GiB.
|
|
1090
|
+
"""
|
|
1091
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1092
|
+
|
|
1093
|
+
__props__ = _NodeGroupState.__new__(_NodeGroupState)
|
|
1094
|
+
|
|
1095
|
+
__props__.__dict__["auto_renew"] = auto_renew
|
|
1096
|
+
__props__.__dict__["create_time"] = create_time
|
|
1097
|
+
__props__.__dict__["cu"] = cu
|
|
1098
|
+
__props__.__dict__["description"] = description
|
|
1099
|
+
__props__.__dict__["disk_number"] = disk_number
|
|
1100
|
+
__props__.__dict__["duration"] = duration
|
|
1101
|
+
__props__.__dict__["fast_mode"] = fast_mode
|
|
1102
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
1103
|
+
__props__.__dict__["local_storage_instance_type"] = local_storage_instance_type
|
|
1104
|
+
__props__.__dict__["node_group_id"] = node_group_id
|
|
1105
|
+
__props__.__dict__["node_group_name"] = node_group_name
|
|
1106
|
+
__props__.__dict__["pay_type"] = pay_type
|
|
1107
|
+
__props__.__dict__["pricing_cycle"] = pricing_cycle
|
|
1108
|
+
__props__.__dict__["promotion_option_no"] = promotion_option_no
|
|
1109
|
+
__props__.__dict__["region_id"] = region_id
|
|
1110
|
+
__props__.__dict__["resident_node_number"] = resident_node_number
|
|
1111
|
+
__props__.__dict__["spec_type"] = spec_type
|
|
1112
|
+
__props__.__dict__["status"] = status
|
|
1113
|
+
__props__.__dict__["storage_performance_level"] = storage_performance_level
|
|
1114
|
+
__props__.__dict__["storage_size"] = storage_size
|
|
1115
|
+
return NodeGroup(resource_name, opts=opts, __props__=__props__)
|
|
1116
|
+
|
|
1117
|
+
@_builtins.property
|
|
1118
|
+
@pulumi.getter(name="autoRenew")
|
|
1119
|
+
def auto_renew(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1120
|
+
"""
|
|
1121
|
+
Whether auto-renewal is enabled.
|
|
1122
|
+
|
|
1123
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
1124
|
+
"""
|
|
1125
|
+
return pulumi.get(self, "auto_renew")
|
|
1126
|
+
|
|
1127
|
+
@_builtins.property
|
|
1128
|
+
@pulumi.getter(name="createTime")
|
|
1129
|
+
def create_time(self) -> pulumi.Output[_builtins.str]:
|
|
1130
|
+
"""
|
|
1131
|
+
The creation time of the node group.
|
|
1132
|
+
"""
|
|
1133
|
+
return pulumi.get(self, "create_time")
|
|
1134
|
+
|
|
1135
|
+
@_builtins.property
|
|
1136
|
+
@pulumi.getter
|
|
1137
|
+
def cu(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1138
|
+
"""
|
|
1139
|
+
Number of CUs. CU (Compute Unit) is the basic unit of service measurement, where 1 CU = 1 vCPU + 4 GiB memory. When SpecType is memory-optimized, 1 CU = 1 vCPU + 8 GiB memory.
|
|
1140
|
+
"""
|
|
1141
|
+
return pulumi.get(self, "cu")
|
|
1142
|
+
|
|
1143
|
+
@_builtins.property
|
|
1144
|
+
@pulumi.getter
|
|
1145
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1146
|
+
"""
|
|
1147
|
+
Description of node group.
|
|
1148
|
+
"""
|
|
1149
|
+
return pulumi.get(self, "description")
|
|
1150
|
+
|
|
1151
|
+
@_builtins.property
|
|
1152
|
+
@pulumi.getter(name="diskNumber")
|
|
1153
|
+
def disk_number(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1154
|
+
"""
|
|
1155
|
+
Number of disks.
|
|
1156
|
+
"""
|
|
1157
|
+
return pulumi.get(self, "disk_number")
|
|
1158
|
+
|
|
1159
|
+
@_builtins.property
|
|
1160
|
+
@pulumi.getter
|
|
1161
|
+
def duration(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1162
|
+
"""
|
|
1163
|
+
Duration of node group.
|
|
1164
|
+
|
|
1165
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
1166
|
+
"""
|
|
1167
|
+
return pulumi.get(self, "duration")
|
|
1168
|
+
|
|
1169
|
+
@_builtins.property
|
|
1170
|
+
@pulumi.getter(name="fastMode")
|
|
1171
|
+
def fast_mode(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1172
|
+
"""
|
|
1173
|
+
Whether to restart in fast restart mode. The default is false.
|
|
1174
|
+
- true: Reboots the compute node in fast restart mode. Restart computing nodes in multiple batches, restart in parallel within a batch, and execute serially between batches;
|
|
1175
|
+
- false: Restarts the compute node in rolling restart mode.
|
|
1176
|
+
|
|
1177
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
1178
|
+
"""
|
|
1179
|
+
return pulumi.get(self, "fast_mode")
|
|
1180
|
+
|
|
1181
|
+
@_builtins.property
|
|
1182
|
+
@pulumi.getter(name="instanceId")
|
|
1183
|
+
def instance_id(self) -> pulumi.Output[_builtins.str]:
|
|
1184
|
+
"""
|
|
1185
|
+
The ID of the instance.
|
|
1186
|
+
"""
|
|
1187
|
+
return pulumi.get(self, "instance_id")
|
|
1188
|
+
|
|
1189
|
+
@_builtins.property
|
|
1190
|
+
@pulumi.getter(name="localStorageInstanceType")
|
|
1191
|
+
def local_storage_instance_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1192
|
+
"""
|
|
1193
|
+
Node group local SSD instance specification. This value is only relevant when based on ECS instances and SpecType is set to local SSD/large-scale storage.
|
|
1194
|
+
"""
|
|
1195
|
+
return pulumi.get(self, "local_storage_instance_type")
|
|
1196
|
+
|
|
1197
|
+
@_builtins.property
|
|
1198
|
+
@pulumi.getter(name="nodeGroupId")
|
|
1199
|
+
def node_group_id(self) -> pulumi.Output[_builtins.str]:
|
|
1200
|
+
"""
|
|
1201
|
+
The ID of the node group.
|
|
1202
|
+
"""
|
|
1203
|
+
return pulumi.get(self, "node_group_id")
|
|
1204
|
+
|
|
1205
|
+
@_builtins.property
|
|
1206
|
+
@pulumi.getter(name="nodeGroupName")
|
|
1207
|
+
def node_group_name(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1208
|
+
"""
|
|
1209
|
+
The name of the node group.
|
|
1210
|
+
"""
|
|
1211
|
+
return pulumi.get(self, "node_group_name")
|
|
1212
|
+
|
|
1213
|
+
@_builtins.property
|
|
1214
|
+
@pulumi.getter(name="payType")
|
|
1215
|
+
def pay_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1216
|
+
"""
|
|
1217
|
+
Payment type:
|
|
1218
|
+
- PrePaid: Subscription (prepaid).
|
|
1219
|
+
- PostPaid: Pay-as-you-go (postpaid).
|
|
1220
|
+
"""
|
|
1221
|
+
return pulumi.get(self, "pay_type")
|
|
1222
|
+
|
|
1223
|
+
@_builtins.property
|
|
1224
|
+
@pulumi.getter(name="pricingCycle")
|
|
1225
|
+
def pricing_cycle(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1226
|
+
"""
|
|
1227
|
+
Unit of purchase duration:
|
|
1228
|
+
- Month
|
|
1229
|
+
- Year
|
|
1230
|
+
|
|
1231
|
+
This is only applicable when payType is set to PrePaid.
|
|
1232
|
+
|
|
1233
|
+
> **NOTE:** The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
|
|
1234
|
+
"""
|
|
1235
|
+
return pulumi.get(self, "pricing_cycle")
|
|
1236
|
+
|
|
1237
|
+
@_builtins.property
|
|
1238
|
+
@pulumi.getter(name="promotionOptionNo")
|
|
1239
|
+
def promotion_option_no(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1240
|
+
return pulumi.get(self, "promotion_option_no")
|
|
1241
|
+
|
|
1242
|
+
@_builtins.property
|
|
1243
|
+
@pulumi.getter(name="regionId")
|
|
1244
|
+
def region_id(self) -> pulumi.Output[_builtins.str]:
|
|
1245
|
+
"""
|
|
1246
|
+
The region ID of the node group.
|
|
1247
|
+
"""
|
|
1248
|
+
return pulumi.get(self, "region_id")
|
|
1249
|
+
|
|
1250
|
+
@_builtins.property
|
|
1251
|
+
@pulumi.getter(name="residentNodeNumber")
|
|
1252
|
+
def resident_node_number(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1253
|
+
"""
|
|
1254
|
+
Number of nodes.
|
|
1255
|
+
"""
|
|
1256
|
+
return pulumi.get(self, "resident_node_number")
|
|
1257
|
+
|
|
1258
|
+
@_builtins.property
|
|
1259
|
+
@pulumi.getter(name="specType")
|
|
1260
|
+
def spec_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1261
|
+
"""
|
|
1262
|
+
Node group spec types include the following:
|
|
1263
|
+
- standard: Standard edition.
|
|
1264
|
+
- localSSD: Local SSD.
|
|
1265
|
+
- bigData: Large-scale storage.
|
|
1266
|
+
- ramEnhanced: Memory-enhanced type.
|
|
1267
|
+
- networkEnhanced: Network-enhanced type.
|
|
1268
|
+
"""
|
|
1269
|
+
return pulumi.get(self, "spec_type")
|
|
1270
|
+
|
|
1271
|
+
@_builtins.property
|
|
1272
|
+
@pulumi.getter
|
|
1273
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
1274
|
+
"""
|
|
1275
|
+
Node group status, including the following values:_FAILED: Creation failed._CONFIG: Modifying configuration._TIMEZONE: Modifying timezone._SCALING_OUT: Elastic scaling out._SCALING_IN: Elastic scaling in._OUT: Scaling out._IN: Scaling in._UP: Scaling up (upgrading configuration)._DOWN: Scaling down (downgrading configuration)._PUBLIC_NETWORK: Enabling public network._PUBLIC_NETWORK: Disabling public network._AZ: Switching availability zones.
|
|
1276
|
+
"""
|
|
1277
|
+
return pulumi.get(self, "status")
|
|
1278
|
+
|
|
1279
|
+
@_builtins.property
|
|
1280
|
+
@pulumi.getter(name="storagePerformanceLevel")
|
|
1281
|
+
def storage_performance_level(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1282
|
+
"""
|
|
1283
|
+
Performance levels of the cloud disk. Includes the following values:
|
|
1284
|
+
- pl0: Maximum random read/write IOPS of a single disk is 10,000.
|
|
1285
|
+
- pl1: Maximum random read/write IOPS of a single disk is 50,000.
|
|
1286
|
+
- pl2: Maximum random read/write IOPS of a single disk is 100,000.
|
|
1287
|
+
- pl3: Maximum random read/write IOPS of a single disk is 1,000,000.
|
|
1288
|
+
"""
|
|
1289
|
+
return pulumi.get(self, "storage_performance_level")
|
|
1290
|
+
|
|
1291
|
+
@_builtins.property
|
|
1292
|
+
@pulumi.getter(name="storageSize")
|
|
1293
|
+
def storage_size(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1294
|
+
"""
|
|
1295
|
+
Storage size, measured in GiB.
|
|
1296
|
+
"""
|
|
1297
|
+
return pulumi.get(self, "storage_size")
|
|
1298
|
+
|