Java com.amazonaws.services.s3 AmazonS3Builder fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.services.s3 AmazonS3Builder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.services.s3 AmazonS3Builder.

The text is from its open source code.

Method

SubclassenablePathStyleAccess()

Enables path style access for clients built via this builder.

Amazon S3 supports virtual-hosted-style and path-style access in all Regions.

voidsetForceGlobalBucketAccessEnabled(Boolean forceGlobalBucketAccessEnabled)

Configure whether global bucket access is enabled for clients generated by this builder.

When global bucket access is enabled, the region to which a request is routed may differ from the region that is configured in #setRegion(String) in order to make the request succeed.

The following behavior is currently used when this mode is enabled:

  1. All requests that do not act on an existing bucket (for example, AmazonS3Client#createBucket(String) ) will be routed to the region configured by #setRegion(String) , unless the region is manually overridden with CreateBucketRequest#setRegion(String) , in which case the request will be routed to the region configured in the request.
  2. The first time a request is made that references an existing bucket (for example, AmazonS3Client#putObject(PutObjectRequest) ) a request will be made to the region configured by #setRegion(String) to determine the region in which the bucket was created.