libZSservicesZSamazonka-athenaZSamazonka-athena
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Athena.Lens

Description

 
Synopsis

Operations

ListDatabases

listDatabases_nextToken :: Lens' ListDatabases (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural) Source #

Specifies the maximum number of results to return.

listDatabases_catalogName :: Lens' ListDatabases Text Source #

The name of the data catalog that contains the databases to return.

listDatabasesResponse_nextToken :: Lens' ListDatabasesResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

CreatePreparedStatement

createPreparedStatement_description :: Lens' CreatePreparedStatement (Maybe Text) Source #

The description of the prepared statement.

createPreparedStatement_workGroup :: Lens' CreatePreparedStatement Text Source #

The name of the workgroup to which the prepared statement belongs.

createPreparedStatement_queryStatement :: Lens' CreatePreparedStatement Text Source #

The query string for the prepared statement.

DeleteWorkGroup

deleteWorkGroup_recursiveDeleteOption :: Lens' DeleteWorkGroup (Maybe Bool) Source #

The option to delete the workgroup and its contents even if the workgroup contains any named queries or query executions.

deleteWorkGroup_workGroup :: Lens' DeleteWorkGroup Text Source #

The unique name of the workgroup to delete.

UpdateWorkGroup

updateWorkGroup_state :: Lens' UpdateWorkGroup (Maybe WorkGroupState) Source #

The workgroup state that will be updated for the given workgroup.

updateWorkGroup_configurationUpdates :: Lens' UpdateWorkGroup (Maybe WorkGroupConfigurationUpdates) Source #

The workgroup configuration that will be updated for the given workgroup.

updateWorkGroup_workGroup :: Lens' UpdateWorkGroup Text Source #

The specified workgroup that will be updated.

GetNamedQuery

getNamedQuery_namedQueryId :: Lens' GetNamedQuery Text Source #

The unique ID of the query. Use ListNamedQueries to get query IDs.

ListTagsForResource

listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #

The token for the next set of results, or null if there are no additional results for this request, where the request lists the tags for the resource with the specified ARN.

listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural) Source #

The maximum number of results to be returned per request that lists the tags for the resource.

listTagsForResource_resourceARN :: Lens' ListTagsForResource Text Source #

Lists the tags for the resource with the specified ARN.

listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #

A token to be used by the next request if this request is truncated.

listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #

The list of tags associated with the specified resource.

DeleteDataCatalog

deleteDataCatalog_name :: Lens' DeleteDataCatalog Text Source #

The name of the data catalog to delete.

UpdateDataCatalog

updateDataCatalog_parameters :: Lens' UpdateDataCatalog (Maybe (HashMap Text Text)) Source #

Specifies the Lambda function or functions to use for updating the data catalog. This is a mapping whose values depend on the catalog type.

  • For the HIVE data catalog type, use the following syntax. The metadata-function parameter is required. The sdk-version parameter is optional and defaults to the currently supported version.

    metadata-function=lambda_arn, sdk-version=version_number
  • For the LAMBDA data catalog type, use one of the following sets of required parameters, but not both.

    • If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.

      metadata-function=lambda_arn, record-function=lambda_arn
    • If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.

      function=lambda_arn

updateDataCatalog_description :: Lens' UpdateDataCatalog (Maybe Text) Source #

New or modified text that describes the data catalog.

updateDataCatalog_name :: Lens' UpdateDataCatalog Text Source #

The name of the data catalog to update. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.

updateDataCatalog_type :: Lens' UpdateDataCatalog DataCatalogType Source #

Specifies the type of data catalog to update. Specify LAMBDA for a federated catalog, HIVE for an external hive metastore, or GLUE for an Glue Data Catalog.

ListDataCatalogs

listDataCatalogs_nextToken :: Lens' ListDataCatalogs (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listDataCatalogs_maxResults :: Lens' ListDataCatalogs (Maybe Natural) Source #

Specifies the maximum number of data catalogs to return.

