Provides details about a specific video on demand (VOD) source in a specific source location.
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 describe_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.describe_vod_source_response.DescribeVodSourceResponse"
):
"""<p>Provides details about a specific video on demand (VOD) source in a specific source location.</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.describe_vod_source_request.DescribeVodSourceRequest]",
) -> AsyncOperationResponse[
"capo_mediatailor.types.describe_vod_source_response.DescribeVodSourceResponse"
]:
import capo_mediatailor._operations.media_tailor.describe_vod_source
(
output,
http_response,
) = await capo_mediatailor._operations.media_tailor.describe_vod_source.async_describe_vod_source(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeVodSource")
)
input_: capo_mediatailor.types.describe_vod_source_request.DescribeVodSourceRequest = {
"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
|