Retrieves the workflow run properties which were set during the run.
Parameters:
-
name
(NameString)
–
Name of the workflow which was run.
-
run_id
(IdString)
–
The ID of the workflow run whose run properties should be returned.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def get_workflow_run_properties(
self,
name: "capo_glue.types.name_string.NameString",
run_id: "capo_glue.types.id_string.IdString",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.get_workflow_run_properties_response.GetWorkflowRunPropertiesResponse":
"""<p>Retrieves the workflow run properties which were set during the run.</p>
Args:
name: <p>Name of the workflow which was run.</p>
run_id: <p>The ID of the workflow run whose run properties should be returned.</p>
Raises:
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.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_workflow_run_properties_request.GetWorkflowRunPropertiesRequest]",
) -> OperationResponse[
"capo_glue.types.get_workflow_run_properties_response.GetWorkflowRunPropertiesResponse"
]:
import capo_glue._operations.aws_glue.get_workflow_run_properties
output, http_response = (
capo_glue._operations.aws_glue.get_workflow_run_properties.get_workflow_run_properties(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetWorkflowRunProperties")
)
input_: capo_glue.types.get_workflow_run_properties_request.GetWorkflowRunPropertiesRequest = {
"name": name,
"run_id": run_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|