pulumi-alicloud 3.70.0a1734412500__py3-none-any.whl → 3.71.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +35 -0
- pulumi_alicloud/arms/_inputs.py +185 -0
- pulumi_alicloud/arms/dispatch_rule.py +70 -1
- pulumi_alicloud/arms/get_dispatch_rules.py +2 -2
- pulumi_alicloud/arms/get_prometheis.py +2 -2
- pulumi_alicloud/arms/get_remote_writes.py +2 -2
- pulumi_alicloud/arms/outputs.py +258 -11
- pulumi_alicloud/cen/private_zone.py +73 -69
- pulumi_alicloud/cen/transit_router_multicast_domain_peer_member.py +2 -2
- pulumi_alicloud/cfg/rule.py +2 -2
- pulumi_alicloud/ecs/ecs_snapshot.py +65 -9
- pulumi_alicloud/ecs/get_instance_types.py +1 -1
- pulumi_alicloud/ecs/outputs.py +78 -1
- pulumi_alicloud/ecs/security_group.py +161 -81
- pulumi_alicloud/ecs/snapshot.py +40 -0
- pulumi_alicloud/eds/ram_directory.py +4 -0
- pulumi_alicloud/ess/_inputs.py +54 -0
- pulumi_alicloud/ess/outputs.py +51 -0
- pulumi_alicloud/ess/scaling_configuration.py +47 -0
- pulumi_alicloud/ess/scaling_group.py +47 -0
- pulumi_alicloud/expressconnect/__init__.py +1 -0
- pulumi_alicloud/expressconnect/router_grant_association.py +477 -0
- pulumi_alicloud/fc/v3_trigger.py +96 -0
- pulumi_alicloud/kms/_inputs.py +5 -5
- pulumi_alicloud/kms/outputs.py +3 -3
- pulumi_alicloud/kvstore/backup_policy.py +32 -24
- pulumi_alicloud/live/__init__.py +8 -0
- pulumi_alicloud/live/caster.py +1343 -0
- pulumi_alicloud/nas/access_group.py +10 -2
- pulumi_alicloud/nas/access_point.py +10 -2
- pulumi_alicloud/nas/fileset.py +2 -2
- pulumi_alicloud/oos/execution.py +18 -10
- pulumi_alicloud/oos/template.py +14 -6
- pulumi_alicloud/pai/__init__.py +1 -0
- pulumi_alicloud/pai/service.py +501 -0
- pulumi_alicloud/polardb/cluster.py +47 -0
- pulumi_alicloud/privatelink/vpc_endpoint.py +143 -69
- pulumi_alicloud/privatelink/vpc_endpoint_service.py +47 -0
- pulumi_alicloud/privatelink/vpc_endpoint_service_resource.py +2 -2
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rdc/get_organizations.py +12 -2
- pulumi_alicloud/rdc/organization.py +6 -2
- pulumi_alicloud/redis/tair_instance.py +47 -0
- pulumi_alicloud/vpc/__init__.py +1 -0
- pulumi_alicloud/vpc/ipam_ipam_pool_allocation.py +545 -0
- {pulumi_alicloud-3.70.0a1734412500.dist-info → pulumi_alicloud-3.71.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.70.0a1734412500.dist-info → pulumi_alicloud-3.71.0.dist-info}/RECORD +49 -44
- {pulumi_alicloud-3.70.0a1734412500.dist-info → pulumi_alicloud-3.71.0.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.70.0a1734412500.dist-info → pulumi_alicloud-3.71.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
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__ = ['ServiceArgs', 'Service']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class ServiceArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
service_config: pulumi.Input[str],
|
|
23
|
+
develop: Optional[pulumi.Input[str]] = None,
|
|
24
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
25
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
workspace_id: Optional[pulumi.Input[str]] = None):
|
|
27
|
+
"""
|
|
28
|
+
The set of arguments for constructing a Service resource.
|
|
29
|
+
:param pulumi.Input[str] service_config: Service configuration information. Please refer to https://www.alibabacloud.com/help/en/pai/user-guide/parameters-of-model-services
|
|
30
|
+
:param pulumi.Input[str] develop: Whether to enter the development mode.
|
|
31
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Service Tag.
|
|
32
|
+
:param pulumi.Input[str] status: Service Current Status, valid values `Running`, `Stopped`.
|
|
33
|
+
:param pulumi.Input[str] workspace_id: Workspace id
|
|
34
|
+
"""
|
|
35
|
+
pulumi.set(__self__, "service_config", service_config)
|
|
36
|
+
if develop is not None:
|
|
37
|
+
pulumi.set(__self__, "develop", develop)
|
|
38
|
+
if labels is not None:
|
|
39
|
+
pulumi.set(__self__, "labels", labels)
|
|
40
|
+
if status is not None:
|
|
41
|
+
pulumi.set(__self__, "status", status)
|
|
42
|
+
if workspace_id is not None:
|
|
43
|
+
pulumi.set(__self__, "workspace_id", workspace_id)
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
@pulumi.getter(name="serviceConfig")
|
|
47
|
+
def service_config(self) -> pulumi.Input[str]:
|
|
48
|
+
"""
|
|
49
|
+
Service configuration information. Please refer to https://www.alibabacloud.com/help/en/pai/user-guide/parameters-of-model-services
|
|
50
|
+
"""
|
|
51
|
+
return pulumi.get(self, "service_config")
|
|
52
|
+
|
|
53
|
+
@service_config.setter
|
|
54
|
+
def service_config(self, value: pulumi.Input[str]):
|
|
55
|
+
pulumi.set(self, "service_config", value)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
@pulumi.getter
|
|
59
|
+
def develop(self) -> Optional[pulumi.Input[str]]:
|
|
60
|
+
"""
|
|
61
|
+
Whether to enter the development mode.
|
|
62
|
+
"""
|
|
63
|
+
return pulumi.get(self, "develop")
|
|
64
|
+
|
|
65
|
+
@develop.setter
|
|
66
|
+
def develop(self, value: Optional[pulumi.Input[str]]):
|
|
67
|
+
pulumi.set(self, "develop", value)
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter
|
|
71
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
72
|
+
"""
|
|
73
|
+
Service Tag.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "labels")
|
|
76
|
+
|
|
77
|
+
@labels.setter
|
|
78
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
79
|
+
pulumi.set(self, "labels", value)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter
|
|
83
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
84
|
+
"""
|
|
85
|
+
Service Current Status, valid values `Running`, `Stopped`.
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "status")
|
|
88
|
+
|
|
89
|
+
@status.setter
|
|
90
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
91
|
+
pulumi.set(self, "status", value)
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
@pulumi.getter(name="workspaceId")
|
|
95
|
+
def workspace_id(self) -> Optional[pulumi.Input[str]]:
|
|
96
|
+
"""
|
|
97
|
+
Workspace id
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "workspace_id")
|
|
100
|
+
|
|
101
|
+
@workspace_id.setter
|
|
102
|
+
def workspace_id(self, value: Optional[pulumi.Input[str]]):
|
|
103
|
+
pulumi.set(self, "workspace_id", value)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
@pulumi.input_type
|
|
107
|
+
class _ServiceState:
|
|
108
|
+
def __init__(__self__, *,
|
|
109
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
110
|
+
develop: Optional[pulumi.Input[str]] = None,
|
|
111
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
112
|
+
region_id: Optional[pulumi.Input[str]] = None,
|
|
113
|
+
service_config: Optional[pulumi.Input[str]] = None,
|
|
114
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
115
|
+
workspace_id: Optional[pulumi.Input[str]] = None):
|
|
116
|
+
"""
|
|
117
|
+
Input properties used for looking up and filtering Service resources.
|
|
118
|
+
:param pulumi.Input[str] create_time: Creation time of the service
|
|
119
|
+
:param pulumi.Input[str] develop: Whether to enter the development mode.
|
|
120
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Service Tag.
|
|
121
|
+
:param pulumi.Input[str] region_id: The region ID of the resource
|
|
122
|
+
:param pulumi.Input[str] service_config: Service configuration information. Please refer to https://www.alibabacloud.com/help/en/pai/user-guide/parameters-of-model-services
|
|
123
|
+
:param pulumi.Input[str] status: Service Current Status, valid values `Running`, `Stopped`.
|
|
124
|
+
:param pulumi.Input[str] workspace_id: Workspace id
|
|
125
|
+
"""
|
|
126
|
+
if create_time is not None:
|
|
127
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
128
|
+
if develop is not None:
|
|
129
|
+
pulumi.set(__self__, "develop", develop)
|
|
130
|
+
if labels is not None:
|
|
131
|
+
pulumi.set(__self__, "labels", labels)
|
|
132
|
+
if region_id is not None:
|
|
133
|
+
pulumi.set(__self__, "region_id", region_id)
|
|
134
|
+
if service_config is not None:
|
|
135
|
+
pulumi.set(__self__, "service_config", service_config)
|
|
136
|
+
if status is not None:
|
|
137
|
+
pulumi.set(__self__, "status", status)
|
|
138
|
+
if workspace_id is not None:
|
|
139
|
+
pulumi.set(__self__, "workspace_id", workspace_id)
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
@pulumi.getter(name="createTime")
|
|
143
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
144
|
+
"""
|
|
145
|
+
Creation time of the service
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "create_time")
|
|
148
|
+
|
|
149
|
+
@create_time.setter
|
|
150
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
151
|
+
pulumi.set(self, "create_time", value)
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter
|
|
155
|
+
def develop(self) -> Optional[pulumi.Input[str]]:
|
|
156
|
+
"""
|
|
157
|
+
Whether to enter the development mode.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "develop")
|
|
160
|
+
|
|
161
|
+
@develop.setter
|
|
162
|
+
def develop(self, value: Optional[pulumi.Input[str]]):
|
|
163
|
+
pulumi.set(self, "develop", value)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
168
|
+
"""
|
|
169
|
+
Service Tag.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "labels")
|
|
172
|
+
|
|
173
|
+
@labels.setter
|
|
174
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
175
|
+
pulumi.set(self, "labels", value)
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter(name="regionId")
|
|
179
|
+
def region_id(self) -> Optional[pulumi.Input[str]]:
|
|
180
|
+
"""
|
|
181
|
+
The region ID of the resource
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "region_id")
|
|
184
|
+
|
|
185
|
+
@region_id.setter
|
|
186
|
+
def region_id(self, value: Optional[pulumi.Input[str]]):
|
|
187
|
+
pulumi.set(self, "region_id", value)
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
@pulumi.getter(name="serviceConfig")
|
|
191
|
+
def service_config(self) -> Optional[pulumi.Input[str]]:
|
|
192
|
+
"""
|
|
193
|
+
Service configuration information. Please refer to https://www.alibabacloud.com/help/en/pai/user-guide/parameters-of-model-services
|
|
194
|
+
"""
|
|
195
|
+
return pulumi.get(self, "service_config")
|
|
196
|
+
|
|
197
|
+
@service_config.setter
|
|
198
|
+
def service_config(self, value: Optional[pulumi.Input[str]]):
|
|
199
|
+
pulumi.set(self, "service_config", value)
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter
|
|
203
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
204
|
+
"""
|
|
205
|
+
Service Current Status, valid values `Running`, `Stopped`.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "status")
|
|
208
|
+
|
|
209
|
+
@status.setter
|
|
210
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
211
|
+
pulumi.set(self, "status", value)
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
@pulumi.getter(name="workspaceId")
|
|
215
|
+
def workspace_id(self) -> Optional[pulumi.Input[str]]:
|
|
216
|
+
"""
|
|
217
|
+
Workspace id
|
|
218
|
+
"""
|
|
219
|
+
return pulumi.get(self, "workspace_id")
|
|
220
|
+
|
|
221
|
+
@workspace_id.setter
|
|
222
|
+
def workspace_id(self, value: Optional[pulumi.Input[str]]):
|
|
223
|
+
pulumi.set(self, "workspace_id", value)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
class Service(pulumi.CustomResource):
|
|
227
|
+
@overload
|
|
228
|
+
def __init__(__self__,
|
|
229
|
+
resource_name: str,
|
|
230
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
231
|
+
develop: Optional[pulumi.Input[str]] = None,
|
|
232
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
233
|
+
service_config: Optional[pulumi.Input[str]] = None,
|
|
234
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
235
|
+
workspace_id: Optional[pulumi.Input[str]] = None,
|
|
236
|
+
__props__=None):
|
|
237
|
+
"""
|
|
238
|
+
Provides a PAI Service resource.
|
|
239
|
+
|
|
240
|
+
Eas service instance.
|
|
241
|
+
|
|
242
|
+
For information about PAI Service and how to use it, see [What is Service](https://www.alibabacloud.com/help/en/).
|
|
243
|
+
|
|
244
|
+
> **NOTE:** Available since v1.238.0.
|
|
245
|
+
|
|
246
|
+
## Example Usage
|
|
247
|
+
|
|
248
|
+
Basic Usage
|
|
249
|
+
|
|
250
|
+
```python
|
|
251
|
+
import pulumi
|
|
252
|
+
import json
|
|
253
|
+
import pulumi_alicloud as alicloud
|
|
254
|
+
|
|
255
|
+
config = pulumi.Config()
|
|
256
|
+
name = config.get("name")
|
|
257
|
+
if name is None:
|
|
258
|
+
name = "terraform-example"
|
|
259
|
+
default = alicloud.pai.Service("default",
|
|
260
|
+
labels={
|
|
261
|
+
"0": json.dumps({
|
|
262
|
+
"LabelKey": "examplekey",
|
|
263
|
+
"LabelValue": "examplevalue",
|
|
264
|
+
}),
|
|
265
|
+
},
|
|
266
|
+
develop="false",
|
|
267
|
+
service_config=json.dumps({
|
|
268
|
+
"metadata": {
|
|
269
|
+
"cpu": 1,
|
|
270
|
+
"gpu": 0,
|
|
271
|
+
"instance": 1,
|
|
272
|
+
"memory": 2000,
|
|
273
|
+
"name": "tfexample",
|
|
274
|
+
"rpc": {
|
|
275
|
+
"keepalive": 70000,
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
"model_path": "http://eas-data.oss-cn-shanghai.aliyuncs.com/processors/echo_processor_release.tar.gz",
|
|
279
|
+
"processor_entry": "libecho.so",
|
|
280
|
+
"processor_path": "http://eas-data.oss-cn-shanghai.aliyuncs.com/processors/echo_processor_release.tar.gz",
|
|
281
|
+
"processor_type": "cpp",
|
|
282
|
+
}))
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
## Import
|
|
286
|
+
|
|
287
|
+
PAI Service can be imported using the id, e.g.
|
|
288
|
+
|
|
289
|
+
```sh
|
|
290
|
+
$ pulumi import alicloud:pai/service:Service example <id>
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
:param str resource_name: The name of the resource.
|
|
294
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
295
|
+
:param pulumi.Input[str] develop: Whether to enter the development mode.
|
|
296
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Service Tag.
|
|
297
|
+
:param pulumi.Input[str] service_config: Service configuration information. Please refer to https://www.alibabacloud.com/help/en/pai/user-guide/parameters-of-model-services
|
|
298
|
+
:param pulumi.Input[str] status: Service Current Status, valid values `Running`, `Stopped`.
|
|
299
|
+
:param pulumi.Input[str] workspace_id: Workspace id
|
|
300
|
+
"""
|
|
301
|
+
...
|
|
302
|
+
@overload
|
|
303
|
+
def __init__(__self__,
|
|
304
|
+
resource_name: str,
|
|
305
|
+
args: ServiceArgs,
|
|
306
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
307
|
+
"""
|
|
308
|
+
Provides a PAI Service resource.
|
|
309
|
+
|
|
310
|
+
Eas service instance.
|
|
311
|
+
|
|
312
|
+
For information about PAI Service and how to use it, see [What is Service](https://www.alibabacloud.com/help/en/).
|
|
313
|
+
|
|
314
|
+
> **NOTE:** Available since v1.238.0.
|
|
315
|
+
|
|
316
|
+
## Example Usage
|
|
317
|
+
|
|
318
|
+
Basic Usage
|
|
319
|
+
|
|
320
|
+
```python
|
|
321
|
+
import pulumi
|
|
322
|
+
import json
|
|
323
|
+
import pulumi_alicloud as alicloud
|
|
324
|
+
|
|
325
|
+
config = pulumi.Config()
|
|
326
|
+
name = config.get("name")
|
|
327
|
+
if name is None:
|
|
328
|
+
name = "terraform-example"
|
|
329
|
+
default = alicloud.pai.Service("default",
|
|
330
|
+
labels={
|
|
331
|
+
"0": json.dumps({
|
|
332
|
+
"LabelKey": "examplekey",
|
|
333
|
+
"LabelValue": "examplevalue",
|
|
334
|
+
}),
|
|
335
|
+
},
|
|
336
|
+
develop="false",
|
|
337
|
+
service_config=json.dumps({
|
|
338
|
+
"metadata": {
|
|
339
|
+
"cpu": 1,
|
|
340
|
+
"gpu": 0,
|
|
341
|
+
"instance": 1,
|
|
342
|
+
"memory": 2000,
|
|
343
|
+
"name": "tfexample",
|
|
344
|
+
"rpc": {
|
|
345
|
+
"keepalive": 70000,
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
"model_path": "http://eas-data.oss-cn-shanghai.aliyuncs.com/processors/echo_processor_release.tar.gz",
|
|
349
|
+
"processor_entry": "libecho.so",
|
|
350
|
+
"processor_path": "http://eas-data.oss-cn-shanghai.aliyuncs.com/processors/echo_processor_release.tar.gz",
|
|
351
|
+
"processor_type": "cpp",
|
|
352
|
+
}))
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
## Import
|
|
356
|
+
|
|
357
|
+
PAI Service can be imported using the id, e.g.
|
|
358
|
+
|
|
359
|
+
```sh
|
|
360
|
+
$ pulumi import alicloud:pai/service:Service example <id>
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
:param str resource_name: The name of the resource.
|
|
364
|
+
:param ServiceArgs args: The arguments to use to populate this resource's properties.
|
|
365
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
366
|
+
"""
|
|
367
|
+
...
|
|
368
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
369
|
+
resource_args, opts = _utilities.get_resource_args_opts(ServiceArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
370
|
+
if resource_args is not None:
|
|
371
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
372
|
+
else:
|
|
373
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
374
|
+
|
|
375
|
+
def _internal_init(__self__,
|
|
376
|
+
resource_name: str,
|
|
377
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
378
|
+
develop: Optional[pulumi.Input[str]] = None,
|
|
379
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
380
|
+
service_config: Optional[pulumi.Input[str]] = None,
|
|
381
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
382
|
+
workspace_id: Optional[pulumi.Input[str]] = None,
|
|
383
|
+
__props__=None):
|
|
384
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
385
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
386
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
387
|
+
if opts.id is None:
|
|
388
|
+
if __props__ is not None:
|
|
389
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
390
|
+
__props__ = ServiceArgs.__new__(ServiceArgs)
|
|
391
|
+
|
|
392
|
+
__props__.__dict__["develop"] = develop
|
|
393
|
+
__props__.__dict__["labels"] = labels
|
|
394
|
+
if service_config is None and not opts.urn:
|
|
395
|
+
raise TypeError("Missing required property 'service_config'")
|
|
396
|
+
__props__.__dict__["service_config"] = service_config
|
|
397
|
+
__props__.__dict__["status"] = status
|
|
398
|
+
__props__.__dict__["workspace_id"] = workspace_id
|
|
399
|
+
__props__.__dict__["create_time"] = None
|
|
400
|
+
__props__.__dict__["region_id"] = None
|
|
401
|
+
super(Service, __self__).__init__(
|
|
402
|
+
'alicloud:pai/service:Service',
|
|
403
|
+
resource_name,
|
|
404
|
+
__props__,
|
|
405
|
+
opts)
|
|
406
|
+
|
|
407
|
+
@staticmethod
|
|
408
|
+
def get(resource_name: str,
|
|
409
|
+
id: pulumi.Input[str],
|
|
410
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
411
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
412
|
+
develop: Optional[pulumi.Input[str]] = None,
|
|
413
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
414
|
+
region_id: Optional[pulumi.Input[str]] = None,
|
|
415
|
+
service_config: Optional[pulumi.Input[str]] = None,
|
|
416
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
417
|
+
workspace_id: Optional[pulumi.Input[str]] = None) -> 'Service':
|
|
418
|
+
"""
|
|
419
|
+
Get an existing Service resource's state with the given name, id, and optional extra
|
|
420
|
+
properties used to qualify the lookup.
|
|
421
|
+
|
|
422
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
423
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
424
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
425
|
+
:param pulumi.Input[str] create_time: Creation time of the service
|
|
426
|
+
:param pulumi.Input[str] develop: Whether to enter the development mode.
|
|
427
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Service Tag.
|
|
428
|
+
:param pulumi.Input[str] region_id: The region ID of the resource
|
|
429
|
+
:param pulumi.Input[str] service_config: Service configuration information. Please refer to https://www.alibabacloud.com/help/en/pai/user-guide/parameters-of-model-services
|
|
430
|
+
:param pulumi.Input[str] status: Service Current Status, valid values `Running`, `Stopped`.
|
|
431
|
+
:param pulumi.Input[str] workspace_id: Workspace id
|
|
432
|
+
"""
|
|
433
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
434
|
+
|
|
435
|
+
__props__ = _ServiceState.__new__(_ServiceState)
|
|
436
|
+
|
|
437
|
+
__props__.__dict__["create_time"] = create_time
|
|
438
|
+
__props__.__dict__["develop"] = develop
|
|
439
|
+
__props__.__dict__["labels"] = labels
|
|
440
|
+
__props__.__dict__["region_id"] = region_id
|
|
441
|
+
__props__.__dict__["service_config"] = service_config
|
|
442
|
+
__props__.__dict__["status"] = status
|
|
443
|
+
__props__.__dict__["workspace_id"] = workspace_id
|
|
444
|
+
return Service(resource_name, opts=opts, __props__=__props__)
|
|
445
|
+
|
|
446
|
+
@property
|
|
447
|
+
@pulumi.getter(name="createTime")
|
|
448
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
449
|
+
"""
|
|
450
|
+
Creation time of the service
|
|
451
|
+
"""
|
|
452
|
+
return pulumi.get(self, "create_time")
|
|
453
|
+
|
|
454
|
+
@property
|
|
455
|
+
@pulumi.getter
|
|
456
|
+
def develop(self) -> pulumi.Output[Optional[str]]:
|
|
457
|
+
"""
|
|
458
|
+
Whether to enter the development mode.
|
|
459
|
+
"""
|
|
460
|
+
return pulumi.get(self, "develop")
|
|
461
|
+
|
|
462
|
+
@property
|
|
463
|
+
@pulumi.getter
|
|
464
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
465
|
+
"""
|
|
466
|
+
Service Tag.
|
|
467
|
+
"""
|
|
468
|
+
return pulumi.get(self, "labels")
|
|
469
|
+
|
|
470
|
+
@property
|
|
471
|
+
@pulumi.getter(name="regionId")
|
|
472
|
+
def region_id(self) -> pulumi.Output[str]:
|
|
473
|
+
"""
|
|
474
|
+
The region ID of the resource
|
|
475
|
+
"""
|
|
476
|
+
return pulumi.get(self, "region_id")
|
|
477
|
+
|
|
478
|
+
@property
|
|
479
|
+
@pulumi.getter(name="serviceConfig")
|
|
480
|
+
def service_config(self) -> pulumi.Output[str]:
|
|
481
|
+
"""
|
|
482
|
+
Service configuration information. Please refer to https://www.alibabacloud.com/help/en/pai/user-guide/parameters-of-model-services
|
|
483
|
+
"""
|
|
484
|
+
return pulumi.get(self, "service_config")
|
|
485
|
+
|
|
486
|
+
@property
|
|
487
|
+
@pulumi.getter
|
|
488
|
+
def status(self) -> pulumi.Output[str]:
|
|
489
|
+
"""
|
|
490
|
+
Service Current Status, valid values `Running`, `Stopped`.
|
|
491
|
+
"""
|
|
492
|
+
return pulumi.get(self, "status")
|
|
493
|
+
|
|
494
|
+
@property
|
|
495
|
+
@pulumi.getter(name="workspaceId")
|
|
496
|
+
def workspace_id(self) -> pulumi.Output[Optional[str]]:
|
|
497
|
+
"""
|
|
498
|
+
Workspace id
|
|
499
|
+
"""
|
|
500
|
+
return pulumi.get(self, "workspace_id")
|
|
501
|
+
|
|
@@ -79,6 +79,7 @@ class ClusterArgs:
|
|
|
79
79
|
storage_pay_type: Optional[pulumi.Input[str]] = None,
|
|
80
80
|
storage_space: Optional[pulumi.Input[int]] = None,
|
|
81
81
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
82
|
+
strict_consistency: Optional[pulumi.Input[str]] = None,
|
|
82
83
|
sub_category: Optional[pulumi.Input[str]] = None,
|
|
83
84
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
84
85
|
target_db_revision_version_code: Optional[pulumi.Input[str]] = None,
|
|
@@ -177,6 +178,7 @@ class ClusterArgs:
|
|
|
177
178
|
> **NOTE:** Valid values for PolarDB for MySQL Standard Edition: 20 to 32000. It is valid when pay_type are `PrePaid` ,`PostPaid`.
|
|
178
179
|
> **NOTE:** Valid values for PolarDB for MySQL Enterprise Edition: 50 to 100000.It is valid when pay_type is `PrePaid`.
|
|
179
180
|
:param pulumi.Input[str] storage_type: The storage type of the cluster. Enterprise storage type values are `PSL5`, `PSL4`. The standard version storage type values are `ESSDPL1`, `ESSDPL2`, `ESSDPL3`, `ESSDPL0`, `ESSDAUTOPL`. The standard version only supports MySQL and PostgreSQL.
|
|
181
|
+
:param pulumi.Input[str] strict_consistency: Whether the cluster has enabled strong data consistency across multiple zones. Valid values are `ON`, `OFF`. Available parameters can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1)
|
|
180
182
|
:param pulumi.Input[str] sub_category: The category of the cluster. Valid values are `Exclusive`, `General`. Only MySQL supports.
|
|
181
183
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
182
184
|
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
|
|
@@ -303,6 +305,8 @@ class ClusterArgs:
|
|
|
303
305
|
pulumi.set(__self__, "storage_space", storage_space)
|
|
304
306
|
if storage_type is not None:
|
|
305
307
|
pulumi.set(__self__, "storage_type", storage_type)
|
|
308
|
+
if strict_consistency is not None:
|
|
309
|
+
pulumi.set(__self__, "strict_consistency", strict_consistency)
|
|
306
310
|
if sub_category is not None:
|
|
307
311
|
pulumi.set(__self__, "sub_category", sub_category)
|
|
308
312
|
if tags is not None:
|
|
@@ -1046,6 +1050,18 @@ class ClusterArgs:
|
|
|
1046
1050
|
def storage_type(self, value: Optional[pulumi.Input[str]]):
|
|
1047
1051
|
pulumi.set(self, "storage_type", value)
|
|
1048
1052
|
|
|
1053
|
+
@property
|
|
1054
|
+
@pulumi.getter(name="strictConsistency")
|
|
1055
|
+
def strict_consistency(self) -> Optional[pulumi.Input[str]]:
|
|
1056
|
+
"""
|
|
1057
|
+
Whether the cluster has enabled strong data consistency across multiple zones. Valid values are `ON`, `OFF`. Available parameters can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1)
|
|
1058
|
+
"""
|
|
1059
|
+
return pulumi.get(self, "strict_consistency")
|
|
1060
|
+
|
|
1061
|
+
@strict_consistency.setter
|
|
1062
|
+
def strict_consistency(self, value: Optional[pulumi.Input[str]]):
|
|
1063
|
+
pulumi.set(self, "strict_consistency", value)
|
|
1064
|
+
|
|
1049
1065
|
@property
|
|
1050
1066
|
@pulumi.getter(name="subCategory")
|
|
1051
1067
|
def sub_category(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -1213,6 +1229,7 @@ class _ClusterState:
|
|
|
1213
1229
|
storage_pay_type: Optional[pulumi.Input[str]] = None,
|
|
1214
1230
|
storage_space: Optional[pulumi.Input[int]] = None,
|
|
1215
1231
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
1232
|
+
strict_consistency: Optional[pulumi.Input[str]] = None,
|
|
1216
1233
|
sub_category: Optional[pulumi.Input[str]] = None,
|
|
1217
1234
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1218
1235
|
target_db_revision_version_code: Optional[pulumi.Input[str]] = None,
|
|
@@ -1317,6 +1334,7 @@ class _ClusterState:
|
|
|
1317
1334
|
> **NOTE:** Valid values for PolarDB for MySQL Standard Edition: 20 to 32000. It is valid when pay_type are `PrePaid` ,`PostPaid`.
|
|
1318
1335
|
> **NOTE:** Valid values for PolarDB for MySQL Enterprise Edition: 50 to 100000.It is valid when pay_type is `PrePaid`.
|
|
1319
1336
|
:param pulumi.Input[str] storage_type: The storage type of the cluster. Enterprise storage type values are `PSL5`, `PSL4`. The standard version storage type values are `ESSDPL1`, `ESSDPL2`, `ESSDPL3`, `ESSDPL0`, `ESSDAUTOPL`. The standard version only supports MySQL and PostgreSQL.
|
|
1337
|
+
:param pulumi.Input[str] strict_consistency: Whether the cluster has enabled strong data consistency across multiple zones. Valid values are `ON`, `OFF`. Available parameters can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1)
|
|
1320
1338
|
:param pulumi.Input[str] sub_category: The category of the cluster. Valid values are `Exclusive`, `General`. Only MySQL supports.
|
|
1321
1339
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
1322
1340
|
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
|
|
@@ -1459,6 +1477,8 @@ class _ClusterState:
|
|
|
1459
1477
|
pulumi.set(__self__, "storage_space", storage_space)
|
|
1460
1478
|
if storage_type is not None:
|
|
1461
1479
|
pulumi.set(__self__, "storage_type", storage_type)
|
|
1480
|
+
if strict_consistency is not None:
|
|
1481
|
+
pulumi.set(__self__, "strict_consistency", strict_consistency)
|
|
1462
1482
|
if sub_category is not None:
|
|
1463
1483
|
pulumi.set(__self__, "sub_category", sub_category)
|
|
1464
1484
|
if tags is not None:
|
|
@@ -2264,6 +2284,18 @@ class _ClusterState:
|
|
|
2264
2284
|
def storage_type(self, value: Optional[pulumi.Input[str]]):
|
|
2265
2285
|
pulumi.set(self, "storage_type", value)
|
|
2266
2286
|
|
|
2287
|
+
@property
|
|
2288
|
+
@pulumi.getter(name="strictConsistency")
|
|
2289
|
+
def strict_consistency(self) -> Optional[pulumi.Input[str]]:
|
|
2290
|
+
"""
|
|
2291
|
+
Whether the cluster has enabled strong data consistency across multiple zones. Valid values are `ON`, `OFF`. Available parameters can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1)
|
|
2292
|
+
"""
|
|
2293
|
+
return pulumi.get(self, "strict_consistency")
|
|
2294
|
+
|
|
2295
|
+
@strict_consistency.setter
|
|
2296
|
+
def strict_consistency(self, value: Optional[pulumi.Input[str]]):
|
|
2297
|
+
pulumi.set(self, "strict_consistency", value)
|
|
2298
|
+
|
|
2267
2299
|
@property
|
|
2268
2300
|
@pulumi.getter(name="subCategory")
|
|
2269
2301
|
def sub_category(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -2442,6 +2474,7 @@ class Cluster(pulumi.CustomResource):
|
|
|
2442
2474
|
storage_pay_type: Optional[pulumi.Input[str]] = None,
|
|
2443
2475
|
storage_space: Optional[pulumi.Input[int]] = None,
|
|
2444
2476
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
2477
|
+
strict_consistency: Optional[pulumi.Input[str]] = None,
|
|
2445
2478
|
sub_category: Optional[pulumi.Input[str]] = None,
|
|
2446
2479
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
2447
2480
|
target_db_revision_version_code: Optional[pulumi.Input[str]] = None,
|
|
@@ -2550,6 +2583,7 @@ class Cluster(pulumi.CustomResource):
|
|
|
2550
2583
|
> **NOTE:** Valid values for PolarDB for MySQL Standard Edition: 20 to 32000. It is valid when pay_type are `PrePaid` ,`PostPaid`.
|
|
2551
2584
|
> **NOTE:** Valid values for PolarDB for MySQL Enterprise Edition: 50 to 100000.It is valid when pay_type is `PrePaid`.
|
|
2552
2585
|
:param pulumi.Input[str] storage_type: The storage type of the cluster. Enterprise storage type values are `PSL5`, `PSL4`. The standard version storage type values are `ESSDPL1`, `ESSDPL2`, `ESSDPL3`, `ESSDPL0`, `ESSDAUTOPL`. The standard version only supports MySQL and PostgreSQL.
|
|
2586
|
+
:param pulumi.Input[str] strict_consistency: Whether the cluster has enabled strong data consistency across multiple zones. Valid values are `ON`, `OFF`. Available parameters can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1)
|
|
2553
2587
|
:param pulumi.Input[str] sub_category: The category of the cluster. Valid values are `Exclusive`, `General`. Only MySQL supports.
|
|
2554
2588
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
2555
2589
|
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
|
|
@@ -2651,6 +2685,7 @@ class Cluster(pulumi.CustomResource):
|
|
|
2651
2685
|
storage_pay_type: Optional[pulumi.Input[str]] = None,
|
|
2652
2686
|
storage_space: Optional[pulumi.Input[int]] = None,
|
|
2653
2687
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
2688
|
+
strict_consistency: Optional[pulumi.Input[str]] = None,
|
|
2654
2689
|
sub_category: Optional[pulumi.Input[str]] = None,
|
|
2655
2690
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
2656
2691
|
target_db_revision_version_code: Optional[pulumi.Input[str]] = None,
|
|
@@ -2732,6 +2767,7 @@ class Cluster(pulumi.CustomResource):
|
|
|
2732
2767
|
__props__.__dict__["storage_pay_type"] = storage_pay_type
|
|
2733
2768
|
__props__.__dict__["storage_space"] = storage_space
|
|
2734
2769
|
__props__.__dict__["storage_type"] = storage_type
|
|
2770
|
+
__props__.__dict__["strict_consistency"] = strict_consistency
|
|
2735
2771
|
__props__.__dict__["sub_category"] = sub_category
|
|
2736
2772
|
__props__.__dict__["tags"] = tags
|
|
2737
2773
|
__props__.__dict__["target_db_revision_version_code"] = target_db_revision_version_code
|
|
@@ -2819,6 +2855,7 @@ class Cluster(pulumi.CustomResource):
|
|
|
2819
2855
|
storage_pay_type: Optional[pulumi.Input[str]] = None,
|
|
2820
2856
|
storage_space: Optional[pulumi.Input[int]] = None,
|
|
2821
2857
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
2858
|
+
strict_consistency: Optional[pulumi.Input[str]] = None,
|
|
2822
2859
|
sub_category: Optional[pulumi.Input[str]] = None,
|
|
2823
2860
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
2824
2861
|
target_db_revision_version_code: Optional[pulumi.Input[str]] = None,
|
|
@@ -2928,6 +2965,7 @@ class Cluster(pulumi.CustomResource):
|
|
|
2928
2965
|
> **NOTE:** Valid values for PolarDB for MySQL Standard Edition: 20 to 32000. It is valid when pay_type are `PrePaid` ,`PostPaid`.
|
|
2929
2966
|
> **NOTE:** Valid values for PolarDB for MySQL Enterprise Edition: 50 to 100000.It is valid when pay_type is `PrePaid`.
|
|
2930
2967
|
:param pulumi.Input[str] storage_type: The storage type of the cluster. Enterprise storage type values are `PSL5`, `PSL4`. The standard version storage type values are `ESSDPL1`, `ESSDPL2`, `ESSDPL3`, `ESSDPL0`, `ESSDAUTOPL`. The standard version only supports MySQL and PostgreSQL.
|
|
2968
|
+
:param pulumi.Input[str] strict_consistency: Whether the cluster has enabled strong data consistency across multiple zones. Valid values are `ON`, `OFF`. Available parameters can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1)
|
|
2931
2969
|
:param pulumi.Input[str] sub_category: The category of the cluster. Valid values are `Exclusive`, `General`. Only MySQL supports.
|
|
2932
2970
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
2933
2971
|
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
|
|
@@ -3011,6 +3049,7 @@ class Cluster(pulumi.CustomResource):
|
|
|
3011
3049
|
__props__.__dict__["storage_pay_type"] = storage_pay_type
|
|
3012
3050
|
__props__.__dict__["storage_space"] = storage_space
|
|
3013
3051
|
__props__.__dict__["storage_type"] = storage_type
|
|
3052
|
+
__props__.__dict__["strict_consistency"] = strict_consistency
|
|
3014
3053
|
__props__.__dict__["sub_category"] = sub_category
|
|
3015
3054
|
__props__.__dict__["tags"] = tags
|
|
3016
3055
|
__props__.__dict__["target_db_revision_version_code"] = target_db_revision_version_code
|
|
@@ -3556,6 +3595,14 @@ class Cluster(pulumi.CustomResource):
|
|
|
3556
3595
|
"""
|
|
3557
3596
|
return pulumi.get(self, "storage_type")
|
|
3558
3597
|
|
|
3598
|
+
@property
|
|
3599
|
+
@pulumi.getter(name="strictConsistency")
|
|
3600
|
+
def strict_consistency(self) -> pulumi.Output[str]:
|
|
3601
|
+
"""
|
|
3602
|
+
Whether the cluster has enabled strong data consistency across multiple zones. Valid values are `ON`, `OFF`. Available parameters can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1)
|
|
3603
|
+
"""
|
|
3604
|
+
return pulumi.get(self, "strict_consistency")
|
|
3605
|
+
|
|
3559
3606
|
@property
|
|
3560
3607
|
@pulumi.getter(name="subCategory")
|
|
3561
3608
|
def sub_category(self) -> pulumi.Output[str]:
|