Skip to content

AthenaClient

Index > Athena > AthenaClient

Auto-generated documentation for Athena type annotations stubs module mypy-boto3-athena.

AthenaClient

Type annotations and code completion for boto3.client("athena"). boto3 documentation

Usage example
from boto3.session import Session
from mypy_boto3_athena.client import AthenaClient

def get_athena_client() -> AthenaClient:
    return Session().client("athena")

Exceptions

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("athena").exceptions structure.

Usage example
client = boto3.client("athena")

try:
    do_something(client)
except (
    client.ClientError,
    client.InternalServerException,
    client.InvalidRequestException,
    client.MetadataException,
    client.ResourceNotFoundException,
    client.TooManyRequestsException,
) as e:
    print(e)
Type checking example
from mypy_boto3_athena.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods

batch_get_named_query

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.

Type annotations and code completion for boto3.client("athena").batch_get_named_query method. boto3 documentation

Method definition
def batch_get_named_query(
    self,
    *,
    NamedQueryIds: Sequence[str],
) -> BatchGetNamedQueryOutputTypeDef:  # (1)
    ...
  1. See BatchGetNamedQueryOutputTypeDef
Usage example with kwargs
kwargs: BatchGetNamedQueryInputRequestTypeDef = {  # (1)
    "NamedQueryIds": ...,
}

parent.batch_get_named_query(**kwargs)
  1. See BatchGetNamedQueryInputRequestTypeDef

batch_get_prepared_statement

Returns the details of a single prepared statement or a list of up to 256 prepared statements for the array of prepared statement names that you provide.

Type annotations and code completion for boto3.client("athena").batch_get_prepared_statement method. boto3 documentation

Method definition
def batch_get_prepared_statement(
    self,
    *,
    PreparedStatementNames: Sequence[str],
    WorkGroup: str,
) -> BatchGetPreparedStatementOutputTypeDef:  # (1)
    ...
  1. See BatchGetPreparedStatementOutputTypeDef
Usage example with kwargs
kwargs: BatchGetPreparedStatementInputRequestTypeDef = {  # (1)
    "PreparedStatementNames": ...,
    "WorkGroup": ...,
}

parent.batch_get_prepared_statement(**kwargs)
  1. See BatchGetPreparedStatementInputRequestTypeDef

batch_get_query_execution

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.

Type annotations and code completion for boto3.client("athena").batch_get_query_execution method. boto3 documentation

Method definition
def batch_get_query_execution(
    self,
    *,
    QueryExecutionIds: Sequence[str],
) -> BatchGetQueryExecutionOutputTypeDef:  # (1)
    ...
  1. See BatchGetQueryExecutionOutputTypeDef
Usage example with kwargs
kwargs: BatchGetQueryExecutionInputRequestTypeDef = {  # (1)
    "QueryExecutionIds": ...,
}

parent.batch_get_query_execution(**kwargs)
  1. See BatchGetQueryExecutionInputRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("athena").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("athena").close method. boto3 documentation

Method definition
def close(
    self,
) -> None:
    ...

create_data_catalog

Creates (registers) a data catalog with the specified name and properties.

Type annotations and code completion for boto3.client("athena").create_data_catalog method. boto3 documentation

Method definition
def create_data_catalog(
    self,
    *,
    Name: str,
    Type: DataCatalogTypeType,  # (1)
    Description: str = ...,
    Parameters: Mapping[str, str] = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (2)
) -> Dict[str, Any]:
    ...
  1. See DataCatalogTypeType
  2. See TagTypeDef
Usage example with kwargs
kwargs: CreateDataCatalogInputRequestTypeDef = {  # (1)
    "Name": ...,
    "Type": ...,
}

parent.create_data_catalog(**kwargs)
  1. See CreateDataCatalogInputRequestTypeDef

create_named_query

Creates a named query in the specified workgroup.

Type annotations and code completion for boto3.client("athena").create_named_query method. boto3 documentation

Method definition
def create_named_query(
    self,
    *,
    Name: str,
    Database: str,
    QueryString: str,
    Description: str = ...,
    ClientRequestToken: str = ...,
    WorkGroup: str = ...,
) -> CreateNamedQueryOutputTypeDef:  # (1)
    ...
  1. See CreateNamedQueryOutputTypeDef
Usage example with kwargs
kwargs: CreateNamedQueryInputRequestTypeDef = {  # (1)
    "Name": ...,
    "Database": ...,
    "QueryString": ...,
}

parent.create_named_query(**kwargs)
  1. See CreateNamedQueryInputRequestTypeDef

create_prepared_statement

