Class S3ClientGenerator
- java.lang.Object
-
- com.ibm.fhir.operation.bulkdata.client.S3ClientGenerator
-
public class S3ClientGenerator extends java.lang.Object
Generates an S3 Client.
-
-
Constructor Summary
Constructors Constructor Description S3ClientGenerator()
-
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.
-
-
-
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 IAMaccessKey
- (user or access Key or apiKey) for the credentialsaccessSecret
- (resourceId, secretKey or password) for the credentialscosEndpointUrl
- the endpoint urlcosLocation
- the location/region of the S3 bucketuseFhirServerTrustStore
- should use trust storewithPathStyle
- path or host- Returns:
-
-