| 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 |
Amazonka.Athena.Types.QueryExecution
Description
Synopsis
- data QueryExecution = QueryExecution' {
- engineVersion :: Maybe EngineVersion
- status :: Maybe QueryExecutionStatus
- queryExecutionContext :: Maybe QueryExecutionContext
- resultConfiguration :: Maybe ResultConfiguration
- query :: Maybe Text
- statementType :: Maybe StatementType
- statistics :: Maybe QueryExecutionStatistics
- queryExecutionId :: Maybe Text
- workGroup :: Maybe Text
- newQueryExecution :: QueryExecution
- queryExecution_engineVersion :: Lens' QueryExecution (Maybe EngineVersion)
- queryExecution_status :: Lens' QueryExecution (Maybe QueryExecutionStatus)
- queryExecution_queryExecutionContext :: Lens' QueryExecution (Maybe QueryExecutionContext)
- queryExecution_resultConfiguration :: Lens' QueryExecution (Maybe ResultConfiguration)
- queryExecution_query :: Lens' QueryExecution (Maybe Text)
- queryExecution_statementType :: Lens' QueryExecution (Maybe StatementType)
- queryExecution_statistics :: Lens' QueryExecution (Maybe QueryExecutionStatistics)
- queryExecution_queryExecutionId :: Lens' QueryExecution (Maybe Text)
- queryExecution_workGroup :: Lens' QueryExecution (Maybe Text)
Documentation
data QueryExecution Source #
Information about a single instance of a query execution.
See: newQueryExecution smart constructor.
Constructors
| QueryExecution' | |
Fields
| |
Instances
newQueryExecution :: QueryExecution Source #
Create a value of QueryExecution 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:engineVersion:QueryExecution', queryExecution_engineVersion - The engine version that executed the query.
$sel:status:QueryExecution', queryExecution_status - The completion date, current state, submission time, and state change
reason (if applicable) for the query execution.
$sel:queryExecutionContext:QueryExecution', queryExecution_queryExecutionContext - The database in which the query execution occurred.
$sel:resultConfiguration:QueryExecution', queryExecution_resultConfiguration - The location in Amazon S3 where query results were stored and the
encryption option, if any, used for query results. These are known as
"client-side settings". If workgroup settings override client-side
settings, then the query uses the location for the query results and the
encryption configuration that are specified for the workgroup.
$sel:query:QueryExecution', queryExecution_query - The SQL query statements which the query execution ran.
$sel:statementType:QueryExecution', queryExecution_statementType - The type of query statement that was run. DDL indicates DDL query
statements. DML indicates DML (Data Manipulation Language) query
statements, such as CREATE TABLE AS SELECT. UTILITY indicates query
statements other than DDL and DML, such as SHOW CREATE TABLE, or
DESCRIBE TABLE.
$sel:statistics:QueryExecution', queryExecution_statistics - Query execution statistics, such as the amount of data scanned, the
amount of time that the query took to process, and the type of statement
that was run.
$sel:queryExecutionId:QueryExecution', queryExecution_queryExecutionId - The unique identifier for each query execution.
$sel:workGroup:QueryExecution', queryExecution_workGroup - The name of the workgroup in which the query ran.
queryExecution_engineVersion :: Lens' QueryExecution (Maybe EngineVersion) Source #
The engine version that executed the query.
queryExecution_status :: Lens' QueryExecution (Maybe QueryExecutionStatus) Source #
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
queryExecution_queryExecutionContext :: Lens' QueryExecution (Maybe QueryExecutionContext) Source #
The database in which the query execution occurred.
queryExecution_resultConfiguration :: Lens' QueryExecution (Maybe ResultConfiguration) Source #
The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.
queryExecution_query :: Lens' QueryExecution (Maybe Text) Source #
The SQL query statements which the query execution ran.
queryExecution_statementType :: Lens' QueryExecution (Maybe StatementType) Source #
The type of query statement that was run. DDL indicates DDL query
statements. DML indicates DML (Data Manipulation Language) query
statements, such as CREATE TABLE AS SELECT. UTILITY indicates query
statements other than DDL and DML, such as SHOW CREATE TABLE, or
DESCRIBE TABLE.
queryExecution_statistics :: Lens' QueryExecution (Maybe QueryExecutionStatistics) Source #
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.
queryExecution_queryExecutionId :: Lens' QueryExecution (Maybe Text) Source #
The unique identifier for each query execution.
queryExecution_workGroup :: Lens' QueryExecution (Maybe Text) Source #
The name of the workgroup in which the query ran.