Java Code Examples for software.amazon.awssdk.services.s3.S3Client#create()

The following examples show how to use software.amazon.awssdk.services.s3.S3Client#create() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AWSFileStore.java    From para with Apache License 2.0 4 votes vote down vote up
/**
 * Creates a new instance based on the bucket provided.
 * @param bucket the name of the S3 bucket
 */
public AWSFileStore(String bucket) {
	this.bucket = bucket;
	this.s3 = S3Client.create();
}
 
Example 2
Source File: CachingS3ResourceLoader.java    From moirai with Apache License 2.0 2 votes vote down vote up
/**
 * Creates an S3ResourceLoader for the given S3 location
 *
 * @param bucket the bucket for the S3 resource
 * @param key the key within the bucket for the S3 resource
 * @return a supplier for the S3 resource as a string
 */
public static CachingS3ResourceLoader withDefaultCredentials(String bucket, String key) {
    return new CachingS3ResourceLoader(S3Client.create(), bucket, key);
}
 
Example 3
Source File: S3ResourceLoader.java    From moirai with Apache License 2.0 2 votes vote down vote up
/**
 * Creates an S3ResourceLoader for the given S3 location
 *
 * @param bucket the bucket for the S3 resource
 * @param key the key within the bucket for the S3 resource
 * @return a supplier for the S3 resource as a string
 */
public static S3ResourceLoader withDefaultCredentials(String bucket, String key) {
    return new S3ResourceLoader(S3Client.create(), bucket, key);
}