Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

AmazonS3ClientBuilder

@Bean
    public AmazonS3 generateS3Client() {
        AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
        AmazonS3 s3client = AmazonS3ClientBuilder
                .standard()
                .withCredentials(new AWSStaticCredentialsProvider(credentials))
                .withRegion(Regions.US_EAST_1)
                .build();
        return s3client;
    }
Source by docs.aws.amazon.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+4 =