Retrieves metadata for a specified crawler.
Parameters:
-
name
(NameString)
–
The name of the crawler to retrieve metadata for.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def get_crawler(
self,
name: "capo_glue.types.name_string.NameString",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.get_crawler_response.GetCrawlerResponse":
"""<p>Retrieves metadata for a specified crawler.</p>
Args:
name: <p>The name of the crawler to retrieve metadata for.</p>
Raises:
capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</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_crawler_request.GetCrawlerRequest]",
) -> OperationResponse[
"capo_glue.types.get_crawler_response.GetCrawlerResponse"
]:
import capo_glue._operations.aws_glue.get_crawler
output, http_response = (
capo_glue._operations.aws_glue.get_crawler.get_crawler(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetCrawler")
)
input_: capo_glue.types.get_crawler_request.GetCrawlerRequest = {"name": name}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|