Skip to content

batch_get_crawlers async

batch_get_crawlers(
    crawler_names: CrawlerNameList,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> BatchGetCrawlersResponse

Returns a list of resource metadata for a given list of crawler names. After calling the ListCrawlers 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:

  • crawler_names (CrawlerNameList) –

    A list of crawler names, which might be the names returned from the ListCrawlers operation.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def batch_get_crawlers(
    self,
    crawler_names: "capo_glue.types.crawler_name_list.CrawlerNameList",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.batch_get_crawlers_response.BatchGetCrawlersResponse":
    """<p>Returns a list of resource metadata for a given list of crawler names. After calling the <code>ListCrawlers</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:
        crawler_names: <p>A list of crawler names, which might be the names returned from the <code>ListCrawlers</code> operation.</p>

    Raises:
        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_crawlers_request.BatchGetCrawlersRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.batch_get_crawlers_response.BatchGetCrawlersResponse"
    ]:
        import capo_glue._operations.aws_glue.batch_get_crawlers

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetCrawlers")
    )
    input_: capo_glue.types.batch_get_crawlers_request.BatchGetCrawlersRequest = {
        "crawler_names": crawler_names
    }

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