Class S3ClientBuilder
java.lang.Object
org.craftercms.engine.store.s3.util.S3ClientBuilder
Utility class to build the AWS S3 client instances.
- Author:
- joseross
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.craftercms.commons.config.profiles.aws.S3Profile
-
Constructor Summary
ConstructorDescriptionS3ClientBuilder
(String endpoint, String region, String accessKey, String secretKey, boolean pathStyle) -
Method Summary
Modifier and TypeMethodDescriptioncom.amazonaws.services.s3.AmazonS3
Builds an AWS S3 client, if no values are provided the default client will be used.
-
Field Details
-
profile
protected org.craftercms.commons.config.profiles.aws.S3Profile profile
-
-
Constructor Details
-
S3ClientBuilder
@ConstructorProperties({"endpoint","region","accessKey","secretKey","pathStyle"}) public S3ClientBuilder(String endpoint, String region, String accessKey, String secretKey, boolean pathStyle)
-
-
Method Details
-
getClient
public com.amazonaws.services.s3.AmazonS3 getClient()Builds an AWS S3 client, if no values are provided the default client will be used.- Returns:
- AWS S3 client
-