[][src]Struct rusoto_athena::AthenaClient

pub struct AthenaClient { /* fields omitted */ }

A client for the Amazon Athena API.

Methods

impl AthenaClient[src]

pub fn new(region: Region) -> AthenaClient[src]

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

pub fn new_with<P, D>(
    request_dispatcher: D,
    credentials_provider: P,
    region: Region
) -> AthenaClient where
    P: ProvideAwsCredentials + Send + Sync + 'static,
    D: DispatchSignedRequest + Send + Sync + 'static, 
[src]

pub fn new_with_client(client: Client, region: Region) -> AthenaClient[src]

Trait Implementations

impl Athena for AthenaClient[src]

fn batch_get_named_query<'life0, 'async_trait>(
    &'life0 self,
    input: BatchGetNamedQueryInput
) -> Pin<Box<dyn Future<Output = Result<BatchGetNamedQueryOutput, RusotoError<BatchGetNamedQueryError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

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.

fn batch_get_query_execution<'life0, 'async_trait>(
    &'life0 self,
    input: BatchGetQueryExecutionInput
) -> Pin<Box<dyn Future<Output = Result<BatchGetQueryExecutionOutput, RusotoError<BatchGetQueryExecutionError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

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.

fn create_named_query<'life0, 'async_trait>(
    &'life0 self,
    input: CreateNamedQueryInput
) -> Pin<Box<dyn Future<Output = Result<CreateNamedQueryOutput, RusotoError<CreateNamedQueryError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a named query in the specified workgroup. Requires that you have access to the workgroup.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

fn create_work_group<'life0, 'async_trait>(
    &'life0 self,
    input: CreateWorkGroupInput
) -> Pin<Box<dyn Future<Output = Result<CreateWorkGroupOutput, RusotoError<CreateWorkGroupError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a workgroup with the specified name.

fn delete_named_query<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteNamedQueryInput
) -> Pin<Box<dyn Future<Output = Result<DeleteNamedQueryOutput, RusotoError<DeleteNamedQueryError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the named query if you have access to the workgroup in which the query was saved.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

fn delete_work_group<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteWorkGroupInput
) -> Pin<Box<dyn Future<Output = Result<DeleteWorkGroupOutput, RusotoError<DeleteWorkGroupError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the workgroup with the specified name. The primary workgroup cannot be deleted.

fn get_named_query<'life0, 'async_trait>(
    &'life0 self,
    input: GetNamedQueryInput
) -> Pin<Box<dyn Future<Output = Result<GetNamedQueryOutput, RusotoError<GetNamedQueryError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns information about a single query. Requires that you have access to the workgroup in which the query was saved.

fn get_query_execution<'life0, 'async_trait>(
    &'life0 self,
    input: GetQueryExecutionInput
) -> Pin<Box<dyn Future<Output = Result<GetQueryExecutionOutput, RusotoError<GetQueryExecutionError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

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.

fn get_query_results<'life0, 'async_trait>(
    &'life0 self,
    input: GetQueryResultsInput
) -> Pin<Box<dyn Future<Output = Result<GetQueryResultsOutput, RusotoError<GetQueryResultsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3. For more information, see Query Results 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.

fn get_work_group<'life0, 'async_trait>(
    &'life0 self,
    input: GetWorkGroupInput
) -> Pin<Box<dyn Future<Output = Result<GetWorkGroupOutput, RusotoError<GetWorkGroupError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns information about the workgroup with the specified name.

fn list_named_queries<'life0, 'async_trait>(
    &'life0 self,
    input: ListNamedQueriesInput
) -> Pin<Box<dyn Future<Output = Result<ListNamedQueriesOutput, RusotoError<ListNamedQueriesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the workgroup.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

fn list_query_executions<'life0, 'async_trait>(
    &'life0 self,
    input: ListQueryExecutionsInput
) -> Pin<Box<dyn Future<Output = Result<ListQueryExecutionsOutput, RusotoError<ListQueryExecutionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Provides a list of available query execution IDs for the queries in the specified workgroup. Requires you to have access to the workgroup in which the queries ran.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

fn list_tags_for_resource<'life0, 'async_trait>(
    &'life0 self,
    input: ListTagsForResourceInput
) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceOutput, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists the tags associated with this workgroup.

fn list_work_groups<'life0, 'async_trait>(
    &'life0 self,
    input: ListWorkGroupsInput
) -> Pin<Box<dyn Future<Output = Result<ListWorkGroupsOutput, RusotoError<ListWorkGroupsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists available workgroups for the account.

fn start_query_execution<'life0, 'async_trait>(
    &'life0 self,
    input: StartQueryExecutionInput
) -> Pin<Box<dyn Future<Output = Result<StartQueryExecutionOutput, RusotoError<StartQueryExecutionError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Runs the SQL query statements contained in the Query. Requires you to have access to the workgroup in which the query ran.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

fn stop_query_execution<'life0, 'async_trait>(
    &'life0 self,
    input: StopQueryExecutionInput
) -> Pin<Box<dyn Future<Output = Result<StopQueryExecutionOutput, RusotoError<StopQueryExecutionError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Stops a query execution. Requires you to have access to the workgroup in which the query ran.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

fn tag_resource<'life0, 'async_trait>(
    &'life0 self,
    input: TagResourceInput
) -> Pin<Box<dyn Future<Output = Result<TagResourceOutput, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Adds one or more tags to the resource, such as a workgroup. A tag is a label that you assign to an AWS Athena resource (a workgroup). Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize resources (workgroups) in Athena, for example, by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups in your account. For best practices, see AWS Tagging Strategies. The key length is from 1 (minimum) to 128 (maximum) Unicode characters in UTF-8. The tag value length is from 0 (minimum) to 256 (maximum) Unicode characters in UTF-8. You 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, separate them by commas.

fn untag_resource<'life0, 'async_trait>(
    &'life0 self,
    input: UntagResourceInput
) -> Pin<Box<dyn Future<Output = Result<UntagResourceOutput, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Removes one or more tags from the workgroup resource. Takes as an input a list of TagKey Strings separated by commas, and removes their tags at the same time.

fn update_work_group<'life0, 'async_trait>(
    &'life0 self,
    input: UpdateWorkGroupInput
) -> Pin<Box<dyn Future<Output = Result<UpdateWorkGroupOutput, RusotoError<UpdateWorkGroupError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Updates the workgroup with the specified name. The workgroup's name cannot be changed.

impl Clone for AthenaClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.