Skip to content

describe_live_source async

describe_live_source(
    live_source_name: __string,
    source_location_name: __string,
    *,
    config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
) -> DescribeLiveSourceResponse

The live source to describe.

Parameters:

  • live_source_name (__string) –

    The name of the live source.

  • source_location_name (__string) –

    The name of the source location associated with this Live Source.

Raises:

Source code in docs_src/capo_mediatailor/_services/async_media_tailor.py
async def describe_live_source(
    self,
    live_source_name: "capo_mediatailor.types.__string.__string",
    source_location_name: "capo_mediatailor.types.__string.__string",
    *,
    config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
) -> "capo_mediatailor.types.describe_live_source_response.DescribeLiveSourceResponse":
    """<p>The live source to describe.</p>

    Args:
        live_source_name: <p>The name of the live source.</p>
        source_location_name: <p>The name of the source location associated with this Live Source.</p>

    Raises:
        capo_mediatailor.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_mediatailor.types.describe_live_source_request.DescribeLiveSourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_mediatailor.types.describe_live_source_response.DescribeLiveSourceResponse"
    ]:
        import capo_mediatailor._operations.media_tailor.describe_live_source

        (
            output,
            http_response,
        ) = await capo_mediatailor._operations.media_tailor.describe_live_source.async_describe_live_source(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeLiveSource")
    )
    input_: capo_mediatailor.types.describe_live_source_request.DescribeLiveSourceRequest = {
        "live_source_name": live_source_name,
        "source_location_name": source_location_name,
    }

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