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