diff --git a/src/IO/S3Common.h b/src/IO/S3Common.h index 1e9366387cf..57bc0461f21 100644 --- a/src/IO/S3Common.h +++ b/src/IO/S3Common.h @@ -23,13 +23,15 @@ public: static ClientFactory & instance(); - std::shared_ptr create(const String & endpoint, - const String & access_key_id, - const String & secret_access_key); + static std::shared_ptr create( + const String & endpoint, + const String & access_key_id, + const String & secret_access_key); - std::shared_ptr create(Aws::Client::ClientConfiguration & cfg, - const String & access_key_id, - const String & secret_access_key); + static std::shared_ptr create( + Aws::Client::ClientConfiguration & cfg, + const String & access_key_id, + const String & secret_access_key); private: ClientFactory();