Skip to content

stop_materialized_view_refresh_task_run async

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

Stops a materialized view refresh task run for a specified materialized view.

Parameters:

  • catalog_id (CatalogIdString) –

    The ID of the Data Catalog where the table reside. If none is supplied, the account ID is used by default.

  • database_name (NameString) –

    The name of the database where the table resides.

  • table_name (NameString) –

    The name of the materialized view.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def stop_materialized_view_refresh_task_run(
    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",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.stop_materialized_view_refresh_task_run_response.StopMaterializedViewRefreshTaskRunResponse":
    """<p>Stops a materialized view refresh task run for a specified materialized view.</p>

    Args:
        catalog_id: <p>The ID of the Data Catalog where the table reside. If none is supplied, the account ID is used by default.</p>
        database_name: <p>The name of the database where the table resides.</p>
        table_name: <p>The name of the materialized view.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.materialized_view_refresh_task_not_running_exception.MaterializedViewRefreshTaskNotRunningException: <p>Exception thrown when stopping a task that is not in running state.</p>
        capo_glue.errors.materialized_view_refresh_task_stopping_exception.MaterializedViewRefreshTaskStoppingException: <p>Exception thrown when a task is already in stopping state.</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.stop_materialized_view_refresh_task_run_request.StopMaterializedViewRefreshTaskRunRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.stop_materialized_view_refresh_task_run_response.StopMaterializedViewRefreshTaskRunResponse"
    ]:
        import capo_glue._operations.aws_glue.stop_materialized_view_refresh_task_run

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopMaterializedViewRefreshTaskRun")
    )
    input_: capo_glue.types.stop_materialized_view_refresh_task_run_request.StopMaterializedViewRefreshTaskRunRequest = {
        "catalog_id": catalog_id,
        "database_name": database_name,
        "table_name": table_name,
    }

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