| 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.CloudTrail.GetQueryResults
Description
Gets event data results of a query. You must specify the QueryID value
returned by the StartQuery operation, and an ARN for EventDataStore.
Synopsis
- data GetQueryResults = GetQueryResults' {}
- newGetQueryResults :: Text -> GetQueryResults
- getQueryResults_eventDataStore :: Lens' GetQueryResults (Maybe Text)
- getQueryResults_maxQueryResults :: Lens' GetQueryResults (Maybe Natural)
- getQueryResults_nextToken :: Lens' GetQueryResults (Maybe Text)
- getQueryResults_queryId :: Lens' GetQueryResults Text
- data GetQueryResultsResponse = GetQueryResultsResponse' {}
- newGetQueryResultsResponse :: Int -> GetQueryResultsResponse
- getQueryResultsResponse_errorMessage :: Lens' GetQueryResultsResponse (Maybe Text)
- getQueryResultsResponse_nextToken :: Lens' GetQueryResultsResponse (Maybe Text)
- getQueryResultsResponse_queryResultRows :: Lens' GetQueryResultsResponse (Maybe [[HashMap Text Text]])
- getQueryResultsResponse_queryStatistics :: Lens' GetQueryResultsResponse (Maybe QueryStatistics)
- getQueryResultsResponse_queryStatus :: Lens' GetQueryResultsResponse (Maybe QueryStatus)
- getQueryResultsResponse_httpStatus :: Lens' GetQueryResultsResponse Int
Creating a Request
data GetQueryResults Source #
See: newGetQueryResults smart constructor.
Constructors
| GetQueryResults' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetQueryResults |
Create a value of GetQueryResults 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:eventDataStore:GetQueryResults', getQueryResults_eventDataStore - The ARN (or ID suffix of the ARN) of the event data store against which
the query was run.
$sel:maxQueryResults:GetQueryResults', getQueryResults_maxQueryResults - The maximum number of query results to display on a single page.
GetQueryResults, getQueryResults_nextToken - A token you can use to get the next page of query results.
GetQueryResults, getQueryResults_queryId - The ID of the query for which you want to get results.
Request Lenses
getQueryResults_eventDataStore :: Lens' GetQueryResults (Maybe Text) Source #
The ARN (or ID suffix of the ARN) of the event data store against which the query was run.
getQueryResults_maxQueryResults :: Lens' GetQueryResults (Maybe Natural) Source #
The maximum number of query results to display on a single page.
getQueryResults_nextToken :: Lens' GetQueryResults (Maybe Text) Source #
A token you can use to get the next page of query results.
getQueryResults_queryId :: Lens' GetQueryResults Text Source #
The ID of the query for which you want to get results.
Destructuring the Response
data GetQueryResultsResponse Source #
See: newGetQueryResultsResponse smart constructor.
Constructors
| GetQueryResultsResponse' | |
Fields
| |
Instances
newGetQueryResultsResponse Source #
Create a value of GetQueryResultsResponse 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:
GetQueryResultsResponse, getQueryResultsResponse_errorMessage - The error message returned if a query failed.
GetQueryResults, getQueryResultsResponse_nextToken - A token you can use to get the next page of query results.
$sel:queryResultRows:GetQueryResultsResponse', getQueryResultsResponse_queryResultRows - Contains the individual event results of the query.
$sel:queryStatistics:GetQueryResultsResponse', getQueryResultsResponse_queryStatistics - Shows the count of query results.
GetQueryResultsResponse, getQueryResultsResponse_queryStatus - The status of the query. Values include QUEUED, RUNNING, FINISHED,
FAILED, TIMED_OUT, or CANCELLED.
$sel:httpStatus:GetQueryResultsResponse', getQueryResultsResponse_httpStatus - The response's http status code.
Response Lenses
getQueryResultsResponse_errorMessage :: Lens' GetQueryResultsResponse (Maybe Text) Source #
The error message returned if a query failed.
getQueryResultsResponse_nextToken :: Lens' GetQueryResultsResponse (Maybe Text) Source #
A token you can use to get the next page of query results.
getQueryResultsResponse_queryResultRows :: Lens' GetQueryResultsResponse (Maybe [[HashMap Text Text]]) Source #
Contains the individual event results of the query.
getQueryResultsResponse_queryStatistics :: Lens' GetQueryResultsResponse (Maybe QueryStatistics) Source #
Shows the count of query results.
getQueryResultsResponse_queryStatus :: Lens' GetQueryResultsResponse (Maybe QueryStatus) Source #
The status of the query. Values include QUEUED, RUNNING, FINISHED,
FAILED, TIMED_OUT, or CANCELLED.
getQueryResultsResponse_httpStatus :: Lens' GetQueryResultsResponse Int Source #
The response's http status code.