Module | AWS::S3::Client::Validators |
In: |
lib/aws/s3/client.rb
|
Returns true if the given `bucket_name` is DNS compatible.
DNS compatible bucket names may be accessed like:
http://dns.compat.bucket.name.s3.amazonaws.com/
Whereas non-dns compatible bucket names must place the bucket name in the url path, like:
http://s3.amazonaws.com/dns_incompat_bucket_name/
@return [Boolean] Returns true if the given bucket name may be
is dns compatible. this bucket n
Returns true if the bucket name must be used in the request path instead of as a sub-domain when making requests against S3.
This can be an issue if the bucket name is DNS compatible but contains ’.’ (periods). These cause the SSL certificate to become invalid when making authenticated requets over SSL to the bucket name. The solution is to send this as a path argument instead.
@return [Boolean] Returns true if the bucket name should be used
as a path segement instead of dns prefix when making requests against s3.