async def update_vod_source(
self,
http_package_configurations: "capo_mediatailor.types.http_package_configurations.HttpPackageConfigurations",
source_location_name: "capo_mediatailor.types.__string.__string",
vod_source_name: "capo_mediatailor.types.__string.__string",
*,
config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
) -> "capo_mediatailor.types.update_vod_source_response.UpdateVodSourceResponse":
"""<p>Updates a VOD source's configuration.</p>
Args:
http_package_configurations: <p>A list of HTTP package configurations for the VOD source on this account.</p>
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.update_vod_source_request.UpdateVodSourceRequest]",
) -> AsyncOperationResponse[
"capo_mediatailor.types.update_vod_source_response.UpdateVodSourceResponse"
]:
import capo_mediatailor._operations.media_tailor.update_vod_source
(
output,
http_response,
) = await capo_mediatailor._operations.media_tailor.update_vod_source.async_update_vod_source(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateVodSource")
)
input_: capo_mediatailor.types.update_vod_source_request.UpdateVodSourceRequest = {
"http_package_configurations": http_package_configurations,
"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