Skip to content

batch_get_crawlers

batch_get_crawlers(
    crawler_names: CrawlerNameList,
    *,
    config_overrides: Optional[GlueClientConfig] = 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/glue.py
def batch_get_crawlers(
    self,
    crawler_names: "capo_glue.types.crawler_name_list.CrawlerNameList",
    *,
    config_overrides: Optional[GlueClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.batch_get_crawlers_request.BatchGetCrawlersRequest]",
    ) -> OperationResponse[
        "capo_glue.types.batch_get_crawlers_response.BatchGetCrawlersResponse"
    ]:
        import capo_glue._operations.aws_glue.batch_get_crawlers

        output, http_response = (
            capo_glue._operations.aws_glue.batch_get_crawlers.batch_get_crawlers(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output