Get the associated metadata/information for a task run, given a task run ID.
Parameters:
-
catalog_id
(CatalogIdString)
–
The ID of the Data Catalog where the table resides. If none is supplied, the account ID is used by default.
-
materialized_view_refresh_task_run_id
(UUIDv4)
–
The identifier for the particular materialized view refresh task run.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def get_materialized_view_refresh_task_run(
self,
catalog_id: "capo_glue.types.catalog_id_string.CatalogIdString",
materialized_view_refresh_task_run_id: "capo_glue.types.uui_dv4.UUIDv4",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.get_materialized_view_refresh_task_run_response.GetMaterializedViewRefreshTaskRunResponse":
"""<p>Get the associated metadata/information for a task run, given a task run ID.</p>
Args:
catalog_id: <p>The ID of the Data Catalog where the table resides. If none is supplied, the account ID is used by default.</p>
materialized_view_refresh_task_run_id: <p>The identifier for the particular materialized view refresh task run.</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.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.
"""
def _handler(
req: "OperationRequest[capo_glue.types.get_materialized_view_refresh_task_run_request.GetMaterializedViewRefreshTaskRunRequest]",
) -> OperationResponse[
"capo_glue.types.get_materialized_view_refresh_task_run_response.GetMaterializedViewRefreshTaskRunResponse"
]:
import capo_glue._operations.aws_glue.get_materialized_view_refresh_task_run
output, http_response = (
capo_glue._operations.aws_glue.get_materialized_view_refresh_task_run.get_materialized_view_refresh_task_run(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetMaterializedViewRefreshTaskRun")
)
input_: capo_glue.types.get_materialized_view_refresh_task_run_request.GetMaterializedViewRefreshTaskRunRequest = {
"catalog_id": catalog_id,
"materialized_view_refresh_task_run_id": materialized_view_refresh_task_run_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|