Skip to content

delete_schedule

delete_schedule(
    name: ScheduleName, *, config_overrides: Optional[DataBrewClientConfig] = None
) -> DeleteScheduleResponse

Deletes the specified DataBrew schedule.

Parameters:

  • name (ScheduleName) –

    The name of the schedule to be deleted.

Raises:

Source code in docs_src/capo_databrew/_services/data_brew.py
def delete_schedule(
    self,
    name: "capo_databrew.types.schedule_name.ScheduleName",
    *,
    config_overrides: Optional[DataBrewClientConfig] = None,
) -> "capo_databrew.types.delete_schedule_response.DeleteScheduleResponse":
    """<p>Deletes the specified DataBrew schedule.</p>

    Args:
        name: <p>The name of the schedule to be deleted.</p>

    Raises:
        capo_databrew.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
        capo_databrew.errors.validation_exception.ValidationException: <p>The input parameters for this request failed validation.</p>
        capo_databrew.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_databrew.types.delete_schedule_request.DeleteScheduleRequest]",
    ) -> OperationResponse[
        "capo_databrew.types.delete_schedule_response.DeleteScheduleResponse"
    ]:
        import capo_databrew._operations.aws_glue_data_brew.delete_schedule

        output, http_response = (
            capo_databrew._operations.aws_glue_data_brew.delete_schedule.delete_schedule(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteSchedule")
    )
    input_: capo_databrew.types.delete_schedule_request.DeleteScheduleRequest = {
        "name": name
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output