Class S3ClientBuilder

java.lang.Object
org.craftercms.engine.store.s3.util.S3ClientBuilder

public class S3ClientBuilder extends Object
Utility class to build the AWS S3 client instances.
Author:
joseross
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.craftercms.commons.config.profiles.aws.S3Profile
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    S3ClientBuilder(String endpoint, String region, String accessKey, String secretKey, boolean pathStyle)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.amazonaws.services.s3.AmazonS3
    Builds an AWS S3 client, if no values are provided the default client will be used.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • profile

      protected org.craftercms.commons.config.profiles.aws.S3Profile profile
  • Constructor Details

  • 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