Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a BGP peer on the specified virtual interface.
You must create a BGP peer for the corresponding address family (IPv4/IPv6) in order to access Amazon Web Services resources that also use that address family.
If logical redundancy is not supported by the connection, interconnect, or LAG, the BGP peer cannot be in the same address family as an existing BGP peer on the virtual interface.
When creating a IPv6 BGP peer, omit the Amazon address and customer address. IPv6 addresses are automatically assigned from the Amazon pool of IPv6 addresses; you cannot specify custom IPv6 addresses.
For a public virtual interface, the Autonomous System Number (ASN) must be private or already on the allow list for the virtual interface.
Synopsis
- data CreateBGPPeer = CreateBGPPeer' {}
- newCreateBGPPeer :: CreateBGPPeer
- createBGPPeer_newBGPPeer :: Lens' CreateBGPPeer (Maybe NewBGPPeer)
- createBGPPeer_virtualInterfaceId :: Lens' CreateBGPPeer (Maybe Text)
- data CreateBGPPeerResponse = CreateBGPPeerResponse' {}
- newCreateBGPPeerResponse :: Int -> CreateBGPPeerResponse
- createBGPPeerResponse_virtualInterface :: Lens' CreateBGPPeerResponse (Maybe VirtualInterface)
- createBGPPeerResponse_httpStatus :: Lens' CreateBGPPeerResponse Int
Creating a Request
data CreateBGPPeer Source #
See: newCreateBGPPeer
smart constructor.
CreateBGPPeer' | |
|
Instances
newCreateBGPPeer :: CreateBGPPeer Source #
Create a value of CreateBGPPeer
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:newBGPPeer':CreateBGPPeer'
, createBGPPeer_newBGPPeer
- Information about the BGP peer.
$sel:virtualInterfaceId:CreateBGPPeer'
, createBGPPeer_virtualInterfaceId
- The ID of the virtual interface.
Request Lenses
createBGPPeer_newBGPPeer :: Lens' CreateBGPPeer (Maybe NewBGPPeer) Source #
Information about the BGP peer.
createBGPPeer_virtualInterfaceId :: Lens' CreateBGPPeer (Maybe Text) Source #
The ID of the virtual interface.
Destructuring the Response
data CreateBGPPeerResponse Source #
See: newCreateBGPPeerResponse
smart constructor.
CreateBGPPeerResponse' | |
|
Instances
newCreateBGPPeerResponse Source #
Create a value of CreateBGPPeerResponse
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:CreateBGPPeerResponse'
, createBGPPeerResponse_virtualInterface
- The virtual interface.
$sel:httpStatus:CreateBGPPeerResponse'
, createBGPPeerResponse_httpStatus
- The response's http status code.
Response Lenses
createBGPPeerResponse_virtualInterface :: Lens' CreateBGPPeerResponse (Maybe VirtualInterface) Source #
The virtual interface.
createBGPPeerResponse_httpStatus :: Lens' CreateBGPPeerResponse Int Source #
The response's http status code.