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 |
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_nextToken :: Lens' GetLinkAssociations (Maybe Text)
- getLinkAssociations_linkId :: Lens' GetLinkAssociations (Maybe Text)
- getLinkAssociations_deviceId :: Lens' GetLinkAssociations (Maybe Text)
- getLinkAssociations_maxResults :: Lens' GetLinkAssociations (Maybe Natural)
- getLinkAssociations_globalNetworkId :: Lens' GetLinkAssociations Text
- data GetLinkAssociationsResponse = GetLinkAssociationsResponse' {}
- newGetLinkAssociationsResponse :: Int -> GetLinkAssociationsResponse
- getLinkAssociationsResponse_nextToken :: Lens' GetLinkAssociationsResponse (Maybe Text)
- getLinkAssociationsResponse_linkAssociations :: Lens' GetLinkAssociationsResponse (Maybe [LinkAssociation])
- 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:
$sel:nextToken:GetLinkAssociations'
, getLinkAssociations_nextToken
- The token for the next page of results.
$sel:linkId:GetLinkAssociations'
, getLinkAssociations_linkId
- The ID of the link.
$sel:deviceId:GetLinkAssociations'
, getLinkAssociations_deviceId
- The ID of the device.
$sel:maxResults:GetLinkAssociations'
, getLinkAssociations_maxResults
- The maximum number of results to return.
$sel:globalNetworkId:GetLinkAssociations'
, getLinkAssociations_globalNetworkId
- The ID of the global network.
Request Lenses
getLinkAssociations_nextToken :: Lens' GetLinkAssociations (Maybe Text) Source #
The token for the next page of results.
getLinkAssociations_linkId :: Lens' GetLinkAssociations (Maybe Text) Source #
The ID of the link.
getLinkAssociations_deviceId :: Lens' GetLinkAssociations (Maybe Text) Source #
The ID of the device.
getLinkAssociations_maxResults :: Lens' GetLinkAssociations (Maybe Natural) Source #
The maximum number of results to return.
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:nextToken:GetLinkAssociations'
, getLinkAssociationsResponse_nextToken
- The token for the next page of results.
$sel:linkAssociations:GetLinkAssociationsResponse'
, getLinkAssociationsResponse_linkAssociations
- The link associations.
$sel:httpStatus:GetLinkAssociationsResponse'
, getLinkAssociationsResponse_httpStatus
- The response's http status code.
Response Lenses
getLinkAssociationsResponse_nextToken :: Lens' GetLinkAssociationsResponse (Maybe Text) Source #
The token for the next page of results.
getLinkAssociationsResponse_linkAssociations :: Lens' GetLinkAssociationsResponse (Maybe [LinkAssociation]) Source #
The link associations.
getLinkAssociationsResponse_httpStatus :: Lens' GetLinkAssociationsResponse Int Source #
The response's http status code.