Sets the schedule state of the specified crawler to NOT_SCHEDULED, but does not stop the crawler if it is already running.
Parameters:
-
crawler_name
(NameString)
–
Name of the crawler whose schedule state to set.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def stop_crawler_schedule(
self,
crawler_name: "capo_glue.types.name_string.NameString",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.stop_crawler_schedule_response.StopCrawlerScheduleResponse":
"""<p>Sets the schedule state of the specified crawler to <code>NOT_SCHEDULED</code>, but does not stop the crawler if it is already running.</p>
Args:
crawler_name: <p>Name of the crawler whose schedule state to set.</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.scheduler_not_running_exception.SchedulerNotRunningException: <p>The specified scheduler is not running.</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.stop_crawler_schedule_request.StopCrawlerScheduleRequest]",
) -> OperationResponse[
"capo_glue.types.stop_crawler_schedule_response.StopCrawlerScheduleResponse"
]:
import capo_glue._operations.aws_glue.stop_crawler_schedule
output, http_response = (
capo_glue._operations.aws_glue.stop_crawler_schedule.stop_crawler_schedule(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StopCrawlerSchedule")
)
input_: capo_glue.types.stop_crawler_schedule_request.StopCrawlerScheduleRequest = {
"crawler_name": crawler_name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|