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.AssociateTransitGatewayConnectPeer
Description
Associates a transit gateway 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 transit gateway Connect peers that have been created on a transit gateway that's registered in your global network.
You cannot associate a transit gateway Connect peer with more than one device and link.
Synopsis
- data AssociateTransitGatewayConnectPeer = AssociateTransitGatewayConnectPeer' {}
- newAssociateTransitGatewayConnectPeer :: Text -> Text -> Text -> AssociateTransitGatewayConnectPeer
- associateTransitGatewayConnectPeer_linkId :: Lens' AssociateTransitGatewayConnectPeer (Maybe Text)
- associateTransitGatewayConnectPeer_globalNetworkId :: Lens' AssociateTransitGatewayConnectPeer Text
- associateTransitGatewayConnectPeer_transitGatewayConnectPeerArn :: Lens' AssociateTransitGatewayConnectPeer Text
- associateTransitGatewayConnectPeer_deviceId :: Lens' AssociateTransitGatewayConnectPeer Text
- data AssociateTransitGatewayConnectPeerResponse = AssociateTransitGatewayConnectPeerResponse' {}
- newAssociateTransitGatewayConnectPeerResponse :: Int -> AssociateTransitGatewayConnectPeerResponse
- associateTransitGatewayConnectPeerResponse_transitGatewayConnectPeerAssociation :: Lens' AssociateTransitGatewayConnectPeerResponse (Maybe TransitGatewayConnectPeerAssociation)
- associateTransitGatewayConnectPeerResponse_httpStatus :: Lens' AssociateTransitGatewayConnectPeerResponse Int
Creating a Request
data AssociateTransitGatewayConnectPeer Source #
See: newAssociateTransitGatewayConnectPeer
smart constructor.
Constructors
AssociateTransitGatewayConnectPeer' | |
Fields
|
Instances
newAssociateTransitGatewayConnectPeer Source #
Arguments
:: Text | |
-> Text | |
-> Text | |
-> AssociateTransitGatewayConnectPeer |
Create a value of AssociateTransitGatewayConnectPeer
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:
AssociateTransitGatewayConnectPeer
, associateTransitGatewayConnectPeer_linkId
- The ID of the link.
AssociateTransitGatewayConnectPeer
, associateTransitGatewayConnectPeer_globalNetworkId
- The ID of the global network.
AssociateTransitGatewayConnectPeer
, associateTransitGatewayConnectPeer_transitGatewayConnectPeerArn
- The Amazon Resource Name (ARN) of the Connect peer.
AssociateTransitGatewayConnectPeer
, associateTransitGatewayConnectPeer_deviceId
- The ID of the device.
Request Lenses
associateTransitGatewayConnectPeer_linkId :: Lens' AssociateTransitGatewayConnectPeer (Maybe Text) Source #
The ID of the link.
associateTransitGatewayConnectPeer_globalNetworkId :: Lens' AssociateTransitGatewayConnectPeer Text Source #
The ID of the global network.
associateTransitGatewayConnectPeer_transitGatewayConnectPeerArn :: Lens' AssociateTransitGatewayConnectPeer Text Source #
The Amazon Resource Name (ARN) of the Connect peer.
associateTransitGatewayConnectPeer_deviceId :: Lens' AssociateTransitGatewayConnectPeer Text Source #
The ID of the device.
Destructuring the Response
data AssociateTransitGatewayConnectPeerResponse Source #
See: newAssociateTransitGatewayConnectPeerResponse
smart constructor.
Constructors
AssociateTransitGatewayConnectPeerResponse' | |
Fields
|
Instances
newAssociateTransitGatewayConnectPeerResponse Source #
Arguments
:: Int | |
-> AssociateTransitGatewayConnectPeerResponse |
Create a value of AssociateTransitGatewayConnectPeerResponse
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:transitGatewayConnectPeerAssociation:AssociateTransitGatewayConnectPeerResponse'
, associateTransitGatewayConnectPeerResponse_transitGatewayConnectPeerAssociation
- The transit gateway Connect peer association.
$sel:httpStatus:AssociateTransitGatewayConnectPeerResponse'
, associateTransitGatewayConnectPeerResponse_httpStatus
- The response's http status code.
Response Lenses
associateTransitGatewayConnectPeerResponse_transitGatewayConnectPeerAssociation :: Lens' AssociateTransitGatewayConnectPeerResponse (Maybe TransitGatewayConnectPeerAssociation) Source #
The transit gateway Connect peer association.
associateTransitGatewayConnectPeerResponse_httpStatus :: Lens' AssociateTransitGatewayConnectPeerResponse Int Source #
The response's http status code.