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 |
Deletes an existing link. You must first disassociate the link from any devices and customer gateways.
Synopsis
- data DeleteLink = DeleteLink' {
- globalNetworkId :: Text
- linkId :: Text
- newDeleteLink :: Text -> Text -> DeleteLink
- deleteLink_globalNetworkId :: Lens' DeleteLink Text
- deleteLink_linkId :: Lens' DeleteLink Text
- data DeleteLinkResponse = DeleteLinkResponse' {
- link :: Maybe Link
- httpStatus :: Int
- newDeleteLinkResponse :: Int -> DeleteLinkResponse
- deleteLinkResponse_link :: Lens' DeleteLinkResponse (Maybe Link)
- deleteLinkResponse_httpStatus :: Lens' DeleteLinkResponse Int
Creating a Request
data DeleteLink Source #
See: newDeleteLink
smart constructor.
DeleteLink' | |
|
Instances
Create a value of DeleteLink
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:
DeleteLink
, deleteLink_globalNetworkId
- The ID of the global network.
DeleteLink
, deleteLink_linkId
- The ID of the link.
Request Lenses
deleteLink_globalNetworkId :: Lens' DeleteLink Text Source #
The ID of the global network.
deleteLink_linkId :: Lens' DeleteLink Text Source #
The ID of the link.
Destructuring the Response
data DeleteLinkResponse Source #
See: newDeleteLinkResponse
smart constructor.
DeleteLinkResponse' | |
|
Instances
newDeleteLinkResponse Source #
Create a value of DeleteLinkResponse
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:link:DeleteLinkResponse'
, deleteLinkResponse_link
- Information about the link.
$sel:httpStatus:DeleteLinkResponse'
, deleteLinkResponse_httpStatus
- The response's http status code.
Response Lenses
deleteLinkResponse_link :: Lens' DeleteLinkResponse (Maybe Link) Source #
Information about the link.
deleteLinkResponse_httpStatus :: Lens' DeleteLinkResponse Int Source #
The response's http status code.