Performs StartViewerSessionRevocation on multiple channel ARN and viewer ID pairs simultaneously.
Parameters:
Raises:
Source code in docs_src/capo_ivs/_services/async_ivs.py
| async def batch_start_viewer_session_revocation(
self,
viewer_sessions: "capo_ivs.types.batch_start_viewer_session_revocation_viewer_session_list.BatchStartViewerSessionRevocationViewerSessionList",
*,
config_overrides: Optional[AsyncivsClientConfig] = None,
) -> "capo_ivs.types.batch_start_viewer_session_revocation_response.BatchStartViewerSessionRevocationResponse":
"""<p>Performs <a>StartViewerSessionRevocation</a> on multiple channel ARN and viewer ID pairs simultaneously.</p>
Args:
viewer_sessions: <p>Array of viewer sessions, one per channel-ARN and viewer-ID pair.</p>
Raises:
capo_ivs.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
capo_ivs.errors.pending_verification.PendingVerification: <p>Your account is pending verification.</p>
capo_ivs.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</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_start_viewer_session_revocation_request.BatchStartViewerSessionRevocationRequest]",
) -> AsyncOperationResponse[
"capo_ivs.types.batch_start_viewer_session_revocation_response.BatchStartViewerSessionRevocationResponse"
]:
import capo_ivs._operations.amazon_interactive_video_service.batch_start_viewer_session_revocation
(
output,
http_response,
) = await capo_ivs._operations.amazon_interactive_video_service.batch_start_viewer_session_revocation.async_batch_start_viewer_session_revocation(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchStartViewerSessionRevocation")
)
input_: capo_ivs.types.batch_start_viewer_session_revocation_request.BatchStartViewerSessionRevocationRequest = {
"viewer_sessions": viewer_sessions
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|