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 |
Runs (executes) the SQL query statements contained in the Query
string.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide .
Synopsis
- startQueryExecution :: Text -> ResultConfiguration -> StartQueryExecution
- data StartQueryExecution
- sqeQueryExecutionContext :: Lens' StartQueryExecution (Maybe QueryExecutionContext)
- sqeClientRequestToken :: Lens' StartQueryExecution (Maybe Text)
- sqeQueryString :: Lens' StartQueryExecution Text
- sqeResultConfiguration :: Lens' StartQueryExecution ResultConfiguration
- startQueryExecutionResponse :: Int -> StartQueryExecutionResponse
- data StartQueryExecutionResponse
- sqersQueryExecutionId :: Lens' StartQueryExecutionResponse (Maybe Text)
- sqersResponseStatus :: Lens' StartQueryExecutionResponse Int
Creating a Request
Creates a value of StartQueryExecution
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sqeQueryExecutionContext
- The database within which the query executes.sqeClientRequestToken
- A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If anotherStartQueryExecution
request is received, the same response is returned and another query is not created. If a parameter has changed, for example, theQueryString
, an error is returned. Important: This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.sqeQueryString
- The SQL query statements to be executed.sqeResultConfiguration
- Specifies information about where and how to save the results of the query execution.
data StartQueryExecution Source #
See: startQueryExecution
smart constructor.
Instances
Request Lenses
sqeQueryExecutionContext :: Lens' StartQueryExecution (Maybe QueryExecutionContext) Source #
The database within which the query executes.
sqeClientRequestToken :: Lens' StartQueryExecution (Maybe Text) Source #
A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another StartQueryExecution
request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString
, an error is returned. Important: This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.
sqeQueryString :: Lens' StartQueryExecution Text Source #
The SQL query statements to be executed.
sqeResultConfiguration :: Lens' StartQueryExecution ResultConfiguration Source #
Specifies information about where and how to save the results of the query execution.
Destructuring the Response
startQueryExecutionResponse Source #
Creates a value of StartQueryExecutionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sqersQueryExecutionId
- The unique ID of the query that ran as a result of this request.sqersResponseStatus
- -- | The response status code.
data StartQueryExecutionResponse Source #
See: startQueryExecutionResponse
smart constructor.
Instances
Response Lenses
sqersQueryExecutionId :: Lens' StartQueryExecutionResponse (Maybe Text) Source #
The unique ID of the query that ran as a result of this request.
sqersResponseStatus :: Lens' StartQueryExecutionResponse Int Source #
- - | The response status code.