Tries to create a S3 client from an URI using the following format:
s3:http://accessKey:[email protected]/?style=[virtualHost|path]
Tries to create a S3 client from an URI using the following format:
s3:http://accessKey:[email protected]/?style=[virtualHost|path]
The accessKey
and secretKey
must not be URI-encoded.
import play.api.libs.ws.ahc.StandaloneAhcWSClient import com.zengularity.benji.s3.S3 def init1(implicit wc: StandaloneAhcWSClient) = S3("s3:http://accessKey:[email protected]/?style=virtualHost") // or def init2(implicit wc: StandaloneAhcWSClient) = S3(new java.net.URI("s3:https://accessKey:[email protected]/?style=path"))
the config type to be consumed by the provider typeclass
the config element used by the provider to generate the URI
a typeclass that try to generate an URI from the config element
Success if the WSS3 was properly created, otherwise Failure
Returns the S3 client in the path style (and signature V1/V2).
Returns the S3 client in the path style (and signature V1/V2).
the user access key
the user secret key
the scheme
the host name (or IP address)
A WSS3 instance configured to work with the S3-compatible API of a the server
def init(implicit wc: play.api.libs.ws.ahc.StandaloneAhcWSClient) = com.zengularity.benji.s3.S3( accessKeyId = "accessKey", secretAccessKeyId = "secretAccessKey", scheme = "https", host = "s3.amazonaws.com")
Returns the S3 client in the virtual host style.
Returns the S3 client in the virtual host style. A S3 signature V1/V2 is used (see virtualHostAwsV4).
the user access key
the user secret key
the scheme
the host name (or IP address)
A WSS3 instance configured to work with the S3-compatible API of a the server
def init(implicit wc: play.api.libs.ws.ahc.StandaloneAhcWSClient) = com.zengularity.benji.s3.S3.virtualHost( accessKeyId = "accessKey", secretAccessKeyId = "secretAccessKey", scheme = "https", host = "s3.amazonaws.com")
Returns the S3 client in the virtual host style.
Returns the S3 client in the virtual host style. A AWS signature V4 is used (see virtualHostAwsV4 and Signature Version 4 Signing Process.
the user access key
the user secret key
the scheme
the host name (or IP address)
the AWS/S3 region
A WSS3 instance configured to work with the AWS V4
def init(implicit wc: play.api.libs.ws.ahc.StandaloneAhcWSClient) = com.zengularity.benji.s3.S3.virtualHostAwsV4( accessKeyId = "accessKey", secretAccessKeyId = "secretAccessKey", scheme = "https", host = "s3.amazonaws.com", region = "us-east-1")
S3 utility