listDataCatalogsResponse_nextToken :: Lens' ListDataCatalogsResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

CreateNamedQuery

createNamedQuery_clientRequestToken :: Lens' CreateNamedQuery (Maybe Text) Source #

A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another CreateNamedQuery 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.

This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.

createNamedQuery_workGroup :: Lens' CreateNamedQuery (Maybe Text) Source #

The name of the workgroup in which the named query is being created.

createNamedQuery_database :: Lens' CreateNamedQuery Text Source #

The database to which the query belongs.

createNamedQuery_queryString :: Lens' CreateNamedQuery Text Source #

The contents of the query with all query statements.

GetTableMetadata

getTableMetadata_catalogName :: Lens' GetTableMetadata Text Source #

The name of the data catalog that contains the database and table metadata to return.

getTableMetadata_databaseName :: Lens' GetTableMetadata Text Source #

The name of the database that contains the table metadata to return.

getTableMetadata_tableName :: Lens' GetTableMetadata Text Source #

The name of the table for which metadata is returned.

ListNamedQueries

listNamedQueries_nextToken :: Lens' ListNamedQueries (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listNamedQueries_workGroup :: Lens' ListNamedQueries (Maybe Text) Source #

The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.

listNamedQueries_maxResults :: Lens' ListNamedQueries (Maybe Natural) Source #

The maximum number of queries to return in this request.

listNamedQueriesResponse_nextToken :: Lens' ListNamedQueriesResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

DeleteNamedQuery

deleteNamedQuery_namedQueryId :: Lens' DeleteNamedQuery Text Source #

The unique ID of the query to delete.

StartQueryExecution

startQueryExecution_resultConfiguration :: Lens' StartQueryExecution (Maybe ResultConfiguration) Source #

Specifies information about where and how to save the results of the query execution. If the query runs in a workgroup, then workgroup's settings may override query settings. This affects the query results location. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

startQueryExecution_clientRequestToken :: 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.

This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.

startQueryExecution_workGroup :: Lens' StartQueryExecution (Maybe Text) Source #

The name of the workgroup in which the query is being started.

startQueryExecution_queryString :: Lens' StartQueryExecution Text Source #

The SQL query statements to be executed.

startQueryExecutionResponse_queryExecutionId :: Lens' StartQueryExecutionResponse (Maybe Text) Source #

The unique ID of the query that ran as a result of this request.

BatchGetNamedQuery

GetQueryExecution

getQueryExecution_queryExecutionId :: Lens' GetQueryExecution Text Source #

The unique ID of the query execution.

ListPreparedStatements

listPreparedStatements_nextToken :: Lens' ListPreparedStatements (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listPreparedStatements_maxResults :: Lens' ListPreparedStatements (Maybe Natural) Source #

The maximum number of results to return in this request.

listPreparedStatements_workGroup :: Lens' ListPreparedStatements Text Source #

The workgroup to list the prepared statements for.

listPreparedStatementsResponse_nextToken :: Lens' ListPreparedStatementsResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

CreateDataCatalog

createDataCatalog_parameters :: Lens' CreateDataCatalog (Maybe (HashMap Text Text)) Source #

Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.

  • For the HIVE data catalog type, use the following syntax. The metadata-function parameter is required. The sdk-version parameter is optional and defaults to the currently supported version.

    metadata-function=lambda_arn, sdk-version=version_number
  • For the LAMBDA data catalog type, use one of the following sets of required parameters, but not both.

    • If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.

      metadata-function=lambda_arn, record-function=lambda_arn
    • If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.

      function=lambda_arn
  • The GLUE type takes a catalog ID parameter and is required. The catalog_id is the account ID of the Amazon Web Services account to which the Glue Data Catalog belongs.

    catalog-id=catalog_id
    • The GLUE data catalog type also applies to the default AwsDataCatalog that already exists in your account, of which you can have only one and cannot modify.
    • Queries that specify a Glue Data Catalog other than the default AwsDataCatalog must be run on Athena engine version 2.
    • In Regions where Athena engine version 2 is not available, creating new Glue data catalogs results in an INVALID_INPUT error.

