| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DirectConnect.DeleteBGPPeer
Description
Deletes the specified BGP peer on the specified virtual interface with the specified customer address and ASN.
You cannot delete the last BGP peer from a virtual interface.
Synopsis
- data DeleteBGPPeer = DeleteBGPPeer' {}
- newDeleteBGPPeer :: DeleteBGPPeer
- deleteBGPPeer_asn :: Lens' DeleteBGPPeer (Maybe Int)
- deleteBGPPeer_bgpPeerId :: Lens' DeleteBGPPeer (Maybe Text)
- deleteBGPPeer_customerAddress :: Lens' DeleteBGPPeer (Maybe Text)
- deleteBGPPeer_virtualInterfaceId :: Lens' DeleteBGPPeer (Maybe Text)
- data DeleteBGPPeerResponse = DeleteBGPPeerResponse' {}
- newDeleteBGPPeerResponse :: Int -> DeleteBGPPeerResponse
- deleteBGPPeerResponse_virtualInterface :: Lens' DeleteBGPPeerResponse (Maybe VirtualInterface)
- deleteBGPPeerResponse_httpStatus :: Lens' DeleteBGPPeerResponse Int
Creating a Request
data DeleteBGPPeer Source #
See: newDeleteBGPPeer smart constructor.
Constructors
| DeleteBGPPeer' | |
Instances
newDeleteBGPPeer :: DeleteBGPPeer Source #
Create a value of DeleteBGPPeer with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DeleteBGPPeer, deleteBGPPeer_asn - The autonomous system (AS) number for Border Gateway Protocol (BGP)
configuration.
DeleteBGPPeer, deleteBGPPeer_bgpPeerId - The ID of the BGP peer.
DeleteBGPPeer, deleteBGPPeer_customerAddress - The IP address assigned to the customer interface.
DeleteBGPPeer, deleteBGPPeer_virtualInterfaceId - The ID of the virtual interface.
Request Lenses
deleteBGPPeer_asn :: Lens' DeleteBGPPeer (Maybe Int) Source #
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
deleteBGPPeer_bgpPeerId :: Lens' DeleteBGPPeer (Maybe Text) Source #
The ID of the BGP peer.
deleteBGPPeer_customerAddress :: Lens' DeleteBGPPeer (Maybe Text) Source #
The IP address assigned to the customer interface.
deleteBGPPeer_virtualInterfaceId :: Lens' DeleteBGPPeer (Maybe Text) Source #
The ID of the virtual interface.
Destructuring the Response
data DeleteBGPPeerResponse Source #
See: newDeleteBGPPeerResponse smart constructor.
Constructors
| DeleteBGPPeerResponse' | |
Fields
| |
Instances
newDeleteBGPPeerResponse Source #
Create a value of DeleteBGPPeerResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:virtualInterface:DeleteBGPPeerResponse', deleteBGPPeerResponse_virtualInterface - The virtual interface.
$sel:httpStatus:DeleteBGPPeerResponse', deleteBGPPeerResponse_httpStatus - The response's http status code.
Response Lenses
deleteBGPPeerResponse_virtualInterface :: Lens' DeleteBGPPeerResponse (Maybe VirtualInterface) Source #
The virtual interface.
deleteBGPPeerResponse_httpStatus :: Lens' DeleteBGPPeerResponse Int Source #
The response's http status code.