| 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 |
Amazonka.OAM.ListLinks
Description
Use this operation in a source account to return a list of links to monitoring account sinks that this source account has.
To find a list of links for one monitoring account sink, use ListAttachedLinks from within the monitoring account.
This operation returns paginated results.
Synopsis
- data ListLinks = ListLinks' {}
- newListLinks :: ListLinks
- listLinks_maxResults :: Lens' ListLinks (Maybe Natural)
- listLinks_nextToken :: Lens' ListLinks (Maybe Text)
- data ListLinksResponse = ListLinksResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- items :: [ListLinksItem]
- newListLinksResponse :: Int -> ListLinksResponse
- listLinksResponse_nextToken :: Lens' ListLinksResponse (Maybe Text)
- listLinksResponse_httpStatus :: Lens' ListLinksResponse Int
- listLinksResponse_items :: Lens' ListLinksResponse [ListLinksItem]
Creating a Request
See: newListLinks smart constructor.
Constructors
| ListLinks' | |
Instances
newListLinks :: ListLinks Source #
Create a value of ListLinks 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:maxResults:ListLinks', listLinks_maxResults - Limits the number of returned links to the specified number.
ListLinks, listLinks_nextToken - The token for the next set of items to return. You received this token
from a previous call.
Request Lenses
listLinks_maxResults :: Lens' ListLinks (Maybe Natural) Source #
Limits the number of returned links to the specified number.
listLinks_nextToken :: Lens' ListLinks (Maybe Text) Source #
The token for the next set of items to return. You received this token from a previous call.
Destructuring the Response
data ListLinksResponse Source #
See: newListLinksResponse smart constructor.
Constructors
| ListLinksResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> ListLinksResponse |
Create a value of ListLinksResponse 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:
ListLinks, listLinksResponse_nextToken - The token to use when requesting the next set of links.
$sel:httpStatus:ListLinksResponse', listLinksResponse_httpStatus - The response's http status code.
$sel:items:ListLinksResponse', listLinksResponse_items - An array of structures that contain the information about the returned
links.
Response Lenses
listLinksResponse_nextToken :: Lens' ListLinksResponse (Maybe Text) Source #
The token to use when requesting the next set of links.
listLinksResponse_httpStatus :: Lens' ListLinksResponse Int Source #
The response's http status code.
listLinksResponse_items :: Lens' ListLinksResponse [ListLinksItem] Source #
An array of structures that contain the information about the returned links.