pulumi-alicloud 3.56.0a1717175543__py3-none-any.whl → 3.57.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.
- pulumi_alicloud/__init__.py +72 -0
- pulumi_alicloud/cen/get_transit_router_available_resources.py +32 -11
- pulumi_alicloud/cen/outputs.py +23 -1
- pulumi_alicloud/cfg/remediation.py +10 -2
- pulumi_alicloud/clickhouse/db_cluster.py +47 -0
- pulumi_alicloud/cms/__init__.py +1 -0
- pulumi_alicloud/cms/_inputs.py +18 -18
- pulumi_alicloud/cms/alarm.py +38 -26
- pulumi_alicloud/cms/get_site_monitors.py +243 -0
- pulumi_alicloud/cms/outputs.py +92 -18
- pulumi_alicloud/cs/node_pool.py +7 -7
- pulumi_alicloud/ecs/_inputs.py +10 -14
- pulumi_alicloud/ecs/image_import.py +162 -100
- pulumi_alicloud/ecs/outputs.py +10 -14
- pulumi_alicloud/ecs/security_group_rule.py +2 -2
- pulumi_alicloud/eds/network_package.py +22 -8
- pulumi_alicloud/expressconnect/__init__.py +8 -0
- pulumi_alicloud/expressconnect/_inputs.py +40 -0
- pulumi_alicloud/expressconnect/outputs.py +51 -0
- pulumi_alicloud/expressconnect/router_express_connect_router.py +458 -0
- pulumi_alicloud/expressconnect/router_tr_association.py +578 -0
- pulumi_alicloud/expressconnect/router_vbr_child_instance.py +475 -0
- pulumi_alicloud/expressconnect/router_vpc_association.py +500 -0
- pulumi_alicloud/expressconnect/traffic_qos.py +284 -0
- pulumi_alicloud/expressconnect/traffic_qos_association.py +336 -0
- pulumi_alicloud/expressconnect/traffic_qos_queue.py +520 -0
- pulumi_alicloud/expressconnect/traffic_qos_rule.py +1174 -0
- pulumi_alicloud/gpdb/__init__.py +1 -0
- pulumi_alicloud/gpdb/db_resource_group.py +364 -0
- pulumi_alicloud/gpdb/instance.py +47 -0
- pulumi_alicloud/hbase/get_instance_types.py +2 -2
- pulumi_alicloud/mongodb/instance.py +7 -7
- pulumi_alicloud/oss/bucket_cors.py +8 -4
- pulumi_alicloud/oss/bucket_data_redundancy_transition.py +12 -4
- pulumi_alicloud/oss/bucket_public_access_block.py +12 -4
- pulumi_alicloud/ots/instance.py +7 -7
- pulumi_alicloud/ots/table.py +149 -8
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/sae/load_balancer_internet.py +4 -2
- pulumi_alicloud/sae/load_balancer_intranet.py +4 -2
- pulumi_alicloud/servicemesh/_inputs.py +0 -6
- pulumi_alicloud/servicemesh/outputs.py +0 -6
- pulumi_alicloud/servicemesh/service_mesh.py +2 -2
- pulumi_alicloud/simpleapplicationserver/snapshot.py +10 -2
- pulumi_alicloud/vpc/bgp_peer.py +36 -8
- pulumi_alicloud/vpc/network.py +0 -4
- pulumi_alicloud/vpn/connection.py +220 -0
- pulumi_alicloud/vpn/gateway_vpn_attachment.py +2 -2
- pulumi_alicloud/vpn/ipsec_server.py +20 -12
- pulumi_alicloud/vpn/pbr_route_entry.py +152 -16
- pulumi_alicloud/vpn/route_entry.py +158 -44
- {pulumi_alicloud-3.56.0a1717175543.dist-info → pulumi_alicloud-3.57.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.56.0a1717175543.dist-info → pulumi_alicloud-3.57.0.dist-info}/RECORD +55 -45
- {pulumi_alicloud-3.56.0a1717175543.dist-info → pulumi_alicloud-3.57.0.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.56.0a1717175543.dist-info → pulumi_alicloud-3.57.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,578 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from .. import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = ['RouterTrAssociationArgs', 'RouterTrAssociation']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class RouterTrAssociationArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
association_region_id: pulumi.Input[str],
|
|
18
|
+
ecr_id: pulumi.Input[str],
|
|
19
|
+
allowed_prefixes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
20
|
+
cen_id: Optional[pulumi.Input[str]] = None,
|
|
21
|
+
transit_router_id: Optional[pulumi.Input[str]] = None,
|
|
22
|
+
transit_router_owner_id: Optional[pulumi.Input[int]] = None):
|
|
23
|
+
"""
|
|
24
|
+
The set of arguments for constructing a RouterTrAssociation resource.
|
|
25
|
+
:param pulumi.Input[str] association_region_id: The region to which the VPC or TR belongs.
|
|
26
|
+
:param pulumi.Input[str] ecr_id: The ID of the leased line gateway instance.
|
|
27
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_prefixes: List of allowed route prefixes.
|
|
28
|
+
:param pulumi.Input[str] cen_id: The ID of the CEN instance.
|
|
29
|
+
:param pulumi.Input[str] transit_router_id: The ID of the forwarding router instance.
|
|
30
|
+
:param pulumi.Input[int] transit_router_owner_id: The ID of the Alibaba Cloud account to which the forwarding router belongs.
|
|
31
|
+
"""
|
|
32
|
+
pulumi.set(__self__, "association_region_id", association_region_id)
|
|
33
|
+
pulumi.set(__self__, "ecr_id", ecr_id)
|
|
34
|
+
if allowed_prefixes is not None:
|
|
35
|
+
pulumi.set(__self__, "allowed_prefixes", allowed_prefixes)
|
|
36
|
+
if cen_id is not None:
|
|
37
|
+
pulumi.set(__self__, "cen_id", cen_id)
|
|
38
|
+
if transit_router_id is not None:
|
|
39
|
+
pulumi.set(__self__, "transit_router_id", transit_router_id)
|
|
40
|
+
if transit_router_owner_id is not None:
|
|
41
|
+
pulumi.set(__self__, "transit_router_owner_id", transit_router_owner_id)
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
@pulumi.getter(name="associationRegionId")
|
|
45
|
+
def association_region_id(self) -> pulumi.Input[str]:
|
|
46
|
+
"""
|
|
47
|
+
The region to which the VPC or TR belongs.
|
|
48
|
+
"""
|
|
49
|
+
return pulumi.get(self, "association_region_id")
|
|
50
|
+
|
|
51
|
+
@association_region_id.setter
|
|
52
|
+
def association_region_id(self, value: pulumi.Input[str]):
|
|
53
|
+
pulumi.set(self, "association_region_id", value)
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
@pulumi.getter(name="ecrId")
|
|
57
|
+
def ecr_id(self) -> pulumi.Input[str]:
|
|
58
|
+
"""
|
|
59
|
+
The ID of the leased line gateway instance.
|
|
60
|
+
"""
|
|
61
|
+
return pulumi.get(self, "ecr_id")
|
|
62
|
+
|
|
63
|
+
@ecr_id.setter
|
|
64
|
+
def ecr_id(self, value: pulumi.Input[str]):
|
|
65
|
+
pulumi.set(self, "ecr_id", value)
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter(name="allowedPrefixes")
|
|
69
|
+
def allowed_prefixes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
70
|
+
"""
|
|
71
|
+
List of allowed route prefixes.
|
|
72
|
+
"""
|
|
73
|
+
return pulumi.get(self, "allowed_prefixes")
|
|
74
|
+
|
|
75
|
+
@allowed_prefixes.setter
|
|
76
|
+
def allowed_prefixes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
77
|
+
pulumi.set(self, "allowed_prefixes", value)
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
@pulumi.getter(name="cenId")
|
|
81
|
+
def cen_id(self) -> Optional[pulumi.Input[str]]:
|
|
82
|
+
"""
|
|
83
|
+
The ID of the CEN instance.
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "cen_id")
|
|
86
|
+
|
|
87
|
+
@cen_id.setter
|
|
88
|
+
def cen_id(self, value: Optional[pulumi.Input[str]]):
|
|
89
|
+
pulumi.set(self, "cen_id", value)
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
@pulumi.getter(name="transitRouterId")
|
|
93
|
+
def transit_router_id(self) -> Optional[pulumi.Input[str]]:
|
|
94
|
+
"""
|
|
95
|
+
The ID of the forwarding router instance.
|
|
96
|
+
"""
|
|
97
|
+
return pulumi.get(self, "transit_router_id")
|
|
98
|
+
|
|
99
|
+
@transit_router_id.setter
|
|
100
|
+
def transit_router_id(self, value: Optional[pulumi.Input[str]]):
|
|
101
|
+
pulumi.set(self, "transit_router_id", value)
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
@pulumi.getter(name="transitRouterOwnerId")
|
|
105
|
+
def transit_router_owner_id(self) -> Optional[pulumi.Input[int]]:
|
|
106
|
+
"""
|
|
107
|
+
The ID of the Alibaba Cloud account to which the forwarding router belongs.
|
|
108
|
+
"""
|
|
109
|
+
return pulumi.get(self, "transit_router_owner_id")
|
|
110
|
+
|
|
111
|
+
@transit_router_owner_id.setter
|
|
112
|
+
def transit_router_owner_id(self, value: Optional[pulumi.Input[int]]):
|
|
113
|
+
pulumi.set(self, "transit_router_owner_id", value)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@pulumi.input_type
|
|
117
|
+
class _RouterTrAssociationState:
|
|
118
|
+
def __init__(__self__, *,
|
|
119
|
+
allowed_prefixes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
120
|
+
association_id: Optional[pulumi.Input[str]] = None,
|
|
121
|
+
association_region_id: Optional[pulumi.Input[str]] = None,
|
|
122
|
+
cen_id: Optional[pulumi.Input[str]] = None,
|
|
123
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
124
|
+
ecr_id: Optional[pulumi.Input[str]] = None,
|
|
125
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
transit_router_id: Optional[pulumi.Input[str]] = None,
|
|
127
|
+
transit_router_owner_id: Optional[pulumi.Input[int]] = None):
|
|
128
|
+
"""
|
|
129
|
+
Input properties used for looking up and filtering RouterTrAssociation resources.
|
|
130
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_prefixes: List of allowed route prefixes.
|
|
131
|
+
:param pulumi.Input[str] association_id: The first ID of the resource.
|
|
132
|
+
:param pulumi.Input[str] association_region_id: The region to which the VPC or TR belongs.
|
|
133
|
+
:param pulumi.Input[str] cen_id: The ID of the CEN instance.
|
|
134
|
+
:param pulumi.Input[str] create_time: The creation time of the resource.
|
|
135
|
+
:param pulumi.Input[str] ecr_id: The ID of the leased line gateway instance.
|
|
136
|
+
:param pulumi.Input[str] status: The status of the resource.
|
|
137
|
+
:param pulumi.Input[str] transit_router_id: The ID of the forwarding router instance.
|
|
138
|
+
:param pulumi.Input[int] transit_router_owner_id: The ID of the Alibaba Cloud account to which the forwarding router belongs.
|
|
139
|
+
"""
|
|
140
|
+
if allowed_prefixes is not None:
|
|
141
|
+
pulumi.set(__self__, "allowed_prefixes", allowed_prefixes)
|
|
142
|
+
if association_id is not None:
|
|
143
|
+
pulumi.set(__self__, "association_id", association_id)
|
|
144
|
+
if association_region_id is not None:
|
|
145
|
+
pulumi.set(__self__, "association_region_id", association_region_id)
|
|
146
|
+
if cen_id is not None:
|
|
147
|
+
pulumi.set(__self__, "cen_id", cen_id)
|
|
148
|
+
if create_time is not None:
|
|
149
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
150
|
+
if ecr_id is not None:
|
|
151
|
+
pulumi.set(__self__, "ecr_id", ecr_id)
|
|
152
|
+
if status is not None:
|
|
153
|
+
pulumi.set(__self__, "status", status)
|
|
154
|
+
if transit_router_id is not None:
|
|
155
|
+
pulumi.set(__self__, "transit_router_id", transit_router_id)
|
|
156
|
+
if transit_router_owner_id is not None:
|
|
157
|
+
pulumi.set(__self__, "transit_router_owner_id", transit_router_owner_id)
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
@pulumi.getter(name="allowedPrefixes")
|
|
161
|
+
def allowed_prefixes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
162
|
+
"""
|
|
163
|
+
List of allowed route prefixes.
|
|
164
|
+
"""
|
|
165
|
+
return pulumi.get(self, "allowed_prefixes")
|
|
166
|
+
|
|
167
|
+
@allowed_prefixes.setter
|
|
168
|
+
def allowed_prefixes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
169
|
+
pulumi.set(self, "allowed_prefixes", value)
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
@pulumi.getter(name="associationId")
|
|
173
|
+
def association_id(self) -> Optional[pulumi.Input[str]]:
|
|
174
|
+
"""
|
|
175
|
+
The first ID of the resource.
|
|
176
|
+
"""
|
|
177
|
+
return pulumi.get(self, "association_id")
|
|
178
|
+
|
|
179
|
+
@association_id.setter
|
|
180
|
+
def association_id(self, value: Optional[pulumi.Input[str]]):
|
|
181
|
+
pulumi.set(self, "association_id", value)
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
@pulumi.getter(name="associationRegionId")
|
|
185
|
+
def association_region_id(self) -> Optional[pulumi.Input[str]]:
|
|
186
|
+
"""
|
|
187
|
+
The region to which the VPC or TR belongs.
|
|
188
|
+
"""
|
|
189
|
+
return pulumi.get(self, "association_region_id")
|
|
190
|
+
|
|
191
|
+
@association_region_id.setter
|
|
192
|
+
def association_region_id(self, value: Optional[pulumi.Input[str]]):
|
|
193
|
+
pulumi.set(self, "association_region_id", value)
|
|
194
|
+
|
|
195
|
+
@property
|
|
196
|
+
@pulumi.getter(name="cenId")
|
|
197
|
+
def cen_id(self) -> Optional[pulumi.Input[str]]:
|
|
198
|
+
"""
|
|
199
|
+
The ID of the CEN instance.
|
|
200
|
+
"""
|
|
201
|
+
return pulumi.get(self, "cen_id")
|
|
202
|
+
|
|
203
|
+
@cen_id.setter
|
|
204
|
+
def cen_id(self, value: Optional[pulumi.Input[str]]):
|
|
205
|
+
pulumi.set(self, "cen_id", value)
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
@pulumi.getter(name="createTime")
|
|
209
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
210
|
+
"""
|
|
211
|
+
The creation time of the resource.
|
|
212
|
+
"""
|
|
213
|
+
return pulumi.get(self, "create_time")
|
|
214
|
+
|
|
215
|
+
@create_time.setter
|
|
216
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
217
|
+
pulumi.set(self, "create_time", value)
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
@pulumi.getter(name="ecrId")
|
|
221
|
+
def ecr_id(self) -> Optional[pulumi.Input[str]]:
|
|
222
|
+
"""
|
|
223
|
+
The ID of the leased line gateway instance.
|
|
224
|
+
"""
|
|
225
|
+
return pulumi.get(self, "ecr_id")
|
|
226
|
+
|
|
227
|
+
@ecr_id.setter
|
|
228
|
+
def ecr_id(self, value: Optional[pulumi.Input[str]]):
|
|
229
|
+
pulumi.set(self, "ecr_id", value)
|
|
230
|
+
|
|
231
|
+
@property
|
|
232
|
+
@pulumi.getter
|
|
233
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
234
|
+
"""
|
|
235
|
+
The status of the resource.
|
|
236
|
+
"""
|
|
237
|
+
return pulumi.get(self, "status")
|
|
238
|
+
|
|
239
|
+
@status.setter
|
|
240
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
241
|
+
pulumi.set(self, "status", value)
|
|
242
|
+
|
|
243
|
+
@property
|
|
244
|
+
@pulumi.getter(name="transitRouterId")
|
|
245
|
+
def transit_router_id(self) -> Optional[pulumi.Input[str]]:
|
|
246
|
+
"""
|
|
247
|
+
The ID of the forwarding router instance.
|
|
248
|
+
"""
|
|
249
|
+
return pulumi.get(self, "transit_router_id")
|
|
250
|
+
|
|
251
|
+
@transit_router_id.setter
|
|
252
|
+
def transit_router_id(self, value: Optional[pulumi.Input[str]]):
|
|
253
|
+
pulumi.set(self, "transit_router_id", value)
|
|
254
|
+
|
|
255
|
+
@property
|
|
256
|
+
@pulumi.getter(name="transitRouterOwnerId")
|
|
257
|
+
def transit_router_owner_id(self) -> Optional[pulumi.Input[int]]:
|
|
258
|
+
"""
|
|
259
|
+
The ID of the Alibaba Cloud account to which the forwarding router belongs.
|
|
260
|
+
"""
|
|
261
|
+
return pulumi.get(self, "transit_router_owner_id")
|
|
262
|
+
|
|
263
|
+
@transit_router_owner_id.setter
|
|
264
|
+
def transit_router_owner_id(self, value: Optional[pulumi.Input[int]]):
|
|
265
|
+
pulumi.set(self, "transit_router_owner_id", value)
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
class RouterTrAssociation(pulumi.CustomResource):
|
|
269
|
+
@overload
|
|
270
|
+
def __init__(__self__,
|
|
271
|
+
resource_name: str,
|
|
272
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
273
|
+
allowed_prefixes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
274
|
+
association_region_id: Optional[pulumi.Input[str]] = None,
|
|
275
|
+
cen_id: Optional[pulumi.Input[str]] = None,
|
|
276
|
+
ecr_id: Optional[pulumi.Input[str]] = None,
|
|
277
|
+
transit_router_id: Optional[pulumi.Input[str]] = None,
|
|
278
|
+
transit_router_owner_id: Optional[pulumi.Input[int]] = None,
|
|
279
|
+
__props__=None):
|
|
280
|
+
"""
|
|
281
|
+
Provides a Express Connect Router Express Connect Router Tr Association resource. Leased line gateway and TR binding relationship object.
|
|
282
|
+
|
|
283
|
+
For information about Express Connect Router Express Connect Router Tr Association and how to use it, see [What is Express Connect Router Tr Association](https://next.api.alibabacloud.com/api/ExpressConnectRouter/2023-09-01/CreateExpressConnectRouterAssociation).
|
|
284
|
+
|
|
285
|
+
> **NOTE:** Available since v1.224.0.
|
|
286
|
+
|
|
287
|
+
## Example Usage
|
|
288
|
+
|
|
289
|
+
Basic Usage
|
|
290
|
+
|
|
291
|
+
```python
|
|
292
|
+
import pulumi
|
|
293
|
+
import pulumi_alicloud as alicloud
|
|
294
|
+
|
|
295
|
+
config = pulumi.Config()
|
|
296
|
+
name = config.get("name")
|
|
297
|
+
if name is None:
|
|
298
|
+
name = "terraform-example"
|
|
299
|
+
alowprefix1 = config.get("alowprefix1")
|
|
300
|
+
if alowprefix1 is None:
|
|
301
|
+
alowprefix1 = "10.0.0.0/24"
|
|
302
|
+
allowprefix2 = config.get("allowprefix2")
|
|
303
|
+
if allowprefix2 is None:
|
|
304
|
+
allowprefix2 = "10.0.1.0/24"
|
|
305
|
+
allowprefix3 = config.get("allowprefix3")
|
|
306
|
+
if allowprefix3 is None:
|
|
307
|
+
allowprefix3 = "10.0.2.0/24"
|
|
308
|
+
allowprefix4 = config.get("allowprefix4")
|
|
309
|
+
if allowprefix4 is None:
|
|
310
|
+
allowprefix4 = "10.0.3.0/24"
|
|
311
|
+
asn = config.get("asn")
|
|
312
|
+
if asn is None:
|
|
313
|
+
asn = "4200001003"
|
|
314
|
+
defaultp_x0_kl_c = alicloud.expressconnect.RouterExpressConnectRouter("defaultpX0KlC", alibaba_side_asn=asn)
|
|
315
|
+
default418_dc9 = alicloud.cen.Instance("default418DC9", cen_instance_name=name)
|
|
316
|
+
default_r_ycjsc = alicloud.cen.TransitRouter("defaultRYcjsc", cen_id=default418_dc9.id)
|
|
317
|
+
current = alicloud.get_account()
|
|
318
|
+
default = alicloud.expressconnect.RouterTrAssociation("default",
|
|
319
|
+
ecr_id=defaultp_x0_kl_c.id,
|
|
320
|
+
cen_id=default418_dc9.id,
|
|
321
|
+
transit_router_owner_id=current.id,
|
|
322
|
+
allowed_prefixes=[
|
|
323
|
+
alowprefix1,
|
|
324
|
+
allowprefix3,
|
|
325
|
+
allowprefix2,
|
|
326
|
+
],
|
|
327
|
+
transit_router_id=default_r_ycjsc.transit_router_id,
|
|
328
|
+
association_region_id="cn-hangzhou")
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
## Import
|
|
332
|
+
|
|
333
|
+
Express Connect Router Express Connect Router Tr Association can be imported using the id, e.g.
|
|
334
|
+
|
|
335
|
+
```sh
|
|
336
|
+
$ pulumi import alicloud:expressconnect/routerTrAssociation:RouterTrAssociation example <ecr_id>:<association_id>:<transit_router_id>
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
:param str resource_name: The name of the resource.
|
|
340
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
341
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_prefixes: List of allowed route prefixes.
|
|
342
|
+
:param pulumi.Input[str] association_region_id: The region to which the VPC or TR belongs.
|
|
343
|
+
:param pulumi.Input[str] cen_id: The ID of the CEN instance.
|
|
344
|
+
:param pulumi.Input[str] ecr_id: The ID of the leased line gateway instance.
|
|
345
|
+
:param pulumi.Input[str] transit_router_id: The ID of the forwarding router instance.
|
|
346
|
+
:param pulumi.Input[int] transit_router_owner_id: The ID of the Alibaba Cloud account to which the forwarding router belongs.
|
|
347
|
+
"""
|
|
348
|
+
...
|
|
349
|
+
@overload
|
|
350
|
+
def __init__(__self__,
|
|
351
|
+
resource_name: str,
|
|
352
|
+
args: RouterTrAssociationArgs,
|
|
353
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
354
|
+
"""
|
|
355
|
+
Provides a Express Connect Router Express Connect Router Tr Association resource. Leased line gateway and TR binding relationship object.
|
|
356
|
+
|
|
357
|
+
For information about Express Connect Router Express Connect Router Tr Association and how to use it, see [What is Express Connect Router Tr Association](https://next.api.alibabacloud.com/api/ExpressConnectRouter/2023-09-01/CreateExpressConnectRouterAssociation).
|
|
358
|
+
|
|
359
|
+
> **NOTE:** Available since v1.224.0.
|
|
360
|
+
|
|
361
|
+
## Example Usage
|
|
362
|
+
|
|
363
|
+
Basic Usage
|
|
364
|
+
|
|
365
|
+
```python
|
|
366
|
+
import pulumi
|
|
367
|
+
import pulumi_alicloud as alicloud
|
|
368
|
+
|
|
369
|
+
config = pulumi.Config()
|
|
370
|
+
name = config.get("name")
|
|
371
|
+
if name is None:
|
|
372
|
+
name = "terraform-example"
|
|
373
|
+
alowprefix1 = config.get("alowprefix1")
|
|
374
|
+
if alowprefix1 is None:
|
|
375
|
+
alowprefix1 = "10.0.0.0/24"
|
|
376
|
+
allowprefix2 = config.get("allowprefix2")
|
|
377
|
+
if allowprefix2 is None:
|
|
378
|
+
allowprefix2 = "10.0.1.0/24"
|
|
379
|
+
allowprefix3 = config.get("allowprefix3")
|
|
380
|
+
if allowprefix3 is None:
|
|
381
|
+
allowprefix3 = "10.0.2.0/24"
|
|
382
|
+
allowprefix4 = config.get("allowprefix4")
|
|
383
|
+
if allowprefix4 is None:
|
|
384
|
+
allowprefix4 = "10.0.3.0/24"
|
|
385
|
+
asn = config.get("asn")
|
|
386
|
+
if asn is None:
|
|
387
|
+
asn = "4200001003"
|
|
388
|
+
defaultp_x0_kl_c = alicloud.expressconnect.RouterExpressConnectRouter("defaultpX0KlC", alibaba_side_asn=asn)
|
|
389
|
+
default418_dc9 = alicloud.cen.Instance("default418DC9", cen_instance_name=name)
|
|
390
|
+
default_r_ycjsc = alicloud.cen.TransitRouter("defaultRYcjsc", cen_id=default418_dc9.id)
|
|
391
|
+
current = alicloud.get_account()
|
|
392
|
+
default = alicloud.expressconnect.RouterTrAssociation("default",
|
|
393
|
+
ecr_id=defaultp_x0_kl_c.id,
|
|
394
|
+
cen_id=default418_dc9.id,
|
|
395
|
+
transit_router_owner_id=current.id,
|
|
396
|
+
allowed_prefixes=[
|
|
397
|
+
alowprefix1,
|
|
398
|
+
allowprefix3,
|
|
399
|
+
allowprefix2,
|
|
400
|
+
],
|
|
401
|
+
transit_router_id=default_r_ycjsc.transit_router_id,
|
|
402
|
+
association_region_id="cn-hangzhou")
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
## Import
|
|
406
|
+
|
|
407
|
+
Express Connect Router Express Connect Router Tr Association can be imported using the id, e.g.
|
|
408
|
+
|
|
409
|
+
```sh
|
|
410
|
+
$ pulumi import alicloud:expressconnect/routerTrAssociation:RouterTrAssociation example <ecr_id>:<association_id>:<transit_router_id>
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
:param str resource_name: The name of the resource.
|
|
414
|
+
:param RouterTrAssociationArgs args: The arguments to use to populate this resource's properties.
|
|
415
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
416
|
+
"""
|
|
417
|
+
...
|
|
418
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
419
|
+
resource_args, opts = _utilities.get_resource_args_opts(RouterTrAssociationArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
420
|
+
if resource_args is not None:
|
|
421
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
422
|
+
else:
|
|
423
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
424
|
+
|
|
425
|
+
def _internal_init(__self__,
|
|
426
|
+
resource_name: str,
|
|
427
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
428
|
+
allowed_prefixes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
429
|
+
association_region_id: Optional[pulumi.Input[str]] = None,
|
|
430
|
+
cen_id: Optional[pulumi.Input[str]] = None,
|
|
431
|
+
ecr_id: Optional[pulumi.Input[str]] = None,
|
|
432
|
+
transit_router_id: Optional[pulumi.Input[str]] = None,
|
|
433
|
+
transit_router_owner_id: Optional[pulumi.Input[int]] = None,
|
|
434
|
+
__props__=None):
|
|
435
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
436
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
437
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
438
|
+
if opts.id is None:
|
|
439
|
+
if __props__ is not None:
|
|
440
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
441
|
+
__props__ = RouterTrAssociationArgs.__new__(RouterTrAssociationArgs)
|
|
442
|
+
|
|
443
|
+
__props__.__dict__["allowed_prefixes"] = allowed_prefixes
|
|
444
|
+
if association_region_id is None and not opts.urn:
|
|
445
|
+
raise TypeError("Missing required property 'association_region_id'")
|
|
446
|
+
__props__.__dict__["association_region_id"] = association_region_id
|
|
447
|
+
__props__.__dict__["cen_id"] = cen_id
|
|
448
|
+
if ecr_id is None and not opts.urn:
|
|
449
|
+
raise TypeError("Missing required property 'ecr_id'")
|
|
450
|
+
__props__.__dict__["ecr_id"] = ecr_id
|
|
451
|
+
__props__.__dict__["transit_router_id"] = transit_router_id
|
|
452
|
+
__props__.__dict__["transit_router_owner_id"] = transit_router_owner_id
|
|
453
|
+
__props__.__dict__["association_id"] = None
|
|
454
|
+
__props__.__dict__["create_time"] = None
|
|
455
|
+
__props__.__dict__["status"] = None
|
|
456
|
+
super(RouterTrAssociation, __self__).__init__(
|
|
457
|
+
'alicloud:expressconnect/routerTrAssociation:RouterTrAssociation',
|
|
458
|
+
resource_name,
|
|
459
|
+
__props__,
|
|
460
|
+
opts)
|
|
461
|
+
|
|
462
|
+
@staticmethod
|
|
463
|
+
def get(resource_name: str,
|
|
464
|
+
id: pulumi.Input[str],
|
|
465
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
466
|
+
allowed_prefixes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
467
|
+
association_id: Optional[pulumi.Input[str]] = None,
|
|
468
|
+
association_region_id: Optional[pulumi.Input[str]] = None,
|
|
469
|
+
cen_id: Optional[pulumi.Input[str]] = None,
|
|
470
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
471
|
+
ecr_id: Optional[pulumi.Input[str]] = None,
|
|
472
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
473
|
+
transit_router_id: Optional[pulumi.Input[str]] = None,
|
|
474
|
+
transit_router_owner_id: Optional[pulumi.Input[int]] = None) -> 'RouterTrAssociation':
|
|
475
|
+
"""
|
|
476
|
+
Get an existing RouterTrAssociation resource's state with the given name, id, and optional extra
|
|
477
|
+
properties used to qualify the lookup.
|
|
478
|
+
|
|
479
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
480
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
481
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
482
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_prefixes: List of allowed route prefixes.
|
|
483
|
+
:param pulumi.Input[str] association_id: The first ID of the resource.
|
|
484
|
+
:param pulumi.Input[str] association_region_id: The region to which the VPC or TR belongs.
|
|
485
|
+
:param pulumi.Input[str] cen_id: The ID of the CEN instance.
|
|
486
|
+
:param pulumi.Input[str] create_time: The creation time of the resource.
|
|
487
|
+
:param pulumi.Input[str] ecr_id: The ID of the leased line gateway instance.
|
|
488
|
+
:param pulumi.Input[str] status: The status of the resource.
|
|
489
|
+
:param pulumi.Input[str] transit_router_id: The ID of the forwarding router instance.
|
|
490
|
+
:param pulumi.Input[int] transit_router_owner_id: The ID of the Alibaba Cloud account to which the forwarding router belongs.
|
|
491
|
+
"""
|
|
492
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
493
|
+
|
|
494
|
+
__props__ = _RouterTrAssociationState.__new__(_RouterTrAssociationState)
|
|
495
|
+
|
|
496
|
+
__props__.__dict__["allowed_prefixes"] = allowed_prefixes
|
|
497
|
+
__props__.__dict__["association_id"] = association_id
|
|
498
|
+
__props__.__dict__["association_region_id"] = association_region_id
|
|
499
|
+
__props__.__dict__["cen_id"] = cen_id
|
|
500
|
+
__props__.__dict__["create_time"] = create_time
|
|
501
|
+
__props__.__dict__["ecr_id"] = ecr_id
|
|
502
|
+
__props__.__dict__["status"] = status
|
|
503
|
+
__props__.__dict__["transit_router_id"] = transit_router_id
|
|
504
|
+
__props__.__dict__["transit_router_owner_id"] = transit_router_owner_id
|
|
505
|
+
return RouterTrAssociation(resource_name, opts=opts, __props__=__props__)
|
|
506
|
+
|
|
507
|
+
@property
|
|
508
|
+
@pulumi.getter(name="allowedPrefixes")
|
|
509
|
+
def allowed_prefixes(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
510
|
+
"""
|
|
511
|
+
List of allowed route prefixes.
|
|
512
|
+
"""
|
|
513
|
+
return pulumi.get(self, "allowed_prefixes")
|
|
514
|
+
|
|
515
|
+
@property
|
|
516
|
+
@pulumi.getter(name="associationId")
|
|
517
|
+
def association_id(self) -> pulumi.Output[str]:
|
|
518
|
+
"""
|
|
519
|
+
The first ID of the resource.
|
|
520
|
+
"""
|
|
521
|
+
return pulumi.get(self, "association_id")
|
|
522
|
+
|
|
523
|
+
@property
|
|
524
|
+
@pulumi.getter(name="associationRegionId")
|
|
525
|
+
def association_region_id(self) -> pulumi.Output[str]:
|
|
526
|
+
"""
|
|
527
|
+
The region to which the VPC or TR belongs.
|
|
528
|
+
"""
|
|
529
|
+
return pulumi.get(self, "association_region_id")
|
|
530
|
+
|
|
531
|
+
@property
|
|
532
|
+
@pulumi.getter(name="cenId")
|
|
533
|
+
def cen_id(self) -> pulumi.Output[Optional[str]]:
|
|
534
|
+
"""
|
|
535
|
+
The ID of the CEN instance.
|
|
536
|
+
"""
|
|
537
|
+
return pulumi.get(self, "cen_id")
|
|
538
|
+
|
|
539
|
+
@property
|
|
540
|
+
@pulumi.getter(name="createTime")
|
|
541
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
542
|
+
"""
|
|
543
|
+
The creation time of the resource.
|
|
544
|
+
"""
|
|
545
|
+
return pulumi.get(self, "create_time")
|
|
546
|
+
|
|
547
|
+
@property
|
|
548
|
+
@pulumi.getter(name="ecrId")
|
|
549
|
+
def ecr_id(self) -> pulumi.Output[str]:
|
|
550
|
+
"""
|
|
551
|
+
The ID of the leased line gateway instance.
|
|
552
|
+
"""
|
|
553
|
+
return pulumi.get(self, "ecr_id")
|
|
554
|
+
|
|
555
|
+
@property
|
|
556
|
+
@pulumi.getter
|
|
557
|
+
def status(self) -> pulumi.Output[str]:
|
|
558
|
+
"""
|
|
559
|
+
The status of the resource.
|
|
560
|
+
"""
|
|
561
|
+
return pulumi.get(self, "status")
|
|
562
|
+
|
|
563
|
+
@property
|
|
564
|
+
@pulumi.getter(name="transitRouterId")
|
|
565
|
+
def transit_router_id(self) -> pulumi.Output[str]:
|
|
566
|
+
"""
|
|
567
|
+
The ID of the forwarding router instance.
|
|
568
|
+
"""
|
|
569
|
+
return pulumi.get(self, "transit_router_id")
|
|
570
|
+
|
|
571
|
+
@property
|
|
572
|
+
@pulumi.getter(name="transitRouterOwnerId")
|
|
573
|
+
def transit_router_owner_id(self) -> pulumi.Output[Optional[int]]:
|
|
574
|
+
"""
|
|
575
|
+
The ID of the Alibaba Cloud account to which the forwarding router belongs.
|
|
576
|
+
"""
|
|
577
|
+
return pulumi.get(self, "transit_router_owner_id")
|
|
578
|
+
|