pulumi-alicloud 3.65.0a1730524658__py3-none-any.whl → 3.65.1__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 +19 -0
- pulumi_alicloud/alb/load_balancer.py +1 -1
- pulumi_alicloud/arms/environment.py +7 -7
- pulumi_alicloud/arms/get_remote_writes.py +4 -4
- pulumi_alicloud/arms/prometheus_alert_rule.py +58 -0
- pulumi_alicloud/arms/remote_write.py +2 -2
- pulumi_alicloud/cen/transit_router_route_table_association.py +72 -68
- pulumi_alicloud/cen/transit_router_vbr_attachment.py +96 -74
- pulumi_alicloud/cloudstoragegateway/gateway.py +134 -58
- pulumi_alicloud/cms/hybrid_monitor_fc_task.py +28 -26
- pulumi_alicloud/cr/chain.py +22 -14
- pulumi_alicloud/cr/chart_repository.py +14 -6
- pulumi_alicloud/cr/repo.py +8 -8
- pulumi_alicloud/cr/vpc_endpoint_linked_vpc.py +14 -6
- pulumi_alicloud/cs/_inputs.py +6 -6
- pulumi_alicloud/cs/outputs.py +4 -4
- pulumi_alicloud/databasefilesystem/instance_attachment.py +59 -63
- pulumi_alicloud/databasefilesystem/snapshot.py +53 -109
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/ess/scaling_configuration.py +8 -8
- pulumi_alicloud/ess/scaling_group.py +54 -7
- pulumi_alicloud/fc/_inputs.py +3 -3
- pulumi_alicloud/fc/outputs.py +2 -2
- pulumi_alicloud/fc/trigger.py +202 -138
- pulumi_alicloud/ga/custom_routing_endpoint_traffic_policy.py +48 -44
- pulumi_alicloud/governance/_inputs.py +54 -0
- pulumi_alicloud/governance/account.py +49 -14
- pulumi_alicloud/governance/outputs.py +51 -0
- pulumi_alicloud/gpdb/instance.py +196 -15
- pulumi_alicloud/kms/get_secrets.py +5 -5
- pulumi_alicloud/kms/instance.py +28 -0
- pulumi_alicloud/kms/outputs.py +18 -18
- pulumi_alicloud/mse/__init__.py +2 -0
- pulumi_alicloud/mse/get_nacos_configs.py +394 -0
- pulumi_alicloud/mse/nacos_config.py +762 -0
- pulumi_alicloud/mse/outputs.py +129 -0
- 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/ocean/base_instance.py +2 -2
- pulumi_alicloud/pai/__init__.py +8 -0
- pulumi_alicloud/pai/workspace_workspace.py +447 -0
- pulumi_alicloud/polardb/cluster.py +14 -14
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +1102 -71
- pulumi_alicloud/threatdetection/honeypot_preset.py +2 -0
- pulumi_alicloud/vpc/subnet.py +59 -27
- pulumi_alicloud/vpc/switch.py +104 -87
- pulumi_alicloud/vpn/gateway_vco_route.py +28 -8
- {pulumi_alicloud-3.65.0a1730524658.dist-info → pulumi_alicloud-3.65.1.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.65.0a1730524658.dist-info → pulumi_alicloud-3.65.1.dist-info}/RECORD +55 -51
- {pulumi_alicloud-3.65.0a1730524658.dist-info → pulumi_alicloud-3.65.1.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.65.0a1730524658.dist-info → pulumi_alicloud-3.65.1.dist-info}/top_level.txt +0 -0
|
@@ -214,25 +214,29 @@ class ChartRepository(pulumi.CustomResource):
|
|
|
214
214
|
```python
|
|
215
215
|
import pulumi
|
|
216
216
|
import pulumi_alicloud as alicloud
|
|
217
|
+
import pulumi_random as random
|
|
217
218
|
|
|
218
219
|
config = pulumi.Config()
|
|
219
220
|
name = config.get("name")
|
|
220
221
|
if name is None:
|
|
221
222
|
name = "tf-example"
|
|
223
|
+
default = random.index.Integer("default",
|
|
224
|
+
min=100000,
|
|
225
|
+
max=999999)
|
|
222
226
|
example = alicloud.cr.RegistryEnterpriseInstance("example",
|
|
223
227
|
payment_type="Subscription",
|
|
224
228
|
period=1,
|
|
225
229
|
renew_period=0,
|
|
226
230
|
renewal_status="ManualRenewal",
|
|
227
231
|
instance_type="Advanced",
|
|
228
|
-
instance_name=name)
|
|
232
|
+
instance_name=f"{name}-{default['result']}")
|
|
229
233
|
example_chart_namespace = alicloud.cr.ChartNamespace("example",
|
|
230
234
|
instance_id=example.id,
|
|
231
|
-
namespace_name=name)
|
|
235
|
+
namespace_name=f"{name}-{default['result']}")
|
|
232
236
|
example_chart_repository = alicloud.cr.ChartRepository("example",
|
|
233
237
|
repo_namespace_name=example_chart_namespace.namespace_name,
|
|
234
238
|
instance_id=example_chart_namespace.instance_id,
|
|
235
|
-
repo_name=name)
|
|
239
|
+
repo_name=f"{name}-{default['result']}")
|
|
236
240
|
```
|
|
237
241
|
|
|
238
242
|
## Import
|
|
@@ -271,25 +275,29 @@ class ChartRepository(pulumi.CustomResource):
|
|
|
271
275
|
```python
|
|
272
276
|
import pulumi
|
|
273
277
|
import pulumi_alicloud as alicloud
|
|
278
|
+
import pulumi_random as random
|
|
274
279
|
|
|
275
280
|
config = pulumi.Config()
|
|
276
281
|
name = config.get("name")
|
|
277
282
|
if name is None:
|
|
278
283
|
name = "tf-example"
|
|
284
|
+
default = random.index.Integer("default",
|
|
285
|
+
min=100000,
|
|
286
|
+
max=999999)
|
|
279
287
|
example = alicloud.cr.RegistryEnterpriseInstance("example",
|
|
280
288
|
payment_type="Subscription",
|
|
281
289
|
period=1,
|
|
282
290
|
renew_period=0,
|
|
283
291
|
renewal_status="ManualRenewal",
|
|
284
292
|
instance_type="Advanced",
|
|
285
|
-
instance_name=name)
|
|
293
|
+
instance_name=f"{name}-{default['result']}")
|
|
286
294
|
example_chart_namespace = alicloud.cr.ChartNamespace("example",
|
|
287
295
|
instance_id=example.id,
|
|
288
|
-
namespace_name=name)
|
|
296
|
+
namespace_name=f"{name}-{default['result']}")
|
|
289
297
|
example_chart_repository = alicloud.cr.ChartRepository("example",
|
|
290
298
|
repo_namespace_name=example_chart_namespace.namespace_name,
|
|
291
299
|
instance_id=example_chart_namespace.instance_id,
|
|
292
|
-
repo_name=name)
|
|
300
|
+
repo_name=f"{name}-{default['result']}")
|
|
293
301
|
```
|
|
294
302
|
|
|
295
303
|
## Import
|
pulumi_alicloud/cr/repo.py
CHANGED
|
@@ -115,7 +115,7 @@ class _RepoState:
|
|
|
115
115
|
"""
|
|
116
116
|
Input properties used for looking up and filtering Repo resources.
|
|
117
117
|
:param pulumi.Input[str] detail: The repository specific information. MarkDown format is supported, and the length limit is 2000.
|
|
118
|
-
:param pulumi.Input['RepoDomainListArgs'] domain_list: The repository domain list.
|
|
118
|
+
:param pulumi.Input['RepoDomainListArgs'] domain_list: (Optional) The repository domain list.
|
|
119
119
|
:param pulumi.Input[str] name: Name of container registry repository.
|
|
120
120
|
:param pulumi.Input[str] namespace: Name of container registry namespace where repository is located.
|
|
121
121
|
:param pulumi.Input[str] repo_type: `PUBLIC` or `PRIVATE`, repo's visibility.
|
|
@@ -150,7 +150,7 @@ class _RepoState:
|
|
|
150
150
|
@pulumi.getter(name="domainList")
|
|
151
151
|
def domain_list(self) -> Optional[pulumi.Input['RepoDomainListArgs']]:
|
|
152
152
|
"""
|
|
153
|
-
The repository domain list.
|
|
153
|
+
(Optional) The repository domain list.
|
|
154
154
|
"""
|
|
155
155
|
return pulumi.get(self, "domain_list")
|
|
156
156
|
|
|
@@ -245,8 +245,8 @@ class Repo(pulumi.CustomResource):
|
|
|
245
245
|
namespace=example.name,
|
|
246
246
|
name=name,
|
|
247
247
|
summary="this is summary of my new repo",
|
|
248
|
-
repo_type="
|
|
249
|
-
detail="this is a
|
|
248
|
+
repo_type="PRIVATE",
|
|
249
|
+
detail="this is a private repo")
|
|
250
250
|
```
|
|
251
251
|
|
|
252
252
|
## Import
|
|
@@ -298,8 +298,8 @@ class Repo(pulumi.CustomResource):
|
|
|
298
298
|
namespace=example.name,
|
|
299
299
|
name=name,
|
|
300
300
|
summary="this is summary of my new repo",
|
|
301
|
-
repo_type="
|
|
302
|
-
detail="this is a
|
|
301
|
+
repo_type="PRIVATE",
|
|
302
|
+
detail="this is a private repo")
|
|
303
303
|
```
|
|
304
304
|
|
|
305
305
|
## Import
|
|
@@ -375,7 +375,7 @@ class Repo(pulumi.CustomResource):
|
|
|
375
375
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
376
376
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
377
377
|
:param pulumi.Input[str] detail: The repository specific information. MarkDown format is supported, and the length limit is 2000.
|
|
378
|
-
:param pulumi.Input[Union['RepoDomainListArgs', 'RepoDomainListArgsDict']] domain_list: The repository domain list.
|
|
378
|
+
:param pulumi.Input[Union['RepoDomainListArgs', 'RepoDomainListArgsDict']] domain_list: (Optional) The repository domain list.
|
|
379
379
|
:param pulumi.Input[str] name: Name of container registry repository.
|
|
380
380
|
:param pulumi.Input[str] namespace: Name of container registry namespace where repository is located.
|
|
381
381
|
:param pulumi.Input[str] repo_type: `PUBLIC` or `PRIVATE`, repo's visibility.
|
|
@@ -405,7 +405,7 @@ class Repo(pulumi.CustomResource):
|
|
|
405
405
|
@pulumi.getter(name="domainList")
|
|
406
406
|
def domain_list(self) -> pulumi.Output['outputs.RepoDomainList']:
|
|
407
407
|
"""
|
|
408
|
-
The repository domain list.
|
|
408
|
+
(Optional) The repository domain list.
|
|
409
409
|
"""
|
|
410
410
|
return pulumi.get(self, "domain_list")
|
|
411
411
|
|
|
@@ -237,17 +237,21 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
237
237
|
```python
|
|
238
238
|
import pulumi
|
|
239
239
|
import pulumi_alicloud as alicloud
|
|
240
|
+
import pulumi_random as random
|
|
240
241
|
|
|
241
242
|
config = pulumi.Config()
|
|
242
243
|
name = config.get("name")
|
|
243
244
|
if name is None:
|
|
244
245
|
name = "tf-example"
|
|
246
|
+
default_integer = random.index.Integer("default",
|
|
247
|
+
min=100000,
|
|
248
|
+
max=999999)
|
|
245
249
|
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
246
250
|
default_network = alicloud.vpc.Network("default",
|
|
247
|
-
vpc_name=name,
|
|
251
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
248
252
|
cidr_block="10.4.0.0/16")
|
|
249
253
|
default_switch = alicloud.vpc.Switch("default",
|
|
250
|
-
vswitch_name=name,
|
|
254
|
+
vswitch_name=f"{name}-{default_integer['result']}",
|
|
251
255
|
cidr_block="10.4.0.0/24",
|
|
252
256
|
vpc_id=default_network.id,
|
|
253
257
|
zone_id=default.zones[0].id)
|
|
@@ -257,7 +261,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
257
261
|
renew_period=0,
|
|
258
262
|
renewal_status="ManualRenewal",
|
|
259
263
|
instance_type="Advanced",
|
|
260
|
-
instance_name=name)
|
|
264
|
+
instance_name=f"{name}-{default_integer['result']}")
|
|
261
265
|
default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
|
|
262
266
|
instance_id=default_registry_enterprise_instance.id,
|
|
263
267
|
vpc_id=default_network.id,
|
|
@@ -304,17 +308,21 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
304
308
|
```python
|
|
305
309
|
import pulumi
|
|
306
310
|
import pulumi_alicloud as alicloud
|
|
311
|
+
import pulumi_random as random
|
|
307
312
|
|
|
308
313
|
config = pulumi.Config()
|
|
309
314
|
name = config.get("name")
|
|
310
315
|
if name is None:
|
|
311
316
|
name = "tf-example"
|
|
317
|
+
default_integer = random.index.Integer("default",
|
|
318
|
+
min=100000,
|
|
319
|
+
max=999999)
|
|
312
320
|
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
313
321
|
default_network = alicloud.vpc.Network("default",
|
|
314
|
-
vpc_name=name,
|
|
322
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
315
323
|
cidr_block="10.4.0.0/16")
|
|
316
324
|
default_switch = alicloud.vpc.Switch("default",
|
|
317
|
-
vswitch_name=name,
|
|
325
|
+
vswitch_name=f"{name}-{default_integer['result']}",
|
|
318
326
|
cidr_block="10.4.0.0/24",
|
|
319
327
|
vpc_id=default_network.id,
|
|
320
328
|
zone_id=default.zones[0].id)
|
|
@@ -324,7 +332,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
324
332
|
renew_period=0,
|
|
325
333
|
renewal_status="ManualRenewal",
|
|
326
334
|
instance_type="Advanced",
|
|
327
|
-
instance_name=name)
|
|
335
|
+
instance_name=f"{name}-{default_integer['result']}")
|
|
328
336
|
default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
|
|
329
337
|
instance_id=default_registry_enterprise_instance.id,
|
|
330
338
|
vpc_id=default_network.id,
|
pulumi_alicloud/cs/_inputs.py
CHANGED
|
@@ -2304,7 +2304,7 @@ if not MYPY:
|
|
|
2304
2304
|
class ManagedKubernetesOperationPolicyClusterAutoUpgradeArgsDict(TypedDict):
|
|
2305
2305
|
channel: NotRequired[pulumi.Input[str]]
|
|
2306
2306
|
"""
|
|
2307
|
-
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
2307
|
+
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
2308
2308
|
|
|
2309
2309
|
for example:
|
|
2310
2310
|
```
|
|
@@ -2329,7 +2329,7 @@ class ManagedKubernetesOperationPolicyClusterAutoUpgradeArgs:
|
|
|
2329
2329
|
channel: Optional[pulumi.Input[str]] = None,
|
|
2330
2330
|
enabled: Optional[pulumi.Input[bool]] = None):
|
|
2331
2331
|
"""
|
|
2332
|
-
:param pulumi.Input[str] channel: The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
2332
|
+
:param pulumi.Input[str] channel: The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
2333
2333
|
|
|
2334
2334
|
for example:
|
|
2335
2335
|
```
|
|
@@ -2351,7 +2351,7 @@ class ManagedKubernetesOperationPolicyClusterAutoUpgradeArgs:
|
|
|
2351
2351
|
@pulumi.getter
|
|
2352
2352
|
def channel(self) -> Optional[pulumi.Input[str]]:
|
|
2353
2353
|
"""
|
|
2354
|
-
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
2354
|
+
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
2355
2355
|
|
|
2356
2356
|
for example:
|
|
2357
2357
|
```
|
|
@@ -4427,7 +4427,7 @@ if not MYPY:
|
|
|
4427
4427
|
class ServerlessKubernetesOperationPolicyClusterAutoUpgradeArgsDict(TypedDict):
|
|
4428
4428
|
channel: NotRequired[pulumi.Input[str]]
|
|
4429
4429
|
"""
|
|
4430
|
-
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
4430
|
+
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
4431
4431
|
|
|
4432
4432
|
for example:
|
|
4433
4433
|
```
|
|
@@ -4452,7 +4452,7 @@ class ServerlessKubernetesOperationPolicyClusterAutoUpgradeArgs:
|
|
|
4452
4452
|
channel: Optional[pulumi.Input[str]] = None,
|
|
4453
4453
|
enabled: Optional[pulumi.Input[bool]] = None):
|
|
4454
4454
|
"""
|
|
4455
|
-
:param pulumi.Input[str] channel: The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
4455
|
+
:param pulumi.Input[str] channel: The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
4456
4456
|
|
|
4457
4457
|
for example:
|
|
4458
4458
|
```
|
|
@@ -4474,7 +4474,7 @@ class ServerlessKubernetesOperationPolicyClusterAutoUpgradeArgs:
|
|
|
4474
4474
|
@pulumi.getter
|
|
4475
4475
|
def channel(self) -> Optional[pulumi.Input[str]]:
|
|
4476
4476
|
"""
|
|
4477
|
-
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
4477
|
+
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
4478
4478
|
|
|
4479
4479
|
for example:
|
|
4480
4480
|
```
|
pulumi_alicloud/cs/outputs.py
CHANGED
|
@@ -1729,7 +1729,7 @@ class ManagedKubernetesOperationPolicyClusterAutoUpgrade(dict):
|
|
|
1729
1729
|
channel: Optional[str] = None,
|
|
1730
1730
|
enabled: Optional[bool] = None):
|
|
1731
1731
|
"""
|
|
1732
|
-
:param str channel: The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
1732
|
+
:param str channel: The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
1733
1733
|
|
|
1734
1734
|
for example:
|
|
1735
1735
|
```
|
|
@@ -1751,7 +1751,7 @@ class ManagedKubernetesOperationPolicyClusterAutoUpgrade(dict):
|
|
|
1751
1751
|
@pulumi.getter
|
|
1752
1752
|
def channel(self) -> Optional[str]:
|
|
1753
1753
|
"""
|
|
1754
|
-
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
1754
|
+
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
1755
1755
|
|
|
1756
1756
|
for example:
|
|
1757
1757
|
```
|
|
@@ -3355,7 +3355,7 @@ class ServerlessKubernetesOperationPolicyClusterAutoUpgrade(dict):
|
|
|
3355
3355
|
channel: Optional[str] = None,
|
|
3356
3356
|
enabled: Optional[bool] = None):
|
|
3357
3357
|
"""
|
|
3358
|
-
:param str channel: The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
3358
|
+
:param str channel: The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
3359
3359
|
|
|
3360
3360
|
for example:
|
|
3361
3361
|
```
|
|
@@ -3377,7 +3377,7 @@ class ServerlessKubernetesOperationPolicyClusterAutoUpgrade(dict):
|
|
|
3377
3377
|
@pulumi.getter
|
|
3378
3378
|
def channel(self) -> Optional[str]:
|
|
3379
3379
|
"""
|
|
3380
|
-
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `
|
|
3380
|
+
The automatic cluster upgrade channel. Valid values: `patch`, `stable`, `rapid`.
|
|
3381
3381
|
|
|
3382
3382
|
for example:
|
|
3383
3383
|
```
|
|
@@ -24,7 +24,7 @@ class InstanceAttachmentArgs:
|
|
|
24
24
|
"""
|
|
25
25
|
The set of arguments for constructing a InstanceAttachment resource.
|
|
26
26
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
27
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
27
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
28
28
|
"""
|
|
29
29
|
pulumi.set(__self__, "ecs_id", ecs_id)
|
|
30
30
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
@@ -45,7 +45,7 @@ class InstanceAttachmentArgs:
|
|
|
45
45
|
@pulumi.getter(name="instanceId")
|
|
46
46
|
def instance_id(self) -> pulumi.Input[str]:
|
|
47
47
|
"""
|
|
48
|
-
The ID of the
|
|
48
|
+
The ID of the Database File System.
|
|
49
49
|
"""
|
|
50
50
|
return pulumi.get(self, "instance_id")
|
|
51
51
|
|
|
@@ -63,8 +63,8 @@ class _InstanceAttachmentState:
|
|
|
63
63
|
"""
|
|
64
64
|
Input properties used for looking up and filtering InstanceAttachment resources.
|
|
65
65
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
66
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
67
|
-
:param pulumi.Input[str] status: The status of
|
|
66
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
67
|
+
:param pulumi.Input[str] status: The status of Instance Attachment.
|
|
68
68
|
"""
|
|
69
69
|
if ecs_id is not None:
|
|
70
70
|
pulumi.set(__self__, "ecs_id", ecs_id)
|
|
@@ -89,7 +89,7 @@ class _InstanceAttachmentState:
|
|
|
89
89
|
@pulumi.getter(name="instanceId")
|
|
90
90
|
def instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
91
91
|
"""
|
|
92
|
-
The ID of the
|
|
92
|
+
The ID of the Database File System.
|
|
93
93
|
"""
|
|
94
94
|
return pulumi.get(self, "instance_id")
|
|
95
95
|
|
|
@@ -101,7 +101,7 @@ class _InstanceAttachmentState:
|
|
|
101
101
|
@pulumi.getter
|
|
102
102
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
103
103
|
"""
|
|
104
|
-
The status of
|
|
104
|
+
The status of Instance Attachment.
|
|
105
105
|
"""
|
|
106
106
|
return pulumi.get(self, "status")
|
|
107
107
|
|
|
@@ -119,9 +119,9 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
119
119
|
instance_id: Optional[pulumi.Input[str]] = None,
|
|
120
120
|
__props__=None):
|
|
121
121
|
"""
|
|
122
|
-
Provides a DBFS Instance Attachment resource.
|
|
122
|
+
Provides a Database File System (DBFS) Instance Attachment resource.
|
|
123
123
|
|
|
124
|
-
For information about DBFS Instance Attachment and how to use it.
|
|
124
|
+
For information about Database File System (DBFS) Instance Attachment and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-attachdbfs).
|
|
125
125
|
|
|
126
126
|
> **NOTE:** Available since v1.156.0.
|
|
127
127
|
|
|
@@ -136,41 +136,39 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
136
136
|
config = pulumi.Config()
|
|
137
137
|
name = config.get("name")
|
|
138
138
|
if name is None:
|
|
139
|
-
name = "
|
|
139
|
+
name = "terraform-example"
|
|
140
140
|
zone_id = "cn-hangzhou-i"
|
|
141
|
-
|
|
141
|
+
default = alicloud.databasefilesystem.get_instances()
|
|
142
|
+
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
142
143
|
instance_type_family="ecs.g7se")
|
|
143
|
-
|
|
144
|
-
name_regex="^
|
|
144
|
+
default_get_images = alicloud.ecs.get_images(instance_type=default_get_instance_types.instance_types[0].id,
|
|
145
|
+
name_regex="^aliyun_2_19",
|
|
145
146
|
owners="system")
|
|
146
|
-
|
|
147
|
-
default_get_switches = alicloud.vpc.get_switches(vpc_id=
|
|
147
|
+
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
|
|
148
|
+
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
|
|
148
149
|
zone_id=zone_id)
|
|
149
|
-
|
|
150
|
+
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
150
151
|
name=name,
|
|
151
|
-
vpc_id=
|
|
152
|
+
vpc_id=default_get_networks.ids[0])
|
|
152
153
|
default_instance = alicloud.ecs.Instance("default",
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
image_id=default_get_images.images[0].id,
|
|
155
|
+
instance_type=default_get_instance_types.instance_types[0].id,
|
|
156
|
+
security_groups=[__item.id for __item in [default_security_group]],
|
|
157
|
+
internet_charge_type="PayByTraffic",
|
|
158
|
+
internet_max_bandwidth_out=10,
|
|
159
|
+
availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
160
|
+
instance_charge_type="PostPaid",
|
|
161
|
+
system_disk_category="cloud_essd",
|
|
158
162
|
vswitch_id=default_get_switches.ids[0],
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
performance_level="PL1",
|
|
164
|
-
fs_name=name,
|
|
165
|
-
size=100)
|
|
166
|
-
example_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("example",
|
|
167
|
-
ecs_id=default_instance.id,
|
|
168
|
-
instance_id=default_instance2.id)
|
|
163
|
+
instance_name=name)
|
|
164
|
+
default_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("default",
|
|
165
|
+
instance_id=default.instances[0].id,
|
|
166
|
+
ecs_id=default_instance.id)
|
|
169
167
|
```
|
|
170
168
|
|
|
171
169
|
## Import
|
|
172
170
|
|
|
173
|
-
DBFS Instance Attachment can be imported using the id, e.g.
|
|
171
|
+
Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
|
|
174
172
|
|
|
175
173
|
```sh
|
|
176
174
|
$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -179,7 +177,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
179
177
|
:param str resource_name: The name of the resource.
|
|
180
178
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
181
179
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
182
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
180
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
183
181
|
"""
|
|
184
182
|
...
|
|
185
183
|
@overload
|
|
@@ -188,9 +186,9 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
188
186
|
args: InstanceAttachmentArgs,
|
|
189
187
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
190
188
|
"""
|
|
191
|
-
Provides a DBFS Instance Attachment resource.
|
|
189
|
+
Provides a Database File System (DBFS) Instance Attachment resource.
|
|
192
190
|
|
|
193
|
-
For information about DBFS Instance Attachment and how to use it.
|
|
191
|
+
For information about Database File System (DBFS) Instance Attachment and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-attachdbfs).
|
|
194
192
|
|
|
195
193
|
> **NOTE:** Available since v1.156.0.
|
|
196
194
|
|
|
@@ -205,41 +203,39 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
205
203
|
config = pulumi.Config()
|
|
206
204
|
name = config.get("name")
|
|
207
205
|
if name is None:
|
|
208
|
-
name = "
|
|
206
|
+
name = "terraform-example"
|
|
209
207
|
zone_id = "cn-hangzhou-i"
|
|
210
|
-
|
|
208
|
+
default = alicloud.databasefilesystem.get_instances()
|
|
209
|
+
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
211
210
|
instance_type_family="ecs.g7se")
|
|
212
|
-
|
|
213
|
-
name_regex="^
|
|
211
|
+
default_get_images = alicloud.ecs.get_images(instance_type=default_get_instance_types.instance_types[0].id,
|
|
212
|
+
name_regex="^aliyun_2_19",
|
|
214
213
|
owners="system")
|
|
215
|
-
|
|
216
|
-
default_get_switches = alicloud.vpc.get_switches(vpc_id=
|
|
214
|
+
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
|
|
215
|
+
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
|
|
217
216
|
zone_id=zone_id)
|
|
218
|
-
|
|
217
|
+
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
219
218
|
name=name,
|
|
220
|
-
vpc_id=
|
|
219
|
+
vpc_id=default_get_networks.ids[0])
|
|
221
220
|
default_instance = alicloud.ecs.Instance("default",
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
221
|
+
image_id=default_get_images.images[0].id,
|
|
222
|
+
instance_type=default_get_instance_types.instance_types[0].id,
|
|
223
|
+
security_groups=[__item.id for __item in [default_security_group]],
|
|
224
|
+
internet_charge_type="PayByTraffic",
|
|
225
|
+
internet_max_bandwidth_out=10,
|
|
226
|
+
availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
227
|
+
instance_charge_type="PostPaid",
|
|
228
|
+
system_disk_category="cloud_essd",
|
|
227
229
|
vswitch_id=default_get_switches.ids[0],
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
performance_level="PL1",
|
|
233
|
-
fs_name=name,
|
|
234
|
-
size=100)
|
|
235
|
-
example_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("example",
|
|
236
|
-
ecs_id=default_instance.id,
|
|
237
|
-
instance_id=default_instance2.id)
|
|
230
|
+
instance_name=name)
|
|
231
|
+
default_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("default",
|
|
232
|
+
instance_id=default.instances[0].id,
|
|
233
|
+
ecs_id=default_instance.id)
|
|
238
234
|
```
|
|
239
235
|
|
|
240
236
|
## Import
|
|
241
237
|
|
|
242
|
-
DBFS Instance Attachment can be imported using the id, e.g.
|
|
238
|
+
Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
|
|
243
239
|
|
|
244
240
|
```sh
|
|
245
241
|
$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -299,8 +295,8 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
299
295
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
300
296
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
301
297
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
302
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
303
|
-
:param pulumi.Input[str] status: The status of
|
|
298
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
299
|
+
:param pulumi.Input[str] status: The status of Instance Attachment.
|
|
304
300
|
"""
|
|
305
301
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
306
302
|
|
|
@@ -323,7 +319,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
323
319
|
@pulumi.getter(name="instanceId")
|
|
324
320
|
def instance_id(self) -> pulumi.Output[str]:
|
|
325
321
|
"""
|
|
326
|
-
The ID of the
|
|
322
|
+
The ID of the Database File System.
|
|
327
323
|
"""
|
|
328
324
|
return pulumi.get(self, "instance_id")
|
|
329
325
|
|
|
@@ -331,7 +327,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
331
327
|
@pulumi.getter
|
|
332
328
|
def status(self) -> pulumi.Output[str]:
|
|
333
329
|
"""
|
|
334
|
-
The status of
|
|
330
|
+
The status of Instance Attachment.
|
|
335
331
|
"""
|
|
336
332
|
return pulumi.get(self, "status")
|
|
337
333
|
|