Skip to content

delete_vod_source async

delete_vod_source(
    source_location_name: __string,
    vod_source_name: __string,
    *,
    config_overrides: Optional[AsyncMediaTailorClientConfig] = 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/async_media_tailor.py
async def delete_vod_source(
    self,
    source_location_name: "capo_mediatailor.types.__string.__string",
    vod_source_name: "capo_mediatailor.types.__string.__string",
    *,
    config_overrides: Optional[AsyncMediaTailorClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_mediatailor.types.delete_vod_source_request.DeleteVodSourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_mediatailor.types.delete_vod_source_response.DeleteVodSourceResponse"
    ]:
        import capo_mediatailor._operations.media_tailor.delete_vod_source

        (
            output,
            http_response,
        ) = await capo_mediatailor._operations.media_tailor.delete_vod_source.async_delete_vod_source(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output