UNPKG

aws-sdk

Version:
525 lines • 162 kB
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class Athena extends Service { /** * Constructs a service object. This object has one method for each API operation. */ constructor(options?: Athena.Types.ClientConfiguration) config: Config & Athena.Types.ClientConfiguration; /** * Returns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Requires you to have access to the workgroup in which the queries were saved. Use ListNamedQueriesInput to get the list of named query IDs in the specified workgroup. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under UnprocessedNamedQueryId. Named queries differ from executed queries. Use BatchGetQueryExecutionInput to get details about each unique query execution, and ListQueryExecutionsInput to get a list of query execution IDs. */ batchGetNamedQuery(params: Athena.Types.BatchGetNamedQueryInput, callback?: (err: AWSError, data: Athena.Types.BatchGetNamedQueryOutput) => void): Request<Athena.Types.BatchGetNamedQueryOutput, AWSError>; /** * Returns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Requires you to have access to the workgroup in which the queries were saved. Use ListNamedQueriesInput to get the list of named query IDs in the specified workgroup. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under UnprocessedNamedQueryId. Named queries differ from executed queries. Use BatchGetQueryExecutionInput to get details about each unique query execution, and ListQueryExecutionsInput to get a list of query execution IDs. */ batchGetNamedQuery(callback?: (err: AWSError, data: Athena.Types.BatchGetNamedQueryOutput) => void): Request<Athena.Types.BatchGetNamedQueryOutput, AWSError>; /** * Returns the details of a single prepared statement or a list of up to 256 prepared statements for the array of prepared statement names that you provide. Requires you to have access to the workgroup to which the prepared statements belong. If a prepared statement cannot be retrieved for the name specified, the statement is listed in UnprocessedPreparedStatementNames. */ batchGetPreparedStatement(params: Athena.Types.BatchGetPreparedStatementInput, callback?: (err: AWSError, data: Athena.Types.BatchGetPreparedStatementOutput) => void): Request<Athena.Types.BatchGetPreparedStatementOutput, AWSError>; /** * Returns the details of a single prepared statement or a list of up to 256 prepared statements for the array of prepared statement names that you provide. Requires you to have access to the workgroup to which the prepared statements belong. If a prepared statement cannot be retrieved for the name specified, the statement is listed in UnprocessedPreparedStatementNames. */ batchGetPreparedStatement(callback?: (err: AWSError, data: Athena.Types.BatchGetPreparedStatementOutput) => void): Request<Athena.Types.BatchGetPreparedStatementOutput, AWSError>; /** * Returns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. Requires you to have access to the workgroup in which the queries ran. To get a list of query execution IDs, use ListQueryExecutionsInput$WorkGroup. Query executions differ from named (saved) queries. Use BatchGetNamedQueryInput to get details about named queries. */ batchGetQueryExecution(params: Athena.Types.BatchGetQueryExecutionInput, callback?: (err: AWSError, data: Athena.Types.BatchGetQueryExecutionOutput) => void): Request<Athena.Types.BatchGetQueryExecutionOutput, AWSError>; /** * Returns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. Requires you to have access to the workgroup in which the queries ran. To get a list of query execution IDs, use ListQueryExecutionsInput$WorkGroup. Query executions differ from named (saved) queries. Use BatchGetNamedQueryInput to get details about named queries. */ batchGetQueryExecution(callback?: (err: AWSError, data: Athena.Types.BatchGetQueryExecutionOutput) => void): Request<Athena.Types.BatchGetQueryExecutionOutput, AWSError>; /** * Cancels the capacity reservation with the specified name. Cancelled reservations remain in your account and will be deleted 45 days after cancellation. During the 45 days, you cannot re-purpose or reuse a reservation that has been cancelled, but you can refer to its tags and view it for historical reference. */ cancelCapacityReservation(params: Athena.Types.CancelCapacityReservationInput, callback?: (err: AWSError, data: Athena.Types.CancelCapacityReservationOutput) => void): Request<Athena.Types.CancelCapacityReservationOutput, AWSError>; /** * Cancels the capacity reservation with the specified name. Cancelled reservations remain in your account and will be deleted 45 days after cancellation. During the 45 days, you cannot re-purpose or reuse a reservation that has been cancelled, but you can refer to its tags and view it for historical reference. */ cancelCapacityReservation(callback?: (err: AWSError, data: Athena.Types.CancelCapacityReservationOutput) => void): Request<Athena.Types.CancelCapacityReservationOutput, AWSError>; /** * Creates a capacity reservation with the specified name and number of requested data processing units. */ createCapacityReservation(params: Athena.Types.CreateCapacityReservationInput, callback?: (err: AWSError, data: Athena.Types.CreateCapacityReservationOutput) => void): Request<Athena.Types.CreateCapacityReservationOutput, AWSError>; /** * Creates a capacity reservation with the specified name and number of requested data processing units. */ createCapacityReservation(callback?: (err: AWSError, data: Athena.Types.CreateCapacityReservationOutput) => void): Request<Athena.Types.CreateCapacityReservationOutput, AWSError>; /** * Creates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same Amazon Web Services account. */ createDataCatalog(params: Athena.Types.CreateDataCatalogInput, callback?: (err: AWSError, data: Athena.Types.CreateDataCatalogOutput) => void): Request<Athena.Types.CreateDataCatalogOutput, AWSError>; /** * Creates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same Amazon Web Services account. */ createDataCatalog(callback?: (err: AWSError, data: Athena.Types.CreateDataCatalogOutput) => void): Request<Athena.Types.CreateDataCatalogOutput, AWSError>; /** * Creates a named query in the specified workgroup. Requires that you have access to the workgroup. */ createNamedQuery(params: Athena.Types.CreateNamedQueryInput, callback?: (err: AWSError, data: Athena.Types.CreateNamedQueryOutput) => void): Request<Athena.Types.CreateNamedQueryOutput, AWSError>; /** * Creates a named query in the specified workgroup. Requires that you have access to the workgroup. */ createNamedQuery(callback?: (err: AWSError, data: Athena.Types.CreateNamedQueryOutput) => void): Request<Athena.Types.CreateNamedQueryOutput, AWSError>; /** * Creates an empty ipynb file in the specified Apache Spark enabled workgroup. Throws an error if a file in the workgroup with the same name already exists. */ createNotebook(params: Athena.Types.CreateNotebookInput, callback?: (err: AWSError, data: Athena.Types.CreateNotebookOutput) => void): Request<Athena.Types.CreateNotebookOutput, AWSError>; /** * Creates an empty ipynb file in the specified Apache Spark enabled workgroup. Throws an error if a file in the workgroup with the same name already exists. */ createNotebook(callback?: (err: AWSError, data: Athena.Types.CreateNotebookOutput) => void): Request<Athena.Types.CreateNotebookOutput, AWSError>; /** * Creates a prepared statement for use with SQL queries in Athena. */ createPreparedStatement(params: Athena.Types.CreatePreparedStatementInput, callback?: (err: AWSError, data: Athena.Types.CreatePreparedStatementOutput) => void): Request<Athena.Types.CreatePreparedStatementOutput, AWSError>; /** * Creates a prepared statement for use with SQL queries in Athena. */ createPreparedStatement(callback?: (err: AWSError, data: Athena.Types.CreatePreparedStatementOutput) => void): Request<Athena.Types.CreatePreparedStatementOutput, AWSError>; /** * Gets an authentication token and the URL at which the notebook can be accessed. During programmatic access, CreatePresignedNotebookUrl must be called every 10 minutes to refresh the authentication token. For information about granting programmatic access, see Grant programmatic access. */ createPresignedNotebookUrl(params: Athena.Types.CreatePresignedNotebookUrlRequest, callback?: (err: AWSError, data: Athena.Types.CreatePresignedNotebookUrlResponse) => void): Request<Athena.Types.CreatePresignedNotebookUrlResponse, AWSError>; /** * Gets an authentication token and the URL at which the notebook can be accessed. During programmatic access, CreatePresignedNotebookUrl must be called every 10 minutes to refresh the authentication token. For information about granting programmatic access, see Grant programmatic access. */ createPresignedNotebookUrl(callback?: (err: AWSError, data: Athena.Types.CreatePresignedNotebookUrlResponse) => void): Request<Athena.Types.CreatePresignedNotebookUrlResponse, AWSError>; /** * Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled workgroup or an Athena SQL workgroup. */ createWorkGroup(params: Athena.Types.CreateWorkGroupInput, callback?: (err: AWSError, data: Athena.Types.CreateWorkGroupOutput) => void): Request<Athena.Types.CreateWorkGroupOutput, AWSError>; /** * Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled workgroup or an Athena SQL workgroup. */ createWorkGroup(callback?: (err: AWSError, data: Athena.Types.CreateWorkGroupOutput) => void): Request<Athena.Types.CreateWorkGroupOutput, AWSError>; /** * Deletes a cancelled capacity reservation. A reservation must be cancelled before it can be deleted. A deleted reservation is immediately removed from your account and can no longer be referenced, including by its ARN. A deleted reservation cannot be called by GetCapacityReservation, and deleted reservations do not appear in the output of ListCapacityReservations. */ deleteCapacityReservation(params: Athena.Types.DeleteCapacityReservationInput, callback?: (err: AWSError, data: Athena.Types.DeleteCapacityReservationOutput) => void): Request<Athena.Types.DeleteCapacityReservationOutput, AWSError>; /** * Deletes a cancelled capacity reservation. A reservation must be cancelled before it can be deleted. A deleted reservation is immediately removed from your account and can no longer be referenced, including by its ARN. A deleted reservation cannot be called by GetCapacityReservation, and deleted reservations do not appear in the output of ListCapacityReservations. */ deleteCapacityReservation(callback?: (err: AWSError, data: Athena.Types.DeleteCapacityReservationOutput) => void): Request<Athena.Types.DeleteCapacityReservationOutput, AWSError>; /** * Deletes a data catalog. */ deleteDataCatalog(params: Athena.Types.DeleteDataCatalogInput, callback?: (err: AWSError, data: Athena.Types.DeleteDataCatalogOutput) => void): Request<Athena.Types.DeleteDataCatalogOutput, AWSError>; /** * Deletes a data catalog. */ deleteDataCatalog(callback?: (err: AWSError, data: Athena.Types.DeleteDataCatalogOutput) => void): Request<Athena.Types.DeleteDataCatalogOutput, AWSError>; /** * Deletes the named query if you have access to the workgroup in which the query was saved. */ deleteNamedQuery(params: Athena.Types.DeleteNamedQueryInput, callback?: (err: AWSError, data: Athena.Types.DeleteNamedQueryOutput) => void): Request<Athena.Types.DeleteNamedQueryOutput, AWSError>; /** * Deletes the named query if you have access to the workgroup in which the query was saved. */ deleteNamedQuery(callback?: (err: AWSError, data: Athena.Types.DeleteNamedQueryOutput) => void): Request<Athena.Types.DeleteNamedQueryOutput, AWSError>; /** * Deletes the specified notebook. */ deleteNotebook(params: Athena.Types.DeleteNotebookInput, callback?: (err: AWSError, data: Athena.Types.DeleteNotebookOutput) => void): Request<Athena.Types.DeleteNotebookOutput, AWSError>; /** * Deletes the specified notebook. */ deleteNotebook(callback?: (err: AWSError, data: Athena.Types.DeleteNotebookOutput) => void): Request<Athena.Types.DeleteNotebookOutput, AWSError>; /** * Deletes the prepared statement with the specified name from the specified workgroup. */ deletePreparedStatement(params: Athena.Types.DeletePreparedStatementInput, callback?: (err: AWSError, data: Athena.Types.DeletePreparedStatementOutput) => void): Request<Athena.Types.DeletePreparedStatementOutput, AWSError>; /** * Deletes the prepared statement with the specified name from the specified workgroup. */ deletePreparedStatement(callback?: (err: AWSError, data: Athena.Types.DeletePreparedStatementOutput) => void): Request<Athena.Types.DeletePreparedStatementOutput, AWSError>; /** * Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. */ deleteWorkGroup(params: Athena.Types.DeleteWorkGroupInput, callback?: (err: AWSError, data: Athena.Types.DeleteWorkGroupOutput) => void): Request<Athena.Types.DeleteWorkGroupOutput, AWSError>; /** * Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. */ deleteWorkGroup(callback?: (err: AWSError, data: Athena.Types.DeleteWorkGroupOutput) => void): Request<Athena.Types.DeleteWorkGroupOutput, AWSError>; /** * Exports the specified notebook and its metadata. */ exportNotebook(params: Athena.Types.ExportNotebookInput, callback?: (err: AWSError, data: Athena.Types.ExportNotebookOutput) => void): Request<Athena.Types.ExportNotebookOutput, AWSError>; /** * Exports the specified notebook and its metadata. */ exportNotebook(callback?: (err: AWSError, data: Athena.Types.ExportNotebookOutput) => void): Request<Athena.Types.ExportNotebookOutput, AWSError>; /** * Describes a previously submitted calculation execution. */ getCalculationExecution(params: Athena.Types.GetCalculationExecutionRequest, callback?: (err: AWSError, data: Athena.Types.GetCalculationExecutionResponse) => void): Request<Athena.Types.GetCalculationExecutionResponse, AWSError>; /** * Describes a previously submitted calculation execution. */ getCalculationExecution(callback?: (err: AWSError, data: Athena.Types.GetCalculationExecutionResponse) => void): Request<Athena.Types.GetCalculationExecutionResponse, AWSError>; /** * Retrieves the unencrypted code that was executed for the calculation. */ getCalculationExecutionCode(params: Athena.Types.GetCalculationExecutionCodeRequest, callback?: (err: AWSError, data: Athena.Types.GetCalculationExecutionCodeResponse) => void): Request<Athena.Types.GetCalculationExecutionCodeResponse, AWSError>; /** * Retrieves the unencrypted code that was executed for the calculation. */ getCalculationExecutionCode(callback?: (err: AWSError, data: Athena.Types.GetCalculationExecutionCodeResponse) => void): Request<Athena.Types.GetCalculationExecutionCodeResponse, AWSError>; /** * Gets the status of a current calculation. */ getCalculationExecutionStatus(params: Athena.Types.GetCalculationExecutionStatusRequest, callback?: (err: AWSError, data: Athena.Types.GetCalculationExecutionStatusResponse) => void): Request<Athena.Types.GetCalculationExecutionStatusResponse, AWSError>; /** * Gets the status of a current calculation. */ getCalculationExecutionStatus(callback?: (err: AWSError, data: Athena.Types.GetCalculationExecutionStatusResponse) => void): Request<Athena.Types.GetCalculationExecutionStatusResponse, AWSError>; /** * Gets the capacity assignment configuration for a capacity reservation, if one exists. */ getCapacityAssignmentConfiguration(params: Athena.Types.GetCapacityAssignmentConfigurationInput, callback?: (err: AWSError, data: Athena.Types.GetCapacityAssignmentConfigurationOutput) => void): Request<Athena.Types.GetCapacityAssignmentConfigurationOutput, AWSError>; /** * Gets the capacity assignment configuration for a capacity reservation, if one exists. */ getCapacityAssignmentConfiguration(callback?: (err: AWSError, data: Athena.Types.GetCapacityAssignmentConfigurationOutput) => void): Request<Athena.Types.GetCapacityAssignmentConfigurationOutput, AWSError>; /** * Returns information about the capacity reservation with the specified name. */ getCapacityReservation(params: Athena.Types.GetCapacityReservationInput, callback?: (err: AWSError, data: Athena.Types.GetCapacityReservationOutput) => void): Request<Athena.Types.GetCapacityReservationOutput, AWSError>; /** * Returns information about the capacity reservation with the specified name. */ getCapacityReservation(callback?: (err: AWSError, data: Athena.Types.GetCapacityReservationOutput) => void): Request<Athena.Types.GetCapacityReservationOutput, AWSError>; /** * Returns the specified data catalog. */ getDataCatalog(params: Athena.Types.GetDataCatalogInput, callback?: (err: AWSError, data: Athena.Types.GetDataCatalogOutput) => void): Request<Athena.Types.GetDataCatalogOutput, AWSError>; /** * Returns the specified data catalog. */ getDataCatalog(callback?: (err: AWSError, data: Athena.Types.GetDataCatalogOutput) => void): Request<Athena.Types.GetDataCatalogOutput, AWSError>; /** * Returns a database object for the specified database and data catalog. */ getDatabase(params: Athena.Types.GetDatabaseInput, callback?: (err: AWSError, data: Athena.Types.GetDatabaseOutput) => void): Request<Athena.Types.GetDatabaseOutput, AWSError>; /** * Returns a database object for the specified database and data catalog. */ getDatabase(callback?: (err: AWSError, data: Athena.Types.GetDatabaseOutput) => void): Request<Athena.Types.GetDatabaseOutput, AWSError>; /** * Returns information about a single query. Requires that you have access to the workgroup in which the query was saved. */ getNamedQuery(params: Athena.Types.GetNamedQueryInput, callback?: (err: AWSError, data: Athena.Types.GetNamedQueryOutput) => void): Request<Athena.Types.GetNamedQueryOutput, AWSError>; /** * Returns information about a single query. Requires that you have access to the workgroup in which the query was saved. */ getNamedQuery(callback?: (err: AWSError, data: Athena.Types.GetNamedQueryOutput) => void): Request<Athena.Types.GetNamedQueryOutput, AWSError>; /** * Retrieves notebook metadata for the specified notebook ID. */ getNotebookMetadata(params: Athena.Types.GetNotebookMetadataInput, callback?: (err: AWSError, data: Athena.Types.GetNotebookMetadataOutput) => void): Request<Athena.Types.GetNotebookMetadataOutput, AWSError>; /** * Retrieves notebook metadata for the specified notebook ID. */ getNotebookMetadata(callback?: (err: AWSError, data: Athena.Types.GetNotebookMetadataOutput) => void): Request<Athena.Types.GetNotebookMetadataOutput, AWSError>; /** * Retrieves the prepared statement with the specified name from the specified workgroup. */ getPreparedStatement(params: Athena.Types.GetPreparedStatementInput, callback?: (err: AWSError, data: Athena.Types.GetPreparedStatementOutput) => void): Request<Athena.Types.GetPreparedStatementOutput, AWSError>; /** * Retrieves the prepared statement with the specified name from the specified workgroup. */ getPreparedStatement(callback?: (err: AWSError, data: Athena.Types.GetPreparedStatementOutput) => void): Request<Athena.Types.GetPreparedStatementOutput, AWSError>; /** * Returns information about a single execution of a query if you have access to the workgroup in which the query ran. Each time a query executes, information about the query execution is saved with a unique ID. */ getQueryExecution(params: Athena.Types.GetQueryExecutionInput, callback?: (err: AWSError, data: Athena.Types.GetQueryExecutionOutput) => void): Request<Athena.Types.GetQueryExecutionOutput, AWSError>; /** * Returns information about a single execution of a query if you have access to the workgroup in which the query ran. Each time a query executes, information about the query execution is saved with a unique ID. */ getQueryExecution(callback?: (err: AWSError, data: Athena.Types.GetQueryExecutionOutput) => void): Request<Athena.Types.GetQueryExecutionOutput, AWSError>; /** * Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3. For more information, see Working with query results, recent queries, and output files in the Amazon Athena User Guide. This request does not execute the query but returns results. Use StartQueryExecution to run a query. To stream query results successfully, the IAM principal with permission to call GetQueryResults also must have permissions to the Amazon S3 GetObject action for the Athena query results location. IAM principals with permission to the Amazon S3 GetObject action for the query results location are able to retrieve query results from Amazon S3 even if permission to the GetQueryResults action is denied. To restrict user or role access, ensure that Amazon S3 permissions to the Athena query location are denied. */ getQueryResults(params: Athena.Types.GetQueryResultsInput, callback?: (err: AWSError, data: Athena.Types.GetQueryResultsOutput) => void): Request<Athena.Types.GetQueryResultsOutput, AWSError>; /** * Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3. For more information, see Working with query results, recent queries, and output files in the Amazon Athena User Guide. This request does not execute the query but returns results. Use StartQueryExecution to run a query. To stream query results successfully, the IAM principal with permission to call GetQueryResults also must have permissions to the Amazon S3 GetObject action for the Athena query results location. IAM principals with permission to the Amazon S3 GetObject action for the query results location are able to retrieve query results from Amazon S3 even if permission to the GetQueryResults action is denied. To restrict user or role access, ensure that Amazon S3 permissions to the Athena query location are denied. */ getQueryResults(callback?: (err: AWSError, data: Athena.Types.GetQueryResultsOutput) => void): Request<Athena.Types.GetQueryResultsOutput, AWSError>; /** * Returns query execution runtime statistics related to a single execution of a query if you have access to the workgroup in which the query ran. Statistics from the Timeline section of the response object are available as soon as QueryExecutionStatus$State is in a SUCCEEDED or FAILED state. The remaining non-timeline statistics in the response (like stage-level input and output row count and data size) are updated asynchronously and may not be available immediately after a query completes. The non-timeline statistics are also not included when a query has row-level filters defined in Lake Formation. */ getQueryRuntimeStatistics(params: Athena.Types.GetQueryRuntimeStatisticsInput, callback?: (err: AWSError, data: Athena.Types.GetQueryRuntimeStatisticsOutput) => void): Request<Athena.Types.GetQueryRuntimeStatisticsOutput, AWSError>; /** * Returns query execution runtime statistics related to a single execution of a query if you have access to the workgroup in which the query ran. Statistics from the Timeline section of the response object are available as soon as QueryExecutionStatus$State is in a SUCCEEDED or FAILED state. The remaining non-timeline statistics in the response (like stage-level input and output row count and data size) are updated asynchronously and may not be available immediately after a query completes. The non-timeline statistics are also not included when a query has row-level filters defined in Lake Formation. */ getQueryRuntimeStatistics(callback?: (err: AWSError, data: Athena.Types.GetQueryRuntimeStatisticsOutput) => void): Request<Athena.Types.GetQueryRuntimeStatisticsOutput, AWSError>; /** * Gets the full details of a previously created session, including the session status and configuration. */ getSession(params: Athena.Types.GetSessionRequest, callback?: (err: AWSError, data: Athena.Types.GetSessionResponse) => void): Request<Athena.Types.GetSessionResponse, AWSError>; /** * Gets the full details of a previously created session, including the session status and configuration. */ getSession(callback?: (err: AWSError, data: Athena.Types.GetSessionResponse) => void): Request<Athena.Types.GetSessionResponse, AWSError>; /** * Gets the current status of a session. */ getSessionStatus(params: Athena.Types.GetSessionStatusRequest, callback?: (err: AWSError, data: Athena.Types.GetSessionStatusResponse) => void): Request<Athena.Types.GetSessionStatusResponse, AWSError>; /** * Gets the current status of a session. */ getSessionStatus(callback?: (err: AWSError, data: Athena.Types.GetSessionStatusResponse) => void): Request<Athena.Types.GetSessionStatusResponse, AWSError>; /** * Returns table metadata for the specified catalog, database, and table. */ getTableMetadata(params: Athena.Types.GetTableMetadataInput, callback?: (err: AWSError, data: Athena.Types.GetTableMetadataOutput) => void): Request<Athena.Types.GetTableMetadataOutput, AWSError>; /** * Returns table metadata for the specified catalog, database, and table. */ getTableMetadata(callback?: (err: AWSError, data: Athena.Types.GetTableMetadataOutput) => void): Request<Athena.Types.GetTableMetadataOutput, AWSError>; /** * Returns information about the workgroup with the specified name. */ getWorkGroup(params: Athena.Types.GetWorkGroupInput, callback?: (err: AWSError, data: Athena.Types.GetWorkGroupOutput) => void): Request<Athena.Types.GetWorkGroupOutput, AWSError>; /** * Returns information about the workgroup with the specified name. */ getWorkGroup(callback?: (err: AWSError, data: Athena.Types.GetWorkGroupOutput) => void): Request<Athena.Types.GetWorkGroupOutput, AWSError>; /** * Imports a single ipynb file to a Spark enabled workgroup. To import the notebook, the request must specify a value for either Payload or NoteBookS3LocationUri. If neither is specified or both are specified, an InvalidRequestException occurs. The maximum file size that can be imported is 10 megabytes. If an ipynb file with the same name already exists in the workgroup, throws an error. */ importNotebook(params: Athena.Types.ImportNotebookInput, callback?: (err: AWSError, data: Athena.Types.ImportNotebookOutput) => void): Request<Athena.Types.ImportNotebookOutput, AWSError>; /** * Imports a single ipynb file to a Spark enabled workgroup. To import the notebook, the request must specify a value for either Payload or NoteBookS3LocationUri. If neither is specified or both are specified, an InvalidRequestException occurs. The maximum file size that can be imported is 10 megabytes. If an ipynb file with the same name already exists in the workgroup, throws an error. */ importNotebook(callback?: (err: AWSError, data: Athena.Types.ImportNotebookOutput) => void): Request<Athena.Types.ImportNotebookOutput, AWSError>; /** * Returns the supported DPU sizes for the supported application runtimes (for example, Athena notebook version 1). */ listApplicationDPUSizes(params: Athena.Types.ListApplicationDPUSizesInput, callback?: (err: AWSError, data: Athena.Types.ListApplicationDPUSizesOutput) => void): Request<Athena.Types.ListApplicationDPUSizesOutput, AWSError>; /** * Returns the supported DPU sizes for the supported application runtimes (for example, Athena notebook version 1). */ listApplicationDPUSizes(callback?: (err: AWSError, data: Athena.Types.ListApplicationDPUSizesOutput) => void): Request<Athena.Types.ListApplicationDPUSizesOutput, AWSError>; /** * Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later. */ listCalculationExecutions(params: Athena.Types.ListCalculationExecutionsRequest, callback?: (err: AWSError, data: Athena.Types.ListCalculationExecutionsResponse) => void): Request<Athena.Types.ListCalculationExecutionsResponse, AWSError>; /** * Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later. */ listCalculationExecutions(callback?: (err: AWSError, data: Athena.Types.ListCalculationExecutionsResponse) => void): Request<Athena.Types.ListCalculationExecutionsResponse, AWSError>; /** * Lists the capacity reservations for the current account. */ listCapacityReservations(params: Athena.Types.ListCapacityReservationsInput, callback?: (err: AWSError, data: Athena.Types.ListCapacityReservationsOutput) => void): Request<Athena.Types.ListCapacityReservationsOutput, AWSError>; /** * Lists the capacity reservations for the current account. */ listCapacityReservations(callback?: (err: AWSError, data: Athena.Types.ListCapacityReservationsOutput) => void): Request<Athena.Types.ListCapacityReservationsOutput, AWSError>; /** * Lists the data catalogs in the current Amazon Web Services account. In the Athena console, data catalogs are listed as "data sources" on the Data sources page under the Data source name column. */ listDataCatalogs(params: Athena.Types.ListDataCatalogsInput, callback?: (err: AWSError, data: Athena.Types.ListDataCatalogsOutput) => void): Request<Athena.Types.ListDataCatalogsOutput, AWSError>; /** * Lists the data catalogs in the current Amazon Web Services account. In the Athena console, data catalogs are listed as "data sources" on the Data sources page under the Data source name column. */ listDataCatalogs(callback?: (err: AWSError, data: Athena.Types.ListDataCatalogsOutput) => void): Request<Athena.Types.ListDataCatalogsOutput, AWSError>; /** * Lists the databases in the specified data catalog. */ listDatabases(params: Athena.Types.ListDatabasesInput, callback?: (err: AWSError, data: Athena.Types.ListDatabasesOutput) => void): Request<Athena.Types.ListDatabasesOutput, AWSError>; /** * Lists the databases in the specified data catalog. */ listDatabases(callback?: (err: AWSError, data: Athena.Types.ListDatabasesOutput) => void): Request<Athena.Types.ListDatabasesOutput, AWSError>; /** * Returns a list of engine versions that are available to choose from, including the Auto option. */ listEngineVersions(params: Athena.Types.ListEngineVersionsInput, callback?: (err: AWSError, data: Athena.Types.ListEngineVersionsOutput) => void): Request<Athena.Types.ListEngineVersionsOutput, AWSError>; /** * Returns a list of engine versions that are available to choose from, including the Auto option. */ listEngineVersions(callback?: (err: AWSError, data: Athena.Types.ListEngineVersionsOutput) => void): Request<Athena.Types.ListEngineVersionsOutput, AWSError>; /** * Lists, in descending order, the executors that joined a session. Newer executors are listed first; older executors are listed later. The result can be optionally filtered by state. */ listExecutors(params: Athena.Types.ListExecutorsRequest, callback?: (err: AWSError, data: Athena.Types.ListExecutorsResponse) => void): Request<Athena.Types.ListExecutorsResponse, AWSError>; /** * Lists, in descending order, the executors that joined a session. Newer executors are listed first; older executors are listed later. The result can be optionally filtered by state. */ listExecutors(callback?: (err: AWSError, data: Athena.Types.ListExecutorsResponse) => void): Request<Athena.Types.ListExecutorsResponse, AWSError>; /** * Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup. */ listNamedQueries(params: Athena.Types.ListNamedQueriesInput, callback?: (err: AWSError, data: Athena.Types.ListNamedQueriesOutput) => void): Request<Athena.Types.ListNamedQueriesOutput, AWSError>; /** * Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup. */ listNamedQueries(callback?: (err: AWSError, data: Athena.Types.ListNamedQueriesOutput) => void): Request<Athena.Types.ListNamedQueriesOutput, AWSError>; /** * Displays the notebook files for the specified workgroup in paginated format. */ listNotebookMetadata(params: Athena.Types.ListNotebookMetadataInput, callback?: (err: AWSError, data: Athena.Types.ListNotebookMetadataOutput) => void): Request<Athena.Types.ListNotebookMetadataOutput, AWSError>; /** * Displays the notebook files for the specified workgroup in paginated format. */ listNotebookMetadata(callback?: (err: AWSError, data: Athena.Types.ListNotebookMetadataOutput) => void): Request<Athena.Types.ListNotebookMetadataOutput, AWSError>; /** * Lists, in descending order, the sessions that have been created in a notebook that are in an active state like CREATING, CREATED, IDLE or BUSY. Newer sessions are listed first; older sessions are listed later. */ listNotebookSessions(params: Athena.Types.ListNotebookSessionsRequest, callback?: (err: AWSError, data: Athena.Types.ListNotebookSessionsResponse) => void): Request<Athena.Types.ListNotebookSessionsResponse, AWSError>; /** * Lists, in descending order, the sessions that have been created in a notebook that are in an active state like CREATING, CREATED, IDLE or BUSY. Newer sessions are listed first; older sessions are listed later. */ listNotebookSessions(callback?: (err: AWSError, data: Athena.Types.ListNotebookSessionsResponse) => void): Request<Athena.Types.ListNotebookSessionsResponse, AWSError>; /** * Lists the prepared statements in the specified workgroup. */ listPreparedStatements(params: Athena.Types.ListPreparedStatementsInput, callback?: (err: AWSError, data: Athena.Types.ListPreparedStatementsOutput) => void): Request<Athena.Types.ListPreparedStatementsOutput, AWSError>; /** * Lists the prepared statements in the specified workgroup. */ listPreparedStatements(callback?: (err: AWSError, data: Athena.Types.ListPreparedStatementsOutput) => void): Request<Athena.Types.ListPreparedStatementsOutput, AWSError>; /** * Provides a list of available query execution IDs for the queries in the specified workgroup. Athena keeps a query history for 45 days. If a workgroup is not specified, returns a list of query execution IDs for the primary workgroup. Requires you to have access to the workgroup in which the queries ran. */ listQueryExecutions(params: Athena.Types.ListQueryExecutionsInput, callback?: (err: AWSError, data: Athena.Types.ListQueryExecutionsOutput) => void): Request<Athena.Types.ListQueryExecutionsOutput, AWSError>; /** * Provides a list of available query execution IDs for the queries in the specified workgroup. Athena keeps a query history for 45 days. If a workgroup is not specified, returns a list of query execution IDs for the primary workgroup. Requires you to have access to the workgroup in which the queries ran. */ listQueryExecutions(callback?: (err: AWSError, data: Athena.Types.ListQueryExecutionsOutput) => void): Request<Athena.Types.ListQueryExecutionsOutput, AWSError>; /** * Lists the sessions in a workgroup that are in an active state like CREATING, CREATED, IDLE, or BUSY. Newer sessions are listed first; older sessions are listed later. */ listSessions(params: Athena.Types.ListSessionsRequest, callback?: (err: AWSError, data: Athena.Types.ListSessionsResponse) => void): Request<Athena.Types.ListSessionsResponse, AWSError>; /** * Lists the sessions in a workgroup that are in an active state like CREATING, CREATED, IDLE, or BUSY. Newer sessions are listed first; older sessions are listed later. */ listSessions(callback?: (err: AWSError, data: Athena.Types.ListSessionsResponse) => void): Request<Athena.Types.ListSessionsResponse, AWSError>; /** * Lists the metadata for the tables in the specified data catalog database. */ listTableMetadata(params: Athena.Types.ListTableMetadataInput, callback?: (err: AWSError, data: Athena.Types.ListTableMetadataOutput) => void): Request<Athena.Types.ListTableMetadataOutput, AWSError>; /** * Lists the metadata for the tables in the specified data catalog database. */ listTableMetadata(callback?: (err: AWSError, data: Athena.Types.ListTableMetadataOutput) => void): Request<Athena.Types.ListTableMetadataOutput, AWSError>; /** * Lists the tags associated with an Athena resource. */ listTagsForResource(params: Athena.Types.ListTagsForResourceInput, callback?: (err: AWSError, data: Athena.Types.ListTagsForResourceOutput) => void): Request<Athena.Types.ListTagsForResourceOutput, AWSError>; /** * Lists the tags associated with an Athena resource. */ listTagsForResource(callback?: (err: AWSError, data: Athena.Types.ListTagsForResourceOutput) => void): Request<Athena.Types.ListTagsForResourceOutput, AWSError>; /** * Lists available workgroups for the account. */ listWorkGroups(params: Athena.Types.ListWorkGroupsInput, callback?: (err: AWSError, data: Athena.Types.ListWorkGroupsOutput) => void): Request<Athena.Types.ListWorkGroupsOutput, AWSError>; /** * Lists available workgroups for the account. */ listWorkGroups(callback?: (err: AWSError, data: Athena.Types.ListWorkGroupsOutput) => void): Request<Athena.Types.ListWorkGroupsOutput, AWSError>; /** * Puts a new capacity assignment configuration for a specified capacity reservation. If a capacity assignment configuration already exists for the capacity reservation, replaces the existing capacity assignment configuration. */ putCapacityAssignmentConfiguration(params: Athena.Types.PutCapacityAssignmentConfigurationInput, callback?: (err: AWSError, data: Athena.Types.PutCapacityAssignmentConfigurationOutput) => void): Request<Athena.Types.PutCapacityAssignmentConfigurationOutput, AWSError>; /** * Puts a new capacity assignment configuration for a specified capacity reservation. If a capacity assignment configuration already exists for the capacity reservation, replaces the existing capacity assignment configuration. */ putCapacityAssignmentConfiguration(callback?: (err: AWSError, data: Athena.Types.PutCapacityAssignmentConfigurationOutput) => void): Request<Athena.Types.PutCapacityAssignmentConfigurationOutput, AWSError>; /** * Submits calculations for execution within a session. You can supply the code to run as an inline code block within the request. The request syntax requires the StartCalculationExecutionRequest$CodeBlock parameter or the CalculationConfiguration$CodeBlock parameter, but not both. Because CalculationConfiguration$CodeBlock is deprecated, use the StartCalculationExecutionRequest$CodeBlock parameter instead. */ startCalculationExecution(params: Athena.Types.StartCalculationExecutionRequest, callback?: (err: AWSError, data: Athena.Types.StartCalculationExecutionResponse) => void): Request<Athena.Types.StartCalculationExecutionResponse, AWSError>; /** * Submits calculations for execution within a session. You can supply the code to run as an inline code block within the request. The request syntax requires the StartCalculationExecutionRequest$CodeBlock parameter or the CalculationConfiguration$CodeBlock parameter, but not both. Because CalculationConfiguration$CodeBlock is deprecated, use the StartCalculationExecutionRequest$CodeBlock parameter instead. */ startCalculationExecution(callback?: (err: AWSError, data: Athena.Types.StartCalculationExecutionResponse) => void): Request<Athena.Types.StartCalculationExecutionResponse, AWSError>; /** * Runs the SQL query statements contained in the Query. Requires you to have access to the workgroup in which the query ran. Running queries against an external catalog requires GetDataCatalog permission to the catalog. For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide. */ startQueryExecution(params: Athena.Types.StartQueryExecutionInput, callback?: (err: AWSError, data: Athena.Types.StartQueryExecutionOutput) => void): Request<Athena.Types.StartQueryExecutionOutput, AWSError>; /** * Runs the SQL query statements contained in the Query. Requires you to have access to the workgroup in which the query ran. Running queries against an external catalog requires GetDataCatalog permission to the catalog. For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide. */ startQueryExecution(callback?: (err: AWSError, data: Athena.Types.StartQueryExecutionOutput) => void): Request<Athena.Types.StartQueryExecutionOutput, AWSError>; /** * Creates a session for running calculations within a workgroup. The session is ready when it reaches an IDLE state. */ startSession(params: Athena.Types.StartSessionRequest, callback?: (err: AWSError, data: Athena.Types.StartSessionResponse) => void): Request<Athena.Types.StartSessionResponse, AWSError>; /** * Creates a session for running calculations within a workgroup. The session is ready when it reaches an IDLE state. */ startSession(callback?: (err: AWSError, data: Athena.Types.StartSessionResponse) => void): Request<Athena.Types.StartSessionResponse, AWSError>; /** * Requests the cancellation of a calculation. A StopCalculationExecution call on a calculation that is already in a terminal state (for example, STOPPED, FAILED, or COMPLETED) succeeds but has no effect. Cancelling a calculation is done on a best effort basis. If a calculation cannot be cancelled, you can be charged for its completion. If you are concerned about being charged for a calculation that cannot be cancelled, consider terminating the session in which the calculation is running. */ stopCalculationExecution(params: Athena.Types.StopCalculationExecutionRequest, callback?: (err: AWSError, data: Athena.Types.StopCalculationExecutionResponse) => void): Request<Athena.Types.StopCalculationExecutionResponse, AWSError>; /** * Requests the cancellation of a calculation. A StopCalculationExecution call on a calculation that is already in a terminal state (for example, STOPPED, FAILED, or COMPLETED) succeeds but has no effect. Cancelling a calculation is done on a best effort basis. If a calculation cannot be cancelled, you can be charged for its completion. If you are concerned about being charged for a calculation that cannot be cancelled, consider terminating the session in which the calculation is running. */ stopCalculationExecution(callback?: (err: AWSError, data: Athena.Types.StopCalculationExecutionResponse) => void): Request<Athena.Types.StopCalculationExecutionResponse, AWSError>; /** * Stops a query execution. Requires you to have access to the workgroup in which the query ran. */ stopQueryExecution(params: Athena.Types.StopQueryExecutionInput, callback?: (err: AWSError, data: Athena.Types.StopQueryExecutionOutput) => void): Request<Athena.Types.StopQueryExecutionOutput, AWSError>; /** * Stops a query execution. Requires you to have access to the workgroup in which the query ran. */ stopQueryExecution(callback?: (err: AWSError, data: Athena.Types.StopQueryExecutionOutput) => void): Request<Athena.Types.StopQueryExecutionOutput, AWSError>; /** * Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity reservations by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter the resources in your account. For best practices, see Tagging Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by commas. */ tagResource(params: Athena.Types.TagResourceInput, callback?: (err: AWSError, data: Athena.Types.TagResourceOutput) => void): Request<Athena.Types.TagResourceOutput, AWSError>; /** * Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity reservations by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter the resources in your account. For best practices, see Tagging Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by commas. */ tagResource(callback?: (err: AWSError, data: Athena.Types.TagResourceOutput) => void): Request<Athena.Types.TagResourceOutput, AWSError>; /** * Terminates an active session. A TerminateSession call on a session that is already inactive (for example, in a FAILED, TERMINATED or TERMINATING state) succeeds but has no effect. Calculations running in the session when TerminateSession is called are forcefully stopped, but may display as FAILED instead of STOPPED. */ terminateSession(params: Athena.Types.TerminateSessionRequest, callback?: (err: AWSError, data: Athena.Types.TerminateSessionResponse) => void): Request<Athena.Types.TerminateSessionResponse, AWSError>; /** * Terminates an active session. A TerminateSession call on a session that is already inactive (for example, in a FAILED, TERMINATED or TERMINATING state) succeeds but has no effect. Calculations running in the session when TerminateSession is called are forcefully stopped, but may display as FAILED instead of STOPPED. */ terminateSession(callback?: (err: AWSError, data: Athena.Types.TerminateSessionResponse) => void): Request<Athena.Types.TerminateSessionResponse, AWSError>; /** * Removes one or more tags from an Athena resource. */ untagResource(params: Athena.Types.UntagResourceInput, callback?: (err: AWSError, data: Athena.Types.UntagResourceOutput) => void): Request<Athena.Types.UntagResourceOutput, AWSError>; /** * Removes one or more tags from an Athena resource. */ untagResource(callback?: (err: AWSError, data: Athena.Types.UntagResourceOutput) => void): Request<Athena.Types.UntagResourceOutput, AWSError>; /** * Updates the number of requested data processing units for the capacity reservation with the specified name. */ updateCapacityReservation(params: Athena.Types.UpdateCapacityReservationInput, callback?: (err: AWSError, data: Athena.Types.UpdateCapacityReservationOutput) => void): Request<Athena.Types.UpdateCapacityReservationOutput, AWSError>; /** * Updates the number of requested data processing units for the capacity reservation with the specified name. */ updateCapacityReservation(callback?: (err: AWSError, data: Athena.Types.UpdateCapacityReservationOutput) => void): Request<Athena.Types.UpdateCapacityReservationOutput, AWSError>; /** * Updates the data catalog that has the specified name. */ updateDataCatalog(params: Athena.Types.UpdateDataCatalogInput, callback?: (err: AWSError, data: Athena.Types.UpdateDataCatalogOutput) => void): Request<Athena.Types.UpdateDataCatalogOutput, AWSError>; /** * Updates the data catalog that has the specified name. */ updateDataCatalog(callback?: (err: AWSError, data: Athena.Types.UpdateDataCatalogOutput) => void): Request<Athena.Types.UpdateDataCatalogOutput, AWSError>; /** * Updates a NamedQuery object. The database or workgroup cannot be updated. */ updateNamedQuery(params: Athena.Types.UpdateNamedQueryInput, callback?: (err: AWSError, data: Athena.Types.UpdateNamedQueryOutput) => void): Request<Athena.Types.UpdateNamedQueryOutput, AWSError>; /** * Updates a NamedQuery object. The database or workgroup cannot be updated. */ updateNamedQuery(cal