use of io.datarouter.aws.s3.S3ClientType in project datarouter by hotpads.
the class S3ClientNodeFactory method createInternal.
/*---------------- private ------------------*/
private S3Node createInternal(NodeParams<PathbeanKey, Pathbean, PathbeanFielder> nodeParams) {
DatarouterS3Client client = s3ClientManager.getClient(nodeParams.getClientId());
String bucket = nodeParams.getPhysicalName();
Subpath path = nodeParams.getPath();
var s3DirectoryManager = new S3DirectoryManager(client, bucket, path);
return new S3Node(nodeParams, s3ClientType, client, s3DirectoryManager);
}
Aggregations