create_local_gateway_virtual_interface
¶
create_local_gateway_virtual_interface(
*,
config_overrides: Optional[EC2ClientConfig] = None,
local_gateway_virtual_interface_group_id: Optional[
LocalGatewayVirtualInterfaceGroupId
] = None,
outpost_lag_id: Optional[OutpostLagId] = None,
vlan: Optional[Integer] = None,
local_address: Optional[String] = None,
peer_address: Optional[String] = None,
peer_bgp_asn: Optional[Integer] = None,
tag_specifications: Optional[TagSpecificationList] = None,
dry_run: Optional[Boolean] = None,
peer_bgp_asn_extended: Optional[Long] = None,
) -> CreateLocalGatewayVirtualInterfaceResult
Create a virtual interface for a local gateway.
Parameters:
-
local_gateway_virtual_interface_group_id(Optional[LocalGatewayVirtualInterfaceGroupId], default:None) –The ID of the local gateway virtual interface group.
-
outpost_lag_id(Optional[OutpostLagId], default:None) –References the Link Aggregation Group (LAG) that connects the Outpost to on-premises network devices.
-
vlan(Optional[Integer], default:None) –The virtual local area network (VLAN) used for the local gateway virtual interface.
-
local_address(Optional[String], default:None) –The IP address assigned to the local gateway virtual interface on the Outpost side. Only IPv4 is supported.
-
peer_address(Optional[String], default:None) –The peer IP address for the local gateway virtual interface. Only IPv4 is supported.
-
peer_bgp_asn(Optional[Integer], default:None) –The Autonomous System Number (ASN) of the Border Gateway Protocol (BGP) peer.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to a resource when the local gateway virtual interface is being created.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
peer_bgp_asn_extended(Optional[Long], default:None) –The extended 32-bit ASN of the BGP peer for use with larger ASN values.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 | |