| 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.AssociateConnectPeer
Description
Associates a core network Connect peer with a device and optionally, with a link.
If you specify a link, it must be associated with the specified device. You can only associate core network Connect peers that have been created on a core network Connect attachment on a core network.
Synopsis
- data AssociateConnectPeer = AssociateConnectPeer' {
- linkId :: Maybe Text
- globalNetworkId :: Text
- connectPeerId :: Text
- deviceId :: Text
- newAssociateConnectPeer :: Text -> Text -> Text -> AssociateConnectPeer
- associateConnectPeer_linkId :: Lens' AssociateConnectPeer (Maybe Text)
- associateConnectPeer_globalNetworkId :: Lens' AssociateConnectPeer Text
- associateConnectPeer_connectPeerId :: Lens' AssociateConnectPeer Text
- associateConnectPeer_deviceId :: Lens' AssociateConnectPeer Text
- data AssociateConnectPeerResponse = AssociateConnectPeerResponse' {}
- newAssociateConnectPeerResponse :: Int -> AssociateConnectPeerResponse
- associateConnectPeerResponse_connectPeerAssociation :: Lens' AssociateConnectPeerResponse (Maybe ConnectPeerAssociation)
- associateConnectPeerResponse_httpStatus :: Lens' AssociateConnectPeerResponse Int
Creating a Request
data AssociateConnectPeer Source #
See: newAssociateConnectPeer smart constructor.
Constructors
| AssociateConnectPeer' | |
Fields
| |
Instances
newAssociateConnectPeer Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> AssociateConnectPeer |
Create a value of AssociateConnectPeer 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:
AssociateConnectPeer, associateConnectPeer_linkId - The ID of the link.
AssociateConnectPeer, associateConnectPeer_globalNetworkId - The ID of your global network.
AssociateConnectPeer, associateConnectPeer_connectPeerId - The ID of the Connect peer.
AssociateConnectPeer, associateConnectPeer_deviceId - The ID of the device.
Request Lenses
associateConnectPeer_linkId :: Lens' AssociateConnectPeer (Maybe Text) Source #
The ID of the link.
associateConnectPeer_globalNetworkId :: Lens' AssociateConnectPeer Text Source #
The ID of your global network.
associateConnectPeer_connectPeerId :: Lens' AssociateConnectPeer Text Source #
The ID of the Connect peer.
associateConnectPeer_deviceId :: Lens' AssociateConnectPeer Text Source #
The ID of the device.
Destructuring the Response
data AssociateConnectPeerResponse Source #
See: newAssociateConnectPeerResponse smart constructor.
Constructors
| AssociateConnectPeerResponse' | |
Fields
| |
Instances
newAssociateConnectPeerResponse Source #
Create a value of AssociateConnectPeerResponse 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:connectPeerAssociation:AssociateConnectPeerResponse', associateConnectPeerResponse_connectPeerAssociation - The response to the Connect peer request.
$sel:httpStatus:AssociateConnectPeerResponse', associateConnectPeerResponse_httpStatus - The response's http status code.
Response Lenses
associateConnectPeerResponse_connectPeerAssociation :: Lens' AssociateConnectPeerResponse (Maybe ConnectPeerAssociation) Source #
The response to the Connect peer request.
associateConnectPeerResponse_httpStatus :: Lens' AssociateConnectPeerResponse Int Source #
The response's http status code.