Struct aws_sdk_athena::Client
source · pub struct Client { /* private fields */ }Expand description
Client for Amazon Athena
Client for invoking operations on Amazon Athena. Each operation on Amazon Athena is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_athena::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Config struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_athena::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the BatchGetPreparedStatement operation has
a Client::batch_get_prepared_statement, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.batch_get_prepared_statement()
.work_group("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn batch_get_named_query(&self) -> BatchGetNamedQueryFluentBuilder
pub fn batch_get_named_query(&self) -> BatchGetNamedQueryFluentBuilder
Constructs a fluent builder for the BatchGetNamedQuery operation.
- The fluent builder is configurable:
named_query_ids(impl Into<String>)/set_named_query_ids(Option<Vec::<String>>):
required: trueAn array of query IDs.
- On success, responds with
BatchGetNamedQueryOutputwith field(s):named_queries(Option<Vec::<NamedQuery>>):Information about the named query IDs submitted.
unprocessed_named_query_ids(Option<Vec::<UnprocessedNamedQueryId>>):Information about provided query IDs.
- On failure, responds with
SdkError<BatchGetNamedQueryError>
source§impl Client
impl Client
sourcepub fn batch_get_prepared_statement(
&self
) -> BatchGetPreparedStatementFluentBuilder
pub fn batch_get_prepared_statement( &self ) -> BatchGetPreparedStatementFluentBuilder
Constructs a fluent builder for the BatchGetPreparedStatement operation.
- The fluent builder is configurable:
prepared_statement_names(impl Into<String>)/set_prepared_statement_names(Option<Vec::<String>>):
required: trueA list of prepared statement names to return.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe name of the workgroup to which the prepared statements belong.
- On success, responds with
BatchGetPreparedStatementOutputwith field(s):prepared_statements(Option<Vec::<PreparedStatement>>):The list of prepared statements returned.
unprocessed_prepared_statement_names(Option<Vec::<UnprocessedPreparedStatementName>>):A list of one or more prepared statements that were requested but could not be returned.
- On failure, responds with
SdkError<BatchGetPreparedStatementError>
source§impl Client
impl Client
sourcepub fn batch_get_query_execution(&self) -> BatchGetQueryExecutionFluentBuilder
pub fn batch_get_query_execution(&self) -> BatchGetQueryExecutionFluentBuilder
Constructs a fluent builder for the BatchGetQueryExecution operation.
- The fluent builder is configurable:
query_execution_ids(impl Into<String>)/set_query_execution_ids(Option<Vec::<String>>):
required: trueAn array of query execution IDs.
- On success, responds with
BatchGetQueryExecutionOutputwith field(s):query_executions(Option<Vec::<QueryExecution>>):Information about a query execution.
unprocessed_query_execution_ids(Option<Vec::<UnprocessedQueryExecutionId>>):Information about the query executions that failed to run.
- On failure, responds with
SdkError<BatchGetQueryExecutionError>
source§impl Client
impl Client
sourcepub fn cancel_capacity_reservation(
&self
) -> CancelCapacityReservationFluentBuilder
pub fn cancel_capacity_reservation( &self ) -> CancelCapacityReservationFluentBuilder
Constructs a fluent builder for the CancelCapacityReservation operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the capacity reservation to cancel.
- On success, responds with
CancelCapacityReservationOutput - On failure, responds with
SdkError<CancelCapacityReservationError>
source§impl Client
impl Client
sourcepub fn create_capacity_reservation(
&self
) -> CreateCapacityReservationFluentBuilder
pub fn create_capacity_reservation( &self ) -> CreateCapacityReservationFluentBuilder
Constructs a fluent builder for the CreateCapacityReservation operation.
- The fluent builder is configurable:
target_dpus(i32)/set_target_dpus(Option<i32>):
required: trueThe number of requested data processing units.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the capacity reservation to create.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe tags for the capacity reservation.
- On success, responds with
CreateCapacityReservationOutput - On failure, responds with
SdkError<CreateCapacityReservationError>
source§impl Client
impl Client
sourcepub fn create_data_catalog(&self) -> CreateDataCatalogFluentBuilder
pub fn create_data_catalog(&self) -> CreateDataCatalogFluentBuilder
Constructs a fluent builder for the CreateDataCatalog operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the data catalog to create. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena.
r#type(DataCatalogType)/set_type(Option<DataCatalogType>):
required: trueThe type of data catalog to create:
LAMBDAfor a federated catalog,HIVEfor an external hive metastore, orGLUEfor an Glue Data Catalog.description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the data catalog to be created.
parameters(impl Into<String>, impl Into<String>)/set_parameters(Option<HashMap::<String, String>>):
required: falseSpecifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
-
For the
HIVEdata catalog type, use the following syntax. Themetadata-functionparameter is required.The sdk-versionparameter is optional and defaults to the currently supported version.metadata-function=lambda_arn, sdk-version=version_number -
For the
LAMBDAdata catalog type, use one of the following sets of required parameters, but not both.-
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn -
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
-
-
The
GLUEtype takes a catalog ID parameter and is required. Thecatalog_idis the account ID of the Amazon Web Services account to which the Glue Data Catalog belongs.catalog-id=catalog_id-
The
GLUEdata catalog type also applies to the defaultAwsDataCatalogthat already exists in your account, of which you can have only one and cannot modify.
-
-
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseA list of comma separated tags to add to the data catalog that is created.
- On success, responds with
CreateDataCatalogOutput - On failure, responds with
SdkError<CreateDataCatalogError>
source§impl Client
impl Client
sourcepub fn create_named_query(&self) -> CreateNamedQueryFluentBuilder
pub fn create_named_query(&self) -> CreateNamedQueryFluentBuilder
Constructs a fluent builder for the CreateNamedQuery operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe query name.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe query description.
database(impl Into<String>)/set_database(Option<String>):
required: trueThe database to which the query belongs.
query_string(impl Into<String>)/set_query_string(Option<String>):
required: trueThe contents of the query with all query statements.
client_request_token(impl Into<String>)/set_client_request_token(Option<String>):
required: falseA unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another
CreateNamedQueryrequest is received, the same response is returned and another query is not created. If a parameter has changed, for example, theQueryString, an error is returned.This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup in which the named query is being created.
- On success, responds with
CreateNamedQueryOutputwith field(s):named_query_id(Option<String>):The unique ID of the query.
- On failure, responds with
SdkError<CreateNamedQueryError>
source§impl Client
impl Client
sourcepub fn create_notebook(&self) -> CreateNotebookFluentBuilder
pub fn create_notebook(&self) -> CreateNotebookFluentBuilder
Constructs a fluent builder for the CreateNotebook operation.
- The fluent builder is configurable:
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe name of the Spark enabled workgroup in which the notebook will be created.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the
ipynbfile to be created in the Spark workgroup, without the.ipynbextension.client_request_token(impl Into<String>)/set_client_request_token(Option<String>):
required: falseA unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).
This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- On success, responds with
CreateNotebookOutputwith field(s):notebook_id(Option<String>):A unique identifier for the notebook.
- On failure, responds with
SdkError<CreateNotebookError>
source§impl Client
impl Client
sourcepub fn create_prepared_statement(&self) -> CreatePreparedStatementFluentBuilder
pub fn create_prepared_statement(&self) -> CreatePreparedStatementFluentBuilder
Constructs a fluent builder for the CreatePreparedStatement operation.
- The fluent builder is configurable:
statement_name(impl Into<String>)/set_statement_name(Option<String>):
required: trueThe name of the prepared statement.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe name of the workgroup to which the prepared statement belongs.
query_statement(impl Into<String>)/set_query_statement(Option<String>):
required: trueThe query string for the prepared statement.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe description of the prepared statement.
- On success, responds with
CreatePreparedStatementOutput - On failure, responds with
SdkError<CreatePreparedStatementError>
source§impl Client
impl Client
sourcepub fn create_presigned_notebook_url(
&self
) -> CreatePresignedNotebookUrlFluentBuilder
pub fn create_presigned_notebook_url( &self ) -> CreatePresignedNotebookUrlFluentBuilder
Constructs a fluent builder for the CreatePresignedNotebookUrl operation.
- The fluent builder is configurable:
session_id(impl Into<String>)/set_session_id(Option<String>):
required: trueThe session ID.
- On success, responds with
CreatePresignedNotebookUrlOutputwith field(s):notebook_url(String):The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to the opened notebook.
auth_token(String):The authentication token for the notebook.
auth_token_expiration_time(i64):The UTC epoch time when the authentication token expires.
- On failure, responds with
SdkError<CreatePresignedNotebookUrlError>
source§impl Client
impl Client
sourcepub fn create_work_group(&self) -> CreateWorkGroupFluentBuilder
pub fn create_work_group(&self) -> CreateWorkGroupFluentBuilder
Constructs a fluent builder for the CreateWorkGroup operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe workgroup name.
configuration(WorkGroupConfiguration)/set_configuration(Option<WorkGroupConfiguration>):
required: falseContains configuration information for creating an Athena SQL workgroup or Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the location in Amazon S3 where query and calculation results are stored, the encryption configuration, if any, used for encrypting query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the amount of bytes scanned (cutoff) per query, if it is specified, and whether workgroup’s settings (specified with
EnforceWorkGroupConfiguration) in theWorkGroupConfigurationoverride client-side settings. SeeWorkGroupConfiguration$EnforceWorkGroupConfiguration.description(impl Into<String>)/set_description(Option<String>):
required: falseThe workgroup description.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseA list of comma separated tags to add to the workgroup that is created.
- On success, responds with
CreateWorkGroupOutput - On failure, responds with
SdkError<CreateWorkGroupError>
source§impl Client
impl Client
sourcepub fn delete_capacity_reservation(
&self
) -> DeleteCapacityReservationFluentBuilder
pub fn delete_capacity_reservation( &self ) -> DeleteCapacityReservationFluentBuilder
Constructs a fluent builder for the DeleteCapacityReservation operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the capacity reservation to delete.
- On success, responds with
DeleteCapacityReservationOutput - On failure, responds with
SdkError<DeleteCapacityReservationError>
source§impl Client
impl Client
sourcepub fn delete_data_catalog(&self) -> DeleteDataCatalogFluentBuilder
pub fn delete_data_catalog(&self) -> DeleteDataCatalogFluentBuilder
Constructs a fluent builder for the DeleteDataCatalog operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the data catalog to delete.
- On success, responds with
DeleteDataCatalogOutput - On failure, responds with
SdkError<DeleteDataCatalogError>
source§impl Client
impl Client
sourcepub fn delete_named_query(&self) -> DeleteNamedQueryFluentBuilder
pub fn delete_named_query(&self) -> DeleteNamedQueryFluentBuilder
Constructs a fluent builder for the DeleteNamedQuery operation.
- The fluent builder is configurable:
named_query_id(impl Into<String>)/set_named_query_id(Option<String>):
required: trueThe unique ID of the query to delete.
- On success, responds with
DeleteNamedQueryOutput - On failure, responds with
SdkError<DeleteNamedQueryError>
source§impl Client
impl Client
sourcepub fn delete_notebook(&self) -> DeleteNotebookFluentBuilder
pub fn delete_notebook(&self) -> DeleteNotebookFluentBuilder
Constructs a fluent builder for the DeleteNotebook operation.
- The fluent builder is configurable:
notebook_id(impl Into<String>)/set_notebook_id(Option<String>):
required: trueThe ID of the notebook to delete.
- On success, responds with
DeleteNotebookOutput - On failure, responds with
SdkError<DeleteNotebookError>
source§impl Client
impl Client
sourcepub fn delete_prepared_statement(&self) -> DeletePreparedStatementFluentBuilder
pub fn delete_prepared_statement(&self) -> DeletePreparedStatementFluentBuilder
Constructs a fluent builder for the DeletePreparedStatement operation.
- The fluent builder is configurable:
statement_name(impl Into<String>)/set_statement_name(Option<String>):
required: trueThe name of the prepared statement to delete.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe workgroup to which the statement to be deleted belongs.
- On success, responds with
DeletePreparedStatementOutput - On failure, responds with
SdkError<DeletePreparedStatementError>
source§impl Client
impl Client
sourcepub fn delete_work_group(&self) -> DeleteWorkGroupFluentBuilder
pub fn delete_work_group(&self) -> DeleteWorkGroupFluentBuilder
Constructs a fluent builder for the DeleteWorkGroup operation.
- The fluent builder is configurable:
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe unique name of the workgroup to delete.
recursive_delete_option(bool)/set_recursive_delete_option(Option<bool>):
required: falseThe option to delete the workgroup and its contents even if the workgroup contains any named queries, query executions, or notebooks.
- On success, responds with
DeleteWorkGroupOutput - On failure, responds with
SdkError<DeleteWorkGroupError>
source§impl Client
impl Client
sourcepub fn export_notebook(&self) -> ExportNotebookFluentBuilder
pub fn export_notebook(&self) -> ExportNotebookFluentBuilder
Constructs a fluent builder for the ExportNotebook operation.
- The fluent builder is configurable:
notebook_id(impl Into<String>)/set_notebook_id(Option<String>):
required: trueThe ID of the notebook to export.
- On success, responds with
ExportNotebookOutputwith field(s):notebook_metadata(Option<NotebookMetadata>):The notebook metadata, including notebook ID, notebook name, and workgroup name.
payload(Option<String>):The content of the exported notebook.
- On failure, responds with
SdkError<ExportNotebookError>
source§impl Client
impl Client
sourcepub fn get_calculation_execution(&self) -> GetCalculationExecutionFluentBuilder
pub fn get_calculation_execution(&self) -> GetCalculationExecutionFluentBuilder
Constructs a fluent builder for the GetCalculationExecution operation.
- The fluent builder is configurable:
calculation_execution_id(impl Into<String>)/set_calculation_execution_id(Option<String>):
required: trueThe calculation execution UUID.
- On success, responds with
GetCalculationExecutionOutputwith field(s):calculation_execution_id(Option<String>):The calculation execution UUID.
session_id(Option<String>):The session ID that the calculation ran in.
description(Option<String>):The description of the calculation execution.
working_directory(Option<String>):The Amazon S3 location in which calculation results are stored.
status(Option<CalculationStatus>):Contains information about the status of the calculation.
statistics(Option<CalculationStatistics>):Contains information about the data processing unit (DPU) execution time and progress. This field is populated only when statistics are available.
result(Option<CalculationResult>):Contains result information. This field is populated only if the calculation is completed.
- On failure, responds with
SdkError<GetCalculationExecutionError>
source§impl Client
impl Client
sourcepub fn get_calculation_execution_code(
&self
) -> GetCalculationExecutionCodeFluentBuilder
pub fn get_calculation_execution_code( &self ) -> GetCalculationExecutionCodeFluentBuilder
Constructs a fluent builder for the GetCalculationExecutionCode operation.
- The fluent builder is configurable:
calculation_execution_id(impl Into<String>)/set_calculation_execution_id(Option<String>):
required: trueThe calculation execution UUID.
- On success, responds with
GetCalculationExecutionCodeOutputwith field(s):code_block(Option<String>):The unencrypted code that was executed for the calculation.
- On failure, responds with
SdkError<GetCalculationExecutionCodeError>
source§impl Client
impl Client
sourcepub fn get_calculation_execution_status(
&self
) -> GetCalculationExecutionStatusFluentBuilder
pub fn get_calculation_execution_status( &self ) -> GetCalculationExecutionStatusFluentBuilder
Constructs a fluent builder for the GetCalculationExecutionStatus operation.
- The fluent builder is configurable:
calculation_execution_id(impl Into<String>)/set_calculation_execution_id(Option<String>):
required: trueThe calculation execution UUID.
- On success, responds with
GetCalculationExecutionStatusOutputwith field(s):status(Option<CalculationStatus>):Contains information about the calculation execution status.
statistics(Option<CalculationStatistics>):Contains information about the DPU execution time and progress.
- On failure, responds with
SdkError<GetCalculationExecutionStatusError>
source§impl Client
impl Client
sourcepub fn get_capacity_assignment_configuration(
&self
) -> GetCapacityAssignmentConfigurationFluentBuilder
pub fn get_capacity_assignment_configuration( &self ) -> GetCapacityAssignmentConfigurationFluentBuilder
Constructs a fluent builder for the GetCapacityAssignmentConfiguration operation.
- The fluent builder is configurable:
capacity_reservation_name(impl Into<String>)/set_capacity_reservation_name(Option<String>):
required: trueThe name of the capacity reservation to retrieve the capacity assignment configuration for.
- On success, responds with
GetCapacityAssignmentConfigurationOutputwith field(s):capacity_assignment_configuration(Option<CapacityAssignmentConfiguration>):The requested capacity assignment configuration for the specified capacity reservation.
- On failure, responds with
SdkError<GetCapacityAssignmentConfigurationError>
source§impl Client
impl Client
sourcepub fn get_capacity_reservation(&self) -> GetCapacityReservationFluentBuilder
pub fn get_capacity_reservation(&self) -> GetCapacityReservationFluentBuilder
Constructs a fluent builder for the GetCapacityReservation operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the capacity reservation.
- On success, responds with
GetCapacityReservationOutputwith field(s):capacity_reservation(Option<CapacityReservation>):The requested capacity reservation structure.
- On failure, responds with
SdkError<GetCapacityReservationError>
source§impl Client
impl Client
sourcepub fn get_data_catalog(&self) -> GetDataCatalogFluentBuilder
pub fn get_data_catalog(&self) -> GetDataCatalogFluentBuilder
Constructs a fluent builder for the GetDataCatalog operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the data catalog to return.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup. Required if making an IAM Identity Center request.
- On success, responds with
GetDataCatalogOutputwith field(s):data_catalog(Option<DataCatalog>):The data catalog returned.
- On failure, responds with
SdkError<GetDataCatalogError>
source§impl Client
impl Client
sourcepub fn get_database(&self) -> GetDatabaseFluentBuilder
pub fn get_database(&self) -> GetDatabaseFluentBuilder
Constructs a fluent builder for the GetDatabase operation.
- The fluent builder is configurable:
catalog_name(impl Into<String>)/set_catalog_name(Option<String>):
required: trueThe name of the data catalog that contains the database to return.
database_name(impl Into<String>)/set_database_name(Option<String>):
required: trueThe name of the database to return.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog.
- On success, responds with
GetDatabaseOutputwith field(s):database(Option<Database>):The database returned.
- On failure, responds with
SdkError<GetDatabaseError>
source§impl Client
impl Client
sourcepub fn get_named_query(&self) -> GetNamedQueryFluentBuilder
pub fn get_named_query(&self) -> GetNamedQueryFluentBuilder
Constructs a fluent builder for the GetNamedQuery operation.
- The fluent builder is configurable:
named_query_id(impl Into<String>)/set_named_query_id(Option<String>):
required: trueThe unique ID of the query. Use
ListNamedQueriesto get query IDs.
- On success, responds with
GetNamedQueryOutputwith field(s):named_query(Option<NamedQuery>):Information about the query.
- On failure, responds with
SdkError<GetNamedQueryError>
source§impl Client
impl Client
sourcepub fn get_notebook_metadata(&self) -> GetNotebookMetadataFluentBuilder
pub fn get_notebook_metadata(&self) -> GetNotebookMetadataFluentBuilder
Constructs a fluent builder for the GetNotebookMetadata operation.
- The fluent builder is configurable:
notebook_id(impl Into<String>)/set_notebook_id(Option<String>):
required: trueThe ID of the notebook whose metadata is to be retrieved.
- On success, responds with
GetNotebookMetadataOutputwith field(s):notebook_metadata(Option<NotebookMetadata>):The metadata that is returned for the specified notebook ID.
- On failure, responds with
SdkError<GetNotebookMetadataError>
source§impl Client
impl Client
sourcepub fn get_prepared_statement(&self) -> GetPreparedStatementFluentBuilder
pub fn get_prepared_statement(&self) -> GetPreparedStatementFluentBuilder
Constructs a fluent builder for the GetPreparedStatement operation.
- The fluent builder is configurable:
statement_name(impl Into<String>)/set_statement_name(Option<String>):
required: trueThe name of the prepared statement to retrieve.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe workgroup to which the statement to be retrieved belongs.
- On success, responds with
GetPreparedStatementOutputwith field(s):prepared_statement(Option<PreparedStatement>):The name of the prepared statement that was retrieved.
- On failure, responds with
SdkError<GetPreparedStatementError>
source§impl Client
impl Client
sourcepub fn get_query_execution(&self) -> GetQueryExecutionFluentBuilder
pub fn get_query_execution(&self) -> GetQueryExecutionFluentBuilder
Constructs a fluent builder for the GetQueryExecution operation.
- The fluent builder is configurable:
query_execution_id(impl Into<String>)/set_query_execution_id(Option<String>):
required: trueThe unique ID of the query execution.
- On success, responds with
GetQueryExecutionOutputwith field(s):query_execution(Option<QueryExecution>):Information about the query execution.
- On failure, responds with
SdkError<GetQueryExecutionError>
source§impl Client
impl Client
sourcepub fn get_query_results(&self) -> GetQueryResultsFluentBuilder
pub fn get_query_results(&self) -> GetQueryResultsFluentBuilder
Constructs a fluent builder for the GetQueryResults operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
query_execution_id(impl Into<String>)/set_query_execution_id(Option<String>):
required: trueThe unique ID of the query execution.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results (rows) to return in this request.
- On success, responds with
GetQueryResultsOutputwith field(s):update_count(Option<i64>):The number of rows inserted with a
CREATE TABLE AS SELECTstatement.result_set(Option<ResultSet>):The results of the query execution.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On failure, responds with
SdkError<GetQueryResultsError>
source§impl Client
impl Client
sourcepub fn get_query_runtime_statistics(
&self
) -> GetQueryRuntimeStatisticsFluentBuilder
pub fn get_query_runtime_statistics( &self ) -> GetQueryRuntimeStatisticsFluentBuilder
Constructs a fluent builder for the GetQueryRuntimeStatistics operation.
- The fluent builder is configurable:
query_execution_id(impl Into<String>)/set_query_execution_id(Option<String>):
required: trueThe unique ID of the query execution.
- On success, responds with
GetQueryRuntimeStatisticsOutputwith field(s):query_runtime_statistics(Option<QueryRuntimeStatistics>):Runtime statistics about the query execution.
- On failure, responds with
SdkError<GetQueryRuntimeStatisticsError>
source§impl Client
impl Client
sourcepub fn get_session(&self) -> GetSessionFluentBuilder
pub fn get_session(&self) -> GetSessionFluentBuilder
Constructs a fluent builder for the GetSession operation.
- The fluent builder is configurable:
session_id(impl Into<String>)/set_session_id(Option<String>):
required: trueThe session ID.
- On success, responds with
GetSessionOutputwith field(s):session_id(Option<String>):The session ID.
description(Option<String>):The session description.
work_group(Option<String>):The workgroup to which the session belongs.
engine_version(Option<String>):The engine version used by the session (for example,
PySpark engine version 3). You can get a list of engine versions by callingListEngineVersions.engine_configuration(Option<EngineConfiguration>):Contains engine configuration information like DPU usage.
notebook_version(Option<String>):The notebook version.
session_configuration(Option<SessionConfiguration>):Contains the workgroup configuration information used by the session.
status(Option<SessionStatus>):Contains information about the status of the session.
statistics(Option<SessionStatistics>):Contains the DPU execution time.
- On failure, responds with
SdkError<GetSessionError>
source§impl Client
impl Client
sourcepub fn get_session_status(&self) -> GetSessionStatusFluentBuilder
pub fn get_session_status(&self) -> GetSessionStatusFluentBuilder
Constructs a fluent builder for the GetSessionStatus operation.
- The fluent builder is configurable:
session_id(impl Into<String>)/set_session_id(Option<String>):
required: trueThe session ID.
- On success, responds with
GetSessionStatusOutputwith field(s):session_id(Option<String>):The session ID.
status(Option<SessionStatus>):Contains information about the status of the session.
- On failure, responds with
SdkError<GetSessionStatusError>
source§impl Client
impl Client
sourcepub fn get_table_metadata(&self) -> GetTableMetadataFluentBuilder
pub fn get_table_metadata(&self) -> GetTableMetadataFluentBuilder
Constructs a fluent builder for the GetTableMetadata operation.
- The fluent builder is configurable:
catalog_name(impl Into<String>)/set_catalog_name(Option<String>):
required: trueThe name of the data catalog that contains the database and table metadata to return.
database_name(impl Into<String>)/set_database_name(Option<String>):
required: trueThe name of the database that contains the table metadata to return.
table_name(impl Into<String>)/set_table_name(Option<String>):
required: trueThe name of the table for which metadata is returned.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog.
- On success, responds with
GetTableMetadataOutputwith field(s):table_metadata(Option<TableMetadata>):An object that contains table metadata.
- On failure, responds with
SdkError<GetTableMetadataError>
source§impl Client
impl Client
sourcepub fn get_work_group(&self) -> GetWorkGroupFluentBuilder
pub fn get_work_group(&self) -> GetWorkGroupFluentBuilder
Constructs a fluent builder for the GetWorkGroup operation.
- The fluent builder is configurable:
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe name of the workgroup.
- On success, responds with
GetWorkGroupOutputwith field(s):work_group(Option<WorkGroup>):Information about the workgroup.
- On failure, responds with
SdkError<GetWorkGroupError>
source§impl Client
impl Client
sourcepub fn import_notebook(&self) -> ImportNotebookFluentBuilder
pub fn import_notebook(&self) -> ImportNotebookFluentBuilder
Constructs a fluent builder for the ImportNotebook operation.
- The fluent builder is configurable:
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe name of the Spark enabled workgroup to import the notebook to.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the notebook to import.
payload(impl Into<String>)/set_payload(Option<String>):
required: falseThe notebook content to be imported. The payload must be in
ipynbformat.r#type(NotebookType)/set_type(Option<NotebookType>):
required: trueThe notebook content type. Currently, the only valid type is
IPYNB.notebook_s3_location_uri(impl Into<String>)/set_notebook_s3_location_uri(Option<String>):
required: falseA URI that specifies the Amazon S3 location of a notebook file in
ipynbformat.client_request_token(impl Into<String>)/set_client_request_token(Option<String>):
required: falseA unique case-sensitive string used to ensure the request to import the notebook is idempotent (executes only once).
This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- On success, responds with
ImportNotebookOutputwith field(s):notebook_id(Option<String>):The ID assigned to the imported notebook.
- On failure, responds with
SdkError<ImportNotebookError>
source§impl Client
impl Client
sourcepub fn list_application_dpu_sizes(&self) -> ListApplicationDPUSizesFluentBuilder
pub fn list_application_dpu_sizes(&self) -> ListApplicationDPUSizesFluentBuilder
Constructs a fluent builder for the ListApplicationDPUSizes operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseSpecifies the maximum number of results to return.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated.
- On success, responds with
ListApplicationDpuSizesOutputwith field(s):application_dpu_sizes(Option<Vec::<ApplicationDpuSizes>>):A list of the supported DPU sizes that the application runtime supports.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On failure, responds with
SdkError<ListApplicationDPUSizesError>
source§impl Client
impl Client
sourcepub fn list_calculation_executions(
&self
) -> ListCalculationExecutionsFluentBuilder
pub fn list_calculation_executions( &self ) -> ListCalculationExecutionsFluentBuilder
Constructs a fluent builder for the ListCalculationExecutions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
session_id(impl Into<String>)/set_session_id(Option<String>):
required: trueThe session ID.
state_filter(CalculationExecutionState)/set_state_filter(Option<CalculationExecutionState>):
required: falseA filter for a specific calculation execution state. A description of each state follows.
CREATING- The calculation is in the process of being created.CREATED- The calculation has been created and is ready to run.QUEUED- The calculation has been queued for processing.RUNNING- The calculation is running.CANCELING- A request to cancel the calculation has been received and the system is working to stop it.CANCELED- The calculation is no longer running as the result of a cancel request.COMPLETED- The calculation has completed without error.FAILED- The calculation failed and is no longer running.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of calculation executions to return.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On success, responds with
ListCalculationExecutionsOutputwith field(s):next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.calculations(Option<Vec::<CalculationSummary>>):A list of
CalculationSummaryobjects.
- On failure, responds with
SdkError<ListCalculationExecutionsError>
source§impl Client
impl Client
sourcepub fn list_capacity_reservations(
&self
) -> ListCapacityReservationsFluentBuilder
pub fn list_capacity_reservations( &self ) -> ListCapacityReservationsFluentBuilder
Constructs a fluent builder for the ListCapacityReservations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated.
max_results(i32)/set_max_results(Option<i32>):
required: falseSpecifies the maximum number of results to return.
- On success, responds with
ListCapacityReservationsOutputwith field(s):next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
capacity_reservations(Vec::<CapacityReservation>):The capacity reservations for the current account.
- On failure, responds with
SdkError<ListCapacityReservationsError>
source§impl Client
impl Client
sourcepub fn list_data_catalogs(&self) -> ListDataCatalogsFluentBuilder
pub fn list_data_catalogs(&self) -> ListDataCatalogsFluentBuilder
Constructs a fluent builder for the ListDataCatalogs operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
max_results(i32)/set_max_results(Option<i32>):
required: falseSpecifies the maximum number of data catalogs to return.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup. Required if making an IAM Identity Center request.
- On success, responds with
ListDataCatalogsOutputwith field(s):data_catalogs_summary(Option<Vec::<DataCatalogSummary>>):A summary list of data catalogs.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
- On failure, responds with
SdkError<ListDataCatalogsError>
source§impl Client
impl Client
sourcepub fn list_databases(&self) -> ListDatabasesFluentBuilder
pub fn list_databases(&self) -> ListDatabasesFluentBuilder
Constructs a fluent builder for the ListDatabases operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
catalog_name(impl Into<String>)/set_catalog_name(Option<String>):
required: trueThe name of the data catalog that contains the databases to return.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.max_results(i32)/set_max_results(Option<i32>):
required: falseSpecifies the maximum number of results to return.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog.
- On success, responds with
ListDatabasesOutputwith field(s):database_list(Option<Vec::<Database>>):A list of databases from a data catalog.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
- On failure, responds with
SdkError<ListDatabasesError>
source§impl Client
impl Client
sourcepub fn list_engine_versions(&self) -> ListEngineVersionsFluentBuilder
pub fn list_engine_versions(&self) -> ListEngineVersionsFluentBuilder
Constructs a fluent builder for the ListEngineVersions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of engine versions to return in this request.
- On success, responds with
ListEngineVersionsOutputwith field(s):engine_versions(Option<Vec::<EngineVersion>>):A list of engine versions that are available to choose from.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On failure, responds with
SdkError<ListEngineVersionsError>
source§impl Client
impl Client
sourcepub fn list_executors(&self) -> ListExecutorsFluentBuilder
pub fn list_executors(&self) -> ListExecutorsFluentBuilder
Constructs a fluent builder for the ListExecutors operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
session_id(impl Into<String>)/set_session_id(Option<String>):
required: trueThe session ID.
executor_state_filter(ExecutorState)/set_executor_state_filter(Option<ExecutorState>):
required: falseA filter for a specific executor state. A description of each state follows.
CREATING- The executor is being started, including acquiring resources.CREATED- The executor has been started.REGISTERED- The executor has been registered.TERMINATING- The executor is in the process of shutting down.TERMINATED- The executor is no longer running.FAILED- Due to a failure, the executor is no longer running.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of executors to return.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On success, responds with
ListExecutorsOutputwith field(s):session_id(String):The session ID.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.executors_summary(Option<Vec::<ExecutorsSummary>>):Contains summary information about the executor.
- On failure, responds with
SdkError<ListExecutorsError>
source§impl Client
impl Client
sourcepub fn list_named_queries(&self) -> ListNamedQueriesFluentBuilder
pub fn list_named_queries(&self) -> ListNamedQueriesFluentBuilder
Constructs a fluent builder for the ListNamedQueries operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of queries to return in this request.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.
- On success, responds with
ListNamedQueriesOutputwith field(s):named_query_ids(Option<Vec::<String>>):The list of unique query IDs.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On failure, responds with
SdkError<ListNamedQueriesError>
source§impl Client
impl Client
sourcepub fn list_notebook_metadata(&self) -> ListNotebookMetadataFluentBuilder
pub fn list_notebook_metadata(&self) -> ListNotebookMetadataFluentBuilder
Constructs a fluent builder for the ListNotebookMetadata operation.
- The fluent builder is configurable:
filters(FilterDefinition)/set_filters(Option<FilterDefinition>):
required: falseSearch filter string.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated.
max_results(i32)/set_max_results(Option<i32>):
required: falseSpecifies the maximum number of results to return.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe name of the Spark enabled workgroup to retrieve notebook metadata for.
- On success, responds with
ListNotebookMetadataOutputwith field(s):next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.notebook_metadata_list(Option<Vec::<NotebookMetadata>>):The list of notebook metadata for the specified workgroup.
- On failure, responds with
SdkError<ListNotebookMetadataError>
source§impl Client
impl Client
sourcepub fn list_notebook_sessions(&self) -> ListNotebookSessionsFluentBuilder
pub fn list_notebook_sessions(&self) -> ListNotebookSessionsFluentBuilder
Constructs a fluent builder for the ListNotebookSessions operation.
- The fluent builder is configurable:
notebook_id(impl Into<String>)/set_notebook_id(Option<String>):
required: trueThe ID of the notebook to list sessions for.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of notebook sessions to return.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On success, responds with
ListNotebookSessionsOutputwith field(s):notebook_sessions_list(Vec::<NotebookSessionSummary>):A list of the sessions belonging to the notebook.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On failure, responds with
SdkError<ListNotebookSessionsError>
source§impl Client
impl Client
sourcepub fn list_prepared_statements(&self) -> ListPreparedStatementsFluentBuilder
pub fn list_prepared_statements(&self) -> ListPreparedStatementsFluentBuilder
Constructs a fluent builder for the ListPreparedStatements operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe workgroup to list the prepared statements for.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in this request.
- On success, responds with
ListPreparedStatementsOutputwith field(s):prepared_statements(Option<Vec::<PreparedStatementSummary>>):The list of prepared statements for the workgroup.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On failure, responds with
SdkError<ListPreparedStatementsError>
source§impl Client
impl Client
sourcepub fn list_query_executions(&self) -> ListQueryExecutionsFluentBuilder
pub fn list_query_executions(&self) -> ListQueryExecutionsFluentBuilder
Constructs a fluent builder for the ListQueryExecutions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of query executions to return in this request.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup from which queries are being returned. If a workgroup is not specified, a list of available query execution IDs for the queries in the primary workgroup is returned.
- On success, responds with
ListQueryExecutionsOutputwith field(s):query_execution_ids(Option<Vec::<String>>):The unique IDs of each query execution as an array of strings.
next_token(Option<String>):A token to be used by the next request if this request is truncated.
- On failure, responds with
SdkError<ListQueryExecutionsError>
source§impl Client
impl Client
sourcepub fn list_sessions(&self) -> ListSessionsFluentBuilder
pub fn list_sessions(&self) -> ListSessionsFluentBuilder
Constructs a fluent builder for the ListSessions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe workgroup to which the session belongs.
state_filter(SessionState)/set_state_filter(Option<SessionState>):
required: falseA filter for a specific session state. A description of each state follows.
CREATING- The session is being started, including acquiring resources.CREATED- The session has been started.IDLE- The session is able to accept a calculation.BUSY- The session is processing another task and is unable to accept a calculation.TERMINATING- The session is in the process of shutting down.TERMINATED- The session and its resources are no longer running.DEGRADED- The session has no healthy coordinators.FAILED- Due to a failure, the session and its resources are no longer running.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of sessions to return.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On success, responds with
ListSessionsOutputwith field(s):next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.sessions(Option<Vec::<SessionSummary>>):A list of sessions.
- On failure, responds with
SdkError<ListSessionsError>
source§impl Client
impl Client
sourcepub fn list_table_metadata(&self) -> ListTableMetadataFluentBuilder
pub fn list_table_metadata(&self) -> ListTableMetadataFluentBuilder
Constructs a fluent builder for the ListTableMetadata operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
catalog_name(impl Into<String>)/set_catalog_name(Option<String>):
required: trueThe name of the data catalog for which table metadata should be returned.
database_name(impl Into<String>)/set_database_name(Option<String>):
required: trueThe name of the database for which table metadata should be returned.
expression(impl Into<String>)/set_expression(Option<String>):
required: falseA regex filter that pattern-matches table names. If no expression is supplied, metadata for all tables are listed.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
max_results(i32)/set_max_results(Option<i32>):
required: falseSpecifies the maximum number of results to return.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog.
- On success, responds with
ListTableMetadataOutputwith field(s):table_metadata_list(Option<Vec::<TableMetadata>>):A list of table metadata.
next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
- On failure, responds with
SdkError<ListTableMetadataError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueLists the tags for the resource with the specified ARN.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token for the next set of results, or null if there are no additional results for this request, where the request lists the tags for the resource with the specified ARN.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to be returned per request that lists the tags for the resource.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<Vec::<Tag>>):The list of tags associated with the specified resource.
next_token(Option<String>):A token to be used by the next request if this request is truncated.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn list_work_groups(&self) -> ListWorkGroupsFluentBuilder
pub fn list_work_groups(&self) -> ListWorkGroupsFluentBuilder
Constructs a fluent builder for the ListWorkGroups operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of workgroups to return in this request.
- On success, responds with
ListWorkGroupsOutputwith field(s):work_groups(Option<Vec::<WorkGroupSummary>>):A list of
WorkGroupSummaryobjects that include the names, descriptions, creation times, and states for each workgroup.next_token(Option<String>):A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
- On failure, responds with
SdkError<ListWorkGroupsError>
source§impl Client
impl Client
sourcepub fn put_capacity_assignment_configuration(
&self
) -> PutCapacityAssignmentConfigurationFluentBuilder
pub fn put_capacity_assignment_configuration( &self ) -> PutCapacityAssignmentConfigurationFluentBuilder
Constructs a fluent builder for the PutCapacityAssignmentConfiguration operation.
- The fluent builder is configurable:
capacity_reservation_name(impl Into<String>)/set_capacity_reservation_name(Option<String>):
required: trueThe name of the capacity reservation to put a capacity assignment configuration for.
capacity_assignments(CapacityAssignment)/set_capacity_assignments(Option<Vec::<CapacityAssignment>>):
required: trueThe list of assignments for the capacity assignment configuration.
- On success, responds with
PutCapacityAssignmentConfigurationOutput - On failure, responds with
SdkError<PutCapacityAssignmentConfigurationError>
source§impl Client
impl Client
sourcepub fn start_calculation_execution(
&self
) -> StartCalculationExecutionFluentBuilder
pub fn start_calculation_execution( &self ) -> StartCalculationExecutionFluentBuilder
Constructs a fluent builder for the StartCalculationExecution operation.
- The fluent builder is configurable:
session_id(impl Into<String>)/set_session_id(Option<String>):
required: trueThe session ID.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the calculation.
calculation_configuration(CalculationConfiguration)/set_calculation_configuration(Option<CalculationConfiguration>):
required: falseContains configuration information for the calculation.
code_block(impl Into<String>)/set_code_block(Option<String>):
required: falseA string that contains the code of the calculation. Use this parameter instead of
CalculationConfiguration$CodeBlock, which is deprecated.client_request_token(impl Into<String>)/set_client_request_token(Option<String>):
required: falseA unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only once). If another
StartCalculationExecutionRequestis received, the same response is returned and another calculation is not created. If a parameter has changed, an error is returned.This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- On success, responds with
StartCalculationExecutionOutputwith field(s):calculation_execution_id(Option<String>):The calculation execution UUID.
state(Option<CalculationExecutionState>):CREATING- The calculation is in the process of being created.CREATED- The calculation has been created and is ready to run.QUEUED- The calculation has been queued for processing.RUNNING- The calculation is running.CANCELING- A request to cancel the calculation has been received and the system is working to stop it.CANCELED- The calculation is no longer running as the result of a cancel request.COMPLETED- The calculation has completed without error.FAILED- The calculation failed and is no longer running.
- On failure, responds with
SdkError<StartCalculationExecutionError>
source§impl Client
impl Client
sourcepub fn start_query_execution(&self) -> StartQueryExecutionFluentBuilder
pub fn start_query_execution(&self) -> StartQueryExecutionFluentBuilder
Constructs a fluent builder for the StartQueryExecution operation.
- The fluent builder is configurable:
query_string(impl Into<String>)/set_query_string(Option<String>):
required: trueThe SQL query statements to be executed.
client_request_token(impl Into<String>)/set_client_request_token(Option<String>):
required: falseA unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another
StartQueryExecutionrequest is received, the same response is returned and another query is not created. An error is returned if a parameter, such asQueryString, has changed. A call toStartQueryExecutionthat uses a previous client request token returns the sameQueryExecutionIdeven if the requester doesn’t have permission on the tables specified inQueryString.This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
query_execution_context(QueryExecutionContext)/set_query_execution_context(Option<QueryExecutionContext>):
required: falseThe database within which the query executes.
result_configuration(ResultConfiguration)/set_result_configuration(Option<ResultConfiguration>):
required: falseSpecifies information about where and how to save the results of the query execution. If the query runs in a workgroup, then workgroup’s settings may override query settings. This affects the query results location. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
WorkGroupConfiguration$EnforceWorkGroupConfiguration.work_group(impl Into<String>)/set_work_group(Option<String>):
required: falseThe name of the workgroup in which the query is being started.
execution_parameters(impl Into<String>)/set_execution_parameters(Option<Vec::<String>>):
required: falseA list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.
result_reuse_configuration(ResultReuseConfiguration)/set_result_reuse_configuration(Option<ResultReuseConfiguration>):
required: falseSpecifies the query result reuse behavior for the query.
- On success, responds with
StartQueryExecutionOutputwith field(s):query_execution_id(Option<String>):The unique ID of the query that ran as a result of this request.
- On failure, responds with
SdkError<StartQueryExecutionError>
source§impl Client
impl Client
sourcepub fn start_session(&self) -> StartSessionFluentBuilder
pub fn start_session(&self) -> StartSessionFluentBuilder
Constructs a fluent builder for the StartSession operation.
- The fluent builder is configurable:
description(impl Into<String>)/set_description(Option<String>):
required: falseThe session description.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe workgroup to which the session belongs.
engine_configuration(EngineConfiguration)/set_engine_configuration(Option<EngineConfiguration>):
required: trueContains engine data processing unit (DPU) configuration settings and parameter mappings.
notebook_version(impl Into<String>)/set_notebook_version(Option<String>):
required: falseThe notebook version. This value is supplied automatically for notebook sessions in the Athena console and is not required for programmatic session access. The only valid notebook version is
Athena notebook version 1. If you specify a value forNotebookVersion, you must also specify a value forNotebookId. SeeEngineConfiguration$AdditionalConfigs.session_idle_timeout_in_minutes(i32)/set_session_idle_timeout_in_minutes(Option<i32>):
required: falseThe idle timeout in minutes for the session.
client_request_token(impl Into<String>)/set_client_request_token(Option<String>):
required: falseA unique case-sensitive string used to ensure the request to create the session is idempotent (executes only once). If another
StartSessionRequestis received, the same response is returned and another session is not created. If a parameter has changed, an error is returned.This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- On success, responds with
StartSessionOutputwith field(s):session_id(Option<String>):The session ID.
state(Option<SessionState>):The state of the session. A description of each state follows.
CREATING- The session is being started, including acquiring resources.CREATED- The session has been started.IDLE- The session is able to accept a calculation.BUSY- The session is processing another task and is unable to accept a calculation.TERMINATING- The session is in the process of shutting down.TERMINATED- The session and its resources are no longer running.DEGRADED- The session has no healthy coordinators.FAILED- Due to a failure, the session and its resources are no longer running.
- On failure, responds with
SdkError<StartSessionError>
source§impl Client
impl Client
sourcepub fn stop_calculation_execution(
&self
) -> StopCalculationExecutionFluentBuilder
pub fn stop_calculation_execution( &self ) -> StopCalculationExecutionFluentBuilder
Constructs a fluent builder for the StopCalculationExecution operation.
- The fluent builder is configurable:
calculation_execution_id(impl Into<String>)/set_calculation_execution_id(Option<String>):
required: trueThe calculation execution UUID.
- On success, responds with
StopCalculationExecutionOutputwith field(s):state(Option<CalculationExecutionState>):CREATING- The calculation is in the process of being created.CREATED- The calculation has been created and is ready to run.QUEUED- The calculation has been queued for processing.RUNNING- The calculation is running.CANCELING- A request to cancel the calculation has been received and the system is working to stop it.CANCELED- The calculation is no longer running as the result of a cancel request.COMPLETED- The calculation has completed without error.FAILED- The calculation failed and is no longer running.
- On failure, responds with
SdkError<StopCalculationExecutionError>
source§impl Client
impl Client
sourcepub fn stop_query_execution(&self) -> StopQueryExecutionFluentBuilder
pub fn stop_query_execution(&self) -> StopQueryExecutionFluentBuilder
Constructs a fluent builder for the StopQueryExecution operation.
- The fluent builder is configurable:
query_execution_id(impl Into<String>)/set_query_execution_id(Option<String>):
required: trueThe unique ID of the query execution to stop.
- On success, responds with
StopQueryExecutionOutput - On failure, responds with
SdkError<StopQueryExecutionError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueSpecifies the ARN of the Athena resource to which tags are to be added.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: trueA collection of one or more tags, separated by commas, to be added to an Athena resource.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn terminate_session(&self) -> TerminateSessionFluentBuilder
pub fn terminate_session(&self) -> TerminateSessionFluentBuilder
Constructs a fluent builder for the TerminateSession operation.
- The fluent builder is configurable:
session_id(impl Into<String>)/set_session_id(Option<String>):
required: trueThe session ID.
- On success, responds with
TerminateSessionOutputwith field(s):state(Option<SessionState>):The state of the session. A description of each state follows.
CREATING- The session is being started, including acquiring resources.CREATED- The session has been started.IDLE- The session is able to accept a calculation.BUSY- The session is processing another task and is unable to accept a calculation.TERMINATING- The session is in the process of shutting down.TERMINATED- The session and its resources are no longer running.DEGRADED- The session has no healthy coordinators.FAILED- Due to a failure, the session and its resources are no longer running.
- On failure, responds with
SdkError<TerminateSessionError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueSpecifies the ARN of the resource from which tags are to be removed.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueA comma-separated list of one or more tag keys whose tags are to be removed from the specified resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_capacity_reservation(
&self
) -> UpdateCapacityReservationFluentBuilder
pub fn update_capacity_reservation( &self ) -> UpdateCapacityReservationFluentBuilder
Constructs a fluent builder for the UpdateCapacityReservation operation.
- The fluent builder is configurable:
target_dpus(i32)/set_target_dpus(Option<i32>):
required: trueThe new number of requested data processing units.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the capacity reservation.
- On success, responds with
UpdateCapacityReservationOutput - On failure, responds with
SdkError<UpdateCapacityReservationError>
source§impl Client
impl Client
sourcepub fn update_data_catalog(&self) -> UpdateDataCatalogFluentBuilder
pub fn update_data_catalog(&self) -> UpdateDataCatalogFluentBuilder
Constructs a fluent builder for the UpdateDataCatalog operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the data catalog to update. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena.
r#type(DataCatalogType)/set_type(Option<DataCatalogType>):
required: trueSpecifies the type of data catalog to update. Specify
LAMBDAfor a federated catalog,HIVEfor an external hive metastore, orGLUEfor an Glue Data Catalog.description(impl Into<String>)/set_description(Option<String>):
required: falseNew or modified text that describes the data catalog.
parameters(impl Into<String>, impl Into<String>)/set_parameters(Option<HashMap::<String, String>>):
required: falseSpecifies the Lambda function or functions to use for updating the data catalog. This is a mapping whose values depend on the catalog type.
-
For the
HIVEdata catalog type, use the following syntax. Themetadata-functionparameter is required.The sdk-versionparameter is optional and defaults to the currently supported version.metadata-function=lambda_arn, sdk-version=version_number -
For the
LAMBDAdata catalog type, use one of the following sets of required parameters, but not both.-
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn -
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
-
-
- On success, responds with
UpdateDataCatalogOutput - On failure, responds with
SdkError<UpdateDataCatalogError>
source§impl Client
impl Client
sourcepub fn update_named_query(&self) -> UpdateNamedQueryFluentBuilder
pub fn update_named_query(&self) -> UpdateNamedQueryFluentBuilder
Constructs a fluent builder for the UpdateNamedQuery operation.
- The fluent builder is configurable:
named_query_id(impl Into<String>)/set_named_query_id(Option<String>):
required: trueThe unique identifier (UUID) of the query.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the query.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe query description.
query_string(impl Into<String>)/set_query_string(Option<String>):
required: trueThe contents of the query with all query statements.
- On success, responds with
UpdateNamedQueryOutput - On failure, responds with
SdkError<UpdateNamedQueryError>
source§impl Client
impl Client
sourcepub fn update_notebook(&self) -> UpdateNotebookFluentBuilder
pub fn update_notebook(&self) -> UpdateNotebookFluentBuilder
Constructs a fluent builder for the UpdateNotebook operation.
- The fluent builder is configurable:
notebook_id(impl Into<String>)/set_notebook_id(Option<String>):
required: trueThe ID of the notebook to update.
payload(impl Into<String>)/set_payload(Option<String>):
required: trueThe updated content for the notebook.
r#type(NotebookType)/set_type(Option<NotebookType>):
required: trueThe notebook content type. Currently, the only valid type is
IPYNB.session_id(impl Into<String>)/set_session_id(Option<String>):
required: falseThe active notebook session ID. Required if the notebook has an active session.
client_request_token(impl Into<String>)/set_client_request_token(Option<String>):
required: falseA unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).
This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- On success, responds with
UpdateNotebookOutput - On failure, responds with
SdkError<UpdateNotebookError>
source§impl Client
impl Client
sourcepub fn update_notebook_metadata(&self) -> UpdateNotebookMetadataFluentBuilder
pub fn update_notebook_metadata(&self) -> UpdateNotebookMetadataFluentBuilder
Constructs a fluent builder for the UpdateNotebookMetadata operation.
- The fluent builder is configurable:
notebook_id(impl Into<String>)/set_notebook_id(Option<String>):
required: trueThe ID of the notebook to update the metadata for.
client_request_token(impl Into<String>)/set_client_request_token(Option<String>):
required: falseA unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).
This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name to update the notebook to.
- On success, responds with
UpdateNotebookMetadataOutput - On failure, responds with
SdkError<UpdateNotebookMetadataError>
source§impl Client
impl Client
sourcepub fn update_prepared_statement(&self) -> UpdatePreparedStatementFluentBuilder
pub fn update_prepared_statement(&self) -> UpdatePreparedStatementFluentBuilder
Constructs a fluent builder for the UpdatePreparedStatement operation.
- The fluent builder is configurable:
statement_name(impl Into<String>)/set_statement_name(Option<String>):
required: trueThe name of the prepared statement.
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe workgroup for the prepared statement.
query_statement(impl Into<String>)/set_query_statement(Option<String>):
required: trueThe query string for the prepared statement.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe description of the prepared statement.
- On success, responds with
UpdatePreparedStatementOutput - On failure, responds with
SdkError<UpdatePreparedStatementError>
source§impl Client
impl Client
sourcepub fn update_work_group(&self) -> UpdateWorkGroupFluentBuilder
pub fn update_work_group(&self) -> UpdateWorkGroupFluentBuilder
Constructs a fluent builder for the UpdateWorkGroup operation.
- The fluent builder is configurable:
work_group(impl Into<String>)/set_work_group(Option<String>):
required: trueThe specified workgroup that will be updated.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe workgroup description.
configuration_updates(WorkGroupConfigurationUpdates)/set_configuration_updates(Option<WorkGroupConfigurationUpdates>):
required: falseContains configuration updates for an Athena SQL workgroup.
state(WorkGroupState)/set_state(Option<WorkGroupState>):
required: falseThe workgroup state that will be updated for the given workgroup.
- On success, responds with
UpdateWorkGroupOutput - On failure, responds with
SdkError<UpdateWorkGroupError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.