Skip to content

delete_table_optimizer

delete_table_optimizer(
    catalog_id: CatalogIdString,
    database_name: NameString,
    table_name: NameString,
    type: TableOptimizerType,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
) -> DeleteTableOptimizerResponse

Deletes an optimizer and all associated metadata for a table. The optimization will no longer be performed on the table.

Parameters:

  • catalog_id (CatalogIdString) –

    The Catalog ID of the table.

  • database_name (NameString) –

    The name of the database in the catalog in which the table resides.

  • table_name (NameString) –

    The name of the table.

  • type (TableOptimizerType) –

    The type of table optimizer.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def delete_table_optimizer(
    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[GlueClientConfig] = None,
) -> "capo_glue.types.delete_table_optimizer_response.DeleteTableOptimizerResponse":
    """<p>Deletes an optimizer and all associated metadata for a table. The optimization will no longer be performed on the 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>

    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.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.delete_table_optimizer_request.DeleteTableOptimizerRequest]",
    ) -> OperationResponse[
        "capo_glue.types.delete_table_optimizer_response.DeleteTableOptimizerResponse"
    ]:
        import capo_glue._operations.aws_glue.delete_table_optimizer

        output, http_response = (
            capo_glue._operations.aws_glue.delete_table_optimizer.delete_table_optimizer(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteTableOptimizer")
    )
    input_: capo_glue.types.delete_table_optimizer_request.DeleteTableOptimizerRequest = {
        "catalog_id": catalog_id,
        "database_name": database_name,
        "table_name": table_name,
        "type": type,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output