Skip to content

delete_live_source

delete_live_source(
    live_source_name: __string,
    source_location_name: __string,
    *,
    config_overrides: Optional[MediaTailorClientConfig] = 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/media_tailor.py
def delete_live_source(
    self,
    live_source_name: "capo_mediatailor.types.__string.__string",
    source_location_name: "capo_mediatailor.types.__string.__string",
    *,
    config_overrides: Optional[MediaTailorClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_mediatailor.types.delete_live_source_request.DeleteLiveSourceRequest]",
    ) -> OperationResponse[
        "capo_mediatailor.types.delete_live_source_response.DeleteLiveSourceResponse"
    ]:
        import capo_mediatailor._operations.media_tailor.delete_live_source

        output, http_response = (
            capo_mediatailor._operations.media_tailor.delete_live_source.delete_live_source(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output