async def get_room(
self,
identifier: "capo_ivschat.types.room_identifier.RoomIdentifier",
*,
config_overrides: Optional[AsyncivschatClientConfig] = None,
) -> "capo_ivschat.types.get_room_response.GetRoomResponse":
"""<p>Gets the specified room.</p>
Args:
identifier: <p>Identifier of the room for which the configuration is to be retrieved. Currently this must be an ARN.</p>
Raises:
capo_ivschat.errors.access_denied_exception.AccessDeniedException: <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.get_room_request.GetRoomRequest]",
) -> AsyncOperationResponse[
"capo_ivschat.types.get_room_response.GetRoomResponse"
]:
import capo_ivschat._operations.amazon_interactive_video_service_chat.get_room
(
output,
http_response,
) = await capo_ivschat._operations.amazon_interactive_video_service_chat.get_room.async_get_room(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetRoom")
)
input_: capo_ivschat.types.get_room_request.GetRoomRequest = {
"identifier": identifier
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output