create_local_gateway_virtual_interface
async
¶
create_local_gateway_virtual_interface(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 | |