Deletes the specified room.
Parameters:
-
identifier
(RoomIdentifier)
–
Identifier of the room to be deleted. Currently this must be an ARN.
Raises:
Source code in docs_src/capo_ivschat/_services/async_ivschat.py
| async def delete_room(
self,
identifier: "capo_ivschat.types.room_identifier.RoomIdentifier",
*,
config_overrides: Optional[AsyncivschatClientConfig] = None,
) -> None:
"""<p>Deletes the specified room.</p>
Args:
identifier: <p>Identifier of the room to be deleted. Currently this must be an ARN.</p>
Raises:
capo_ivschat.errors.access_denied_exception.AccessDeniedException: <p/>
capo_ivschat.errors.pending_verification.PendingVerification: <p/>
capo_ivschat.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
capo_ivschat.errors.validation_exception.ValidationException: <p/>
capo_ivschat.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_ivschat.types.delete_room_request.DeleteRoomRequest]",
) -> AsyncOperationResponse[None]:
import capo_ivschat._operations.amazon_interactive_video_service_chat.delete_room
(
output,
http_response,
) = await capo_ivschat._operations.amazon_interactive_video_service_chat.delete_room.async_delete_room(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteRoom")
)
input_: capo_ivschat.types.delete_room_request.DeleteRoomRequest = {
"identifier": identifier
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|