createDataCatalog_description :: Lens' CreateDataCatalog (Maybe Text) Source #

A description of the data catalog to be created.

createDataCatalog_tags :: Lens' CreateDataCatalog (Maybe [Tag]) Source #

A list of comma separated tags to add to the data catalog that is created.

createDataCatalog_name :: Lens' CreateDataCatalog Text Source #

The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.

createDataCatalog_type :: Lens' CreateDataCatalog DataCatalogType Source #

The type of data catalog to create: LAMBDA for a federated catalog, HIVE for an external hive metastore, or GLUE for an Glue Data Catalog.

ListWorkGroups

listWorkGroups_nextToken :: Lens' ListWorkGroups (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listWorkGroups_maxResults :: Lens' ListWorkGroups (Maybe Natural) Source #

The maximum number of workgroups to return in this request.

listWorkGroupsResponse_nextToken :: Lens' ListWorkGroupsResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listWorkGroupsResponse_workGroups :: Lens' ListWorkGroupsResponse (Maybe [WorkGroupSummary]) Source #

A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.

CreateWorkGroup

createWorkGroup_configuration :: Lens' CreateWorkGroup (Maybe WorkGroupConfiguration) Source #

The configuration for the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption configuration, if any, used for encrypting query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the amount of bytes scanned (cutoff) per query, if it is specified, and whether workgroup's settings (specified with EnforceWorkGroupConfiguration) in the WorkGroupConfiguration override client-side settings. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

createWorkGroup_tags :: Lens' CreateWorkGroup (Maybe [Tag]) Source #

A list of comma separated tags to add to the workgroup that is created.

BatchGetQueryExecution

ListEngineVersions

listEngineVersions_nextToken :: Lens' ListEngineVersions (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listEngineVersions_maxResults :: Lens' ListEngineVersions (Maybe Natural) Source #

The maximum number of engine versions to return in this request.

listEngineVersionsResponse_nextToken :: Lens' ListEngineVersionsResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listEngineVersionsResponse_engineVersions :: Lens' ListEngineVersionsResponse (Maybe [EngineVersion]) Source #

A list of engine versions that are available to choose from.

GetDataCatalog

getDataCatalog_name :: Lens' GetDataCatalog Text Source #

The name of the data catalog to return.

StopQueryExecution

stopQueryExecution_queryExecutionId :: Lens' StopQueryExecution Text Source #

The unique ID of the query execution to stop.

TagResource

tagResource_resourceARN :: Lens' TagResource Text Source #

Specifies the ARN of the Athena resource (workgroup or data catalog) to which tags are to be added.

tagResource_tags :: Lens' TagResource [Tag] Source #

A collection of one or more tags, separated by commas, to be added to an Athena workgroup or data catalog resource.

GetWorkGroup

getWorkGroup_workGroup :: Lens' GetWorkGroup Text Source #

The name of the workgroup.

GetDatabase

getDatabase_catalogName :: Lens' GetDatabase Text Source #

The name of the data catalog that contains the database to return.

getDatabase_databaseName :: Lens' GetDatabase Text Source #

The name of the database to return.

UntagResource

untagResource_resourceARN :: Lens' UntagResource Text Source #

Specifies the ARN of the resource from which tags are to be removed.

untagResource_tagKeys :: Lens' UntagResource [Text] Source #

A comma-separated list of one or more tag keys whose tags are to be removed from the specified resource.

GetPreparedStatement

getPreparedStatement_statementName :: Lens' GetPreparedStatement Text Source #

The name of the prepared statement to retrieve.

getPreparedStatement_workGroup :: Lens' GetPreparedStatement Text Source #

The workgroup to which the statement to be retrieved belongs.

GetQueryResults

