Is it possible to get bucket location in s3 using boto API?
I'm talking about this feature from the AWS API - http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html
Thanks in advance.
You can call the get_location () method:
conn = boto.connect_s3() bucket = conn.get_bucket(bucket_name) bucket_location = bucket.get_location() if bucket_location: conn = boto.s3.connect_to_region(bucket_location) bucket = conn.get_bucket(bucket_name)
http://boto.cloudhackers.com/en/latest/ref/s3.html#boto.s3.bucket.Bucket.get_location
Source: https://habr.com/ru/post/1624430/More articles:REST: How to get a list of rows of a selected sheet in Smartsheet - restIs there a way to limit the time and memory resources for running the bash command? - bashHow a PHP application can retrieve huge data through MySQL, which exceeds the value max_allowed_packet - phpGet predicate runtime in seconds - prologПочему assembleDebug занимает намного больше времени, чем сборка проекта и как его оптимизировать? - androidRedux / React and MVC, OOP - javascriptСоздайте Func для возврата как ссылочных, так и значений - c#Как создать множественный первичный ключ столбца в красноречивом - sqlHow to prevent browser cache for some files only in ASP.Net 5? - cachingInteger overflow and order of operations - c ++All Articles