Skip to content

delete_column_statistics_task_settings async

delete_column_statistics_task_settings(
    database_name: NameString,
    table_name: NameString,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    catalog_id: Optional[CatalogIdString] = None,
) -> DeleteColumnStatisticsTaskSettingsResponse

Deletes settings for a column statistics task.

Parameters:

  • database_name (NameString) –

    The name of the database where the table resides.

  • table_name (NameString) –

    The name of the table for which to delete column statistics.

  • catalog_id (Optional[CatalogIdString], default: None ) –

    The ID of the Data Catalog where the table resides. If none is supplied, the Amazon Web Services account ID is used by default.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def delete_column_statistics_task_settings(
    self,
    database_name: "capo_glue.types.name_string.NameString",
    table_name: "capo_glue.types.name_string.NameString",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    catalog_id: Optional[
        "capo_glue.types.catalog_id_string.CatalogIdString"
    ] = None,
) -> "capo_glue.types.delete_column_statistics_task_settings_response.DeleteColumnStatisticsTaskSettingsResponse":
    """<p>Deletes settings for a column statistics task.</p>

    Args:
        database_name: <p>The name of the database where the table resides.</p>
        table_name: <p>The name of the table for which to delete column statistics.</p>
        catalog_id: <p>The ID of the Data Catalog where the table resides. If none is supplied, the Amazon Web Services account ID is used by default.</p>

    Raises:
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.delete_column_statistics_task_settings_request.DeleteColumnStatisticsTaskSettingsRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.delete_column_statistics_task_settings_response.DeleteColumnStatisticsTaskSettingsResponse"
    ]:
        import capo_glue._operations.aws_glue.delete_column_statistics_task_settings

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteColumnStatisticsTaskSettings")
    )
    input_: capo_glue.types.delete_column_statistics_task_settings_request.DeleteColumnStatisticsTaskSettingsRequest = {
        "database_name": database_name,
        "table_name": table_name,
    }
    if catalog_id is not None:
        input_["catalog_id"] = catalog_id

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