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 |
Gets the link associations for a device or a link. Either the device ID or the link ID must be specified.
This operation returns paginated results.
Synopsis
- data GetLinkAssociations = GetLinkAssociations' {}
- newGetLinkAssociations :: Text -> GetLinkAssociations
- getLinkAssociations_deviceId :: Lens' GetLinkAssociations (Maybe Text)
- getLinkAssociations_linkId :: Lens' GetLinkAssociations (Maybe Text)
- getLinkAssociations_maxResults :: Lens' GetLinkAssociations (Maybe Natural)
- getLinkAssociations_nextToken :: Lens' GetLinkAssociations (Maybe Text)
- getLinkAssociations_globalNetworkId :: Lens' GetLinkAssociations Text
- data GetLinkAssociationsResponse = GetLinkAssociationsResponse' {}
- newGetLinkAssociationsResponse :: Int -> GetLinkAssociationsResponse
- getLinkAssociationsResponse_linkAssociations :: Lens' GetLinkAssociationsResponse (Maybe [LinkAssociation])
- getLinkAssociationsResponse_nextToken :: Lens' GetLinkAssociationsResponse (Maybe Text)
- getLinkAssociationsResponse_httpStatus :: Lens' GetLinkAssociationsResponse Int
Creating a Request
data GetLinkAssociations Source #
See: newGetLinkAssociations
smart constructor.
Instances
newGetLinkAssociations Source #
Create a value of GetLinkAssociations
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:
GetLinkAssociations
, getLinkAssociations_deviceId
- The ID of the device.
GetLinkAssociations
, getLinkAssociations_linkId
- The ID of the link.
$sel:maxResults:GetLinkAssociations'
, getLinkAssociations_maxResults
- The maximum number of results to return.
GetLinkAssociations
, getLinkAssociations_nextToken
- The token for the next page of results.
GetLinkAssociations
, getLinkAssociations_globalNetworkId
- The ID of the global network.
Request Lenses
getLinkAssociations_deviceId :: Lens' GetLinkAssociations (Maybe Text) Source #
The ID of the device.
getLinkAssociations_linkId :: Lens' GetLinkAssociations (Maybe Text) Source #
The ID of the link.
getLinkAssociations_maxResults :: Lens' GetLinkAssociations (Maybe Natural) Source #
The maximum number of results to return.
getLinkAssociations_nextToken :: Lens' GetLinkAssociations (Maybe Text) Source #
The token for the next page of results.
getLinkAssociations_globalNetworkId :: Lens' GetLinkAssociations Text Source #
The ID of the global network.
Destructuring the Response
data GetLinkAssociationsResponse Source #
See: newGetLinkAssociationsResponse
smart constructor.
GetLinkAssociationsResponse' | |
|
Instances
newGetLinkAssociationsResponse Source #
Create a value of GetLinkAssociationsResponse
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:linkAssociations:GetLinkAssociationsResponse'
, getLinkAssociationsResponse_linkAssociations
- The link associations.
GetLinkAssociations
, getLinkAssociationsResponse_nextToken
- The token for the next page of results.
$sel:httpStatus:GetLinkAssociationsResponse'
, getLinkAssociationsResponse_httpStatus
- The response's http status code.
Response Lenses
getLinkAssociationsResponse_linkAssociations :: Lens' GetLinkAssociationsResponse (Maybe [LinkAssociation]) Source #
The link associations.
getLinkAssociationsResponse_nextToken :: Lens' GetLinkAssociationsResponse (Maybe Text) Source #
The token for the next page of results.
getLinkAssociationsResponse_httpStatus :: Lens' GetLinkAssociationsResponse Int Source #
The response's http status code.