Skip to content

describe_schedule async

describe_schedule(
    name: ScheduleName, *, config_overrides: Optional[AsyncDataBrewClientConfig] = None
) -> DescribeScheduleResponse

Returns the definition of a specific DataBrew schedule.

Parameters:

  • name (ScheduleName) –

    The name of the schedule to be described.

Raises:

Source code in docs_src/capo_databrew/_services/async_data_brew.py
async def describe_schedule(
    self,
    name: "capo_databrew.types.schedule_name.ScheduleName",
    *,
    config_overrides: Optional[AsyncDataBrewClientConfig] = None,
) -> "capo_databrew.types.describe_schedule_response.DescribeScheduleResponse":
    """<p>Returns the definition of a specific DataBrew schedule.</p>

    Args:
        name: <p>The name of the schedule to be described.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_databrew.types.describe_schedule_request.DescribeScheduleRequest]",
    ) -> AsyncOperationResponse[
        "capo_databrew.types.describe_schedule_response.DescribeScheduleResponse"
    ]:
        import capo_databrew._operations.aws_glue_data_brew.describe_schedule

        (
            output,
            http_response,
        ) = await capo_databrew._operations.aws_glue_data_brew.describe_schedule.async_describe_schedule(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeSchedule")
    )
    input_: capo_databrew.types.describe_schedule_request.DescribeScheduleRequest = {
        "name": name
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output