Initiates a deployment to deploy the latest monitor of the specified signal map.
Parameters:
-
identifier
(__string)
–
A signal map's identifier. Can be either be its id or current name.
Raises:
Source code in docs_src/capo_medialive/_services/async_media_live.py
| async def start_monitor_deployment(
self,
identifier: "capo_medialive.types.__string.__string",
*,
config_overrides: Optional[AsyncMediaLiveClientConfig] = None,
dry_run: Optional["capo_medialive.types.__boolean.__boolean"] = None,
) -> "capo_medialive.types.start_monitor_deployment_response.StartMonitorDeploymentResponse":
"""Initiates a deployment to deploy the latest monitor of the specified signal map.
Args:
identifier: A signal map's identifier. Can be either be its id or current name.
Raises:
capo_medialive.errors.bad_request_exception.BadRequestException: Placeholder documentation for BadRequestException
capo_medialive.errors.conflict_exception.ConflictException: Placeholder documentation for ConflictException
capo_medialive.errors.forbidden_exception.ForbiddenException: Placeholder documentation for ForbiddenException
capo_medialive.errors.internal_server_error_exception.InternalServerErrorException: Placeholder documentation for InternalServerErrorException
capo_medialive.errors.not_found_exception.NotFoundException: Placeholder documentation for NotFoundException
capo_medialive.errors.too_many_requests_exception.TooManyRequestsException: Placeholder documentation for TooManyRequestsException
capo_medialive.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_medialive.types.start_monitor_deployment_request.StartMonitorDeploymentRequest]",
) -> AsyncOperationResponse[
"capo_medialive.types.start_monitor_deployment_response.StartMonitorDeploymentResponse"
]:
import capo_medialive._operations.media_live.start_monitor_deployment
(
output,
http_response,
) = await capo_medialive._operations.media_live.start_monitor_deployment.async_start_monitor_deployment(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StartMonitorDeployment")
)
input_: capo_medialive.types.start_monitor_deployment_request.StartMonitorDeploymentRequest = {
"identifier": identifier
}
if dry_run is not None:
input_["dry_run"] = dry_run
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|