getQueryResults_nextToken :: Lens' GetQueryResults (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

getQueryResults_maxResults :: Lens' GetQueryResults (Maybe Natural) Source #

The maximum number of results (rows) to return in this request.

getQueryResults_queryExecutionId :: Lens' GetQueryResults Text Source #

The unique ID of the query execution.

getQueryResultsResponse_updateCount :: Lens' GetQueryResultsResponse (Maybe Integer) Source #

The number of rows inserted with a CREATE TABLE AS SELECT statement.

getQueryResultsResponse_nextToken :: Lens' GetQueryResultsResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

ListTableMetadata

listTableMetadata_nextToken :: Lens' ListTableMetadata (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listTableMetadata_expression :: Lens' ListTableMetadata (Maybe Text) Source #

A regex filter that pattern-matches table names. If no expression is supplied, metadata for all tables are listed.

listTableMetadata_maxResults :: Lens' ListTableMetadata (Maybe Natural) Source #

Specifies the maximum number of results to return.

listTableMetadata_catalogName :: Lens' ListTableMetadata Text Source #

The name of the data catalog for which table metadata should be returned.

listTableMetadata_databaseName :: Lens' ListTableMetadata Text Source #

The name of the database for which table metadata should be returned.

listTableMetadataResponse_nextToken :: Lens' ListTableMetadataResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

ListQueryExecutions

listQueryExecutions_nextToken :: Lens' ListQueryExecutions (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listQueryExecutions_workGroup :: Lens' ListQueryExecutions (Maybe Text) Source #

The name of the workgroup from which queries are being returned. If a workgroup is not specified, a list of available query execution IDs for the queries in the primary workgroup is returned.

listQueryExecutions_maxResults :: Lens' ListQueryExecutions (Maybe Natural) Source #

The maximum number of query executions to return in this request.

listQueryExecutionsResponse_queryExecutionIds :: Lens' ListQueryExecutionsResponse (Maybe (NonEmpty Text)) Source #

The unique IDs of each query execution as an array of strings.

listQueryExecutionsResponse_nextToken :: Lens' ListQueryExecutionsResponse (Maybe Text) Source #

A token to be used by the next request if this request is truncated.

DeletePreparedStatement

deletePreparedStatement_statementName :: Lens' DeletePreparedStatement Text Source #

The name of the prepared statement to delete.

deletePreparedStatement_workGroup :: Lens' DeletePreparedStatement Text Source #

The workgroup to which the statement to be deleted belongs.

UpdatePreparedStatement

updatePreparedStatement_description :: Lens' UpdatePreparedStatement (Maybe Text) Source #

The description of the prepared statement.

updatePreparedStatement_workGroup :: Lens' UpdatePreparedStatement Text Source #

The workgroup for the prepared statement.

updatePreparedStatement_queryStatement :: Lens' UpdatePreparedStatement Text Source #

The query string for the prepared statement.

Types

Column

column_type :: Lens' Column (Maybe Text) Source #

The data type of the column.

column_comment :: Lens' Column (Maybe Text) Source #

Optional information about the column.

column_name :: Lens' Column Text Source #

The name of the column.

ColumnInfo

columnInfo_scale :: Lens' ColumnInfo (Maybe Int) Source #

For DECIMAL data types, specifies the total number of digits in the fractional part of the value. Defaults to 0.

columnInfo_precision :: Lens' ColumnInfo (Maybe Int) Source #

For DECIMAL data types, specifies the total number of digits, up to 38. For performance reasons, we recommend up to 18 digits.

columnInfo_schemaName :: Lens' ColumnInfo (Maybe Text) Source #

The schema name (database name) to which the query results belong.

columnInfo_catalogName :: Lens' ColumnInfo (Maybe Text) Source #

The catalog to which the query results belong.

columnInfo_caseSensitive :: Lens' ColumnInfo (Maybe Bool) Source #

Indicates whether values in the column are case-sensitive.

