| 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.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_maxResults :: Lens' ListStoredQueries (Maybe Natural)
- listStoredQueries_nextToken :: Lens' ListStoredQueries (Maybe Text)
- data ListStoredQueriesResponse = ListStoredQueriesResponse' {}
- newListStoredQueriesResponse :: Int -> ListStoredQueriesResponse
- listStoredQueriesResponse_nextToken :: Lens' ListStoredQueriesResponse (Maybe Text)
- listStoredQueriesResponse_storedQueryMetadata :: Lens' ListStoredQueriesResponse (Maybe [StoredQueryMetadata])
- 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:maxResults:ListStoredQueries', listStoredQueries_maxResults - The maximum number of results to be returned with a single call.
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.
Request Lenses
listStoredQueries_maxResults :: Lens' ListStoredQueries (Maybe Natural) Source #
The maximum number of results to be returned with a single call.
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.
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:
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:storedQueryMetadata:ListStoredQueriesResponse', listStoredQueriesResponse_storedQueryMetadata - A list of StoredQueryMetadata objects.
$sel:httpStatus:ListStoredQueriesResponse', listStoredQueriesResponse_httpStatus - The response's http status code.
Response Lenses
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_storedQueryMetadata :: Lens' ListStoredQueriesResponse (Maybe [StoredQueryMetadata]) Source #
A list of StoredQueryMetadata objects.
listStoredQueriesResponse_httpStatus :: Lens' ListStoredQueriesResponse Int Source #
The response's http status code.