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
pulumi_alicloud/__init__.py
CHANGED
|
@@ -213,6 +213,8 @@ if typing.TYPE_CHECKING:
|
|
|
213
213
|
oss = __oss
|
|
214
214
|
import pulumi_alicloud.ots as __ots
|
|
215
215
|
ots = __ots
|
|
216
|
+
import pulumi_alicloud.pai as __pai
|
|
217
|
+
pai = __pai
|
|
216
218
|
import pulumi_alicloud.polardb as __polardb
|
|
217
219
|
polardb = __polardb
|
|
218
220
|
import pulumi_alicloud.privatelink as __privatelink
|
|
@@ -381,6 +383,7 @@ else:
|
|
|
381
383
|
opensearch = _utilities.lazy_import('pulumi_alicloud.opensearch')
|
|
382
384
|
oss = _utilities.lazy_import('pulumi_alicloud.oss')
|
|
383
385
|
ots = _utilities.lazy_import('pulumi_alicloud.ots')
|
|
386
|
+
pai = _utilities.lazy_import('pulumi_alicloud.pai')
|
|
384
387
|
polardb = _utilities.lazy_import('pulumi_alicloud.polardb')
|
|
385
388
|
privatelink = _utilities.lazy_import('pulumi_alicloud.privatelink')
|
|
386
389
|
pvtz = _utilities.lazy_import('pulumi_alicloud.pvtz')
|
|
@@ -5165,6 +5168,14 @@ _utilities.register(
|
|
|
5165
5168
|
"alicloud:mse/gateway:Gateway": "Gateway"
|
|
5166
5169
|
}
|
|
5167
5170
|
},
|
|
5171
|
+
{
|
|
5172
|
+
"pkg": "alicloud",
|
|
5173
|
+
"mod": "mse/nacosConfig",
|
|
5174
|
+
"fqn": "pulumi_alicloud.mse",
|
|
5175
|
+
"classes": {
|
|
5176
|
+
"alicloud:mse/nacosConfig:NacosConfig": "NacosConfig"
|
|
5177
|
+
}
|
|
5178
|
+
},
|
|
5168
5179
|
{
|
|
5169
5180
|
"pkg": "alicloud",
|
|
5170
5181
|
"mod": "mse/znode",
|
|
@@ -5629,6 +5640,14 @@ _utilities.register(
|
|
|
5629
5640
|
"alicloud:ots/tunnel:Tunnel": "Tunnel"
|
|
5630
5641
|
}
|
|
5631
5642
|
},
|
|
5643
|
+
{
|
|
5644
|
+
"pkg": "alicloud",
|
|
5645
|
+
"mod": "pai/workspaceWorkspace",
|
|
5646
|
+
"fqn": "pulumi_alicloud.pai",
|
|
5647
|
+
"classes": {
|
|
5648
|
+
"alicloud:pai/workspaceWorkspace:WorkspaceWorkspace": "WorkspaceWorkspace"
|
|
5649
|
+
}
|
|
5650
|
+
},
|
|
5632
5651
|
{
|
|
5633
5652
|
"pkg": "alicloud",
|
|
5634
5653
|
"mod": "polardb/account",
|
|
@@ -850,7 +850,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
850
850
|
|
|
851
851
|
@property
|
|
852
852
|
@pulumi.getter(name="bandwidthPackageId")
|
|
853
|
-
def bandwidth_package_id(self) -> pulumi.Output[
|
|
853
|
+
def bandwidth_package_id(self) -> pulumi.Output[str]:
|
|
854
854
|
"""
|
|
855
855
|
The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
|
|
856
856
|
"""
|
|
@@ -31,7 +31,7 @@ class EnvironmentArgs:
|
|
|
31
31
|
"""
|
|
32
32
|
The set of arguments for constructing a Environment resource.
|
|
33
33
|
:param pulumi.Input[str] environment_sub_type: Subtype of environment:
|
|
34
|
-
- Type of CS: ACK is currently supported.
|
|
34
|
+
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
|
|
35
35
|
- Type of ECS: currently supports ECS.
|
|
36
36
|
- Type of Cloud: currently supports Cloud.
|
|
37
37
|
:param pulumi.Input[str] environment_type: Type of environment.
|
|
@@ -68,7 +68,7 @@ class EnvironmentArgs:
|
|
|
68
68
|
def environment_sub_type(self) -> pulumi.Input[str]:
|
|
69
69
|
"""
|
|
70
70
|
Subtype of environment:
|
|
71
|
-
- Type of CS: ACK is currently supported.
|
|
71
|
+
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
|
|
72
72
|
- Type of ECS: currently supports ECS.
|
|
73
73
|
- Type of Cloud: currently supports Cloud.
|
|
74
74
|
"""
|
|
@@ -199,7 +199,7 @@ class _EnvironmentState:
|
|
|
199
199
|
:param pulumi.Input[str] environment_id: The first ID of the resource.
|
|
200
200
|
:param pulumi.Input[str] environment_name: The name of the resource.
|
|
201
201
|
:param pulumi.Input[str] environment_sub_type: Subtype of environment:
|
|
202
|
-
- Type of CS: ACK is currently supported.
|
|
202
|
+
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
|
|
203
203
|
- Type of ECS: currently supports ECS.
|
|
204
204
|
- Type of Cloud: currently supports Cloud.
|
|
205
205
|
:param pulumi.Input[str] environment_type: Type of environment.
|
|
@@ -296,7 +296,7 @@ class _EnvironmentState:
|
|
|
296
296
|
def environment_sub_type(self) -> Optional[pulumi.Input[str]]:
|
|
297
297
|
"""
|
|
298
298
|
Subtype of environment:
|
|
299
|
-
- Type of CS: ACK is currently supported.
|
|
299
|
+
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
|
|
300
300
|
- Type of ECS: currently supports ECS.
|
|
301
301
|
- Type of Cloud: currently supports Cloud.
|
|
302
302
|
"""
|
|
@@ -395,7 +395,7 @@ class Environment(pulumi.CustomResource):
|
|
|
395
395
|
:param pulumi.Input[str] drop_metrics: List of abandoned indicators.
|
|
396
396
|
:param pulumi.Input[str] environment_name: The name of the resource.
|
|
397
397
|
:param pulumi.Input[str] environment_sub_type: Subtype of environment:
|
|
398
|
-
- Type of CS: ACK is currently supported.
|
|
398
|
+
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
|
|
399
399
|
- Type of ECS: currently supports ECS.
|
|
400
400
|
- Type of Cloud: currently supports Cloud.
|
|
401
401
|
:param pulumi.Input[str] environment_type: Type of environment.
|
|
@@ -507,7 +507,7 @@ class Environment(pulumi.CustomResource):
|
|
|
507
507
|
:param pulumi.Input[str] environment_id: The first ID of the resource.
|
|
508
508
|
:param pulumi.Input[str] environment_name: The name of the resource.
|
|
509
509
|
:param pulumi.Input[str] environment_sub_type: Subtype of environment:
|
|
510
|
-
- Type of CS: ACK is currently supported.
|
|
510
|
+
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
|
|
511
511
|
- Type of ECS: currently supports ECS.
|
|
512
512
|
- Type of Cloud: currently supports Cloud.
|
|
513
513
|
:param pulumi.Input[str] environment_type: Type of environment.
|
|
@@ -579,7 +579,7 @@ class Environment(pulumi.CustomResource):
|
|
|
579
579
|
def environment_sub_type(self) -> pulumi.Output[str]:
|
|
580
580
|
"""
|
|
581
581
|
Subtype of environment:
|
|
582
|
-
- Type of CS: ACK is currently supported.
|
|
582
|
+
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
|
|
583
583
|
- Type of ECS: currently supports ECS.
|
|
584
584
|
- Type of Cloud: currently supports Cloud.
|
|
585
585
|
"""
|
|
@@ -121,9 +121,9 @@ def get_remote_writes(cluster_id: Optional[str] = None,
|
|
|
121
121
|
"""
|
|
122
122
|
This data source provides the Arms Remote Writes of the current Alibaba Cloud user.
|
|
123
123
|
|
|
124
|
-
> **NOTE:** Available
|
|
124
|
+
> **NOTE:** Available since v1.204.0.
|
|
125
125
|
|
|
126
|
-
> **
|
|
126
|
+
> **DEPRECATED:** This resource has been deprecated since v1.228.0.
|
|
127
127
|
|
|
128
128
|
## Example Usage
|
|
129
129
|
|
|
@@ -171,9 +171,9 @@ def get_remote_writes_output(cluster_id: Optional[pulumi.Input[str]] = None,
|
|
|
171
171
|
"""
|
|
172
172
|
This data source provides the Arms Remote Writes of the current Alibaba Cloud user.
|
|
173
173
|
|
|
174
|
-
> **NOTE:** Available
|
|
174
|
+
> **NOTE:** Available since v1.204.0.
|
|
175
175
|
|
|
176
|
-
> **
|
|
176
|
+
> **DEPRECATED:** This resource has been deprecated since v1.228.0.
|
|
177
177
|
|
|
178
178
|
## Example Usage
|
|
179
179
|
|
|
@@ -404,6 +404,35 @@ class PrometheusAlertRule(pulumi.CustomResource):
|
|
|
404
404
|
|
|
405
405
|
> **NOTE:** Available since v1.136.0.
|
|
406
406
|
|
|
407
|
+
## Example Usage
|
|
408
|
+
|
|
409
|
+
Basic Usage
|
|
410
|
+
|
|
411
|
+
```python
|
|
412
|
+
import pulumi
|
|
413
|
+
import pulumi_alicloud as alicloud
|
|
414
|
+
import pulumi_random as random
|
|
415
|
+
|
|
416
|
+
config = pulumi.Config()
|
|
417
|
+
name = config.get("name")
|
|
418
|
+
if name is None:
|
|
419
|
+
name = "tf-example"
|
|
420
|
+
default = random.index.Integer("default",
|
|
421
|
+
min=10000,
|
|
422
|
+
max=99999)
|
|
423
|
+
default_prometheus = alicloud.arms.Prometheus("default",
|
|
424
|
+
cluster_type="remote-write",
|
|
425
|
+
cluster_name=f"{name}-{default['result']}",
|
|
426
|
+
grafana_instance_id="free")
|
|
427
|
+
example = alicloud.arms.PrometheusAlertRule("example",
|
|
428
|
+
cluster_id=default_prometheus.cluster_id,
|
|
429
|
+
duration="1",
|
|
430
|
+
expression="node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes * 100 < 10",
|
|
431
|
+
message="node available memory is less than 10%",
|
|
432
|
+
prometheus_alert_rule_name=name,
|
|
433
|
+
notify_type="ALERT_MANAGER")
|
|
434
|
+
```
|
|
435
|
+
|
|
407
436
|
## Import
|
|
408
437
|
|
|
409
438
|
Application Real-Time Monitoring Service (ARMS) Prometheus Alert Rule can be imported using the id, e.g.
|
|
@@ -438,6 +467,35 @@ class PrometheusAlertRule(pulumi.CustomResource):
|
|
|
438
467
|
|
|
439
468
|
> **NOTE:** Available since v1.136.0.
|
|
440
469
|
|
|
470
|
+
## Example Usage
|
|
471
|
+
|
|
472
|
+
Basic Usage
|
|
473
|
+
|
|
474
|
+
```python
|
|
475
|
+
import pulumi
|
|
476
|
+
import pulumi_alicloud as alicloud
|
|
477
|
+
import pulumi_random as random
|
|
478
|
+
|
|
479
|
+
config = pulumi.Config()
|
|
480
|
+
name = config.get("name")
|
|
481
|
+
if name is None:
|
|
482
|
+
name = "tf-example"
|
|
483
|
+
default = random.index.Integer("default",
|
|
484
|
+
min=10000,
|
|
485
|
+
max=99999)
|
|
486
|
+
default_prometheus = alicloud.arms.Prometheus("default",
|
|
487
|
+
cluster_type="remote-write",
|
|
488
|
+
cluster_name=f"{name}-{default['result']}",
|
|
489
|
+
grafana_instance_id="free")
|
|
490
|
+
example = alicloud.arms.PrometheusAlertRule("example",
|
|
491
|
+
cluster_id=default_prometheus.cluster_id,
|
|
492
|
+
duration="1",
|
|
493
|
+
expression="node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes * 100 < 10",
|
|
494
|
+
message="node available memory is less than 10%",
|
|
495
|
+
prometheus_alert_rule_name=name,
|
|
496
|
+
notify_type="ALERT_MANAGER")
|
|
497
|
+
```
|
|
498
|
+
|
|
441
499
|
## Import
|
|
442
500
|
|
|
443
501
|
Application Real-Time Monitoring Service (ARMS) Prometheus Alert Rule can be imported using the id, e.g.
|
|
@@ -125,7 +125,7 @@ class RemoteWrite(pulumi.CustomResource):
|
|
|
125
125
|
|
|
126
126
|
> **NOTE:** Available since v1.204.0.
|
|
127
127
|
|
|
128
|
-
> **
|
|
128
|
+
> **DEPRECATED:** This resource has been deprecated since v1.228.0.
|
|
129
129
|
|
|
130
130
|
## Example Usage
|
|
131
131
|
|
|
@@ -205,7 +205,7 @@ class RemoteWrite(pulumi.CustomResource):
|
|
|
205
205
|
|
|
206
206
|
> **NOTE:** Available since v1.204.0.
|
|
207
207
|
|
|
208
|
-
> **
|
|
208
|
+
> **DEPRECATED:** This resource has been deprecated since v1.228.0.
|
|
209
209
|
|
|
210
210
|
## Example Usage
|
|
211
211
|
|
|
@@ -24,8 +24,8 @@ class TransitRouterRouteTableAssociationArgs:
|
|
|
24
24
|
dry_run: Optional[pulumi.Input[bool]] = None):
|
|
25
25
|
"""
|
|
26
26
|
The set of arguments for constructing a TransitRouterRouteTableAssociation resource.
|
|
27
|
-
:param pulumi.Input[str] transit_router_attachment_id: The ID the
|
|
28
|
-
:param pulumi.Input[str] transit_router_route_table_id: The ID of the
|
|
27
|
+
:param pulumi.Input[str] transit_router_attachment_id: The ID the Transit Router Attachment.
|
|
28
|
+
:param pulumi.Input[str] transit_router_route_table_id: The ID of the Transit Router Route Table.
|
|
29
29
|
:param pulumi.Input[bool] dry_run: The dry run.
|
|
30
30
|
|
|
31
31
|
> **NOTE:** The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZones[API](https://help.aliyun.com/document_detail/261356.html)
|
|
@@ -39,7 +39,7 @@ class TransitRouterRouteTableAssociationArgs:
|
|
|
39
39
|
@pulumi.getter(name="transitRouterAttachmentId")
|
|
40
40
|
def transit_router_attachment_id(self) -> pulumi.Input[str]:
|
|
41
41
|
"""
|
|
42
|
-
The ID the
|
|
42
|
+
The ID the Transit Router Attachment.
|
|
43
43
|
"""
|
|
44
44
|
return pulumi.get(self, "transit_router_attachment_id")
|
|
45
45
|
|
|
@@ -51,7 +51,7 @@ class TransitRouterRouteTableAssociationArgs:
|
|
|
51
51
|
@pulumi.getter(name="transitRouterRouteTableId")
|
|
52
52
|
def transit_router_route_table_id(self) -> pulumi.Input[str]:
|
|
53
53
|
"""
|
|
54
|
-
The ID of the
|
|
54
|
+
The ID of the Transit Router Route Table.
|
|
55
55
|
"""
|
|
56
56
|
return pulumi.get(self, "transit_router_route_table_id")
|
|
57
57
|
|
|
@@ -86,9 +86,9 @@ class _TransitRouterRouteTableAssociationState:
|
|
|
86
86
|
:param pulumi.Input[bool] dry_run: The dry run.
|
|
87
87
|
|
|
88
88
|
> **NOTE:** The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZones[API](https://help.aliyun.com/document_detail/261356.html)
|
|
89
|
-
:param pulumi.Input[str] status: The
|
|
90
|
-
:param pulumi.Input[str] transit_router_attachment_id: The ID the
|
|
91
|
-
:param pulumi.Input[str] transit_router_route_table_id: The ID of the
|
|
89
|
+
:param pulumi.Input[str] status: The status of the Transit Router Route Table Association.
|
|
90
|
+
:param pulumi.Input[str] transit_router_attachment_id: The ID the Transit Router Attachment.
|
|
91
|
+
:param pulumi.Input[str] transit_router_route_table_id: The ID of the Transit Router Route Table.
|
|
92
92
|
"""
|
|
93
93
|
if dry_run is not None:
|
|
94
94
|
pulumi.set(__self__, "dry_run", dry_run)
|
|
@@ -117,7 +117,7 @@ class _TransitRouterRouteTableAssociationState:
|
|
|
117
117
|
@pulumi.getter
|
|
118
118
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
119
119
|
"""
|
|
120
|
-
The
|
|
120
|
+
The status of the Transit Router Route Table Association.
|
|
121
121
|
"""
|
|
122
122
|
return pulumi.get(self, "status")
|
|
123
123
|
|
|
@@ -129,7 +129,7 @@ class _TransitRouterRouteTableAssociationState:
|
|
|
129
129
|
@pulumi.getter(name="transitRouterAttachmentId")
|
|
130
130
|
def transit_router_attachment_id(self) -> Optional[pulumi.Input[str]]:
|
|
131
131
|
"""
|
|
132
|
-
The ID the
|
|
132
|
+
The ID the Transit Router Attachment.
|
|
133
133
|
"""
|
|
134
134
|
return pulumi.get(self, "transit_router_attachment_id")
|
|
135
135
|
|
|
@@ -141,7 +141,7 @@ class _TransitRouterRouteTableAssociationState:
|
|
|
141
141
|
@pulumi.getter(name="transitRouterRouteTableId")
|
|
142
142
|
def transit_router_route_table_id(self) -> Optional[pulumi.Input[str]]:
|
|
143
143
|
"""
|
|
144
|
-
The ID of the
|
|
144
|
+
The ID of the Transit Router Route Table.
|
|
145
145
|
"""
|
|
146
146
|
return pulumi.get(self, "transit_router_route_table_id")
|
|
147
147
|
|
|
@@ -160,7 +160,9 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
160
160
|
transit_router_route_table_id: Optional[pulumi.Input[str]] = None,
|
|
161
161
|
__props__=None):
|
|
162
162
|
"""
|
|
163
|
-
Provides a
|
|
163
|
+
Provides a Cloud Enterprise Network (CEN) Transit Router Route Table Association resource.
|
|
164
|
+
|
|
165
|
+
For information about Cloud Enterprise Network (CEN) Transit Router Route Table Association and how to use it, see [What is Transit Router Route Table Association](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-associatetransitrouterattachmentwithroutetable)
|
|
164
166
|
|
|
165
167
|
> **NOTE:** Available since v1.126.0.
|
|
166
168
|
|
|
@@ -175,57 +177,57 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
175
177
|
config = pulumi.Config()
|
|
176
178
|
name = config.get("name")
|
|
177
179
|
if name is None:
|
|
178
|
-
name = "
|
|
180
|
+
name = "terraform-example"
|
|
179
181
|
default = alicloud.cen.get_transit_router_available_resources()
|
|
180
182
|
master_zone = default.resources[0].master_zones[0]
|
|
181
183
|
slave_zone = default.resources[0].slave_zones[1]
|
|
182
|
-
|
|
184
|
+
default_network = alicloud.vpc.Network("default",
|
|
183
185
|
vpc_name=name,
|
|
184
186
|
cidr_block="192.168.0.0/16")
|
|
185
|
-
|
|
187
|
+
default_master = alicloud.vpc.Switch("default_master",
|
|
186
188
|
vswitch_name=name,
|
|
187
189
|
cidr_block="192.168.1.0/24",
|
|
188
|
-
vpc_id=
|
|
190
|
+
vpc_id=default_network.id,
|
|
189
191
|
zone_id=master_zone)
|
|
190
|
-
|
|
192
|
+
default_slave = alicloud.vpc.Switch("default_slave",
|
|
191
193
|
vswitch_name=name,
|
|
192
194
|
cidr_block="192.168.2.0/24",
|
|
193
|
-
vpc_id=
|
|
195
|
+
vpc_id=default_network.id,
|
|
194
196
|
zone_id=slave_zone)
|
|
195
|
-
|
|
197
|
+
default_instance = alicloud.cen.Instance("default",
|
|
196
198
|
cen_instance_name=name,
|
|
197
199
|
protection_level="REDUCED")
|
|
198
|
-
|
|
200
|
+
default_transit_router = alicloud.cen.TransitRouter("default",
|
|
199
201
|
transit_router_name=name,
|
|
200
|
-
cen_id=
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
cen_id=default_instance.id)
|
|
203
|
+
default_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("default", transit_router_id=default_transit_router.transit_router_id)
|
|
204
|
+
default_transit_router_vpc_attachment = alicloud.cen.TransitRouterVpcAttachment("default",
|
|
205
|
+
cen_id=default_instance.id,
|
|
206
|
+
transit_router_id=default_transit_router.transit_router_id,
|
|
207
|
+
vpc_id=default_network.id,
|
|
208
|
+
transit_router_vpc_attachment_name=name,
|
|
209
|
+
transit_router_attachment_description=name,
|
|
205
210
|
zone_mappings=[
|
|
206
211
|
{
|
|
207
212
|
"zone_id": master_zone,
|
|
208
|
-
"vswitch_id":
|
|
213
|
+
"vswitch_id": default_master.id,
|
|
209
214
|
},
|
|
210
215
|
{
|
|
211
216
|
"zone_id": slave_zone,
|
|
212
|
-
"vswitch_id":
|
|
217
|
+
"vswitch_id": default_slave.id,
|
|
213
218
|
},
|
|
214
|
-
]
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
example_transit_router_route_table_association = alicloud.cen.TransitRouterRouteTableAssociation("example",
|
|
219
|
-
transit_router_route_table_id=example_transit_router_route_table.transit_router_route_table_id,
|
|
220
|
-
transit_router_attachment_id=example_transit_router_vpc_attachment.transit_router_attachment_id)
|
|
219
|
+
])
|
|
220
|
+
default_transit_router_route_table_association = alicloud.cen.TransitRouterRouteTableAssociation("default",
|
|
221
|
+
transit_router_route_table_id=default_transit_router_route_table.transit_router_route_table_id,
|
|
222
|
+
transit_router_attachment_id=default_transit_router_vpc_attachment.transit_router_attachment_id)
|
|
221
223
|
```
|
|
222
224
|
|
|
223
225
|
## Import
|
|
224
226
|
|
|
225
|
-
CEN
|
|
227
|
+
Cloud Enterprise Network (CEN) Transit Router Route Table Association can be imported using the id, e.g.
|
|
226
228
|
|
|
227
229
|
```sh
|
|
228
|
-
$ pulumi import alicloud:cen/transitRouterRouteTableAssociation:TransitRouterRouteTableAssociation
|
|
230
|
+
$ pulumi import alicloud:cen/transitRouterRouteTableAssociation:TransitRouterRouteTableAssociation example <transit_router_id>:<transit_router_attachment_id>
|
|
229
231
|
```
|
|
230
232
|
|
|
231
233
|
:param str resource_name: The name of the resource.
|
|
@@ -233,8 +235,8 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
233
235
|
:param pulumi.Input[bool] dry_run: The dry run.
|
|
234
236
|
|
|
235
237
|
> **NOTE:** The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZones[API](https://help.aliyun.com/document_detail/261356.html)
|
|
236
|
-
:param pulumi.Input[str] transit_router_attachment_id: The ID the
|
|
237
|
-
:param pulumi.Input[str] transit_router_route_table_id: The ID of the
|
|
238
|
+
:param pulumi.Input[str] transit_router_attachment_id: The ID the Transit Router Attachment.
|
|
239
|
+
:param pulumi.Input[str] transit_router_route_table_id: The ID of the Transit Router Route Table.
|
|
238
240
|
"""
|
|
239
241
|
...
|
|
240
242
|
@overload
|
|
@@ -243,7 +245,9 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
243
245
|
args: TransitRouterRouteTableAssociationArgs,
|
|
244
246
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
245
247
|
"""
|
|
246
|
-
Provides a
|
|
248
|
+
Provides a Cloud Enterprise Network (CEN) Transit Router Route Table Association resource.
|
|
249
|
+
|
|
250
|
+
For information about Cloud Enterprise Network (CEN) Transit Router Route Table Association and how to use it, see [What is Transit Router Route Table Association](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-associatetransitrouterattachmentwithroutetable)
|
|
247
251
|
|
|
248
252
|
> **NOTE:** Available since v1.126.0.
|
|
249
253
|
|
|
@@ -258,57 +262,57 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
258
262
|
config = pulumi.Config()
|
|
259
263
|
name = config.get("name")
|
|
260
264
|
if name is None:
|
|
261
|
-
name = "
|
|
265
|
+
name = "terraform-example"
|
|
262
266
|
default = alicloud.cen.get_transit_router_available_resources()
|
|
263
267
|
master_zone = default.resources[0].master_zones[0]
|
|
264
268
|
slave_zone = default.resources[0].slave_zones[1]
|
|
265
|
-
|
|
269
|
+
default_network = alicloud.vpc.Network("default",
|
|
266
270
|
vpc_name=name,
|
|
267
271
|
cidr_block="192.168.0.0/16")
|
|
268
|
-
|
|
272
|
+
default_master = alicloud.vpc.Switch("default_master",
|
|
269
273
|
vswitch_name=name,
|
|
270
274
|
cidr_block="192.168.1.0/24",
|
|
271
|
-
vpc_id=
|
|
275
|
+
vpc_id=default_network.id,
|
|
272
276
|
zone_id=master_zone)
|
|
273
|
-
|
|
277
|
+
default_slave = alicloud.vpc.Switch("default_slave",
|
|
274
278
|
vswitch_name=name,
|
|
275
279
|
cidr_block="192.168.2.0/24",
|
|
276
|
-
vpc_id=
|
|
280
|
+
vpc_id=default_network.id,
|
|
277
281
|
zone_id=slave_zone)
|
|
278
|
-
|
|
282
|
+
default_instance = alicloud.cen.Instance("default",
|
|
279
283
|
cen_instance_name=name,
|
|
280
284
|
protection_level="REDUCED")
|
|
281
|
-
|
|
285
|
+
default_transit_router = alicloud.cen.TransitRouter("default",
|
|
282
286
|
transit_router_name=name,
|
|
283
|
-
cen_id=
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
287
|
+
cen_id=default_instance.id)
|
|
288
|
+
default_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("default", transit_router_id=default_transit_router.transit_router_id)
|
|
289
|
+
default_transit_router_vpc_attachment = alicloud.cen.TransitRouterVpcAttachment("default",
|
|
290
|
+
cen_id=default_instance.id,
|
|
291
|
+
transit_router_id=default_transit_router.transit_router_id,
|
|
292
|
+
vpc_id=default_network.id,
|
|
293
|
+
transit_router_vpc_attachment_name=name,
|
|
294
|
+
transit_router_attachment_description=name,
|
|
288
295
|
zone_mappings=[
|
|
289
296
|
{
|
|
290
297
|
"zone_id": master_zone,
|
|
291
|
-
"vswitch_id":
|
|
298
|
+
"vswitch_id": default_master.id,
|
|
292
299
|
},
|
|
293
300
|
{
|
|
294
301
|
"zone_id": slave_zone,
|
|
295
|
-
"vswitch_id":
|
|
302
|
+
"vswitch_id": default_slave.id,
|
|
296
303
|
},
|
|
297
|
-
]
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
example_transit_router_route_table_association = alicloud.cen.TransitRouterRouteTableAssociation("example",
|
|
302
|
-
transit_router_route_table_id=example_transit_router_route_table.transit_router_route_table_id,
|
|
303
|
-
transit_router_attachment_id=example_transit_router_vpc_attachment.transit_router_attachment_id)
|
|
304
|
+
])
|
|
305
|
+
default_transit_router_route_table_association = alicloud.cen.TransitRouterRouteTableAssociation("default",
|
|
306
|
+
transit_router_route_table_id=default_transit_router_route_table.transit_router_route_table_id,
|
|
307
|
+
transit_router_attachment_id=default_transit_router_vpc_attachment.transit_router_attachment_id)
|
|
304
308
|
```
|
|
305
309
|
|
|
306
310
|
## Import
|
|
307
311
|
|
|
308
|
-
CEN
|
|
312
|
+
Cloud Enterprise Network (CEN) Transit Router Route Table Association can be imported using the id, e.g.
|
|
309
313
|
|
|
310
314
|
```sh
|
|
311
|
-
$ pulumi import alicloud:cen/transitRouterRouteTableAssociation:TransitRouterRouteTableAssociation
|
|
315
|
+
$ pulumi import alicloud:cen/transitRouterRouteTableAssociation:TransitRouterRouteTableAssociation example <transit_router_id>:<transit_router_attachment_id>
|
|
312
316
|
```
|
|
313
317
|
|
|
314
318
|
:param str resource_name: The name of the resource.
|
|
@@ -370,9 +374,9 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
370
374
|
:param pulumi.Input[bool] dry_run: The dry run.
|
|
371
375
|
|
|
372
376
|
> **NOTE:** The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZones[API](https://help.aliyun.com/document_detail/261356.html)
|
|
373
|
-
:param pulumi.Input[str] status: The
|
|
374
|
-
:param pulumi.Input[str] transit_router_attachment_id: The ID the
|
|
375
|
-
:param pulumi.Input[str] transit_router_route_table_id: The ID of the
|
|
377
|
+
:param pulumi.Input[str] status: The status of the Transit Router Route Table Association.
|
|
378
|
+
:param pulumi.Input[str] transit_router_attachment_id: The ID the Transit Router Attachment.
|
|
379
|
+
:param pulumi.Input[str] transit_router_route_table_id: The ID of the Transit Router Route Table.
|
|
376
380
|
"""
|
|
377
381
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
378
382
|
|
|
@@ -398,7 +402,7 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
398
402
|
@pulumi.getter
|
|
399
403
|
def status(self) -> pulumi.Output[str]:
|
|
400
404
|
"""
|
|
401
|
-
The
|
|
405
|
+
The status of the Transit Router Route Table Association.
|
|
402
406
|
"""
|
|
403
407
|
return pulumi.get(self, "status")
|
|
404
408
|
|
|
@@ -406,7 +410,7 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
406
410
|
@pulumi.getter(name="transitRouterAttachmentId")
|
|
407
411
|
def transit_router_attachment_id(self) -> pulumi.Output[str]:
|
|
408
412
|
"""
|
|
409
|
-
The ID the
|
|
413
|
+
The ID the Transit Router Attachment.
|
|
410
414
|
"""
|
|
411
415
|
return pulumi.get(self, "transit_router_attachment_id")
|
|
412
416
|
|
|
@@ -414,7 +418,7 @@ class TransitRouterRouteTableAssociation(pulumi.CustomResource):
|
|
|
414
418
|
@pulumi.getter(name="transitRouterRouteTableId")
|
|
415
419
|
def transit_router_route_table_id(self) -> pulumi.Output[str]:
|
|
416
420
|
"""
|
|
417
|
-
The ID of the
|
|
421
|
+
The ID of the Transit Router Route Table.
|
|
418
422
|
"""
|
|
419
423
|
return pulumi.get(self, "transit_router_route_table_id")
|
|
420
424
|
|