Retrieves information about multiple router outputs in AWS Elemental MediaConnect.
Parameters:
-
arns
(RouterOutputArnList)
–
The Amazon Resource Names (ARNs) of the router outputs you want to retrieve information about.
Raises:
-
BadRequestException
–
This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message.
-
ConflictException
–
The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
-
InternalServerErrorException
–
The server encountered an internal error and is unable to complete the request.
-
ServiceUnavailableException
–
The service is currently unavailable or busy.
-
TooManyRequestsException
–
The request was denied due to request throttling.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_mediaconnect/_services/media_connect.py
| def batch_get_router_output(
self,
arns: "capo_mediaconnect.types.router_output_arn_list.RouterOutputArnList",
*,
config_overrides: Optional[MediaConnectClientConfig] = None,
) -> "capo_mediaconnect.types.batch_get_router_output_response.BatchGetRouterOutputResponse":
"""<p>Retrieves information about multiple router outputs in AWS Elemental MediaConnect.</p>
Args:
arns: <p>The Amazon Resource Names (ARNs) of the router outputs you want to retrieve information about.</p>
Raises:
capo_mediaconnect.errors.bad_request_exception.BadRequestException: <p>This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message. </p>
capo_mediaconnect.errors.conflict_exception.ConflictException: <p>The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. </p>
capo_mediaconnect.errors.internal_server_error_exception.InternalServerErrorException: <p>The server encountered an internal error and is unable to complete the request. </p>
capo_mediaconnect.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable or busy. </p>
capo_mediaconnect.errors.too_many_requests_exception.TooManyRequestsException: <p>The request was denied due to request throttling. </p>
capo_mediaconnect.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_mediaconnect.types.batch_get_router_output_request.BatchGetRouterOutputRequest]",
) -> OperationResponse[
"capo_mediaconnect.types.batch_get_router_output_response.BatchGetRouterOutputResponse"
]:
import capo_mediaconnect._operations.media_connect.batch_get_router_output
output, http_response = (
capo_mediaconnect._operations.media_connect.batch_get_router_output.batch_get_router_output(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchGetRouterOutput")
)
input_: capo_mediaconnect.types.batch_get_router_output_request.BatchGetRouterOutputRequest = {
"arns": arns
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|