pyarrow.fs.resolve_s3_region

pyarrow.fs.resolve_s3_region(bucket)

Resolve the S3 region of a bucket.

Parameters
bucketstr

A S3 bucket name

Returns
regionstr

A S3 region name

Examples

>>> resolve_s3_region('ursa-labs-taxi-data')
'us-east-2'