public class S3ClientFactory
extends java.lang.Object
| Constructor and Description |
|---|
S3ClientFactory(@NotNull com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider,
@NotNull com.amazonaws.ClientConfiguration awsClientConfiguration,
@NotNull java.lang.String awsRegion,
java.lang.String roleArn)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.s3.AmazonS3 |
getS3Client()
Get an S3 client given the configuration of the system.
|
public S3ClientFactory(@NotNull
@NotNull com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider,
@NotNull
@NotNull com.amazonaws.ClientConfiguration awsClientConfiguration,
@NotNull
@NotNull java.lang.String awsRegion,
@Nullable
java.lang.String roleArn)
awsCredentialsProvider - The default credentials provider for this instanceawsClientConfiguration - The AWS client configuration for GenieawsRegion - The AWS region the app is running inroleArn - The role to assume before accessing S3 resources if necessary