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 information about one or more links in a specified global network.
If you specify the site ID, you cannot specify the type or provider in the same request. You can specify the type and provider in the same request.
This operation returns paginated results.
Synopsis
- data GetLinks = GetLinks' {}
- newGetLinks :: Text -> GetLinks
- getLinks_linkIds :: Lens' GetLinks (Maybe [Text])
- getLinks_maxResults :: Lens' GetLinks (Maybe Natural)
- getLinks_nextToken :: Lens' GetLinks (Maybe Text)
- getLinks_provider :: Lens' GetLinks (Maybe Text)
- getLinks_siteId :: Lens' GetLinks (Maybe Text)
- getLinks_type :: Lens' GetLinks (Maybe Text)
- getLinks_globalNetworkId :: Lens' GetLinks Text
- data GetLinksResponse = GetLinksResponse' {}
- newGetLinksResponse :: Int -> GetLinksResponse
- getLinksResponse_links :: Lens' GetLinksResponse (Maybe [Link])
- getLinksResponse_nextToken :: Lens' GetLinksResponse (Maybe Text)
- getLinksResponse_httpStatus :: Lens' GetLinksResponse Int
Creating a Request
See: newGetLinks
smart constructor.
GetLinks' | |
|
Instances
Create a value of GetLinks
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:linkIds:GetLinks'
, getLinks_linkIds
- One or more link IDs. The maximum is 10.
$sel:maxResults:GetLinks'
, getLinks_maxResults
- The maximum number of results to return.
GetLinks
, getLinks_nextToken
- The token for the next page of results.
GetLinks
, getLinks_provider
- The link provider.
GetLinks
, getLinks_siteId
- The ID of the site.
GetLinks
, getLinks_type
- The link type.
GetLinks
, getLinks_globalNetworkId
- The ID of the global network.
Request Lenses
getLinks_maxResults :: Lens' GetLinks (Maybe Natural) Source #
The maximum number of results to return.
Destructuring the Response
data GetLinksResponse Source #
See: newGetLinksResponse
smart constructor.
Instances
Create a value of GetLinksResponse
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:links:GetLinksResponse'
, getLinksResponse_links
- The links.
GetLinks
, getLinksResponse_nextToken
- The token for the next page of results.
$sel:httpStatus:GetLinksResponse'
, getLinksResponse_httpStatus
- The response's http status code.
Response Lenses
getLinksResponse_links :: Lens' GetLinksResponse (Maybe [Link]) Source #
The links.
getLinksResponse_nextToken :: Lens' GetLinksResponse (Maybe Text) Source #
The token for the next page of results.
getLinksResponse_httpStatus :: Lens' GetLinksResponse Int Source #
The response's http status code.