async def batch_get_channel(
self,
arns: "capo_ivs.types.channel_arn_list.ChannelArnList",
*,
config_overrides: Optional[AsyncivsClientConfig] = None,
) -> "capo_ivs.types.batch_get_channel_response.BatchGetChannelResponse":
"""<p>Performs <a>GetChannel</a> on multiple ARNs simultaneously.</p>
Args:
arns: <p>Array of ARNs, one per channel.</p>
Raises:
capo_ivs.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
capo_ivs.errors.service_unavailable.ServiceUnavailable: <p>The service is temporarily unavailable.</p>
capo_ivs.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_ivs.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_ivs.types.batch_get_channel_request.BatchGetChannelRequest]",
) -> AsyncOperationResponse[
"capo_ivs.types.batch_get_channel_response.BatchGetChannelResponse"
]:
import capo_ivs._operations.amazon_interactive_video_service.batch_get_channel
(
output,
http_response,
) = await capo_ivs._operations.amazon_interactive_video_service.batch_get_channel.async_batch_get_channel(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_ivs.types.batch_get_channel_response.BatchGetChannelResponse",
) -> dict[str, Any]:
import capo_ivs.types.batch_get_channel_response
return capo_ivs.types.batch_get_channel_response.redact_sensitive(output)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("BatchGetChannel", redact_output=_redact_output),
)
input_: capo_ivs.types.batch_get_channel_request.BatchGetChannelRequest = {
"arns": arns
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output