Removes a specified crawler from the Glue Data Catalog, unless the crawler state is RUNNING.
Parameters:
-
name
(NameString)
–
The name of the crawler to remove.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def delete_crawler(
self,
name: "capo_glue.types.name_string.NameString",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.delete_crawler_response.DeleteCrawlerResponse":
"""<p>Removes a specified crawler from the Glue Data Catalog, unless the crawler state is <code>RUNNING</code>.</p>
Args:
name: <p>The name of the crawler to remove.</p>
Raises:
capo_glue.errors.crawler_running_exception.CrawlerRunningException: <p>The operation cannot be performed because the crawler is already running.</p>
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.scheduler_transitioning_exception.SchedulerTransitioningException: <p>The specified scheduler is transitioning.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_glue.types.delete_crawler_request.DeleteCrawlerRequest]",
) -> OperationResponse[
"capo_glue.types.delete_crawler_response.DeleteCrawlerResponse"
]:
import capo_glue._operations.aws_glue.delete_crawler
output, http_response = (
capo_glue._operations.aws_glue.delete_crawler.delete_crawler(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteCrawler")
)
input_: capo_glue.types.delete_crawler_request.DeleteCrawlerRequest = {
"name": name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|