Performs StartViewerSessionRevocation on multiple channel ARN and viewer ID pairs simultaneously.
Parameters:
Raises:
Source code in docs_src/capo_ivs/_services/ivs.py
| def batch_start_viewer_session_revocation(
self,
viewer_sessions: "capo_ivs.types.batch_start_viewer_session_revocation_viewer_session_list.BatchStartViewerSessionRevocationViewerSessionList",
*,
config_overrides: Optional[ivsClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_ivs.types.batch_start_viewer_session_revocation_request.BatchStartViewerSessionRevocationRequest]",
) -> OperationResponse[
"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 = (
capo_ivs._operations.amazon_interactive_video_service.batch_start_viewer_session_revocation.batch_start_viewer_session_revocation(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|