Skip to content

delete_vod_source

delete_vod_source(
    source_location_name: __string,
    vod_source_name: __string,
    *,
    config_overrides: Optional[MediaTailorClientConfig] = None,
) -> DeleteVodSourceResponse

The video on demand (VOD) source to delete.

Parameters:

  • source_location_name (__string) –

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

  • vod_source_name (__string) –

    The name of the VOD source.

Raises:

Source code in docs_src/capo_mediatailor/_services/media_tailor.py
def delete_vod_source(
    self,
    source_location_name: "capo_mediatailor.types.__string.__string",
    vod_source_name: "capo_mediatailor.types.__string.__string",
    *,
    config_overrides: Optional[MediaTailorClientConfig] = None,
) -> "capo_mediatailor.types.delete_vod_source_response.DeleteVodSourceResponse":
    """<p>The video on demand (VOD) source to delete.</p>

    Args:
        source_location_name: <p>The name of the source location associated with this VOD Source.</p>
        vod_source_name: <p>The name of the VOD 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_vod_source_request.DeleteVodSourceRequest]",
    ) -> OperationResponse[
        "capo_mediatailor.types.delete_vod_source_response.DeleteVodSourceResponse"
    ]:
        import capo_mediatailor._operations.media_tailor.delete_vod_source

        output, http_response = (
            capo_mediatailor._operations.media_tailor.delete_vod_source.delete_vod_source(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteVodSource")
    )
    input_: capo_mediatailor.types.delete_vod_source_request.DeleteVodSourceRequest = {
        "source_location_name": source_location_name,
        "vod_source_name": vod_source_name,
    }

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