pulumi-alicloud 3.81.0a1750224117__py3-none-any.whl → 3.82.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +40 -0
- pulumi_alicloud/alikafka/__init__.py +2 -0
- pulumi_alicloud/alikafka/_inputs.py +450 -0
- pulumi_alicloud/alikafka/instance.py +331 -95
- pulumi_alicloud/alikafka/outputs.py +346 -0
- pulumi_alicloud/cdn/get_service.py +4 -4
- pulumi_alicloud/cen/get_transit_router_route_table_propagations.py +116 -21
- pulumi_alicloud/cen/get_transit_router_route_tables.py +35 -29
- pulumi_alicloud/cen/get_transit_router_vpn_attachments.py +178 -59
- pulumi_alicloud/cen/outputs.py +56 -41
- pulumi_alicloud/cloudfirewall/__init__.py +1 -0
- pulumi_alicloud/cloudfirewall/policy_advanced_config.py +165 -0
- pulumi_alicloud/cs/_inputs.py +54 -0
- pulumi_alicloud/cs/node_pool.py +158 -45
- pulumi_alicloud/cs/outputs.py +51 -0
- pulumi_alicloud/dfs/vsc_mount_point.py +4 -4
- pulumi_alicloud/ecs/_inputs.py +66 -0
- pulumi_alicloud/ecs/ecs_network_interface.py +47 -0
- pulumi_alicloud/ecs/get_ecs_key_pairs.py +57 -13
- pulumi_alicloud/ecs/get_ecs_launch_templates.py +15 -14
- pulumi_alicloud/ecs/get_key_pairs.py +1 -1
- pulumi_alicloud/ecs/instance.py +115 -0
- pulumi_alicloud/ecs/outputs.py +176 -80
- pulumi_alicloud/eflo/node_group.py +103 -7
- pulumi_alicloud/emrv2/_inputs.py +74 -0
- pulumi_alicloud/emrv2/outputs.py +65 -0
- pulumi_alicloud/esa/__init__.py +2 -0
- pulumi_alicloud/esa/certificate.py +7 -28
- pulumi_alicloud/esa/custom_scene_policy.py +484 -0
- pulumi_alicloud/esa/version.py +406 -0
- pulumi_alicloud/eventbridge/service_linked_role.py +25 -31
- pulumi_alicloud/ga/forwarding_rule.py +2 -2
- pulumi_alicloud/gpdb/instance.py +28 -28
- pulumi_alicloud/hbr/__init__.py +1 -0
- pulumi_alicloud/hbr/get_udm_snapshots.py +282 -0
- pulumi_alicloud/hbr/ots_backup_plan.py +2 -2
- pulumi_alicloud/hbr/outputs.py +96 -0
- pulumi_alicloud/hbr/replication_vault.py +167 -41
- pulumi_alicloud/hbr/vault.py +21 -7
- pulumi_alicloud/kms/secret.py +42 -28
- pulumi_alicloud/maxcompute/_inputs.py +26 -6
- pulumi_alicloud/maxcompute/outputs.py +18 -4
- pulumi_alicloud/maxcompute/project.py +50 -3
- pulumi_alicloud/message/__init__.py +1 -0
- pulumi_alicloud/message/service_service.py +132 -0
- pulumi_alicloud/message/service_subscription.py +37 -23
- pulumi_alicloud/mns/get_service.py +8 -4
- pulumi_alicloud/mongodb/instance.py +63 -16
- pulumi_alicloud/mongodb/sharding_instance.py +249 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/ram/role.py +306 -105
- pulumi_alicloud/rds/_inputs.py +0 -9
- pulumi_alicloud/rds/custom.py +360 -31
- pulumi_alicloud/rds/outputs.py +0 -6
- pulumi_alicloud/threatdetection/__init__.py +1 -0
- pulumi_alicloud/threatdetection/cycle_task.py +731 -0
- pulumi_alicloud/vpc/network_interface.py +34 -0
- {pulumi_alicloud-3.81.0a1750224117.dist-info → pulumi_alicloud-3.82.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.81.0a1750224117.dist-info → pulumi_alicloud-3.82.0.dist-info}/RECORD +61 -53
- {pulumi_alicloud-3.81.0a1750224117.dist-info → pulumi_alicloud-3.82.0.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.81.0a1750224117.dist-info → pulumi_alicloud-3.82.0.dist-info}/top_level.txt +0 -0
|
@@ -88,7 +88,7 @@ class GetTransitRouterRouteTablesResult:
|
|
|
88
88
|
@pulumi.getter
|
|
89
89
|
def names(self) -> Sequence[builtins.str]:
|
|
90
90
|
"""
|
|
91
|
-
A list of
|
|
91
|
+
A list of Transit Router Route Table names.
|
|
92
92
|
"""
|
|
93
93
|
return pulumi.get(self, "names")
|
|
94
94
|
|
|
@@ -109,7 +109,7 @@ class GetTransitRouterRouteTablesResult:
|
|
|
109
109
|
@pulumi.getter
|
|
110
110
|
def tables(self) -> Sequence['outputs.GetTransitRouterRouteTablesTableResult']:
|
|
111
111
|
"""
|
|
112
|
-
A list of
|
|
112
|
+
A list of Transit Router Route Tables. Each element contains the following attributes:
|
|
113
113
|
"""
|
|
114
114
|
return pulumi.get(self, "tables")
|
|
115
115
|
|
|
@@ -137,7 +137,7 @@ class GetTransitRouterRouteTablesResult:
|
|
|
137
137
|
@pulumi.getter(name="transitRouterRouteTableType")
|
|
138
138
|
def transit_router_route_table_type(self) -> Optional[builtins.str]:
|
|
139
139
|
"""
|
|
140
|
-
|
|
140
|
+
The type of the route table.
|
|
141
141
|
"""
|
|
142
142
|
return pulumi.get(self, "transit_router_route_table_type")
|
|
143
143
|
|
|
@@ -173,12 +173,14 @@ def get_transit_router_route_tables(ids: Optional[Sequence[builtins.str]] = None
|
|
|
173
173
|
transit_router_route_table_type: Optional[builtins.str] = None,
|
|
174
174
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTransitRouterRouteTablesResult:
|
|
175
175
|
"""
|
|
176
|
-
This data source provides CEN Transit Router Route Tables
|
|
176
|
+
This data source provides the CEN Transit Router Route Tables of the current Alibaba Cloud user.
|
|
177
177
|
|
|
178
178
|
> **NOTE:** Available since v1.126.0.
|
|
179
179
|
|
|
180
180
|
## Example Usage
|
|
181
181
|
|
|
182
|
+
Basic Usage
|
|
183
|
+
|
|
182
184
|
```python
|
|
183
185
|
import pulumi
|
|
184
186
|
import pulumi_alicloud as alicloud
|
|
@@ -186,31 +188,32 @@ def get_transit_router_route_tables(ids: Optional[Sequence[builtins.str]] = None
|
|
|
186
188
|
config = pulumi.Config()
|
|
187
189
|
name = config.get("name")
|
|
188
190
|
if name is None:
|
|
189
|
-
name = "
|
|
190
|
-
|
|
191
|
+
name = "terraform-example"
|
|
192
|
+
default = alicloud.cen.Instance("default",
|
|
191
193
|
cen_instance_name=name,
|
|
192
194
|
protection_level="REDUCED")
|
|
193
195
|
default_transit_router = alicloud.cen.TransitRouter("default",
|
|
194
|
-
cen_id=
|
|
196
|
+
cen_id=default.id,
|
|
195
197
|
transit_router_name=name)
|
|
196
198
|
default_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("default",
|
|
197
199
|
transit_router_id=default_transit_router.transit_router_id,
|
|
198
|
-
transit_router_route_table_description=
|
|
200
|
+
transit_router_route_table_description=name,
|
|
199
201
|
transit_router_route_table_name=name)
|
|
200
|
-
|
|
201
|
-
|
|
202
|
+
ids = alicloud.cen.get_transit_router_route_tables_output(transit_router_id=default_transit_router_route_table.transit_router_id,
|
|
203
|
+
ids=[default_transit_router_route_table.transit_router_route_table_id])
|
|
204
|
+
pulumi.export("cenTransitRouterRouteTableId0", ids.tables[0].id)
|
|
202
205
|
```
|
|
203
206
|
|
|
204
207
|
|
|
205
|
-
:param Sequence[builtins.str] ids: A list of
|
|
206
|
-
:param builtins.str name_regex: A regex string to filter
|
|
208
|
+
:param Sequence[builtins.str] ids: A list of Transit Router Route Table IDs.
|
|
209
|
+
:param builtins.str name_regex: A regex string to filter results by Transit Router Route Table name.
|
|
207
210
|
:param builtins.str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
208
|
-
:param builtins.str status: The status of the
|
|
209
|
-
:param builtins.str transit_router_id: ID of the
|
|
211
|
+
:param builtins.str status: The status of the route table. Valid values: `Creating`, `Active`, `Deleting`.
|
|
212
|
+
:param builtins.str transit_router_id: The ID of the Enterprise Edition transit router.
|
|
210
213
|
:param Sequence[builtins.str] transit_router_route_table_ids: A list of ID of the CEN Transit Router Route Table.
|
|
211
214
|
:param Sequence[builtins.str] transit_router_route_table_names: A list of name of the CEN Transit Router Route Table.
|
|
212
|
-
:param builtins.str transit_router_route_table_status: The status of the
|
|
213
|
-
:param builtins.str transit_router_route_table_type: The type of the
|
|
215
|
+
:param builtins.str transit_router_route_table_status: The status of the route table. Valid values: `Creating`, `Active`, `Deleting`.
|
|
216
|
+
:param builtins.str transit_router_route_table_type: The type of the route table. Valid values: `System`, `Custom`.
|
|
214
217
|
"""
|
|
215
218
|
__args__ = dict()
|
|
216
219
|
__args__['ids'] = ids
|
|
@@ -249,12 +252,14 @@ def get_transit_router_route_tables_output(ids: Optional[pulumi.Input[Optional[S
|
|
|
249
252
|
transit_router_route_table_type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
250
253
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTransitRouterRouteTablesResult]:
|
|
251
254
|
"""
|
|
252
|
-
This data source provides CEN Transit Router Route Tables
|
|
255
|
+
This data source provides the CEN Transit Router Route Tables of the current Alibaba Cloud user.
|
|
253
256
|
|
|
254
257
|
> **NOTE:** Available since v1.126.0.
|
|
255
258
|
|
|
256
259
|
## Example Usage
|
|
257
260
|
|
|
261
|
+
Basic Usage
|
|
262
|
+
|
|
258
263
|
```python
|
|
259
264
|
import pulumi
|
|
260
265
|
import pulumi_alicloud as alicloud
|
|
@@ -262,31 +267,32 @@ def get_transit_router_route_tables_output(ids: Optional[pulumi.Input[Optional[S
|
|
|
262
267
|
config = pulumi.Config()
|
|
263
268
|
name = config.get("name")
|
|
264
269
|
if name is None:
|
|
265
|
-
name = "
|
|
266
|
-
|
|
270
|
+
name = "terraform-example"
|
|
271
|
+
default = alicloud.cen.Instance("default",
|
|
267
272
|
cen_instance_name=name,
|
|
268
273
|
protection_level="REDUCED")
|
|
269
274
|
default_transit_router = alicloud.cen.TransitRouter("default",
|
|
270
|
-
cen_id=
|
|
275
|
+
cen_id=default.id,
|
|
271
276
|
transit_router_name=name)
|
|
272
277
|
default_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("default",
|
|
273
278
|
transit_router_id=default_transit_router.transit_router_id,
|
|
274
|
-
transit_router_route_table_description=
|
|
279
|
+
transit_router_route_table_description=name,
|
|
275
280
|
transit_router_route_table_name=name)
|
|
276
|
-
|
|
277
|
-
|
|
281
|
+
ids = alicloud.cen.get_transit_router_route_tables_output(transit_router_id=default_transit_router_route_table.transit_router_id,
|
|
282
|
+
ids=[default_transit_router_route_table.transit_router_route_table_id])
|
|
283
|
+
pulumi.export("cenTransitRouterRouteTableId0", ids.tables[0].id)
|
|
278
284
|
```
|
|
279
285
|
|
|
280
286
|
|
|
281
|
-
:param Sequence[builtins.str] ids: A list of
|
|
282
|
-
:param builtins.str name_regex: A regex string to filter
|
|
287
|
+
:param Sequence[builtins.str] ids: A list of Transit Router Route Table IDs.
|
|
288
|
+
:param builtins.str name_regex: A regex string to filter results by Transit Router Route Table name.
|
|
283
289
|
:param builtins.str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
284
|
-
:param builtins.str status: The status of the
|
|
285
|
-
:param builtins.str transit_router_id: ID of the
|
|
290
|
+
:param builtins.str status: The status of the route table. Valid values: `Creating`, `Active`, `Deleting`.
|
|
291
|
+
:param builtins.str transit_router_id: The ID of the Enterprise Edition transit router.
|
|
286
292
|
:param Sequence[builtins.str] transit_router_route_table_ids: A list of ID of the CEN Transit Router Route Table.
|
|
287
293
|
:param Sequence[builtins.str] transit_router_route_table_names: A list of name of the CEN Transit Router Route Table.
|
|
288
|
-
:param builtins.str transit_router_route_table_status: The status of the
|
|
289
|
-
:param builtins.str transit_router_route_table_type: The type of the
|
|
294
|
+
:param builtins.str transit_router_route_table_status: The status of the route table. Valid values: `Creating`, `Active`, `Deleting`.
|
|
295
|
+
:param builtins.str transit_router_route_table_type: The type of the route table. Valid values: `System`, `Custom`.
|
|
290
296
|
"""
|
|
291
297
|
__args__ = dict()
|
|
292
298
|
__args__['ids'] = ids
|
|
@@ -75,7 +75,7 @@ class GetTransitRouterVpnAttachmentsResult:
|
|
|
75
75
|
@pulumi.getter(name="cenId")
|
|
76
76
|
def cen_id(self) -> Optional[builtins.str]:
|
|
77
77
|
"""
|
|
78
|
-
The ID of the Cloud Enterprise Network (CEN) instance.
|
|
78
|
+
(Available since v1.245.0) The ID of the Cloud Enterprise Network (CEN) instance.
|
|
79
79
|
"""
|
|
80
80
|
return pulumi.get(self, "cen_id")
|
|
81
81
|
|
|
@@ -90,9 +90,6 @@ class GetTransitRouterVpnAttachmentsResult:
|
|
|
90
90
|
@property
|
|
91
91
|
@pulumi.getter
|
|
92
92
|
def ids(self) -> Sequence[builtins.str]:
|
|
93
|
-
"""
|
|
94
|
-
A list of Transit Router Vpn Attachment IDs.
|
|
95
|
-
"""
|
|
96
93
|
return pulumi.get(self, "ids")
|
|
97
94
|
|
|
98
95
|
@property
|
|
@@ -117,7 +114,7 @@ class GetTransitRouterVpnAttachmentsResult:
|
|
|
117
114
|
@pulumi.getter
|
|
118
115
|
def status(self) -> Optional[builtins.str]:
|
|
119
116
|
"""
|
|
120
|
-
|
|
117
|
+
The status of the VPN connection.
|
|
121
118
|
"""
|
|
122
119
|
return pulumi.get(self, "status")
|
|
123
120
|
|
|
@@ -125,7 +122,7 @@ class GetTransitRouterVpnAttachmentsResult:
|
|
|
125
122
|
@pulumi.getter
|
|
126
123
|
def tags(self) -> Optional[Mapping[str, builtins.str]]:
|
|
127
124
|
"""
|
|
128
|
-
The tag of the resource
|
|
125
|
+
(Available since v1.245.0) The tag of the resource.
|
|
129
126
|
"""
|
|
130
127
|
return pulumi.get(self, "tags")
|
|
131
128
|
|
|
@@ -133,7 +130,7 @@ class GetTransitRouterVpnAttachmentsResult:
|
|
|
133
130
|
@pulumi.getter(name="transitRouterAttachmentId")
|
|
134
131
|
def transit_router_attachment_id(self) -> Optional[builtins.str]:
|
|
135
132
|
"""
|
|
136
|
-
The ID of the VPN attachment.
|
|
133
|
+
(Available since v1.245.0) The ID of the VPN attachment.
|
|
137
134
|
"""
|
|
138
135
|
return pulumi.get(self, "transit_router_attachment_id")
|
|
139
136
|
|
|
@@ -177,7 +174,7 @@ def get_transit_router_vpn_attachments(cen_id: Optional[builtins.str] = None,
|
|
|
177
174
|
"""
|
|
178
175
|
This data source provides Cen Transit Router Vpn Attachment available to the user.[What is Transit Router Vpn Attachment](https://next.api.alibabacloud.com/document/Cbn/2017-09-12/CreateTransitRouterVpnAttachment)
|
|
179
176
|
|
|
180
|
-
> **NOTE:** Available since v1.
|
|
177
|
+
> **NOTE:** Available since v1.183.0.
|
|
181
178
|
|
|
182
179
|
## Example Usage
|
|
183
180
|
|
|
@@ -189,41 +186,102 @@ def get_transit_router_vpn_attachments(cen_id: Optional[builtins.str] = None,
|
|
|
189
186
|
name = config.get("name")
|
|
190
187
|
if name is None:
|
|
191
188
|
name = "terraform-example"
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
189
|
+
default = alicloud.get_account()
|
|
190
|
+
default_instance = alicloud.cen.Instance("default", cen_instance_name=name)
|
|
191
|
+
default_transit_router = alicloud.cen.TransitRouter("default", cen_id=default_instance.id)
|
|
192
|
+
default_transit_router_cidr = alicloud.cen.TransitRouterCidr("default",
|
|
195
193
|
cidr="192.168.10.0/24",
|
|
196
|
-
transit_router_id=
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
194
|
+
transit_router_id=default_transit_router.transit_router_id,
|
|
195
|
+
publish_cidr_route=True)
|
|
196
|
+
default_customer_gateway = alicloud.vpn.CustomerGateway("default",
|
|
197
|
+
ip_address="1.1.1.8",
|
|
198
|
+
customer_gateway_name=name,
|
|
199
|
+
opts = pulumi.ResourceOptions(depends_on=[default_transit_router_cidr]))
|
|
200
|
+
default_gateway_vpn_attachment = alicloud.vpn.GatewayVpnAttachment("default",
|
|
201
|
+
network_type="public",
|
|
202
|
+
local_subnet="0.0.0.0/0",
|
|
203
|
+
enable_tunnels_bgp=False,
|
|
204
|
+
vpn_attachment_name=name,
|
|
205
|
+
tunnel_options_specifications=[
|
|
206
|
+
{
|
|
207
|
+
"customer_gateway_id": default_customer_gateway.id,
|
|
208
|
+
"enable_dpd": True,
|
|
209
|
+
"enable_nat_traversal": True,
|
|
210
|
+
"tunnel_index": 1,
|
|
211
|
+
"tunnel_ike_config": {
|
|
212
|
+
"remote_id": "2.2.2.2",
|
|
213
|
+
"ike_enc_alg": "aes",
|
|
214
|
+
"ike_mode": "main",
|
|
215
|
+
"ike_version": "ikev1",
|
|
216
|
+
"local_id": "1.1.1.1",
|
|
217
|
+
"ike_auth_alg": "md5",
|
|
218
|
+
"ike_lifetime": 86100,
|
|
219
|
+
"ike_pfs": "group2",
|
|
220
|
+
"psk": "12345678",
|
|
221
|
+
},
|
|
222
|
+
"tunnel_ipsec_config": {
|
|
223
|
+
"ipsec_auth_alg": "md5",
|
|
224
|
+
"ipsec_enc_alg": "aes",
|
|
225
|
+
"ipsec_lifetime": 86200,
|
|
226
|
+
"ipsec_pfs": "group5",
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"enable_nat_traversal": True,
|
|
231
|
+
"tunnel_index": 2,
|
|
232
|
+
"tunnel_ike_config": {
|
|
233
|
+
"local_id": "4.4.4.4",
|
|
234
|
+
"remote_id": "5.5.5.5",
|
|
235
|
+
"ike_lifetime": 86400,
|
|
236
|
+
"ike_pfs": "group5",
|
|
237
|
+
"ike_mode": "main",
|
|
238
|
+
"ike_version": "ikev2",
|
|
239
|
+
"psk": "32333442",
|
|
240
|
+
"ike_auth_alg": "md5",
|
|
241
|
+
"ike_enc_alg": "aes",
|
|
242
|
+
},
|
|
243
|
+
"tunnel_ipsec_config": {
|
|
244
|
+
"ipsec_enc_alg": "aes",
|
|
245
|
+
"ipsec_lifetime": 86400,
|
|
246
|
+
"ipsec_pfs": "group5",
|
|
247
|
+
"ipsec_auth_alg": "sha256",
|
|
248
|
+
},
|
|
249
|
+
"customer_gateway_id": default_customer_gateway.id,
|
|
250
|
+
"enable_dpd": True,
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
remote_subnet="0.0.0.0/0")
|
|
205
254
|
default_transit_router_vpn_attachment = alicloud.cen.TransitRouterVpnAttachment("default",
|
|
206
|
-
vpn_owner_id=default_m8_zo6_h.id,
|
|
207
|
-
cen_id=default_m8_zo6_h.id,
|
|
208
|
-
transit_router_attachment_description="example-vpn-attachment",
|
|
209
|
-
transit_router_id=default_m8_zo6_h.transit_router_id,
|
|
210
|
-
vpn_id=defaultvr_pzdh.id,
|
|
211
255
|
auto_publish_route_enabled=False,
|
|
256
|
+
transit_router_attachment_description=name,
|
|
257
|
+
transit_router_attachment_name=name,
|
|
258
|
+
cen_id=default_transit_router.cen_id,
|
|
259
|
+
transit_router_id=default_transit_router.transit_router_id,
|
|
260
|
+
vpn_id=default_gateway_vpn_attachment.id,
|
|
261
|
+
vpn_owner_id=default.id,
|
|
212
262
|
charge_type="POSTPAY",
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
pulumi.
|
|
263
|
+
tags={
|
|
264
|
+
"Created": "TF",
|
|
265
|
+
"For": "VpnAttachment",
|
|
266
|
+
})
|
|
267
|
+
ids = pulumi.Output.all(
|
|
268
|
+
id=default_transit_router_vpn_attachment.id,
|
|
269
|
+
cen_id=default_transit_router_vpn_attachment.cen_id,
|
|
270
|
+
transit_router_id=default_transit_router_vpn_attachment.transit_router_id
|
|
271
|
+
).apply(lambda resolved_outputs: alicloud.cen.get_transit_router_vpn_attachments_output(ids=[resolved_outputs['id']],
|
|
272
|
+
cen_id=resolved_outputs['cen_id'],
|
|
273
|
+
transit_router_id=resolved_outputs['transit_router_id']))
|
|
274
|
+
|
|
275
|
+
pulumi.export("cenTransitRouterVpnAttachmentId0", ids.attachments[0].id)
|
|
218
276
|
```
|
|
219
277
|
|
|
220
278
|
|
|
221
279
|
:param builtins.str cen_id: The ID of the Cloud Enterprise Network (CEN) instance.
|
|
222
280
|
:param Sequence[builtins.str] ids: A list of Transit Router Vpn Attachment IDs.
|
|
223
|
-
:param builtins.str name_regex: A regex string to filter results by
|
|
281
|
+
:param builtins.str name_regex: A regex string to filter results by Transit Router Vpn Attachment name.
|
|
224
282
|
:param builtins.str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
225
|
-
:param builtins.str status: The Status of Transit Router Vpn Attachment. Valid
|
|
226
|
-
:param Mapping[str, builtins.str] tags: The tag of the resource
|
|
283
|
+
:param builtins.str status: The Status of Transit Router Vpn Attachment. Valid values: `Attached`, `Attaching`, `Detaching`.
|
|
284
|
+
:param Mapping[str, builtins.str] tags: The tag of the resource.
|
|
227
285
|
:param builtins.str transit_router_attachment_id: The ID of the VPN attachment.
|
|
228
286
|
:param builtins.str transit_router_id: The ID of the transit router.
|
|
229
287
|
"""
|
|
@@ -263,7 +321,7 @@ def get_transit_router_vpn_attachments_output(cen_id: Optional[pulumi.Input[Opti
|
|
|
263
321
|
"""
|
|
264
322
|
This data source provides Cen Transit Router Vpn Attachment available to the user.[What is Transit Router Vpn Attachment](https://next.api.alibabacloud.com/document/Cbn/2017-09-12/CreateTransitRouterVpnAttachment)
|
|
265
323
|
|
|
266
|
-
> **NOTE:** Available since v1.
|
|
324
|
+
> **NOTE:** Available since v1.183.0.
|
|
267
325
|
|
|
268
326
|
## Example Usage
|
|
269
327
|
|
|
@@ -275,41 +333,102 @@ def get_transit_router_vpn_attachments_output(cen_id: Optional[pulumi.Input[Opti
|
|
|
275
333
|
name = config.get("name")
|
|
276
334
|
if name is None:
|
|
277
335
|
name = "terraform-example"
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
336
|
+
default = alicloud.get_account()
|
|
337
|
+
default_instance = alicloud.cen.Instance("default", cen_instance_name=name)
|
|
338
|
+
default_transit_router = alicloud.cen.TransitRouter("default", cen_id=default_instance.id)
|
|
339
|
+
default_transit_router_cidr = alicloud.cen.TransitRouterCidr("default",
|
|
281
340
|
cidr="192.168.10.0/24",
|
|
282
|
-
transit_router_id=
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
341
|
+
transit_router_id=default_transit_router.transit_router_id,
|
|
342
|
+
publish_cidr_route=True)
|
|
343
|
+
default_customer_gateway = alicloud.vpn.CustomerGateway("default",
|
|
344
|
+
ip_address="1.1.1.8",
|
|
345
|
+
customer_gateway_name=name,
|
|
346
|
+
opts = pulumi.ResourceOptions(depends_on=[default_transit_router_cidr]))
|
|
347
|
+
default_gateway_vpn_attachment = alicloud.vpn.GatewayVpnAttachment("default",
|
|
348
|
+
network_type="public",
|
|
349
|
+
local_subnet="0.0.0.0/0",
|
|
350
|
+
enable_tunnels_bgp=False,
|
|
351
|
+
vpn_attachment_name=name,
|
|
352
|
+
tunnel_options_specifications=[
|
|
353
|
+
{
|
|
354
|
+
"customer_gateway_id": default_customer_gateway.id,
|
|
355
|
+
"enable_dpd": True,
|
|
356
|
+
"enable_nat_traversal": True,
|
|
357
|
+
"tunnel_index": 1,
|
|
358
|
+
"tunnel_ike_config": {
|
|
359
|
+
"remote_id": "2.2.2.2",
|
|
360
|
+
"ike_enc_alg": "aes",
|
|
361
|
+
"ike_mode": "main",
|
|
362
|
+
"ike_version": "ikev1",
|
|
363
|
+
"local_id": "1.1.1.1",
|
|
364
|
+
"ike_auth_alg": "md5",
|
|
365
|
+
"ike_lifetime": 86100,
|
|
366
|
+
"ike_pfs": "group2",
|
|
367
|
+
"psk": "12345678",
|
|
368
|
+
},
|
|
369
|
+
"tunnel_ipsec_config": {
|
|
370
|
+
"ipsec_auth_alg": "md5",
|
|
371
|
+
"ipsec_enc_alg": "aes",
|
|
372
|
+
"ipsec_lifetime": 86200,
|
|
373
|
+
"ipsec_pfs": "group5",
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"enable_nat_traversal": True,
|
|
378
|
+
"tunnel_index": 2,
|
|
379
|
+
"tunnel_ike_config": {
|
|
380
|
+
"local_id": "4.4.4.4",
|
|
381
|
+
"remote_id": "5.5.5.5",
|
|
382
|
+
"ike_lifetime": 86400,
|
|
383
|
+
"ike_pfs": "group5",
|
|
384
|
+
"ike_mode": "main",
|
|
385
|
+
"ike_version": "ikev2",
|
|
386
|
+
"psk": "32333442",
|
|
387
|
+
"ike_auth_alg": "md5",
|
|
388
|
+
"ike_enc_alg": "aes",
|
|
389
|
+
},
|
|
390
|
+
"tunnel_ipsec_config": {
|
|
391
|
+
"ipsec_enc_alg": "aes",
|
|
392
|
+
"ipsec_lifetime": 86400,
|
|
393
|
+
"ipsec_pfs": "group5",
|
|
394
|
+
"ipsec_auth_alg": "sha256",
|
|
395
|
+
},
|
|
396
|
+
"customer_gateway_id": default_customer_gateway.id,
|
|
397
|
+
"enable_dpd": True,
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
remote_subnet="0.0.0.0/0")
|
|
291
401
|
default_transit_router_vpn_attachment = alicloud.cen.TransitRouterVpnAttachment("default",
|
|
292
|
-
vpn_owner_id=default_m8_zo6_h.id,
|
|
293
|
-
cen_id=default_m8_zo6_h.id,
|
|
294
|
-
transit_router_attachment_description="example-vpn-attachment",
|
|
295
|
-
transit_router_id=default_m8_zo6_h.transit_router_id,
|
|
296
|
-
vpn_id=defaultvr_pzdh.id,
|
|
297
402
|
auto_publish_route_enabled=False,
|
|
403
|
+
transit_router_attachment_description=name,
|
|
404
|
+
transit_router_attachment_name=name,
|
|
405
|
+
cen_id=default_transit_router.cen_id,
|
|
406
|
+
transit_router_id=default_transit_router.transit_router_id,
|
|
407
|
+
vpn_id=default_gateway_vpn_attachment.id,
|
|
408
|
+
vpn_owner_id=default.id,
|
|
298
409
|
charge_type="POSTPAY",
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
pulumi.
|
|
410
|
+
tags={
|
|
411
|
+
"Created": "TF",
|
|
412
|
+
"For": "VpnAttachment",
|
|
413
|
+
})
|
|
414
|
+
ids = pulumi.Output.all(
|
|
415
|
+
id=default_transit_router_vpn_attachment.id,
|
|
416
|
+
cen_id=default_transit_router_vpn_attachment.cen_id,
|
|
417
|
+
transit_router_id=default_transit_router_vpn_attachment.transit_router_id
|
|
418
|
+
).apply(lambda resolved_outputs: alicloud.cen.get_transit_router_vpn_attachments_output(ids=[resolved_outputs['id']],
|
|
419
|
+
cen_id=resolved_outputs['cen_id'],
|
|
420
|
+
transit_router_id=resolved_outputs['transit_router_id']))
|
|
421
|
+
|
|
422
|
+
pulumi.export("cenTransitRouterVpnAttachmentId0", ids.attachments[0].id)
|
|
304
423
|
```
|
|
305
424
|
|
|
306
425
|
|
|
307
426
|
:param builtins.str cen_id: The ID of the Cloud Enterprise Network (CEN) instance.
|
|
308
427
|
:param Sequence[builtins.str] ids: A list of Transit Router Vpn Attachment IDs.
|
|
309
|
-
:param builtins.str name_regex: A regex string to filter results by
|
|
428
|
+
:param builtins.str name_regex: A regex string to filter results by Transit Router Vpn Attachment name.
|
|
310
429
|
:param builtins.str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
311
|
-
:param builtins.str status: The Status of Transit Router Vpn Attachment. Valid
|
|
312
|
-
:param Mapping[str, builtins.str] tags: The tag of the resource
|
|
430
|
+
:param builtins.str status: The Status of Transit Router Vpn Attachment. Valid values: `Attached`, `Attaching`, `Detaching`.
|
|
431
|
+
:param Mapping[str, builtins.str] tags: The tag of the resource.
|
|
313
432
|
:param builtins.str transit_router_attachment_id: The ID of the VPN attachment.
|
|
314
433
|
:param builtins.str transit_router_id: The ID of the transit router.
|
|
315
434
|
"""
|