Class S3ClientGenerator


  • public class S3ClientGenerator
    extends java.lang.Object
    Generates an S3 Client.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.ibm.cloud.objectstorage.services.s3.AmazonS3 getClient​(boolean iam, java.lang.String accessKey, java.lang.String accessSecret, java.lang.String cosEndpointUrl, java.lang.String cosLocation, boolean useFhirServerTrustStore, boolean withPathStyle)
      Gets a client based on the values related to a storage provider.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • S3ClientGenerator

        public S3ClientGenerator()
    • Method Detail

      • getClient

        public com.ibm.cloud.objectstorage.services.s3.AmazonS3 getClient​(boolean iam,
                                                                          java.lang.String accessKey,
                                                                          java.lang.String accessSecret,
                                                                          java.lang.String cosEndpointUrl,
                                                                          java.lang.String cosLocation,
                                                                          boolean useFhirServerTrustStore,
                                                                          boolean withPathStyle)
        Gets a client based on the values related to a storage provider.
        Parameters:
        iam - identifies the access credentials are for IAM
        accessKey - (user or access Key or apiKey) for the credentials
        accessSecret - (resourceId, secretKey or password) for the credentials
        cosEndpointUrl - the endpoint url
        cosLocation - the location/region of the S3 bucket
        useFhirServerTrustStore - should use trust store
        withPathStyle - path or host
        Returns: