Class S3EndpointUtils
java.lang.Object
software.amazon.awssdk.services.s3.internal.endpoints.S3EndpointUtils
Utilities for working with Amazon S3 bucket names and endpoints.
-
Method Summary
Modifier and TypeMethodDescriptionstatic URIaccelerateDualstackEndpoint(String domain, String protocol) static URIaccelerateEndpoint(String domain, String protocol) static voidchangeToDnsEndpoint(SdkHttpRequest.Builder mutableRequest, String bucketName) Changes from path style addressing (which the marshallers produce by default, to DNS style or virtual style addressing where the bucket name is prepended to the host.static URIdualstackEndpoint(String id, String domain, String protocol) static URIfipsDualstackEndpoint(String id, String domain, String protocol) static URIfipsEndpoint(String id, String domain, String protocol) static booleanisAccelerateEnabled(S3Configuration serviceConfiguration) static booleanisAccelerateSupported(SdkRequest originalRequest) static booleanstatic booleanisArnRegionEnabled(S3Configuration serviceConfiguration) static booleanisDualstackEnabled(S3Configuration serviceConfiguration) static booleanisFipsRegion(String region) static booleanisPathStyleAccessEnabled(S3Configuration serviceConfiguration) static StringremoveFipsIfNeeded(String region)
-
Method Details
-
removeFipsIfNeeded
-
isFipsRegion
-
isAccelerateEnabled
- Returns:
- True if accelerate mode is enabled per
S3Configuration, false if not.
-
isAccelerateSupported
- Parameters:
originalRequest- Request object to identify the operation.- Returns:
- True if accelerate is supported for the given operation, false if not.
-
accelerateEndpoint
-
accelerateDualstackEndpoint
-
isDualstackEnabled
- Returns:
- True if dualstack is enabled per
S3Configuration, false if not.
-
dualstackEndpoint
-
fipsEndpoint
-
fipsDualstackEndpoint
-
isPathStyleAccessEnabled
- Returns:
- True if path style access is enabled per
S3Configuration, false if not.
-
isArnRegionEnabled
-
changeToDnsEndpoint
Changes from path style addressing (which the marshallers produce by default, to DNS style or virtual style addressing where the bucket name is prepended to the host. DNS style addressing is preferred due to the better load balancing qualities it provides, path style is an option mainly for proxy based situations and alternative S3 implementations.- Parameters:
mutableRequest- Marshalled HTTP request we are modifying.bucketName- Bucket name for this particular operation.
-
isArn
-