columnInfo_tableName :: Lens' ColumnInfo (Maybe Text) Source #

The table name for the query results.

columnInfo_nullable :: Lens' ColumnInfo (Maybe ColumnNullable) Source #

Indicates the column's nullable status.

columnInfo_name :: Lens' ColumnInfo Text Source #

The name of the column.

columnInfo_type :: Lens' ColumnInfo Text Source #

The data type of the column.

DataCatalog

dataCatalog_parameters :: Lens' DataCatalog (Maybe (HashMap Text Text)) Source #

Specifies the Lambda function or functions to use for the data catalog. This is a mapping whose values depend on the catalog type.

  • For the HIVE data catalog type, use the following syntax. The metadata-function parameter is required. The sdk-version parameter is optional and defaults to the currently supported version.

    metadata-function=lambda_arn, sdk-version=version_number
  • For the LAMBDA data catalog type, use one of the following sets of required parameters, but not both.

    • If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.

      metadata-function=lambda_arn, record-function=lambda_arn
    • If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.

      function=lambda_arn
  • The GLUE type takes a catalog ID parameter and is required. The catalog_id is the account ID of the Amazon Web Services account to which the Glue catalog belongs.

    catalog-id=catalog_id
    • The GLUE data catalog type also applies to the default AwsDataCatalog that already exists in your account, of which you can have only one and cannot modify.
    • Queries that specify a Glue Data Catalog other than the default AwsDataCatalog must be run on Athena engine version 2.

dataCatalog_description :: Lens' DataCatalog (Maybe Text) Source #

An optional description of the data catalog.

dataCatalog_name :: Lens' DataCatalog Text Source #

The name of the data catalog. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.

dataCatalog_type :: Lens' DataCatalog DataCatalogType Source #

The type of data catalog to create: LAMBDA for a federated catalog, HIVE for an external hive metastore, or GLUE for an Glue Data Catalog.

DataCatalogSummary

Database

database_parameters :: Lens' Database (Maybe (HashMap Text Text)) Source #

A set of custom key/value pairs.

database_description :: Lens' Database (Maybe Text) Source #

An optional description of the database.

database_name :: Lens' Database Text Source #

The name of the database.

Datum

datum_varCharValue :: Lens' Datum (Maybe Text) Source #

The value of the datum.

EncryptionConfiguration

encryptionConfiguration_kmsKey :: Lens' EncryptionConfiguration (Maybe Text) Source #

For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.

encryptionConfiguration_encryptionOption :: Lens' EncryptionConfiguration EncryptionOption Source #

Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or client-side encryption with KMS-managed keys (CSE-KMS) is used.

If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup.

EngineVersion

engineVersion_effectiveEngineVersion :: Lens' EngineVersion (Maybe Text) Source #

Read only. The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a CreateWorkGroup or UpdateWorkGroup operation, the EffectiveEngineVersion field is ignored.

engineVersion_selectedEngineVersion :: Lens' EngineVersion (Maybe Text) Source #

The engine version requested by the user. Possible values are determined by the output of ListEngineVersions, including Auto. The default is Auto.

NamedQuery

namedQuery_namedQueryId :: Lens' NamedQuery (Maybe Text) Source #

The unique identifier of the query.

namedQuery_workGroup :: Lens' NamedQuery (Maybe Text) Source #

The name of the workgroup that contains the named query.

namedQuery_database :: Lens' NamedQuery Text Source #

The database to which the query belongs.

namedQuery_queryString :: Lens' NamedQuery Text Source #

The SQL query statements that comprise the query.

PreparedStatement

preparedStatement_lastModifiedTime :: Lens' PreparedStatement (Maybe UTCTime) Source #

The last modified time of the prepared statement.

preparedStatement_queryStatement :: Lens' PreparedStatement (Maybe Text) Source #

The query string for the prepared statement.

preparedStatement_statementName :: Lens' PreparedStatement (Maybe Text) Source #

