class InventoryUtil {

	public static  Map<String,List<Role>>  fetchIAMRoles(BasicSessionCredentials temporaryCredentials,String accountId,String accountName) {

		AmazonIdentityManagement iamClient = AmazonIdentityManagementClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(temporaryCredentials)).withRegion(InventoryConstants.REGION_US_WEST_2).build();
		List<Role> roles = new ArrayList<>();
		ListRolesResult rslt;
		String marker = null;
		do{
			rslt =  iamClient.listRoles(new ListRolesRequest().withMarker(marker));
			roles.addAll(rslt.getRoles());
			marker = rslt.getMarker();
		}while(marker!=null);

		log.debug(InventoryConstants.ACCOUNT + accountId +" Type : IAM Roles >> "+roles.size());
		Map<String,List<Role>> iamRoles = new HashMap<>();
		iamRoles.put(accountId+delimiter+accountName, roles);
		return iamRoles;
	}

	private  InventoryUtil();

}