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 a list of CloudWatch Logs Insights queries that are scheduled, executing, or have been executed recently in this account. You can request all queries or limit it to queries of a specific log group or queries with a certain status.
This operation returns paginated results.
Synopsis
- data DescribeQueries = DescribeQueries' {}
- newDescribeQueries :: DescribeQueries
- describeQueries_status :: Lens' DescribeQueries (Maybe QueryStatus)
- describeQueries_logGroupName :: Lens' DescribeQueries (Maybe Text)
- describeQueries_nextToken :: Lens' DescribeQueries (Maybe Text)
- describeQueries_maxResults :: Lens' DescribeQueries (Maybe Natural)
- data DescribeQueriesResponse = DescribeQueriesResponse' {}
- newDescribeQueriesResponse :: Int -> DescribeQueriesResponse
- describeQueriesResponse_queries :: Lens' DescribeQueriesResponse (Maybe [QueryInfo])
- describeQueriesResponse_nextToken :: Lens' DescribeQueriesResponse (Maybe Text)
- describeQueriesResponse_httpStatus :: Lens' DescribeQueriesResponse Int
Creating a Request
data DescribeQueries Source #
See: newDescribeQueries
smart constructor.
DescribeQueries' | |
|
Instances
newDescribeQueries :: DescribeQueries Source #
Create a value of DescribeQueries
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:status:DescribeQueries'
, describeQueries_status
- Limits the returned queries to only those that have the specified
status. Valid values are Cancelled
, Complete
, Failed
, Running
,
and Scheduled
.
$sel:logGroupName:DescribeQueries'
, describeQueries_logGroupName
- Limits the returned queries to only those for the specified log group.
$sel:nextToken:DescribeQueries'
, describeQueries_nextToken
- Undocumented member.
$sel:maxResults:DescribeQueries'
, describeQueries_maxResults
- Limits the number of returned queries to the specified number.
Request Lenses
describeQueries_status :: Lens' DescribeQueries (Maybe QueryStatus) Source #
Limits the returned queries to only those that have the specified
status. Valid values are Cancelled
, Complete
, Failed
, Running
,
and Scheduled
.
describeQueries_logGroupName :: Lens' DescribeQueries (Maybe Text) Source #
Limits the returned queries to only those for the specified log group.
describeQueries_nextToken :: Lens' DescribeQueries (Maybe Text) Source #
Undocumented member.
describeQueries_maxResults :: Lens' DescribeQueries (Maybe Natural) Source #
Limits the number of returned queries to the specified number.
Destructuring the Response
data DescribeQueriesResponse Source #
See: newDescribeQueriesResponse
smart constructor.
Instances
newDescribeQueriesResponse Source #
Create a value of DescribeQueriesResponse
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:queries:DescribeQueriesResponse'
, describeQueriesResponse_queries
- The list of queries that match the request.
$sel:nextToken:DescribeQueries'
, describeQueriesResponse_nextToken
- Undocumented member.
$sel:httpStatus:DescribeQueriesResponse'
, describeQueriesResponse_httpStatus
- The response's http status code.
Response Lenses
describeQueriesResponse_queries :: Lens' DescribeQueriesResponse (Maybe [QueryInfo]) Source #
The list of queries that match the request.
describeQueriesResponse_nextToken :: Lens' DescribeQueriesResponse (Maybe Text) Source #
Undocumented member.
describeQueriesResponse_httpStatus :: Lens' DescribeQueriesResponse Int Source #
The response's http status code.