Skip to content

batch_get_workflows async

batch_get_workflows(
    names: WorkflowNames,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    include_graph: Optional[NullableBoolean] = None,
) -> BatchGetWorkflowsResponse

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/async_glue.py
async def batch_get_workflows(
    self,
    names: "capo_glue.types.workflow_names.WorkflowNames",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.batch_get_workflows_request.BatchGetWorkflowsRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.batch_get_workflows_response.BatchGetWorkflowsResponse"
    ]:
        import capo_glue._operations.aws_glue.batch_get_workflows

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.batch_get_workflows.async_batch_get_workflows(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output