The name of the prepared statement.

preparedStatement_description :: Lens' PreparedStatement (Maybe Text) Source #

The description of the prepared statement.

preparedStatement_workGroupName :: Lens' PreparedStatement (Maybe Text) Source #

The name of the workgroup to which the prepared statement belongs.

PreparedStatementSummary

preparedStatementSummary_lastModifiedTime :: Lens' PreparedStatementSummary (Maybe UTCTime) Source #

The last modified time of the prepared statement.

QueryExecution

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.

QueryExecutionContext

queryExecutionContext_database :: Lens' QueryExecutionContext (Maybe Text) Source #

The name of the database used in the query execution. The database must exist in the catalog.

queryExecutionContext_catalog :: Lens' QueryExecutionContext (Maybe Text) Source #

The name of the data catalog used in the query execution.

QueryExecutionStatistics

queryExecutionStatistics_totalExecutionTimeInMillis :: Lens' QueryExecutionStatistics (Maybe Integer) Source #

The number of milliseconds that Athena took to run the query.

queryExecutionStatistics_engineExecutionTimeInMillis :: Lens' QueryExecutionStatistics (Maybe Integer) Source #

The number of milliseconds that the query took to execute.

queryExecutionStatistics_queryPlanningTimeInMillis :: Lens' QueryExecutionStatistics (Maybe Integer) Source #

The number of milliseconds that Athena took to plan the query processing flow. This includes the time spent retrieving table partitions from the data source. Note that because the query engine performs the query planning, query planning time is a subset of engine processing time.

queryExecutionStatistics_queryQueueTimeInMillis :: Lens' QueryExecutionStatistics (Maybe Integer) Source #

The number of milliseconds that the query was in your query queue waiting for resources. Note that if transient errors occur, Athena might automatically add the query back to the queue.

queryExecutionStatistics_dataManifestLocation :: Lens' QueryExecutionStatistics (Maybe Text) Source #

The location and file name of a data manifest file. The manifest file is saved to the Athena query results location in Amazon S3. The manifest file tracks files that the query wrote to Amazon S3. If the query fails, the manifest file also tracks files that the query intended to write. The manifest is useful for identifying orphaned files resulting from a failed query. For more information, see Working with Query Results, Output Files, and Query History in the Amazon Athena User Guide.

queryExecutionStatistics_serviceProcessingTimeInMillis :: Lens' QueryExecutionStatistics (Maybe Integer) Source #

The number of milliseconds that Athena took to finalize and publish the query results after the query engine finished running the query.

QueryExecutionStatus

queryExecutionStatus_state :: Lens' QueryExecutionStatus (Maybe QueryExecutionState) Source #

The state of query execution. QUEUED indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING indicates that the query is in execution phase. SUCCEEDED indicates that the query completed without errors. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that a user input interrupted query execution.

Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING or FAILED to QUEUED.

queryExecutionStatus_stateChangeReason :: Lens' QueryExecutionStatus (Maybe Text) Source #

Further detail about the status of the query.

queryExecutionStatus_submissionDateTime :: Lens' QueryExecutionStatus (Maybe UTCTime) Source #

The date and time that the query was submitted.

ResultConfiguration

resultConfiguration_encryptionConfiguration :: Lens' ResultConfiguration (Maybe EncryptionConfiguration) Source #

If query results are encrypted in Amazon S3, indicates the encryption option used (for example, SSE-KMS or CSE-KMS) and key information. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the encryption configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See WorkGroupConfiguration$EnforceWorkGroupConfiguration and Workgroup Settings Override Client-Side Settings.

resultConfiguration_outputLocation :: Lens' ResultConfiguration (Maybe Text) Source #

The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. To run the query, you must specify the query results location using one of the ways: either for individual queries using either this setting (client-side), or in the workgroup, using WorkGroupConfiguration. If none of them is set, Athena issues an error that no output location is provided. For more information, see Query Results. If workgroup settings override client-side settings, then the query uses the settings specified for the workgroup. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

