| 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.NetworkManager.CreateConnectPeer
Description
Creates a core network Connect peer for a specified core network connect attachment between a core network and an appliance. The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).
Synopsis
- data CreateConnectPeer = CreateConnectPeer' {
- bgpOptions :: Maybe BgpOptions
- clientToken :: Maybe Text
- coreNetworkAddress :: Maybe Text
- tags :: Maybe [Tag]
- connectAttachmentId :: Text
- peerAddress :: Text
- insideCidrBlocks :: [Text]
- newCreateConnectPeer :: Text -> Text -> CreateConnectPeer
- createConnectPeer_bgpOptions :: Lens' CreateConnectPeer (Maybe BgpOptions)
- createConnectPeer_clientToken :: Lens' CreateConnectPeer (Maybe Text)
- createConnectPeer_coreNetworkAddress :: Lens' CreateConnectPeer (Maybe Text)
- createConnectPeer_tags :: Lens' CreateConnectPeer (Maybe [Tag])
- createConnectPeer_connectAttachmentId :: Lens' CreateConnectPeer Text
- createConnectPeer_peerAddress :: Lens' CreateConnectPeer Text
- createConnectPeer_insideCidrBlocks :: Lens' CreateConnectPeer [Text]
- data CreateConnectPeerResponse = CreateConnectPeerResponse' {}
- newCreateConnectPeerResponse :: Int -> CreateConnectPeerResponse
- createConnectPeerResponse_connectPeer :: Lens' CreateConnectPeerResponse (Maybe ConnectPeer)
- createConnectPeerResponse_httpStatus :: Lens' CreateConnectPeerResponse Int
Creating a Request
data CreateConnectPeer Source #
See: newCreateConnectPeer smart constructor.
Constructors
| CreateConnectPeer' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateConnectPeer |
Create a value of CreateConnectPeer 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:bgpOptions:CreateConnectPeer', createConnectPeer_bgpOptions - The Connect peer BGP options.
$sel:clientToken:CreateConnectPeer', createConnectPeer_clientToken - The client token associated with the request.
CreateConnectPeer, createConnectPeer_coreNetworkAddress - A Connect peer core network address.
CreateConnectPeer, createConnectPeer_tags - The tags associated with the peer request.
CreateConnectPeer, createConnectPeer_connectAttachmentId - The ID of the connection attachment.
CreateConnectPeer, createConnectPeer_peerAddress - The Connect peer address.
CreateConnectPeer, createConnectPeer_insideCidrBlocks - The inside IP addresses used for BGP peering.
Request Lenses
createConnectPeer_bgpOptions :: Lens' CreateConnectPeer (Maybe BgpOptions) Source #
The Connect peer BGP options.
createConnectPeer_clientToken :: Lens' CreateConnectPeer (Maybe Text) Source #
The client token associated with the request.
createConnectPeer_coreNetworkAddress :: Lens' CreateConnectPeer (Maybe Text) Source #
A Connect peer core network address.
createConnectPeer_tags :: Lens' CreateConnectPeer (Maybe [Tag]) Source #
The tags associated with the peer request.
createConnectPeer_connectAttachmentId :: Lens' CreateConnectPeer Text Source #
The ID of the connection attachment.
createConnectPeer_peerAddress :: Lens' CreateConnectPeer Text Source #
The Connect peer address.
createConnectPeer_insideCidrBlocks :: Lens' CreateConnectPeer [Text] Source #
The inside IP addresses used for BGP peering.
Destructuring the Response
data CreateConnectPeerResponse Source #
See: newCreateConnectPeerResponse smart constructor.
Constructors
| CreateConnectPeerResponse' | |
Fields
| |
Instances
newCreateConnectPeerResponse Source #
Create a value of CreateConnectPeerResponse 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:connectPeer:CreateConnectPeerResponse', createConnectPeerResponse_connectPeer - The response to the request.
$sel:httpStatus:CreateConnectPeerResponse', createConnectPeerResponse_httpStatus - The response's http status code.
Response Lenses
createConnectPeerResponse_connectPeer :: Lens' CreateConnectPeerResponse (Maybe ConnectPeer) Source #
The response to the request.
createConnectPeerResponse_httpStatus :: Lens' CreateConnectPeerResponse Int Source #
The response's http status code.