Creates a prepared statement for use with SQL queries in Athena.

Type annotations and code completion for boto3.client("athena").create_prepared_statement method. boto3 documentation

Method definition
def create_prepared_statement(
    self,
    *,
    StatementName: str,
    WorkGroup: str,
    QueryStatement: str,
    Description: str = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: CreatePreparedStatementInputRequestTypeDef = {  # (1)
    "StatementName": ...,
    "WorkGroup": ...,
    "QueryStatement": ...,
}

parent.create_prepared_statement(**kwargs)
  1. See CreatePreparedStatementInputRequestTypeDef

create_work_group

Creates a workgroup with the specified name.

Type annotations and code completion for boto3.client("athena").create_work_group method. boto3 documentation

Method definition
def create_work_group(
    self,
    *,
    Name: str,
    Configuration: WorkGroupConfigurationTypeDef = ...,  # (1)
    Description: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (2)
) -> Dict[str, Any]:
    ...
  1. See WorkGroupConfigurationTypeDef
  2. See TagTypeDef
Usage example with kwargs
kwargs: CreateWorkGroupInputRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.create_work_group(**kwargs)
  1. See CreateWorkGroupInputRequestTypeDef

delete_data_catalog

Deletes a data catalog.

Type annotations and code completion for boto3.client("athena").delete_data_catalog method. boto3 documentation

Method definition
def delete_data_catalog(
    self,
    *,
    Name: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteDataCatalogInputRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.delete_data_catalog(**kwargs)
  1. See DeleteDataCatalogInputRequestTypeDef

delete_named_query

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

Type annotations and code completion for boto3.client("athena").delete_named_query method. boto3 documentation

Method definition
def delete_named_query(
    self,
    *,
    NamedQueryId: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteNamedQueryInputRequestTypeDef = {  # (1)
    "NamedQueryId": ...,
}

parent.delete_named_query(**kwargs)
  1. See DeleteNamedQueryInputRequestTypeDef

delete_prepared_statement

Deletes the prepared statement with the specified name from the specified workgroup.

Type annotations and code completion for boto3.client("athena").delete_prepared_statement method. boto3 documentation

Method definition
def delete_prepared_statement(
    self,
    *,
    StatementName: str,
    WorkGroup: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeletePreparedStatementInputRequestTypeDef = {  # (1)
    "StatementName": ...,
    "WorkGroup": ...,
}

parent.delete_prepared_statement(**kwargs)
  1. See DeletePreparedStatementInputRequestTypeDef

delete_work_group

Deletes the workgroup with the specified name.

Type annotations and code completion for boto3.client("athena").delete_work_group method. boto3 documentation

Method definition
def delete_work_group(
    self,
    *,
    WorkGroup: str,
    RecursiveDeleteOption: bool = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteWorkGroupInputRequestTypeDef = {  # (1)
    "WorkGroup": ...,
}

parent.delete_work_group(**kwargs)
  1. See DeleteWorkGroupInputRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("athena").generate_presigned_url method. boto3 documentation

Method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_data_catalog

Returns the specified data catalog.

Type annotations and code completion for boto3.client("athena").get_data_catalog method. boto3 documentation

Method definition
def get_data_catalog(
    self,
    *,
    Name: str,
) -> GetDataCatalogOutputTypeDef:  # (1)
    ...
  1. See GetDataCatalogOutputTypeDef
Usage example with kwargs
kwargs: GetDataCatalogInputRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.get_data_catalog(**kwargs)
  1. See GetDataCatalogInputRequestTypeDef

get_database

Returns a database object for the specified database and data catalog.

Type annotations and code completion for boto3.client("athena").get_database method. boto3 documentation

Method definition
def get_database(
    self,
    *,
    CatalogName: str,
    DatabaseName: str,
) -> GetDatabaseOutputTypeDef:  # (1)
    ...
  1. See GetDatabaseOutputTypeDef
Usage example with kwargs
kwargs: GetDatabaseInputRequestTypeDef = {  # (1)
    "CatalogName": ...,
    "DatabaseName": ...,
}

parent.get_database(**kwargs)
  1. See GetDatabaseInputRequestTypeDef

get_named_query

Returns information about a single query.

Type annotations and code completion for boto3.client("athena").get_named_query method. boto3 documentation

Method definition
def get_named_query(
    self,
    *,
    NamedQueryId: str,
) -> GetNamedQueryOutputTypeDef:  # (1)
    ...
  1. See GetNamedQueryOutputTypeDef
Usage example with kwargs
kwargs: GetNamedQueryInputRequestTypeDef = {  # (1)
    "NamedQueryId": ...,
}

parent.get_named_query(**kwargs)
  1. See GetNamedQueryInputRequestTypeDef

get_prepared_statement

Retrieves the prepared statement with the specified name from the specified workgroup.

Type annotations and code completion for boto3.client("athena").get_prepared_statement method. boto3 documentation

Method definition
def get_prepared_statement(
    self,
    *,
    StatementName: str,
    WorkGroup: str,
) -> GetPreparedStatementOutputTypeDef:  # (1)
    ...
  1. See GetPreparedStatementOutputTypeDef
Usage example with kwargs
kwargs: GetPreparedStatementInputRequestTypeDef = {  # (1)
    "StatementName": ...,
    "WorkGroup": ...,
}

parent.get_prepared_statement(**kwargs)
  1. See GetPreparedStatementInputRequestTypeDef

get_query_execution

Returns information about a single execution of a query if you have access to the workgroup in which the query ran.

Type annotations and code completion for boto3.client("athena").get_query_execution method. boto3 documentation

Method definition
def get_query_execution(
    self,
    *,
    QueryExecutionId: str,
) -> GetQueryExecutionOutputTypeDef:  # (1)
    ...
  1. See GetQueryExecutionOutputTypeDef
Usage example with kwargs
kwargs: GetQueryExecutionInputRequestTypeDef = {  # (1)
    "QueryExecutionId": ...,
}

parent.get_query_execution(**kwargs)
  1. See GetQueryExecutionInputRequestTypeDef

get_query_results

Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3.

Type annotations and code completion for boto3.client("athena").get_query_results method. boto3 documentation

Method definition
def get_query_results(
    self,
    *,
    QueryExecutionId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetQueryResultsOutputTypeDef:  # (1)
    ...
  1. See GetQueryResultsOutputTypeDef
Usage example with kwargs
kwargs: GetQueryResultsInputRequestTypeDef = {  # (1)
    "QueryExecutionId": ...,
}

parent.get_query_results(**kwargs)
  1. See GetQueryResultsInputRequestTypeDef

get_query_runtime_statistics

Returns query execution runtime statistics related to a single execution of a query if you have access to the workgroup in which the query ran.

Type annotations and code completion for boto3.client("athena").get_query_runtime_statistics method. boto3 documentation

Method definition
def get_query_runtime_statistics(
    self,
    *,
    QueryExecutionId: str,
) -> GetQueryRuntimeStatisticsOutputTypeDef:  # (1)
    ...
  1. See GetQueryRuntimeStatisticsOutputTypeDef
Usage example with kwargs
kwargs: GetQueryRuntimeStatisticsInputRequestTypeDef = {  # (1)
    "QueryExecutionId": ...,
}

parent.get_query_runtime_statistics(**kwargs)
  1. See GetQueryRuntimeStatisticsInputRequestTypeDef

get_table_metadata

Returns table metadata for the specified catalog, database, and table.

Type annotations and code completion for boto3.client("athena").get_table_metadata method. boto3 documentation

Method definition
def get_table_metadata(
    self,
    *,
    CatalogName: str,
    DatabaseName: str,
    TableName: str,
) -> GetTableMetadataOutputTypeDef:  # (1)
    ...
  1. See GetTableMetadataOutputTypeDef
Usage example with kwargs
kwargs: GetTableMetadataInputRequestTypeDef = {  # (1)
    "CatalogName": ...,
    "DatabaseName": ...,
    "TableName": ...,
}

parent.get_table_metadata(**kwargs)
  1. See GetTableMetadataInputRequestTypeDef

get_work_group

Returns information about the workgroup with the specified name.

Type annotations and code completion for boto3.client("athena").get_work_group method. boto3 documentation

Method definition
def get_work_group(
    self,
    *,
    WorkGroup: str,
) -> GetWorkGroupOutputTypeDef:  # (1)
    ...
  1. See GetWorkGroupOutputTypeDef
Usage example with kwargs
kwargs: GetWorkGroupInputRequestTypeDef = {  # (1)
    "WorkGroup": ...,
}

parent.get_work_group(**kwargs)
  1. See GetWorkGroupInputRequestTypeDef

list_data_catalogs

Lists the data catalogs in the current Amazon Web Services account.

Type annotations and code completion for boto3.client("athena").list_data_catalogs method. boto3 documentation

Method definition
def list_data_catalogs(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListDataCatalogsOutputTypeDef:  # (1)
    ...
  1. See ListDataCatalogsOutputTypeDef
Usage example with kwargs
kwargs: ListDataCatalogsInputRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_data_catalogs(**kwargs)
  1. See ListDataCatalogsInputRequestTypeDef

list_databases

Lists the databases in the specified data catalog.

Type annotations and code completion for boto3.client("athena").list_databases method. boto3 documentation

Method definition
def list_databases(
    self,
    *,
    CatalogName: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListDatabasesOutputTypeDef:  # (1)
    ...
  1. See ListDatabasesOutputTypeDef
Usage example with kwargs
kwargs: ListDatabasesInputRequestTypeDef = {  # (1)
    "CatalogName": ...,
}

parent.list_databases(**kwargs)
  1. See ListDatabasesInputRequestTypeDef

list_engine_versions

Returns a list of engine versions that are available to choose from, including the Auto option.

Type annotations and code completion for boto3.client("athena").list_engine_versions method. boto3 documentation

Method definition
def list_engine_versions(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListEngineVersionsOutputTypeDef:  # (1)
    ...
  1. See ListEngineVersionsOutputTypeDef
Usage example with kwargs
kwargs: ListEngineVersionsInputRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_engine_versions(**kwargs)
  1. See ListEngineVersionsInputRequestTypeDef

list_named_queries

Provides a list of available query IDs only for queries saved in the specified workgroup.

Type annotations and code completion for boto3.client("athena").list_named_queries method. boto3 documentation

Method definition
def list_named_queries(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    WorkGroup: str = ...,
) -> ListNamedQueriesOutputTypeDef:  # (1)
    ...
  1. See ListNamedQueriesOutputTypeDef
Usage example with kwargs
kwargs: ListNamedQueriesInputRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_named_queries(**kwargs)
  1. See ListNamedQueriesInputRequestTypeDef

list_prepared_statements

Lists the prepared statements in the specified workgroup.

Type annotations and code completion for boto3.client("athena").list_prepared_statements method. boto3 documentation

Method definition
def list_prepared_statements(
    self,
    *,
    WorkGroup: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListPreparedStatementsOutputTypeDef:  # (1)
    ...
  1. See ListPreparedStatementsOutputTypeDef
Usage example with kwargs
kwargs: ListPreparedStatementsInputRequestTypeDef = {  # (1)
    "WorkGroup": ...,
}

parent.list_prepared_statements(**kwargs)
  1. See ListPreparedStatementsInputRequestTypeDef

list_query_executions

Provides a list of available query execution IDs for the queries in the specified workgroup.

Type annotations and code completion for boto3.client("athena").list_query_executions method. boto3 documentation

Method definition
def list_query_executions(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    WorkGroup: str = ...,
) -> ListQueryExecutionsOutputTypeDef:  # (1)
    ...
  1. See ListQueryExecutionsOutputTypeDef
Usage example with kwargs
kwargs: ListQueryExecutionsInputRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_query_executions(**kwargs)
  1. See ListQueryExecutionsInputRequestTypeDef

list_table_metadata

Lists the metadata for the tables in the specified data catalog database.

Type annotations and code completion for boto3.client("athena").list_table_metadata method. boto3 documentation

Method definition
def list_table_metadata(
    self,
    *,
    CatalogName: str,
    DatabaseName: str,
    Expression: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListTableMetadataOutputTypeDef:  # (1)
    ...
  1. See ListTableMetadataOutputTypeDef
Usage example with kwargs
kwargs: ListTableMetadataInputRequestTypeDef = {  # (1)
    "CatalogName": ...,
    "DatabaseName": ...,
}

parent.list_table_metadata(**kwargs)
  1. See ListTableMetadataInputRequestTypeDef

list_tags_for_resource

Lists the tags associated with an Athena workgroup or data catalog resource.

Type annotations and code completion for boto3.client("athena").list_tags_for_resource method. boto3 documentation

Method definition
def list_tags_for_resource(
    self,
    *,
    ResourceARN: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListTagsForResourceOutputTypeDef:  # (1)
    ...
  1. See ListTagsForResourceOutputTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceInputRequestTypeDef = {  # (1)
    "ResourceARN": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceInputRequestTypeDef

list_work_groups

Lists available workgroups for the account.

Type annotations and code completion for boto3.client("athena").list_work_groups method. boto3 documentation

Method definition
def list_work_groups(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListWorkGroupsOutputTypeDef:  # (1)
    ...
  1. See ListWorkGroupsOutputTypeDef
Usage example with kwargs
kwargs: ListWorkGroupsInputRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_work_groups(**kwargs)
  1. See ListWorkGroupsInputRequestTypeDef

start_query_execution

Runs the SQL query statements contained in the Query.

Type annotations and code completion for boto3.client("athena").start_query_execution method. boto3 documentation

Method definition
def start_query_execution(
    self,
    *,
    QueryString: str,
    ClientRequestToken: str = ...,
    QueryExecutionContext: QueryExecutionContextTypeDef = ...,  # (1)
    ResultConfiguration: ResultConfigurationTypeDef = ...,  # (2)
    WorkGroup: str = ...,
    ExecutionParameters: Sequence[str] = ...,
) -> StartQueryExecutionOutputTypeDef:  # (3)
    ...
  1. See QueryExecutionContextTypeDef
  2. See ResultConfigurationTypeDef
  3. See StartQueryExecutionOutputTypeDef
Usage example with kwargs
kwargs: StartQueryExecutionInputRequestTypeDef = {  # (1)
    "QueryString": ...,
}

parent.start_query_execution(**kwargs)
  1. See StartQueryExecutionInputRequestTypeDef

stop_query_execution

Stops a query execution.

Type annotations and code completion for boto3.client("athena").stop_query_execution method. boto3 documentation

Method definition
def stop_query_execution(
    self,
    *,
    QueryExecutionId: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: StopQueryExecutionInputRequestTypeDef = {  # (1)
    "QueryExecutionId": ...,
}

parent.stop_query_execution(**kwargs)
  1. See StopQueryExecutionInputRequestTypeDef

tag_resource

Adds one or more tags to an Athena resource.

Type annotations and code completion for boto3.client("athena").tag_resource method. boto3 documentation

Method definition
def tag_resource(
    self,
    *,
    ResourceARN: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: TagResourceInputRequestTypeDef = {  # (1)
    "ResourceARN": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceInputRequestTypeDef

untag_resource

Removes one or more tags from a data catalog or workgroup resource.

Type annotations and code completion for boto3.client("athena").untag_resource method. boto3 documentation

Method definition
def untag_resource(
    self,
    *,
    ResourceARN: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceInputRequestTypeDef = {  # (1)
    "ResourceARN": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceInputRequestTypeDef

update_data_catalog

Updates the data catalog that has the specified name.

Type annotations and code completion for boto3.client("athena").update_data_catalog method. boto3 documentation

Method definition
def update_data_catalog(
    self,
    *,
    Name: str,
    Type: DataCatalogTypeType,  # (1)
    Description: str = ...,
    Parameters: Mapping[str, str] = ...,
) -> Dict[str, Any]:
    ...
  1. See DataCatalogTypeType
Usage example with kwargs
kwargs: UpdateDataCatalogInputRequestTypeDef = {  # (1)
    "Name": ...,
    "Type": ...,
}

parent.update_data_catalog(**kwargs)
  1. See UpdateDataCatalogInputRequestTypeDef

update_named_query

Updates a NamedQuery object.

Type annotations and code completion for boto3.client("athena").update_named_query method. boto3 documentation

Method definition
def update_named_query(
    self,
    *,
    NamedQueryId: str,
    Name: str,
    QueryString: str,
    Description: str = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UpdateNamedQueryInputRequestTypeDef = {  # (1)
    "NamedQueryId": ...,
    "Name": ...,
    "QueryString": ...,
}

parent.update_named_query(**kwargs)
  1. See UpdateNamedQueryInputRequestTypeDef

update_prepared_statement

Updates a prepared statement.

Type annotations and code completion for boto3.client("athena").update_prepared_statement method. boto3 documentation

Method definition
def update_prepared_statement(
    self,
    *,
    StatementName: str,
    WorkGroup: str,
    QueryStatement: str,
    Description: str = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UpdatePreparedStatementInputRequestTypeDef = {  # (1)
    "StatementName": ...,
    "WorkGroup": ...,
    "QueryStatement": ...,
}

parent.update_prepared_statement(**kwargs)
  1. See UpdatePreparedStatementInputRequestTypeDef

update_work_group

Updates the workgroup with the specified name.

Type annotations and code completion for boto3.client("athena").update_work_group method. boto3 documentation

Method definition
def update_work_group(
    self,
    *,
    WorkGroup: str,
    Description: str = ...,
    ConfigurationUpdates: WorkGroupConfigurationUpdatesTypeDef = ...,  # (1)
    State: WorkGroupStateType = ...,  # (2)
) -> Dict[str, Any]:
    ...
  1. See WorkGroupConfigurationUpdatesTypeDef
  2. See WorkGroupStateType
Usage example with kwargs
kwargs: UpdateWorkGroupInputRequestTypeDef = {  # (1)
    "WorkGroup": ...,
}

parent.update_work_group(**kwargs)
  1. See UpdateWorkGroupInputRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("athena").get_paginator method with overloads.