| 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 |
Amazonka.Config.ListStoredQueries
Description
Lists the stored queries for a single Amazon Web Services account and a single Amazon Web Services Region. The default is 100.
Synopsis
- data ListStoredQueries = ListStoredQueries' {}
- newListStoredQueries :: ListStoredQueries
- listStoredQueries_nextToken :: Lens' ListStoredQueries (Maybe Text)
- listStoredQueries_maxResults :: Lens' ListStoredQueries (Maybe Natural)
- data ListStoredQueriesResponse = ListStoredQueriesResponse' {}
- newListStoredQueriesResponse :: Int -> ListStoredQueriesResponse
- listStoredQueriesResponse_storedQueryMetadata :: Lens' ListStoredQueriesResponse (Maybe [StoredQueryMetadata])
- listStoredQueriesResponse_nextToken :: Lens' ListStoredQueriesResponse (Maybe Text)
- listStoredQueriesResponse_httpStatus :: Lens' ListStoredQueriesResponse Int
Creating a Request
data ListStoredQueries Source #
See: newListStoredQueries smart constructor.
Constructors
| ListStoredQueries' | |
Instances
newListStoredQueries :: ListStoredQueries Source #
Create a value of ListStoredQueries 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:ListStoredQueries', listStoredQueries_nextToken - The nextToken string returned in a previous request that you use to
request the next page of results in a paginated response.
$sel:maxResults:ListStoredQueries', listStoredQueries_maxResults - The maximum number of results to be returned with a single call.
Request Lenses
listStoredQueries_nextToken :: Lens' ListStoredQueries (Maybe Text) Source #
The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.
listStoredQueries_maxResults :: Lens' ListStoredQueries (Maybe Natural) Source #
The maximum number of results to be returned with a single call.
Destructuring the Response
data ListStoredQueriesResponse Source #
See: newListStoredQueriesResponse smart constructor.
Constructors
| ListStoredQueriesResponse' | |
Fields
| |
Instances
newListStoredQueriesResponse Source #
Create a value of ListStoredQueriesResponse 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:storedQueryMetadata:ListStoredQueriesResponse', listStoredQueriesResponse_storedQueryMetadata - A list of StoredQueryMetadata objects.
$sel:nextToken:ListStoredQueries', listStoredQueriesResponse_nextToken - If the previous paginated request didn't return all of the remaining
results, the response object's NextToken parameter value is set to a
token. To retrieve the next set of results, call this action again and
assign that token to the request object's NextToken parameter. If
there are no remaining results, the previous response object's
NextToken parameter is set to null.
$sel:httpStatus:ListStoredQueriesResponse', listStoredQueriesResponse_httpStatus - The response's http status code.
Response Lenses
listStoredQueriesResponse_storedQueryMetadata :: Lens' ListStoredQueriesResponse (Maybe [StoredQueryMetadata]) Source #
A list of StoredQueryMetadata objects.
listStoredQueriesResponse_nextToken :: Lens' ListStoredQueriesResponse (Maybe Text) Source #
If the previous paginated request didn't return all of the remaining
results, the response object's NextToken parameter value is set to a
token. To retrieve the next set of results, call this action again and
assign that token to the request object's NextToken parameter. If
there are no remaining results, the previous response object's
NextToken parameter is set to null.
listStoredQueriesResponse_httpStatus :: Lens' ListStoredQueriesResponse Int Source #
The response's http status code.