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 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_nextToken :: Lens' GetLinks (Maybe Text)
- getLinks_type :: Lens' GetLinks (Maybe Text)
- getLinks_siteId :: Lens' GetLinks (Maybe Text)
- getLinks_maxResults :: Lens' GetLinks (Maybe Natural)
- getLinks_provider :: Lens' GetLinks (Maybe Text)
- getLinks_globalNetworkId :: Lens' GetLinks Text
- data GetLinksResponse = GetLinksResponse' {}
- newGetLinksResponse :: Int -> GetLinksResponse
- getLinksResponse_nextToken :: Lens' GetLinksResponse (Maybe Text)
- getLinksResponse_links :: Lens' GetLinksResponse (Maybe [Link])
- 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:nextToken:GetLinks'
, getLinks_nextToken
- The token for the next page of results.
$sel:type':GetLinks'
, getLinks_type
- The link type.
$sel:siteId:GetLinks'
, getLinks_siteId
- The ID of the site.
$sel:maxResults:GetLinks'
, getLinks_maxResults
- The maximum number of results to return.
$sel:provider:GetLinks'
, getLinks_provider
- The link provider.
$sel:globalNetworkId: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:nextToken:GetLinks'
, getLinksResponse_nextToken
- The token for the next page of results.
$sel:links:GetLinksResponse'
, getLinksResponse_links
- The links.
$sel:httpStatus:GetLinksResponse'
, getLinksResponse_httpStatus
- The response's http status code.
Response Lenses
getLinksResponse_nextToken :: Lens' GetLinksResponse (Maybe Text) Source #
The token for the next page of results.
getLinksResponse_links :: Lens' GetLinksResponse (Maybe [Link]) Source #
The links.
getLinksResponse_httpStatus :: Lens' GetLinksResponse Int Source #
The response's http status code.