ResultConfigurationUpdates

resultConfigurationUpdates_removeOutputLocation :: Lens' ResultConfigurationUpdates (Maybe Bool) Source #

If set to "true", indicates that the previously-specified query results location (also known as a client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings.

resultConfigurationUpdates_removeEncryptionConfiguration :: Lens' ResultConfigurationUpdates (Maybe Bool) Source #

If set to "true", indicates that the previously-specified encryption configuration (also known as the client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings.

resultConfigurationUpdates_outputLocation :: Lens' ResultConfigurationUpdates (Maybe Text) Source #

The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. For more information, see Query Results 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. The "workgroup settings override" is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

ResultSet

resultSet_rows :: Lens' ResultSet (Maybe [Row]) Source #

The rows in the table.

resultSet_resultSetMetadata :: Lens' ResultSet (Maybe ResultSetMetadata) Source #

The metadata that describes the column structure and data types of a table of query results.

ResultSetMetadata

resultSetMetadata_columnInfo :: Lens' ResultSetMetadata (Maybe [ColumnInfo]) Source #

Information about the columns returned in a query result metadata.

Row

row_data :: Lens' Row (Maybe [Datum]) Source #

The data that populates a row in a query result table.

TableMetadata

tableMetadata_tableType :: Lens' TableMetadata (Maybe Text) Source #

The type of table. In Athena, only EXTERNAL_TABLE is supported.

tableMetadata_parameters :: Lens' TableMetadata (Maybe (HashMap Text Text)) Source #

A set of custom key/value pairs for table properties.

tableMetadata_columns :: Lens' TableMetadata (Maybe [Column]) Source #

A list of the columns in the table.

tableMetadata_lastAccessTime :: Lens' TableMetadata (Maybe UTCTime) Source #

The last time the table was accessed.

tableMetadata_partitionKeys :: Lens' TableMetadata (Maybe [Column]) Source #

A list of the partition keys in the table.

tableMetadata_createTime :: Lens' TableMetadata (Maybe UTCTime) Source #

The time that the table was created.

Tag

tag_value :: Lens' Tag (Maybe Text) Source #

A tag value. The tag value length is from 0 to 256 Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag values are case-sensitive.

tag_key :: Lens' Tag (Maybe Text) Source #

A tag key. The tag key length is from 1 to 128 Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys are case-sensitive and must be unique per resource.

UnprocessedNamedQueryId

unprocessedNamedQueryId_errorCode :: Lens' UnprocessedNamedQueryId (Maybe Text) Source #

The error code returned when the processing request for the named query failed, if applicable.

unprocessedNamedQueryId_errorMessage :: Lens' UnprocessedNamedQueryId (Maybe Text) Source #

The error message returned when the processing request for the named query failed, if applicable.

UnprocessedQueryExecutionId

unprocessedQueryExecutionId_errorCode :: Lens' UnprocessedQueryExecutionId (Maybe Text) Source #

The error code returned when the query execution failed to process, if applicable.

unprocessedQueryExecutionId_errorMessage :: Lens' UnprocessedQueryExecutionId (Maybe Text) Source #

The error message returned when the query execution failed to process, if applicable.

WorkGroup

workGroup_creationTime :: Lens' WorkGroup (Maybe UTCTime) Source #

The date and time the workgroup was created.

workGroup_state :: Lens' WorkGroup (Maybe WorkGroupState) Source #

The state of the workgroup: ENABLED or DISABLED.

workGroup_configuration :: Lens' WorkGroup (Maybe WorkGroupConfiguration) Source #

The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption configuration, if any, used for query results; whether the Amazon CloudWatch Metrics are enabled for the workgroup; whether workgroup settings override client-side settings; and the data usage limits for the amount of data scanned per query or per workgroup. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

workGroup_description :: Lens' WorkGroup (Maybe Text) Source #

The workgroup description.

workGroup_name :: Lens' WorkGroup Text Source #

The workgroup name.

WorkGroupConfiguration

workGroupConfiguration_engineVersion :: Lens' WorkGroupConfiguration (Maybe EngineVersion) Source #

The engine version that all queries running on the workgroup use. Queries on the AmazonAthenaPreviewFunctionality workgroup run on the preview engine regardless of this setting.

workGroupConfiguration_requesterPaysEnabled :: Lens' WorkGroupConfiguration (Maybe Bool) Source #

If set to true, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.

workGroupConfiguration_resultConfiguration :: Lens' WorkGroupConfiguration (Maybe ResultConfiguration) Source #

The configuration for the workgroup, which includes the location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. To run the query, you must specify the query results location using one of the ways: either in the workgroup using this setting, or for individual queries (client-side), using ResultConfiguration$OutputLocation. If none of them is set, Athena issues an error that no output location is provided. For more information, see Query Results.

workGroupConfiguration_bytesScannedCutoffPerQuery :: Lens' WorkGroupConfiguration (Maybe Natural) Source #

The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.

workGroupConfiguration_enforceWorkGroupConfiguration :: Lens' WorkGroupConfiguration (Maybe Bool) Source #

If set to "true", the settings for the workgroup override client-side settings. If set to "false", client-side settings are used. For more information, see Workgroup Settings Override Client-Side Settings.

workGroupConfiguration_publishCloudWatchMetricsEnabled :: Lens' WorkGroupConfiguration (Maybe Bool) Source #

Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.

WorkGroupConfigurationUpdates

workGroupConfigurationUpdates_engineVersion :: Lens' WorkGroupConfigurationUpdates (Maybe EngineVersion) Source #

The engine version requested when a workgroup is updated. After the update, all queries on the workgroup run on the requested engine version. If no value was previously set, the default is Auto. Queries on the AmazonAthenaPreviewFunctionality workgroup run on the preview engine regardless of this setting.

workGroupConfigurationUpdates_requesterPaysEnabled :: Lens' WorkGroupConfigurationUpdates (Maybe Bool) Source #

If set to true, allows members assigned to a workgroup to specify Amazon S3 Requester Pays buckets in queries. If set to false, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.

workGroupConfigurationUpdates_resultConfigurationUpdates :: Lens' WorkGroupConfigurationUpdates (Maybe ResultConfigurationUpdates) Source #

The result configuration information about the queries in this workgroup that will be updated. Includes the updated results location and an updated option for encrypting query results.

workGroupConfigurationUpdates_bytesScannedCutoffPerQuery :: Lens' WorkGroupConfigurationUpdates (Maybe Natural) Source #

The upper limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.

workGroupConfigurationUpdates_removeBytesScannedCutoffPerQuery :: Lens' WorkGroupConfigurationUpdates (Maybe Bool) Source #

Indicates that the data usage control limit per query is removed. WorkGroupConfiguration$BytesScannedCutoffPerQuery

workGroupConfigurationUpdates_enforceWorkGroupConfiguration :: Lens' WorkGroupConfigurationUpdates (Maybe Bool) Source #

If set to "true", the settings for the workgroup override client-side settings. If set to "false" client-side settings are used. For more information, see Workgroup Settings Override Client-Side Settings.

workGroupConfigurationUpdates_publishCloudWatchMetricsEnabled :: Lens' WorkGroupConfigurationUpdates (Maybe Bool) Source #

Indicates whether this workgroup enables publishing metrics to Amazon CloudWatch.

WorkGroupSummary

workGroupSummary_creationTime :: Lens' WorkGroupSummary (Maybe UTCTime) Source #

The workgroup creation date and time.

workGroupSummary_engineVersion :: Lens' WorkGroupSummary (Maybe EngineVersion) Source #

The engine version setting for all queries on the workgroup. Queries on the AmazonAthenaPreviewFunctionality workgroup run on the preview engine regardless of this setting.