Skip to content

stop_crawler_schedule async

stop_crawler_schedule(
    crawler_name: NameString,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> StopCrawlerScheduleResponse

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/async_glue.py
async def stop_crawler_schedule(
    self,
    crawler_name: "capo_glue.types.name_string.NameString",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.stop_crawler_schedule_request.StopCrawlerScheduleRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.stop_crawler_schedule_response.StopCrawlerScheduleResponse"
    ]:
        import capo_glue._operations.aws_glue.stop_crawler_schedule

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.stop_crawler_schedule.async_stop_crawler_schedule(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output