pulumi-alicloud 3.63.1__py3-none-any.whl → 3.64.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +16 -0
- pulumi_alicloud/amqp/instance.py +8 -8
- pulumi_alicloud/bss/get_open_api_pricing_modules.py +4 -4
- pulumi_alicloud/bss/get_open_api_products.py +4 -4
- pulumi_alicloud/cas/get_certificates.py +17 -1
- pulumi_alicloud/cas/get_service_certificates.py +153 -17
- pulumi_alicloud/cas/outputs.py +40 -36
- pulumi_alicloud/cen/instance.py +108 -53
- pulumi_alicloud/cloudfirewall/control_policy.py +524 -23
- pulumi_alicloud/cloudfirewall/instance.py +64 -36
- pulumi_alicloud/cs/_inputs.py +390 -26
- pulumi_alicloud/cs/get_serverless_kubernetes_clusters.py +2 -0
- pulumi_alicloud/cs/kubernetes.py +48 -35
- pulumi_alicloud/cs/managed_kubernetes.py +91 -35
- pulumi_alicloud/cs/node_pool.py +68 -14
- pulumi_alicloud/cs/outputs.py +293 -16
- pulumi_alicloud/cs/serverless_kubernetes.py +157 -63
- pulumi_alicloud/databasefilesystem/_inputs.py +0 -6
- pulumi_alicloud/databasefilesystem/instance.py +31 -0
- pulumi_alicloud/databasefilesystem/outputs.py +0 -4
- pulumi_alicloud/dns/get_alidns_records.py +26 -4
- pulumi_alicloud/dns/outputs.py +2 -2
- pulumi_alicloud/eais/instance.py +55 -57
- pulumi_alicloud/ecp/instance.py +177 -219
- pulumi_alicloud/ecs/disk.py +2 -2
- pulumi_alicloud/ecs/ecs_disk.py +142 -58
- pulumi_alicloud/ecs/ecs_key_pair.py +1 -1
- pulumi_alicloud/ecs/ecs_launch_template.py +169 -0
- pulumi_alicloud/ecs/get_ecs_launch_templates.py +172 -6
- pulumi_alicloud/ecs/instance.py +131 -98
- pulumi_alicloud/ecs/key_pair.py +1 -1
- pulumi_alicloud/ecs/launch_template.py +102 -0
- pulumi_alicloud/ecs/outputs.py +57 -24
- pulumi_alicloud/ens/disk.py +2 -2
- pulumi_alicloud/ens/disk_instance_attachment.py +2 -2
- pulumi_alicloud/ess/_inputs.py +342 -2
- pulumi_alicloud/ess/eci_scaling_configuration.py +202 -0
- pulumi_alicloud/ess/outputs.py +226 -2
- pulumi_alicloud/ess/scaling_configuration.py +376 -0
- pulumi_alicloud/ga/_inputs.py +57 -22
- pulumi_alicloud/ga/outputs.py +39 -15
- pulumi_alicloud/gpdb/__init__.py +1 -0
- pulumi_alicloud/gpdb/database.py +545 -0
- pulumi_alicloud/gpdb/instance.py +1 -1
- pulumi_alicloud/kvstore/instance.py +24 -5
- pulumi_alicloud/mse/cluster.py +149 -51
- pulumi_alicloud/mse/engine_namespace.py +176 -74
- pulumi_alicloud/mse/get_clusters.py +70 -10
- pulumi_alicloud/mse/get_engine_namespaces.py +93 -15
- pulumi_alicloud/mse/outputs.py +36 -8
- pulumi_alicloud/nas/data_flow.py +6 -6
- pulumi_alicloud/nas/fileset.py +6 -6
- pulumi_alicloud/nas/lifecycle_policy.py +6 -6
- pulumi_alicloud/nas/recycle_bin.py +6 -6
- pulumi_alicloud/nas/snapshot.py +6 -6
- pulumi_alicloud/polardb/cluster.py +162 -0
- pulumi_alicloud/privatelink/get_vpc_endpoint_services.py +51 -7
- pulumi_alicloud/privatelink/outputs.py +17 -6
- pulumi_alicloud/privatelink/vpc_endpoint_service_user.py +54 -17
- pulumi_alicloud/privatelink/vpc_endpoint_zone.py +7 -21
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rds/instance.py +50 -3
- pulumi_alicloud/resourcemanager/get_folders.py +35 -28
- pulumi_alicloud/resourcemanager/outputs.py +8 -8
- pulumi_alicloud/servicemesh/_inputs.py +656 -174
- pulumi_alicloud/servicemesh/outputs.py +507 -117
- pulumi_alicloud/servicemesh/service_mesh.py +120 -78
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/_inputs.py +307 -0
- pulumi_alicloud/sls/collection_policy.py +561 -0
- pulumi_alicloud/sls/outputs.py +263 -0
- pulumi_alicloud/threatdetection/instance.py +331 -43
- {pulumi_alicloud-3.63.1.dist-info → pulumi_alicloud-3.64.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.63.1.dist-info → pulumi_alicloud-3.64.0.dist-info}/RECORD +76 -74
- {pulumi_alicloud-3.63.1.dist-info → pulumi_alicloud-3.64.0.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.63.1.dist-info → pulumi_alicloud-3.64.0.dist-info}/top_level.txt +0 -0
|
@@ -19,46 +19,34 @@ __all__ = ['EngineNamespaceArgs', 'EngineNamespace']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class EngineNamespaceArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
cluster_id: pulumi.Input[str],
|
|
23
|
-
namespace_id: pulumi.Input[str],
|
|
24
22
|
namespace_show_name: pulumi.Input[str],
|
|
25
|
-
accept_language: Optional[pulumi.Input[str]] = None
|
|
23
|
+
accept_language: Optional[pulumi.Input[str]] = None,
|
|
24
|
+
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
namespace_desc: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
namespace_id: Optional[pulumi.Input[str]] = None):
|
|
26
28
|
"""
|
|
27
29
|
The set of arguments for constructing a EngineNamespace resource.
|
|
28
|
-
:param pulumi.Input[str] cluster_id: The id of the cluster.
|
|
29
|
-
:param pulumi.Input[str] namespace_id: The id of Namespace.
|
|
30
30
|
:param pulumi.Input[str] namespace_show_name: The name of the Engine Namespace.
|
|
31
31
|
:param pulumi.Input[str] accept_language: The language type of the returned information. Valid values: `zh`, `en`.
|
|
32
|
+
:param pulumi.Input[str] cluster_id: The id of the cluster.It is formatted to `mse-xxxxxxxx`.
|
|
33
|
+
:param pulumi.Input[str] instance_id: The instance id of the cluster. It is formatted to `mse-cn-xxxxxxxxxxx`.Available since v1.232.0.
|
|
34
|
+
:param pulumi.Input[str] namespace_desc: The description of the namespace.
|
|
35
|
+
|
|
36
|
+
**NOTE:** You must set `cluster_id` or `instance_id` or both.
|
|
37
|
+
:param pulumi.Input[str] namespace_id: The id of Namespace.
|
|
32
38
|
"""
|
|
33
|
-
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
34
|
-
pulumi.set(__self__, "namespace_id", namespace_id)
|
|
35
39
|
pulumi.set(__self__, "namespace_show_name", namespace_show_name)
|
|
36
40
|
if accept_language is not None:
|
|
37
41
|
pulumi.set(__self__, "accept_language", accept_language)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
@cluster_id.setter
|
|
48
|
-
def cluster_id(self, value: pulumi.Input[str]):
|
|
49
|
-
pulumi.set(self, "cluster_id", value)
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
@pulumi.getter(name="namespaceId")
|
|
53
|
-
def namespace_id(self) -> pulumi.Input[str]:
|
|
54
|
-
"""
|
|
55
|
-
The id of Namespace.
|
|
56
|
-
"""
|
|
57
|
-
return pulumi.get(self, "namespace_id")
|
|
58
|
-
|
|
59
|
-
@namespace_id.setter
|
|
60
|
-
def namespace_id(self, value: pulumi.Input[str]):
|
|
61
|
-
pulumi.set(self, "namespace_id", value)
|
|
42
|
+
if cluster_id is not None:
|
|
43
|
+
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
44
|
+
if instance_id is not None:
|
|
45
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
46
|
+
if namespace_desc is not None:
|
|
47
|
+
pulumi.set(__self__, "namespace_desc", namespace_desc)
|
|
48
|
+
if namespace_id is not None:
|
|
49
|
+
pulumi.set(__self__, "namespace_id", namespace_id)
|
|
62
50
|
|
|
63
51
|
@property
|
|
64
52
|
@pulumi.getter(name="namespaceShowName")
|
|
@@ -84,18 +72,74 @@ class EngineNamespaceArgs:
|
|
|
84
72
|
def accept_language(self, value: Optional[pulumi.Input[str]]):
|
|
85
73
|
pulumi.set(self, "accept_language", value)
|
|
86
74
|
|
|
75
|
+
@property
|
|
76
|
+
@pulumi.getter(name="clusterId")
|
|
77
|
+
def cluster_id(self) -> Optional[pulumi.Input[str]]:
|
|
78
|
+
"""
|
|
79
|
+
The id of the cluster.It is formatted to `mse-xxxxxxxx`.
|
|
80
|
+
"""
|
|
81
|
+
return pulumi.get(self, "cluster_id")
|
|
82
|
+
|
|
83
|
+
@cluster_id.setter
|
|
84
|
+
def cluster_id(self, value: Optional[pulumi.Input[str]]):
|
|
85
|
+
pulumi.set(self, "cluster_id", value)
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
@pulumi.getter(name="instanceId")
|
|
89
|
+
def instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
90
|
+
"""
|
|
91
|
+
The instance id of the cluster. It is formatted to `mse-cn-xxxxxxxxxxx`.Available since v1.232.0.
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "instance_id")
|
|
94
|
+
|
|
95
|
+
@instance_id.setter
|
|
96
|
+
def instance_id(self, value: Optional[pulumi.Input[str]]):
|
|
97
|
+
pulumi.set(self, "instance_id", value)
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
@pulumi.getter(name="namespaceDesc")
|
|
101
|
+
def namespace_desc(self) -> Optional[pulumi.Input[str]]:
|
|
102
|
+
"""
|
|
103
|
+
The description of the namespace.
|
|
104
|
+
|
|
105
|
+
**NOTE:** You must set `cluster_id` or `instance_id` or both.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "namespace_desc")
|
|
108
|
+
|
|
109
|
+
@namespace_desc.setter
|
|
110
|
+
def namespace_desc(self, value: Optional[pulumi.Input[str]]):
|
|
111
|
+
pulumi.set(self, "namespace_desc", value)
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter(name="namespaceId")
|
|
115
|
+
def namespace_id(self) -> Optional[pulumi.Input[str]]:
|
|
116
|
+
"""
|
|
117
|
+
The id of Namespace.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "namespace_id")
|
|
120
|
+
|
|
121
|
+
@namespace_id.setter
|
|
122
|
+
def namespace_id(self, value: Optional[pulumi.Input[str]]):
|
|
123
|
+
pulumi.set(self, "namespace_id", value)
|
|
124
|
+
|
|
87
125
|
|
|
88
126
|
@pulumi.input_type
|
|
89
127
|
class _EngineNamespaceState:
|
|
90
128
|
def __init__(__self__, *,
|
|
91
129
|
accept_language: Optional[pulumi.Input[str]] = None,
|
|
92
130
|
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
131
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
132
|
+
namespace_desc: Optional[pulumi.Input[str]] = None,
|
|
93
133
|
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
94
134
|
namespace_show_name: Optional[pulumi.Input[str]] = None):
|
|
95
135
|
"""
|
|
96
136
|
Input properties used for looking up and filtering EngineNamespace resources.
|
|
97
137
|
:param pulumi.Input[str] accept_language: The language type of the returned information. Valid values: `zh`, `en`.
|
|
98
|
-
:param pulumi.Input[str] cluster_id: The id of the cluster.
|
|
138
|
+
:param pulumi.Input[str] cluster_id: The id of the cluster.It is formatted to `mse-xxxxxxxx`.
|
|
139
|
+
:param pulumi.Input[str] instance_id: The instance id of the cluster. It is formatted to `mse-cn-xxxxxxxxxxx`.Available since v1.232.0.
|
|
140
|
+
:param pulumi.Input[str] namespace_desc: The description of the namespace.
|
|
141
|
+
|
|
142
|
+
**NOTE:** You must set `cluster_id` or `instance_id` or both.
|
|
99
143
|
:param pulumi.Input[str] namespace_id: The id of Namespace.
|
|
100
144
|
:param pulumi.Input[str] namespace_show_name: The name of the Engine Namespace.
|
|
101
145
|
"""
|
|
@@ -103,6 +147,10 @@ class _EngineNamespaceState:
|
|
|
103
147
|
pulumi.set(__self__, "accept_language", accept_language)
|
|
104
148
|
if cluster_id is not None:
|
|
105
149
|
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
150
|
+
if instance_id is not None:
|
|
151
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
152
|
+
if namespace_desc is not None:
|
|
153
|
+
pulumi.set(__self__, "namespace_desc", namespace_desc)
|
|
106
154
|
if namespace_id is not None:
|
|
107
155
|
pulumi.set(__self__, "namespace_id", namespace_id)
|
|
108
156
|
if namespace_show_name is not None:
|
|
@@ -124,7 +172,7 @@ class _EngineNamespaceState:
|
|
|
124
172
|
@pulumi.getter(name="clusterId")
|
|
125
173
|
def cluster_id(self) -> Optional[pulumi.Input[str]]:
|
|
126
174
|
"""
|
|
127
|
-
The id of the cluster.
|
|
175
|
+
The id of the cluster.It is formatted to `mse-xxxxxxxx`.
|
|
128
176
|
"""
|
|
129
177
|
return pulumi.get(self, "cluster_id")
|
|
130
178
|
|
|
@@ -132,6 +180,32 @@ class _EngineNamespaceState:
|
|
|
132
180
|
def cluster_id(self, value: Optional[pulumi.Input[str]]):
|
|
133
181
|
pulumi.set(self, "cluster_id", value)
|
|
134
182
|
|
|
183
|
+
@property
|
|
184
|
+
@pulumi.getter(name="instanceId")
|
|
185
|
+
def instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
186
|
+
"""
|
|
187
|
+
The instance id of the cluster. It is formatted to `mse-cn-xxxxxxxxxxx`.Available since v1.232.0.
|
|
188
|
+
"""
|
|
189
|
+
return pulumi.get(self, "instance_id")
|
|
190
|
+
|
|
191
|
+
@instance_id.setter
|
|
192
|
+
def instance_id(self, value: Optional[pulumi.Input[str]]):
|
|
193
|
+
pulumi.set(self, "instance_id", value)
|
|
194
|
+
|
|
195
|
+
@property
|
|
196
|
+
@pulumi.getter(name="namespaceDesc")
|
|
197
|
+
def namespace_desc(self) -> Optional[pulumi.Input[str]]:
|
|
198
|
+
"""
|
|
199
|
+
The description of the namespace.
|
|
200
|
+
|
|
201
|
+
**NOTE:** You must set `cluster_id` or `instance_id` or both.
|
|
202
|
+
"""
|
|
203
|
+
return pulumi.get(self, "namespace_desc")
|
|
204
|
+
|
|
205
|
+
@namespace_desc.setter
|
|
206
|
+
def namespace_desc(self, value: Optional[pulumi.Input[str]]):
|
|
207
|
+
pulumi.set(self, "namespace_desc", value)
|
|
208
|
+
|
|
135
209
|
@property
|
|
136
210
|
@pulumi.getter(name="namespaceId")
|
|
137
211
|
def namespace_id(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -164,6 +238,8 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
164
238
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
165
239
|
accept_language: Optional[pulumi.Input[str]] = None,
|
|
166
240
|
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
241
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
242
|
+
namespace_desc: Optional[pulumi.Input[str]] = None,
|
|
167
243
|
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
168
244
|
namespace_show_name: Optional[pulumi.Input[str]] = None,
|
|
169
245
|
__props__=None):
|
|
@@ -172,7 +248,7 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
172
248
|
|
|
173
249
|
For information about Microservice Engine (MSE) Engine Namespace and how to use it, see [What is Engine Namespace](https://www.alibabacloud.com/help/en/mse/developer-reference/api-mse-2019-05-31-createenginenamespace).
|
|
174
250
|
|
|
175
|
-
> **NOTE:** Available
|
|
251
|
+
> **NOTE:** Available since v1.166.0.
|
|
176
252
|
|
|
177
253
|
## Example Usage
|
|
178
254
|
|
|
@@ -182,10 +258,6 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
182
258
|
import pulumi
|
|
183
259
|
import pulumi_alicloud as alicloud
|
|
184
260
|
|
|
185
|
-
config = pulumi.Config()
|
|
186
|
-
name = config.get("name")
|
|
187
|
-
if name is None:
|
|
188
|
-
name = "tf-example"
|
|
189
261
|
example = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
190
262
|
example_network = alicloud.vpc.Network("example",
|
|
191
263
|
vpc_name="terraform-example",
|
|
@@ -195,21 +267,23 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
195
267
|
cidr_block="172.17.3.0/24",
|
|
196
268
|
vpc_id=example_network.id,
|
|
197
269
|
zone_id=example.zones[0].id)
|
|
198
|
-
|
|
199
|
-
connection_type="slb",
|
|
200
|
-
net_type="privatenet",
|
|
201
|
-
vswitch_id=example_switch.id,
|
|
270
|
+
example_cluster = alicloud.mse.Cluster("example",
|
|
202
271
|
cluster_specification="MSE_SC_1_2_60_c",
|
|
272
|
+
cluster_type="Nacos-Ans",
|
|
203
273
|
cluster_version="NACOS_2_0_0",
|
|
204
|
-
instance_count=
|
|
274
|
+
instance_count=3,
|
|
275
|
+
net_type="privatenet",
|
|
205
276
|
pub_network_flow="1",
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
277
|
+
connection_type="slb",
|
|
278
|
+
cluster_alias_name="terraform-example",
|
|
279
|
+
mse_version="mse_pro",
|
|
280
|
+
vswitch_id=example_switch.id,
|
|
281
|
+
vpc_id=example_network.id)
|
|
209
282
|
example_engine_namespace = alicloud.mse.EngineNamespace("example",
|
|
210
|
-
|
|
211
|
-
namespace_show_name=
|
|
212
|
-
namespace_id=
|
|
283
|
+
instance_id=example_cluster.id,
|
|
284
|
+
namespace_show_name="terraform-example",
|
|
285
|
+
namespace_id="terraform-example",
|
|
286
|
+
namespace_desc="description")
|
|
213
287
|
```
|
|
214
288
|
|
|
215
289
|
## Import
|
|
@@ -217,13 +291,17 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
217
291
|
Microservice Engine (MSE) Engine Namespace can be imported using the id, e.g.
|
|
218
292
|
|
|
219
293
|
```sh
|
|
220
|
-
$ pulumi import alicloud:mse/engineNamespace:EngineNamespace example <
|
|
294
|
+
$ pulumi import alicloud:mse/engineNamespace:EngineNamespace example <instance_id>:<namespace_id>
|
|
221
295
|
```
|
|
222
296
|
|
|
223
297
|
:param str resource_name: The name of the resource.
|
|
224
298
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
225
299
|
:param pulumi.Input[str] accept_language: The language type of the returned information. Valid values: `zh`, `en`.
|
|
226
|
-
:param pulumi.Input[str] cluster_id: The id of the cluster.
|
|
300
|
+
:param pulumi.Input[str] cluster_id: The id of the cluster.It is formatted to `mse-xxxxxxxx`.
|
|
301
|
+
:param pulumi.Input[str] instance_id: The instance id of the cluster. It is formatted to `mse-cn-xxxxxxxxxxx`.Available since v1.232.0.
|
|
302
|
+
:param pulumi.Input[str] namespace_desc: The description of the namespace.
|
|
303
|
+
|
|
304
|
+
**NOTE:** You must set `cluster_id` or `instance_id` or both.
|
|
227
305
|
:param pulumi.Input[str] namespace_id: The id of Namespace.
|
|
228
306
|
:param pulumi.Input[str] namespace_show_name: The name of the Engine Namespace.
|
|
229
307
|
"""
|
|
@@ -238,7 +316,7 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
238
316
|
|
|
239
317
|
For information about Microservice Engine (MSE) Engine Namespace and how to use it, see [What is Engine Namespace](https://www.alibabacloud.com/help/en/mse/developer-reference/api-mse-2019-05-31-createenginenamespace).
|
|
240
318
|
|
|
241
|
-
> **NOTE:** Available
|
|
319
|
+
> **NOTE:** Available since v1.166.0.
|
|
242
320
|
|
|
243
321
|
## Example Usage
|
|
244
322
|
|
|
@@ -248,10 +326,6 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
248
326
|
import pulumi
|
|
249
327
|
import pulumi_alicloud as alicloud
|
|
250
328
|
|
|
251
|
-
config = pulumi.Config()
|
|
252
|
-
name = config.get("name")
|
|
253
|
-
if name is None:
|
|
254
|
-
name = "tf-example"
|
|
255
329
|
example = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
256
330
|
example_network = alicloud.vpc.Network("example",
|
|
257
331
|
vpc_name="terraform-example",
|
|
@@ -261,21 +335,23 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
261
335
|
cidr_block="172.17.3.0/24",
|
|
262
336
|
vpc_id=example_network.id,
|
|
263
337
|
zone_id=example.zones[0].id)
|
|
264
|
-
|
|
265
|
-
connection_type="slb",
|
|
266
|
-
net_type="privatenet",
|
|
267
|
-
vswitch_id=example_switch.id,
|
|
338
|
+
example_cluster = alicloud.mse.Cluster("example",
|
|
268
339
|
cluster_specification="MSE_SC_1_2_60_c",
|
|
340
|
+
cluster_type="Nacos-Ans",
|
|
269
341
|
cluster_version="NACOS_2_0_0",
|
|
270
|
-
instance_count=
|
|
342
|
+
instance_count=3,
|
|
343
|
+
net_type="privatenet",
|
|
271
344
|
pub_network_flow="1",
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
345
|
+
connection_type="slb",
|
|
346
|
+
cluster_alias_name="terraform-example",
|
|
347
|
+
mse_version="mse_pro",
|
|
348
|
+
vswitch_id=example_switch.id,
|
|
349
|
+
vpc_id=example_network.id)
|
|
275
350
|
example_engine_namespace = alicloud.mse.EngineNamespace("example",
|
|
276
|
-
|
|
277
|
-
namespace_show_name=
|
|
278
|
-
namespace_id=
|
|
351
|
+
instance_id=example_cluster.id,
|
|
352
|
+
namespace_show_name="terraform-example",
|
|
353
|
+
namespace_id="terraform-example",
|
|
354
|
+
namespace_desc="description")
|
|
279
355
|
```
|
|
280
356
|
|
|
281
357
|
## Import
|
|
@@ -283,7 +359,7 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
283
359
|
Microservice Engine (MSE) Engine Namespace can be imported using the id, e.g.
|
|
284
360
|
|
|
285
361
|
```sh
|
|
286
|
-
$ pulumi import alicloud:mse/engineNamespace:EngineNamespace example <
|
|
362
|
+
$ pulumi import alicloud:mse/engineNamespace:EngineNamespace example <instance_id>:<namespace_id>
|
|
287
363
|
```
|
|
288
364
|
|
|
289
365
|
:param str resource_name: The name of the resource.
|
|
@@ -303,6 +379,8 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
303
379
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
304
380
|
accept_language: Optional[pulumi.Input[str]] = None,
|
|
305
381
|
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
382
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
383
|
+
namespace_desc: Optional[pulumi.Input[str]] = None,
|
|
306
384
|
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
307
385
|
namespace_show_name: Optional[pulumi.Input[str]] = None,
|
|
308
386
|
__props__=None):
|
|
@@ -315,11 +393,9 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
315
393
|
__props__ = EngineNamespaceArgs.__new__(EngineNamespaceArgs)
|
|
316
394
|
|
|
317
395
|
__props__.__dict__["accept_language"] = accept_language
|
|
318
|
-
if cluster_id is None and not opts.urn:
|
|
319
|
-
raise TypeError("Missing required property 'cluster_id'")
|
|
320
396
|
__props__.__dict__["cluster_id"] = cluster_id
|
|
321
|
-
|
|
322
|
-
|
|
397
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
398
|
+
__props__.__dict__["namespace_desc"] = namespace_desc
|
|
323
399
|
__props__.__dict__["namespace_id"] = namespace_id
|
|
324
400
|
if namespace_show_name is None and not opts.urn:
|
|
325
401
|
raise TypeError("Missing required property 'namespace_show_name'")
|
|
@@ -336,6 +412,8 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
336
412
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
337
413
|
accept_language: Optional[pulumi.Input[str]] = None,
|
|
338
414
|
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
415
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
416
|
+
namespace_desc: Optional[pulumi.Input[str]] = None,
|
|
339
417
|
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
340
418
|
namespace_show_name: Optional[pulumi.Input[str]] = None) -> 'EngineNamespace':
|
|
341
419
|
"""
|
|
@@ -346,7 +424,11 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
346
424
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
347
425
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
348
426
|
:param pulumi.Input[str] accept_language: The language type of the returned information. Valid values: `zh`, `en`.
|
|
349
|
-
:param pulumi.Input[str] cluster_id: The id of the cluster.
|
|
427
|
+
:param pulumi.Input[str] cluster_id: The id of the cluster.It is formatted to `mse-xxxxxxxx`.
|
|
428
|
+
:param pulumi.Input[str] instance_id: The instance id of the cluster. It is formatted to `mse-cn-xxxxxxxxxxx`.Available since v1.232.0.
|
|
429
|
+
:param pulumi.Input[str] namespace_desc: The description of the namespace.
|
|
430
|
+
|
|
431
|
+
**NOTE:** You must set `cluster_id` or `instance_id` or both.
|
|
350
432
|
:param pulumi.Input[str] namespace_id: The id of Namespace.
|
|
351
433
|
:param pulumi.Input[str] namespace_show_name: The name of the Engine Namespace.
|
|
352
434
|
"""
|
|
@@ -356,6 +438,8 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
356
438
|
|
|
357
439
|
__props__.__dict__["accept_language"] = accept_language
|
|
358
440
|
__props__.__dict__["cluster_id"] = cluster_id
|
|
441
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
442
|
+
__props__.__dict__["namespace_desc"] = namespace_desc
|
|
359
443
|
__props__.__dict__["namespace_id"] = namespace_id
|
|
360
444
|
__props__.__dict__["namespace_show_name"] = namespace_show_name
|
|
361
445
|
return EngineNamespace(resource_name, opts=opts, __props__=__props__)
|
|
@@ -372,10 +456,28 @@ class EngineNamespace(pulumi.CustomResource):
|
|
|
372
456
|
@pulumi.getter(name="clusterId")
|
|
373
457
|
def cluster_id(self) -> pulumi.Output[str]:
|
|
374
458
|
"""
|
|
375
|
-
The id of the cluster.
|
|
459
|
+
The id of the cluster.It is formatted to `mse-xxxxxxxx`.
|
|
376
460
|
"""
|
|
377
461
|
return pulumi.get(self, "cluster_id")
|
|
378
462
|
|
|
463
|
+
@property
|
|
464
|
+
@pulumi.getter(name="instanceId")
|
|
465
|
+
def instance_id(self) -> pulumi.Output[str]:
|
|
466
|
+
"""
|
|
467
|
+
The instance id of the cluster. It is formatted to `mse-cn-xxxxxxxxxxx`.Available since v1.232.0.
|
|
468
|
+
"""
|
|
469
|
+
return pulumi.get(self, "instance_id")
|
|
470
|
+
|
|
471
|
+
@property
|
|
472
|
+
@pulumi.getter(name="namespaceDesc")
|
|
473
|
+
def namespace_desc(self) -> pulumi.Output[str]:
|
|
474
|
+
"""
|
|
475
|
+
The description of the namespace.
|
|
476
|
+
|
|
477
|
+
**NOTE:** You must set `cluster_id` or `instance_id` or both.
|
|
478
|
+
"""
|
|
479
|
+
return pulumi.get(self, "namespace_desc")
|
|
480
|
+
|
|
379
481
|
@property
|
|
380
482
|
@pulumi.getter(name="namespaceId")
|
|
381
483
|
def namespace_id(self) -> pulumi.Output[str]:
|
|
@@ -154,7 +154,7 @@ def get_clusters(cluster_alias_name: Optional[str] = None,
|
|
|
154
154
|
"""
|
|
155
155
|
This data source provides a list of MSE Clusters in an Alibaba Cloud account according to the specified filters.
|
|
156
156
|
|
|
157
|
-
> **NOTE:** Available
|
|
157
|
+
> **NOTE:** Available since v1.94.0.
|
|
158
158
|
|
|
159
159
|
## Example Usage
|
|
160
160
|
|
|
@@ -162,17 +162,47 @@ def get_clusters(cluster_alias_name: Optional[str] = None,
|
|
|
162
162
|
import pulumi
|
|
163
163
|
import pulumi_alicloud as alicloud
|
|
164
164
|
|
|
165
|
+
# Create resource
|
|
166
|
+
example = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
167
|
+
example_network = alicloud.vpc.Network("example",
|
|
168
|
+
vpc_name="terraform-example",
|
|
169
|
+
cidr_block="172.17.3.0/24")
|
|
170
|
+
example_switch = alicloud.vpc.Switch("example",
|
|
171
|
+
vswitch_name="terraform-example",
|
|
172
|
+
cidr_block="172.17.3.0/24",
|
|
173
|
+
vpc_id=example_network.id,
|
|
174
|
+
zone_id=example.zones[0].id)
|
|
175
|
+
example_cluster = alicloud.mse.Cluster("example",
|
|
176
|
+
cluster_specification="MSE_SC_1_2_60_c",
|
|
177
|
+
cluster_type="Nacos-Ans",
|
|
178
|
+
cluster_version="NACOS_2_0_0",
|
|
179
|
+
instance_count=3,
|
|
180
|
+
net_type="privatenet",
|
|
181
|
+
pub_network_flow="1",
|
|
182
|
+
connection_type="slb",
|
|
183
|
+
cluster_alias_name="terraform-example",
|
|
184
|
+
mse_version="mse_pro",
|
|
185
|
+
vswitch_id=example_switch.id,
|
|
186
|
+
vpc_id=example_network.id)
|
|
165
187
|
# Declare the data source
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
188
|
+
example_get_clusters = pulumi.Output.all(
|
|
189
|
+
id=example_cluster.id,
|
|
190
|
+
cluster_alias_name=example_cluster.cluster_alias_name
|
|
191
|
+
).apply(lambda resolved_outputs: alicloud.mse.get_clusters_output(enable_details=True,
|
|
192
|
+
ids=[resolved_outputs['id']],
|
|
193
|
+
status="INIT_SUCCESS",
|
|
194
|
+
name_regex=resolved_outputs['cluster_alias_name']))
|
|
195
|
+
|
|
196
|
+
pulumi.export("instanceId", example_get_clusters.clusters[0].id)
|
|
169
197
|
```
|
|
170
198
|
|
|
171
199
|
|
|
172
200
|
:param str cluster_alias_name: The alias name of MSE Cluster.
|
|
173
|
-
:param
|
|
201
|
+
:param bool enable_details: Default to `false`. Set it to `true` can output more details about resource attributes.
|
|
202
|
+
:param Sequence[str] ids: A list of MSE Cluster ids. It is formatted to `<instance_id>`
|
|
174
203
|
:param str name_regex: A regex string to filter the results by the cluster alias name.
|
|
175
204
|
:param str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
205
|
+
:param str request_pars: The extended request parameters. The JSON format is supported.
|
|
176
206
|
:param str status: The status of MSE Cluster. Valid: `DESTROY_FAILED`, `DESTROY_ING`, `DESTROY_SUCCESS`, `INIT_FAILED`, `INIT_ING`, `INIT_SUCCESS`, `INIT_TIME_OUT`, `RESTART_FAILED`, `RESTART_ING`, `RESTART_SUCCESS`, `SCALE_FAILED`, `SCALE_ING`, `SCALE_SUCCESS`
|
|
177
207
|
"""
|
|
178
208
|
__args__ = dict()
|
|
@@ -208,7 +238,7 @@ def get_clusters_output(cluster_alias_name: Optional[pulumi.Input[Optional[str]]
|
|
|
208
238
|
"""
|
|
209
239
|
This data source provides a list of MSE Clusters in an Alibaba Cloud account according to the specified filters.
|
|
210
240
|
|
|
211
|
-
> **NOTE:** Available
|
|
241
|
+
> **NOTE:** Available since v1.94.0.
|
|
212
242
|
|
|
213
243
|
## Example Usage
|
|
214
244
|
|
|
@@ -216,17 +246,47 @@ def get_clusters_output(cluster_alias_name: Optional[pulumi.Input[Optional[str]]
|
|
|
216
246
|
import pulumi
|
|
217
247
|
import pulumi_alicloud as alicloud
|
|
218
248
|
|
|
249
|
+
# Create resource
|
|
250
|
+
example = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
251
|
+
example_network = alicloud.vpc.Network("example",
|
|
252
|
+
vpc_name="terraform-example",
|
|
253
|
+
cidr_block="172.17.3.0/24")
|
|
254
|
+
example_switch = alicloud.vpc.Switch("example",
|
|
255
|
+
vswitch_name="terraform-example",
|
|
256
|
+
cidr_block="172.17.3.0/24",
|
|
257
|
+
vpc_id=example_network.id,
|
|
258
|
+
zone_id=example.zones[0].id)
|
|
259
|
+
example_cluster = alicloud.mse.Cluster("example",
|
|
260
|
+
cluster_specification="MSE_SC_1_2_60_c",
|
|
261
|
+
cluster_type="Nacos-Ans",
|
|
262
|
+
cluster_version="NACOS_2_0_0",
|
|
263
|
+
instance_count=3,
|
|
264
|
+
net_type="privatenet",
|
|
265
|
+
pub_network_flow="1",
|
|
266
|
+
connection_type="slb",
|
|
267
|
+
cluster_alias_name="terraform-example",
|
|
268
|
+
mse_version="mse_pro",
|
|
269
|
+
vswitch_id=example_switch.id,
|
|
270
|
+
vpc_id=example_network.id)
|
|
219
271
|
# Declare the data source
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
272
|
+
example_get_clusters = pulumi.Output.all(
|
|
273
|
+
id=example_cluster.id,
|
|
274
|
+
cluster_alias_name=example_cluster.cluster_alias_name
|
|
275
|
+
).apply(lambda resolved_outputs: alicloud.mse.get_clusters_output(enable_details=True,
|
|
276
|
+
ids=[resolved_outputs['id']],
|
|
277
|
+
status="INIT_SUCCESS",
|
|
278
|
+
name_regex=resolved_outputs['cluster_alias_name']))
|
|
279
|
+
|
|
280
|
+
pulumi.export("instanceId", example_get_clusters.clusters[0].id)
|
|
223
281
|
```
|
|
224
282
|
|
|
225
283
|
|
|
226
284
|
:param str cluster_alias_name: The alias name of MSE Cluster.
|
|
227
|
-
:param
|
|
285
|
+
:param bool enable_details: Default to `false`. Set it to `true` can output more details about resource attributes.
|
|
286
|
+
:param Sequence[str] ids: A list of MSE Cluster ids. It is formatted to `<instance_id>`
|
|
228
287
|
:param str name_regex: A regex string to filter the results by the cluster alias name.
|
|
229
288
|
:param str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
289
|
+
:param str request_pars: The extended request parameters. The JSON format is supported.
|
|
230
290
|
:param str status: The status of MSE Cluster. Valid: `DESTROY_FAILED`, `DESTROY_ING`, `DESTROY_SUCCESS`, `INIT_FAILED`, `INIT_ING`, `INIT_SUCCESS`, `INIT_TIME_OUT`, `RESTART_FAILED`, `RESTART_ING`, `RESTART_SUCCESS`, `SCALE_FAILED`, `SCALE_ING`, `SCALE_SUCCESS`
|
|
231
291
|
"""
|
|
232
292
|
__args__ = dict()
|