def get_room(
self,
identifier: "capo_ivschat.types.room_identifier.RoomIdentifier",
*,
config_overrides: Optional[ivschatClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_ivschat.types.get_room_request.GetRoomRequest]",
) -> OperationResponse["capo_ivschat.types.get_room_response.GetRoomResponse"]:
import capo_ivschat._operations.amazon_interactive_video_service_chat.get_room
output, http_response = (
capo_ivschat._operations.amazon_interactive_video_service_chat.get_room.get_room(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output