Skip to content

delete_live_source async

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

The live source to delete.

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 delete_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.delete_live_source_response.DeleteLiveSourceResponse":
    """<p>The live source to delete.</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.delete_live_source_request.DeleteLiveSourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_mediatailor.types.delete_live_source_response.DeleteLiveSourceResponse"
    ]:
        import capo_mediatailor._operations.media_tailor.delete_live_source

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteLiveSource")
    )
    input_: capo_mediatailor.types.delete_live_source_request.DeleteLiveSourceRequest = {
        "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