Skip to content

list_table_optimizer_runs async

list_table_optimizer_runs(
    catalog_id: CatalogIdString,
    database_name: NameString,
    table_name: NameString,
    type: TableOptimizerType,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    max_results: Optional[MaxListTableOptimizerRunsTokenResults] = None,
    next_token: Optional[ListTableOptimizerRunsToken] = None,
) -> ListTableOptimizerRunsResponse

Lists the history of previous optimizer runs for a specific table.

Parameters:

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def list_table_optimizer_runs(
    self,
    catalog_id: "capo_glue.types.catalog_id_string.CatalogIdString",
    database_name: "capo_glue.types.name_string.NameString",
    table_name: "capo_glue.types.name_string.NameString",
    type: "capo_glue.types.table_optimizer_type.TableOptimizerType",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    max_results: Optional[
        "capo_glue.types.max_list_table_optimizer_runs_token_results.MaxListTableOptimizerRunsTokenResults"
    ] = None,
    next_token: Optional[
        "capo_glue.types.list_table_optimizer_runs_token.ListTableOptimizerRunsToken"
    ] = None,
) -> "capo_glue.types.list_table_optimizer_runs_response.ListTableOptimizerRunsResponse":
    """<p>Lists the history of previous optimizer runs for a specific table.</p>

    Args:
        catalog_id: <p>The Catalog ID of the table.</p>
        database_name: <p>The name of the database in the catalog in which the table resides.</p>
        table_name: <p>The name of the table.</p>
        type: <p>The type of table optimizer.</p>
        max_results: <p>The maximum number of optimizer runs to return on each call.</p>
        next_token: <p>A continuation token, if this is a continuation call.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.throttling_exception.ThrottlingException: <p>The throttling threshhold was exceeded.</p>
        capo_glue.errors.validation_exception.ValidationException: <p>A value could not be validated.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.list_table_optimizer_runs_request.ListTableOptimizerRunsRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.list_table_optimizer_runs_response.ListTableOptimizerRunsResponse"
    ]:
        import capo_glue._operations.aws_glue.list_table_optimizer_runs

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.list_table_optimizer_runs.async_list_table_optimizer_runs(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListTableOptimizerRuns")
    )
    input_: capo_glue.types.list_table_optimizer_runs_request.ListTableOptimizerRunsRequest = {
        "catalog_id": catalog_id,
        "database_name": database_name,
        "table_name": table_name,
        "type": type,
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output