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 |
Associates a link to a device. A device can be associated to multiple links and a link can be associated to multiple devices. The device and link must be in the same global network and the same site.
Synopsis
- data AssociateLink = AssociateLink' {}
- newAssociateLink :: Text -> Text -> Text -> AssociateLink
- associateLink_globalNetworkId :: Lens' AssociateLink Text
- associateLink_deviceId :: Lens' AssociateLink Text
- associateLink_linkId :: Lens' AssociateLink Text
- data AssociateLinkResponse = AssociateLinkResponse' {}
- newAssociateLinkResponse :: Int -> AssociateLinkResponse
- associateLinkResponse_linkAssociation :: Lens' AssociateLinkResponse (Maybe LinkAssociation)
- associateLinkResponse_httpStatus :: Lens' AssociateLinkResponse Int
Creating a Request
data AssociateLink Source #
See: newAssociateLink
smart constructor.
Instances
:: Text | |
-> Text | |
-> Text | |
-> AssociateLink |
Create a value of AssociateLink
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:globalNetworkId:AssociateLink'
, associateLink_globalNetworkId
- The ID of the global network.
$sel:deviceId:AssociateLink'
, associateLink_deviceId
- The ID of the device.
$sel:linkId:AssociateLink'
, associateLink_linkId
- The ID of the link.
Request Lenses
associateLink_globalNetworkId :: Lens' AssociateLink Text Source #
The ID of the global network.
associateLink_deviceId :: Lens' AssociateLink Text Source #
The ID of the device.
associateLink_linkId :: Lens' AssociateLink Text Source #
The ID of the link.
Destructuring the Response
data AssociateLinkResponse Source #
See: newAssociateLinkResponse
smart constructor.
AssociateLinkResponse' | |
|
Instances
newAssociateLinkResponse Source #
Create a value of AssociateLinkResponse
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:linkAssociation:AssociateLinkResponse'
, associateLinkResponse_linkAssociation
- The link association.
$sel:httpStatus:AssociateLinkResponse'
, associateLinkResponse_httpStatus
- The response's http status code.
Response Lenses
associateLinkResponse_linkAssociation :: Lens' AssociateLinkResponse (Maybe LinkAssociation) Source #
The link association.
associateLinkResponse_httpStatus :: Lens' AssociateLinkResponse Int Source #
The response's http status code.