The £1.2m contract between Gwent public services and online giant Amazon is for AI services.