Returns a list of resource metadata for a given list of workflow names. After calling the ListWorkflows operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.
Parameters:
-
names
(WorkflowNames)
–
A list of workflow names, which may be the names returned from the ListWorkflows operation.
-
include_graph
(Optional[NullableBoolean], default:
None
)
–
Specifies whether to include a graph when returning the workflow resource metadata.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def batch_get_workflows(
self,
names: "capo_glue.types.workflow_names.WorkflowNames",
*,
config_overrides: Optional[GlueClientConfig] = None,
include_graph: Optional[
"capo_glue.types.nullable_boolean.NullableBoolean"
] = None,
) -> "capo_glue.types.batch_get_workflows_response.BatchGetWorkflowsResponse":
"""<p>Returns a list of resource metadata for a given list of workflow names. After calling the <code>ListWorkflows</code> operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.</p>
Args:
names: <p>A list of workflow names, which may be the names returned from the <code>ListWorkflows</code> operation.</p>
include_graph: <p>Specifies whether to include a graph when returning the workflow resource metadata.</p>
Raises:
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.batch_get_workflows_request.BatchGetWorkflowsRequest]",
) -> OperationResponse[
"capo_glue.types.batch_get_workflows_response.BatchGetWorkflowsResponse"
]:
import capo_glue._operations.aws_glue.batch_get_workflows
output, http_response = (
capo_glue._operations.aws_glue.batch_get_workflows.batch_get_workflows(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchGetWorkflows")
)
input_: capo_glue.types.batch_get_workflows_request.BatchGetWorkflowsRequest = {
"names": names
}
if include_graph is not None:
input_["include_graph"] = include_graph
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|