Updates a live source's configuration.
Parameters:
-
http_package_configurations
(HttpPackageConfigurations)
–
A list of HTTP package configurations for the live source on this account.
-
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 update_live_source(
self,
http_package_configurations: "capo_mediatailor.types.http_package_configurations.HttpPackageConfigurations",
live_source_name: "capo_mediatailor.types.__string.__string",
source_location_name: "capo_mediatailor.types.__string.__string",
*,
config_overrides: Optional[MediaTailorClientConfig] = None,
) -> "capo_mediatailor.types.update_live_source_response.UpdateLiveSourceResponse":
"""<p>Updates a live source's configuration.</p>
Args:
http_package_configurations: <p>A list of HTTP package configurations for the live source on this account.</p>
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.update_live_source_request.UpdateLiveSourceRequest]",
) -> OperationResponse[
"capo_mediatailor.types.update_live_source_response.UpdateLiveSourceResponse"
]:
import capo_mediatailor._operations.media_tailor.update_live_source
output, http_response = (
capo_mediatailor._operations.media_tailor.update_live_source.update_live_source(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateLiveSource")
)
input_: capo_mediatailor.types.update_live_source_request.UpdateLiveSourceRequest = {
"http_package_configurations": http_package_configurations,
"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
|