Skip to content

EC2  >  Operations  >  delete_route_server_peer

delete_route_server_peer

Operation

delete_route_server_peer async

delete_route_server_peer(input: DeleteRouteServerPeerInput, plugins: list[Plugin] | None = None) -> DeleteRouteServerPeerOutput

Deletes the specified BGP peer from a route server.

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

Parameters:

Name Type Description Default
input DeleteRouteServerPeerInput

An instance of DeleteRouteServerPeerInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteRouteServerPeerOutput

An instance of DeleteRouteServerPeerOutput.

Input

DeleteRouteServerPeerInput dataclass

Bases: _SerdeShape

Dataclass for DeleteRouteServerPeerInput structure.

Attributes

dry_run class-attribute instance-attribute
dry_run: bool | 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 is UnauthorizedOperation.

route_server_peer_id class-attribute instance-attribute
route_server_peer_id: str | None = ...

The ID of the route server peer to delete.

Output

DeleteRouteServerPeerOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteRouteServerPeerOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

route_server_peer class-attribute instance-attribute
route_server_peer: RouteServerPeer | None = ...

Information about the deleted route server peer.