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 |
Returns the list of behavior graphs that the calling account is an administrator account of. This operation can only be called by an administrator account.
Because an account can currently only be the administrator of one behavior graph within a Region, the results always contain a single behavior graph.
Synopsis
- data ListGraphs = ListGraphs' {}
- newListGraphs :: ListGraphs
- listGraphs_nextToken :: Lens' ListGraphs (Maybe Text)
- listGraphs_maxResults :: Lens' ListGraphs (Maybe Natural)
- data ListGraphsResponse = ListGraphsResponse' {}
- newListGraphsResponse :: Int -> ListGraphsResponse
- listGraphsResponse_nextToken :: Lens' ListGraphsResponse (Maybe Text)
- listGraphsResponse_graphList :: Lens' ListGraphsResponse (Maybe [Graph])
- listGraphsResponse_httpStatus :: Lens' ListGraphsResponse Int
Creating a Request
data ListGraphs Source #
See: newListGraphs
smart constructor.
ListGraphs' | |
|
Instances
newListGraphs :: ListGraphs Source #
Create a value of ListGraphs
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:ListGraphs'
, listGraphs_nextToken
- For requests to get the next page of results, the pagination token that
was returned with the previous set of results. The initial request does
not include a pagination token.
$sel:maxResults:ListGraphs'
, listGraphs_maxResults
- The maximum number of graphs to return at a time. The total must be less
than the overall limit on the number of results to return, which is
currently 200.
Request Lenses
listGraphs_nextToken :: Lens' ListGraphs (Maybe Text) Source #
For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.
listGraphs_maxResults :: Lens' ListGraphs (Maybe Natural) Source #
The maximum number of graphs to return at a time. The total must be less than the overall limit on the number of results to return, which is currently 200.
Destructuring the Response
data ListGraphsResponse Source #
See: newListGraphsResponse
smart constructor.
ListGraphsResponse' | |
|
Instances
newListGraphsResponse Source #
Create a value of ListGraphsResponse
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:ListGraphs'
, listGraphsResponse_nextToken
- If there are more behavior graphs remaining in the results, then this is
the pagination token to use to request the next page of behavior graphs.
$sel:graphList:ListGraphsResponse'
, listGraphsResponse_graphList
- A list of behavior graphs that the account is an administrator account
for.
$sel:httpStatus:ListGraphsResponse'
, listGraphsResponse_httpStatus
- The response's http status code.
Response Lenses
listGraphsResponse_nextToken :: Lens' ListGraphsResponse (Maybe Text) Source #
If there are more behavior graphs remaining in the results, then this is the pagination token to use to request the next page of behavior graphs.
listGraphsResponse_graphList :: Lens' ListGraphsResponse (Maybe [Graph]) Source #
A list of behavior graphs that the account is an administrator account for.
listGraphsResponse_httpStatus :: Lens' ListGraphsResponse Int Source #
The response's http status code.