Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Returns the results of a single query execution specified by QueryExecutionId
. This request does not execute the query but returns results. Use StartQueryExecution
to run a query.
This operation returns paginated results.
Synopsis
- getQueryResults :: Text -> GetQueryResults
- data GetQueryResults
- gqrNextToken :: Lens' GetQueryResults (Maybe Text)
- gqrMaxResults :: Lens' GetQueryResults (Maybe Natural)
- gqrQueryExecutionId :: Lens' GetQueryResults Text
- getQueryResultsResponse :: Int -> GetQueryResultsResponse
- data GetQueryResultsResponse
- gqrrsNextToken :: Lens' GetQueryResultsResponse (Maybe Text)
- gqrrsResultSet :: Lens' GetQueryResultsResponse (Maybe ResultSet)
- gqrrsResponseStatus :: Lens' GetQueryResultsResponse Int
Creating a Request
Creates a value of GetQueryResults
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gqrNextToken
- The token that specifies where to start pagination if a previous request was truncated.gqrMaxResults
- The maximum number of results (rows) to return in this request.gqrQueryExecutionId
- The unique ID of the query execution.
data GetQueryResults Source #
See: getQueryResults
smart constructor.
Instances
Request Lenses
gqrNextToken :: Lens' GetQueryResults (Maybe Text) Source #
The token that specifies where to start pagination if a previous request was truncated.
gqrMaxResults :: Lens' GetQueryResults (Maybe Natural) Source #
The maximum number of results (rows) to return in this request.
gqrQueryExecutionId :: Lens' GetQueryResults Text Source #
The unique ID of the query execution.
Destructuring the Response
getQueryResultsResponse Source #
Creates a value of GetQueryResultsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gqrrsNextToken
- A token to be used by the next request if this request is truncated.gqrrsResultSet
- The results of the query execution.gqrrsResponseStatus
- -- | The response status code.
data GetQueryResultsResponse Source #
See: getQueryResultsResponse
smart constructor.
Instances
Response Lenses
gqrrsNextToken :: Lens' GetQueryResultsResponse (Maybe Text) Source #
A token to be used by the next request if this request is truncated.
gqrrsResultSet :: Lens' GetQueryResultsResponse (Maybe ResultSet) Source #
The results of the query execution.
gqrrsResponseStatus :: Lens' GetQueryResultsResponse Int Source #
- - | The response status code.