public class IllegalBucketNameException extends IllegalArgumentException
AmazonS3Builder.enablePathStyleAccess()
.Constructor and Description |
---|
IllegalBucketNameException(String s)
Constructs an
IllegalBucketNameException with the
specified detail message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IllegalBucketNameException(String s)
IllegalBucketNameException
with the
specified detail message. This exception is thrown to indicate
that a request was made against a bucket that has a DNS-incompatible
bucket name. Use AmazonS3Builder.enablePathStyleAccess()
to work with buckets that are not DNS compatible.
For more details see:
https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.htmls
- The specific reason the bucket name is DNS-incompatible.Copyright © 2024. All rights reserved.