Class: Aws::Athena::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Athena::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb
Overview
An API client for Athena. To construct a client, you need to configure a :region and :credentials.
client = Aws::Athena::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#batch_get_named_query(params = {}) ⇒ Types::BatchGetNamedQueryOutput
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.
-
#batch_get_prepared_statement(params = {}) ⇒ Types::BatchGetPreparedStatementOutput
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.
-
#batch_get_query_execution(params = {}) ⇒ Types::BatchGetQueryExecutionOutput
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.
-
#cancel_capacity_reservation(params = {}) ⇒ Struct
Cancels the capacity reservation with the specified name.
-
#create_capacity_reservation(params = {}) ⇒ Struct
Creates a capacity reservation with the specified name and number of requested data processing units.
-
#create_data_catalog(params = {}) ⇒ Types::CreateDataCatalogOutput
Creates (registers) a data catalog with the specified name and properties.
-
#create_named_query(params = {}) ⇒ Types::CreateNamedQueryOutput
Creates a named query in the specified workgroup.
-
#create_notebook(params = {}) ⇒ Types::CreateNotebookOutput
Creates an empty
ipynbfile in the specified Apache Spark enabled workgroup. -
#create_prepared_statement(params = {}) ⇒ Struct
Creates a prepared statement for use with SQL queries in Athena.
-
#create_presigned_notebook_url(params = {}) ⇒ Types::CreatePresignedNotebookUrlResponse
Gets an authentication token and the URL at which the notebook can be accessed.
-
#create_system_table_configuration(params = {}) ⇒ Types::CreateSystemTableConfigurationOutput
Enables system tables for the current account.
-
#create_work_group(params = {}) ⇒ Struct
Creates a workgroup with the specified name.
-
#delete_capacity_reservation(params = {}) ⇒ Struct
Deletes a cancelled capacity reservation.
-
#delete_data_catalog(params = {}) ⇒ Types::DeleteDataCatalogOutput
Deletes a data catalog.
-
#delete_named_query(params = {}) ⇒ Struct
Deletes the named query if you have access to the workgroup in which the query was saved.
-
#delete_notebook(params = {}) ⇒ Struct
Deletes the specified notebook.
-
#delete_prepared_statement(params = {}) ⇒ Struct
Deletes the prepared statement with the specified name from the specified workgroup.
-
#delete_system_table_configuration(params = {}) ⇒ Struct
Disables system tables for the current account by deleting the account-level configuration.
-
#delete_work_group(params = {}) ⇒ Struct
Deletes the workgroup with the specified name.
-
#export_notebook(params = {}) ⇒ Types::ExportNotebookOutput
Exports the specified notebook and its metadata.
-
#get_calculation_execution(params = {}) ⇒ Types::GetCalculationExecutionResponse
Describes a previously submitted calculation execution.
-
#get_calculation_execution_code(params = {}) ⇒ Types::GetCalculationExecutionCodeResponse
Retrieves the unencrypted code that was executed for the calculation.
-
#get_calculation_execution_status(params = {}) ⇒ Types::GetCalculationExecutionStatusResponse
Gets the status of a current calculation.
-
#get_capacity_assignment_configuration(params = {}) ⇒ Types::GetCapacityAssignmentConfigurationOutput
Gets the capacity assignment configuration for a capacity reservation, if one exists.
-
#get_capacity_reservation(params = {}) ⇒ Types::GetCapacityReservationOutput
Returns information about the capacity reservation with the specified name.
-
#get_data_catalog(params = {}) ⇒ Types::GetDataCatalogOutput
Returns the specified data catalog.
-
#get_database(params = {}) ⇒ Types::GetDatabaseOutput
Returns a database object for the specified database and data catalog.
-
#get_named_query(params = {}) ⇒ Types::GetNamedQueryOutput
Returns information about a single query.
-
#get_notebook_metadata(params = {}) ⇒ Types::GetNotebookMetadataOutput
Retrieves notebook metadata for the specified notebook ID.
-
#get_prepared_statement(params = {}) ⇒ Types::GetPreparedStatementOutput
Retrieves the prepared statement with the specified name from the specified workgroup.
-
#get_query_execution(params = {}) ⇒ Types::GetQueryExecutionOutput
Returns information about a single execution of a query if you have access to the workgroup in which the query ran.
-
#get_query_result_stream(params = {}) ⇒ Types::GetQueryResultStreamOutput
Returns query results as a raw binary stream for a single query execution specified by
QueryExecutionId. -
#get_query_results(params = {}) ⇒ Types::GetQueryResultsOutput
Streams the results of a single query execution specified by
QueryExecutionIdfrom the Athena query results location in Amazon S3. -
#get_query_runtime_statistics(params = {}) ⇒ Types::GetQueryRuntimeStatisticsOutput
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.
-
#get_resource_dashboard(params = {}) ⇒ Types::GetResourceDashboardResponse
Gets the Live UI/Persistence UI for a session.
-
#get_session(params = {}) ⇒ Types::GetSessionResponse
Gets the full details of a previously created session, including the session status and configuration.
-
#get_session_endpoint(params = {}) ⇒ Types::GetSessionEndpointResponse
Gets a connection endpoint and authentication token for a given session Id.
-
#get_session_status(params = {}) ⇒ Types::GetSessionStatusResponse
Gets the current status of a session.
-
#get_system_table_configuration(params = {}) ⇒ Types::GetSystemTableConfigurationOutput
Returns the account-level system tables configuration.
-
#get_table_metadata(params = {}) ⇒ Types::GetTableMetadataOutput
Returns table metadata for the specified catalog, database, and table.
-
#get_work_group(params = {}) ⇒ Types::GetWorkGroupOutput
Returns information about the workgroup with the specified name.
-
#import_notebook(params = {}) ⇒ Types::ImportNotebookOutput
Imports a single
ipynbfile to a Spark enabled workgroup. -
#list_application_dpu_sizes(params = {}) ⇒ Types::ListApplicationDPUSizesOutput
Returns the supported DPU sizes for the supported application runtimes (for example,
Athena notebook version 1). -
#list_calculation_executions(params = {}) ⇒ Types::ListCalculationExecutionsResponse
Lists the calculations that have been submitted to a session in descending order.
-
#list_capacity_reservations(params = {}) ⇒ Types::ListCapacityReservationsOutput
Lists the capacity reservations for the current account.
-
#list_data_catalogs(params = {}) ⇒ Types::ListDataCatalogsOutput
Lists the data catalogs in the current Amazon Web Services account.
-
#list_databases(params = {}) ⇒ Types::ListDatabasesOutput
Lists the databases in the specified data catalog.
-
#list_engine_versions(params = {}) ⇒ Types::ListEngineVersionsOutput
Returns a list of engine versions that are available to choose from, including the Auto option.
-
#list_executors(params = {}) ⇒ Types::ListExecutorsResponse
Lists, in descending order, the executors that joined a session.
-
#list_named_queries(params = {}) ⇒ Types::ListNamedQueriesOutput
Provides a list of available query IDs only for queries saved in the specified workgroup.
-
#list_notebook_metadata(params = {}) ⇒ Types::ListNotebookMetadataOutput
Displays the notebook files for the specified workgroup in paginated format.
-
#list_notebook_sessions(params = {}) ⇒ Types::ListNotebookSessionsResponse
Lists, in descending order, the sessions that have been created in a notebook that are in an active state like
CREATING,CREATED,IDLEorBUSY. -
#list_prepared_statements(params = {}) ⇒ Types::ListPreparedStatementsOutput
Lists the prepared statements in the specified workgroup.
-
#list_query_executions(params = {}) ⇒ Types::ListQueryExecutionsOutput
Provides a list of available query execution IDs for the queries in the specified workgroup.
-
#list_sessions(params = {}) ⇒ Types::ListSessionsResponse
Lists the sessions in a workgroup that are in an active state like
CREATING,CREATED,IDLE, orBUSY. -
#list_system_table_statuses(params = {}) ⇒ Types::ListSystemTableStatusesOutput
Lists the system tables that the account-level configuration activates, along with whether each is currently enabled.
-
#list_table_metadata(params = {}) ⇒ Types::ListTableMetadataOutput
Lists the metadata for the tables in the specified data catalog database.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Lists the tags associated with an Athena resource.
-
#list_work_groups(params = {}) ⇒ Types::ListWorkGroupsOutput
Lists available workgroups for the account.
-
#put_capacity_assignment_configuration(params = {}) ⇒ Struct
Puts a new capacity assignment configuration for a specified capacity reservation.
-
#start_calculation_execution(params = {}) ⇒ Types::StartCalculationExecutionResponse
Submits calculations for execution within a session.
-
#start_query_execution(params = {}) ⇒ Types::StartQueryExecutionOutput
Runs the SQL query statements contained in the
Query. -
#start_session(params = {}) ⇒ Types::StartSessionResponse
Creates a session for running calculations within a workgroup.
-
#stop_calculation_execution(params = {}) ⇒ Types::StopCalculationExecutionResponse
Requests the cancellation of a calculation.
-
#stop_query_execution(params = {}) ⇒ Struct
Stops a query execution.
-
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to an Athena resource.
-
#terminate_session(params = {}) ⇒ Types::TerminateSessionResponse
Terminates an active session.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from an Athena resource.
-
#update_capacity_reservation(params = {}) ⇒ Struct
Updates the number of requested data processing units for the capacity reservation with the specified name.
-
#update_data_catalog(params = {}) ⇒ Struct
Updates the data catalog that has the specified name.
-
#update_named_query(params = {}) ⇒ Struct
Updates a NamedQuery object.
-
#update_notebook(params = {}) ⇒ Struct
Updates the contents of a Spark notebook.
-
#update_notebook_metadata(params = {}) ⇒ Struct
Updates the metadata for a notebook.
-
#update_prepared_statement(params = {}) ⇒ Struct
Updates a prepared statement.
-
#update_system_table_configuration(params = {}) ⇒ Types::UpdateSystemTableConfigurationOutput
Updates the account-level system tables configuration.
-
#update_work_group(params = {}) ⇒ Struct
Updates the workgroup with the specified name.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
479 480 481 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 479 def initialize(*args) super end |
Instance Method Details
#batch_get_named_query(params = {}) ⇒ Types::BatchGetNamedQueryOutput
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.
533 534 535 536 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 533 def batch_get_named_query(params = {}, = {}) req = build_request(:batch_get_named_query, params) req.send_request() end |
#batch_get_prepared_statement(params = {}) ⇒ Types::BatchGetPreparedStatementOutput
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.
580 581 582 583 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 580 def batch_get_prepared_statement(params = {}, = {}) req = build_request(:batch_get_prepared_statement, params) req.send_request() end |
#batch_get_query_execution(params = {}) ⇒ Types::BatchGetQueryExecutionOutput
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.
684 685 686 687 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 684 def batch_get_query_execution(params = {}, = {}) req = build_request(:batch_get_query_execution, params) req.send_request() end |
#cancel_capacity_reservation(params = {}) ⇒ Struct
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.
710 711 712 713 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 710 def cancel_capacity_reservation(params = {}, = {}) req = build_request(:cancel_capacity_reservation, params) req.send_request() end |
#create_capacity_reservation(params = {}) ⇒ Struct
Creates a capacity reservation with the specified name and number of requested data processing units.
746 747 748 749 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 746 def create_capacity_reservation(params = {}, = {}) req = build_request(:create_capacity_reservation, params) req.send_request() end |
#create_data_catalog(params = {}) ⇒ Types::CreateDataCatalogOutput
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.
For a FEDERATED catalog, this API operation creates the following
resources.
CFN Stack Name with a maximum length of 128 characters and prefix
athenafederatedcatalog-CATALOG_NAME_SANITIZEDwith length 23 characters.Lambda Function Name with a maximum length of 64 characters and prefix
athenafederatedcatalog_CATALOG_NAME_SANITIZEDwith length 23 characters.Glue Connection Name with a maximum length of 255 characters and a prefix
athenafederatedcatalog_CATALOG_NAME_SANITIZEDwith length 23 characters.
901 902 903 904 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 901 def create_data_catalog(params = {}, = {}) req = build_request(:create_data_catalog, params) req.send_request() end |
#create_named_query(params = {}) ⇒ Types::CreateNamedQueryOutput
Creates a named query in the specified workgroup. Requires that you have access to the workgroup.
963 964 965 966 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 963 def create_named_query(params = {}, = {}) req = build_request(:create_named_query, params) req.send_request() end |
#create_notebook(params = {}) ⇒ Types::CreateNotebookOutput
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.
1010 1011 1012 1013 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1010 def create_notebook(params = {}, = {}) req = build_request(:create_notebook, params) req.send_request() end |
#create_prepared_statement(params = {}) ⇒ Struct
Creates a prepared statement for use with SQL queries in Athena.
1044 1045 1046 1047 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1044 def create_prepared_statement(params = {}, = {}) req = build_request(:create_prepared_statement, params) req.send_request() end |
#create_presigned_notebook_url(params = {}) ⇒ Types::CreatePresignedNotebookUrlResponse
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.
1084 1085 1086 1087 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1084 def create_presigned_notebook_url(params = {}, = {}) req = build_request(:create_presigned_notebook_url, params) req.send_request() end |
#create_system_table_configuration(params = {}) ⇒ Types::CreateSystemTableConfigurationOutput
Enables system tables for the current account. System tables are enabled or disabled for the entire account: creating this configuration enables them. If a configuration already exists, use UpdateSystemTableConfiguration to update it.
1148 1149 1150 1151 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1148 def create_system_table_configuration(params = {}, = {}) req = build_request(:create_system_table_configuration, params) req.send_request() end |
#create_work_group(params = {}) ⇒ Struct
Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled workgroup or an Athena SQL workgroup.
1283 1284 1285 1286 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1283 def create_work_group(params = {}, = {}) req = build_request(:create_work_group, params) req.send_request() end |
#delete_capacity_reservation(params = {}) ⇒ Struct
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.
1310 1311 1312 1313 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1310 def delete_capacity_reservation(params = {}, = {}) req = build_request(:delete_capacity_reservation, params) req.send_request() end |
#delete_data_catalog(params = {}) ⇒ Types::DeleteDataCatalogOutput
Deletes a data catalog.
1352 1353 1354 1355 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1352 def delete_data_catalog(params = {}, = {}) req = build_request(:delete_data_catalog, params) req.send_request() end |
#delete_named_query(params = {}) ⇒ Struct
Deletes the named query if you have access to the workgroup in which the query was saved.
1378 1379 1380 1381 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1378 def delete_named_query(params = {}, = {}) req = build_request(:delete_named_query, params) req.send_request() end |
#delete_notebook(params = {}) ⇒ Struct
Deletes the specified notebook.
1400 1401 1402 1403 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1400 def delete_notebook(params = {}, = {}) req = build_request(:delete_notebook, params) req.send_request() end |
#delete_prepared_statement(params = {}) ⇒ Struct
Deletes the prepared statement with the specified name from the specified workgroup.
1427 1428 1429 1430 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1427 def delete_prepared_statement(params = {}, = {}) req = build_request(:delete_prepared_statement, params) req.send_request() end |
#delete_system_table_configuration(params = {}) ⇒ Struct
Disables system tables for the current account by deleting the account-level configuration. If the configuration doesn't exist, the operation succeeds without making any changes. The system table and previously published data are left intact.
1453 1454 1455 1456 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1453 def delete_system_table_configuration(params = {}, = {}) req = build_request(:delete_system_table_configuration, params) req.send_request() end |
#delete_work_group(params = {}) ⇒ Struct
Deletes the workgroup with the specified name. The primary workgroup cannot be deleted.
1481 1482 1483 1484 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1481 def delete_work_group(params = {}, = {}) req = build_request(:delete_work_group, params) req.send_request() end |
#export_notebook(params = {}) ⇒ Types::ExportNotebookOutput
Exports the specified notebook and its metadata.
1516 1517 1518 1519 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1516 def export_notebook(params = {}, = {}) req = build_request(:export_notebook, params) req.send_request() end |
#get_calculation_execution(params = {}) ⇒ Types::GetCalculationExecutionResponse
Describes a previously submitted calculation execution.
1563 1564 1565 1566 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1563 def get_calculation_execution(params = {}, = {}) req = build_request(:get_calculation_execution, params) req.send_request() end |
#get_calculation_execution_code(params = {}) ⇒ Types::GetCalculationExecutionCodeResponse
Retrieves the unencrypted code that was executed for the calculation.
1591 1592 1593 1594 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1591 def get_calculation_execution_code(params = {}, = {}) req = build_request(:get_calculation_execution_code, params) req.send_request() end |
#get_calculation_execution_status(params = {}) ⇒ Types::GetCalculationExecutionStatusResponse
Gets the status of a current calculation.
1625 1626 1627 1628 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1625 def get_calculation_execution_status(params = {}, = {}) req = build_request(:get_calculation_execution_status, params) req.send_request() end |
#get_capacity_assignment_configuration(params = {}) ⇒ Types::GetCapacityAssignmentConfigurationOutput
Gets the capacity assignment configuration for a capacity reservation, if one exists.
1658 1659 1660 1661 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1658 def get_capacity_assignment_configuration(params = {}, = {}) req = build_request(:get_capacity_assignment_configuration, params) req.send_request() end |
#get_capacity_reservation(params = {}) ⇒ Types::GetCapacityReservationOutput
Returns information about the capacity reservation with the specified name.
1696 1697 1698 1699 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1696 def get_capacity_reservation(params = {}, = {}) req = build_request(:get_capacity_reservation, params) req.send_request() end |
#get_data_catalog(params = {}) ⇒ Types::GetDataCatalogOutput
Returns the specified data catalog.
1736 1737 1738 1739 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1736 def get_data_catalog(params = {}, = {}) req = build_request(:get_data_catalog, params) req.send_request() end |
#get_database(params = {}) ⇒ Types::GetDatabaseOutput
Returns a database object for the specified database and data catalog.
1777 1778 1779 1780 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1777 def get_database(params = {}, = {}) req = build_request(:get_database, params) req.send_request() end |
#get_named_query(params = {}) ⇒ Types::GetNamedQueryOutput
Returns information about a single query. Requires that you have access to the workgroup in which the query was saved.
1816 1817 1818 1819 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1816 def get_named_query(params = {}, = {}) req = build_request(:get_named_query, params) req.send_request() end |
#get_notebook_metadata(params = {}) ⇒ Types::GetNotebookMetadataOutput
Retrieves notebook metadata for the specified notebook ID.
1849 1850 1851 1852 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1849 def (params = {}, = {}) req = build_request(:get_notebook_metadata, params) req.send_request() end |
#get_prepared_statement(params = {}) ⇒ Types::GetPreparedStatementOutput
Retrieves the prepared statement with the specified name from the specified workgroup.
1886 1887 1888 1889 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1886 def get_prepared_statement(params = {}, = {}) req = build_request(:get_prepared_statement, params) req.send_request() end |
#get_query_execution(params = {}) ⇒ Types::GetQueryExecutionOutput
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.
1981 1982 1983 1984 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 1981 def get_query_execution(params = {}, = {}) req = build_request(:get_query_execution, params) req.send_request() end |
#get_query_result_stream(params = {}) ⇒ Types::GetQueryResultStreamOutput
Returns query results as a raw binary stream for a single query
execution specified by QueryExecutionId. Streams the raw result data
in Apache Arrow Inter-Process Communication (IPC) Stream format
without transformation. Use StartQueryExecution to run a query.
2023 2024 2025 2026 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2023 def get_query_result_stream(params = {}, = {}, &block) req = build_request(:get_query_result_stream, params) req.send_request(, &block) end |
#get_query_results(params = {}) ⇒ Types::GetQueryResultsOutput
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2108 2109 2110 2111 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2108 def get_query_results(params = {}, = {}) req = build_request(:get_query_results, params) req.send_request() end |
#get_query_runtime_statistics(params = {}) ⇒ Types::GetQueryRuntimeStatisticsOutput
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 or, in some cases, may not be returned. The
non-timeline statistics are also not included when a query has
row-level filters defined in Lake Formation.
2169 2170 2171 2172 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2169 def get_query_runtime_statistics(params = {}, = {}) req = build_request(:get_query_runtime_statistics, params) req.send_request() end |
#get_resource_dashboard(params = {}) ⇒ Types::GetResourceDashboardResponse
Gets the Live UI/Persistence UI for a session.
2197 2198 2199 2200 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2197 def get_resource_dashboard(params = {}, = {}) req = build_request(:get_resource_dashboard, params) req.send_request() end |
#get_session(params = {}) ⇒ Types::GetSessionResponse
Gets the full details of a previously created session, including the session status and configuration.
2274 2275 2276 2277 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2274 def get_session(params = {}, = {}) req = build_request(:get_session, params) req.send_request() end |
#get_session_endpoint(params = {}) ⇒ Types::GetSessionEndpointResponse
Gets a connection endpoint and authentication token for a given session Id.
2307 2308 2309 2310 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2307 def get_session_endpoint(params = {}, = {}) req = build_request(:get_session_endpoint, params) req.send_request() end |
#get_session_status(params = {}) ⇒ Types::GetSessionStatusResponse
Gets the current status of a session.
2342 2343 2344 2345 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2342 def get_session_status(params = {}, = {}) req = build_request(:get_session_status, params) req.send_request() end |
#get_system_table_configuration(params = {}) ⇒ Types::GetSystemTableConfigurationOutput
Returns the account-level system tables configuration. Fails with a
ResourceNotFoundException if system tables are not enabled for the
account.
2379 2380 2381 2382 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2379 def get_system_table_configuration(params = {}, = {}) req = build_request(:get_system_table_configuration, params) req.send_request() end |
#get_table_metadata(params = {}) ⇒ Types::GetTableMetadataOutput
Returns table metadata for the specified catalog, database, and table.
2435 2436 2437 2438 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2435 def (params = {}, = {}) req = build_request(:get_table_metadata, params) req.send_request() end |
#get_work_group(params = {}) ⇒ Types::GetWorkGroupOutput
Returns information about the workgroup with the specified name.
2514 2515 2516 2517 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2514 def get_work_group(params = {}, = {}) req = build_request(:get_work_group, params) req.send_request() end |
#import_notebook(params = {}) ⇒ Types::ImportNotebookOutput
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.
2576 2577 2578 2579 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2576 def import_notebook(params = {}, = {}) req = build_request(:import_notebook, params) req.send_request() end |
#list_application_dpu_sizes(params = {}) ⇒ Types::ListApplicationDPUSizesOutput
Returns the supported DPU sizes for the supported application runtimes
(for example, Athena notebook version 1).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2617 2618 2619 2620 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2617 def list_application_dpu_sizes(params = {}, = {}) req = build_request(:list_application_dpu_sizes, params) req.send_request() end |
#list_calculation_executions(params = {}) ⇒ Types::ListCalculationExecutionsResponse
Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2691 2692 2693 2694 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2691 def list_calculation_executions(params = {}, = {}) req = build_request(:list_calculation_executions, params) req.send_request() end |
#list_capacity_reservations(params = {}) ⇒ Types::ListCapacityReservationsOutput
Lists the capacity reservations for the current account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2738 2739 2740 2741 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2738 def list_capacity_reservations(params = {}, = {}) req = build_request(:list_capacity_reservations, params) req.send_request() end |
#list_data_catalogs(params = {}) ⇒ Types::ListDataCatalogsOutput
Lists the data catalogs in the current Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2792 2793 2794 2795 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2792 def list_data_catalogs(params = {}, = {}) req = build_request(:list_data_catalogs, params) req.send_request() end |
#list_databases(params = {}) ⇒ Types::ListDatabasesOutput
Lists the databases in the specified data catalog.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2860 2861 2862 2863 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2860 def list_databases(params = {}, = {}) req = build_request(:list_databases, params) req.send_request() end |
#list_engine_versions(params = {}) ⇒ Types::ListEngineVersionsOutput
Returns a list of engine versions that are available to choose from, including the Auto option.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2902 2903 2904 2905 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2902 def list_engine_versions(params = {}, = {}) req = build_request(:list_engine_versions, params) req.send_request() end |
#list_executors(params = {}) ⇒ Types::ListExecutorsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2973 2974 2975 2976 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 2973 def list_executors(params = {}, = {}) req = build_request(:list_executors, params) req.send_request() end |
#list_named_queries(params = {}) ⇒ Types::ListNamedQueriesOutput
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3022 3023 3024 3025 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3022 def list_named_queries(params = {}, = {}) req = build_request(:list_named_queries, params) req.send_request() end |
#list_notebook_metadata(params = {}) ⇒ Types::ListNotebookMetadataOutput
Displays the notebook files for the specified workgroup in paginated format.
3075 3076 3077 3078 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3075 def (params = {}, = {}) req = build_request(:list_notebook_metadata, params) req.send_request() end |
#list_notebook_sessions(params = {}) ⇒ Types::ListNotebookSessionsResponse
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.
3121 3122 3123 3124 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3121 def list_notebook_sessions(params = {}, = {}) req = build_request(:list_notebook_sessions, params) req.send_request() end |
#list_prepared_statements(params = {}) ⇒ Types::ListPreparedStatementsOutput
Lists the prepared statements in the specified workgroup.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3166 3167 3168 3169 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3166 def list_prepared_statements(params = {}, = {}) req = build_request(:list_prepared_statements, params) req.send_request() end |
#list_query_executions(params = {}) ⇒ Types::ListQueryExecutionsOutput
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3216 3217 3218 3219 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3216 def list_query_executions(params = {}, = {}) req = build_request(:list_query_executions, params) req.send_request() end |
#list_sessions(params = {}) ⇒ Types::ListSessionsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3296 3297 3298 3299 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3296 def list_sessions(params = {}, = {}) req = build_request(:list_sessions, params) req.send_request() end |
#list_system_table_statuses(params = {}) ⇒ Types::ListSystemTableStatusesOutput
Lists the system tables that the account-level configuration activates, along with whether each is currently enabled. Because system tables are enabled at the account level, every entry reflects the same account-wide state.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3338 3339 3340 3341 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3338 def list_system_table_statuses(params = {}, = {}) req = build_request(:list_system_table_statuses, params) req.send_request() end |
#list_table_metadata(params = {}) ⇒ Types::ListTableMetadataOutput
Lists the metadata for the tables in the specified data catalog database.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3428 3429 3430 3431 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3428 def (params = {}, = {}) req = build_request(:list_table_metadata, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Lists the tags associated with an Athena resource.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3473 3474 3475 3476 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3473 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_work_groups(params = {}) ⇒ Types::ListWorkGroupsOutput
Lists available workgroups for the account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3519 3520 3521 3522 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3519 def list_work_groups(params = {}, = {}) req = build_request(:list_work_groups, params) req.send_request() end |
#put_capacity_assignment_configuration(params = {}) ⇒ Struct
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.
3553 3554 3555 3556 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3553 def put_capacity_assignment_configuration(params = {}, = {}) req = build_request(:put_capacity_assignment_configuration, params) req.send_request() end |
#start_calculation_execution(params = {}) ⇒ Types::StartCalculationExecutionResponse
Submits calculations for execution within a session. You can supply the code to run as an inline code block within the request.
3621 3622 3623 3624 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3621 def start_calculation_execution(params = {}, = {}) req = build_request(:start_calculation_execution, params) req.send_request() end |
#start_query_execution(params = {}) ⇒ Types::StartQueryExecutionOutput
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.
3769 3770 3771 3772 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3769 def start_query_execution(params = {}, = {}) req = build_request(:start_query_execution, params) req.send_request() end |
#start_session(params = {}) ⇒ Types::StartSessionResponse
Creates a session for running calculations within a workgroup. The
session is ready when it reaches an IDLE state.
3898 3899 3900 3901 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3898 def start_session(params = {}, = {}) req = build_request(:start_session, params) req.send_request() end |
#stop_calculation_execution(params = {}) ⇒ Types::StopCalculationExecutionResponse
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.
3937 3938 3939 3940 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3937 def stop_calculation_execution(params = {}, = {}) req = build_request(:stop_calculation_execution, params) req.send_request() end |
#stop_query_execution(params = {}) ⇒ Struct
Stops a query execution. Requires you to have access to the workgroup in which the query ran.
3963 3964 3965 3966 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 3963 def stop_query_execution(params = {}, = {}) req = build_request(:stop_query_execution, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
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.
4011 4012 4013 4014 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4011 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#terminate_session(params = {}) ⇒ Types::TerminateSessionResponse
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.
4043 4044 4045 4046 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4043 def terminate_session(params = {}, = {}) req = build_request(:terminate_session, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from an Athena resource.
4070 4071 4072 4073 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4070 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_capacity_reservation(params = {}) ⇒ Struct
Updates the number of requested data processing units for the capacity reservation with the specified name.
4097 4098 4099 4100 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4097 def update_capacity_reservation(params = {}, = {}) req = build_request(:update_capacity_reservation, params) req.send_request() end |
#update_data_catalog(params = {}) ⇒ Struct
Updates the data catalog that has the specified name.
4163 4164 4165 4166 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4163 def update_data_catalog(params = {}, = {}) req = build_request(:update_data_catalog, params) req.send_request() end |
#update_named_query(params = {}) ⇒ Struct
Updates a NamedQuery object. The database or workgroup cannot be updated.
4198 4199 4200 4201 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4198 def update_named_query(params = {}, = {}) req = build_request(:update_named_query, params) req.send_request() end |
#update_notebook(params = {}) ⇒ Struct
Updates the contents of a Spark notebook.
4244 4245 4246 4247 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4244 def update_notebook(params = {}, = {}) req = build_request(:update_notebook, params) req.send_request() end |
#update_notebook_metadata(params = {}) ⇒ Struct
Updates the metadata for a notebook.
4281 4282 4283 4284 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4281 def (params = {}, = {}) req = build_request(:update_notebook_metadata, params) req.send_request() end |
#update_prepared_statement(params = {}) ⇒ Struct
Updates a prepared statement.
4315 4316 4317 4318 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4315 def update_prepared_statement(params = {}, = {}) req = build_request(:update_prepared_statement, params) req.send_request() end |
#update_system_table_configuration(params = {}) ⇒ Types::UpdateSystemTableConfigurationOutput
Updates the account-level system tables configuration. If no configuration exists, use CreateSystemTableConfiguration to create one. Fields that you omit retain their current values.
4359 4360 4361 4362 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4359 def update_system_table_configuration(params = {}, = {}) req = build_request(:update_system_table_configuration, params) req.send_request() end |
#update_work_group(params = {}) ⇒ Struct
Updates the workgroup with the specified name. The workgroup's name
cannot be changed. Only ConfigurationUpdates can be specified.
4476 4477 4478 4479 |
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/client.rb', line 4476 def update_work_group(params = {}, = {}) req = build_request(:update_work_group, params) req.send_request() end |