create_route_server_peer
async
¶
create_route_server_peer(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
route_server_endpoint_id: Optional[RouteServerEndpointId] = None,
peer_address: Optional[String] = None,
bgp_options: Optional[RouteServerBgpOptionsRequest] = None,
dry_run: Optional[Boolean] = None,
tag_specifications: Optional[TagSpecificationList] = None,
) -> CreateRouteServerPeerResult
Creates a new BGP peer for a specified route server endpoint.
A route server peer is a session between a route server endpoint and the device deployed in Amazon Web Services (such as a firewall appliance or other network security function running on an EC2 instance). The device must meet these requirements:
-
Have an elastic network interface in the VPC
-
Support BGP (Border Gateway Protocol)
-
Can initiate BGP sessions
For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.
Parameters:
-
route_server_endpoint_id(Optional[RouteServerEndpointId], default:None) –The ID of the route server endpoint for which to create a peer.
-
peer_address(Optional[String], default:None) –The IPv4 address of the peer device.
-
bgp_options(Optional[RouteServerBgpOptionsRequest], default:None) –The BGP options for the peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.
-
dry_run(Optional[Boolean], default:None) –A check for 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. -
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the route server peer during creation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 | |