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
FieldsModifier and TypeFieldDescriptionprotected org.craftercms.commons.config.profiles.aws.S3Profile
-
Constructor Summary
ConstructorsConstructorDescriptionS3ClientBuilder
(String endpoint, String region, String accessKey, String secretKey, boolean pathStyle) -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.s3.S3Client
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 software.amazon.awssdk.services.s3.S3Client getClient()Builds an AWS S3 client, if no values are provided the default client will be used.- Returns:
- AWS S3 client
-